/* ================================================================
   NOVODIGITAL — Design System v3 (доработанная версия)
   Полная палитра из брендбука + новые компоненты
   ================================================================ */

/* ── CSS Custom Properties ── */
:root {
    /* ── Green palette ── */
    --geodata-green: #1A423F;
    --sedimentary-teal: #3C887F;
    --mineral-lagoon: #55B3A9;
    --glacial-aquifer: #92D7C3;
    --limestone-chartreuse: #D1E760;
    --calcite-mist: #DEFFDE;

    /* ── Blue palette ── */
    --abyssal-basalt: #021214;
    --deep-shelf-blue: #3D809C;
    --glacial-current: #69BCD9;
    --ice-core-sky: #AADDF5;
    --chalk-sediment: #F3F3F3;
    --quartz-white: #FFFFFF;

    /* ── Semantic ── */
    --bg: #021214;
    --bg2: var(--geodata-green);
    --bg-card: rgba(26, 66, 63, 0.35);
    --text: var(--chalk-sediment);
    /* Тело текста — палитра брендбука: Glacial Aquifer */
    --text2: var(--glacial-aquifer);
    /* Приглушённый текст — палитра брендбука: Mineral Lagoon */
    --text3: var(--mineral-lagoon);
    --accent: var(--limestone-chartreuse);
    --border: rgba(85, 179, 169, 0.2);
    --border-strong: rgba(85, 179, 169, 0.35);

    /* ── Form fields (приглушённая мята, ближе к палитре сайта) ── */
    --field-bg: rgba(85, 179, 169, 0.12);
    --field-bg-focus: rgba(146, 215, 195, 0.18);

    /* ── Type (брендбук: Sofia Sans Condensed + Onest) ── */
    --f-display: 'Sofia Sans Condensed', sans-serif;
    --f-body: 'Onest', sans-serif;

    /* ── Типографическая шкала (минимум 12px / .75rem для читаемого текста) ── */
    --fs-xs: .75rem;    /* 12px — минимальный читаемый размер */
    --fs-sm: .82rem;    /* 13px — мелкий, но комфортный */
    --fs-base: .92rem;  /* 14.7px — основной текст */
    --fs-md: 1rem;      /* 16px — акцентный текст */
    --fs-lg: 1.1rem;    /* 17.6px — подзаголовки */

    /* ── Layout ── */
    --header-h: 120px;
    --max-w: 1280px;
    --pad: 40px;
    --section-gap: 72px;

    /* ── Анимации (глобальная скорость) ── */
    --transition-duration: .35s;
    --transition-easing: cubic-bezier(.4,0,.2,1);
}

/* ================================================================
   Reset
   ================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--f-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    /* Оптимизация рендеринга шрифтов */
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

::selection { background: var(--accent); color: var(--abyssal-basalt); }

/* ── Доступность: фокус-состояния (a11y) ── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
/* Убираем outline при клике мышкой, оставляем при Tab */
:focus:not(:focus-visible) {
    outline: none;
}

/* ── Skip-to-content (a11y) ── */
.skip-link {
    position: fixed;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--abyssal-basalt);
    font-family: var(--f-display);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0 0 4px 4px;
    transition: top .2s;
}
.skip-link:focus {
    top: 0;
}

/* ================================================================
   Triangle Background (canvas)
   ================================================================ */
.triangle-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.2;
}

/* ================================================================
   Header (прозрачный, интегрирован в первый блок как в PDF)
   ================================================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: auto;
    min-height: var(--header-h);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    transition: background .4s, box-shadow .4s, transform .4s var(--transition-easing), backdrop-filter .4s;
}
.header.scrolled {
    background: rgba(2, 18, 20, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 40px rgba(0,0,0,.3), 0 1px 0 rgba(209, 231, 96, 0.05);
}
/* Smart header: скрытие при скролле вниз */
.header.header--hidden {
    transform: translateY(-100%);
}
.header__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px var(--pad);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* Logo */
.logo { display: flex; flex-direction: column; align-items: flex-start; flex-shrink: 0; gap: 6px; }
.logo__img { height: 48px; width: auto; transition: opacity .3s; }
.logo:hover .logo__img { opacity: .85; }
.logo__tagline {
    font-family: var(--f-display);
    font-size: .6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    opacity: .7;
}

/* Nav — вертикальное меню справа, зелёный цвет, крупные пункты как в PDF */
.nav { display: flex; align-items: center; gap: 4px; }
.nav--vertical {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.nav__link {
    font-family: var(--f-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 6px 0;
    color: var(--accent);
    transition: color var(--transition-duration), transform var(--transition-duration);
    position: relative;
    text-align: right;
    transform-origin: right center;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-duration) var(--transition-easing);
}
.nav__link:hover {
    color: var(--calcite-mist);
    transform: scale(1.08);
    text-shadow: 0 0 20px rgba(209, 231, 96, 0.2);
}
.nav__link:hover::after,
.nav__link--active::after { transform: scaleX(1); }
.nav__link--active { color: var(--accent); }

/* CTA кнопка — без мерцания, простой акцент */
.nav__link--cta {
    position: relative;
    background: transparent;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.15rem;
    padding: 8px 0;
    margin-left: 0;
    margin-top: 4px;
    transition: color var(--transition-duration), transform var(--transition-duration);
}
/* Убираем все ::before и ::after от старого gradient border */
.nav__link--cta::before {
    display: none;
}
.nav__link--cta::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-duration) var(--transition-easing);
    clip-path: none;
    inset: auto;
}
.nav__link--cta:hover {
    color: var(--calcite-mist);
    transform: scale(1.08);
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 102;
}
.burger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--accent);
    transition: transform var(--transition-duration), opacity .25s;
    transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.mob-menu {
    position: fixed;
    inset: 0;
    z-index: 101;
    pointer-events: none;
}
.mob-menu.open { pointer-events: all; }

.mob-menu__bg {
    position: absolute;
    inset: 0;
    background: rgba(2, 18, 20, 0.96);
    backdrop-filter: blur(30px);
    opacity: 0;
    transition: opacity .4s;
}
.mob-menu.open .mob-menu__bg { opacity: 1; }

.mob-menu__logo {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity .5s .1s;
}
.mob-menu.open .mob-menu__logo { opacity: .5; }
.mob-menu__logo img { height: 44px; width: auto; }

.mob-menu__nav {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.mob-menu__link {
    font-family: var(--f-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    /* Закрытие: обратный порядок (последний исчезает первым) */
    transition: opacity .3s calc((3 - var(--i)) * .05s), transform .3s calc((3 - var(--i)) * .05s), color .3s;
}
.mob-menu.open .mob-menu__link {
    opacity: 1;
    transform: translateY(0);
    /* Открытие: прямой порядок */
    transition: opacity .5s calc(var(--i) * .08s + .15s), transform .5s calc(var(--i) * .08s + .15s), color .3s;
}
.mob-menu__link:hover { color: var(--accent); }
.mob-menu__link--cta { color: var(--accent); }
.mob-menu__link--active { color: var(--accent); }
.mob-menu__link--active::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--accent);
    margin: 4px auto 0;
}

.mob-menu__footer {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--text2);
    opacity: 0;
    transition: opacity .25s;
}
.mob-menu.open .mob-menu__footer {
    opacity: 1;
    transition: opacity .5s .45s;
}
.mob-menu__footer a { transition: color .3s; }
.mob-menu__footer a:hover { color: var(--accent); }

/* ================================================================
   Main
   ================================================================ */
.main {
    position: relative;
    z-index: 1;
    padding-top: var(--header-h);
}

/* ================================================================
   Section utilities
   ================================================================ */
.section {
    padding: var(--section-gap) var(--pad);
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-title {
    font-family: var(--f-display);
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -.01em;
}
/* Модификатор: анимация появления для заголовков страниц */
.section-title--animated {
    opacity: 0;
    animation: riseIn .8s .2s forwards;
}

.section-subtitle {
    font-family: var(--f-display);
    font-size: clamp(.88rem, 1.4vw, 1.1rem);
    font-weight: 500;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ── Градиентный разделитель между секциями ── */
.section-divider {
    height: 1px;
    max-width: var(--max-w);
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--sedimentary-teal) 20%, var(--accent) 50%, var(--sedimentary-teal) 80%, transparent);
    background-size: 200% 100%;
    opacity: .5;
    animation: shimmer 6s ease-in-out infinite;
}

/* ── Dynamic Structure Pattern (брендбук: вариативный паттерн) ── */
.dynamic-pattern {
    position: relative;
    overflow: hidden;
}
.dynamic-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .08;
    pointer-events: none;
    background:
        radial-gradient(ellipse 120px 120px at 20% 30%, var(--mineral-lagoon), transparent),
        radial-gradient(ellipse 80px 100px at 70% 60%, var(--limestone-chartreuse), transparent),
        radial-gradient(ellipse 100px 80px at 50% 80%, var(--glacial-current), transparent),
        /* Hex grid overlay */
        repeating-conic-gradient(from 30deg at 50% 50%, transparent 0deg, rgba(85,179,169,.04) 60deg, transparent 60deg) 0 0 / 100px 87px;
    z-index: 0;
}

/* ================================================================
   HERO — Index
   ================================================================ */
.hero {
    padding: 120px var(--pad) 64px;
    max-width: var(--max-w);
    margin: 0 auto;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero__label {
    font-family: var(--f-display);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--accent);
    margin-bottom: 36px;
    opacity: 0;
    animation: riseIn .8s .2s forwards;
}
.hero__heading {
    font-family: var(--f-display);
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    max-width: 920px;
    opacity: 0;
    animation: riseIn .8s .4s forwards;
}
.hero__heading em {
    font-style: normal;
    color: var(--accent);
}
/* Модификатор: уменьшенный hero для описания компании.
   Убран uppercase — длинный абзац в UPPERCASE с Sofia Sans Condensed нечитаем.
   Увеличен line-height для комфортного чтения. */
.hero__heading--sm {
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: -.01em;
}

/* ================================================================
   ABOUT — 3 columns
   ================================================================ */
.about {
    padding: var(--section-gap) var(--pad);
    max-width: var(--max-w);
    margin: 0 auto;
}
.about__top {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 60px;
    margin-bottom: 72px;
}
.about__label {
    font-family: var(--f-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
}
.about__label::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 56px; height: 3px;
    background: var(--accent);
}
/* Модификатор: уменьшенный заголовок «О компании», чтобы влезал в одну строку */
.about__label--sm {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
}
/* Lead-абзац — убран uppercase: длинный текст в Sofia Sans Condensed UPPERCASE нечитаем.
   Переключен на Onest для комфортного чтения абзацев. */
.about__lead {
    font-family: var(--f-body);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-weight: 500;
    line-height: 1.7;
    color: var(--text);
    letter-spacing: .01em;
}
.about__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-top: 1px solid var(--border);
    padding-top: 36px;
}
.about__col-num {
    font-family: var(--f-display);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: .1em;
}
/* Заголовки колонок — увеличены с .73rem до .88rem для чёткой иерархии */
.about__col-heading {
    font-family: var(--f-display);
    font-size: .88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 16px;
    line-height: 1.35;
}
.about__col-text {
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text2);
}
.about__col-text + .about__col-text { margin-top: 14px; }

/* ================================================================
   SERVICES — Honeycomb
   ================================================================ */
.svc-hero {
    padding: 100px var(--pad) 40px;
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
}

/* Honeycomb grid — OLD (оставлен для совместимости) */
.honeycomb {
    --hex-w: 190px;
    --hex-h: 110px;
    --gap: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 640px;
    margin: 56px auto;
    padding: 0 20px;
}
.honeycomb__row {
    display: flex;
    justify-content: center;
    gap: var(--gap);
    width: 100%;
}
.honeycomb__row:nth-child(even) {
    margin-top: calc(var(--gap) * -1 - 6px);
}

/* ================================================================
   Honeycomb DIAMOND — flat-top гексы, ГОРИЗОНТАЛЬНАЯ раскладка 1-2-3-2-1
   Гексы с плоской стороной сверху и снизу.
   ================================================================ */

/* 
   Геометрия: flat-top hex W=196, H=170
   clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%)
   colStep = W × 0.75 = 147  (горизонтальное смещение колонок)
   rowStep = H + 2 = 172     (вертикальное смещение в колонке)
   stagger = 86              (полупериод для нечётных колонок)
   
   Горизонтальный diamond (слева направо):
     Col 0 (1): left=0,   top=172
     Col 1 (2): left=147, top=86 / 258
     Col 2 (3): left=294, top=0 / 172 / 344
     Col 3 (2): left=441, top=86 / 258
     Col 4 (1): left=588, top=172
   Контейнер: 784 × 514
*/
.honeycomb-circle {
    position: relative;
    width: 784px;
    height: 514px;
    margin: 48px auto;
}

/* Центральный гекс — НАШИ РЕШЕНИЯ */
.hc-center {
    position: absolute;
    top: 172px;
    left: 294px;
    width: 196px;
    height: 170px;
    background: var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    z-index: 2;
    transition: background var(--transition-duration), transform var(--transition-duration), filter var(--transition-duration);
}
.hc-center:hover {
    background: var(--calcite-mist);
    transform: scale(1.06);
    filter: drop-shadow(0 0 20px rgba(209, 231, 96, 0.35));
}
.hc-center__logo {
    width: 56px;
    height: auto;
}
.hc-center__text {
    font-family: var(--f-display);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--abyssal-basalt);
    line-height: 1.2;
    text-align: center;
}

/* Декоративные лого-гексы (Col 2, сверху и снизу от центра) */
.hc-logo {
    position: absolute;
    width: 196px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 40, 42, 0.65);
    border: 1px solid rgba(85, 179, 169, 0.18);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    z-index: 1;
    transition: background var(--transition-duration), transform var(--transition-duration);
}
.hc-logo:hover {
    background: rgba(209, 231, 96, 0.08);
    transform: scale(1.04);
}
.hc-logo__img {
    width: 64px;
    height: auto;
    opacity: .55;
    transition: opacity var(--transition-duration);
}
.hc-logo:hover .hc-logo__img { opacity: .85; }
.hc-logo--left  { top: 0;    left: 294px; }   /* Верх центральной колонки */
.hc-logo--right { top: 344px; left: 294px; }  /* Низ центральной колонки */

/* Гексы с текстом — общие стили (flat-top) */
.hc-hex {
    position: absolute;
    width: 196px;
    height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    background: rgba(10, 40, 42, 0.85);
    border: 1px solid rgba(85, 179, 169, 0.25);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    padding: 18px 28px;
    cursor: default;
    transition: background var(--transition-duration), border-color var(--transition-duration), color var(--transition-duration), transform var(--transition-duration), filter var(--transition-duration);
    z-index: 1;
}
/* <picture> не должен ломать flex-layout гексов */
.hc-hex picture,
.hc-logo picture,
.hc-center picture { display: contents; }
.hc-hex:hover {
    background: rgba(209, 231, 96, 0.12);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.06);
    filter: drop-shadow(0 0 16px rgba(209, 231, 96, 0.2));
}
.hc-hex__icon {
    width: 36px;
    height: auto;
    opacity: .7;
    transition: opacity var(--transition-duration);
}
.hc-hex:hover .hc-hex__icon { opacity: 1; }
.hc-hex__text {
    font-family: var(--f-display);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.4;
    color: var(--text);
}

/* ── Позиции: горизонтальный diamond 1-2-3-2-1 ──
   Col 0 (лево):  hex-0 (Разработка ПО)
   Col 1:         hex-5 (AI-решения) верх     hex-1 (Сайты) низ
   Col 2:         logo-L верх   CENTER   logo-R низ
   Col 3:         hex-4 (Инфосистемы) верх    hex-2 (QA) низ
   Col 4 (право): hex-3 (Экспертиза)
*/
.hc-hex--0 { top: 172px; left: 0; }       /* Col 0: лево-центр */
.hc-hex--5 { top: 86px;  left: 147px; }   /* Col 1: верх */
.hc-hex--1 { top: 258px; left: 147px; }   /* Col 1: низ */
.hc-hex--4 { top: 86px;  left: 441px; }   /* Col 3: верх */
.hc-hex--2 { top: 258px; left: 441px; }   /* Col 3: низ */
.hc-hex--3 { top: 172px; left: 588px; }   /* Col 4: право-центр */

/* Hover: простой scale */
.hc-hex--0:hover,
.hc-hex--1:hover,
.hc-hex--2:hover,
.hc-hex--3:hover,
.hc-hex--4:hover,
.hc-hex--5:hover {
    transform: scale(1.06);
}

/* Decorative rings around honeycomb */
.honeycomb-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 620px;
    height: 620px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(85, 179, 169, 0.08);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 40px rgba(85, 179, 169, 0.04);
}
.honeycomb-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(85, 179, 169, 0.05);
    border-radius: 50%;
    pointer-events: none;
}
.hex {
    width: var(--hex-w);
    height: var(--hex-h);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--f-display);
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.4;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    padding: 14px 28px;
    cursor: default;
    transition: background var(--transition-duration), border-color var(--transition-duration), color var(--transition-duration), transform var(--transition-duration);
}
.hex:hover {
    background: rgba(209, 231, 96, 0.12);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.04);
}
.hex--center {
    background: var(--accent);
    color: var(--abyssal-basalt);
    font-size: .78rem;
    font-weight: 700;
    border-color: var(--accent);
}
.hex--center:hover { background: var(--calcite-mist); transform: scale(1.06); }
.hex__logo { height: 44px; width: auto; }

/* ── Honeycomb v2 — обновлённая версия с изображениями (как в PDF) ── */
.honeycomb--v2 {
    --hex-w: 200px;
    --hex-h: 170px;
    max-width: 700px;
}
.honeycomb--v2 .honeycomb__row:nth-child(even) {
    margin-top: calc(var(--gap) * -1 - 18px);
}
.honeycomb--v2 .honeycomb__row:nth-child(odd):not(:first-child) {
    margin-top: calc(var(--gap) * -1 - 18px);
}
.hex--v2 {
    width: var(--hex-w);
    height: var(--hex-h);
    flex-direction: column;
    gap: 6px;
    padding: 18px 24px;
    background: rgba(10, 40, 42, 0.85);
    border: 1px solid rgba(85, 179, 169, 0.25);
}
.hex--v2 .hex__icon {
    width: 40px;
    height: auto;
    opacity: .7;
    transition: opacity var(--transition-duration);
}
.hex--v2:hover .hex__icon { opacity: 1; }
.hex--v2 .hex__text {
    font-size: .64rem;
    line-height: 1.4;
}
/* Центральная ячейка v2 */
.hex--v2.hex--center {
    background: var(--accent);
    border-color: var(--accent);
    gap: 4px;
}
.hex--v2.hex--center .hex__logo-big {
    width: 56px;
    height: auto;
}
.hex--v2.hex--center .hex__center-text {
    font-family: var(--f-display);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--abyssal-basalt);
    line-height: 1.2;
    text-align: center;
}
.hex--v2.hex--center:hover {
    background: var(--calcite-mist);
}

/* Motto */
.svc-motto {
    padding: 32px var(--pad) 72px;
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}
.svc-motto__icon {
    width: 56px; height: 56px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.svc-motto__img {
    flex-shrink: 0;
    height: 52px;
    width: auto;
    opacity: .6;
}
.svc-motto__text {
    font-family: var(--f-display);
    font-size: clamp(1.4rem, 2.8vw, 2.4rem);
    font-weight: 700;
    text-transform: uppercase;
}

/* Service cards */
.svc-cards {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad) var(--section-gap);
}
.svc-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: background .4s;
}
.svc-card:last-child { border-bottom: 1px solid var(--border); }
.svc-card:hover {
    background: rgba(26, 66, 63, 0.18);
    box-shadow: inset 0 0 60px rgba(209, 231, 96, 0.02);
}
.svc-card:nth-child(even) { direction: rtl; }
.svc-card:nth-child(even) > * { direction: ltr; }

.svc-card__body {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.svc-card__title {
    font-family: var(--f-display);
    font-size: clamp(1.1rem, 1.7vw, 1.4rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 18px;
    line-height: 1.35;
}
.svc-card__text {
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text2);
    margin-bottom: 16px;
}
.svc-card__meta {
    display: flex;
    gap: 28px;
    font-size: var(--fs-sm);
    color: var(--mineral-lagoon);
    margin-bottom: 22px;
    font-weight: 500;
}
.svc-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-display);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: .06em;
    transition: gap var(--transition-duration);
}
.svc-card__cta:hover { gap: 16px; text-shadow: 0 0 12px rgba(209, 231, 96, 0.25); }
.svc-card__cta svg { width: 16px; height: 16px; flex-shrink: 0; }

.svc-card__visual {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    transition: background-position .3s ease-out, background-size .3s ease-out;
}
/* Animated triangle pattern inside visual */
.svc-card__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .25;
    background-image:
        linear-gradient(60deg, transparent 62%, rgba(209,231,96,.08) 62%, rgba(209,231,96,.08) 63%, transparent 63%),
        linear-gradient(-60deg, transparent 62%, rgba(85,179,169,.08) 62%, rgba(85,179,169,.08) 63%, transparent 63%),
        linear-gradient(180deg, transparent 46%, rgba(255,255,255,.03) 46%, rgba(255,255,255,.03) 47%, transparent 47%);
    background-size: 80px 70px;
}
/* SVG Pattern overlay на карточках услуг */
.svc-card__pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .12;
    pointer-events: none;
}

/* ================================================================
   CASES
   ================================================================ */
.cases-hero {
    padding: 100px var(--pad) 40px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.cases-tabs {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    align-items: center;
}
.cases-tab {
    font-family: var(--f-display);
    font-size: .92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text2);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-duration);
}
.cases-tab::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-duration);
}
.cases-tab--active { color: var(--text); }
.cases-tab--active::after { transform: scaleX(1); }
.cases-tab:hover { color: var(--accent); }
.cases-sep { color: var(--border); font-size: 1rem; user-select: none; }

/* Case cards */
.cases-list {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 56px var(--pad) var(--section-gap);
}
.case {
    background: linear-gradient(135deg, rgba(26,66,63,.25), rgba(61,128,156,.08));
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 56px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    transition: border-color .4s, box-shadow .4s, transform .4s var(--transition-easing);
    /* Для 3D tilt */
    transform-style: preserve-3d;
    will-change: transform;
}
.case:hover {
    border-color: rgba(209, 231, 96, 0.25);
    box-shadow: 0 8px 48px rgba(0,0,0,.25), 0 0 32px rgba(209, 231, 96, 0.06);
    transform: translateY(-3px);
}
.case::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(85,179,169,.08), transparent 70%);
    pointer-events: none;
}
/* Badge — увеличен с .62rem до .75rem для читаемости */
.case__badge {
    display: inline-block;
    font-family: var(--f-display);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    background: rgba(209,231,96,.08);
    border: 1px solid rgba(209,231,96,.25);
    padding: 8px 20px;
    margin-bottom: 24px;
}
.case__title {
    font-family: var(--f-display);
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.35;
}
/* Описание кейса — основной текст, увеличен контраст */
.case__desc {
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text2);
    max-width: 720px;
    margin-bottom: 18px;
}
.case__desc--italic {
    font-style: italic;
    color: var(--mineral-lagoon);
    font-size: var(--fs-sm);
    line-height: 1.75;
}
.case__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
/* Tags — увеличены с .72rem до .78rem */
.case__tag {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--mineral-lagoon);
    background: rgba(85,179,169,.08);
    border: 1px solid rgba(85,179,169,.18);
    padding: 6px 16px;
    border-radius: 2px;
    transition: border-color var(--transition-duration), color var(--transition-duration);
}
.case__tag:hover { border-color: var(--mineral-lagoon); color: var(--text); }
/* CTA — увеличен с .78rem, увеличен вес */
.case__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-display);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: .04em;
    transition: gap var(--transition-duration);
}
.case__cta:hover { gap: 18px; text-shadow: 0 0 12px rgba(209, 231, 96, 0.25); }

/* Фильтрация кейсов — скрытие/анимация */
.case--hidden {
    display: none;
}

/* Кейсы — визуальная раскладка с картинками */
.case__visual-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 36px;
    align-items: center;
    margin-bottom: 24px;
}
.case__visual-row--reverse {
    grid-template-columns: 1fr 1fr;
}
.case__content {
    display: flex;
    flex-direction: column;
}
.case__images {
    display: flex;
    align-items: center;
    justify-content: center;
}
.case__images picture { display: contents; }
.case__images--duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.case__img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform .4s var(--transition-easing), opacity .4s;
}
.case__img--badge {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 4px 24px rgba(85, 179, 169, 0.3));
}
.case__img--model {
    border-radius: 6px;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.4));
    object-fit: cover;
}
.case:hover .case__img {
    transform: scale(1.03);
}

/* ================================================================
   CONTACT — Mint form fields
   ================================================================ */
.contact {
    padding: 100px var(--pad);
    max-width: var(--max-w);
    margin: 0 auto;
}
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    margin-top: 56px;
}

/* Info */
.contact__section { margin-bottom: 36px; }
/* Лейбл секции — увеличен с .68rem */
.contact__label {
    font-family: var(--f-display);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 14px;
}
/* Текст контактов — увеличен до .92rem */
.contact__text {
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--text2);
}
.contact__text a { color: var(--mineral-lagoon); transition: color .3s; }
.contact__text a:hover { color: var(--accent); }
.contact__text strong { color: var(--text); font-weight: 600; }
/* Уменьшенный шрифт для ОКВЭД-блока — но не меньше .82rem */
.contact__text--sm { font-size: var(--fs-sm); color: var(--text3); }
/* Задержка для scroll-reveal (правая колонка формы) */
.rv--delayed { transition-delay: .15s; }

/* Form — MINT FIELDS like Figma */
.form { display: flex; flex-direction: column; gap: 0; }

.field {
    position: relative;
}
/* Floating label — всегда видно, что за поле */
.field__label {
    position: absolute;
    top: 16px;
    left: 20px;
    font-family: var(--f-display);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--mineral-lagoon);
    pointer-events: none;
    transition: transform .25s ease, font-size .25s ease, color .25s ease;
    transform-origin: left top;
}
/* При фокусе или заполнении — label сдвигается вверх */
.field__input:focus ~ .field__label,
.field__input:not(:placeholder-shown) ~ .field__label,
.field__textarea:focus ~ .field__label,
.field__textarea:not(:placeholder-shown) ~ .field__label {
    transform: translateY(-12px);
    font-size: .68rem;
    color: var(--accent);
}
.field__input,
.field__textarea {
    width: 100%;
    padding: 22px 20px 10px;
    font-family: var(--f-body);
    font-size: var(--fs-base);
    color: var(--text);
    background: var(--field-bg);
    border: none;
    border-bottom: 1px solid rgba(85, 179, 169, 0.2);
    outline: none;
    transition: background var(--transition-duration), border-color var(--transition-duration), box-shadow var(--transition-duration);
}
/* Placeholder скрыт — используется floating label */
.field__input::placeholder,
.field__textarea::placeholder {
    color: transparent;
}
.field__input:focus,
.field__textarea:focus {
    background: var(--field-bg-focus);
    border-bottom-color: var(--accent);
    box-shadow: 0 2px 12px rgba(209, 231, 96, 0.08);
}
.field__textarea {
    resize: vertical;
    min-height: 120px;
}
/* Валидация: ошибка */
.field--error .field__input,
.field--error .field__textarea {
    border-bottom-color: #ff6b6b;
    box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.3);
}

.form__bottom {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn {
    font-family: var(--f-display);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 16px 44px;
    background: var(--accent);
    color: var(--abyssal-basalt);
    border: none;
    cursor: pointer;
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
    transition: background var(--transition-duration), transform var(--transition-duration), filter var(--transition-duration);
}
.btn:hover {
    background: var(--calcite-mist);
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 20px rgba(209, 231, 96, 0.3));
}
.btn:active {
    transform: translateY(0);
    filter: drop-shadow(0 2px 8px rgba(209, 231, 96, 0.15));
}
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }

/* Кнопка отправки — анимация состояний */
.btn--loading {
    pointer-events: none;
    opacity: .8;
    position: relative;
    color: transparent;
}
.btn--loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 20px; height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--abyssal-basalt);
    border-top-color: transparent;
    border-radius: 50%;
    animation: btnSpin .6s linear infinite;
}
@keyframes btnSpin {
    to { transform: rotate(360deg); }
}
.btn--success {
    background: var(--mineral-lagoon);
    pointer-events: none;
    color: var(--abyssal-basalt);
}

.form__consent {
    font-size: var(--fs-xs);
    color: var(--text3);
    max-width: 280px;
    line-height: 1.55;
}
.form__consent a {
    color: var(--mineral-lagoon);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .3s;
}
.form__consent a:hover { color: var(--accent); }

.form__msg {
    margin-top: 16px;
    font-family: var(--f-display);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--accent);
    min-height: 24px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s, transform .4s;
}
.form__msg.show { opacity: 1; transform: translateY(0); }
.form__msg--error { color: #ff6b6b; }

/* ================================================================
   Footer
   ================================================================ */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    background: rgba(2, 18, 20, 0.5);
}
/* Subtle glow line above footer */
.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(209, 231, 96, 0.2) 50%, transparent);
    pointer-events: none;
}
.footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 48px var(--pad);
}
.footer__top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 36px;
}
.footer__col {
    font-size: var(--fs-sm);
    line-height: 1.85;
    color: var(--text2);
}
.footer__col--right { text-align: right; font-size: var(--fs-xs); }
.footer__logo { display: block; margin-bottom: 20px; }
.footer__logo img { height: 38px; width: auto; opacity: .7; transition: opacity .3s; }
.footer__logo:hover img { opacity: 1; }
.footer__link {
    display: block;
    font-family: var(--f-display);
    font-size: var(--fs-xs);
    font-weight: 600;
    margin-bottom: 4px;
    transition: color .3s;
}
.footer__link--accent { color: var(--accent); }
.footer__link:hover { color: var(--calcite-mist); text-shadow: 0 0 8px rgba(209, 231, 96, 0.15); }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
/* Nav в футере — увеличен с .68rem */
.footer__nav { display: flex; gap: 28px; }
.footer__nav a {
    font-family: var(--f-display);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text2);
    transition: color .3s;
}
.footer__nav a:hover { color: var(--accent); text-shadow: 0 0 12px rgba(209, 231, 96, 0.15); }
/* Инфо в футере — увеличен с .72rem */
.footer__info {
    text-align: right;
    font-size: var(--fs-xs);
    color: var(--text3);
    line-height: 1.85;
}

/* ================================================================
   Toast-уведомление
   ================================================================ */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: rgba(2, 18, 20, 0.96);
    border: 1px solid var(--accent);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 16px rgba(209, 231, 96, 0.08);
    backdrop-filter: blur(12px);
    font-family: var(--f-display);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--accent);
    transform: translateX(120%);
    transition: transform .4s var(--transition-easing);
    pointer-events: none;
}
.toast.toast--visible {
    transform: translateX(0);
    pointer-events: auto;
}
.toast.toast--error {
    border-color: #ff6b6b;
    color: #ff6b6b;
}
.toast__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.toast__close {
    flex-shrink: 0;
    width: 20px; height: 20px;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: .6;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    margin-left: 8px;
    transition: opacity .2s;
}
.toast__close:hover { opacity: 1; }

/* ================================================================
   Scroll-to-top
   ================================================================ */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 90;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 18, 20, 0.85);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity var(--transition-duration), visibility var(--transition-duration), transform var(--transition-duration), background var(--transition-duration);
}
.scroll-top svg { width: 20px; height: 20px; }
.scroll-top.scroll-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background: var(--geodata-green);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(209, 231, 96, 0.15);
    transform: translateY(-3px);
}

/* ================================================================
   Cursor follower (desktop)
   ================================================================ */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(85, 179, 169, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: opacity .3s, width .4s ease, height .4s ease, background .4s ease;
    opacity: 0;
    will-change: transform;
}
.cursor-glow--active { opacity: 1; }

/* ================================================================
   Cookie-баннер
   ================================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px var(--pad);
    background: rgba(2, 18, 20, 0.96);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transform: translateY(100%);
    transition: transform .5s var(--transition-easing);
}
.cookie-banner--visible {
    transform: translateY(0);
}
.cookie-banner__text {
    font-size: var(--fs-sm);
    color: var(--text2);
    max-width: 600px;
    line-height: 1.55;
}
.cookie-banner__text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner__btn {
    font-family: var(--f-display);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 28px;
    background: var(--accent);
    color: var(--abyssal-basalt);
    border: none;
    cursor: pointer;
    transition: background var(--transition-duration);
    flex-shrink: 0;
}
.cookie-banner__btn:hover { background: var(--calcite-mist); }
.cookie-banner__btn--reject {
    background: transparent;
    color: var(--text2);
    border: 1px solid var(--border-strong);
}
.cookie-banner__btn--reject:hover { background: rgba(85, 179, 169, 0.1); color: var(--text); }
.cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ================================================================
   404 Page
   ================================================================ */
.page404 {
    min-height: calc(100vh - var(--header-h) - 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px var(--pad);
    position: relative;
}
.page404__code {
    font-family: var(--f-display);
    font-size: clamp(6rem, 14vw, 12rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    opacity: .15;
}
.page404__title {
    font-family: var(--f-display);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: -20px;
    margin-bottom: 12px;
}
.page404__text {
    font-size: .95rem;
    color: var(--text2);
    margin-bottom: 32px;
    max-width: 480px;
}
.page404__links {
    display: flex;
    gap: 20px;
    align-items: center;
}
.page404__links a:not(.btn) {
    font-family: var(--f-display);
    font-size: .78rem;
    font-weight: 600;
    color: var(--mineral-lagoon);
    transition: color var(--transition-duration);
}
.page404__links a:not(.btn):hover { color: var(--accent); }
.page404__hex {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    opacity: .04;
    pointer-events: none;
}

/* ================================================================
   Animations
   ================================================================ */
@keyframes riseIn {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(209, 231, 96, 0); }
    50% { box-shadow: 0 0 24px 2px rgba(209, 231, 96, 0.15); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Scroll reveal — базовый (снизу) */
.rv {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .7s ease, transform .7s ease;
}
.rv.vis { opacity: 1; transform: translateY(0); }

/* Scroll reveal — варианты направлений */
.rv--left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity .7s ease, transform .7s ease;
}
.rv--left.vis { opacity: 1; transform: translateX(0); }

.rv--right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .7s ease, transform .7s ease;
}
.rv--right.vis { opacity: 1; transform: translateX(0); }

.rv--scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity .6s ease, transform .6s ease;
}
.rv--scale.vis { opacity: 1; transform: scale(1); }

/* Stagger children — дети скрыты, при .vis появляются каскадом */
.stg > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.stg.vis > * {
    opacity: 1;
    transform: translateY(0);
}
/* Задержки через nth-child (более высокая специфичность → delay применится) */
.stg.vis > *:nth-child(1) { transition-delay: .08s; }
.stg.vis > *:nth-child(2) { transition-delay: .16s; }
.stg.vis > *:nth-child(3) { transition-delay: .24s; }
.stg.vis > *:nth-child(4) { transition-delay: .32s; }
.stg.vis > *:nth-child(5) { transition-delay: .40s; }
.stg.vis > *:nth-child(6) { transition-delay: .48s; }
.stg.vis > *:nth-child(7) { transition-delay: .56s; }

/* Radial stagger — для honeycomb: центр появляется первым, потом по кругу */
.stg--radial .hc-center {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity .5s ease, transform .5s ease, filter .5s ease;
}
.stg--radial.vis .hc-center {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0s;
}
.stg--radial .hc-hex {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity .5s ease, transform .5s ease, filter .5s ease;
}
.stg--radial.vis .hc-hex {
    opacity: 1;
    transform: scale(1);
}
/* Stagger delays: от центра наружу для горизонтального diamond */
.stg--radial.vis .hc-hex--0 { transition-delay: .30s; } /* Col 0: лево */
.stg--radial.vis .hc-hex--5 { transition-delay: .18s; } /* Col 1 */
.stg--radial.vis .hc-hex--1 { transition-delay: .22s; } /* Col 1 */
.stg--radial.vis .hc-hex--4 { transition-delay: .18s; } /* Col 3 */
.stg--radial.vis .hc-hex--2 { transition-delay: .22s; } /* Col 3 */
.stg--radial.vis .hc-hex--3 { transition-delay: .30s; } /* Col 4: право */

/* Декоративные лого-гексы — появляются вместе с центром */
.stg--radial .hc-logo {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity .5s ease, transform .5s ease;
}
.stg--radial.vis .hc-logo {
    opacity: 1;
    transform: scale(1);
    transition-delay: .08s;
}

/* ================================================================
   PRIVACY POLICY
   ================================================================ */
.privacy {
    padding: 100px var(--pad) 80px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.privacy__body {
    max-width: 820px;
    margin: 56px auto 0;
}
.privacy__updated {
    font-family: var(--f-display);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.privacy__section {
    margin-bottom: 48px;
}
.privacy__heading {
    font-family: var(--f-display);
    font-size: clamp(.88rem, 1.2vw, 1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    line-height: 1.4;
}
.privacy__section p {
    font-size: var(--fs-base);
    line-height: 1.75;
    color: var(--text2);
    margin-bottom: 14px;
}
.privacy__section p:last-child { margin-bottom: 0; }
.privacy__section a {
    color: var(--mineral-lagoon);
    transition: color .3s;
}
.privacy__section a:hover { color: var(--accent); }
.privacy__section strong {
    color: var(--text);
    font-weight: 600;
}

/* Info grid (реквизиты) */
.privacy__info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
    margin: 16px 0;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.privacy__info-grid--compact {
    grid-template-columns: repeat(3, 1fr);
}
.privacy__info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: var(--fs-base);
    color: var(--text2);
    line-height: 1.5;
}
.privacy__info-label {
    font-family: var(--f-display);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
}

/* Numbered list */
.privacy__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}
.privacy__list-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--text2);
    padding: 12px 16px;
    background: rgba(26, 66, 63, 0.2);
    border-left: 2px solid var(--border-strong);
    border-radius: 0 6px 6px 0;
    transition: border-color .3s, background .3s;
}
.privacy__list-item:hover {
    border-left-color: var(--accent);
    background: rgba(26, 66, 63, 0.35);
}
.privacy__list-marker {
    font-family: var(--f-display);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--accent);
    min-width: 24px;
    padding-top: 2px;
    flex-shrink: 0;
}

/* Back link */
.privacy__back {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.privacy__back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-display);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--mineral-lagoon);
    transition: color .3s, gap .3s;
}
.privacy__back-link:hover {
    color: var(--accent);
    gap: 12px;
}
.privacy__back-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1024px) {
    :root { --section-gap: 56px; }
    .about__top { grid-template-columns: 1fr; gap: 28px; }
    .about__cols { grid-template-columns: 1fr; gap: 28px; }
    .contact__grid { grid-template-columns: 1fr; gap: 48px; }
    /* Контактная информация — в 2 колонки на планшете */
    .rv--left { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
    .rv--left .contact__section:last-child { grid-column: 1 / -1; }
    .svc-card { grid-template-columns: 1fr; }
    .svc-card:nth-child(even) { direction: ltr; }
    .svc-card__visual { min-height: 220px; }
    .svc-card__body { padding: 36px 32px; }
    .case { padding: 40px; }
    /* Сотовая сетка — уменьшаем (flat-top горизонтальный diamond) */
    .honeycomb-circle { width: 656px; height: 430px; }
    .hc-hex { width: 164px; height: 142px; padding: 14px 20px; }
    .hc-hex__icon { width: 30px; }
    .hc-hex__text { font-size: .75rem; }
    .hc-center { width: 164px; height: 142px; }
    .hc-center__logo { width: 46px; }
    .hc-center__text { font-size: .75rem; }
    .hc-logo { width: 164px; height: 142px; }
    .hc-logo__img { width: 52px; }
    /* Пересчёт: W=164, colStep=123, rowStep=144, stagger=72 */
    .hc-hex--0 { top: 144px; left: 0; }
    .hc-hex--5 { top: 72px;  left: 123px; }
    .hc-hex--1 { top: 216px; left: 123px; }
    .hc-logo--left  { top: 0;    left: 246px; }
    .hc-center      { top: 144px; left: 246px; }
    .hc-logo--right { top: 288px; left: 246px; }
    .hc-hex--4 { top: 72px;  left: 369px; }
    .hc-hex--2 { top: 216px; left: 369px; }
    .hc-hex--3 { top: 144px; left: 492px; }
    /* Кейсы — изображения */
    .case__visual-row { grid-template-columns: 1fr; gap: 24px; }
    .case__visual-row--reverse { grid-template-columns: 1fr; }
    .case__img--badge { width: 180px; margin: 0 auto; }
    /* Privacy */
    .privacy__info-grid--compact { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; --section-gap: 40px; --pad: 20px; }
    .nav { display: none; }
    .burger { display: flex; }
    .header__inner { padding: 16px var(--pad); align-items: center; }
    .logo { max-width: calc(100% - 60px); overflow: hidden; gap: 4px; }
    .logo__img { height: 38px; max-width: 100%; }
    .logo__tagline { display: none; }

    /* Сотовая сетка — мобильная версия в колонку (flat-top) */
    .honeycomb-circle {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 20px;
    }
    .honeycomb-circle::before { display: none; }
    .honeycomb-circle::after { display: none; }
    .hc-center {
        position: relative;
        top: auto; left: auto;
        width: 180px; height: 156px;
    }
    .hc-center:hover { transform: scale(1.06); }
    .hc-hex {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto; bottom: auto;
        width: 180px; height: 156px;
        transform: none !important;
    }
    .hc-hex:hover { transform: scale(1.06) !important; }
    /* Скрываем декоративные лого-гексы на мобильных */
    .hc-logo { display: none; }

    /* Radial stagger → simple stagger on mobile */
    .stg--radial .hc-center { transform: none; }
    .stg--radial.vis .hc-center { transform: none; }
    .stg--radial .hc-hex { transform: none !important; }
    .stg--radial.vis .hc-hex { transform: none !important; }

    .form__bottom { flex-direction: column; align-items: flex-start; }

    /* Форма — компактнее на мобильных */
    .field__input,
    .field__textarea { padding: 20px 16px 8px; font-size: .9rem; }
    .field__label { left: 16px; top: 14px; }
    .field__textarea { min-height: 100px; }
    .btn { padding: 14px 36px; width: 100%; text-align: center; }

    /* Hero heading — меньше на мобильных */
    .hero__heading { font-size: clamp(1.5rem, 5vw, 2.2rem); }
    .hero__heading--sm { font-size: clamp(1.1rem, 3.5vw, 1.6rem); }

    /* Кейсы — компактнее */
    .case { padding: 28px 20px; }
    .case__title { font-size: 1.1rem; }

    .footer__logo img { height: 32px; }
    .footer__top { flex-direction: column; gap: 20px; }
    .footer__col--right { text-align: left; }
    .footer__bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
    .footer__nav { flex-wrap: wrap; gap: 8px; }
    .footer__nav a { padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; }
    .footer__info { text-align: left; }

    /* 404 — mobile */
    .page404 { padding: 60px var(--pad); }
    .page404__code { font-size: clamp(4rem, 20vw, 8rem); }
    .page404__title { font-size: 1.3rem; margin-top: -12px; }
    .page404__text { font-size: .88rem; }
    .page404__links { flex-direction: column; gap: 16px; }
    .page404__links .btn { width: 100%; text-align: center; }

    /* Контактная информация — обратно в 1 колонку на мобильных */
    .rv--left { display: block; }

    /* Скрыть cursor follower на мобильных */
    .cursor-glow { display: none; }

    .cookie-banner { flex-direction: column; gap: 12px; text-align: center; }
    .cookie-banner__actions { width: 100%; justify-content: center; }
    .toast { right: 12px; left: 12px; top: 12px; }
    .scroll-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }

    /* Кейсы */
    .case__images--duo { grid-template-columns: 1fr; }
    .case__img--badge { width: 160px; }

    /* Privacy — mobile */
    .privacy { padding: 80px var(--pad) 48px; }
    .privacy__body { margin-top: 32px; }
    .privacy__info-grid { grid-template-columns: 1fr; padding: 16px; }
    .privacy__info-grid--compact { grid-template-columns: 1fr; }
    .privacy__section { margin-bottom: 36px; }
    .privacy__list-item { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .honeycomb-circle { gap: 8px; }
    .hc-hex { width: 160px; height: 138px; padding: 12px 18px; }
    .hc-hex__icon { width: 24px; }
    .hc-hex__text { font-size: .75rem; }
    .hc-center { width: 160px; height: 138px; }
    .hc-center__logo { width: 36px; }
    .hc-center__text { font-size: .75rem; }
    .hero__heading { font-size: 1.6rem; }
    .hero__heading--sm { font-size: 1.2rem; line-height: 1.45; }
    /* Увеличиваем минимальный читаемый текст на мобильных */
    .about__col-text { font-size: .88rem; }
    .svc-card__text { font-size: .88rem; }
    .case__desc { font-size: .88rem; }
}

/* ================================================================
   Reduced Motion (a11y / WCAG)
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html { scroll-behavior: auto; }
    .rv, .rv--left, .rv--right, .rv--scale { opacity: 1; transform: none; }
    .stg > *, .stg--radial .hc-center, .stg--radial .hc-hex, .stg--radial .hc-logo { opacity: 1; transform: none; }
    .preloader { display: none !important; }
    .cursor-glow { display: none; }
    .triangle-bg { opacity: 0.1; }
    .section-divider { animation: none; }
}
