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

: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; }
/* Карта в блоке «Как нас найти» (заявка №298). Высота задана пропорцией, чтобы на телефоне
   карта не занимала весь экран и её можно было пролистнуть. */
.map { position: relative; margin: 18px 0 14px; border-radius: 14px; overflow: hidden;
       aspect-ratio: 16 / 9; background: #eceff3; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__note { margin-top: 0; }
@media (max-width: 720px) { .map { aspect-ratio: 4 / 3; } }
/* Заголовок-ссылка в карточке выглядит заголовком, а не синей ссылкой. */
.card__body h2 a, .card__body h3 a { color: inherit; text-decoration: none; }
.card__body h2 a:hover, .card__body h3 a:hover { text-decoration: underline; }
.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; }
/* Заголовок страницы вне первого экрана: размер как у h2, иначе он давит на текст. */
.section__head h1 { font-size: clamp(30px, 4.6vw, 52px); max-width: none; }

/* ——— Цифры ——— */
.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; }
    /* Подборка из канала — картинки без текста: на телефоне держим две в ряд,
       иначе шесть карточек превращаются в долгую прокрутку. */
    .grid--kanal { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .grid--kanal .photo__cap { font-size: 15px; left: 10px; right: 10px; bottom: 10px; }
    .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; } }

/* ——— Движение ———
   Владелец 19.10.2026: «поменяй фото на сайте из тех что у тебя уже есть, также добавь
   анимированные картинки динамичные». Движение здесь только то, которое что-то показывает:
   первый экран сам меняет кадры, техника едет, иконки работ оживают при появлении.
   Никакого видео — владелец отказался от него раньше. Всё на css, без библиотек.
   Кто выключил анимацию в системе, увидит обычный спокойный сайт — см. конец файла. */

/* Первый экран: три кадра сменяют друг друга и медленно наезжают */
.hero__slides { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; animation: heroFade 21s linear infinite; }
.hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
                   opacity: .52; animation: heroZoom 21s linear infinite; }
.hero__slide:nth-child(2), .hero__slide:nth-child(2) img { animation-delay: 7s; }
.hero__slide:nth-child(3), .hero__slide:nth-child(3) img { animation-delay: 14s; }
@keyframes heroFade { 0% { opacity: 0 } 4% { opacity: 1 } 29% { opacity: 1 } 35% { opacity: 0 } 100% { opacity: 0 } }
@keyframes heroZoom { 0% { transform: scale(1.02) } 35% { transform: scale(1.1) } 100% { transform: scale(1.1) } }

/* Полоса с едущей техничкой */
.road { padding: clamp(18px, 2.6vw, 28px) var(--gut) 0; }
.road__card { position: relative; max-width: var(--wrap); margin: 0 auto; overflow: hidden;
              background: var(--dark); color: #fff; border-radius: var(--r); box-shadow: var(--sh); }
.road__scene { position: relative; height: clamp(118px, 15vw, 166px); overflow: hidden; }
.road__line { position: absolute; left: 0; right: 0; bottom: 26px; height: 3px;
              background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 36px, transparent 36px 76px);
              animation: roadRun 1.6s linear infinite; }
.road__mashina { position: absolute; bottom: 18px; left: -340px;
                 animation: truckRun 16s linear infinite; }
.road__mashina--teh { width: clamp(215px, 27vw, 320px); }
.road__mashina--evak { width: clamp(235px, 30vw, 350px); animation-delay: 7.5s; }
.road__mashina .wheel { transform-box: fill-box; transform-origin: center; animation: wheelSpin .38s linear infinite; }
/* Подвеска: кузов чуть подрагивает на ходу, тень под ним дышит — так движение читается живым */
.road__mashina .kuzov { animation: kuzovTryaska .42s ease-in-out infinite; }
.road__mashina .kolesa { animation: kuzovTryaska .42s ease-in-out infinite reverse; }
.road__mashina .ten { animation: tenDyshit .42s ease-in-out infinite; }
@keyframes kuzovTryaska { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-1.2px) } }
@keyframes tenDyshit { 0%, 100% { opacity: .85; transform: scaleX(1) } 50% { opacity: .65; transform: scaleX(.97) } }
.road__mashina .beacon { animation: beaconBlink .9s steps(1, end) infinite; }
@keyframes beaconBlink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: .2 } }
@keyframes beaconBlink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: .18 } }
.road__text { padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 38px) 6px; }
.road__text b { display: block; font-size: clamp(19px, 2.4vw, 28px); letter-spacing: -.02em; }
.road__text span { color: #aeb7c2; font-size: 15px; }
@keyframes roadRun { to { background-position-x: -76px } }
@keyframes truckRun { 0% { transform: translateX(0) } 100% { transform: translateX(calc(100vw + 300px)) } }
@keyframes wheelSpin { to { transform: rotate(360deg) } }

/* Иконки работ: оживают, когда карточка появляется на экране */
.ico { width: 46px; height: 46px; margin-bottom: 12px; color: var(--red); }
.ico * { vector-effect: non-scaling-stroke; }
.is-in .ico--spin { animation: wheelSpin 4.5s linear infinite; }
.is-in .ico--pulse { animation: icoPulse 2.4s ease-in-out infinite; }
.is-in .ico--draw path, .is-in .ico--draw polyline { stroke-dasharray: 120; animation: icoDraw 2.6s ease-in-out infinite; }
@keyframes icoPulse { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.12) } }
@keyframes icoDraw { 0% { stroke-dashoffset: 120 } 45%, 100% { stroke-dashoffset: 0 } }
.ico--spin, .ico--pulse { transform-origin: center; }

/* Фото оживает под курсором */
.photo img { transition: transform .55s ease; }
.card:hover .photo img, .photo:hover img { transform: scale(1.045); }

/* Карточки выезжают снизу — только если скрипт движения жив */
.anim .reveal { opacity: 0; transform: translateY(16px); }
.anim .reveal.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }

@media (prefers-reduced-motion: reduce) {
    .hero__slide, .hero__slide img, .road__line, .road__mashina, .road__mashina .wheel, .road__mashina .beacon, .road__mashina .kuzov, .road__mashina .kolesa, .road__mashina .ten,
    .ico, .is-in .ico--spin, .is-in .ico--pulse, .is-in .ico--draw path { animation: none !important; }
    .hero__slide { opacity: 1; }
    .hero__slide:nth-child(2), .hero__slide:nth-child(3) { opacity: 0; }
    .anim .reveal { opacity: 1; transform: none; }
    .card:hover .photo img { transform: none; }
}

/* ——— Больше жизни (выбор владельца 19.10.2026) ———
   Цифры набегают, кадры в блоке «Цех» листаются сами, красная кнопка тихо дышит. */

/* Кадры, которые сменяют друг друга внутри обычной карточки */
.shots { position: relative; }
.shots .shot { position: absolute; inset: 0; opacity: 0; animation: shotFade 18s linear infinite; }
.shots .shot:first-child { position: relative; }
.shots .shot:nth-child(2), .shots .shot:nth-child(2) img { animation-delay: 6s; }
.shots .shot:nth-child(3), .shots .shot:nth-child(3) img { animation-delay: 12s; }
.shots .shot img { width: 100%; }
@keyframes shotFade { 0% { opacity: 0 } 5% { opacity: 1 } 28% { opacity: 1 } 34% { opacity: 0 } 100% { opacity: 0 } }

/* Кнопка «Машина встала» тихо дышит, чтобы её заметили в первую очередь */
.btn--pulse { animation: btnBreath 2.8s ease-in-out infinite; }
@keyframes btnBreath {
    0%, 100% { box-shadow: 0 0 0 0 rgba(213, 43, 30, .55) }
    60% { box-shadow: 0 0 0 16px rgba(213, 43, 30, 0) }
}

@media (prefers-reduced-motion: reduce) {
    .shots .shot, .shots .shot img, .btn--pulse { animation: none !important; }
    .shots .shot:nth-child(2), .shots .shot:nth-child(3) { opacity: 0; }
    .shots .shot:first-child { opacity: 1; }
}

/* ——— Нарезка «Как мы работаем» ——— */
/* Карточка-ссылка в подборке из канала: тег <a> сам по себе строчный,
   поэтому задаём ему блочность — иначе затемнение и подпись съезжают. */
a.photo { display: block; }

/* Значок внутри карточки связи — чуть меньше и синий, чтобы не спорить с красными значками работ */
.card__body .ico { width: 40px; height: 40px; color: var(--blue); }

/* «Свежее с базы» (09.11.2026): карточки последних постов, обновляются сами */
.svezhee__card { display: block; color: inherit; text-decoration: none; overflow: hidden; }
.svezhee__card:hover h3 { text-decoration: underline; }
.svezhee__card h3 { font-size: 18px; margin: 4px 0 0; }
.svezhee__date { color: #7a8699; font-size: 14px; }
