/* ============================================================
   СТРОЙТЕХНОЛОГИЯ — Design System
   Black & white prototype
   ============================================================ */

/* --- Палитра (референс vespa-trade.ru) --- */
:root {
    --accent:      #f04810;  /* фирменный оранжевый */
    --accent-dark: #d63e0c;  /* hover-состояние */
    --ink:         #111111;  /* основной тёмный */
    --bg-light:    #f8f8f8;  /* светлый фон секций */
}
::selection { background: var(--accent); color: #fff; }

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .7; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

/* --- Container --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
.display {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #000;
}
h1, .h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: #000; }
h2, .h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: #000; }
h3, .h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; color: #111; }
h4, .h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: #111; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; color: #555; }
.overline {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

/* --- Buttons --- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: .9375rem;
    font-weight: 600;
    border-radius: 0;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease;
    white-space: nowrap;
    letter-spacing: .005em;
}
.btn--primary {
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
}
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); opacity: 1; transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--outline {
    background: transparent;
    color: #000;
    border: 2px solid #000;
}
.btn--outline:hover { background: #000; color: #fff; opacity: 1; }
.btn--ghost {
    background: transparent;
    color: #000;
    border: 2px solid transparent;
    padding: 14px 16px;
}
.btn--ghost:hover { opacity: 1; border-color: #ddd; }
.btn--sm { padding: 10px 24px; font-size: .875rem; }
.btn--lg { padding: 18px 40px; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }

/* --- Sections --- */
.section { padding: 100px 0; }
.section--gray { background: var(--bg-light); }
.section--dark { background: #111; color: #fff; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .overline { color: #777; }
.section--dark .lead { color: #aaa; }
.section__header { max-width: 640px; margin-bottom: 60px; }
.section__header--center { text-align: center; margin-left: auto; margin-right: auto; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    /* белый градиент: плотный у нижней кромки → к прозрачному (не до конца) вверху */
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,.85) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow .3s;
}
.header--scrolled { box-shadow: 0 1px 20px rgba(0,0,0,.06); }
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 72px;
    gap: 32px;
    /* шапка на всю ширину; боковые отступы совпадают с подписями
       первого экрана (.hero-video__corner, left/right: 32px) */
    padding: 0 32px;
}
.header__logo { display: flex; align-items: center; flex-shrink: 0; }
.header__logo-img {
    display: block;
    height: 46px;
    width: auto;
}
.header__logo-img--light { display: none; }
/* шапка светлая везде → всюду тёмный логотип (logo.png) */

/* Nav */
.header__nav { flex: 1; display: flex; justify-content: flex-end; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
    position: relative;
    display: block;
    padding: 8px 12px;
    font-size: .8125rem;
    font-weight: 500;
    color: #333;
    border-radius: 0;
    transition: color .2s ease;
}
.nav__link::after {
    /* лёгкий accent-undeline, который растягивается на ховере (заменяет серую плашку) */
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s cubic-bezier(.22,.61,.36,1);
    opacity: .7;
}
.nav__link:hover { background: transparent; color: #000; opacity: 1; }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link--active { color: #000; font-weight: 600; }
.nav__link--active::after { transform: scaleX(1); opacity: 1; }

/* Dropdown */
.nav__item--dropdown { position: relative; }
.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 260px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 16px 48px rgba(0,0,0,.1);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    z-index: 100;
}
.nav__item--dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown__link {
    display: block;
    padding: 10px 16px;
    font-size: .875rem;
    color: #444;
    border-radius: 4px;
    transition: background .15s;
}
.dropdown__link:hover { background: #f5f5f5; color: #000; opacity: 1; }

/* Burger */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
}
.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #000;
    transition: all .3s;
    transform-origin: center;
}
.header__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO VIDEO (главная)
   ============================================================ */
.hero-video {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;       /* первый экран — на всю высоту окна */
    min-height: 480px;
    overflow: hidden;
    background: #111;
}
.hero-video__media-wrap {
    position: absolute;
    inset: 0;
}
.hero-video__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-video__shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    pointer-events: none;
}
.hero-video__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    color: #fff;
}
.hero-video__line {
    position: absolute;
    background: #fff;
    pointer-events: none;
}
.hero-video__line--h {
    top: 50%;
    /* ось обрывается, не доезжая до боковых слов (контроль сроков / надежность) */
    left: 188px;
    right: 160px;
    height: 1px;
    transform: translateY(-0.5px) scaleX(0);
    transform-origin: center;
    animation: heroLineH 1s cubic-bezier(.22,.61,.36,1) .2s forwards;
}
.hero-video__line--v {
    left: 50%;
    /* ось обрывается, не доезжая до верхнего/нижнего слов (качество / комплексный подход) */
    top: 130px;
    bottom: 64px;
    width: 1px;
    transform: translateX(-0.5px) scaleY(0);
    transform-origin: center;
    animation: heroLineV 1s cubic-bezier(.22,.61,.36,1) .2s forwards;
}
@keyframes heroLineH { to { transform: translateY(-0.5px) scaleX(1); } }
@keyframes heroLineV { to { transform: translateX(-0.5px) scaleY(1); } }
.hero-video__corner {
    position: absolute;
    max-width: min(38vw, 320px);
    font-size: clamp(1.0625rem, 1.9vw, 1.625rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, .82);
    opacity: 0;
    animation: heroCornerIn .85s cubic-bezier(.22,.61,.36,1) forwards;
    transition: color .2s, opacity .2s;
}
.hero-video__corner:hover { color: #fff; opacity: 1; }
/* угловые подписи стартуют из центра и разъезжаются по диагонали
   к своим углам, по очереди (после того, как линии прорисовались ~1.2с) */
.hero-video__corner--tl { top: 96px;   left: 32px;  text-align: left;  transform: translate(36vw, 28vh);   animation-delay: 1.20s; }
.hero-video__corner--tr { top: 96px;   right: 32px; text-align: right; transform: translate(-36vw, 28vh);  animation-delay: 1.35s; }
.hero-video__corner--bl { bottom: 32px; left: 32px;  text-align: left;  transform: translate(36vw, -28vh);  animation-delay: 1.50s; }
.hero-video__corner--br { bottom: 32px; right: 32px; text-align: right; transform: translate(-36vw, -28vh); animation-delay: 1.65s; }
@keyframes heroCornerIn { to { opacity: 1; transform: translate(0, 0); } }
.hero-video__axis {
    position: absolute;
    font-size: clamp(.75rem, 1.1vw, .9375rem);
    font-weight: 400;
    line-height: 1.3;
    color: rgba(255, 255, 255, .72);
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    animation: heroAxisIn .7s ease forwards;
}
.hero-video__axis--top    { animation-delay: 1.95s; }
.hero-video__axis--right  { animation-delay: 2.05s; }
.hero-video__axis--bottom { animation-delay: 2.15s; }
.hero-video__axis--left   { animation-delay: 2.25s; }
@keyframes heroAxisIn { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .hero-video__line--h,
    .hero-video__line--v,
    .hero-video__corner,
    .hero-video__axis { animation: none; opacity: 1; transform: none; }
    .hero-video__line--h { transform: translateY(-0.5px); }
    .hero-video__line--v { transform: translateX(-0.5px); }
}
.hero-video__axis--top {
    top: 96px;          /* прижато к верхнему краю, на уровне угловых подписей */
    left: 50%;
    transform: translateX(-50%);
}
.hero-video__axis--bottom {
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}
.hero-video__axis--left {
    top: 50%;
    left: 32px;
    transform: translateY(-50%);
    text-align: left;
}
.hero-video__axis--right {
    top: 50%;
    right: 32px;
    transform: translateY(-50%);
    text-align: right;
}

/* Header over hero video / over .page-hero--bg — светлая шапка
   (навигация, бургер, dropdown и логотип наследуют дефолтный тёмный-на-светлом вид) */
.page-home .header,
.page-has-hero .header {
    /* над hero тот же белый градиент снизу вверх, чуть мягче */
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .8) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.page-home .header--scrolled,
.page-has-hero .header--scrolled {
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .88) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, .06);
}

/* ============================================================
   DIRECTIONS — sticky split-блоки (левая половина закреплена,
   правая прокручивается; по окончании левая уезжает вверх,
   снизу подъезжает следующее направление)
   ============================================================ */
.dirs {
    position: relative;
    background: var(--bg-light);
    color: #111;
}
.dir {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}
.dir + .dir { border-top: 1px solid #e6e6e6; }

/* ЛЕВАЯ половина — фото + заголовок, закреплена на время блока */
.dir__left {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: #ececec;
}
.dir__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* масштаб даёт запас для панорамирования; очень медленный «видео»-проезд
       слева направо и обратно (15с в одну сторону) с разгоном и замедлением */
    transform: scale(1.22);
    animation: dirPan 15s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes dirPan {
    from { transform: scale(1.22) translate3d(-7.5%, 0, 0); }
    to   { transform: scale(1.22) translate3d(7.5%, 0, 0); }
}
.dir__shade {
    position: absolute;
    inset: 0;
    /* светло-серая дымка: узкая сверху и высокая снизу — чтобы заголовок
       направления целиком лежал на серой подложке */
    background: linear-gradient(to bottom, rgba(228,228,231,.72) 0%, rgba(228,228,231,0) 18%, rgba(228,228,231,0) 38%, rgba(228,228,231,.6) 62%, rgba(228,228,231,.93) 100%);
    pointer-events: none;
}
.dir__left-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 104px 48px 56px;
}
.dir__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.dir__overline {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #111;
    padding-left: 20px;
    position: relative;
}
.dir__overline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 2px;
    background: var(--accent);
}
.dir__counter {
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .08em;
    color: rgba(17,17,17,.6);
    font-variant-numeric: tabular-nums;
}
.dir__title {
    margin: 0 0 28px;
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #111;
    max-width: 16ch;
    text-shadow: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .7s cubic-bezier(.22,.61,.36,1);
}
.dir.is-inview .dir__title { opacity: 1; transform: none; }
.dir__cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border: 1px solid rgba(0,0,0,.4);
    color: #111;
    background: rgba(255,255,255,.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s ease .15s, transform .5s ease .15s, background .25s, border-color .25s;
}
.dir.is-inview .dir__cta { opacity: 1; transform: none; }
.dir__cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    opacity: 1;
}
.dir__cta svg { width: 16px; height: 16px; transition: transform .25s; }
.dir__cta:hover svg { transform: translateX(4px); }

/* ПРАВАЯ половина — карточки-«стопка»: каждая следующая закрепляется чуть ниже
   предыдущей, поэтому при скролле подъезжает снизу и встаёт к ней встык.
   Большие отступы между карточками в потоке дают «пробег» этого подъезда и
   одновременно держат правую колонку выше вьюпорта (левая остаётся закреплённой). */
/* правая колонка выше вьюпорта — задаёт «пробег» прокрутки: левое фото и список
   закреплены (sticky), пока прокручиваешь блок. Плашки при этом не привязаны к
   скроллу — они проявляются ступенчатой анимацией один раз, когда блок прилипает. */
.dir__right {
    min-height: 250vh;
}
/* весь список карточек закреплён как ОДНО целое: пока блок прокручивается,
   карточки проявляются по одной (JS), а в конце вся стопка уезжает вместе
   с блоком (нет рассинхронной «разборки» стопки на финале) */
.dir__list {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    list-style: none;
    margin: 0;
    padding: 116px 48px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dir__item {
    box-sizing: border-box;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 6px 24px rgba(0,0,0,.05);
    color: #111;
    font-size: clamp(.95rem, 1.05vw, 1.0625rem);
    font-weight: 500;
    line-height: 1.4;
    transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1),
                border-color .25s ease, box-shadow .25s ease;
}
/* появление плашек: пока JS работает — скрыты; когда блок реально в кадре
   (.dir.dir--items-in) проигрывается ступенчатая анимация по индексу --i */
.dirs.js-reveal .dir__item { opacity: 0; }
.dirs.js-reveal .dir.dir--items-in .dir__item {
    animation: dirItemIn .6s cubic-bezier(.22,.61,.36,1) both;
    animation-delay: calc(var(--i, 0) * .1s);
}
@keyframes dirItemIn {
    from { opacity: 0; transform: translateY(44px); }
    to   { opacity: 1; transform: none; }
}
.dir__item:hover { border-color: var(--accent); }
.dir__item-text { flex: 1; }
.dir__item-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d1d1;
    background: #fff;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: #666;
    font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
    .dir__bg,
    .dir__title,
    .dir__cta,
    .dir__item,
    .dirs.js-reveal .dir__item,
    .dirs.js-reveal .dir.dir--items-in .dir__item {
        transition: none;
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   PROJECTS TIMELINE (горизонтальный таймлайн проектов)
   ============================================================ */
.timeline-section { overflow: hidden; }
.timeline-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 56px;
    max-width: none;
}
.timeline-section__header h2 { margin: 0; }
.timeline-section__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
    padding-bottom: 6px;
}
.timeline-section__range {
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.timeline-section__count {
    font-size: .8125rem;
    color: #888;
    font-variant-numeric: tabular-nums;
}

/* выравнивание по сетке .container (1200px центрирован): берём от viewport, не от self */
.timeline {
    --timeline-pad: max(24px, calc((100vw - 1200px) / 2));
    --timeline-year-w: 120px;
    position: relative;
    margin-top: 8px;
}
.timeline__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.timeline__viewport::-webkit-scrollbar { display: none; }

.timeline__track {
    display: flex;
    width: max-content;
    align-items: stretch;
    padding: 6px var(--timeline-pad) 4px;
}
.timeline__group {
    position: relative;
    display: flex;
    flex-direction: column;       /* год сверху, карточки рядом снизу */
    align-items: flex-start;
    flex: 0 0 auto;
    /* лёгкий горизонтальный градиент только в верхней полосе с годами — до линии
       таймлайна; слева чуть серее → справа белый, упирается в серый следующего года.
       высота полосы = высота года (line-height:1) + его margin-bottom */
    background: linear-gradient(90deg, #f8f8f8 0%, #fcfcfc 55%, #ffffff 100%) no-repeat;
    background-size: 100% calc(clamp(1.875rem, 2.6vw, 2.25rem) + 18px);
}

/* год — подпись НАД таймлайном; закреплён слева, при прокрутке следующий год
   едет на уровне своего первого проекта и выталкивает предыдущий */
.timeline__year {
    position: sticky;
    left: var(--timeline-pad);
    z-index: 3;
    align-self: flex-start;
    margin-bottom: 18px;
    padding-right: 18px;
    font-size: clamp(1.875rem, 2.6vw, 2.25rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.025em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    background: transparent;       /* год сидит прямо на градиенте, без белой плашки */
}

.timeline__cards {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
}
.timeline__card {
    position: relative;
    flex: 0 0 auto;
    width: 248px;
    padding: 20px 28px 4px 0;
    border-top: 2px solid #ececec;
    display: flex;
    flex-direction: column;
}
.timeline__card::before {
    content: '';
    position: absolute;
    top: -5px; left: 0;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #bcbcbc;
    transition: background .25s ease, border-color .25s ease;
}
.timeline__card:hover::before { background: var(--accent); border-color: var(--accent); }
.timeline__node { display: none; }
.timeline__name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--ink);
    margin-bottom: 9px;
}
.timeline__supply {
    font-size: .8125rem;
    line-height: 1.5;
    color: #888;
}

/* НАВИГАЦИЯ — стрелки + индикатор прокрутки */
.timeline__controls {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 26px var(--timeline-pad) 0;
}
.timeline__nav {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease, opacity .2s ease;
}
.timeline__nav:hover { border-color: var(--accent); color: var(--accent); }
.timeline__nav:disabled { opacity: .3; cursor: default; border-color: #e6e6e6; color: #bbb; }
.timeline__nav svg { width: 22px; height: 22px; }
.timeline__progress {
    flex: 1;
    height: 2px;
    background: #ececec;
    position: relative;
    overflow: hidden;
}
.timeline__progress-bar {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 40px;
    background: var(--accent);
    transition: transform .12s ease-out;
}

@media (max-width: 768px) {
    .timeline-section__header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .timeline-section__meta { align-items: flex-start; text-align: left; padding-bottom: 0; }
    .timeline { --timeline-year-w: 84px; }
    .timeline__year { font-size: 1.625rem; padding-top: 16px; }
    /* год выше: padding-top 16 + высота 1.625rem + margin-bottom 18 */
    .timeline__group { background-size: 100% calc(1.625rem + 34px); }
    .timeline__card { width: 220px; padding-right: 22px; }
    .timeline__controls { gap: 12px; }
    .timeline__nav { width: 42px; height: 42px; }
}

/* ============================================================
   VERTICAL TIMELINE — страница «Реализованные проекты»
   (вертикальная лента: год слева sticky, проекты справа на линии)
   ============================================================ */
.vtimeline { position: relative; max-width: 960px; }
.vtimeline__group {
    display: grid;
    grid-template-columns: 120px 1fr;
}
.vtimeline__year {
    grid-column: 1;
    position: sticky;
    top: 96px;                 /* ниже фиксированной шапки */
    align-self: start;
    padding-top: 22px;
    padding-right: 20px;
    font-size: clamp(1.75rem, 2.4vw, 2.125rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.025em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.vtimeline__items {
    grid-column: 2;
    border-left: 2px solid #ececec;
}
.vtimeline__item {
    position: relative;
    padding: 18px 0 18px 30px;
}
.vtimeline__item + .vtimeline__item { border-top: 1px solid #f0f0f0; }
.vtimeline__item::before {
    content: '';
    position: absolute;
    left: -5px;                /* по центру линии (border-left 2px) */
    top: 24px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #bcbcbc;
    transition: background .25s ease, border-color .25s ease;
}
.vtimeline__item:hover::before { background: var(--accent); border-color: var(--accent); }
.vtimeline__name {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.01em;
    color: var(--ink);
    margin-bottom: 6px;
}
.vtimeline__supply {
    font-size: .875rem;
    line-height: 1.5;
    color: #888;
}
@media (max-width: 768px) {
    .vtimeline__group { grid-template-columns: 64px 1fr; }
    .vtimeline__year { top: 80px; padding-top: 20px; padding-right: 10px; font-size: 1.5rem; }
    .vtimeline__item { padding-left: 22px; }
}

/* ============================================================
   STATS / KEY FIGURES
   ============================================================ */
.stats { border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stats__item {
    padding: 48px 32px;
    text-align: center;
    position: relative;
    transition: background .3s ease;
}
.stats__item:hover { background: #fafafa; }
.stats__item + .stats__item::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: #eee;
}
.stats__number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #000;
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
    transition: color .3s ease;
}
.stats__item:hover .stats__number { color: var(--accent); }
.stats__label {
    font-size: .875rem;
    color: #888;
    line-height: 1.4;
}

/* ============================================================
   CARDS / GRID
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border: 1px solid #eee;
    padding: 40px 32px;
    transition: border-color .3s ease, box-shadow .3s ease, transform .35s cubic-bezier(.22,.61,.36,1);
    position: relative;
    overflow: hidden;
}
.card::before {
    /* accent-черта сверху, прорастает на ховере (изящнее full border accent) */
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.card:hover {
    border-color: #ddd;
    box-shadow: 0 12px 36px rgba(0,0,0,.07);
    transform: translateY(-3px);
}
.card:hover::before { transform: scaleX(1); }
.card__number {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: .12em;
    font-variant-numeric: tabular-nums;
}
.card__title { margin-bottom: 12px; }
.card__text { font-size: .9375rem; color: #666; line-height: 1.6; }
.card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: .875rem;
    font-weight: 600;
    color: #000;
}
.card__link:hover { opacity: 1; gap: 10px; }
.card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.card__link:hover svg { transform: translateX(4px); }

/* Card with image */
.card--image { padding: 0; overflow: hidden; }
.card--image .card__img {
    width: 100%;
    height: 220px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: .875rem;
}
.card--image .card__body { padding: 28px 28px 32px; }

/* Dark card */
.card--dark {
    background: #111;
    border-color: #222;
    color: #ccc;
}
.card--dark:hover { border-color: #444; box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.card--dark .card__title, .card--dark h3, .card--dark h4 { color: #fff; }
.card--dark .card__link { color: #fff; }
.card--dark .card__number { color: #555; }

/* ============================================================
   ADVANTAGES
   ============================================================ */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #eee;
    border: 1px solid #eee;
}
.advantage {
    padding: 48px 36px;
    background: #fff;
}
.advantage__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent);
}
.advantage__icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.advantage__title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
}
.advantage__text { font-size: .9375rem; color: #666; line-height: 1.6; }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    align-items: center;
}
.client__logo {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: color .2s;
    padding: 0 16px;
}
.client__logo:hover { color: #666; }

/* ============================================================
   CTA FORM
   ============================================================ */
/* CTA-блок с формой — светло-серый фон, как у подвала */
.form-section { background: #f0f1f2; }
.form-section .section__header h2 { color: #111; }
.form-section .section__header .lead { color: #555; }
/* поля формы на светлом фоне */
.form-section .form__input,
.form-section .form__textarea {
    background: #fff;
    border-color: #d8dadc;
    color: #222;
}
.form-section .form__input:hover,
.form-section .form__textarea:hover { border-color: #c0c2c4; }
.form-section .form__input:focus,
.form-section .form__textarea:focus {
    border-color: var(--accent);
    background: #fff;
}
.form-section .form__input::placeholder,
.form-section .form__textarea::placeholder { color: #999; }
.form-section .form__hint { color: #888; }
.form-section .form__consent span { color: #555; }

.form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 720px;
}
.form--centered { margin: 0 auto; }
.form__group { display: flex; flex-direction: column; }
.form__group--full { grid-column: 1 / -1; }
.form__label {
    font-size: .75rem;
    font-weight: 500;
    color: #888;
    letter-spacing: .04em;
    margin-bottom: 8px;
    transition: color .2s ease;
}
.form__group:focus-within .form__label { color: var(--accent); }
.form__input, .form__textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: .9375rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #fff;
    transition: border-color .25s ease, background .25s ease;
    outline: none;
}
.form__input:hover, .form__textarea:hover { border-color: #3a3a3a; }
.form__input:focus, .form__textarea:focus {
    border-color: var(--accent);
    background: #1e1a18;
}
.form__input::placeholder, .form__textarea::placeholder { color: #555; }
.form__textarea { min-height: 120px; resize: vertical; }
.form__submit { grid-column: 1 / -1; margin-top: 8px; }
.form__hint {
    grid-column: 1 / -1;
    font-size: .75rem;
    color: #666;
    text-align: center;
}
.form__hint a { text-decoration: underline; }

/* Light form variant */
.form--light .form__input,
.form--light .form__textarea {
    background: #f7f7f7;
    border-color: #e0e0e0;
    color: #222;
}
.form--light .form__input:focus,
.form--light .form__textarea:focus { border-color: #999; }
.form--light .form__input::placeholder,
.form--light .form__textarea::placeholder { color: #999; }
.form--light .form__label { color: #666; }
.form--light .form__hint { color: #999; }

/* ============================================================
   DOCUMENTS
   ============================================================ */
.doc-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 1px solid #eaeaea;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.22,.61,.36,1);
}
.doc-card:hover {
    border-color: #111;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
    transform: translateY(-2px);
    opacity: 1;
}
.doc-card__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-size: .75rem;
    font-weight: 700;
    color: #999;
    letter-spacing: .04em;
    transition: background .3s ease, color .3s ease;
}
.doc-card:hover .doc-card__icon { background: var(--accent); color: #fff; }
.doc-card__info { flex: 1; }
.doc-card__title {
    font-size: .9375rem;
    font-weight: 600;
    color: #000;
    transition: color .2s ease;
}
.doc-card__meta { font-size: .8125rem; color: #999; margin-top: 2px; }

/* ============================================================
   STEPS
   ============================================================ */
.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    counter-reset: step;
}
.step {
    padding: 40px 36px;
    position: relative;
    counter-increment: step;
    border-right: 1px solid #eee;
    transition: background .3s ease;
}
.step:last-child { border-right: none; }
.step:hover { background: #fafafa; }
.step__number {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    padding: 6px 10px;
    border: 1px solid var(--accent);
    font-variant-numeric: tabular-nums;
    margin-bottom: 24px;
    letter-spacing: .04em;
}
.step__title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
    letter-spacing: -0.01em;
}
.step__text { font-size: .875rem; color: #777; line-height: 1.6; }

/* ============================================================
   PROJECTS
   ============================================================ */
.project-card {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}
.project-card__img {
    width: 100%;
    height: 300px;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: .875rem;
}
.project-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    padding: 32px;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    color: #fff;
}
.project-card__title { font-size: 1.125rem; font-weight: 600; margin-bottom: 4px; }
.project-card__meta { font-size: .8125rem; color: rgba(255,255,255,.7); }

/* ============================================================
   HISTORY TIMELINE (вертикальный — страница «О компании»)
   ============================================================ */
.history-timeline { position: relative; padding-left: 32px; }
.history-timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: #eee;
}
.history-timeline__item {
    position: relative;
    padding: 0 0 48px 32px;
}
.history-timeline__item:last-child { padding-bottom: 0; }
.history-timeline__item::before {
    content: '';
    position: absolute;
    left: -37px; top: 6px;
    width: 12px; height: 12px;
    border: 2px solid #000;
    background: #fff;
}
.history-timeline__year {
    font-size: .875rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}
.history-timeline__text { font-size: .9375rem; color: #666; }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrapper { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
.table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #999;
    border-bottom: 2px solid #111;
}
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    color: #444;
}
.table tr:hover td { background: #fafafa; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
    padding: 100px 0 0;
    font-size: .8125rem;
    color: #999;
}
.breadcrumbs a { color: #999; }
.breadcrumbs a:hover { color: #000; opacity: 1; }
.breadcrumbs span { margin: 0 8px; color: #ddd; }

/* ============================================================
   PAGE HERO (small)
   ============================================================ */
.page-hero {
    padding: 140px 0 60px;
    border-bottom: 1px solid #eee;
}
.page-hero__inner { max-width: 720px; }
.page-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #000;
    margin-bottom: 16px;
}
.page-hero__desc {
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    color: #666;
    line-height: 1.7;
    max-width: 560px;
}
/* Модификатор: hero с фоновым фото — фото уходит под fixed-шапку и крошки,
   крошки и контент сидят поверх фото (по аналогии с hero на главной) */
.page-hero--bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: none;
    color: #fff;
    padding: 0 0 90px;
    min-height: 480px;
}
.page-hero--bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(160deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.6) 50%, rgba(0,0,0,.42) 100%);
    pointer-events: none;
}
.page-hero--bg > * { position: relative; z-index: 2; }
/* Видео-подложка (если есть): под градиент-оверлей, над background-image */
.page-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.page-hero--bg .page-hero__inner { padding-top: 40px; }
.page-hero--bg .page-hero__title { color: #fff; }
.page-hero--bg .page-hero__desc { color: rgba(255,255,255,.88); }
.page-hero--bg .overline { color: rgba(255,255,255,.85); }
.page-hero--bg .breadcrumbs { color: rgba(255,255,255,.7); }
.page-hero--bg .breadcrumbs a { color: rgba(255,255,255,.7); }
.page-hero--bg .breadcrumbs a:hover { color: #fff; opacity: 1; }
.page-hero--bg .breadcrumbs span { color: rgba(255,255,255,.35); }
.page-hero--bg .btn--outline { color: #fff; border-color: #fff; background: transparent; }
.page-hero--bg .btn--outline:hover { background: #fff; color: #000; border-color: #fff; }

/* Кнопки в hero: переносятся на узких экранах */
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Inline-фото (вставляемые блоки) */
.inline-photo { background-color: var(--bg-light); }

/* ============================================================
   CATALOG (карточки-ссылки на детальные страницы товаров)
   ============================================================ */
.catalog__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.cat-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e6e6;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.cat-card--link:hover {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 14px 36px rgba(0,0,0,.08);
    transform: translateY(-3px);
}
.cat-card__media {
    background: var(--bg-light);
    padding: 24px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cat-card__media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;    /* убирает белую плашку рендера на сером фоне */
    transition: transform .35s ease;
}
.cat-card--link:hover .cat-card__media img { transform: scale(1.04); }
.cat-card__info {
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.cat-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    margin: 0 0 10px;
}
.cat-card__lead {
    font-size: .875rem;
    color: #666;
    line-height: 1.55;
    margin: 0 0 18px;
    flex: 1;
}
.cat-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.cat-card__meta {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}
.cat-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ink);
    transition: gap .2s;
}
.cat-card--link:hover .cat-card__cta { gap: 10px; }

/* ---- Детальная страница каталога (cat-detail) ---- */
.cat-detail {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 48px;
    align-items: center;
}
.cat-detail__media {
    background: var(--bg-light);
    padding: 32px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-detail__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.cat-detail__count {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 22px;
}
.cat-detail__count-num {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
}
.cat-detail__count-label {
    font-size: .9375rem;
    color: #666;
}
.cat-detail__lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #555;
    margin-bottom: 28px;
}
.cat-detail__table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e6e6e6;
}

/* ---- Общая таблица каталога ---- */
.cat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
    font-variant-numeric: tabular-nums;
}
.cat-table thead th {
    background: #fafafa;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #555;
    border-bottom: 1px solid #e6e6e6;
    white-space: nowrap;
    position: sticky;
    top: 0;
}
.cat-table tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid #f3f3f3;
    color: #222;
    white-space: nowrap;
}
.cat-table tbody td:first-child { font-weight: 600; }
.cat-table tbody tr:nth-child(even) td { background: #fcfcfc; }
.cat-table tbody tr:hover td { background: #fff7f3; }

/* ============================================================
   КАТАЛОГ ЖБИ — карточки с таблицей серий/ГОСТ внутри (zhbi-catalog.php)
   ============================================================ */
.zcat { scroll-margin-top: 88px; }
.zcat__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;   /* карточки в одном ряду — равной высоты */
}
/* карточка горизонтальная: фото слева, заголовок + таблица справа */
.zcard {
    display: flex;
    flex-direction: row;
    min-height: 190px;
    background: #fff;
    border: 1px solid #e6e6e6;
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.zcard:hover {
    border-color: #d6d6d6;
    box-shadow: 0 14px 40px rgba(0,0,0,.06);
}
.zcard__media {
    flex-shrink: 0;
    width: 220px;
    align-self: stretch;
    background: #fff;
    border-right: 1px solid #f0f0f0;
    overflow: hidden;
}
.zcard__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}
.zcard__media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f6;
    color: #c8c8c8;
}
.zcard__media--empty svg { width: 54px; height: 54px; }
.zcard__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 22px 24px 24px;
}
.zcard__title {
    margin: 0 0 16px;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    color: #111;
}
.zcard__table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8125rem;
    font-variant-numeric: tabular-nums;
}
.zcard__table thead th {
    text-align: left;
    padding: 0 0 8px;
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #999;
    border-bottom: 1px solid #e6e6e6;
}
.zcard__table tbody td {
    padding: 8px 0;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
}
.zcard__table tbody tr:last-child td { border-bottom: none; }
.zcard__note {
    margin: 0;
    font-size: .875rem;
    line-height: 1.5;
    color: #777;
}
@media (max-width: 1024px) {
    .zcat__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .zcard { flex-direction: column; min-height: 0; }
    .zcard__media {
        width: 100%;
        height: 200px;
        align-self: auto;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
}

@media (max-width: 1024px) {
    .catalog__list { grid-template-columns: repeat(2, 1fr); }
    .cat-detail    { grid-template-columns: 1fr; gap: 32px; }
    .cat-detail__media { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 640px) {
    .catalog__list { grid-template-columns: 1fr; }
    .cat-card__info { padding: 20px; }
    .cat-table { font-size: .8125rem; }
    .cat-table thead th, .cat-table tbody td { padding: 10px 12px; }
}

/* ============================================================
   TEAM
   ============================================================ */
.team-card { text-align: center; }
.team-card__photo {
    width: 100%;
    aspect-ratio: 1;
    background: #f0f0f0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: .8125rem;
}
.team-card__name { font-size: 1rem; font-weight: 600; color: #000; }
.team-card__role { font-size: .875rem; color: #888; margin-top: 2px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-info__item {
    padding: 24px 0;
    border-bottom: 1px solid #eee;
}
.contact-info__item:first-child { padding-top: 0; }
.contact-info__label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #999;
    margin-bottom: 6px;
}
.contact-info__value { font-size: 1.125rem; font-weight: 500; color: #000; }
.contact-info__value a { border-bottom: 1px solid #ddd; }
.contact-info__value a:hover { border-color: #000; opacity: 1; }

.contact-map {
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: .875rem;
    margin-top: 60px;
}

/* ============================================================
   CATEGORY TILES
   ============================================================ */
.tile {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border: 1px solid #eee;
    transition: all .3s;
}
.tile:hover {
    border-color: #000;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    opacity: 1;
}
.tile__icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
}
.tile__icon svg { width: 28px; height: 28px; stroke: #000; fill: none; stroke-width: 1.5; }
.tile__content { flex: 1; }
.tile__title { font-size: 1rem; font-weight: 600; color: #000; margin-bottom: 4px; }
.tile__text { font-size: .875rem; color: #777; }
.tile__arrow {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
}
.tile:hover .tile__arrow { transform: translateX(4px); }
.tile__arrow svg { width: 20px; height: 20px; stroke: #000; fill: none; stroke-width: 1.5; }

/* ============================================================
   GALLERY PLACEHOLDER
   ============================================================ */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}
.gallery__item {
    aspect-ratio: 4/3;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: .75rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #f0f1f2;
    color: #555;
    padding: 80px 0 0;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid #dcdee0;
}
.footer__logo { display: inline-block; margin-bottom: 20px; }
.footer__logo-img { display: block; height: 54px; width: auto; }
.footer__desc { font-size: .875rem; line-height: 1.7; color: #666; }
.footer__heading {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #888;
    margin-bottom: 20px;
}
.footer__links li + li { margin-top: 10px; }
.footer__links a {
    position: relative;
    display: inline-block;
    font-size: .9375rem;
    color: #555;
    transition: color .2s ease, transform .25s cubic-bezier(.22,.61,.36,1), padding-left .25s ease;
}
.footer__links a::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 8px;
    height: 1px;
    background: var(--accent);
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    transition: transform .25s cubic-bezier(.22,.61,.36,1);
}
.footer__links a:hover {
    color: #111;
    opacity: 1;
    padding-left: 14px;
}
.footer__links a:hover::before { transform: translateY(-50%) scaleX(1); }
.footer__contact p { font-size: .875rem; margin-bottom: 12px; line-height: 1.5; }
.footer__contact a { color: #555; border-bottom: 1px solid #c8cacc; }
.footer__contact a:hover { color: #111; border-color: #999; opacity: 1; }
.footer__contact strong { color: #888; font-weight: 500; }
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: .8125rem;
    color: #888;
}
.footer__bottom a { color: #888; }
.footer__bottom a:hover { color: #555; opacity: 1; }

/* ============================================================
   UTILITY
   ============================================================ */
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ============================================================
   MOBILE OVERLAY
   ============================================================ */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 80px 24px 40px;
    transform: translateX(100%);
    transition: transform .35s ease;
}
.mobile-overlay.active { transform: translateX(0); }
.mobile-overlay .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
.mobile-overlay .nav__link {
    font-size: 1.25rem;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}
.mobile-overlay .nav__dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
}
.mobile-overlay .dropdown__link {
    font-size: 1rem;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .header__nav { display: none; }
    .header__burger { display: flex; }
    
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stats__item + .stats__item::before { display: none; }
    
    .advantages__grid { grid-template-columns: repeat(2, 1fr); }
    
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    
    .steps__grid { grid-template-columns: 1fr; }
    .step { border-right: none; border-bottom: 1px solid #eee; }
    .step:last-child { border-bottom: none; }
    
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
    
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 1024px) {
    /* на узких экранах половины блока ставятся друг под друга,
       закрепление отключаем — направления идут обычным потоком */
    .dir {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .dir__left {
        position: relative;   /* не static: иначе абсолютные .dir__bg/.dir__shade
                                 «убегают» к .dirs и накрывают всю секцию */
        height: 56vh;
        min-height: 320px;
    }
    .dir__left-inner { padding: 88px 28px 28px; }
    .dir__right {
        min-height: 0;
        padding: 28px 0 8px;
    }
    /* на мобильном список обычный, без закрепления и проявления по скроллу */
    .dir__list {
        position: static;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 28px;
    }
    .dir__item {
        min-height: 0;
        box-shadow: none;
    }
    .dirs.js-reveal .dir__item {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .dir__left { height: 48vh; min-height: 280px; }
    .dir__left-inner { padding: 80px 20px 24px; }
    .dir__overline { font-size: .6875rem; }
    .dir__title { font-size: clamp(1.75rem, 7vw, 2.25rem); margin-bottom: 20px; }
    .dir__item { padding: 16px 18px; gap: 14px; }
    .dir__item-num { width: 36px; height: 36px; font-size: .75rem; }
    .dir__cta { padding: 12px 18px; font-size: .75rem; }
    .dir__list { padding: 0 20px; }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }

    .header__inner { padding: 0 20px; }
    .header__logo-img { height: 38px; }

    .hero-video { min-height: 80svh; }
    .hero-video__corner { max-width: 42vw; font-size: .9375rem; }
    .hero-video__corner--tl,
    .hero-video__corner--tr { top: 88px; }
    .hero-video__corner--tl,
    .hero-video__corner--bl { left: 20px; }
    .hero-video__corner--tr,
    .hero-video__corner--br { right: 20px; }
    .hero-video__corner--bl,
    .hero-video__corner--br { bottom: 20px; }
    .hero-video__axis { font-size: .75rem; }
    .hero-video__axis--top { top: 88px; }
    .hero-video__axis--bottom { bottom: 20px; }
    /* оси не доезжают до слов и на узких экранах (слова шире, переносятся) */
    .hero-video__line--h { left: 44vw; right: 44vw; }
    .hero-video__line--v { top: 118px; bottom: 48px; }
    .hero-video__axis--left { left: 20px; max-width: 38vw; white-space: normal; }
    .hero-video__axis--right { right: 20px; max-width: 38vw; white-space: normal; }

    .page-hero--bg { min-height: 380px; }
    .page-hero--bg .page-hero__inner { padding-top: 24px; }

    .stats__grid { grid-template-columns: 1fr 1fr; }
    .stats__item { padding: 32px 16px; }
    
    .advantages__grid { grid-template-columns: 1fr; }
    
    .grid--2 { grid-template-columns: 1fr; }
    .grid--3 { grid-template-columns: 1fr; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    
    .form { grid-template-columns: 1fr; }
    
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
    
    .gallery__grid { grid-template-columns: repeat(2, 1fr); }
    
    .clients__grid { gap: 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .stats__grid { grid-template-columns: 1fr; }
    .grid--4 { grid-template-columns: 1fr; }
    .hero-video__corner { font-size: .8125rem; max-width: 46vw; }
    .hero-video__axis { font-size: .6875rem; }
    .page-hero--bg { min-height: 320px; }
}

/* ============================================================
   ANIMATIONS (scroll reveal)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   LEGAL / ПОЛИТИКА / COOKIE / FORM CONSENT
   ============================================================ */

/* Длинный текст политики */
.legal-doc {
    max-width: 820px;
    margin: 0 auto;
    color: #333;
    line-height: 1.65;
    font-size: 1rem;
}
.legal-doc h2 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--ink);
    margin: 40px 0 14px;
    line-height: 1.3;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p { margin: 0 0 14px; }
.legal-doc ul { margin: 0 0 18px; padding-left: 22px; list-style: disc; color: #444; }
.legal-doc li { margin: 0 0 6px; line-height: 1.6; }
.legal-doc strong { color: var(--ink); }
.legal-doc a { color: var(--accent); text-decoration: underline; }
.legal-doc a:hover { opacity: .8; }
.legal-doc__footer {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: .875rem;
    color: #777;
}

/* Чекбокс согласия в формах */
.form__consent {
    grid-column: 1 / -1;
    margin: 4px 0 4px;
}
.form__consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: .875rem;
    color: #555;
    line-height: 1.45;
}
.form__consent input[type="checkbox"] {
    flex-shrink: 0;
    margin: 2px 0 0;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}
.form__consent a {
    color: var(--accent);
    text-decoration: underline;
}
.form__consent a:hover { opacity: .8; }

/* Cookie-баннер (нижняя плашка) */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2000;
    background: rgba(20, 20, 20, .96);
    color: #fff;
    padding: 14px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .08);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .25s ease, transform .25s ease;
}
.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner__text {
    margin: 0;
    font-size: .875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .85);
    flex: 1;
    min-width: 240px;
}
.cookie-banner__text a {
    color: #fff;
    text-decoration: underline;
}
.cookie-banner__text a:hover { color: var(--accent); }
.cookie-banner__btn {
    flex-shrink: 0;
    padding: 10px 22px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: .875rem;
    letter-spacing: .04em;
    border: none;
    cursor: pointer;
    transition: background .2s;
}
.cookie-banner__btn:hover { background: var(--accent-dark); }

/* Реквизиты в подвале */
.footer__legal {
    padding: 24px 0 16px;
    border-top: 1px solid #dcdee0;
    font-size: .8125rem;
    color: #888;
}
.footer__legal p { margin: 0 0 4px; }
.footer__legal p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
    .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 12px 16px; }
    .cookie-banner__inner { flex-direction: column; align-items: stretch; }
    .cookie-banner__btn { width: 100%; }
}
