/* === TOKENS (LIGHT THEME) === */
:root {
    --bg: #f6f5f3;             /* основной фон страницы — тёплый off-white */
    --bg-deep: #ffffff;        /* «глубокий» белый (футер, низ страницы) */
    --bg-panel: #ffffff;       /* карточки / панели */
    --bg-card: #ffffff;
    --bg-card-2: #fafaf8;

    --acc: #e23b3b;
    --acc-green: #2fce75;

    --text-h: #0c0f12;         /* заголовки */
    --text: #1a1d20;           /* основной текст */
    --text-2: #2a2e32;
    --text-3: #4a5057;         /* приглушённый текст */
    --text-4: #5a6068;
    --text-mute: #6a7078;
    --text-mono: #7a8088;      /* моно-лейблы */
    --text-dim: #a0a5aa;       /* подпись/футнот */

    --border-1: rgba(10, 15, 20, 0.06);
    --border-2: rgba(10, 15, 20, 0.08);
    --border-3: rgba(10, 15, 20, 0.12);
    --border-4: rgba(10, 15, 20, 0.16);
    --border-5: rgba(10, 15, 20, 0.20);

    --steel: #4a5057;

    --f-display: 'Onest', 'Archivo', sans-serif;
    --f-mono: 'IBM Plex Mono', monospace;

    /* Easing-набор по Emil Kowalski */
    --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-enter:  cubic-bezier(0.16, 1, 0.3, 1);

    --pad-section-y: 120px;
    --pad-section-x: clamp(20px, 6vw, 90px);
    --container: 1240px;

    --r-2: 2px;
    --r-3: 3px;
    --r-4: 4px;
    --r-6: 6px;
    --r-10: 10px;
}

/* === RESET === */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-display);
    -webkit-font-smoothing: antialiased;
}
img:not([data-pimg]):not([data-pbg]), video, iframe {
    max-width: 100%;
}
h1, h2, h3, h4, h5, h6 {
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
}
p, div { overflow-wrap: break-word; word-break: normal; }
input, textarea, select { font-size: 16px; font-family: inherit; }
button { font-family: inherit; }
input[type=range] { accent-color: var(--acc); height: 3px; }
::selection { background: var(--acc); color: #fff; }
a { color: inherit; text-decoration: none; }

/* === PARALLAX BACKGROUND === */
.bg-parallax {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--bg);
}
.bg-photo {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: none;
}
.bg-photo[data-photo="0"] { opacity: 1; }
.bg-photo img {
    position: absolute;
    inset: -2.5%;
    width: 105%;
    height: 105%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}
/* белые «вуали» поверх параллакс-фото — обеспечивают читаемость тёмного текста */
.bg-veil-1 {
    position: absolute;
    inset: 0;
    /* Диагональный сплит: слева сплошной фон, справа — фото.
       Резкая косая линия раздела идёт от верхне-правого угла к нижне-левому. */
    background: linear-gradient(
        108deg,
        var(--bg) 0%,
        var(--bg) 48%,
        rgba(246, 245, 243, 0) 53%,
        rgba(246, 245, 243, 0) 100%
    );
}
@media (max-width: 768px) {
    /* На мобильном диагональ выглядит криво — возвращаем плотный полупрозрачный белый сверху вниз */
    .bg-veil-1 {
        background: linear-gradient(
            180deg,
            rgba(246, 245, 243, 0.94) 0%,
            rgba(246, 245, 243, 0.78) 60%,
            rgba(246, 245, 243, 0.40) 100%
        );
    }
}
.bg-glow {
    position: absolute;
    inset: 0;
    will-change: transform;
    background: radial-gradient(52% 44% at 24% 16%, rgba(226, 59, 59, 0.10), transparent 60%);
}
.bg-veil-2 {
    position: absolute;
    inset: 0;
    background: radial-gradient(135% 110% at 50% 42%, transparent 30%, rgba(246, 245, 243, 0.28) 74%, var(--bg) 100%);
}
.bg-fade-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 26%;
    background: linear-gradient(180deg, transparent, var(--bg));
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 56px);
    backdrop-filter: blur(14px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.65));
    border-bottom: 1px solid var(--border-2);
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header .logo img {
    height: 38px;
    width: auto;
    display: block;
    filter:
        drop-shadow(0 0 0.5px rgba(10, 15, 20, 0.55))
        drop-shadow(0 1px 2px rgba(10, 15, 20, 0.15));
}
.logo-text {
    font: 600 20px/1 var(--f-display);
    letter-spacing: 3px;
    color: var(--text-h);
}
.nav-desktop {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
}
.nav-link {
    font: 500 12px var(--f-mono);
    letter-spacing: 1px;
    color: var(--text-mono);
    transition: color .2s ease;
}
.nav-link:hover { color: var(--acc); }
.cta-call {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font: 700 12px var(--f-mono);
    letter-spacing: 0.5px;
    color: #fff;
    background: var(--acc);
    padding: 11px 16px;
    border-radius: var(--r-2);
    transition: filter 160ms ease-out, transform 120ms var(--ease-out);
}
.cta-call:hover { filter: brightness(1.1); }
.cta-call:active { transform: scale(0.97); }
.cta-call .cta-ring {
    display: inline-flex;
    align-items: center;
}
.nav-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-3);
    border-radius: var(--r-4);
    cursor: pointer;
    padding: 0;
}

/* === MOBILE DRAWER === */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(10, 15, 20, 0.45);
    backdrop-filter: blur(6px);
    display: none;
}
.drawer-backdrop.open { display: block; }
.drawer {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(86vw, 360px);
    background: #ffffff;
    border-left: 1px solid var(--border-2);
    display: flex;
    flex-direction: column;
    padding: 18px 22px 28px;
    animation: chatpop .28s cubic-bezier(.2,.8,.2,1) both;
    overflow-y: auto;
}
.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.drawer-close {
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--border-3);
    border-radius: var(--r-4);
    color: var(--text-h);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 24px;
}
.drawer-link {
    font: 600 18px var(--f-display);
    color: var(--text-h);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-2);
}
.drawer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font: 700 15px var(--f-display);
    color: #fff;
    background: var(--acc);
    padding: 16px;
    border-radius: var(--r-3);
    min-height: 48px;
}
.drawer-mail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font: 600 14px var(--f-display);
    color: var(--text-h);
    border: 1px solid var(--border-4);
    padding: 14px;
    border-radius: var(--r-3);
    margin-top: 10px;
    min-height: 48px;
}
.drawer-addr {
    font: 500 11px/1.4 var(--f-mono);
    letter-spacing: 1px;
    color: var(--text-mono);
    margin-top: 22px;
}

/* === NAV DOTS === */
.nav-dots-side {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}
.nav-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(10, 15, 20, 0.22);
    transition: background-color 220ms ease-out, transform 220ms var(--ease-out), box-shadow 220ms ease-out;
}

/* === MAIN / SECTIONS === */
main {
    position: relative;
    z-index: 1;
}
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--pad-section-y) var(--pad-section-x);
    position: relative;
}
.section-inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
}

/* === EYEBROW === */
.eyebrow {
    font: 600 12px var(--f-mono);
    letter-spacing: 4px;
    color: var(--acc);
    margin-bottom: 20px;
}

/* === HEADINGS === */
.h-display {
    font: 800 clamp(38px, 7vw, 98px)/0.97 var(--f-display);
    letter-spacing: -1px;
    color: var(--text-h);
    margin: 0 0 28px;
    text-transform: uppercase;
    text-wrap: balance;
}
.h-section {
    font: 800 clamp(28px, 4.4vw, 56px)/1.02 var(--f-display);
    letter-spacing: -1px;
    color: var(--text-h);
    margin: 0 0 22px;
    text-transform: uppercase;
}
.h-section-sm {
    font: 800 clamp(26px, 3.6vw, 44px)/1.02 var(--f-display);
    letter-spacing: -1px;
    color: var(--text-h);
    margin: 0;
    text-transform: uppercase;
}

/* === LEAD TEXT === */
.lead {
    font: 400 clamp(15px, 1.5vw, 21px)/1.55 var(--f-display);
    color: var(--text-2);
    max-width: 600px;
    margin: 0 0 40px;
}
.body-lg {
    font: 400 clamp(15px, 1.4vw, 18px)/1.6 var(--f-display);
    color: var(--text-2);
    margin: 0;
}
.body-md {
    font: 400 15px/1.55 var(--f-display);
    color: var(--text-3);
    margin: 0;
}
.body-sm {
    font: 400 14px/1.5 var(--f-display);
    color: var(--text-3);
    margin: 0;
}

/* === BUTTONS === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 700 14px var(--f-display);
    letter-spacing: 0.3px;
    color: #fff;
    background: var(--acc);
    padding: 17px 28px;
    border-radius: var(--r-2);
    border: none;
    cursor: pointer;
    transition: filter 180ms ease-out, transform 180ms var(--ease-out);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0) scale(0.97); transition-duration: 100ms; }
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 600 14px var(--f-display);
    color: var(--text-h);
    border: 1px solid var(--border-5);
    padding: 17px 26px;
    border-radius: var(--r-2);
    background: transparent;
    cursor: pointer;
    transition: color 180ms ease-out, border-color 180ms ease-out, transform 180ms var(--ease-out);
}
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); }
.btn-ghost:active { transform: scale(0.97); transition-duration: 100ms; }

/* === HERO === */
.hero-inner { max-width: 900px; }
.hero-stats {
    display: flex;
    gap: clamp(28px, 5vw, 56px);
    margin-top: 64px;
    flex-wrap: wrap;
}
.hero-stat-num {
    font: 800 clamp(30px, 4vw, 48px)/1 var(--f-display);
    color: var(--text-h);
}
.hero-stat-num span.acc { color: var(--acc); }
.hero-stat-num span.sm { font-size: 0.5em; color: var(--text-mono); }
.hero-stat-label {
    font: 500 11px var(--f-mono);
    letter-spacing: 1.5px;
    color: var(--text-mono);
    margin-top: 8px;
}
.hero-stat-div {
    width: 1px;
    background: var(--border-3);
}

/* === SECTION HEAD ROWS === */
.section-head {
    margin-bottom: 52px;
    max-width: 760px;
}
.section-head .body-lg,
.section-head p {
    max-width: 580px;
}
.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.section-head-row .head-text { max-width: 720px; }
.section-head-row .head-aside {
    max-width: 300px;
    font: 500 14px/1.5 var(--f-display);
    color: var(--text-h);
    margin: 0;
    /* Многослойная светлая тень — гарантирует читаемость поверх фоновых картинок секции */
    text-shadow:
        0 0 8px  rgba(246, 245, 243, 0.95),
        0 0 18px rgba(246, 245, 243, 0.85),
        0 0 32px rgba(246, 245, 243, 0.55);
}

/* === PROCESS / PRODUCT GRID === */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
    gap: 16px;
}
.process-item { position: relative; }
.process-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: var(--r-6);
    padding: 34px 28px 30px;
    height: 100%;
    transition: transform 240ms var(--ease-out), border-color 200ms ease-out, box-shadow 240ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .process-item:hover .process-card {
        transform: translateY(-4px);
        border-color: rgba(226,59,59,0.55);
        box-shadow: 0 18px 36px -16px rgba(10, 15, 20, 0.18), 0 0 0 1px rgba(226, 59, 59, 0.18);
    }
}
.process-top {
    position: absolute;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--acc);
    transition: width 280ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .process-item:hover .process-top { width: 100%; }
}
.process-fill {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(226, 59, 59, 0) 0%, rgba(226, 59, 59, 0.06) 55%, rgba(226, 59, 59, 0.14) 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 280ms var(--ease-out);
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .process-item:hover .process-fill { transform: scaleY(1); }
}
.process-bgnum {
    position: absolute;
    top: 14px;
    right: 18px;
    font: 800 76px/1 var(--f-display);
    color: rgba(10, 15, 20, 0.06);
    letter-spacing: -2px;
    transition: color 200ms ease-out;
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .process-item:hover .process-bgnum { color: rgba(226, 59, 59, 0.22); }
}
.process-body {
    position: relative;
    z-index: 1;
    transition: transform 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .process-item:hover .process-body { transform: translateX(8px); }
}
.process-kicker {
    font: 600 12px var(--f-mono);
    letter-spacing: 1px;
    color: var(--acc);
    margin-bottom: 16px;
}
.process-title {
    font: 700 20px var(--f-display);
    color: var(--text-h);
    margin-bottom: 11px;
    /* Без переноса по символам — только по словам. */
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}
/* На узких экранах ПК даём заголовку немного сжаться, чтобы длинные слова не лезли. */
@media (max-width: 1180px) {
    .process-title { font-size: 17px; }
}
@media (max-width: 980px) {
    .process-title { font-size: 16px; }
}
.process-desc {
    font: 400 14px/1.55 var(--f-display);
    color: var(--text-3);
    max-width: 240px;
}
.process-arrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font: 600 12px var(--f-mono);
    letter-spacing: 1px;
    color: var(--acc);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 200ms ease-out, transform 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .process-item:hover .process-arrow {
        opacity: 1;
        transform: translateX(8px);
    }
}


/* process progress strip */
.process-strip {
    margin-top: 44px;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    min-height: 34px;
    background: rgba(255, 255, 255, 0.93);
    -webkit-backdrop-filter: blur(10px) saturate(1.05);
            backdrop-filter: blur(10px) saturate(1.05);
    border: 1px solid var(--border-2);
    border-radius: 16px;
    padding: 18px clamp(22px, 3vw, 36px);
    box-shadow: 0 14px 38px -22px rgba(10, 15, 20, 0.22);
}
@media (max-width: 640px) {
    .process-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px 22px;
        border-radius: 14px;
        min-height: 0;
    }
    .process-strip .process-step-wrap {
        width: 100%;
        height: auto;
    }
    .process-strip .process-step-conn {
        display: none;
    }
    .process-strip .process-step-label {
        white-space: normal;
        transform-origin: left center !important;
    }
}
.process-step-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 34px;
}
.process-step-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex: none;
    transition: background-color 280ms ease-out, transform 280ms var(--ease-out), box-shadow 280ms ease-out;
}
.process-step-label {
    font: 500 13px var(--f-mono);
    letter-spacing: 1px;
    white-space: nowrap;
    transform-origin: left center;
    transition: color 280ms ease-out, transform 280ms var(--ease-out);
}
.process-step-conn {
    flex: 1;
    min-width: 30px;
    height: 2px;
    background: var(--border-3);
    margin: 0 16px;
    border-radius: 2px;
    overflow: hidden;
}
.process-step-conn > i {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: var(--acc-green);
    width: 0;
    transition: width .55s ease;
}

/* === WORK CAROUSEL === */
.carousel-wrap {
    position: relative;
    margin: 0 -4px;
}
.carousel-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px 4px 16px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-arrows {
    display: flex;
    gap: 10px;
    flex: none;
}
.car-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-3);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-h);
    font: 400 19px var(--f-display);
    line-height: 1;
    cursor: pointer;
    transition: border-color 180ms ease-out, color 180ms ease-out, background 180ms ease-out, transform 180ms var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
}
.car-arrow:hover { border-color: var(--acc); color: var(--acc); background: #fff; }
.car-arrow:active:not(:disabled) { transform: scale(0.94); transition-duration: 100ms; }
.car-arrow:disabled { opacity: 0.35; cursor: default; }
.carousel-fade {
    display: none;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 26px;
}
.car-dot {
    width: 9px;
    height: 9px;
    border-radius: 5px;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 240ms var(--ease-out), background-color 200ms ease-out;
    background: rgba(10, 15, 20, 0.20);
}
.car-dot.active {
    width: 26px;
    background: var(--acc);
}

/* port-card: фото с тёмной вуалью снизу и белым текстом (паттерн «фото-карточка» — стандарт для editorial light theme).
   Ширина адаптивная: 3 / 2 / 1 карточки в строке без обрезания. */
.port-card {
    flex: none;
    width: calc((100% - 44px) / 3); /* 3 карточки + 2 гэпа по 22px */
    text-align: left;
    border: 1px solid var(--border-2);
    background: var(--bg-panel);
    padding: 0;
    cursor: pointer;
    border-radius: var(--r-10);
    overflow: hidden;
    position: relative;
    height: 440px;
    scroll-snap-align: start;
    box-shadow: 0 14px 36px -22px rgba(10, 15, 20, 0.30);
    transition: transform 240ms var(--ease-out), box-shadow 240ms ease-out, border-color 200ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .port-card:hover {
        transform: translateY(-4px);
        border-color: var(--acc) !important;
        box-shadow: 0 24px 48px -22px rgba(10, 15, 20, 0.36), 0 0 0 1px rgba(226, 59, 59, 0.30);
    }
}
.port-card:active { transform: scale(0.99); transition-duration: 100ms; }
@media (max-width: 1023px) {
    .port-card {
        width: calc((100% - 22px) / 2); /* 2 карточки + 1 гэп */
    }
}
@media (max-width: 639px) {
    .port-card {
        width: 100%; /* 1 карточка на весь экран */
    }
}
.port-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms var(--ease-out), filter 250ms ease-out;
}
.port-card:hover .port-img {
    transform: scale(1.04);
    filter: saturate(1.08) brightness(1.04);
}
.port-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 9, 0.10) 0%, rgba(8, 10, 9, 0) 28%, rgba(8, 10, 9, 0.55) 62%, rgba(7, 9, 8, 0.92) 100%);
    transition: background 280ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .port-card:hover .port-veil {
        background: linear-gradient(180deg, rgba(8, 10, 9, 0.18) 0%, rgba(8, 10, 9, 0.05) 26%, rgba(8, 10, 9, 0.65) 62%, rgba(7, 9, 8, 0.96) 100%);
    }
}
.port-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    font: 600 10px var(--f-mono);
    letter-spacing: 1px;
    color: #fff;
    background: var(--acc);
    padding: 5px 9px;
    border-radius: var(--r-2);
    transition: box-shadow 220ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .port-card:hover .port-tag {
        box-shadow: 0 6px 18px rgba(226, 59, 59, 0.5);
    }
}
.port-year {
    position: absolute;
    top: 18px;
    right: 18px;
    font: 500 11px var(--f-mono);
    letter-spacing: 1px;
    color: #fff;
    background: rgba(10, 15, 20, 0.45);
    padding: 4px 8px;
    border-radius: var(--r-2);
    backdrop-filter: blur(4px);
}
.port-info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.port-city {
    font: 500 11px var(--f-mono);
    letter-spacing: 1px;
    color: #ff9999;
    margin-bottom: 8px;
}
.port-name {
    font: 700 21px/1.18 var(--f-display);
    color: #ffffff;
    margin: 0 0 12px;
}
.port-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.port-meta-stat {
    font: 600 14px var(--f-display);
    color: #f3f6f3;
}
.port-more {
    margin-left: auto;
    font: 600 12px var(--f-mono);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 220ms var(--ease-out), color 200ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .port-card:hover .port-more {
        transform: translateX(6px);
        color: #ff9999;
    }
}

/* === PARTNERS MARQUEE === */
.partners-title {
    margin: 80px 0 18px;
    text-align: left;
    font: 700 12px var(--f-mono);
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--acc);
    position: relative;
}
.partners-title::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 60px;
    height: 1px;
    background: var(--acc);
    opacity: 0.5;
    margin: 0 0 0 18px;
}
.partners-marquee {
    margin-top: 14px;
    overflow: hidden;
    position: relative;
    padding: 18px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.partners-track {
    display: flex;
    gap: 56px;
    width: max-content;
    align-items: center;
    animation: partners-scroll 42s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
.partner-item {
    flex: none;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 72px;
    min-width: 120px;
    padding: 0 8px;
}
.partner-item img {
    width: 200px;
    height: 60px;
    object-fit: contain;
    object-position: center;
    /* Светлое свечение — гарантирует читаемость поверх фоновых картинок секции */
    filter:
        drop-shadow(0 0 6px rgba(246, 245, 243, 0.95))
        drop-shadow(0 0 14px rgba(246, 245, 243, 0.7));
    transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .partner-item:hover img {
        transform: scale(1.05);
    }
}
.partner-letter {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: rgba(10, 15, 20, 0.04);
    border: 1px solid var(--border-3);
    color: var(--text-h);
    font: 800 22px var(--f-display);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    box-shadow:
        0 0 8px  rgba(246, 245, 243, 0.95),
        0 0 18px rgba(246, 245, 243, 0.7);
}
.partner-name {
    font: 600 14px var(--f-display);
    color: var(--text-2);
    white-space: nowrap;
    letter-spacing: 0.2px;
    text-shadow:
        0 0 8px  rgba(246, 245, 243, 0.95),
        0 0 18px rgba(246, 245, 243, 0.85),
        0 0 32px rgba(246, 245, 243, 0.55);
}
@keyframes partners-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .partners-track { animation: none; transform: none; }
}

/* === CALC === */
.calc-grid {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(20px, 3vw, 44px);
    align-items: stretch;
}
.calc-form {
    display: flex;
    flex-direction: column;
}
.calc-fields {
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.calc-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.label-mono {
    display: block;
    font: 500 11px var(--f-mono);
    letter-spacing: 1px;
    color: var(--text-mono);
    margin-bottom: 6px;
}
.input,
.select {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-3);
    color: var(--text-h);
    padding: 10px 14px;
    border-radius: var(--r-3);
    font: 600 16px var(--f-display);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.select {
    font: 500 14px var(--f-display);
    cursor: pointer;
}
.input:focus,
.select:focus {
    border-color: var(--acc);
    box-shadow: 0 0 0 3px rgba(226, 59, 59, 0.12);
}
.select option { background: #ffffff; color: var(--text-h); }

.calc-panel {
    border: 1px solid var(--border-2);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-radius: var(--r-6);
    padding: clamp(22px, 2.4vw, 32px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 36px -22px rgba(10, 15, 20, 0.20);
}
.calc-big {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.calc-big-num {
    font: 800 clamp(48px, 6.5vw, 76px)/0.9 var(--f-display);
    color: var(--text-h);
    letter-spacing: -2px;
}
.calc-big-unit {
    font: 600 20px var(--f-display);
    color: var(--acc);
}
.calc-sub-1 {
    font: 500 13px var(--f-mono);
    letter-spacing: 1px;
    color: var(--text-2);
    margin-top: 8px;
}
.calc-sub-2 {
    font: 500 13px var(--f-mono);
    color: var(--text-mono);
    margin-top: 5px;
}
.calc-warn {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 11px 14px;
    border: 1px solid rgba(226, 59, 59, 0.35);
    background: rgba(226, 59, 59, 0.07);
    border-radius: var(--r-4);
}
.calc-warn-icon {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--acc);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 12px var(--f-display);
    color: var(--acc);
}
.calc-warn-text {
    font: 600 13px var(--f-display);
    color: var(--text-h);
}
.calc-list { display: flex; flex-direction: column; }
.calc-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-2);
}
.calc-row .k {
    font: 400 14px var(--f-display);
    color: var(--text-mono);
}
.calc-row .v {
    font: 600 14px var(--f-display);
    color: var(--text-h);
}
.calc-row .v.acc { color: var(--acc); }
.calc-formula {
    margin-top: 16px;
    padding: 11px 14px;
    background: rgba(10, 15, 20, 0.04);
    border-radius: var(--r-4);
    font: 400 11px/1.55 var(--f-mono);
    color: var(--text-mono);
}
.calc-cta {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font: 700 14px var(--f-display);
    color: #fff;
    background: var(--acc);
    padding: 14px;
    border-radius: var(--r-2);
    transition: filter 180ms ease-out, transform 180ms var(--ease-out);
}
.calc-cta:hover { filter: brightness(1.08); }
.calc-cta:active { transform: scale(0.97); transition-duration: 100ms; }
.calc-disclaimer {
    font: 400 11px/1.5 var(--f-mono);
    color: var(--text-dim);
    margin-top: 11px;
}

/* === CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(28px, 5vw, 64px);
}
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.contact-icon {
    flex: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-3);
    font: 600 13px var(--f-mono);
    color: var(--acc);
    transition: border-color 200ms ease-out, background-color 200ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .contact-item:hover .contact-icon {
        border-color: var(--acc);
        background-color: rgba(226, 59, 59, 0.05);
    }
}
.contact-text-1 {
    font: 600 17px/1.25 var(--f-display);
    color: var(--text-h);
}
.contact-text-2 {
    font: 500 10px var(--f-mono);
    letter-spacing: 1px;
    color: var(--text-mono);
    margin-top: 4px;
}

.form-panel {
    border: 1px solid var(--border-2);
    background: #ffffff;
    border-radius: var(--r-6);
    padding: clamp(26px, 3vw, 38px);
    box-shadow: 0 12px 36px -22px rgba(10, 15, 20, 0.20);
}
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-fields .input,
.form-fields textarea {
    font: 400 15px var(--f-display);
    padding: 14px 16px;
}
.form-fields textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-3);
    color: var(--text-h);
    border-radius: var(--r-3);
    outline: none;
    resize: vertical;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-fields textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(226, 59, 59, 0.12); }
.form-fields .input.error,
.form-fields textarea.error {
    border-color: var(--acc);
}

.drop {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 118px;
    padding: 18px;
    border: 1.5px dashed var(--border-4);
    border-radius: 5px;
    background: rgba(10, 15, 20, 0.025);
    cursor: pointer;
    transition: all .2s ease;
}
.drop.drag {
    border-color: var(--acc);
    background: rgba(226, 59, 59, 0.06);
}
.drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    pointer-events: none;
}
.drop-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--acc);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 17px var(--f-display);
    color: var(--acc);
}
.drop-label {
    font: 500 13px var(--f-display);
    color: var(--text-2);
}
.drop-hint {
    font: 400 11px var(--f-mono);
    color: var(--text-dim);
}
.file-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 10px;
}
.file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(10, 15, 20, 0.035);
    border: 1px solid var(--border-2);
    border-radius: var(--r-3);
    padding: 9px 12px;
}
.file-name {
    font: 500 12px var(--f-mono);
    color: var(--text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-size {
    font: 400 11px var(--f-mono);
    color: var(--text-dim);
}
.file-remove {
    background: none;
    border: none;
    color: var(--text-mono);
    font: 400 17px var(--f-display);
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color .2s ease;
}
.file-remove:hover { color: var(--acc); }

.agree-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
}
.agree-row input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--acc);
    cursor: pointer;
}
.agree-row span {
    font: 400 12px/1.5 var(--f-display);
    color: var(--text-mute);
}
.agree-row a {
    color: var(--acc);
}
.form-submit {
    margin-top: 6px;
    font: 700 15px var(--f-display);
    color: #fff;
    background: var(--acc);
    padding: 17px;
    border: none;
    border-radius: var(--r-2);
    transition: opacity 180ms ease-out, filter 180ms ease-out, transform 180ms var(--ease-out);
    cursor: pointer;
}
.form-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.form-submit:not(:disabled):hover { filter: brightness(1.08); }
.form-submit:not(:disabled):active { transform: scale(0.97); transition-duration: 100ms; }
.form-err {
    font: 500 11.5px/1.5 var(--f-mono);
    color: #c8331f;
    text-align: center;
}
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 320px;
    gap: 16px;
}
.form-success-icon {
    width: 56px;
    height: 56px;
    border: 2px solid var(--acc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 26px var(--f-display);
    color: var(--acc);
}
.form-success-title {
    font: 700 22px var(--f-display);
    color: var(--text-h);
}
.form-success-text {
    font: 400 14px/1.5 var(--f-display);
    color: var(--text-mono);
    max-width: 280px;
}

/* === FOOTER === */
.footer {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), var(--bg-deep));
    border-top: 1px solid var(--border-2);
    padding: clamp(56px, 7vw, 92px) clamp(20px, 6vw, 90px) 40px;
}
.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(28px, 4vw, 52px);
    align-items: start;
}
.footer-label {
    font: 600 12px var(--f-mono);
    letter-spacing: 3px;
    color: var(--acc);
    margin-bottom: 16px;
}
.map-wrap {
    position: relative;
    border: 1px solid var(--border-3);
    border-radius: var(--r-6);
    overflow: hidden;
    height: 300px;
    background: var(--bg-panel);
}
.map-wrap iframe {
    border: 0;
    display: block;
    width: 100%;
    height: 100%;
}
.map-pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(226, 59, 59, 0.35);
    animation: pulsering 2.4s ease-out infinite;
    pointer-events: none;
}
.map-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(10, 15, 20, 0.3));
}
.map-link {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font: 600 10px var(--f-mono);
    letter-spacing: 0.5px;
    color: #0c0f12;
    background: rgba(255, 255, 255, 0.95);
    padding: 7px 10px;
    border-radius: var(--r-3);
    transition: background .2s ease;
    box-shadow: 0 2px 8px rgba(10, 15, 20, 0.12);
}
.map-link:hover { background: #fff; color: var(--acc); }

.req-title {
    font: 700 17px var(--f-display);
    color: var(--text-h);
    margin-bottom: 12px;
}
.req-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font: 400 13px/1.45 var(--f-mono);
    color: var(--text-2);
}
.req-list .k { color: var(--text-mono); }
.req-contacts {
    display: flex;
    gap: 22px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.req-contacts a {
    font: 600 15px var(--f-display);
    color: var(--text-h);
    transition: color .2s ease;
}
.req-contacts a:hover { color: var(--acc); }
.req-pdf {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font: 600 13px var(--f-display);
    color: var(--text-h);
    border: 1px solid var(--border-4);
    padding: 13px 18px;
    border-radius: var(--r-3);
    transition: border-color .2s ease, color .2s ease;
}
.req-pdf:hover { border-color: var(--acc); color: var(--acc); }
.req-pdf .ic {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--acc);
    color: #fff;
    align-items: center;
    justify-content: center;
    font: 700 13px var(--f-display);
}

.footer-legal {
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--border-2);
}
.footer-legal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
}
.footer-legal-list a {
    font: 400 12.5px var(--f-display);
    color: var(--text-mono);
    transition: color .2s ease;
}
.footer-legal-list a:hover { color: var(--acc); }

.footer-copy {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-copy > div {
    font: 500 11px var(--f-mono);
    letter-spacing: 1px;
    color: var(--text-dim);
}

/* === FLOATING CHAT === */
.chat-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 14px;
}
.chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #ff5959, #c81e1e);
    box-shadow: 0 10px 28px rgba(200, 30, 31, 0.35);
    transition: transform 160ms var(--ease-out), box-shadow 200ms ease-out, background 200ms ease;
}
.chat-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(200, 30, 31, 0.45); }
.chat-btn:active { transform: scale(0.97); }
.chat-btn.open {
    background: #3a3a3c;
    box-shadow: 0 14px 34px rgba(10, 15, 20, 0.35);
}
.chat-link {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    background: #1f2227;
    padding: 0 18px 0 8px;
    height: 48px;
    border-radius: 24px;
    box-shadow: 0 10px 24px rgba(10, 15, 20, 0.25);
    font: 600 14px var(--f-display);
    animation: chatpop .28s cubic-bezier(.2,.8,.2,1) both;
    transition: transform .2s ease, background .2s ease;
}
.chat-link img {
    width: 32px;
    height: 32px;
    display: block;
    border-radius: 50%;
    background: #fff;
}
.chat-link[aria-label="MAX"] img {
    border-radius: 7px;
}
.chat-link:hover {
    transform: translateY(-2px);
    background: #2a2e34;
}

/* === MODAL === */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(10, 15, 20, 0.55);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(16px, 4vw, 56px);
    overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
    width: 100%;
    max-width: 860px;
    background: var(--bg-panel);
    border: 1px solid var(--border-3);
    border-radius: 8px;
    overflow: hidden;
    margin: auto;
    box-shadow: 0 30px 60px -30px rgba(10, 15, 20, 0.45);
}
.modal-banner {
    position: relative;
    aspect-ratio: 21/9;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-2);
    display: flex;
    align-items: flex-end;
    padding: 28px clamp(22px, 4vw, 40px);
    overflow: hidden;
}
.modal-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* фото-баннер модалки — оставляю тёмный градиент снизу для контраста с белым заголовком */
.modal-banner-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 9, 0.35) 0%, transparent 36%, rgba(8, 10, 9, 0.55) 78%, rgba(8, 10, 9, 0.9) 100%);
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(10, 15, 20, 0.45);
    color: #fff;
    font: 400 20px var(--f-display);
    border-radius: var(--r-3);
    cursor: pointer;
    line-height: 1;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
    backdrop-filter: blur(6px);
}
.modal-close:hover { border-color: var(--acc); color: var(--acc); background: rgba(255, 255, 255, 0.95); }
.modal-tag {
    position: absolute;
    top: 20px;
    left: clamp(22px, 4vw, 40px);
    font: 600 11px var(--f-mono);
    letter-spacing: 1px;
    color: #fff;
    background: var(--acc);
    padding: 6px 11px;
    border-radius: var(--r-2);
}
.modal-banner-content {
    position: relative;
    z-index: 1;
}
.modal-title {
    font: 800 clamp(24px, 3.5vw, 40px)/1.05 var(--f-display);
    letter-spacing: -1px;
    color: #fff;
    margin: 0 0 8px;
    text-transform: uppercase;
}
.modal-meta {
    font: 500 12px var(--f-mono);
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.78);
}
.modal-body {
    padding: clamp(22px, 4vw, 40px);
}
.modal-shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}
.modal-shot {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--r-4);
    overflow: hidden;
    border: 1px solid var(--border-2);
}
.modal-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-shot-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(8, 10, 9, 0.82));
}
.modal-shot-cap {
    position: absolute;
    left: 9px;
    bottom: 8px;
    right: 9px;
    font: 500 10px var(--f-mono);
    letter-spacing: 1px;
    color: #dfe4e0;
}
.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 36px;
}
.modal-h4 {
    font: 600 12px var(--f-mono);
    letter-spacing: 2px;
    color: var(--acc);
    margin: 0 0 14px;
}
.modal-desc {
    font: 400 15px/1.65 var(--f-display);
    color: var(--text-2);
    margin: 0;
}
.modal-specs-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-2);
}
.modal-specs-row .k {
    font: 400 14px var(--f-display);
    color: var(--text-mono);
}
.modal-specs-row .v {
    font: 600 14px var(--f-display);
    color: var(--text-h);
    text-align: right;
}
.modal-cta {
    margin-top: 30px;
    width: 100%;
    font: 700 15px var(--f-display);
    color: #fff;
    background: var(--acc);
    padding: 17px;
    border: none;
    border-radius: var(--r-2);
    cursor: pointer;
    transition: filter 180ms ease-out, transform 180ms var(--ease-out);
}
.modal-cta:hover { filter: brightness(1.08); }
.modal-cta:active { transform: scale(0.97); transition-duration: 100ms; }

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-3);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 24px 60px -16px rgba(10, 15, 20, 0.30), 0 2px 6px rgba(10, 15, 20, 0.06);
    animation: cookie-slide-in 280ms var(--ease-out) both;
}
.cookie-banner-text {
    flex: 1;
    font: 400 13px/1.55 var(--f-display);
    color: var(--text-2);
}
.cookie-banner-text a {
    color: var(--acc);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 180ms ease-out;
}
.cookie-banner-text a:hover { color: var(--text-h); }
.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex: none;
    align-items: center;
}
.cookie-banner-btn {
    font: 700 13px var(--f-display);
    letter-spacing: 0.3px;
    color: #fff;
    background: var(--acc);
    border: 1px solid var(--acc);
    padding: 12px 22px;
    border-radius: 6px;
    cursor: pointer;
    transition: filter 180ms ease-out, transform 180ms var(--ease-out), background 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
    white-space: nowrap;
}
.cookie-banner-btn:hover { filter: brightness(1.08); }
.cookie-banner-btn:active { transform: scale(0.97); transition-duration: 100ms; }
.cookie-banner-btn.ghost {
    color: var(--text-2);
    background: transparent;
    border-color: var(--border-4);
}
.cookie-banner-btn.ghost:hover {
    color: var(--text-h);
    border-color: var(--text-h);
    background: transparent;
    filter: none;
}

@keyframes cookie-slide-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
        left: 12px;
        right: 12px;
        bottom: 12px;
        border-radius: 10px;
    }
    .cookie-banner-text { font-size: 12.5px; }
    .cookie-banner-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .cookie-banner-btn { width: 100%; padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner { animation: none; }
}

/* === REVEAL ANIMATIONS === */
[data-reveal] {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 300ms ease-out, transform 420ms var(--ease-enter);
    transform: translateY(14px);
}
[data-reveal][data-rv="left"]  { transform: translateX(-18px); }
[data-reveal][data-rv="right"] { transform: translateX(18px); }
[data-reveal][data-rv="scale"] { transform: scale(0.96); }
[data-reveal].revealed {
    opacity: 1;
    transform: none;
}

/* =================================================================
   Products v2 — маркетинговый макет карточек направлений.
   Включается в админке: «Направления → Маркетинговый стиль карточек».
   ================================================================= */
.products-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 0 0 36px;
}
@media (max-width: 1280px) { .products-v2 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px)  { .products-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .products-v2 { grid-template-columns: 1fr; gap: 14px; } }

/* Оболочка — держит место в сетке; высота фиксирована в свёрнутом состоянии. */
.prod2-item {
    position: relative;
    height: 96px;
}
.prod2-card {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 96px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-2);
    border-radius: 14px;
    padding: 22px 22px 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: height 400ms cubic-bezier(.2,.8,.2,1),
                border-color 200ms ease-out,
                box-shadow 280ms var(--ease-out),
                transform 240ms var(--ease-out);
}
.prod2-num {
    position: absolute;
    top: 14px;
    right: 18px;
    font: 800 26px/1 var(--f-display);
    color: rgba(10, 15, 20, 0.07);
    letter-spacing: -1px;
    transition: color 220ms ease-out;
}
.prod2-title {
    margin: 0;
    font: 700 17px/1.3 var(--f-display);
    color: var(--text-h);
    padding-right: 44px;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}
.prod2-desc {
    margin: 0 0 4px;
    font: 400 13px/1.55 var(--f-display);
    color: var(--text-3);
    flex: 1;
    opacity: 0;
    transition: opacity 220ms ease-out 60ms;
}
.prod2-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 10px;
    font: 700 11px/1 var(--f-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--acc);
    text-decoration: none;
    border-top: 1px solid var(--border-2);
    opacity: 0;
    transition: opacity 220ms ease-out 100ms, gap 220ms var(--ease-out);
}
.prod2-cta-arr {
    transition: transform 220ms var(--ease-out);
    display: inline-block;
}

/* Hover-разворот — только устройства с указателем */
@media (hover: hover) and (pointer: fine) {
    .prod2-item:hover { z-index: 5; }
    .prod2-item:hover .prod2-card {
        height: 230px;
        border-color: rgba(226, 59, 59, 0.45);
        box-shadow: 0 24px 48px -28px rgba(10, 15, 20, 0.22),
                    0 0 0 1px rgba(226, 59, 59, 0.10);
        transform: translateY(-2px);
    }
    .prod2-item:hover .prod2-num  { color: var(--acc); }
    .prod2-item:hover .prod2-desc { opacity: 1; }
    .prod2-item:hover .prod2-cta  { opacity: 1; gap: 14px; }
    .prod2-item:hover .prod2-cta-arr { transform: translateX(4px); }
}

/* Тач/узкие экраны — карточки всегда раскрыты, без коллапса */
@media (hover: none), (max-width: 980px) {
    .prod2-item { height: auto; }
    .prod2-card {
        position: relative;
        height: auto;
        min-height: 200px;
    }
    .prod2-desc, .prod2-cta { opacity: 1; }
}

@media (max-width: 600px) {
    .prod2-card { min-height: 180px; padding: 22px 20px 18px; }
    .prod2-title { font-size: 18px; }
}
