/* ==========================================================================
   Global Asia Trade — main stylesheet
   Палитра и типографика повторяют референс: navy + gold, Jost / Golos Text
   ========================================================================== */

/* -------------------- плавная смена темы --------------------------------- */
/* Тема меняет только значения CSS-переменных на <html>. Обычные переменные
   браузер переключает мгновенно, поэтому цветовые токены зарегистрированы
   как <color>: зарегистрированные свойства умеют анимироваться, а фон, текст,
   рамки, тени в кнопках и градиенты всех блоков подхватывают промежуточные
   значения сами (см. transition у html ниже). Незарегистрированные токены
   (--shadow-soft, --navy-*, --gold*) в темах не меняются. */

@property --paper { syntax: '<color>'; inherits: true; initial-value: #f7f6f3; }
@property --paper-2 { syntax: '<color>'; inherits: true; initial-value: #efede7; }
@property --surface { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --surface-2 { syntax: '<color>'; inherits: true; initial-value: #fbfaf7; }
@property --panel-tint { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0.6); }
@property --ink { syntax: '<color>'; inherits: true; initial-value: #15122b; }
@property --ink-muted { syntax: '<color>'; inherits: true; initial-value: #5c5972; }
@property --ink-strong { syntax: '<color>'; inherits: true; initial-value: #0b0033; }
@property --ink-faded { syntax: '<color>'; inherits: true; initial-value: rgba(21, 18, 43, 0.48); }
@property --ink-hover { syntax: '<color>'; inherits: true; initial-value: #231767; }
@property --line { syntax: '<color>'; inherits: true; initial-value: rgba(21, 18, 43, 0.12); }
@property --line-strong { syntax: '<color>'; inherits: true; initial-value: rgba(11, 0, 51, 0.28); }
@property --link-underline { syntax: '<color>'; inherits: true; initial-value: rgba(11, 0, 51, 0.25); }
@property --field-border { syntax: '<color>'; inherits: true; initial-value: rgba(21, 18, 43, 0.18); }
@property --field-placeholder { syntax: '<color>'; inherits: true; initial-value: rgba(21, 18, 43, 0.38); }
@property --focus-border { syntax: '<color>'; inherits: true; initial-value: #0b0033; }
@property --control-accent { syntax: '<color>'; inherits: true; initial-value: #0b0033; }
@property --outline-border { syntax: '<color>'; inherits: true; initial-value: rgba(11, 0, 51, 0.35); }
@property --tile-solid { syntax: '<color>'; inherits: true; initial-value: #0b0033; }
@property --tile-solid-ink { syntax: '<color>'; inherits: true; initial-value: #d4af5e; }
@property --chip-solid { syntax: '<color>'; inherits: true; initial-value: #0b0033; }
@property --chip-solid-ink { syntax: '<color>'; inherits: true; initial-value: #f6f5ff; }
@property --chip-solid-accent { syntax: '<color>'; inherits: true; initial-value: #d4af5e; }
@property --btn-solid { syntax: '<color>'; inherits: true; initial-value: #0b0033; }
@property --btn-solid-ink { syntax: '<color>'; inherits: true; initial-value: #f6f5ff; }
@property --btn-solid-hover { syntax: '<color>'; inherits: true; initial-value: #231767; }
@property --danger { syntax: '<color>'; inherits: true; initial-value: #b42318; }
@property --success { syntax: '<color>'; inherits: true; initial-value: #16794a; }
@property --motif-ink { syntax: '<color>'; inherits: true; initial-value: rgba(11, 0, 51, 0.5); }

:root {
    color-scheme: light;
    --navy-950: #0b0033;
    --navy-900: #150a45;
    --navy-800: #231767;
    --gold: #d4af5e;
    --gold-soft: #e9d191;
    --paper: #f7f6f3;
    --paper-2: #efede7;
    --ink: #15122b;
    --ink-muted: #5c5972;
    --on-dark: #f6f5ff;
    --on-dark-muted: rgba(246, 245, 255, 0.68);
    --line: rgba(21, 18, 43, 0.12);
    --line-dark: rgba(246, 245, 255, 0.14);
    --font-display: 'Jost', 'Golos Text', system-ui, sans-serif;
    --font-sans: 'Golos Text', 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-pill: 999px;
    --header-h: 78px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --theme-dur: 420ms;
    /* Цвет тематических мотивов на светлых карточках (см. анимацию направлений):
       в светлой теме — тёмный navy, в тёмной — золотой. */
    --motif-ink: rgba(11, 0, 51, 0.5);
    --shadow-soft: 0 26px 60px -34px rgba(11, 0, 51, 0.45);
    --shadow-lift: 0 20px 44px -20px rgba(11, 0, 51, 0.35);
    --text-display: clamp(2.75rem, 1.1rem + 5.6vw, 6.1rem);
    --text-h2: clamp(1.95rem, 1.2rem + 2.6vw, 3.45rem);
    --text-lead: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);

    /* Поверхности и «чернила» — переопределяются в тёмной теме */
    --surface: #ffffff;
    --surface-2: #fbfaf7;
    --panel-tint: rgba(255, 255, 255, 0.6);
    --ink-strong: var(--navy-950);
    --ink-faded: rgba(21, 18, 43, 0.48);
    --ink-hover: var(--navy-800);
    --link-underline: rgba(11, 0, 51, 0.25);
    --line-strong: rgba(11, 0, 51, 0.28);
    --field-border: rgba(21, 18, 43, 0.18);
    --field-placeholder: rgba(21, 18, 43, 0.38);
    --focus-border: var(--navy-950);
    --control-accent: var(--navy-950);
    --outline-border: rgba(11, 0, 51, 0.35);
    --tile-solid: var(--navy-950);
    --tile-solid-ink: var(--gold);
    --chip-solid: var(--navy-950);
    --chip-solid-ink: var(--on-dark);
    --chip-solid-accent: var(--gold);
    --btn-solid: var(--navy-950);
    --btn-solid-ink: var(--on-dark);
    --btn-solid-hover: var(--navy-800);
    --danger: #b42318;
    --success: #16794a;
}

/* Анимация самих токенов: продолжительность общая (--theme-dur), поэтому все
   блоки перекрашиваются синхронно. Уважает prefers-reduced-motion — общий блок
   ниже гасит transition-duration у всех элементов. */
html {
    transition: --paper var(--theme-dur) var(--ease), --paper-2 var(--theme-dur) var(--ease),
        --surface var(--theme-dur) var(--ease), --surface-2 var(--theme-dur) var(--ease),
        --panel-tint var(--theme-dur) var(--ease), --ink var(--theme-dur) var(--ease),
        --ink-muted var(--theme-dur) var(--ease), --ink-strong var(--theme-dur) var(--ease),
        --ink-faded var(--theme-dur) var(--ease), --ink-hover var(--theme-dur) var(--ease),
        --line var(--theme-dur) var(--ease), --line-strong var(--theme-dur) var(--ease),
        --link-underline var(--theme-dur) var(--ease), --field-border var(--theme-dur) var(--ease),
        --field-placeholder var(--theme-dur) var(--ease), --focus-border var(--theme-dur) var(--ease),
        --control-accent var(--theme-dur) var(--ease), --outline-border var(--theme-dur) var(--ease),
        --tile-solid var(--theme-dur) var(--ease), --tile-solid-ink var(--theme-dur) var(--ease),
        --chip-solid var(--theme-dur) var(--ease), --chip-solid-ink var(--theme-dur) var(--ease),
        --chip-solid-accent var(--theme-dur) var(--ease), --btn-solid var(--theme-dur) var(--ease),
        --btn-solid-ink var(--theme-dur) var(--ease), --btn-solid-hover var(--theme-dur) var(--ease),
        --danger var(--theme-dur) var(--ease), --success var(--theme-dur) var(--ease),
        --motif-ink var(--theme-dur) var(--ease);
}

/* -------------------- переходы между страницами ------------------------- */
/* Кроссдокументные View Transitions: браузер сам снимает снапшот старой
   страницы и мягко проявляет новую при переходе между разделами
   (Услуги, О компании, контакты…). Мы лишь настраиваем движение: старая
   страница уходит с лёгким отъездом назад, новая проявляется и
   «усаживается» на место лёгким наездом — вертикальных сдвигов нет.
   Прогрессивное улучшение: браузеры без поддержки просто переключают
   страницы, как раньше. Смена языка RU/EN не участвует — main.js в
   событии pageswap (на старой странице, где объект перехода доступен)
   помечает её флагом __gatInstantNav и снимает переход (мгновенный
   срез); то же делает настройка «уменьшить движение». */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: gat-page-out 0.3s var(--ease) both;
}

::view-transition-new(root) {
    animation: gat-page-in 0.45s var(--ease-out) both;
}

@keyframes gat-page-out {
    to {
        opacity: 0;
        transform: scale(1.012);
    }
}

@keyframes gat-page-in {
    from {
        opacity: 0;
        transform: scale(0.988);
    }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }
}

/* ---------------------------- тёмная тема ------------------------------- */
/* Включается атрибутом data-theme="dark" на <html> (см. main.js).          */
/* Тёмные секции (hero, ГТД, подвал) не меняются — меняются светлые.        */

html[data-theme='dark'] {
    color-scheme: dark;
    --motif-ink: rgba(212, 175, 94, 0.55);
    --paper: #07001e;
    --paper-2: #0e0436;
    --surface: #140a42;
    --surface-2: #1a104e;
    --panel-tint: rgba(246, 245, 255, 0.06);
    --ink: #f2efff;
    --ink-muted: rgba(233, 228, 255, 0.66);
    --ink-strong: #f6f5ff;
    --ink-faded: rgba(246, 245, 255, 0.46);
    --ink-hover: var(--gold);
    --line: rgba(246, 245, 255, 0.13);
    --link-underline: rgba(246, 245, 255, 0.3);
    --line-strong: rgba(212, 175, 94, 0.42);
    --field-border: rgba(246, 245, 255, 0.18);
    --field-placeholder: rgba(246, 245, 255, 0.4);
    --focus-border: var(--gold);
    --control-accent: var(--gold);
    --outline-border: rgba(246, 245, 255, 0.4);
    --tile-solid: var(--gold);
    --tile-solid-ink: var(--navy-950);
    --chip-solid: var(--gold);
    --chip-solid-ink: var(--navy-950);
    --chip-solid-accent: rgba(11, 0, 51, 0.62);
    --btn-solid: var(--gold);
    --btn-solid-ink: var(--navy-950);
    --btn-solid-hover: var(--gold-soft);
    --shadow-soft: 0 26px 60px -36px rgba(0, 0, 0, 0.85);
    --shadow-lift: 0 20px 44px -20px rgba(0, 0, 0, 0.8);
    --danger: #ff9287;
    --success: #7ce0ac;
}

/* CTA-полоса остаётся золотой в обеих темах — фиксируем контрастные кнопки */
html[data-theme='dark'] .cta .btn--dark {
    background: var(--navy-950);
    color: var(--on-dark);
}

html[data-theme='dark'] .cta .btn--dark:hover {
    background: var(--navy-800);
}

html[data-theme='dark'] .cta .btn--outline-dark {
    border-color: rgba(11, 0, 51, 0.35);
    color: var(--navy-950);
}

/* Подсветка во вступлении: в тёмной теме — тонкая линия вместо маркера */
html[data-theme='dark'] .intro__text span {
    box-shadow: inset 0 -0.1em 0 var(--gold);
}

/* Карта в тёмной теме приглушается, чтобы не «выжигать» экран */
html[data-theme='dark'] .map iframe {
    filter: invert(0.92) hue-rotate(180deg) saturate(0.75) brightness(0.95);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.62;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.no-scroll {
    overflow: hidden;
}

img,
svg,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 400;
    line-height: 1.1;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

dl,
dd {
    margin: 0;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

::selection {
    background: var(--gold);
    color: var(--navy-950);
}

:focus-visible {
    outline: 2px solid #b18a2b;
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: min(100% - 48px, 1240px);
    margin-inline: auto;
}

.site {
    overflow-x: clip;
}

/* ---------------------------- утилиты ---------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.eyebrow--gold {
    color: var(--gold);
}

.h2 {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.06;
    color: var(--ink-strong);
}

.h2--light {
    color: var(--on-dark);
}

.section {
    padding: clamp(64px, 8vw, 116px) 0;
}

.section--tint {
    background: var(--paper-2);
}

.section-head {
    margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.section-head--split > div:first-child {
    flex: 1 1 420px;
}

.section-head__aside {
    flex: 0 1 420px;
    display: grid;
    gap: 16px;
    justify-items: start;
}

.section-lead {
    max-width: 56ch;
    font-size: var(--text-lead);
    color: var(--ink-muted);
}

.section-lead--light {
    color: var(--on-dark-muted);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink-strong);
    border-bottom: 1px solid var(--link-underline);
    padding-bottom: 3px;
    transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.link-arrow:hover {
    border-color: var(--ink-strong);
}

.link-arrow--light {
    color: var(--gold);
    border-color: rgba(212, 175, 94, 0.4);
}

.link-arrow--light:hover {
    border-color: var(--gold);
}

.link-arrow i {
    font-size: 0.85em;
    transition: transform 0.3s var(--ease-out);
}

.link-arrow:hover i {
    transform: translateX(4px);
}

.reveal {
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
    /* Лёгкий веер: соседние .reveal одного родителя получают --reveal-delay
       из main.js и появляются по очереди, а не разом. */
    transition-delay: var(--reveal-delay, 0s);
}

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 20px;
    z-index: 200;
    padding: 12px 20px;
    background: var(--gold);
    color: var(--navy-950);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 14px;
}

/* ---------------------------- кнопки ----------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out),
        border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out),
        box-shadow 0.35s var(--ease-out), filter 0.35s var(--ease-out);
}

.btn i {
    font-size: 0.85em;
    transition: transform 0.25s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:hover i.fa-arrow-right {
    transform: translateX(3px);
}

/* Нажатие ощущается мгновенно: быстрый вход (0.15s) и плавный возврат */
.btn:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.15s;
}

.btn--primary {
    background: linear-gradient(180deg, #e9d191 0%, var(--gold) 58%, #c69b45 100%);
    color: var(--navy-950);
    box-shadow: inset 0 1px 0 rgba(255, 249, 236, 0.5), 0 12px 28px -14px rgba(198, 155, 69, 0.7);
}

.btn--primary:hover {
    filter: brightness(1.06);
    box-shadow: inset 0 1px 0 rgba(255, 249, 236, 0.65), 0 18px 38px -16px rgba(198, 155, 69, 0.85);
}

.btn--ghost {
    border-color: rgba(246, 245, 255, 0.32);
    color: var(--on-dark);
    background: rgba(246, 245, 255, 0.04);
}

.btn--ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn--dark {
    background: var(--btn-solid);
    color: var(--btn-solid-ink);
}

.btn--dark:hover {
    background: var(--btn-solid-hover);
    box-shadow: var(--shadow-lift);
}

.btn--outline-dark {
    border-color: var(--outline-border);
    color: var(--ink-strong);
}

.btn--outline-dark:hover {
    background: var(--chip-solid);
    border-color: var(--chip-solid);
    color: var(--chip-solid-accent);
}

.btn--sm {
    padding: 11px 20px;
    font-size: 13.5px;
}

.btn--block {
    width: 100%;
}

.round-btn {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-dark);
    background: transparent;
    color: var(--on-dark);
    font-size: 14px;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.round-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-950);
}

/* ---------------------------- шапка ------------------------------------ */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    color: var(--on-dark);
    background: linear-gradient(180deg, rgba(6, 0, 32, 0.72) 0%, rgba(6, 0, 32, 0) 100%);
    transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
        box-shadow 0.4s var(--ease-out);
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(9, 0, 42, 0.86);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: var(--line-dark);
    box-shadow: 0 22px 46px -30px rgba(4, 0, 24, 0.85);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    color: var(--gold);
}

.logo__mark {
    flex: 0 0 auto;
    transition: transform 0.45s var(--ease-out);
}

.logo:hover .logo__mark {
    transform: rotate(14deg);
}

.logo__text {
    display: grid;
    gap: 1px;
    font-family: var(--font-display);
    font-size: 13.5px;
    line-height: 1.15;
    letter-spacing: 0.16em;
    color: var(--on-dark);
}

.logo__text b {
    font-weight: 500;
    letter-spacing: 0.22em;
}

.logo__text span {
    font-size: 10.5px;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: rgba(246, 245, 255, 0.72);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav__link {
    position: relative;
    padding: 10px 14px;
    font-size: 14.5px;
    color: rgba(246, 245, 255, 0.78);
    border-radius: var(--radius-pill);
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav__link:hover {
    color: var(--on-dark);
    background: rgba(246, 245, 255, 0.07);
}

.nav__link.is-active {
    color: var(--gold);
}

.nav__link.is-active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 1px;
    background: var(--gold);
    opacity: 0.7;
}

.nav__footer {
    display: none;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.theme-toggle {
    --toggle-w: 62px;
    --toggle-h: 32px;
    --toggle-pad: 3px;
    --toggle-thumb: calc(var(--toggle-h) - var(--toggle-pad) * 2 - 2px);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    width: var(--toggle-w);
    height: var(--toggle-h);
    padding: 0 var(--toggle-pad);
    border: 1px solid rgba(246, 245, 255, 0.2);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(246, 245, 255, 0.13), rgba(246, 245, 255, 0.03));
    box-shadow: inset 0 1px 2px rgba(4, 0, 24, 0.45);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
        box-shadow 0.3s var(--ease), transform 0.15s var(--ease);
}

.theme-toggle:active {
    transform: scale(0.96);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* бегунок под активной иконкой */
.theme-toggle__thumb {
    position: absolute;
    top: calc(50% - var(--toggle-thumb) / 2);
    left: var(--toggle-pad);
    width: var(--toggle-thumb);
    height: var(--toggle-thumb);
    border-radius: 50%;
    background: linear-gradient(150deg, #fff7e6 0%, #ecd7a0 42%, var(--gold) 100%);
    box-shadow: 0 2px 6px rgba(4, 0, 24, 0.45), 0 0 10px rgba(212, 175, 94, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.85);
    pointer-events: none;
    transition: transform var(--theme-dur) var(--ease), box-shadow 0.3s var(--ease);
}

html[data-theme='dark'] .theme-toggle__thumb {
    transform: translateX(calc(var(--toggle-w) - var(--toggle-thumb) - var(--toggle-pad) * 2 - 2px));
}

.theme-toggle__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: var(--toggle-thumb);
    height: var(--toggle-thumb);
    pointer-events: none;
    transition: color 0.35s var(--ease), transform 0.5s var(--ease), opacity 0.35s var(--ease);
}

.theme-toggle__icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* в светлой теме солнце сидит на бегунке, луна ждёт справа */
.theme-toggle__icon--sun {
    color: var(--navy-950);
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-toggle__icon--moon {
    color: rgba(246, 245, 255, 0.72);
    opacity: 0.92;
    transform: scale(0.82) rotate(-35deg);
}

/* в тёмной — наоборот */
html[data-theme='dark'] .theme-toggle__icon--sun {
    color: rgba(246, 245, 255, 0.72);
    opacity: 0.92;
    transform: scale(0.82) rotate(-90deg);
}

html[data-theme='dark'] .theme-toggle__icon--moon {
    color: var(--navy-950);
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-toggle:hover {
    border-color: rgba(212, 175, 94, 0.55);
    background: linear-gradient(180deg, rgba(212, 175, 94, 0.2), rgba(212, 175, 94, 0.06));
}

.theme-toggle:hover .theme-toggle__thumb {
    box-shadow: 0 0 0 4px rgba(212, 175, 94, 0.14), 0 3px 10px rgba(4, 0, 24, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* переключатель языка: бегунок стоит под текущим языком — позиция
   задаётся только html[lang] (RU — слева, UZ — в центре, EN — справа),
   без доезда. Клик сразу ведёт на зеркальную страницу, смена —
   мгновенный срез. Подписи — в цветах текста шапки: активная — светлая
   на тёмном бегунке, остальные — приглушённые, без перекраски */
.lang-switch {
    --lang-w: 98px;
    --lang-h: 32px;
    --lang-pad: 3px;
    --lang-thumb-w: 30px;
    --lang-thumb-h: calc(var(--lang-h) - var(--lang-pad) * 2 - 2px);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    width: var(--lang-w);
    height: var(--lang-h);
    padding: 0 var(--lang-pad);
    border: 1px solid rgba(246, 245, 255, 0.2);
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, rgba(246, 245, 255, 0.13), rgba(246, 245, 255, 0.03));
    box-shadow: inset 0 1px 2px rgba(4, 0, 24, 0.45);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
        transform 0.15s var(--ease);
}

/* нажатое состояние — как у переключателя темы (theme-toggle:active) */
.lang-switch:active {
    transform: scale(0.96);
}

.lang-switch:hover {
    border-color: rgba(212, 175, 94, 0.55);
    background: linear-gradient(180deg, rgba(212, 175, 94, 0.2), rgba(212, 175, 94, 0.06));
}

/* бегунок под активной подписью */
.lang-switch__thumb {
    position: absolute;
    top: calc(50% - var(--lang-thumb-h) / 2);
    left: var(--lang-pad);
    width: var(--lang-thumb-w);
    height: var(--lang-thumb-h);
    border-radius: calc(var(--radius-pill) - 4px);
    background: linear-gradient(150deg, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
    box-shadow: 0 2px 6px rgba(4, 0, 24, 0.45), 0 0 10px rgba(212, 175, 94, 0.3),
        inset 0 0 0 1px rgba(212, 175, 94, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.16);
    pointer-events: none;
    transition: box-shadow 0.3s var(--ease);
}

/* UZ-страница: бегунок в центре, EN-страница: справа
   (то же, что data-theme у переключателя темы) */
html[lang='uz'] .lang-switch__thumb {
    transform: translateX(calc((var(--lang-w) - var(--lang-thumb-w) - var(--lang-pad) * 2 - 2px) / 2));
}

html[lang='en'] .lang-switch__thumb {
    transform: translateX(calc(var(--lang-w) - var(--lang-thumb-w) - var(--lang-pad) * 2 - 2px));
}

.lang-switch__item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--lang-thumb-w);
    height: 100%;
    font-family: var(--font-display);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(246, 245, 255, 0.78);
    text-decoration: none;
    transition: color 0.25s var(--ease);
}

.lang-switch__item:hover {
    color: var(--gold-soft);
}

.lang-switch__item.is-active {
    color: var(--on-dark);
}

.lang-switch__item.is-active:hover {
    color: var(--on-dark);
}

.lang-switch__item:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
    border-radius: var(--radius-pill);
}

.lang-switch:hover .lang-switch__thumb {
    box-shadow: 0 0 0 4px rgba(212, 175, 94, 0.14), 0 3px 10px rgba(4, 0, 24, 0.5),
        inset 0 0 0 1px rgba(212, 175, 94, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Смена языка — мгновенный срез, без какого-либо движения: зеркальная
   страница подменяет контент уже в первом кадре, шапка у RU/UZ/EN общая
   (тот же логотип, навигация, переключатели — её смены не видно),
   бегунок переключателя сразу стоит на активной позиции (html[lang]).
   Единственная забота о плавности — прежняя прокрутка возвращается до
   первого кадра инлайн-скриптом в конце <body> (build/layout.js). */

.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: rgba(246, 245, 255, 0.85);
    white-space: nowrap;
    transition: color 0.25s var(--ease);
}

.header__phone i {
    color: var(--gold);
    font-size: 12px;
}

.header__phone:hover {
    color: var(--gold);
}

.burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(246, 245, 255, 0.26);
    border-radius: 50%;
    background: transparent;
    color: var(--on-dark);
}

.burger span {
    display: block;
    width: 17px;
    height: 1.5px;
    margin: 4px auto;
    background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.burger.is-active span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
    opacity: 0;
}

.burger.is-active span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(4, 0, 24, 0.62);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ---------------------------- главный экран ---------------------------- */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(940px, 100svh);
    overflow: hidden;
    background: var(--navy-950);
    color: var(--on-dark);
    isolation: isolate;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(6, 0, 32, 0.94) 0%, rgba(6, 0, 32, 0.78) 42%, rgba(6, 0, 32, 0.28) 100%),
        linear-gradient(180deg, rgba(6, 0, 32, 0.55) 0%, rgba(6, 0, 32, 0.1) 40%, rgba(6, 0, 32, 0.85) 100%);
}

.hero__inner {
    position: relative;
    display: grid;
    justify-items: start;
    padding-top: calc(var(--header-h) + 96px);
    padding-bottom: clamp(48px, 6vw, 84px);
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid rgba(212, 175, 94, 0.32);
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(246, 245, 255, 0.86);
}

.hero__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 94, 0.18);
}

.hero__title {
    margin-top: 26px;
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: 300;
    line-height: 0.94;
    letter-spacing: -0.035em;
    max-width: 18ch;
}

.hero__title em {
    font-style: normal;
    color: var(--gold);
}

.hero__lead {
    max-width: 54ch;
    margin-top: 28px;
    font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
    color: rgba(246, 245, 255, 0.8);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin-top: clamp(44px, 6vw, 76px);
    padding-top: 26px;
    border-top: 1px solid rgba(246, 245, 255, 0.2);
}

.hero__stats li {
    display: grid;
    gap: 6px;
    align-content: start;
}

.hero__stats b {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
    font-weight: 400;
    line-height: 1;
    color: var(--gold);
}

.hero__stats span {
    max-width: 18ch;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(246, 245, 255, 0.6);
}

/* ---------------------------- виды перевозок --------------------------- */

.modes {
    background: var(--navy-950);
    color: var(--on-dark);
    border-bottom: 1px solid var(--line-dark);
}

.modes__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mode {
    /* Мотив направления (см. «тематическая анимация направлений» ниже)
       рисуется псевдоэлементами — карточка обрезает их по своим границам. */
    position: relative;
    overflow: hidden;
    isolation: isolate;
    --motif: rgba(212, 175, 94, 0.6);
    --scene-left: 0;
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: center;
    gap: 2px 12px;
    padding: 22px 24px 22px 0;
    transition: background-color 0.32s var(--ease);
}

.mode + .mode {
    padding-left: 24px;
    border-left: 1px solid var(--line-dark);
}

.mode i {
    grid-row: span 2;
    font-size: 18px;
    color: var(--gold);
}

.mode__title {
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 0.01em;
}

.mode__note {
    font-size: 12px;
    color: rgba(246, 245, 255, 0.52);
    transition: color 0.32s var(--ease);
}

/* ---------------------------- о компании (интро) ----------------------- */

.intro {
    padding: clamp(56px, 7vw, 100px) 0;
    background: var(--paper);
}

.intro__grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.intro__grid > .eyebrow {
    margin: 10px 0 0;
}

.intro__text {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1rem + 2.1vw, 2.5rem);
    font-weight: 300;
    line-height: 1.24;
    letter-spacing: -0.02em;
    color: var(--ink-strong);
}

.intro__text span {
    color: var(--ink-strong);
    box-shadow: inset 0 -0.3em 0 var(--gold);
    transition: box-shadow var(--theme-dur) var(--ease);
}

.intro__sub {
    max-width: 62ch;
    margin-top: 24px;
    color: var(--ink-muted);
}

.intro__body .link-arrow {
    margin-top: 28px;
}

/* ---------------------------- список услуг ----------------------------- */

.services {
    background: var(--paper);
    padding-top: 0;
}

.service-list {
    border-top: 1px solid var(--line);
}

.service-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 24px;
    padding: 26px 10px;
    border-bottom: 1px solid var(--line);
    background: transparent;
    transition: background 0.35s var(--ease);
}

/* Ховер без анимации padding: фон подсвечивается, а контент мягко
   уезжает вправо transform-ом — раскладка не дёргается. */
.service-row:hover {
    background: var(--surface);
}

.service-row__num {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
}

.service-row__title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 0.95rem + 1.2vw, 1.85rem);
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--ink-strong);
}

.service-row__desc {
    display: block;
    max-width: 72ch;
    margin-top: 8px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink-muted);
}

.service-row__title,
.service-row__desc {
    transition: transform 0.4s var(--ease-out);
}

.service-row:hover .service-row__title,
.service-row:hover .service-row__desc {
    transform: translateX(8px);
}

.service-row__arrow {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 13px;
    color: var(--ink-strong);
    transition: background 0.3s var(--ease), color 0.3s var(--ease),
        border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.service-row:hover .service-row__arrow {
    background: var(--tile-solid);
    border-color: var(--tile-solid);
    color: var(--tile-solid-ink);
    transform: rotate(-35deg);
}

/* ---------------------------- чек-лист и шаги -------------------------- */

.checklist {
    display: grid;
    gap: 12px;
    margin-top: 26px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink-muted);
}

.checklist li {
    position: relative;
    padding-left: 30px;
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
}

.checklist li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 0.55em;
    width: 8px;
    height: 4px;
    border-left: 1.6px solid var(--navy-950);
    border-bottom: 1.6px solid var(--navy-950);
    transform: rotate(-45deg);
}

.checklist--light {
    color: rgba(246, 245, 255, 0.78);
}

.steps {
    counter-reset: step;
    display: grid;
    gap: 0;
    margin-top: 30px;
    border-left: 1px solid var(--line);
}

.steps li {
    position: relative;
    padding: 0 0 30px 40px;
    counter-increment: step;
}

.steps li:last-child {
    padding-bottom: 0;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: -15px;
    top: 0;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--tile-solid);
    color: var(--tile-solid-ink);
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.steps h3 {
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--ink-strong);
}

.steps p {
    max-width: 68ch;
    font-size: 14.5px;
    color: var(--ink-muted);
}

/* ---------------------------- таможня + ГТД ---------------------------- */

.customs {
    position: relative;
    padding: clamp(64px, 8vw, 110px) 0;
    background:
        radial-gradient(1000px 520px at 88% -15%, rgba(212, 175, 94, 0.14), transparent 62%),
        var(--navy-950);
    color: var(--on-dark);
    overflow: hidden;
}

.customs__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(40px, 6vw, 76px);
    align-items: center;
}

.customs__copy .section-lead {
    margin-top: 22px;
}

.customs__copy .btn {
    margin-top: 32px;
}

.gtd {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(212, 175, 94, 0.22);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(246, 245, 255, 0.09), rgba(246, 245, 255, 0.03));
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
    transform: rotate(-1.2deg);
    transition: transform 0.6s var(--ease);
}

.gtd:hover {
    transform: rotate(0deg);
}

.gtd__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-dark);
}

.gtd__kicker {
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(246, 245, 255, 0.5);
}

.gtd__num {
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 17px;
    letter-spacing: 0.03em;
    color: var(--on-dark);
}

.gtd__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(212, 175, 94, 0.14);
    border: 1px solid rgba(212, 175, 94, 0.32);
    font-size: 11px;
    font-weight: 500;
    color: var(--gold);
    white-space: nowrap;
}

.gtd__badge i {
    font-size: 9px;
}

.gtd__rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 16px;
    background: rgba(246, 245, 255, 0.1);
    border: 1px solid rgba(246, 245, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.gtd__cell {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    background: rgba(8, 0, 40, 0.9);
}

.gtd__cell--wide {
    grid-column: span 2;
}

.gtd__label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(246, 245, 255, 0.45);
}

.gtd__label b {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 16px;
    padding: 0 4px;
    border-radius: 3px;
    background: rgba(212, 175, 94, 0.14);
    color: var(--gold);
    font-size: 9.5px;
    font-weight: 500;
}

.gtd__value {
    font-size: 12.5px;
    line-height: 1.45;
    color: rgba(246, 245, 255, 0.88);
}

.gtd__code {
    display: flex;
    gap: 2px;
}

.gtd__code span {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 4px 0;
    border: 1px solid rgba(212, 175, 94, 0.26);
    border-radius: 4px;
    background: rgba(212, 175, 94, 0.06);
    font-family: var(--font-display);
    font-size: 12.5px;
    color: var(--gold);
}

.gtd__docs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.gtd__docs span {
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(246, 245, 255, 0.07);
    font-size: 10.5px;
    color: rgba(246, 245, 255, 0.72);
}

.gtd__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
}

.gtd__stamp {
    padding: 5px 12px;
    border: 1px dashed rgba(212, 175, 94, 0.55);
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    transform: rotate(-3deg);
}

.gtd__hint {
    font-size: 10.5px;
    color: rgba(246, 245, 255, 0.4);
    text-align: right;
}

/* ---------------------------- карусель поставок ------------------------ */

.supplies {
    padding: clamp(64px, 8vw, 110px) 0;
    background: var(--navy-950);
    color: var(--on-dark);
    overflow: hidden;
}

.supplies__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: clamp(30px, 4vw, 46px);
}

.supplies__head .eyebrow {
    margin-bottom: 16px;
}

.supplies__controls {
    display: flex;
    align-items: center;
    gap: 30px;
}

.supplies__nav {
    display: flex;
    gap: 10px;
}

.supplies__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.supplies__viewport::-webkit-scrollbar {
    display: none;
}

.supplies__track {
    display: flex;
    gap: 18px;
    width: max-content;
}

.supply-card {
    flex: 0 0 clamp(270px, 29vw, 372px);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    border: 1px solid rgba(246, 245, 255, 0.13);
    border-radius: var(--radius-md);
    background: rgba(246, 245, 255, 0.045);
    overflow: hidden;
    transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
        transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.supply-card:hover {
    background: rgba(246, 245, 255, 0.075);
    border-color: rgba(212, 175, 94, 0.45);
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 24px 48px -24px rgba(4, 0, 24, 0.75);
}

.supply-card__media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--navy-900);
}

.supply-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s var(--ease-out);
}

.supply-card:hover .supply-card__media img {
    transform: scale(1.04);
}

.supply-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 0, 40, 0.05) 40%, rgba(8, 0, 40, 0.55) 100%);
}

.supply-card__num {
    position: absolute;
    z-index: 1;
    top: 14px;
    left: 14px;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    background: var(--gold);
    color: var(--navy-950);
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.supply-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 24px;
    flex: 1;
}

.supply-card__body h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--on-dark);
}

.supply-card__body p {
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(246, 245, 255, 0.6);
}

.supply-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    transition: gap 0.25s var(--ease);
}

.supply-card__link:hover {
    gap: 13px;
}

.supply-card__link i {
    font-size: 10px;
}

/* ---------------------------- бренды (бегущая строка) ------------------ */

.brands {
    padding: 38px 0 44px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.brands__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.brands__label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.brands__count {
    font-size: 12.5px;
    color: var(--ink-muted);
}

.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee__inner {
    display: flex;
    width: max-content;
    animation: marquee 52s linear infinite;
}

.marquee:hover .marquee__inner {
    animation-play-state: paused;
}

.marquee__group {
    display: flex;
    align-items: center;
    gap: 54px;
    padding-right: 54px;
}

.brand {
    font-family: var(--font-display);
    font-size: 17px;
    letter-spacing: 0.07em;
    white-space: nowrap;
    color: var(--ink-faded);
    transition: color 0.25s var(--ease);
}

.brand:hover {
    color: var(--ink-strong);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ---------------------------- о компании (тизер) ----------------------- */

.about-teaser {
    background: var(--paper);
}

.about-teaser__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.about-photo {
    position: relative;
}

.about-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}

.about-photo__badge {
    position: absolute;
    left: 22px;
    bottom: 22px;
    display: grid;
    gap: 2px;
    max-width: 190px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--gold);
    color: var(--navy-950);
}

.about-photo__badge b {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
}

.about-photo__badge span {
    font-size: 12px;
    line-height: 1.4;
}

.about-teaser__copy > p:not(.eyebrow) {
    margin-top: 20px;
    max-width: 58ch;
    color: var(--ink-muted);
}

.about-teaser__copy .btn {
    margin-top: 30px;
}

.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 28px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.fact {
    padding: 18px 18px 18px 0;
    background: var(--paper);
}

.fact:nth-child(even) {
    padding-left: 18px;
    padding-right: 0;
}

.fact dt {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.fact dd {
    margin-top: 5px;
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.25;
    color: var(--ink-strong);
}

.facts--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
    background: none;
    border: 0;
}

.facts--wide .fact,
.facts--wide .fact:nth-child(even) {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.facts--wide .fact dd {
    margin-top: 8px;
    font-size: 19px;
}

/* ---------------------------- принципы --------------------------------- */

.values {
    background: var(--paper-2);
}

.values__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.value-card {
    /* Мотив принципа (см. «анимация принципов» ниже) рисуется
       псевдоэлементами у нижнего края карточки. */
    position: relative;
    overflow: hidden;
    isolation: isolate;
    --motif: var(--motif-ink);
    --scene-x: 24px;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.value-card > * {
    position: relative;
    z-index: 1;
}

.value-card:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: var(--shadow-soft);
}

.value-card__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--tile-solid);
    color: var(--tile-solid-ink);
    font-size: 16px;
}

.value-card h3 {
    margin-top: 20px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--ink-strong);
}

.value-card p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-muted);
}

/* ---------------------------- FAQ -------------------------------------- */

.faq {
    background: var(--paper);
}

.faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(36px, 6vw, 72px);
    align-items: start;
}

.faq__aside > p:not(.eyebrow) {
    margin-top: 18px;
    max-width: 38ch;
    font-size: 14.5px;
    color: var(--ink-muted);
}

.faq__aside .link-arrow {
    margin-top: 26px;
}

.faq__list {
    border-top: 1px solid var(--line);
}

.faq__item {
    border-bottom: 1px solid var(--line);
}

.faq__item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.35;
    color: var(--ink-strong);
    cursor: pointer;
    list-style: none;
    transition: color 0.2s var(--ease);
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: '+';
    flex: 0 0 auto;
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    color: var(--ink-muted);
    transition: transform 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.faq__item[open] summary::after {
    transform: rotate(45deg);
    color: var(--ink-strong);
}

.faq__item summary:hover {
    color: var(--ink-hover);
}

.faq__item p {
    max-width: 70ch;
    padding: 0 40px 24px 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-muted);
}

/* Плавное раскрытие ответа: текст мягко выезжает, «+» поворачивается в «×».
   Без JS (details открывается браузером) анимация просто не играет. */
.js .faq__item[open] p {
    animation: faq-open 0.45s var(--ease-out) both;
}

@keyframes faq-open {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------- CTA-полоса ------------------------------- */

.cta {
    padding: clamp(48px, 6vw, 72px) 0;
    background: var(--gold);
    color: var(--navy-950);
}

.cta__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 36px;
}

.cta__copy {
    flex: 1 1 480px;
}

.cta__copy .eyebrow {
    margin-bottom: 14px;
    color: rgba(11, 0, 51, 0.55);
}

.cta__copy h2 {
    max-width: 22ch;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.9rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.cta__copy p:not(.eyebrow) {
    max-width: 60ch;
    margin-top: 14px;
    font-size: 15px;
    color: rgba(11, 0, 51, 0.72);
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta .btn--outline-dark:hover {
    background: var(--navy-950);
    color: var(--gold);
}

/* ---------------------------- контакты на главной ---------------------- */

.contacts {
    background: var(--paper);
}

.contacts__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 40px;
    align-items: stretch;
}

.contact-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.contact-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.contact-item__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--gold);
    color: var(--navy-950);
    font-size: 15px;
}

.contact-item__label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.contact-item__value {
    margin-top: 4px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink);
}

.contact-item__value a {
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease);
}

.contact-item__value a:hover {
    border-color: currentColor;
}

.contacts__info > .btn {
    margin-top: 26px;
}

.map {
    position: relative;
    min-height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper-2);
    border: 1px solid var(--line);
}

.map iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    filter: saturate(0.9);
    transition: filter var(--theme-dur) var(--ease);
}

.map--wide {
    min-height: 460px;
}

.map--wide iframe {
    min-height: 460px;
}

.map-section {
    padding: 0 0 clamp(56px, 7vw, 96px);
    background: var(--paper);
}

.map-section__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
    font-size: 13.5px;
    color: var(--ink-muted);
}

.map-section__foot i {
    margin-right: 6px;
    color: var(--ink-strong);
}

/* ---------------------------- подвал ----------------------------------- */

.site-footer {
    padding: clamp(48px, 6vw, 72px) 0 26px;
    background: var(--navy-950);
    color: var(--on-dark);
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 44px;
}

.footer__brand p {
    max-width: 34ch;
    margin-top: 18px;
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(246, 245, 255, 0.6);
}

.footer__legal {
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(246, 245, 255, 0.4) !important;
}

.footer__title {
    margin-bottom: 18px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.footer__grid ul {
    display: grid;
    gap: 9px;
}

.footer__grid li,
.footer__grid li a {
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(246, 245, 255, 0.68);
}

.footer__grid li a {
    transition: color 0.2s var(--ease);
}

.footer__grid li a:hover {
    color: var(--gold);
}

.footer__contacts {
    gap: 10px;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid var(--line-dark);
    font-size: 12px;
    color: rgba(246, 245, 255, 0.42);
}

.logo--footer .logo__text span {
    color: rgba(246, 245, 255, 0.6);
}

/* ---------------------------- внутренние страницы: шапка --------------- */

.page-hero {
    position: relative;
    padding: calc(var(--header-h) + 76px) 0 clamp(52px, 6vw, 84px);
    background:
        radial-gradient(900px 460px at 88% 0%, rgba(212, 175, 94, 0.13), transparent 62%),
        var(--navy-950);
    color: var(--on-dark);
    overflow: hidden;
    isolation: isolate;
}

.page-hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.page-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(6, 0, 32, 0.94) 0%, rgba(6, 0, 32, 0.8) 46%, rgba(6, 0, 32, 0.42) 100%);
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: start;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    font-size: 12.5px;
    color: rgba(246, 245, 255, 0.52);
}

.breadcrumbs a {
    transition: color 0.2s var(--ease);
}

.breadcrumbs a:hover {
    color: var(--gold);
}

.breadcrumbs__sep {
    opacity: 0.4;
}

.breadcrumbs [aria-current] {
    color: var(--gold);
}

.page-hero__title {
    max-width: 22ch;
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.7rem);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.page-hero__lead {
    max-width: 60ch;
    margin-top: 24px;
    font-size: clamp(1rem, 0.95rem + 0.4vw, 1.17rem);
    color: rgba(246, 245, 255, 0.76);
}

.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.page-hero--compact {
    padding-bottom: clamp(40px, 5vw, 56px);
}

.page-hero--compact .page-hero__title {
    max-width: 26ch;
}

/* ---------------------------- процесс ---------------------------------- */

.process__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(36px, 6vw, 72px);
    align-items: start;
}

.process__aside > p:not(.eyebrow) {
    max-width: 40ch;
    margin-top: 18px;
    font-size: 14.5px;
    color: var(--ink-muted);
}

.process__aside .link-arrow {
    margin-top: 26px;
}

.process .steps {
    margin-top: 4px;
}

/* ---------------------------- страница услуги -------------------------- */

.service-body {
    background: var(--paper);
}

.service-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(36px, 5vw, 64px);
    align-items: start;
}

.service-main {
    display: grid;
    gap: clamp(38px, 5vw, 54px);
}

.service-section .h2 {
    margin-bottom: 14px;
}

.service-section .section-lead + .checklist,
.service-section .section-lead + .transport-grid,
.service-section .section-lead + .supply-grid {
    margin-top: 26px;
}

.service-section .checklist {
    margin-top: 22px;
}

.service-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.aside-card {
    padding: 30px 28px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(420px 260px at 100% 0%, rgba(212, 175, 94, 0.16), transparent 65%),
        var(--navy-950);
    color: var(--on-dark);
}

.aside-card .eyebrow {
    margin-bottom: 14px;
}

.aside-card__title {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.aside-card > p:not(.eyebrow, .aside-card__hours) {
    margin-top: 14px;
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(246, 245, 255, 0.66);
}

.aside-card__phone {
    display: block;
    margin-top: 22px;
    font-family: var(--font-display);
    font-size: 23px;
    letter-spacing: 0.01em;
    color: var(--gold);
}

.aside-card__mail {
    display: inline-block;
    margin-top: 6px;
    font-size: 13.5px;
    color: rgba(246, 245, 255, 0.72);
    border-bottom: 1px solid rgba(246, 245, 255, 0.25);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.aside-card__mail:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.aside-card .btn {
    margin-top: 24px;
}

.aside-card__hours {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(246, 245, 255, 0.45);
}

.aside-card__hours i {
    margin-right: 5px;
}

/* ---------------------------- доп. блоки услуги ------------------------- */

.transport-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 26px;
}

.transport-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    --motif: var(--motif-ink);
    --scene-left: 22px;
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: transform 0.34s var(--ease), border-color 0.34s var(--ease),
        box-shadow 0.34s var(--ease);
}

.transport-card__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--gold);
    color: var(--navy-950);
    font-size: 15px;
    transition: transform 0.34s var(--ease);
}

.transport-card h3 {
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    color: var(--ink-strong);
}

.transport-card p {
    margin-top: 6px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-muted);
}

/* ------------------ тематическая анимация направлений ------------------- */
/* Направления «Авиа / Авто / Жд / Море» встречаются дважды: в полосе под
   первым экраном (.mode, тёмный фон) и в блоке на странице логистики
   (.transport-card, светлая карточка). Тип направления приходит из
   build/data.js атрибутом data-mode — разметка шаблонов от этого не сложнее.
   Мотив рисуют псевдоэлементы самой карточки: след самолёта, разметка
   дороги, рельсы со шпалами, волны. Иконка поддерживает тему — самолёт
   взлетает, машину потряхивает, поезд трогается, корабль качает на волне.
   Всё включается только при наведении: в покое на странице нет ни одной
   работающей анимации. Цвет мотива — в --motif (объявлен в .mode и
   .transport-card), поэтому тёмная полоса и светлые карточки красятся
   по-разному одним и тем же правилам. */

.mode > *,
.transport-card > * {
    position: relative;
    z-index: 1;
}

[data-mode] i {
    /* translate — отдельное CSS-свойство: «выезд вперёд» живёт на нём и
       возвращается переходом, а бесконечная вибрация/качка — на transform
       поверх него. Свойства не мешают друг другу. */
    transition: transform 0.4s ease-in-out, translate 0.4s ease-in-out;
}

/* Слой мотива: в покое скрыт и сдвинут вниз, при наведении проявляется. */
[data-mode]::before {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.34s var(--ease);
}

/* ---- Авиа: пунктирный след взлёта вычерчивается и «едет» ---- */

[data-mode='air']::before {
    left: var(--scene-left);
    right: 30%;
    bottom: 4px;
    height: 15px;
    background-image:
        repeating-linear-gradient(90deg, var(--motif) 0 5px, transparent 5px 13px),
        repeating-linear-gradient(90deg, var(--motif) 0 5px, transparent 5px 13px),
        repeating-linear-gradient(90deg, var(--motif) 0 5px, transparent 5px 13px);
    background-size: 100% 1px;
    background-position: 0 0, 0 7px, 0 14px;
    background-repeat: repeat-x;
    -webkit-mask-image: linear-gradient(90deg, #000 0 35%, transparent 96%);
    mask-image: linear-gradient(90deg, #000 0 35%, transparent 96%);
    transform: rotate(-1.8deg) scaleX(0.12) translateY(4px);
    transform-origin: 0 100%;
    transition: transform 0.62s var(--ease), opacity 0.34s var(--ease);
}

[data-mode='air']:hover::before {
    opacity: 0.9;
    transform: rotate(-1.8deg) scaleX(1) translateY(0);
    animation: gat-trail 1.2s linear infinite;
}

[data-mode='air']:hover i {
    /* Взлёт: курс — вправо и вверх, нос задирается (rotate −10°). Первая
       ячейка полосы стоит вплотную к левому краю контейнера, поэтому
       смещение вправо заодно спасает крыло от среза краем. Возврат —
       тем же переходом 0.4s ease-in-out, абсолютно плавный. */
    transform: translate(5px, -5px) rotate(-10deg);
}

/* ---- Авто: разметка дороги бежит под текстом ---- */

[data-mode='road']::before {
    left: var(--scene-left);
    right: var(--scene-left);
    bottom: 10px;
    height: 2px;
    background-image: repeating-linear-gradient(90deg, var(--motif) 0 12px, transparent 12px 28px);
    transform: translateY(6px);
}

[data-mode='road']:hover::before {
    opacity: 0.75;
    transform: none;
    animation: gat-road 0.85s linear infinite;
}

[data-mode='road']:hover i {
    /* Трогается с места: плавный выезд вперёд на translate (независимое
       свойство — возврат идёт переходом) + лёгкая вибрация мотора
       (подпрыгивание на 1px) на transform, пока курсор на карточке. */
    translate: 5px 0;
    animation: gat-idle 0.55s ease-in-out infinite;
}

/* ---- Ж/д: две нитки рельсов, шпалы едут ---- */

[data-mode='rail']::before {
    left: var(--scene-left);
    right: var(--scene-left);
    bottom: 9px;
    height: 9px;
    border-top: 1px solid var(--motif);
    border-bottom: 1px solid var(--motif);
    background-image: repeating-linear-gradient(90deg, var(--motif) 0 2px, transparent 2px 16px);
    transform: translateY(7px);
}

[data-mode='rail']:hover::before {
    opacity: 1;
    transform: none;
    animation: gat-rail 0.9s linear infinite;
}

[data-mode='rail']:hover i {
    /* Трогается и стучит колёсами: плавный выезд вперёд на translate
       плюс быстрый микро-стук по горизонтали (±1.5px) на transform. */
    translate: 4px 0;
    animation: gat-clatter 0.6s linear infinite;
}

/* ---- Море: две волны набегают на нижний край, корабль качает ---- */

[data-mode='sea']::before,
[data-mode='sea']::after {
    content: '';
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background-repeat: repeat-x;
    background-position: 0 100%;
    opacity: 0;
}

[data-mode='sea']::before {
    height: 12px;
    background-image: radial-gradient(circle at 50% 100%, var(--motif) 0 13px, transparent 13.5px);
    background-size: 26px 100%;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease) 0.05s, opacity 0.36s var(--ease) 0.05s;
}

[data-mode='sea']::after {
    height: 17px;
    background-image: radial-gradient(circle at 50% 100%, var(--motif) 0 17px, transparent 17.5px);
    background-size: 34px 100%;
    background-position: 17px 100%;
    transform: translateY(100%);
    transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}

[data-mode='sea']:hover::before {
    opacity: 0.55;
    transform: none;
    animation: gat-swell-fast 2s linear infinite;
}

[data-mode='sea']:hover::after {
    opacity: 0.28;
    transform: none;
    animation: gat-swell 3.1s linear infinite;
}

[data-mode='sea'] i {
    transform-origin: 50% 75%;
}

[data-mode='sea']:hover i {
    /* Качка на волнах: медленно и тягуче, ±5° с двухпиксельным ходом.
       Цикл начинается и заканчивается в нуле — на выходе из ховера
       скачок не превышает 5° (для иконки 18px это доли пикселя). */
    animation: gat-rock 4s ease-in-out infinite;
}

/* Общая реакция карточек: приподнимаются и подсвечиваются. */

.transport-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-soft);
}

.transport-card:hover .transport-card__icon {
    transform: translateY(-2px);
}

.mode:hover {
    background-color: rgba(246, 245, 255, 0.045);
}

.mode:hover .mode__note {
    color: rgba(246, 245, 255, 0.72);
}

/* Шаг фона равен периоду градиента — цикл бесшовный. */

@keyframes gat-trail {
    to {
        background-position: 13px 0, 13px 7px, 13px 14px;
    }
}

@keyframes gat-road {
    to {
        background-position: 28px 0;
    }
}

@keyframes gat-rail {
    to {
        background-position: 16px 0;
    }
}

@keyframes gat-swell-fast {
    to {
        background-position: 26px 100%;
    }
}

@keyframes gat-swell {
    to {
        background-position: -34px 100%;
    }
}

@keyframes gat-idle {
    /* Вибрация работающего мотора фуры: ход всего 1px. */
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1px);
    }
}

@keyframes gat-clatter {
    /* Стук колёс вагона: быстрые микросмещения по горизонтали. */
    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(1.5px);
    }

    50% {
        transform: translateX(-1px);
    }

    75% {
        transform: translateX(0.5px);
    }
}

@keyframes gat-rock {
    /* Качка на волнах: наклон 5° → −5° и обратно, с лёгким ходом
       по вертикали. Цикл замкнут в нуле — бесшовный loop. */
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-2px) rotate(5deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(-2px) rotate(-5deg);
    }
}

/* --------------------- анимация принципов (value-card) ------------------ */
/* Принципы «Прозрачность / Ответственность / Точность документов / Один
   менеджер» стоят на карточках .value-card (главная и «О компании»). Мотив —
   та же тонкая линия у нижнего края, что и у направлений, но у каждого
   принципа своё движение: полоса света по линии, купол защиты над ней,
   «печать» строки, точка-менеджер вдоль маршрута. Тип приходит из
   build/data.js полем key → атрибут data-principle, как и data-mode у
   направлений. Всё включается только при наведении. */

[data-principle] i {
    transition: transform 0.4s var(--ease);
}

[data-principle]::before,
[data-principle]::after {
    content: '';
    position: absolute;
    left: var(--scene-x);
    right: var(--scene-x);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.32s var(--ease), transform 0.44s var(--ease);
}

[data-principle]::before {
    bottom: 16px;
    height: 1px;
}

/* ---- Прозрачность: свет протягивается по линии, весы покачиваются ---- */

[data-principle='transparency']::before {
    /* Полоса «проявляется» слева и уходит вправо: свет бежит по линии,
       но никогда не выходит за её пределы — обрезки по краям нет. */
    height: 2px;
    background-image: linear-gradient(90deg, transparent, var(--motif) 40%, var(--motif) 60%, transparent);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

[data-principle='transparency']:hover::before {
    opacity: 1;
    animation: gat-sheen 2.4s linear infinite;
}

[data-principle='transparency']:hover i {
    animation: gat-level 2.8s var(--ease) infinite;
}

/* ---- Ответственность: линия накрывается куполом ---- */

[data-principle='responsibility']::before {
    background: var(--motif);
}

[data-principle='responsibility']:hover::before {
    opacity: 0.45;
}

[data-principle='responsibility']::after {
    bottom: 16px;
    height: 10px;
    border: 1px solid var(--motif);
    border-bottom: 0;
    /* Эллиптический радиус: дуга поднимается от концов линии к центру,
       без «капсулы» с прямыми углами. */
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleY(0.08);
    transform-origin: 50% 100%;
}

[data-principle='responsibility']:hover::after {
    opacity: 0.5;
    transform: scaleY(1);
    animation: gat-guard 2.8s var(--ease) infinite;
}

[data-principle='responsibility']:hover i {
    transform: translateY(-2px);
}

/* ---- Точность документов: строка печатается и стирается ---- */

[data-principle='documents']::before {
    height: 2px;
    background-image: repeating-linear-gradient(90deg, var(--motif) 0 6px, transparent 6px 11px);
    clip-path: inset(0 100% 0 0);
}

[data-principle='documents']:hover::before {
    opacity: 0.8;
    animation: gat-type 2.8s steps(18, end) infinite;
}

[data-principle='documents']:hover i {
    transform: translateY(-2px);
}

/* ---- Один менеджер: точка ведёт сделку по маршруту ---- */

[data-principle='manager']::before {
    background-image: repeating-linear-gradient(90deg, var(--motif) 0 4px, transparent 4px 9px);
}

[data-principle='manager']:hover::before {
    opacity: 0.35;
}

[data-principle='manager']::after {
    bottom: 13px;
    height: 7px;
    background-image: radial-gradient(circle at 50% 50%, var(--motif) 0 3.2px, transparent 3.6px);
    background-size: 7px 7px;
    background-repeat: no-repeat;
    background-position: 0 50%;
}

[data-principle='manager']:hover::after {
    opacity: 1;
    animation: gat-guide 3.4s linear infinite;
}

[data-principle='manager']:hover i {
    transform: translateY(-2px) scale(1.05);
}

/* Дистанции в кейфреймах кратны периоду фона — иначе на стыке виден рывок. */

@keyframes gat-sheen {
    0% {
        transform: scaleX(0);
        transform-origin: 0 50%;
        opacity: 0;
    }

    12% {
        transform: scaleX(0);
        transform-origin: 0 50%;
        opacity: 1;
    }

    46% {
        transform: scaleX(1);
        transform-origin: 0 50%;
        opacity: 1;
    }

    54% {
        transform: scaleX(1);
        transform-origin: 100% 50%;
        opacity: 1;
    }

    88%,
    100% {
        transform: scaleX(0);
        transform-origin: 100% 50%;
        opacity: 0;
    }
}

@keyframes gat-level {
    0%,
    100% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(-6deg);
    }

    75% {
        transform: rotate(6deg);
    }
}

@keyframes gat-guard {
    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.18);
    }
}

@keyframes gat-type {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    55%,
    78% {
        clip-path: inset(0 0 0 0);
    }

    100% {
        clip-path: inset(0 0 0 100%);
    }
}

@keyframes gat-guide {
    from {
        background-position: 0 50%;
    }

    to {
        background-position: 100% 50%;
    }
}

.note-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.note-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1rem + 1vw, 1.8rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink-strong);
}

.note-card p {
    max-width: 68ch;
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-muted);
}

.gtd-wrap {
    margin-top: 28px;
    padding: clamp(20px, 3vw, 34px);
    border-radius: var(--radius-lg);
    background: var(--navy-950);
}

.gtd-wrap .gtd {
    margin-inline: auto;
    max-width: 560px;
}

/* ---------------------------- сетка поставок (в услугах) --------------- */

.supply-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.supply-grid--light .supply-card {
    background: var(--surface);
    border-color: var(--line);
}

.supply-grid--light .supply-card:hover {
    background: var(--surface);
    border-color: var(--line-strong);
    transform: translateY(-4px);
}

.supply-grid--light .supply-card__body h3 {
    color: var(--ink-strong);
}

.supply-grid--light .supply-card__body p {
    color: var(--ink-muted);
}

.supply-grid--light .supply-card__link {
    color: var(--ink-strong);
}

/* ---------------------------- пагинация услуг -------------------------- */

.pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pager__item {
    display: grid;
    gap: 7px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.pager__item--next {
    text-align: right;
}

.pager__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.pager__item--next .pager__label {
    justify-content: flex-end;
}

.pager__title {
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.25;
    color: var(--ink-strong);
    transition: color 0.2s var(--ease);
}

.pager__item:hover .pager__title {
    color: var(--ink-hover);
}

/* ---------------------------- страница поставок ------------------------ */

.supplies-page {
    background: var(--paper);
}

.anchor-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: clamp(36px, 5vw, 60px);
    padding: 14px 0;
    background: var(--paper);
    background: color-mix(in srgb, var(--paper) 84%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid var(--line);
}

.anchor-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: 13px;
    white-space: nowrap;
    background: var(--surface);
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.anchor-nav a span {
    font-family: var(--font-display);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    transition: color 0.25s var(--ease);
}

.anchor-nav a:hover {
    background: var(--chip-solid);
    border-color: var(--chip-solid);
    color: var(--chip-solid-ink);
}

.anchor-nav a:hover span {
    color: var(--chip-solid-accent);
}

.anchor-nav a.is-active {
    background: var(--chip-solid);
    border-color: var(--chip-solid);
    color: var(--chip-solid-ink);
}

.anchor-nav a.is-active span {
    color: var(--chip-solid-accent);
}

.directions {
    display: grid;
    gap: clamp(48px, 6vw, 86px);
}

.direction {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    scroll-margin-top: var(--anchor-gap, calc(var(--header-h) + 80px));
}

.direction__media {
    position: relative;
}

.direction__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}

.direction__num {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: var(--gold);
    color: var(--navy-950);
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.direction__body h2 {
    margin-top: 0;
}

.direction__text {
    max-width: 58ch;
    margin-top: 18px;
    font-size: 14.8px;
    line-height: 1.6;
    color: var(--ink-muted);
}

.direction__body .checklist {
    margin-top: 22px;
}

.direction__body .link-arrow {
    margin-top: 26px;
}

.groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.group h3 {
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 400;
    color: var(--ink-strong);
}

.group ul {
    display: grid;
    gap: 6px;
}

.group li {
    position: relative;
    padding-left: 14px;
    font-size: 13.2px;
    line-height: 1.5;
    color: var(--ink-muted);
}

.group li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ink-strong);
    opacity: 0.3;
}

.brand-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 24px;
}

.brand-chips span {
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-size: 12px;
    color: var(--ink-muted);
}

/* ---------------------------- страница «О компании» -------------------- */

.about-page {
    background: var(--paper);
}

.about-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(36px, 6vw, 76px);
    align-items: center;
}

.about-page__media {
    position: relative;
}

.about-page__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}

.about-page__copy h2 {
    margin-top: 0;
}

.about-page__copy p:not(.eyebrow) {
    max-width: 60ch;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-muted);
}

.about-page__copy .btn {
    margin-top: 28px;
}

.about-facts {
    background: var(--paper-2);
}

/* ---------------------------- география -------------------------------- */

.geo {
    padding: clamp(64px, 8vw, 106px) 0;
    background:
        radial-gradient(900px 460px at 12% 0%, rgba(212, 175, 94, 0.12), transparent 60%),
        var(--navy-950);
    color: var(--on-dark);
}

.geo__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(36px, 6vw, 72px);
    align-items: start;
}

.geo__aside > p:not(.eyebrow) {
    max-width: 42ch;
    margin-top: 18px;
    font-size: 14.5px;
}

.geo__aside .btn {
    margin-top: 28px;
}

.geo__list li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid var(--line-dark);
}

.geo__list li:last-child {
    border-bottom: 1px solid var(--line-dark);
}

.geo__list span {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--gold);
    padding-top: 3px;
}

.geo__list b {
    display: block;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--on-dark);
}

.geo__list p {
    margin-top: 5px;
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(246, 245, 255, 0.58);
}

/* ---------------------------- страница контактов ----------------------- */

.contacts-page {
    background: var(--paper);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.contact-card__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--gold);
    color: var(--navy-950);
    font-size: 16px;
}

.contact-card h2 {
    margin-top: 18px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--ink-strong);
}

.contact-card p {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink-muted);
}

.contact-card p a:hover {
    color: var(--ink-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-card__note {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--ink-muted);
    opacity: 0.8;
}

.contact-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 16px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-strong);
    transition: gap 0.25s var(--ease);
}

.contact-card__link i {
    font-size: 10px;
}

.contact-card__link:hover {
    gap: 11px;
}

/* ---------------------------- заявка + форма -------------------------- */

.request {
    background: var(--paper-2);
    scroll-margin-top: var(--header-h);
}

.request__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.request__aside > p:not(.eyebrow) {
    max-width: 44ch;
    margin-top: 18px;
    font-size: 14.5px;
    color: var(--ink-muted);
}

.requisites {
    margin-top: 30px;
    padding: 20px 22px;
    border-left: 2px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--panel-tint);
}

.requisites__label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.requisites p:not(.requisites__label) {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-muted);
}

.requisites b {
    font-weight: 500;
    color: var(--ink);
}

.form {
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.form__head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink-strong);
}

.form__head p {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-muted);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 22px;
}

.field {
    display: grid;
    gap: 7px;
}

.form > .field {
    margin-top: 16px;
}

.form label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink);
}

.form label span {
    color: var(--danger);
}

.input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--field-border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.input::placeholder {
    color: var(--field-placeholder);
}

.input:focus {
    outline: none;
    border-color: var(--focus-border);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(212, 175, 94, 0.6);
}

textarea.input {
    min-height: 108px;
    resize: vertical;
}

.field--check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
}

.field--check input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 3px;
    accent-color: var(--control-accent);
}

.field--check label {
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink-muted);
}

.field--check label span {
    color: inherit;
}

.form .btn {
    margin-top: 20px;
}

.form__status {
    min-height: 20px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.form__status.is-error {
    color: var(--danger);
}

.form__status.is-ok {
    color: var(--success);
}

.form__note {
    margin-top: 6px;
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--ink-muted);
    opacity: 0.85;
}

/* ---------------------------- мелкие уточнения ------------------------- */

.service-row__body {
    min-width: 0;
}

.customs__visual {
    display: grid;
    align-content: center;
    gap: 16px;
}

.pager__item--prev {
    justify-items: start;
}

.round-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.input.is-invalid {
    border-color: var(--danger);
    background: var(--surface);
}

.input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14);
}

.form .btn:disabled {
    opacity: 0.6;
    cursor: progress;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1180px) {
    .header__phone {
        display: none;
    }

    .nav__link {
        padding: 10px 11px;
        font-size: 14px;
    }

    .footer__grid {
        gap: 30px;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
    }
}

@media (max-width: 1080px) {
    .values__grid,
    .contact-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .supply-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facts--wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    :root {
        --header-h: 70px;
    }

    .header__cta {
        display: none;
    }

    .header__actions {
        margin-left: auto;
    }

    .burger {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 95;
        width: min(370px, 88vw);
        margin: 0;
        padding: calc(var(--header-h) + 22px) 24px 32px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--navy-950);
        border-left: 1px solid var(--line-dark);
        overflow-y: auto;
        visibility: hidden;
        transform: translateX(102%);
        transition: transform 0.4s var(--ease), visibility 0.4s var(--ease);
    }

    .nav.is-open {
        visibility: visible;
        transform: none;
    }

    .nav__link {
        padding: 15px 4px;
        font-family: var(--font-display);
        font-size: 18px;
        color: rgba(246, 245, 255, 0.86);
        border-bottom: 1px solid var(--line-dark);
        border-radius: 0;
    }

    .nav__link:hover {
        background: transparent;
        color: var(--gold);
    }

    .nav__link.is-active {
        color: var(--gold);
    }

    .nav__link.is-active::after {
        display: none;
    }

    .nav__footer {
        display: grid;
        gap: 10px;
        margin-top: 26px;
        padding-top: 22px;
        border-top: 1px solid var(--line-dark);
    }

    .nav__phone {
        font-family: var(--font-display);
        font-size: 21px;
        color: var(--gold);
    }

    .nav__mail {
        font-size: 13.5px;
        color: rgba(246, 245, 255, 0.7);
    }

    .nav__footer .btn {
        margin-top: 8px;
    }

    .hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .modes__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mode {
        padding: 18px 20px 18px 0;
    }

    .mode:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .mode:nth-child(even) {
        padding-left: 22px;
    }

    .mode:nth-child(n + 3) {
        border-top: 1px solid var(--line-dark);
    }

    .intro__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .customs__grid,
    .about-teaser__grid,
    .faq__grid,
    .contacts__grid,
    .process__grid,
    .request__grid,
    .geo__grid,
    .about-page__grid {
        grid-template-columns: 1fr;
    }

    .customs__grid,
    .about-teaser__grid,
    .about-page__grid {
        gap: 40px;
    }

    .about-photo img,
    .about-page__media img {
        aspect-ratio: 16 / 11;
    }

    .about-photo__badge {
        left: 18px;
        bottom: 18px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-aside {
        position: static;
        max-width: 440px;
    }

    .contact-list {
        margin-bottom: 8px;
    }

    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px;
    }

    .footer__brand {
        grid-column: span 2;
    }

    .map,
    .map iframe {
        min-height: 340px;
    }

    .direction {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .direction__media {
        order: -1;
    }

    .section-head--split {
        display: grid;
        gap: 20px;
        align-items: start;
    }

    .section-head--split > div:first-child {
        flex: none;
    }
}

@media (max-width: 760px) {
    .container {
        width: calc(100% - 32px);
    }

    .section {
        padding: 54px 0;
    }

    .section-lead {
        font-size: 14.5px;
    }

    .hero {
        min-height: min(760px, 100svh);
    }

    .hero__inner {
        padding-top: calc(var(--header-h) + 64px);
        padding-bottom: 40px;
    }

    .hero__title {
        max-width: 100%;
    }

    .hero__lead {
        margin-top: 20px;
        font-size: 15px;
    }

    .hero__actions {
        margin-top: 26px;
    }

    .hero__actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .hero__stats {
        margin-top: 40px;
        gap: 18px;
    }

    .mode {
        padding: 16px 14px 16px 0;
    }

    .mode:nth-child(even) {
        padding-left: 16px;
    }

    .mode__name {
        font-size: 13px;
    }

    .mode__desc {
        margin-top: 4px;
        font-size: 12px;
    }

    .intro__text {
        font-size: 1.35rem;
        line-height: 1.35;
    }

    .service-row {
        grid-template-columns: 34px minmax(0, 1fr) 36px;
        gap: 14px;
        padding: 22px 0;
    }

    .service-row:hover {
        padding-inline: 0;
    }

    .service-row__title {
        font-size: 19px;
    }

    .service-row__desc {
        font-size: 13.2px;
    }

    .service-row__arrow {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .checklist li {
        font-size: 13.8px;
    }

    .steps li {
        padding-left: 32px;
    }

    .gtd {
        padding: 14px;
    }

    .gtd__top {
        flex-wrap: wrap;
        gap: 8px;
    }

    .gtd__hint {
        display: none;
    }

    .gtd__row {
        grid-template-columns: 1fr;
        gap: 3px;
        font-size: 13.5px;
    }

    .gtd__row--wide {
        grid-column: auto;
    }

    .supplies__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .supplies__controls {
        width: 100%;
        justify-content: space-between;
    }

    .supply-card {
        flex: 0 0 78vw;
    }

    .brands__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .values__grid {
        grid-template-columns: 1fr;
    }

    .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facts--wide {
        grid-template-columns: 1fr;
    }

    .cta__grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .cta__actions {
        justify-content: flex-start;
    }

    .contact-list li {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
        padding: 20px 0;
    }

    .contact-list__value {
        font-size: 17px;
    }

    .map iframe {
        min-height: 320px;
    }

    .map-section__foot {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .questions__grid {
        grid-template-columns: 1fr;
    }

    .transport-grid {
        grid-template-columns: 1fr;
    }

    .groups {
        grid-template-columns: 1fr;
    }

    .pager {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pager__item--next {
        text-align: left;
    }

    .pager__item--next .pager__label {
        justify-content: flex-start;
    }

    .anchor-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin-inline: -16px;
        padding-inline: 16px;
    }

    .anchor-nav::-webkit-scrollbar {
        display: none;
    }

    .form__row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .requisites {
        margin-top: 24px;
    }

    .geo__list li {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 12px;
        padding: 18px 0;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer__brand {
        grid-column: auto;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-hero {
        padding-top: calc(var(--header-h) + 54px);
    }

    .page-hero__actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .header__logo .logo__text b {
        font-size: 15px;
    }

    .header__logo .logo__text span {
        font-size: 8.6px;
        letter-spacing: 0.09em;
    }

    .header__actions {
        gap: 10px;
    }

    .theme-toggle {
        --toggle-w: 54px;
        --toggle-h: 28px;
        --toggle-pad: 2px;
    }

    .theme-toggle__icon svg {
        width: 13px;
        height: 13px;
    }

    .lang-switch {
        --lang-w: 84px;
        --lang-h: 28px;
        --lang-pad: 2px;
        --lang-thumb-w: 26px;
    }

    .lang-switch__item {
        font-size: 10.5px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    .round-btn {
        width: 40px;
        height: 40px;
    }

    .hero__stats {
        grid-template-columns: 1fr 1fr;
        gap: 16px 14px;
        padding-top: 26px;
    }

    .hero__stats b {
        font-size: 1.55rem;
    }

    .hero__stats span {
        font-size: 11.5px;
        line-height: 1.4;
    }

    .modes__inner {
        grid-template-columns: 1fr;
    }

    .mode,
    .mode:nth-child(even) {
        padding: 14px 0;
        border-left: 0;
    }

    .mode:nth-child(n + 2) {
        border-top: 1px solid var(--line-dark);
    }

    .supply-card {
        flex: 0 0 85vw;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .facts {
        grid-template-columns: 1fr;
    }

    .fact {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 18px 0;
    }

    .fact:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .page-hero__title {
        font-size: 2.05rem;
    }

    .breadcrumbs {
        margin-bottom: 20px;
        font-size: 11.5px;
    }

    .anchor-nav a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .aside-card {
        padding: 24px 20px;
    }

    .form {
        padding: 22px 18px;
    }

    .cta__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .brands__count {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .marquee__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Мотивы направлений и принципов: без движения и без «прыжка» при наведении. */
    [data-mode]::before,
    [data-mode]::after,
    [data-mode]:hover i,
    [data-principle]::before,
    [data-principle]::after,
    [data-principle]:hover i {
        animation: none !important;
    }

    [data-mode]:hover::before,
    [data-mode]:hover::after,
    [data-principle]:hover::before,
    [data-principle]:hover::after {
        opacity: 0 !important;
    }
}

/* ------- кастомные эффекты (по мотивам reactbits.dev) ------------------ */

/* Canvas-слой для фоновых эффектов. Живёт внутри секции, не ловит
   события и не перехватывает выделение текста. */
.fx-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Секции с эффектами: контент поднимается над canvas. */
.customs .fx-layer,
.cta .fx-layer {
    z-index: 0;
}

.customs__grid,
.cta__grid {
    position: relative;
    z-index: 1;
}

.cta {
    position: relative;
    overflow: hidden;
}

/* Появление заголовка hero по словам: blur + сдвиг вверх, каскад
   задержек задаётся в JS. Слова — inline-block, чтобы transform
   работал; пробелы остаются текстовыми узлами. */
.hero__title .hero-word {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(14px);
    transition: opacity 0.55s ease, filter 0.55s ease, transform 0.55s ease;
    will-change: opacity, filter, transform;
}

.hero__title.hero-title-in .hero-word {
    opacity: 1;
    filter: none;
    transform: none;
}

/* Магнитная кнопка: JS пишет inline-transform, переход делает его
   плавным. Возврат к нулю — тем же переходом. */
.hero .btn--primary {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {

    .fx-layer {
        display: none;
    }

    .hero__title .hero-word {
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
    }

    .hero .btn--primary {
        transition: none;
    }
}
