/* =========================================================
   АЛЬТЕРОЛЛ — единая дизайн-система сайта
   Mobile-first. Один файл стилей на все страницы.
   ========================================================= */

:root {
    --bg: #07080a;
    --bg-2: #0c0e12;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #f3f5f8;
    --muted: #a3acb8;
    --dim: #6c7582;
    --accent: #4d8dff;
    --accent-2: #8ab6ff;
    --accent-glow: rgba(77, 141, 255, 0.35);

    --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

    --container: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --section-y: clamp(80px, 11vw, 150px);
    --radius: 20px;
    --radius-sm: 12px;
    --header-h: 72px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

h1, h2, h3, h4, p, ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

::selection {
    background: var(--accent);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 6px;
}

body.is-locked {
    overflow: hidden;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    padding-block: var(--section-y);
}

.section--tight {
    padding-block: calc(var(--section-y) * 0.6);
}

.section--alt {
    background: var(--bg-2);
}

.section-head {
    display: grid;
    gap: 18px;
    margin-bottom: clamp(40px, 6vw, 72px);
    max-width: 760px;
}

.section-head--split {
    max-width: none;
}

@media (min-width: 900px) {
    .section-head--split {
        grid-template-columns: 1.6fr 1fr;
        align-items: end;
        gap: 48px;
    }
}

/* ---------- Typography ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.h1,
.h2,
.h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.08;
}

.h1 {
    font-size: clamp(38px, 9vw, 112px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.98;
}

.h2 {
    font-size: clamp(28px, 4.6vw, 54px);
}

.h3 {
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.25;
}

.lead {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.65;
    color: var(--muted);
    max-width: 60ch;
}

.text-muted {
    color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.35s var(--ease);
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn--primary {
    background: var(--text);
    color: #0a0b0d;
}

.btn--primary:hover {
    background: var(--accent-2);
}

.btn--ghost {
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn--ghost:hover {
    border-color: var(--text);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
}

.link-arrow svg {
    width: 18px;
    height: 18px;
    transition: transform 0.35s var(--ease);
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    padding-top: env(safe-area-inset-top);
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.45s var(--ease);
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(7, 8, 10, 0.78);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: var(--line);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 2;
}

.brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.nav {
    display: none;
}

.nav__link {
    position: relative;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.3s var(--ease);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--accent-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
    color: var(--text);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.header-phone {
    display: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.lang-toggle {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    height: 36px;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.lang-toggle span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 34px;
    color: var(--muted);
    transition: color 0.3s var(--ease);
}

.lang-toggle::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: 34px;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.4s var(--ease);
}

.lang-toggle[data-lang="en"]::before {
    transform: translateX(34px);
}

.lang-toggle[data-lang="ru"] span[data-l="ru"],
.lang-toggle[data-lang="en"] span[data-l="en"] {
    color: #0a0b0d;
}

.burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
}

.burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.4s var(--ease), opacity 0.3s;
    grid-area: 1 / 1;
}

.burger span:nth-child(1) { transform: translateY(-5px); }
.burger span:nth-child(3) { transform: translateY(5px); }

.burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + env(safe-area-inset-top) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: rgba(7, 8, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease), visibility 0.45s;
    overflow-y: auto;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__list {
    display: grid;
    border-top: 1px solid var(--line);
}

.mobile-menu__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: clamp(22px, 6.4vw, 30px);
    font-weight: 500;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}

.mobile-menu__list a::after {
    content: "→";
    font-family: var(--font-body);
    font-size: 20px;
    color: var(--dim);
}

.mobile-menu__list a[aria-current="page"] {
    color: var(--accent-2);
}

.mobile-menu.is-open .mobile-menu__list a {
    opacity: 1;
    transform: none;
}

.mobile-menu.is-open .mobile-menu__list a:nth-child(2) { transition-delay: 0.04s; }
.mobile-menu.is-open .mobile-menu__list a:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__list a:nth-child(4) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__list a:nth-child(5) { transition-delay: 0.16s; }

.mobile-menu__contacts {
    display: grid;
    gap: 14px;
    margin-top: auto;
    padding-top: 40px;
}

.mobile-menu__contacts a {
    font-size: 18px;
    font-weight: 600;
}

.mobile-menu__contacts small {
    display: block;
    color: var(--dim);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

@media (min-width: 1024px) {
    .nav {
        display: flex;
        align-items: center;
        gap: clamp(20px, 2.4vw, 36px);
    }

    .burger,
    .mobile-menu {
        display: none;
    }

    .header-phone {
        display: inline-block;
    }
}

/* =========================================================
   HERO (видео)
   ========================================================= */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: clamp(32px, 6vw, 72px);
    overflow: hidden;
    isolation: isolate;
}

.hero--short {
    min-height: 78vh;
    min-height: 78svh;
}

.media-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #000 center / cover no-repeat;
}

.media-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(7, 8, 10, 0.7) 0%, rgba(7, 8, 10, 0.15) 30%, rgba(7, 8, 10, 0.35) 60%, var(--bg) 100%),
        linear-gradient(90deg, rgba(7, 8, 10, 0.75) 0%, rgba(7, 8, 10, 0) 70%);
}

.hero__content {
    display: grid;
    gap: clamp(18px, 2.4vw, 28px);
    max-width: 900px;
}

.hero__title {
    text-wrap: balance;
}

.hero__lead {
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.55;
    color: rgba(243, 245, 248, 0.86);
    max-width: 46ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: clamp(40px, 7vw, 88px);
    border-top: 1px solid var(--line-strong);
}

.stat {
    padding: 20px 16px 4px 0;
}

.stat + .stat {
    padding-left: 16px;
    border-left: 1px solid var(--line);
}

.stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
}

.stat__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(24px, 3.2vw, 40px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.stat__label {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}

@media (min-width: 900px) {
    .hero__stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat:nth-child(3) {
        padding-left: 16px;
        border-left: 1px solid var(--line);
    }

    .stat {
        padding-right: 24px;
    }

    .stat + .stat {
        padding-left: 24px;
    }
}

.scroll-cue {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(32px, 6vw, 72px);
    display: none;
    width: 1px;
    height: 72px;
    background: var(--line-strong);
    overflow: hidden;
}

.scroll-cue::after {
    content: "";
    position: absolute;
    left: 0;
    top: -40%;
    width: 1px;
    height: 40%;
    background: var(--text);
    animation: cue 2.2s var(--ease) infinite;
}

@keyframes cue {
    to { top: 100%; }
}

@media (min-width: 1024px) {
    .scroll-cue {
        display: block;
    }
}

/* =========================================================
   CLIENTS
   ========================================================= */
.clients {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.client {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: clamp(24px, 3vw, 36px);
    background: var(--bg);
    transition: background 0.4s var(--ease);
}

.client:hover {
    background: #0d1016;
}

.client__name {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.client__model {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.client p {
    color: var(--muted);
    font-size: 15px;
}

@media (min-width: 640px) {
    .clients { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
    .clients { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   INTERIOR — машина с точками + каталог
   ========================================================= */
.car-stage {
    position: relative;
    display: none;
    margin-inline: auto;
    max-width: 1180px;
    aspect-ratio: 1344 / 768;
    margin-bottom: clamp(32px, 5vw, 64px);
}

.car-stage__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}

.hotspot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hotspot__dot {
    position: relative;
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14), 0 0 24px var(--accent-glow);
    transition: transform 0.35s var(--ease);
}

.hotspot__dot::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

.hotspot__label {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(7, 8, 10, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.3s;
    pointer-events: none;
}

.hotspot--left {
    flex-direction: row-reverse;
}

.hotspot--left .hotspot__label {
    transform: translateX(6px);
}

.hotspot:hover .hotspot__dot,
.hotspot:focus-visible .hotspot__dot,
.hotspot.is-active .hotspot__dot {
    transform: scale(1.2);
}

.hotspot:hover .hotspot__label,
.hotspot:focus-visible .hotspot__label,
.hotspot.is-active .hotspot__label {
    opacity: 1;
    transform: none;
    border-color: var(--accent-2);
}

.car-stage.is-visible .hotspot__label {
    animation: label-hint 1.7s var(--ease) both;
    animation-delay: calc(0.4s + var(--i, 0) * 1.1s);
}

.hotspot:nth-of-type(2) { --i: 1; }
.hotspot:nth-of-type(3) { --i: 2; }
.hotspot:nth-of-type(4) { --i: 3; }
.hotspot:nth-of-type(5) { --i: 4; }
.hotspot:nth-of-type(6) { --i: 5; }

@keyframes label-hint {
    0%, 100% { opacity: 0; }
    15%, 80% { opacity: 1; transform: none; border-color: var(--accent-2); }
}

@media (min-width: 900px) {
    .car-stage {
        display: block;
    }
}

.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    text-align: left;
    transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}

.product:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
}

.product__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #111;
}

.product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.product:hover .product__media img {
    transform: scale(1.05);
}

.product__body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 16px;
    flex: 1;
}

.product__num {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--dim);
    margin-bottom: 4px;
}

.product__title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
}

.product__plus {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    font-size: 18px;
    line-height: 1;
    transition: background 0.3s, color 0.3s;
}

.product:hover .product__plus {
    background: var(--text);
    color: #0a0b0d;
}

@media (min-width: 768px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .product__body {
        padding: 20px 20px 22px;
    }

    .product__title {
        font-size: 17px;
    }
}

/* =========================================================
   TECHNOLOGIES (главная)
   ========================================================= */
.tech-section {
    overflow: hidden;
    isolation: isolate;
}

.tech-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 8, 10, 0.82) 22%, rgba(7, 8, 10, 0.82) 78%, var(--bg) 100%);
}

.tech {
    display: grid;
    gap: 24px;
}

.tech__tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
}

.tech__tabs::-webkit-scrollbar {
    display: none;
}

.tech-tab {
    flex: none;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(7, 8, 10, 0.5);
    font-weight: 600;
    font-size: 15px;
    color: var(--muted);
    transition: color 0.3s, background 0.3s, border-color 0.3s;
    position: relative;
}

.tech-tab__num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--dim);
}

.tech-tab[aria-selected="true"] {
    color: #0a0b0d;
    background: var(--text);
    border-color: var(--text);
}

.tech-tab[aria-selected="true"] .tech-tab__num {
    color: #0a0b0d;
    opacity: 0.55;
}

.tech-panel {
    position: relative;
    display: grid;
    gap: 18px;
    padding: clamp(24px, 4vw, 48px);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(12, 14, 18, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    min-height: 320px;
    align-content: start;
}

.tech-panel[hidden] {
    display: none;
}

.tech-panel.is-entering {
    animation: panel-in 0.6s var(--ease) both;
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.tech-panel__num {
    font-family: var(--font-display);
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 600;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
}

.tech-panel p {
    color: var(--muted);
    font-size: clamp(16px, 1.5vw, 18px);
    max-width: 52ch;
}

.tech-panel__media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.tech-panel__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.tech-panel__progress {
    position: absolute;
    left: clamp(24px, 4vw, 48px);
    right: clamp(24px, 4vw, 48px);
    bottom: 0;
    height: 2px;
    background: var(--line);
    overflow: hidden;
}

.tech-panel__progress::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
}

.tech.is-auto .tech-panel:not([hidden]) .tech-panel__progress::after {
    animation: progress 6s linear forwards;
}

@keyframes progress {
    to { transform: scaleX(1); }
}

@media (min-width: 1024px) {
    .tech {
        grid-template-columns: 380px 1fr;
        gap: 48px;
        align-items: start;
    }

    .tech__tabs {
        flex-direction: column;
        overflow: visible;
        margin: 0;
        padding: 0;
        gap: 0;
        border-top: 1px solid var(--line);
    }

    .tech-tab {
        min-height: 72px;
        padding: 0 4px;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        background: none;
        font-size: 18px;
        gap: 20px;
    }

    .tech-tab::after {
        content: "→";
        margin-left: auto;
        opacity: 0;
        transform: translateX(-8px);
        transition: opacity 0.3s, transform 0.4s var(--ease);
    }

    .tech-tab:hover {
        color: var(--text);
    }

    .tech-tab[aria-selected="true"] {
        background: none;
        color: var(--text);
        border-color: var(--line);
    }

    .tech-tab[aria-selected="true"] .tech-tab__num {
        color: var(--accent-2);
        opacity: 1;
    }

    .tech-tab[aria-selected="true"]::after {
        opacity: 1;
        transform: none;
    }

    .tech-panel {
        min-height: 430px;
    }
}

/* =========================================================
   QUALITY
   ========================================================= */
.quality {
    display: grid;
    gap: 48px;
}

.check-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.check-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(15px, 1.4vw, 17px);
}

.check-list li::before {
    content: "";
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.badge {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.certs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: start;
}

.cert {
    position: relative;
    display: block;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: #fff;
    overflow: hidden;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.cert img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
}

.cert::after {
    content: "⤢";
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0a0b0d;
    color: #fff;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}

.cert:hover {
    transform: translateY(-6px) rotate(-0.6deg);
    box-shadow: 0 30px 60px -20px rgba(77, 141, 255, 0.35);
}

.cert:hover::after {
    opacity: 1;
}

@media (min-width: 1024px) {
    .quality {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 72px;
        align-items: start;
    }

    .certs {
        gap: 20px;
    }

    .cert:nth-child(2) {
        margin-top: 48px;
    }
}

/* =========================================================
   DIRECTIONS (карточки-ссылки на разделы)
   ========================================================= */
.directions {
    display: grid;
    gap: 14px;
}

.direction {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 340px;
    padding: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--line);
}

.direction img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

.direction::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(7, 8, 10, 0.05) 20%, rgba(7, 8, 10, 0.9) 100%);
}

.direction:hover img {
    transform: scale(1.06);
}

.direction__num {
    position: absolute;
    top: 22px;
    left: 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.7);
}

.direction__title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 600;
    line-height: 1.15;
}

.direction p {
    margin-top: 8px;
    color: rgba(243, 245, 248, 0.75);
    font-size: 15px;
}

.direction__go {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s, color 0.3s, transform 0.5s var(--ease);
}

.direction__go svg {
    width: 18px;
    height: 18px;
}

.direction:hover .direction__go {
    background: #fff;
    color: #0a0b0d;
    transform: rotate(-45deg);
}

@media (min-width: 900px) {
    .directions {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .direction {
        min-height: 460px;
        padding: 32px;
    }

    .direction__num {
        top: 28px;
        left: 32px;
    }
}

/* =========================================================
   CONTACTS (блок)
   ========================================================= */
.contact-grid {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.contact-card {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: clamp(24px, 3vw, 36px);
    background: var(--bg);
}

.contact-card__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
}

.contact-card__value {
    font-size: clamp(17px, 1.6vw, 20px);
    font-weight: 600;
    line-height: 1.45;
}

.contact-card a.contact-card__value {
    transition: color 0.3s;
}

.contact-card a.contact-card__value:hover {
    color: var(--accent-2);
}

.contact-card__note {
    color: var(--muted);
    font-size: 14px;
}

@media (min-width: 640px) {
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
    .contact-grid--4 { grid-template-columns: repeat(4, 1fr); }
    .contact-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    position: relative;
    padding-top: clamp(72px, 10vw, 130px);
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    overflow: hidden;
}

.footer-cta {
    display: grid;
    gap: 28px;
    padding-bottom: clamp(56px, 8vw, 96px);
}

.footer-cta__title {
    font-family: var(--font-display);
    font-size: clamp(30px, 5.4vw, 68px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.015em;
    max-width: 16ch;
}

.footer-cta__contacts {
    display: grid;
    gap: 6px;
}

.footer-cta__contacts a {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.6vw, 32px);
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.3s;
    width: fit-content;
}

.footer-cta__contacts a:hover {
    color: var(--accent-2);
}

@media (min-width: 900px) {
    .footer-cta {
        grid-template-columns: 1.2fr 1fr;
        align-items: end;
    }

    .footer-cta__contacts {
        justify-items: end;
        text-align: right;
    }
}

.footer-bottom {
    display: grid;
    gap: 28px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.footer-nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    color: var(--dim);
    font-size: 13px;
}

.footer-wordmark {
    margin-top: clamp(40px, 6vw, 72px);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 12.6vw, 196px);
    line-height: 0.8;
    letter-spacing: -0.03em;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
    user-select: none;
    white-space: nowrap;
}

@media (min-width: 900px) {
    .footer-bottom {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

/* =========================================================
   MODALS
   ========================================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(3, 4, 6, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal__card {
    position: relative;
    display: grid;
    width: min(920px, 100%);
    max-height: calc(100svh - 32px);
    overflow: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: #0e1014;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.5s var(--ease);
}

.modal.is-open .modal__card {
    transform: none;
}

.modal__media {
    background: #000;
}

.modal__media img {
    width: 100%;
    height: 100%;
    max-height: 56svh;
    object-fit: cover;
}

.modal__body {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: clamp(24px, 4vw, 44px);
}

.modal__body p {
    color: var(--muted);
}

.modal__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-top: 6px;
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(7, 8, 10, 0.7);
    border: 1px solid var(--line-strong);
    font-size: 22px;
    line-height: 1;
    transition: background 0.3s, color 0.3s;
}

.modal__close:hover {
    background: #fff;
    color: #0a0b0d;
}

@media (min-width: 768px) {
    .modal__card {
        grid-template-columns: 1.1fr 1fr;
    }

    .modal__media img {
        max-height: none;
        min-height: 440px;
    }
}

.lightbox img {
    max-width: min(92vw, 900px);
    max-height: 88svh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #fff;
    transform: scale(0.96);
    transition: transform 0.5s var(--ease);
}

.lightbox.is-open img {
    transform: none;
}

.lightbox .modal__close {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top));
    right: 16px;
}

/* =========================================================
   INNER PAGES
   ========================================================= */

/* Feature cards (interior) */
.features {
    display: grid;
    gap: 14px;
}

.feature {
    display: grid;
    gap: 18px;
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(77, 141, 255, 0.12);
    color: var(--accent-2);
}

.feature__icon svg {
    width: 26px;
    height: 26px;
}

.feature__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

@media (min-width: 768px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

.prose {
    display: grid;
    gap: 18px;
    margin-top: clamp(40px, 6vw, 72px);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.55;
    color: var(--muted);
    max-width: 880px;
}

.prose strong {
    color: var(--text);
    font-weight: 600;
}

/* Split section with video */
.split {
    display: grid;
    gap: 32px;
    align-items: center;
}

.split__media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: #000 center / cover no-repeat;
    border: 1px solid var(--line);
}

.split__media video,
.split__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .split {
        grid-template-columns: 1.15fr 1fr;
        gap: 72px;
    }

    .split--reverse .split__media {
        order: 2;
    }
}

.item-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.item-list li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 6px 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.item-list__num {
    grid-row: span 2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-2);
    padding-top: 5px;
}

.item-list h3 {
    font-size: 19px;
    font-weight: 600;
}

.item-list p {
    color: var(--muted);
}

/* Applications */
.apps {
    display: grid;
    gap: 14px;
}

.app {
    display: grid;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
}

.app__media {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    background: linear-gradient(180deg, #f4f5f7, #dfe3e8);
    padding: 18px;
}

.app__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.8s var(--ease);
}

.app:hover .app__media img {
    transform: scale(1.05) translateX(6px);
}

.app__body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
}

.app__title {
    font-weight: 600;
    font-size: 18px;
}

.app__num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--dim);
}

@media (min-width: 768px) {
    .apps {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* Technology story rows */
.story {
    display: grid;
    gap: clamp(56px, 9vw, 120px);
}

.story-row {
    display: grid;
    gap: 24px;
    align-items: center;
}

.story-row__media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #000 center / cover no-repeat;
}

.story-row__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-row__num {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 600;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    margin-bottom: 18px;
}

.story-row__text {
    display: grid;
    gap: 16px;
    align-content: start;
}

@media (min-width: 1024px) {
    .story-row {
        grid-template-columns: 1.25fr 1fr;
        gap: 72px;
    }

    .story-row:nth-child(even) .story-row__media {
        order: 2;
    }
}

/* Process chips (technology page) */
.process-grid {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.process {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: clamp(22px, 2.6vw, 32px);
    background: var(--bg);
}

.process__num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-2);
}

.process h3 {
    font-size: 18px;
    font-weight: 600;
}

.process p {
    color: var(--muted);
    font-size: 15px;
}

@media (min-width: 640px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
    .process-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Honeycomb */
.hc-hero {
    position: relative;
    padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px));
    padding-bottom: var(--section-y);
    overflow: hidden;
    isolation: isolate;
}

.hc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.2v32.4L28 64.8 0 48.6V16.2zM28 64.8V97' fill='none' stroke='white' stroke-opacity='.06'/%3E%3C/svg%3E");
    background-size: 56px 97px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000, transparent 75%);
}

.hc-hero::after {
    content: "";
    position: absolute;
    width: 60vw;
    height: 60vw;
    right: -20vw;
    top: -10vw;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 141, 255, 0.18), transparent 65%);
    filter: blur(20px);
}

.hc-intro {
    display: grid;
    gap: 40px;
}

.hc-intro__text {
    display: grid;
    gap: 22px;
    align-content: start;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    font-size: 14px;
    font-weight: 600;
}

.bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
    gap: 10px;
}

.bento__item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #e9ecef;
    cursor: zoom-in;
}

.bento__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.bento__item:hover img {
    transform: scale(1.06);
}

.bento__item--big {
    grid-column: span 2;
    grid-row: span 2;
}

.bento__item--tall {
    grid-row: span 2;
}

@media (min-width: 640px) {
    .bento {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 150px;
    }
}

@media (min-width: 1024px) {
    .hc-intro {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 64px;
        align-items: center;
    }

    .bento {
        grid-auto-rows: 120px;
    }
}

@media (min-width: 1280px) {
    .bento {
        grid-auto-rows: 140px;
    }
}

.adv-grid {
    display: grid;
    gap: 14px;
}

.adv {
    position: relative;
    display: grid;
    gap: 14px;
    align-content: start;
    padding: clamp(26px, 3vw, 40px);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.adv:hover {
    border-color: rgba(138, 182, 255, 0.4);
    background: rgba(77, 141, 255, 0.05);
}

.adv__num {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 600;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

.adv h3 {
    font-size: 21px;
    font-weight: 600;
}

.adv p {
    color: var(--muted);
}

@media (min-width: 768px) {
    .adv-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Contact page */
.contact-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: clamp(32px, 5vw, 64px);
    isolation: isolate;
    overflow: hidden;
}

.map-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    /* статичный кадр карты — виден сразу, пока грузится живая 3D-карта */
    background: #0b0c0f url("../img/map-poster.jpg") 50% 28% / cover no-repeat;
}

.map-bg .maplibregl-canvas-container,
.map-bg .maplibregl-marker {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.map-bg.is-ready .maplibregl-canvas-container,
.map-bg.is-ready .maplibregl-marker {
    opacity: 1;
}

.contact-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 8, 10, 0.75) 0%, rgba(7, 8, 10, 0) 30%, rgba(7, 8, 10, 0) 45%, rgba(7, 8, 10, 0.92) 78%, var(--bg) 100%);
}

.contact-hero .container {
    display: grid;
    gap: 28px;
}

.map-pin {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 8px rgba(77, 141, 255, 0.35), 0 0 40px 10px rgba(77, 141, 255, 0.45);
    position: relative;
}

.map-pin::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    animation: ping 2.4s var(--ease) infinite;
}

.map-controls {
    position: absolute;
    right: var(--gutter);
    top: calc(var(--header-h) + 24px);
    z-index: 2;
    display: grid;
    gap: 8px;
}

.map-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(7, 8, 10, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 20px;
    transition: background 0.3s, color 0.3s;
}

.map-controls button:hover {
    background: #fff;
    color: #0a0b0d;
}

.maplibregl-ctrl-attrib {
    font-size: 10px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    color: #777 !important;
}

.maplibregl-ctrl-attrib a {
    color: #999 !important;
}

/* 404 */
.not-found {
    min-height: 100svh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: var(--gutter);
}

.not-found__code {
    font-family: var(--font-display);
    font-size: clamp(110px, 26vw, 260px);
    font-weight: 700;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}

/* =========================================================
   MOTION
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.no-js .reveal {
    opacity: 1;
    transform: none;
}

.hero .reveal {
    transition-duration: 1.2s;
}

.progress-line {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 101;
    height: 2px;
    width: 100%;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 900px) {
    .hero__stats:has(> .stat:nth-child(3):last-child) {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Видео проявляется поверх постера, когда реально начало играть */
video[data-video] {
    opacity: 0;
    transition: opacity 1s var(--ease);
}

video[data-video].is-playing {
    opacity: 1;
}

/* =========================================================
   ИСХОДНАЯ СТРУКТУРА ДЕСКТОПА (по старому сайту)
   ========================================================= */

/* Видимость по устройствам */
@media (min-width: 900px) {
    .only-mobile,
    .only-mobile-grid {
        display: none !important;
    }
}

@media (max-width: 899px) {
    .only-desktop {
        display: none !important;
    }
}

/* ---------- Шапка-«таблетка» по центру ---------- */
@media (min-width: 1024px) {
    .site-header {
        top: 18px;
        padding-inline: var(--gutter);
    }

    .site-header,
    .site-header.is-scrolled {
        background: none;
        border-bottom-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .site-header.is-hidden {
        transform: translateY(calc(-100% - 24px));
    }

    .site-header__inner {
        width: fit-content;
        max-width: 100%;
        height: 60px;
        padding: 0 10px 0 20px;
        gap: clamp(20px, 2.6vw, 40px);
        border-radius: 999px;
        border: 1px solid var(--line-strong);
        background: rgba(10, 12, 16, 0.55);
        backdrop-filter: blur(18px) saturate(150%);
        -webkit-backdrop-filter: blur(18px) saturate(150%);
        box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
        transition: background 0.4s var(--ease);
    }

    .site-header.is-scrolled .site-header__inner {
        background: rgba(10, 12, 16, 0.86);
    }

    .brand {
        font-size: 14px;
    }

    .brand img {
        width: 30px;
        height: 30px;
    }

    .nav {
        gap: clamp(18px, 2vw, 30px);
    }
}

.nav__item {
    position: relative;
}

.nav__sub {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    min-width: 230px;
    display: grid;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: rgba(12, 14, 18, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0.3s;
}

.nav__sub::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
}

.nav__sub a {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
    transition: background 0.25s, color 0.25s;
}

.nav__sub a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* ---------- Классический герой: название сверху, три колонки снизу ---------- */
.hero--classic {
    justify-content: space-between;
    gap: 40px;
    padding-top: calc(var(--header-h) + clamp(48px, 9vh, 110px));
}

.hero--classic .hero__top {
    display: grid;
    gap: 22px;
}

.hero--classic .hero__title {
    font-size: clamp(40px, 10.5vw, 150px);
}

.hero--classic::after {
    background:
        linear-gradient(180deg, rgba(7, 8, 10, 0.55) 0%, rgba(7, 8, 10, 0.1) 35%, rgba(7, 8, 10, 0.55) 70%, var(--bg) 100%);
}

.hero-features {
    display: grid;
    gap: 22px;
    border-top: 1px solid var(--line-strong);
    padding-top: 22px;
}

.hfeature__title {
    font-family: var(--font-display);
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 600;
    line-height: 1.2;
}

.hfeature__text {
    margin-top: 8px;
    color: rgba(243, 245, 248, 0.78);
    font-size: 15px;
    line-height: 1.55;
}

.hfeature__text b {
    color: var(--text);
    font-weight: 600;
}

@media (min-width: 900px) {
    .hero-features {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(28px, 4vw, 64px);
        border-top: 0;
        padding-top: 0;
    }

    .hfeature {
        text-align: center;
    }

    .hfeature__title {
        padding-bottom: 14px;
        margin-bottom: 14px;
        position: relative;
    }

    .hfeature__title::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: min(220px, 70%);
        height: 1px;
        transform: translateX(-50%);
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    }

    .hfeature__text {
        margin-top: 0;
        max-width: 36ch;
        margin-inline: auto;
    }
}

@media (max-width: 899px) {
    .hero-features {
        grid-template-columns: 1fr 1fr;
    }

    .hfeature + .hfeature {
        padding-left: 16px;
        border-left: 1px solid var(--line);
    }
}

/* ---------- Центрированные заголовки секций ---------- */
@media (min-width: 900px) {
    .section-head--center {
        margin-inline: auto;
        text-align: center;
        justify-items: center;
    }

    .section-head--center .eyebrow::after {
        content: "";
        width: 28px;
        height: 1px;
        background: currentColor;
        opacity: 0.7;
    }
}

/* ---------- Машина с постоянными выносками ---------- */
.hotspot__line {
    flex: none;
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.25));
    transform-origin: left;
}

.hotspot--left .hotspot__line {
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.25));
    transform-origin: right;
}

.hotspot {
    gap: 0;
    transform: translate(-9px, -50%);
}

.hotspot--left {
    transform: translate(calc(-100% + 9px), -50%);
}

.hotspot .hotspot__label {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    cursor: pointer;
}

.hotspot:hover .hotspot__label,
.hotspot:focus-visible .hotspot__label,
.hotspot.is-active .hotspot__label {
    background: var(--text);
    color: #0a0b0d;
    border-color: var(--text);
}

/* появление выносок по очереди */
.car-stage .hotspot__line {
    transform: scaleX(0);
    transition: transform 0.6s var(--ease);
    transition-delay: calc(0.3s + var(--i, 0) * 0.12s);
}

.car-stage .hotspot__label {
    opacity: 0;
    transition: opacity 0.5s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
    transition-delay: calc(0.6s + var(--i, 0) * 0.12s), 0s, 0s, 0s;
}

.car-stage.is-visible .hotspot__line {
    transform: scaleX(1);
}

.car-stage.is-visible .hotspot__label {
    opacity: 1;
    animation: none;
}

.car-stage__hint {
    position: absolute;
    left: 50%;
    bottom: 4%;
    transform: translateX(-50%);
    font-size: 13px;
    color: var(--dim);
    white-space: nowrap;
}

@media (min-width: 900px) {
    #interior .car-stage {
        margin-bottom: 0;
    }
}

/* ---------- Технологии: вертикальный таймлайн ---------- */
@media (min-width: 1024px) {
    .tech__tabs {
        position: relative;
        border-top: 0;
        padding-left: 6px;
        gap: 6px;
    }

    .tech__tabs::before {
        content: "";
        position: absolute;
        left: 11px;
        top: 26px;
        bottom: 26px;
        width: 1px;
        background: var(--line-strong);
    }

    .tech-tab {
        min-height: 60px;
        border-bottom: 0;
        padding-left: 0;
        font-family: var(--font-display);
        font-size: 17px;
        font-weight: 500;
        letter-spacing: 0.01em;
        text-transform: uppercase;
    }

    .tech-tab[aria-selected="true"] {
        border-color: transparent;
    }

    .tech-tab__num {
        position: relative;
        z-index: 1;
        flex: none;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        font-size: 0;
        background: var(--bg);
        border: 1px solid rgba(255, 255, 255, 0.5);
        transition: background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
    }

    .tech-tab[aria-selected="true"] .tech-tab__num {
        background: #fff;
        border-color: #fff;
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12), 0 0 20px var(--accent-glow);
        transform: scale(1.15);
    }
}

/* ---------- Качество: список в карточке + сертификаты столбиком ---------- */
.quality-card {
    display: grid;
    gap: 18px;
    align-content: start;
}

.quality-card .check-list {
    margin-top: 10px;
}

.quality-card .badges {
    margin-top: 10px;
}

@media (min-width: 1024px) {
    .quality {
        grid-template-columns: 1fr 340px;
        gap: 56px;
        align-items: center;
    }

    .quality-card {
        padding: clamp(32px, 4vw, 52px);
        border-radius: var(--radius);
        border: 1px solid var(--line);
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    }

    .certs {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cert:nth-child(2) {
        margin-top: 0;
    }

    .cert img {
        aspect-ratio: 4 / 3;
    }
}

/* ---------- Финальный блок страницы (контакты / ссылки) ---------- */
.page-end {
    position: relative;
    padding-top: var(--section-y);
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(77, 141, 255, 0.1), transparent 70%),
        var(--bg);
    overflow: hidden;
}

.page-end__head {
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.page-end__head .lead {
    margin-inline: auto;
}

.page-end__head .btn {
    margin-top: 10px;
}

.menu-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: clamp(40px, 6vw, 64px);
}

.menu-cta a {
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.menu-cta a:hover,
.menu-cta a[aria-current="page"] {
    color: #0a0b0d;
    background: var(--text);
    border-color: var(--text);
}

.page-end__copy {
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: var(--dim);
}

/* ---------- Полноэкранная секция с видеофоном ---------- */
.video-section {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.video-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(7, 8, 10, 0.9) 0%, rgba(7, 8, 10, 0.55) 55%, rgba(7, 8, 10, 0.2) 100%),
        linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}

.video-section__content {
    max-width: 560px;
}

/* ---------- Технологии: полноэкранные видео-карточки ---------- */
.video-cards {
    display: grid;
    gap: clamp(16px, 2vw, 24px);
}

.video-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(460px, 82vh, 860px);
    padding: clamp(24px, 5vw, 64px);
    border-radius: clamp(16px, 2vw, 28px);
    border: 1px solid var(--line);
    overflow: hidden;
    isolation: isolate;
    background: #000 center / cover no-repeat;
}

.video-card video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(7, 8, 10, 0.05) 30%, rgba(7, 8, 10, 0.88) 100%),
        linear-gradient(90deg, rgba(7, 8, 10, 0.5), transparent 60%);
}

.video-card__content {
    display: grid;
    gap: 16px;
    max-width: 640px;
}

.video-card__num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--accent-2);
}

.video-card .lead {
    color: rgba(243, 245, 248, 0.82);
}

/* ---------- Контакты: адреса поверх карты ---------- */
.address-cards {
    display: grid;
    gap: 12px;
}

.address-card {
    display: grid;
    gap: 8px;
    padding: 22px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: rgba(10, 12, 16, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.address-card h3 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
}

.address-card p {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
}

@media (min-width: 900px) {
    .address-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

.contact-strip {
    display: grid;
    gap: 28px;
    align-items: center;
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.contact-strip__links {
    display: grid;
    gap: 6px;
}

.contact-strip__links a {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.6vw, 32px);
    font-weight: 500;
    line-height: 1.35;
    width: fit-content;
    transition: color 0.3s;
}

.contact-strip__links a:hover {
    color: var(--accent-2);
}

.contact-strip__logo {
    width: clamp(90px, 10vw, 130px);
    justify-self: start;
}

@media (min-width: 768px) {
    .contact-strip {
        grid-template-columns: 1fr auto;
    }

    .contact-strip__logo {
        justify-self: end;
    }
}

.tech-tab {
    text-align: left;
}

@media (min-width: 1024px) {
    .tech {
        grid-template-columns: 400px 1fr;
    }

    .tech-tab {
        font-size: 15px;
        white-space: nowrap;
    }
}

@media (max-width: 899px) {
    .hfeature.only-desktop + .hfeature {
        padding-left: 0;
        border-left: 0;
    }

    .hero__actions .btn {
        flex: 1 1 auto;
    }

    .hero-features--one {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   СОТЫ: 7 фото-шестигранников (как на старом сайте)
   ========================================================= */
.hexes {
    --w: clamp(100px, 27vw, 226px);
    --hs: calc(var(--w) * 0.9);
    --vs: calc(var(--w) * 0.78);
    position: relative;
    width: calc(var(--hs) * 2 + var(--w));
    height: calc(var(--vs) * 2 + var(--w));
    margin-inline: auto;
    filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.7));
    transition: transform 0.6s var(--ease);
    opacity: 1;
}

.hexes.reveal {
    transform: none;
}

.hexes::before {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 141, 255, 0.28), transparent 68%);
    filter: blur(30px);
    z-index: -1;
}

.hex {
    position: absolute;
    left: calc(var(--c) * var(--hs));
    top: calc(var(--r) * var(--vs));
    width: var(--w);
    height: var(--w);
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    background: #dfe3e8;
    cursor: zoom-in;
    opacity: 0;
    transform: scale(0.6) rotate(-8deg);
    transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
    transition-delay: calc(var(--i) * 0.08s);
}

.hexes.is-visible .hex {
    opacity: 1;
    transform: none;
}

.hex img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease), filter 0.5s;
    filter: saturate(0.9) brightness(0.92);
}

.hex::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(77, 141, 255, 0) 40%, rgba(77, 141, 255, 0.35));
    opacity: 0.6;
    transition: opacity 0.4s;
    pointer-events: none;
}

.hexes.is-visible .hex:hover {
    transform: scale(1.06);
    z-index: 2;
    transition-delay: 0s;
}

.hex:hover img {
    transform: scale(1.1);
    filter: none;
}

.hex:hover::after {
    opacity: 0;
}

.hex--center::after {
    background: linear-gradient(160deg, transparent 30%, rgba(77, 141, 255, 0.5));
}

/* =========================================================
   СБОРКА МАШИНЫ ПО СКРОЛЛУ
   ========================================================= */
.assembly {
    position: relative;
    height: 320vh;
    background:
        radial-gradient(ellipse 60% 45% at 50% 58%, rgba(77, 141, 255, 0.10), transparent 70%),
        var(--bg);
}

.assembly__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.assembly__inner {
    display: grid;
    gap: clamp(8px, 2vh, 24px);
    padding-top: calc(var(--header-h) + 8px);
}

.assembly__head {
    margin-bottom: 0;
    transition: opacity 0.4s, transform 0.4s;
}

.assembly .car-stage {
    display: block;
    width: min(100%, calc((100svh - 260px) * 1.75), 1180px);
    margin: 0 auto;
}

.assembly__canvas,
.assembly__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.assembly__video {
    display: none;
    object-fit: cover;
}

.assembly.has-video .assembly__video {
    display: block;
}

.assembly.has-video .assembly__canvas {
    display: none;
}

/* финальная картинка проявляется в самом конце сборки */
.assembly .car-stage__img {
    opacity: var(--final, 0);
}

.assembly .hotspot,
.assembly .car-stage__hint {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.assembly .car-stage.is-visible .hotspot,
.assembly .car-stage.is-visible .car-stage__hint {
    opacity: 1;
    pointer-events: auto;
}

.assembly__progress {
    justify-self: center;
    width: 160px;
    height: 2px;
    border-radius: 2px;
    background: var(--line);
    overflow: hidden;
}

.assembly__progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ffb53d, var(--accent));
    transform-origin: left;
    transform: scaleX(var(--p, 0));
}

@media (max-width: 899px) {
    .assembly {
        height: 230vh;
    }

    .assembly .hotspot,
    .assembly .car-stage__hint {
        display: none;
    }

    .assembly .car-stage {
        width: 118%;
        margin-left: -9%;
    }
}

/* режим «видео-сборка»: обычный блок, ролик играет сам */
.assembly.is-autoplay {
    height: auto;
}

.assembly.is-autoplay .assembly__sticky {
    position: relative;
    height: auto;
    overflow: hidden;
}

.assembly.is-autoplay .assembly__inner {
    position: relative;
    padding-top: 0;
    gap: 0;
}

/* видео на всю ширину экрана */
.assembly.is-autoplay .car-stage {
    width: 100vw;
    max-width: none;
    margin: 0 0 0 calc(50% - 50vw);
}

.assembly.is-autoplay .assembly__video,
.assembly.is-autoplay .car-stage__img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 84%, transparent 100%);
}

.assembly.is-autoplay .car-stage__img {
    transition: opacity 0.9s ease;
}

.assembly.is-autoplay .assembly__progress {
    position: absolute;
    left: 50%;
    bottom: clamp(16px, 3vw, 40px);
    transform: translateX(-50%);
    z-index: 3;
    transition: opacity 0.5s;
}

.assembly.is-autoplay .car-stage.is-visible ~ .assembly__progress {
    opacity: 0;
}

@media (min-width: 900px) {
    /* заголовок поверх верхней (тёмной) части ролика */
    .assembly.is-autoplay .assembly__head {
        position: absolute;
        top: 2.4vw;
        left: 0;
        right: 0;
        max-width: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 3;
        pointer-events: none;
    }

    .assembly.is-autoplay .assembly__head .h2 {
        max-width: none;
        font-size: clamp(28px, 3vw, 58px);
        white-space: nowrap;
        text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
    }

    .assembly.is-autoplay .assembly__head .eyebrow {
        margin-bottom: 0.6vw;
    }
}

@media (max-width: 899px) {
    .assembly.is-autoplay .assembly__sticky {
        padding-top: var(--section-y);
    }

    .assembly.is-autoplay .assembly__head {
        margin-bottom: 8px;
    }

    /* на телефоне чуть крупнее, строго по центру */
    .assembly.is-autoplay .car-stage {
        width: 130vw;
        margin-left: calc(50% - 65vw);
    }

    .assembly.is-autoplay .assembly__progress {
        bottom: 6px;
    }
}

@media (min-width: 900px) {
    .only-mobile-block {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .assembly {
        height: auto;
    }

    .assembly__sticky {
        position: relative;
        height: auto;
        padding-block: var(--section-y);
    }

    .assembly .car-stage__img {
        opacity: 1;
    }

    .assembly__canvas,
    .assembly__progress {
        display: none;
    }
}

/* ---------- Юридические страницы ---------- */
.legal__inner {
    max-width: 820px;
    display: grid;
    gap: 16px;
}

.legal__inner h1 {
    margin-bottom: 4px;
}

.legal__meta {
    color: var(--dim);
    font-size: 14px;
    margin-bottom: 18px;
}

.legal__inner h2 {
    margin-top: 28px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
}

.legal__inner p,
.legal__inner li {
    color: var(--muted);
    line-height: 1.7;
}

.legal__inner b {
    color: var(--text);
    font-weight: 600;
}

.legal__inner ul {
    display: grid;
    gap: 6px;
    padding-left: 20px;
    list-style: disc;
}

.legal__inner a,
.page-end__copy a {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-end__copy a {
    color: var(--muted);
}

/* ---------- Побуквенный заголовок ---------- */
.ch-split {
    overflow: hidden;
    padding-bottom: 0.06em;
}

.ch-split .w {
    display: inline-block;
    white-space: nowrap;
}

.ch-split .ch {
    display: inline-block;
    transform: translateY(105%) rotate(4deg);
    opacity: 0;
    transition: transform 1s var(--ease), opacity 0.8s var(--ease);
    transition-delay: calc(0.15s + var(--ci) * 0.045s);
}

.ch-split.is-visible .ch,
.is-visible .ch-split .ch {
    transform: none;
    opacity: 1;
}

.no-js .ch-split .ch {
    transform: none;
    opacity: 1;
}

/* ---------- Плёночное зерно ---------- */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 300;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Уведомление о cookie ---------- */
.cookie-notice {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 90;
    width: min(760px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 16px 20px;
    padding: 16px 18px 16px 22px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: rgba(12, 14, 18, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translate(-50%, 20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-notice.is-shown {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cookie-notice__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
}

.cookie-notice__text a {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-notice__btn {
    flex-shrink: 0;
}

@media (max-width: 599px) {
    .cookie-notice {
        flex-direction: column;
        align-items: stretch;
        bottom: 12px;
        width: calc(100% - 24px);
        padding: 16px;
    }
}
