/* Эвентус — грузовой автосервис.
   Спокойная светлая вёрстка: крупные скруглённые карточки с тенью, много воздуха,
   короткие фразы, техника крупным планом. Системные шрифты, никаких библиотек. */

:root {
    --ink: #0a0a0b;
    --ink-2: #4a4f57;
    --muted: #8a9099;
    --canvas: #f2f3f5;
    --card: #ffffff;
    --line: #e4e6ea;
    --blue: #0a58ca;
    --blue-dark: #07408f;
    --red: #d52b1e;
    --dark: #0b0f14;
    --r: 16px;
    --r-sm: 10px;
    --wrap: 1200px;
    --gut: 16px;
    --sh: 0 14px 40px rgba(10, 15, 20, .10);
    --sh-sm: 0 6px 20px rgba(10, 15, 20, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }

h1, h2, h3 { margin: 0 0 .45em; letter-spacing: -.035em; line-height: 1.04; font-weight: 800; }
h1 { font-size: clamp(38px, 7.4vw, 82px); }
h2 { font-size: clamp(30px, 4.6vw, 52px); }
h3 { font-size: clamp(20px, 2.3vw, 26px); letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.stack { display: grid; gap: 16px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(18px, 2.1vw, 23px); color: var(--ink-2); max-width: 46ch; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }

/* ——— Шапка ——— */
.top { position: sticky; top: 0; z-index: 40; padding: 10px var(--gut) 0; }
.top__bar {
    max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 16px;
    background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, .6); border-radius: 18px;
    padding: 9px 12px 9px 14px; box-shadow: var(--sh-sm); flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink);
         flex: 0 0 auto; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand b { display: block; font-size: 16px; letter-spacing: .06em; line-height: 1.1; }
.brand span { display: block; font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 22px; margin-left: auto; flex: 0 1 auto; flex-wrap: nowrap;
       justify-content: flex-end; min-width: 0; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600;
         white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.top__actions { display: flex; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.top .btn { min-height: 42px; padding: 10px 18px; font-size: 15px; white-space: nowrap; }
.nav + .top__actions { margin-left: 18px; }

/* ——— Кнопки ——— */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 54px; padding: 15px 30px; border-radius: 12px;
    font-size: 17px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--red { background: var(--red); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--glass { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--glass:hover { background: rgba(255, 255, 255, .26); }
.btn--line { border-color: var(--line); background: #fff; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ——— Карточки ——— */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
.card__body { padding: 30px 32px 34px; }
.card__body p:last-child { margin-bottom: 0; }
.card img { width: 100%; }
.card--dark { background: var(--dark); color: #fff; }
.card--dark h2, .card--dark h3 { color: #fff; }
.card--dark p { color: #c2c9d2; }
.card--blue { background: linear-gradient(135deg, #17365f, #12294a 62%, #1d3f6b); color: #fff; }
.card--blue h2, .card--blue h3 { color: #fff; }
.card--blue p { color: #cbd7e8; }

.photo { position: relative; }
.photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.photo--tall img { aspect-ratio: 3 / 4; }
.photo--wide img { aspect-ratio: 16 / 9; }
.photo__cap {
    position: absolute; left: 18px; bottom: 18px; right: 18px; color: #fff;
    font-weight: 700; font-size: clamp(19px, 2.2vw, 25px); letter-spacing: -.02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0, 0, 0, .62)); }
.photo--plain::after { display: none; }

/* ——— Первый экран ——— */
.hero { padding: 18px var(--gut) 0; }
.hero__card {
    position: relative; max-width: var(--wrap); margin: 0 auto; border-radius: 20px; overflow: hidden;
    background: var(--dark); box-shadow: 0 30px 70px rgba(10, 15, 20, .22); isolation: isolate;
}
.hero__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .52; z-index: -1; }
.hero__card::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, rgba(8, 12, 18, .92) 8%, rgba(8, 12, 18, .35) 62%, rgba(8, 12, 18, .1));
}
.hero__inner { padding: clamp(34px, 5vw, 74px); color: #fff; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { color: #dfe4ea; max-width: 40ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; }
.tags li { font-size: 14px; font-weight: 600; padding: 7px 15px; border-radius: 10px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); }

/* ——— Сетки ——— */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.section { padding: clamp(38px, 6vw, 84px) 0 0; }
.section:last-of-type { padding-bottom: clamp(38px, 6vw, 84px); }
.section__head { max-width: 40ch; margin: 0 auto clamp(22px, 3vw, 40px); text-align: center; }
.section__head .lead { margin: 0 auto; }

/* ——— Цифры ——— */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nums .card__body { padding: 26px 24px; }
.nums b { display: block; font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -.04em; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.nums span { color: var(--muted); font-size: 15px; }

/* ——— Списки ——— */
.list { list-style: none; margin: 0; padding: 0; }
.list li { position: relative; padding: 0 0 14px 28px; color: var(--ink-2); }
.list li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.card--dark .list li, .card--blue .list li { color: #cdd6e2; }
.card--dark .list li::before, .card--blue .list li::before { background: #fff; }

/* ——— Отзыв ——— */
.quote p { font-size: clamp(19px, 2.2vw, 25px); letter-spacing: -.02em; line-height: 1.35; color: var(--ink); }
.quote footer { color: var(--muted); font-size: 15px; }

/* ——— Таблица ——— */
.table { width: 100%; border-collapse: collapse; }
.table td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.table td:first-child { color: var(--muted); width: 45%; }

/* ——— Подвал ——— */
.foot { padding: clamp(30px, 5vw, 56px) var(--gut) 110px; }
.foot__card { max-width: var(--wrap); margin: 0 auto; background: var(--dark); color: #aeb7c2; border-radius: var(--r); padding: clamp(28px, 4vw, 48px); }
.foot__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 26px; }
.foot h3 { font-size: 14px; color: #fff; letter-spacing: .12em; text-transform: uppercase; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__req { font-size: 13px; line-height: 1.7; color: #7d8794; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 26px; padding-top: 20px; }

/* ——— Нижняя полоса на телефоне ——— */
.callbar { display: none; }

@media (max-width: 1320px) {
    .nav { gap: 14px; }
    .nav a { font-size: 14.5px; }
}

@media (max-width: 1240px) {
    .nav { display: none; }
}

@media (max-width: 980px) {
    .g3, .g4, .nums { grid-template-columns: repeat(2, 1fr); }
    .top__bar { padding: 8px 10px; gap: 10px; }
    .top .btn { padding: 10px 14px; font-size: 14.5px; }
    .foot__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    /* на телефоне в шапке — только звонок, остальные действия в нижней полосе */
    .top__actions .btn--blue, .top__actions .btn--red { display: none; }
}

@media (max-width: 640px) {
    .g2, .g3, .g4, .nums, .foot__cols { grid-template-columns: 1fr; }
    .callbar { gap: 8px; }
    .callbar .btn { padding: 12px 10px; font-size: 15px; }
    .card__body { padding: 24px 22px 26px; }
    .btn { width: 100%; }
    .top .btn { width: auto; }
    .brand span { display: none; }
    body { padding-bottom: 76px; }
    .callbar {
        display: flex; gap: 10px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50;
        background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(20px);
        border-radius: 16px; padding: 8px; box-shadow: var(--sh);
    }
    .callbar .btn { flex: 1; min-height: 50px; font-size: 16px; padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }
