/* =============================================================================
   «Свериум» — стили сайта
   Тёмная тема в цветах логотипа: глубокий синий щит и оранжевый неон.
   Вся «видео»-анимация — CSS и canvas, без тяжёлых роликов.
   ============================================================================= */

@font-face {
    font-family: "Unbounded";
    font-style: normal;
    font-display: swap;
    font-weight: 200 900;
    src: url("/fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Unbounded";
    font-style: normal;
    font-display: swap;
    font-weight: 200 900;
    src: url("/fonts/unbounded-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Unbounded";
    font-style: normal;
    font-display: swap;
    font-weight: 200 900;
    src: url("/fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

:root {
    --bg: #070d17;
    --bg-2: #0a1422;
    --surface: #0e1b2d;
    --surface-2: #122338;
    --surface-3: #18304b;
    --line: rgba(140, 175, 220, 0.12);
    --line-2: rgba(140, 175, 220, 0.22);

    --text: #eef3fb;
    --text-2: #b9c6d9;
    --muted: #7f91ab;

    --navy: #263f5e;
    --navy-d: #1b2d45;
    --accent: #f2791e;
    --accent-2: #ff9b4f;
    --accent-soft: rgba(242, 121, 30, 0.14);
    --accent-glow: rgba(242, 121, 30, 0.45);
    --blue: #6aaeff;
    --blue-soft: rgba(106, 174, 255, 0.14);
    --green: #3fd99a;
    --green-soft: rgba(63, 217, 154, 0.14);
    --red: #ff6b6b;
    --red-soft: rgba(255, 107, 107, 0.14);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 28px;
    --container: 1240px;
    --header-h: 76px;

    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* ----------------------------------------------------------------- Основа */

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

/* Атрибут hidden должен скрывать элемент, даже если у класса задан display */
[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
    background: var(--bg);
}

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

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
picture { display: block; }
a { color: var(--accent-2); text-decoration: none; transition: color 0.2s; }
a:hover { color: #ffc08a; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
dl, dd { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

h1, h2, h3 {
    margin: 0 0 0.5em;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
}
h1 { font-size: clamp(32px, 5.6vw, 70px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 44px); }
h3 { font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; letter-spacing: -0.01em; }

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

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

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; top: 10px; left: 10px; z-index: 200;
    padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff;
    transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; color: #fff; }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

.section { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg) 85%); }
.section--alt::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.section-head p { margin: 0; color: var(--text-2); font-size: clamp(16px, 1.4vw, 18px); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* ----------------------------------------------------------------- Кнопки */

.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px;
    border: 1px solid transparent; border-radius: 999px;
    font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap;
    transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .ico { transition: transform 0.25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #ff9246, var(--accent) 45%, #e0560b);
    box-shadow: 0 8px 28px -6px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { color: #fff; box-shadow: 0 12px 40px -6px rgba(242, 121, 30, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3); transform: translateY(-1px); }

.btn--ghost { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { color: #fff; border-color: rgba(242, 121, 30, 0.6); background: var(--accent-soft); }

.btn--light { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: var(--line-2); }
.btn--light:hover { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 8px 24px -8px var(--accent-glow); }

.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--block { width: 100%; }

.link-btn { padding: 4px; border: 0; background: none; color: var(--accent-2); font-size: 14px; font-weight: 600; }
.link-btn:hover { color: #ffc08a; text-decoration: underline; }

/* ----------------------------------------------------------------- Шапка */

/* Размытие фона — в псевдоэлементе: backdrop-filter на самой шапке сделал бы её
   «контейнером» для position: fixed, и выпадающее меню на телефоне схлопнулось бы */
.header { position: fixed; inset: 0 0 auto; z-index: 60; isolation: isolate; }
.header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(7, 13, 23, 0.88);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--line);
    opacity: 0; transition: opacity 0.3s;
}
.header.is-scrolled::before { opacity: 1; }
.header__bar { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: #fff; }
.brand:hover { color: #fff; }
.brand__logo img { width: 33px; height: 40px; filter: drop-shadow(0 0 10px rgba(242, 121, 30, 0.35)); }
.brand__name { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.brand__name em { font-style: normal; color: var(--accent); text-shadow: 0 0 18px rgba(242, 121, 30, 0.55); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
    position: relative; padding: 10px 12px; border-radius: 10px;
    color: var(--text-2); font-size: 14.5px; font-weight: 600;
}
.nav__link:hover { color: #fff; }
.nav__link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px;
    background: var(--accent); box-shadow: 0 0 8px var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header__phone { display: grid; color: #fff; text-align: right; line-height: 1.25; }
.header__phone span { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.header__phone small { font-size: 11.5px; color: var(--muted); }
.header__phone:hover { color: var(--accent-2); }

.burger {
    display: none; position: relative; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, 0.03);
}
.burger span, .burger span::before, .burger span::after {
    content: ""; position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px;
    background: #fff; border-radius: 2px; transition: transform 0.25s, background 0.25s;
}
.burger span { top: 50%; margin-top: -1px; }
.burger span::before { top: -6px; left: 0; margin-left: 0; }
.burger span::after { top: 6px; left: 0; margin-left: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------------------------------------------- Обложка */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex; flex-direction: column;
    padding-top: var(--header-h);
    overflow: hidden;
    isolation: isolate;
}

.hero__canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }

.hero__glow {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(600px circle at var(--mx, 70%) var(--my, 40%), rgba(242, 121, 30, 0.13), transparent 60%),
        radial-gradient(900px 600px at 85% 30%, rgba(38, 63, 94, 0.55), transparent 70%),
        radial-gradient(700px 500px at 10% 90%, rgba(106, 174, 255, 0.08), transparent 70%),
        linear-gradient(90deg, rgba(7, 13, 23, 0.72) 0%, rgba(7, 13, 23, 0.45) 38%, transparent 62%),
        linear-gradient(180deg, transparent 70%, var(--bg));
}

.hero__inner {
    flex: 1;
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center; gap: clamp(24px, 4vw, 56px);
    padding-top: clamp(28px, 5vh, 64px); padding-bottom: clamp(28px, 5vh, 56px);
}

.pill {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
    padding: 8px 16px 8px 12px; border-radius: 999px;
    border: 1px solid var(--line-2); background: rgba(14, 27, 45, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 13.5px; font-weight: 600; color: var(--text-2);
}
.pill__dot {
    position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 10px var(--green);
}
.pill__dot::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green);
    animation: ping 2s var(--ease) infinite;
}

.hero__title { margin-bottom: 24px; }

.rotator { display: inline-grid; vertical-align: bottom; }
.rotator__word {
    grid-area: 1 / 1;
    background: linear-gradient(100deg, #ffc48f 0%, var(--accent) 45%, #ff5a2b 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 24px rgba(242, 121, 30, 0.35));
    opacity: 0;
    animation: rotate-word 10s var(--ease) infinite;
}
.rotator__word:nth-child(2) { animation-delay: 2.5s; }
.rotator__word:nth-child(3) { animation-delay: 5s; }
.rotator__word:nth-child(4) { animation-delay: 7.5s; }

.hero__lead { max-width: 560px; margin-bottom: 32px; font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.stat dt { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; color: #fff; line-height: 1.1; }
.stat dd { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* Сцена с логотипом */
.hero__stage { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; margin-left: auto; }
.hero__logo {
    position: absolute; inset: 22%;
    display: grid; place-items: center;
    animation: float 7s ease-in-out infinite;
}
.hero__logo img {
    width: 74%; height: auto;
    filter: drop-shadow(0 0 30px rgba(242, 121, 30, 0.35)) drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
    animation: logo-glow 4s ease-in-out infinite;
}

.orbit { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); }
.orbit::before {
    content: ""; position: absolute; top: -4px; left: calc(50% - 4px);
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 14px 3px var(--accent-glow);
}
.orbit--1 { inset: 12%; animation: spin 26s linear infinite; }
.orbit--2 { inset: 3%; border-style: dashed; border-color: rgba(140, 175, 220, 0.14); animation: spin 48s linear infinite reverse; }
.orbit--2::before { background: var(--blue); box-shadow: 0 0 14px 3px rgba(106, 174, 255, 0.5); }
.orbit--3 { inset: 24%; border-color: rgba(242, 121, 30, 0.22); animation: spin 18s linear infinite; }
.orbit--3::before { width: 6px; height: 6px; top: -3px; left: calc(50% - 3px); }

.toast-card {
    position: absolute;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px 12px 12px; border-radius: 16px;
    background: rgba(14, 27, 45, 0.72);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    font-size: 13px; line-height: 1.3; white-space: nowrap;
    opacity: 0;
    animation: toast-cycle 16s var(--ease) infinite;
}
.toast-card b { display: block; color: #fff; font-weight: 700; }
.toast-card small { color: var(--muted); font-size: 12px; }
.toast-card__icon {
    display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0;
    border-radius: 10px; background: var(--green-soft); color: var(--green);
}
.toast-card__icon--blue { background: var(--blue-soft); color: var(--blue); }
.toast-card--1 { top: 10%; left: -2%; }
.toast-card--2 { top: 30%; right: -4%; animation-delay: 4s; }
.toast-card--3 { bottom: 22%; left: -6%; animation-delay: 8s; }
.toast-card--4 { bottom: 6%; right: 4%; animation-delay: 12s; }

/* Бегущая строка */
.marquee {
    position: relative; overflow: hidden;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: rgba(10, 20, 34, 0.7);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span {
    display: inline-flex; align-items: center; gap: 28px; padding: 18px 0 18px 28px;
    font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.marquee__track span::after { content: "✦"; color: var(--accent); font-size: 12px; text-shadow: 0 0 10px var(--accent); }

/* Вход элементов первого экрана — без JavaScript, чтобы не было мигания */
.fx-up { animation: fx-up 0.9s var(--ease) both; }
.fx-d1 { animation-delay: 0.05s; }
.fx-d2 { animation-delay: 0.15s; }
.fx-d3 { animation-delay: 0.3s; }
.fx-d4 { animation-delay: 0.45s; }
.fx-d5 { animation-delay: 0.6s; }
.hero__stage { animation: fx-zoom 1.2s var(--ease) 0.2s both; }

/* Появление при прокрутке — класс .reveal-ready добавляет скрипт */
.reveal-ready .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------- Направления («видео»-карточки) */

/* Карточки одного размера по три в ряд; неполный последний ряд — по центру */
.scenes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.scene-card { grid-column: span 2; }
@media (min-width: 1081px) {
    .scene-card:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
    .scene-card:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
}

.scene-card {
    position: relative; display: flex; flex-direction: column;
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--surface); border: 1px solid var(--line);
    color: var(--text);
    transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.scene-card:hover {
    color: var(--text); transform: translateY(-6px);
    border-color: rgba(242, 121, 30, 0.45);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(242, 121, 30, 0.2), 0 0 40px -10px var(--accent-glow);
}
.scene-card:hover .scene { filter: saturate(1.15) brightness(1.08); }

.scene {
    position: relative; aspect-ratio: 16 / 10; overflow: hidden;
    background:
        radial-gradient(120% 90% at 50% 120%, rgba(242, 121, 30, 0.18), transparent 60%),
        linear-gradient(160deg, var(--surface-3), var(--navy-d));
    transition: filter 0.4s;
}
.scene::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(14, 27, 45, 0.95));
}
.scene__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.kb { animation: ken-burns 18s ease-in-out infinite alternate; transform-origin: 60% 40%; }
.kb--alt { animation-duration: 22s; transform-origin: 30% 60%; }

.scene__progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 2px; background: rgba(255, 255, 255, 0.08); }
.scene__progress::before {
    content: ""; position: absolute; inset: 0; transform-origin: left;
    background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 8px var(--accent);
    animation: progress 7s linear infinite;
}
.scene-card:nth-child(2) .scene__progress::before { animation-delay: -1.5s; }
.scene-card:nth-child(3) .scene__progress::before { animation-delay: -3s; }
.scene-card:nth-child(4) .scene__progress::before { animation-delay: -4.2s; }
.scene-card:nth-child(5) .scene__progress::before { animation-delay: -5.5s; }
.scene-card:nth-child(6) .scene__progress::before { animation-delay: -2.4s; }

.scene-card__body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; }
.scene-card__num { font-family: var(--font-display); font-size: 12px; color: var(--accent-2); letter-spacing: 0.1em; margin-bottom: 8px; }
.scene-card__body p { color: var(--text-2); font-size: 14.5px; margin-bottom: 16px; }
.scene-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-weight: 700; font-size: 14px; }

/* Бухгалтерия: строки журнала */
.ledger {
    position: absolute; left: 7%; bottom: 14%; z-index: 1; width: 46%;
    display: grid; gap: 7px; padding: 14px; border-radius: 12px;
    background: rgba(7, 13, 23, 0.72); border: 1px solid var(--line-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ledger i {
    display: block; height: 6px; border-radius: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
    background-size: 200% 100%;
    animation: shimmer 2.4s linear infinite;
}
.ledger i:nth-child(odd) { width: 86%; }
.ledger i:nth-child(3n) { width: 64%; background-image: linear-gradient(90deg, rgba(242, 121, 30, 0.35), rgba(255, 155, 79, 0.85), rgba(242, 121, 30, 0.35)); }
.ledger i:nth-child(2) { animation-delay: 0.2s; }
.ledger i:nth-child(4) { animation-delay: 0.5s; }
.ledger i:nth-child(5) { animation-delay: 0.7s; }

/* Налоги: документ со штампом */
.doc {
    position: absolute; top: 14%; left: 50%; z-index: 1;
    width: 42%; aspect-ratio: 3 / 4; margin-left: -21%;
    display: flex; flex-direction: column; gap: 9px; padding: 9% 9%;
    border-radius: 10px; background: #f3f6fb; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: rotate(-4deg);
    animation: doc-float 6s ease-in-out infinite;
}
.doc i { display: block; height: 6px; border-radius: 3px; background: #c9d4e4; transform-origin: left; animation: type-line 6s var(--ease) infinite; }
.doc i:first-child { width: 60%; height: 8px; background: var(--navy); }
.doc i:nth-child(2) { animation-delay: 0.3s; }
.doc i:nth-child(3) { width: 82%; animation-delay: 0.6s; }
.doc i:nth-child(4) { animation-delay: 0.9s; }
.doc i:nth-child(5) { width: 54%; animation-delay: 1.2s; }
.doc__stamp {
    position: absolute; right: -16%; bottom: 14%;
    padding: 6px 12px; border: 2.5px solid var(--accent); border-radius: 8px;
    font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent); background: rgba(255, 255, 255, 0.85);
    transform: rotate(-14deg) scale(0); opacity: 0;
    animation: stamp 6s var(--ease) infinite;
}

/* Кадры: зарплатная ведомость */
.payroll {
    position: absolute; left: 10%; right: 10%; bottom: 18%; top: 28%; z-index: 1;
    display: flex; align-items: flex-end; gap: 6%;
}
.payroll i {
    flex: 1; height: 100%; border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, var(--accent-2), var(--accent) 50%, rgba(242, 121, 30, 0.2));
    box-shadow: 0 0 18px -4px var(--accent-glow);
    transform-origin: bottom; animation: bar-grow 5s var(--ease) infinite;
}
.payroll i:nth-child(1) { --h: 0.45; }
.payroll i:nth-child(2) { --h: 0.7; animation-delay: 0.15s; }
.payroll i:nth-child(3) { --h: 0.55; animation-delay: 0.3s; }
.payroll i:nth-child(4) { --h: 0.85; animation-delay: 0.45s; }
.payroll i:nth-child(5) { --h: 0.62; animation-delay: 0.6s; }
.payroll i:nth-child(6) { --h: 0.95; animation-delay: 0.75s; }
.payroll i:nth-child(7) { --h: 0.74; animation-delay: 0.9s; }
.avatars { position: absolute; top: 12%; left: 10%; z-index: 1; display: flex; }
.avatars i {
    width: 30px; height: 30px; margin-right: -8px; border-radius: 50%;
    border: 2px solid var(--surface-3);
    background: linear-gradient(135deg, var(--blue), var(--navy));
    animation: pop 5s var(--ease) infinite;
}
.avatars i:nth-child(2) { background: linear-gradient(135deg, var(--accent-2), var(--navy)); animation-delay: 0.2s; }
.avatars i:nth-child(3) { background: linear-gradient(135deg, var(--green), var(--navy)); animation-delay: 0.4s; }
.avatars i:nth-child(4) { background: linear-gradient(135deg, #c39bff, var(--navy)); animation-delay: 0.6s; }

/* Аналитика: рисующийся график */
.spark { position: absolute; left: 8%; right: 8%; bottom: 16%; z-index: 1; width: 84%; height: 44%; overflow: visible; }
.spark path {
    fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
    filter: drop-shadow(0 0 6px var(--accent));
    stroke-dasharray: 320; stroke-dashoffset: 320;
    animation: draw 5s var(--ease) infinite;
}

/* Регистрация: чек-лист */
.checklist { position: absolute; top: 14%; left: 12%; right: 12%; z-index: 1; display: grid; gap: 8px; }
.checklist li {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px;
    background: rgba(7, 13, 23, 0.6); border: 1px solid var(--line-2);
    font-size: 13px; font-weight: 600; color: var(--text-2);
    opacity: 0; transform: translateX(-12px);
    animation: check-in 6s var(--ease) infinite;
}
.checklist li::before {
    content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0;
    border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800;
}
.checklist li:nth-child(2) { animation-delay: 0.5s; }
.checklist li:nth-child(3) { animation-delay: 1s; }
.checklist li:nth-child(4) { animation-delay: 1.5s; }

/* Аудит: радар */
.radar {
    position: absolute; top: 50%; left: 50%; z-index: 1;
    width: 58%; aspect-ratio: 1; margin: -29% 0 0 -29%;
    display: grid; place-items: center; border-radius: 50%;
    background:
        radial-gradient(circle, transparent 32%, rgba(140, 175, 220, 0.12) 33%, transparent 34%, transparent 64%, rgba(140, 175, 220, 0.12) 65%, transparent 66%),
        radial-gradient(circle, rgba(38, 63, 94, 0.6), rgba(14, 27, 45, 0.2));
    border: 1px solid var(--line-2);
}
.radar__sweep {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(242, 121, 30, 0.45) 40deg, transparent 70deg);
    animation: spin 3.2s linear infinite;
}
.radar img { position: relative; width: 30%; height: auto; filter: drop-shadow(0 0 14px var(--accent-glow)); }

/* ----------------------------------------------------------------- Каталог */

.catalog { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }

.filters {
    position: sticky; top: calc(var(--header-h) + 16px);
    padding: 22px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
}
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters__head h3 { margin: 0; font-size: 17px; }

.filter-group { padding: 16px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; }
.filter-group legend + * { clear: both; }
.filter-group legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.check { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 14.5px; color: var(--text-2); cursor: pointer; line-height: 1.4; }
.check:hover { color: #fff; }
.check input {
    appearance: none; -webkit-appearance: none; position: relative; flex-shrink: 0;
    width: 19px; height: 19px; margin: 1px 0 0; border-radius: 6px;
    border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.check input:checked { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px -2px var(--accent-glow); }
.check input:checked::after {
    content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 10px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.check__count { margin-left: auto; padding: 0 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); font-size: 12px; color: var(--muted); }

.price-range { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.price-range input, .search input, .sort select, .field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--line-2); background: rgba(7, 13, 23, 0.55); color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.price-range input { padding: 10px 12px; font-size: 14px; }
input::placeholder, textarea::placeholder { color: #5f7290; }
.price-range input:focus, .search input:focus, .sort select:focus, .field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: rgba(242, 121, 30, 0.7); box-shadow: 0 0 0 4px rgba(242, 121, 30, 0.14);
}
select {
    appearance: none; -webkit-appearance: none; padding-right: 38px !important; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f2791e' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
select option { background: var(--surface); color: var(--text); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 260px; }
.search .ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 44px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.sort select { width: auto; font-weight: 600; }
.filters-toggle { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chips:empty { display: none; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
    border: 1px solid rgba(242, 121, 30, 0.4); background: var(--accent-soft); color: var(--accent-2);
    font-size: 13px; font-weight: 600;
}
.chip::after { content: "×"; font-size: 16px; line-height: 1; }
.chip:hover { background: rgba(242, 121, 30, 0.25); color: #fff; }

.catalog__meta { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.catalog__meta b { color: #fff; }

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.service {
    position: relative; display: flex; flex-direction: column;
    padding: 24px; border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.service:hover { transform: translateY(-4px); border-color: rgba(242, 121, 30, 0.4); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8), 0 0 30px -16px var(--accent-glow); }
.service__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.service__cat { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.badge {
    padding: 4px 9px; border-radius: 7px; white-space: nowrap;
    font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
    background: var(--accent-soft); color: var(--accent-2);
}
.badge--hit { background: var(--green-soft); color: var(--green); }
.badge--hot { background: var(--red-soft); color: var(--red); }
.service h3 { margin-bottom: 10px; font-size: 17px; line-height: 1.3; }
.service__desc { font-size: 14.5px; color: var(--text-2); margin-bottom: 14px; }
.service__features { display: grid; gap: 7px; margin-bottom: 16px; }
.service__features li { position: relative; padding-left: 22px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.service__features li::before {
    content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.service__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--muted); }
.service__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.service__price strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; line-height: 1.1; }
.service__price span { font-size: 12.5px; color: var(--muted); }

.catalog__empty { padding: 56px 24px; text-align: center; border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--text-2); }
.catalog__more { display: flex; justify-content: center; margin-top: 28px; }
.catalog__more[hidden], .catalog__empty[hidden] { display: none; }

/* ----------------------------------------------------------------- Преимущества */

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bento__item {
    position: relative; overflow: hidden;
    padding: 30px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--line);
    transition: border-color 0.3s, transform 0.4s var(--ease);
}
.bento__item--wide { grid-column: span 2; }
.bento__item--full { grid-column: 1 / -1; }
.bento__item::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
    background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(242, 121, 30, 0.16), transparent 45%);
}
.bento__item:hover { border-color: rgba(242, 121, 30, 0.35); }
.bento__item:hover::before { opacity: 1; }
.bento__item > * { position: relative; }
.bento__icon {
    display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px;
    border-radius: 15px; color: var(--accent-2);
    background: linear-gradient(145deg, rgba(242, 121, 30, 0.22), rgba(242, 121, 30, 0.05));
    border: 1px solid rgba(242, 121, 30, 0.3);
    box-shadow: 0 0 30px -10px var(--accent-glow);
}
.bento__item p { margin: 0; color: var(--text-2); font-size: 15px; }
.bento__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.bento__chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--text-2); }

/* ----------------------------------------------------------------- Шаги */

.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps::before, .steps::after {
    content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; border-radius: 2px;
}
.steps::before { background: var(--line-2); }
.steps::after {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 12px var(--accent);
    transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 0.2s linear;
}
.step { position: relative; z-index: 1; }
.step__num {
    display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px;
    border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-2);
    font-family: var(--font-display); font-weight: 700; color: var(--accent-2);
    box-shadow: 0 0 0 6px var(--bg);
}
.step p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ----------------------------------------------------------------- Тарифы */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
    position: relative; display: flex; flex-direction: column;
    padding: 32px 28px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--line);
}
.plan--featured {
    border: 1.5px solid transparent;
    background:
        linear-gradient(var(--surface-2), var(--surface)) padding-box,
        conic-gradient(from var(--angle), rgba(242, 121, 30, 0.15) 0deg, var(--accent) 60deg, #ffc48f 90deg, rgba(242, 121, 30, 0.15) 150deg, rgba(242, 121, 30, 0.15) 360deg) border-box;
    box-shadow: 0 30px 70px -30px var(--accent-glow);
    animation: spin-angle 6s linear infinite;
}
.plan__label {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    padding: 6px 16px; border-radius: 999px; white-space: nowrap;
    background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    box-shadow: 0 0 20px var(--accent-glow);
}
.plan h3 { font-size: 22px; margin-bottom: 6px; }
.plan__for { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan__price { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 22px; }
.plan__price small { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); }
.plan__list { display: grid; gap: 11px; margin-bottom: 28px; }
.plan__list li { position: relative; padding-left: 28px; font-size: 15px; color: var(--text-2); }
.plan__list li::before {
    content: "✓"; position: absolute; left: 0; top: 1px;
    display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-2); font-size: 11px; font-weight: 800;
}
.plan .btn { margin-top: auto; }

/* ----------------------------------------------------------------- Калькулятор */

.calc {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: clamp(20px, 3vw, 40px);
    padding: clamp(22px, 3vw, 40px); border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--line);
}
.calc__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; align-content: start; }
.calc__note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.calc__result {
    position: relative; overflow: hidden; align-self: start;
    display: flex; flex-direction: column;
    padding: 28px; border-radius: var(--radius);
    background: linear-gradient(160deg, var(--navy), var(--navy-d));
    border: 1px solid rgba(242, 121, 30, 0.3);
}
.calc__result::before {
    content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 121, 30, 0.35), transparent 70%); pointer-events: none;
}
.calc__label { position: relative; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.calc__sum { position: relative; margin: 8px 0 18px; font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; color: #fff; line-height: 1.1; }
.calc__sum small { font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--text-2); }
.calc__rows { position: relative; display: grid; gap: 8px; margin-bottom: 22px; font-size: 14px; }
.calc__rows div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-2); }
.calc__rows b { color: #fff; white-space: nowrap; }
.calc__result .btn { margin-top: auto; position: relative; }

/* ----------------------------------------------------------------- Поля форм */

.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field textarea { resize: vertical; min-height: 92px; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; font-size: 13px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.consent input {
    appearance: none; -webkit-appearance: none; position: relative; flex-shrink: 0;
    width: 18px; height: 18px; margin: 1px 0 0; border-radius: 5px;
    border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
}
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.consent.is-invalid { color: var(--red); }
.consent.is-invalid input { border-color: var(--red); }

.form-msg { margin: 12px 0 0; font-size: 14px; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.is-ok { padding: 12px 14px; border-radius: 12px; background: var(--green-soft); color: var(--green); }
.form-msg.is-err { padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: #ff9c9c; }

/* ----------------------------------------------------------------- Вопросы */

.faq { display: grid; gap: 12px; }
.faq__item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s; }
.faq__item[open] { border-color: rgba(242, 121, 30, 0.4); }
.faq__item summary {
    position: relative; padding: 20px 56px 20px 24px; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 500; font-size: 16px; color: #fff;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-2); font-size: 20px; font-weight: 400;
    transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { margin: 0; padding: 0 24px 22px; color: var(--text-2); }

/* ----------------------------------------------------------------- Контакты */

.contacts { position: relative; padding-bottom: clamp(72px, 9vw, 128px); }
.contacts__cover {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: clamp(380px, 46vw, 600px);
    display: flex; align-items: center;
}
.contacts__media { position: absolute; inset: 0; z-index: -1; }
.contacts__media picture, .contacts__media img { width: 100%; height: 100%; }
.contacts__media img { object-fit: cover; object-position: 68% 22%; animation: ken-burns-soft 30s ease-in-out infinite alternate; transform-origin: 72% 28%; }
.contacts__media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 13, 23, 0.94) 0%, rgba(7, 13, 23, 0.78) 30%, rgba(7, 13, 23, 0.15) 58%, rgba(7, 13, 23, 0) 75%),
        linear-gradient(180deg, var(--bg) 0%, rgba(7, 13, 23, 0.6) 12%, transparent 32%, transparent 70%, var(--bg) 100%);
}
.contacts__headline { padding-top: 48px; padding-bottom: 48px; }
.contacts__headline h2 { max-width: 560px; }
.contacts__lead { max-width: 480px; color: var(--text-2); font-size: 17px; margin: 0; }
.contacts__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: clamp(24px, 4vw, 64px); align-items: start; margin-top: clamp(8px, 2vw, 24px); }
.contacts__subtitle { font-size: 20px; margin-bottom: 22px; }
.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 24px; margin-bottom: 28px; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: var(--text); font-weight: 600; }
.contact-list small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.contact-list a { color: #fff; }
.contact-list a:hover { color: var(--accent-2); }
.contact-list__icon {
    display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--line-2); color: var(--accent-2);
}
.requisites { display: flex; flex-wrap: wrap; gap: 8px; }
.requisites span { padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }

.glass {
    padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-lg);
    background: rgba(14, 27, 45, 0.72); border: 1px solid var(--line-2);
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: var(--shadow);
}
.contacts__form h3 { font-size: 22px; margin-bottom: 18px; }

/* ----------------------------------------------------------------- Подвал */

.footer { padding: 64px 0 28px; border-top: 1px solid var(--line); background: #050a12; font-size: 14.5px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer__brand p { max-width: 320px; margin: 16px 0 0; color: var(--muted); }
.footer h3 { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.footer ul { display: grid; gap: 9px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--accent-2); }
.footer__phone { font-family: var(--font-display); font-weight: 600; color: #fff !important; }
.footer__req { color: var(--muted); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; font-size: 13px; color: var(--muted); }
.footer__bottom a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); }

/* ----------------------------------------------------------------- Окно заявки */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(3, 7, 13, 0.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade-in 0.25s both; }
.modal__box {
    position: relative; width: min(470px, 100%); overflow-y: auto; overscroll-behavior: contain;
    /* В Safari на iPhone 100vh — высота без панелей браузера, и низ окна уходил бы под них;
       dvh учитывает видимые панели, 100vh остаётся для старых браузеров */
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    padding: 32px; border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 60px -20px var(--accent-glow);
    animation: modal-in 0.35s var(--ease) both;
}
.modal__close {
    position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text-2); font-size: 22px; line-height: 1;
}
.modal__close:hover { color: #fff; border-color: var(--accent); }
.modal__title { font-size: 22px; padding-right: 40px; }
.modal__text { color: var(--text-2); font-size: 14.5px; }
.modal__service { padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); font-size: 14px; font-weight: 600; }

.fab {
    position: fixed; right: 16px; bottom: 16px; z-index: 50; display: none;
    width: 58px; height: 58px; border-radius: 50%; place-items: center;
    background: var(--accent); color: #fff; box-shadow: 0 10px 30px var(--accent-glow);
}
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ping 2.4s var(--ease) infinite; }
.fab:hover { color: #fff; }

/* ----------------------------------------------------------------- Документы */

.doc-page { padding: calc(var(--header-h) + 48px) 0 96px; }
.doc-page h1 { font-size: clamp(26px, 4vw, 40px); margin: 18px 0 10px; }
.doc-page h2 { font-size: 20px; margin: 36px 0 12px; }
.doc-page p, .doc-page li { color: var(--text-2); }
.doc-page ul { display: grid; gap: 6px; margin: 0 0 1em; }
.doc-page ul li { position: relative; padding-left: 20px; }
.doc-page ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.doc-page--center { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.back-link { color: var(--muted); font-size: 14px; }
.big-code { font-family: var(--font-display); font-size: clamp(80px, 14vw, 150px); font-weight: 800; line-height: 1; margin: 0; color: transparent; -webkit-text-stroke: 2px var(--accent); text-shadow: 0 0 40px var(--accent-glow); }
.error-details { margin-top: 24px; padding: 16px; border-radius: 12px; background: #000; color: #f99; font-size: 12px; text-align: left; overflow: auto; white-space: pre-wrap; }

/* ----------------------------------------------------------------- Анимации */

@keyframes fx-up { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fx-zoom { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes rotate-word {
    0% { opacity: 0; transform: translateY(40%); filter: blur(8px); }
    4%, 22% { opacity: 1; transform: none; filter: blur(0); }
    27%, 100% { opacity: 0; transform: translateY(-40%); filter: blur(8px); }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes logo-glow {
    0%, 100% { filter: drop-shadow(0 0 22px rgba(242, 121, 30, 0.28)) drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); }
    50% { filter: drop-shadow(0 0 46px rgba(242, 121, 30, 0.55)) drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-angle { to { --angle: 360deg; } }
@keyframes ping { 0% { transform: scale(0.9); opacity: 0.9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
@keyframes toast-cycle {
    0% { opacity: 0; transform: translateY(16px) scale(0.96); }
    4%, 22% { opacity: 1; transform: none; }
    27%, 100% { opacity: 0; transform: translateY(-10px) scale(0.98); }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ken-burns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.2) translate(-3%, -2%); } }
@keyframes ken-burns-soft { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, 0); } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes doc-float { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-6px); } }
@keyframes type-line { 0% { transform: scaleX(0); } 18%, 100% { transform: scaleX(1); } }
@keyframes stamp {
    0%, 30% { opacity: 0; transform: rotate(-14deg) scale(2.2); }
    38% { opacity: 1; transform: rotate(-14deg) scale(0.92); }
    42%, 88% { opacity: 1; transform: rotate(-14deg) scale(1); }
    96%, 100% { opacity: 0; transform: rotate(-14deg) scale(1); }
}
@keyframes bar-grow { 0% { transform: scaleY(0.05); } 30%, 80% { transform: scaleY(var(--h, 0.6)); } 100% { transform: scaleY(0.05); } }
@keyframes pop { 0% { transform: scale(0); } 12%, 85% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes draw { 0% { stroke-dashoffset: 320; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -320; } }
@keyframes check-in { 0% { opacity: 0; transform: translateX(-12px); } 10%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateX(8px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(0.97); } }

/* ----------------------------------------------------------------- Адаптивность */

@media (max-width: 1200px) {
    .nav__link--extra { display: none; }
}

@media (max-width: 1080px) {
    .hero__inner { grid-template-columns: 1fr; text-align: left; }
    .hero__stage { max-width: 440px; margin: 0 auto; }
    .catalog { grid-template-columns: 1fr; }
    .filters { position: static; display: none; }
    .filters.is-open { display: block; }
    .filters-toggle { display: inline-flex; }
    .scenes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .scene-card:last-child:nth-child(odd) { grid-column: 2 / span 2; }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento__item--wide { grid-column: span 2; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .steps::before, .steps::after { display: none; }
    .calc { grid-template-columns: 1fr; }
    .contacts__inner { grid-template-columns: 1fr; }
    .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    :root { --header-h: 66px; }
    .nav {
        position: fixed; inset: var(--header-h) 0 0; z-index: 59;
        flex-direction: column; align-items: stretch; gap: 0; margin: 0;
        padding: 16px 24px 32px; overflow-y: auto;
        background: #070d17;
        transform: translateY(-12px); opacity: 0; visibility: hidden;
        transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
    }
    .nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .nav__link, .nav__link--extra { display: block; padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 18px; color: #fff; }
    .nav__link::after { display: none; }
    .nav__mobile { display: grid; gap: 14px; margin-top: 24px; }
    .nav__phone { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 18px; color: #fff; }
    .burger { display: block; }
    .header__cta { display: none; }
    .header__phone small { display: none; }
    .header::before { opacity: 1; }
    .fab { display: grid; }
}

@media (max-width: 720px) {
    .container { padding: 0 18px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .hero__stage { max-width: 340px; }
    .toast-card { font-size: 12px; padding: 9px 12px 9px 9px; }
    .toast-card__icon { width: 28px; height: 28px; }
    .hero__inner { padding-top: 36px; }
    .toast-card { max-width: 78%; white-space: normal; }
    .toast-card--1, .toast-card--3 { left: 0; }
    .toast-card--2, .toast-card--4 { right: 0; }
    .scenes {
        display: flex; gap: 14px; margin: 0 -18px; padding: 0 18px 6px;
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    }
    .scenes::-webkit-scrollbar { display: none; }
    .scene-card { flex: 0 0 82%; scroll-snap-align: center; }
    .services { grid-template-columns: 1fr; }
    .bento, .plans { grid-template-columns: 1fr; }
    .bento__item--wide { grid-column: auto; }
    .steps { grid-template-columns: 1fr; row-gap: 28px; }
    .service__foot { flex-direction: column; align-items: stretch; }
    .sort { width: 100%; }
    .sort select { flex: 1; }
    .footer__top { grid-template-columns: 1fr; }
    .contacts__cover { min-height: 0; flex-direction: column; align-items: stretch; }
    .contacts__media { position: relative; inset: auto; height: 340px; }
    .contacts__media img { object-position: 78% 18%; }
    .contacts__media::after { background: linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 55%, var(--bg) 100%); }
    .contacts__headline { margin-top: -70px; padding-top: 0; padding-bottom: 8px; }
}

@media (max-width: 480px) {
    .header__phone { display: none; }
    .brand__name { font-size: 15px; }
    .stat dt { font-size: 22px; }
    .hero__stats { gap: 14px 26px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .rotator__word { opacity: 0; }
    .rotator__word:first-child { opacity: 1; }
    .toast-card--1, .toast-card--2 { opacity: 1; }
    .reveal-ready .reveal { opacity: 1; transform: none; }
    .marquee__track { animation: none; }
}

@media print {
    .header, .footer, .fab, .modal, .hero__canvas, .marquee { display: none !important; }
    body { background: #fff; color: #000; }
}

/* Анимации блоков вне экрана ставятся на паузу — экономия батареи на телефонах */
.is-paused, .is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }
