/* =====================================================================
   DSWA — Цифровые решения для автоматизации рабочих процессов
   Тёмная тема · glassmorphism · лаймовые акценты
   ===================================================================== */

/* ------------------------------ Переменные ------------------------------ */
:root {
    --bg: #0e141b;
    --bg-2: #111926;
    --panel: rgba(255, 255, 255, 0.045);
    --panel-strong: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text: #eaf1f8;
    --muted: #9fb0c3;
    --muted-2: #6d7f93;

    --lime: #c8f542;
    --lime-2: #9fd82e;
    --lime-soft: rgba(200, 245, 66, 0.13);
    --amber: #ffb454;

    --radius: 20px;
    --container: 1180px;

    --font-head: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;

    --shadow: 0 24px 60px rgba(3, 8, 14, 0.45);
    --glow-lime: 0 8px 30px rgba(200, 245, 66, 0.22);
}

/* ------------------------------ Сброс и база ------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(1100px 700px at 85% -10%, rgba(200, 245, 66, 0.055), transparent 60%),
        radial-gradient(900px 650px at -10% 30%, rgba(56, 189, 248, 0.05), transparent 60%),
        var(--bg);
    overflow-x: hidden;
}

body.nav-locked { overflow: hidden; }

[id] { scroll-margin-top: 96px; }

::selection { background: rgba(200, 245, 66, 0.85); color: #0b120a; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(200, 245, 66, 0.45); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0; }

.container {
    width: min(var(--container), 100% - 48px);
    margin-inline: auto;
}

.icon { width: 22px; height: 22px; flex: none; }

/* Полупрозрачные «нависающие» панели */
.glass {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: var(--shadow);
}

/* ------------------------------ Декоративный фон ------------------------------ */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(95px);
    opacity: 0.55;
    translate: var(--px, 0) var(--py, 0);
    transition: translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform, translate;
}
.bg__orb--1 {
    width: 540px; height: 540px;
    top: -170px; right: -130px;
    background: rgba(200, 245, 66, 0.15);
    animation: orb-float 26s ease-in-out infinite;
}
.bg__orb--2 {
    width: 470px; height: 470px;
    top: 32%; left: -190px;
    background: rgba(34, 211, 238, 0.11);
    animation: orb-float 30s ease-in-out -9s infinite;
}
.bg__orb--3 {
    width: 430px; height: 430px;
    bottom: -180px; right: 8%;
    background: rgba(129, 140, 248, 0.11);
    animation: orb-float 24s ease-in-out -17s infinite;
}

@keyframes orb-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33%      { transform: translate3d(34px, -26px, 0) scale(1.06); }
    66%      { transform: translate3d(-26px, 22px, 0) scale(0.96); }
}

.bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(ellipse 95% 62% at 50% 0%, #000 25%, transparent 78%);
    mask-image: radial-gradient(ellipse 95% 62% at 50% 0%, #000 25%, transparent 78%);
}

/* ------------------------------ Кнопки ------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    padding: 15px 26px;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.25s ease; }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary {
    background: linear-gradient(135deg, var(--lime), var(--lime-2));
    color: #0c130a;
    box-shadow: var(--glow-lime);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(200, 245, 66, 0.32);
}

.btn--ghost {
    background: var(--panel);
    border-color: var(--border-strong);
    color: var(--text);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(200, 245, 66, 0.55);
    color: var(--lime);
}

.btn--sm { padding: 11px 20px; font-size: 14px; border-radius: 12px; }

/* ------------------------------ Шапка ------------------------------ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 70;
    padding: 16px 0;
    transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}
.header.is-scrolled {
    padding: 10px 0;
    background: rgba(14, 20, 27, 0.72);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom-color: var(--border);
}

.header__in { display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark {
    width: 36px; height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--lime), var(--lime-2));
    color: #0c130a;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 19px;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 18px rgba(200, 245, 66, 0.35);
}
.logo__text {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 21px;
    letter-spacing: 0.02em;
}
.logo__dot { color: var(--lime); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover { color: var(--text); background: var(--panel-strong); }

.header__cta { margin-left: 4px; }

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 46px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
}
.burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------ Hero ------------------------------ */
.hero { padding: 178px 0 64px; position: relative; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
}
.badge__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 12px var(--lime);
    animation: pulse 2.2s ease-in-out infinite;
}

.hero__title {
    margin-top: 26px;
    font-size: clamp(34px, 5.3vw, 60px);
    max-width: 17ch;
}
.grad {
    background: linear-gradient(92deg, var(--lime) 10%, #e9ffa0 60%, var(--lime-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    margin-top: 22px;
    max-width: 640px;
    color: var(--muted);
    font-size: clamp(16px, 1.6vw, 18.5px);
}

.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.stats {
    margin-top: 58px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat {
    padding: 22px 24px;
    border-radius: 16px;
    display: grid;
    gap: 4px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(200, 245, 66, 0.35); }
.stat b {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(24px, 2.6vw, 33px);
    letter-spacing: -0.01em;
}
.stat span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* ------------------------------ Бегущая строка ------------------------------ */
.ticker {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.022);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    padding: 15px 0;
}
.ticker__track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 34s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-right: 44px;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}
.ticker__item b { color: var(--text); font-weight: 500; }
.ticker__item i {
    width: 7px; height: 7px;
    background: var(--lime);
    border-radius: 2px;
    transform: rotate(45deg);
    opacity: 0.65;
}

@keyframes ticker-scroll { to { transform: translateX(-50%); } }
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(200, 245, 66, 0.45); }
    50%      { opacity: 0.65; box-shadow: 0 0 0 6px rgba(200, 245, 66, 0); }
}

/* ------------------------------ Секции ------------------------------ */
.section { padding-top: 110px; }
.section--last { padding-bottom: 110px; }

.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--left { margin-bottom: 30px; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--lime);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.kicker::before { content: ''; width: 26px; height: 2px; background: var(--lime); border-radius: 2px; }
.kicker--center::after { content: ''; width: 26px; height: 2px; background: var(--lime); border-radius: 2px; }

h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: 16px; }
.section__lead { margin-top: 18px; color: var(--muted); font-size: 16.5px; }

/* ------------------------------ О проекте ------------------------------ */
.about {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 56px;
    align-items: center;
}
.about__text p { color: var(--muted); margin-top: 18px; font-size: 16px; }
.about__text p b { color: var(--text); }
.about__text .mono { color: var(--lime); font-size: 0.9em; }

.about__diagram { padding: 30px 28px; display: grid; gap: 22px; }
.hub__core {
    display: grid;
    gap: 3px;
    justify-items: center;
    padding: 20px 16px;
    border-radius: 16px;
    background:
        radial-gradient(220px 90px at 50% 0%, rgba(200, 245, 66, 0.12), transparent 75%),
        rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(200, 245, 66, 0.3);
}
.hub__brand { font-family: var(--font-head); font-weight: 800; font-size: 21px; color: var(--lime); }
.hub__note { color: var(--muted); font-size: 13px; }

.hub__list { display: grid; gap: 9px; }
.hub__chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 13.5px;
    transition: border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.hub__chip:hover {
    border-color: rgba(200, 245, 66, 0.45);
    color: var(--lime);
    transform: translateX(5px);
}
.hub__chip-icon { color: var(--lime); display: grid; place-items: center; }
.hub__chip-icon .icon { width: 18px; height: 18px; }

/* ------------------------------ Каталог: карточки ------------------------------ */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 26px 24px;
    overflow: hidden;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 245, 66, 0.09), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.card:hover {
    transform: translateY(-7px);
    border-color: rgba(200, 245, 66, 0.38);
    box-shadow: var(--shadow), 0 0 0 1px rgba(200, 245, 66, 0.12);
}
.card:hover::after { opacity: 1; }

.iconbox {
    width: 52px; height: 52px;
    border-radius: 15px;
    background: var(--lime-soft);
    border: 1px solid rgba(200, 245, 66, 0.28);
    color: var(--lime);
    display: grid;
    place-items: center;
    margin-bottom: 8px;
}
.iconbox .icon { width: 25px; height: 25px; }

.card__title { font-size: 20.5px; }
.card__tagline {
    color: var(--lime);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-head);
    letter-spacing: 0.02em;
}
.card__text { color: var(--muted); font-size: 14.8px; flex: 1; }
.card__link {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted-2);
    font-size: 13.5px;
    transition: color 0.22s ease;
}
.card__link .icon { width: 17px; height: 17px; color: var(--lime); opacity: 0; transform: translateX(-6px); transition: 0.22s ease; }
.card:hover .card__link { color: var(--lime); }
.card:hover .card__link .icon { opacity: 1; transform: none; }

/* ------------------------------ Детальные блоки решений ------------------------------ */
.section--details { padding-top: 60px; }

.sd {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
    padding: 72px 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.sd:first-of-type { border-top: none; }
.sd--rev .sd__info { order: 2; }
.sd--rev .sd__visual { order: 1; }

.sd__meta { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.sd__num {
    font-size: 42px;
    font-weight: 800;
    font-family: var(--font-head);
    background: linear-gradient(180deg, var(--lime), rgba(200, 245, 66, 0.05));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--lime-soft);
    border: 1px solid rgba(200, 245, 66, 0.32);
    color: var(--lime);
    font-size: 12.5px;
    font-weight: 600;
    font-family: var(--font-head);
}
.status__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 10px var(--lime);
    animation: pulse 2.2s ease-in-out infinite;
}

.sd__title { font-size: clamp(24px, 2.6vw, 31px); }
.sd__tagline {
    margin-top: 8px;
    color: var(--lime);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
}
.sd__about { margin-top: 16px; color: var(--muted); font-size: 15.8px; }
.sd__about--next { margin-top: 12px; }
.sd__steps {
    margin-top: 24px;
    padding: 20px 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.sd__steps-title {
    display: block;
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--lime);
}
.sd__steps ol { margin-top: 15px; display: grid; gap: 12px; list-style: none; counter-reset: dswa-step; }
.sd__steps li {
    position: relative;
    padding-left: 37px;
    color: var(--muted);
    font-size: 14.6px;
    line-height: 1.55;
    counter-increment: dswa-step;
}
.sd__steps li::before {
    content: counter(dswa-step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 2px;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--lime);
    background: var(--lime-soft);
    border: 1px solid rgba(200, 245, 66, 0.35);
    border-radius: 7px;
}

.features { margin-top: 24px; display: grid; gap: 12px; }
.features li { display: flex; align-items: flex-start; gap: 13px; font-size: 15px; }
.features .icon {
    width: 24px; height: 24px;
    padding: 5px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--lime-soft);
    border: 1px solid rgba(200, 245, 66, 0.3);
    color: var(--lime);
}

.chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: rgba(200, 245, 66, 0.4); color: var(--lime); }

.sd__actions { margin-top: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.sd__domain {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted-2);
    font-size: 13.5px;
}
.sd__domain .icon { width: 16px; height: 16px; color: var(--lime); opacity: 0.7; }

/* ------------------------------ Макеты интерфейсов (mock) ------------------------------ */
.mock { overflow: hidden; border-radius: 22px; }
.mock__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.mock__dot:nth-child(2) { background: rgba(255, 255, 255, 0.09); }
.mock__dot:nth-child(3) { background: rgba(200, 245, 66, 0.4); }
.mock__title { margin-left: 10px; color: var(--muted-2); font-size: 12.5px; }

.mock__body { padding: 24px; display: grid; gap: 11px; }

.mock__field {
    display: flex;
    align-items: center;
    padding: 15px 17px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-strong);
    font-size: 14.5px;
    color: var(--text);
}
.mock__query { white-space: nowrap; overflow: hidden; }
.caret {
    width: 2px; height: 18px;
    margin-left: 3px;
    background: var(--lime);
    animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

.mock__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 15px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease;
}
.mock__row:hover { border-color: var(--border-strong); }
.mock__row b { display: block; font-size: 14.2px; font-weight: 600; line-height: 1.35; }
.mock__row small { display: block; color: var(--muted-2); font-size: 12.5px; }
.mock__row--ok {
    border-color: rgba(200, 245, 66, 0.38);
    background: rgba(200, 245, 66, 0.055);
}

.checkmark {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lime), var(--lime-2));
    color: #0c130a;
    display: grid;
    place-items: center;
    flex: none;
}
.checkmark .icon { width: 16px; height: 16px; stroke-width: 2.4; }

.pill {
    padding: 5px 11px;
    border-radius: 9px;
    background: var(--lime-soft);
    border: 1px solid rgba(200, 245, 66, 0.28);
    color: var(--lime);
    font-weight: 700;
    font-size: 13px;
    font-family: var(--font-head);
    white-space: nowrap;
}
.pill--low {
    background: rgba(255, 180, 84, 0.12);
    border-color: rgba(255, 180, 84, 0.3);
    color: var(--amber);
}
.pill--ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-strong);
    color: var(--text);
}

.mock__hint { color: var(--muted-2); font-size: 12.5px; }
.mock__status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
}

.mock__table {
    border: 1px solid var(--border);
    border-radius: 13px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}
.mock__tr {
    display: grid;
    grid-template-columns: 78px 1fr 72px;
    gap: 12px;
    padding: 11px 15px;
    font-size: 13px;
    color: var(--text);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.mock__tr:first-child { border-top: none; }
.mock__tr--head {
    color: var(--muted-2);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.03);
}
.mock__tr span:nth-child(3) { text-align: right; color: var(--lime); }

.scan {
    position: relative;
    height: 148px;
    border-radius: 15px;
    border: 1px solid rgba(200, 245, 66, 0.28);
    background: rgba(200, 245, 66, 0.045);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    overflow: hidden;
}
.scan__icon { width: 52px; height: 52px; color: var(--lime); }
.scan__code { color: var(--muted); font-size: 13.5px; letter-spacing: 0.12em; }
.scan__line {
    position: absolute;
    left: 7%; right: 7%;
    top: 14%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--lime), transparent);
    filter: drop-shadow(0 0 7px rgba(200, 245, 66, 0.8));
    animation: scan-y 2.8s ease-in-out infinite;
}
@keyframes scan-y { 0%, 100% { top: 13%; } 50% { top: 83%; } }

.step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}
.step b { display: block; font-size: 14.2px; font-weight: 600; line-height: 1.35; }
.step small { display: block; color: var(--muted-2); font-size: 12.5px; }
.step__box {
    width: 26px; height: 26px;
    border-radius: 8px;
    border: 1.5px solid var(--border-strong);
    flex: none;
    display: grid;
    place-items: center;
    color: transparent;
}
.step--done .step__box {
    background: linear-gradient(135deg, var(--lime), var(--lime-2));
    border-color: transparent;
    color: #0c130a;
}
.step--done .step__box .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.step--done b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(200, 245, 66, 0.5); }
.step--active {
    border-color: rgba(200, 245, 66, 0.42);
    background: rgba(200, 245, 66, 0.055);
    box-shadow: 0 0 24px rgba(200, 245, 66, 0.08);
}
.step--active .step__box { border-color: var(--lime); animation: pulse 2s ease-in-out infinite; }

.bar {
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}
.bar__in {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--lime-2), var(--lime));
    box-shadow: 0 0 14px rgba(200, 245, 66, 0.5);
}

/* ------------------------------ Преимущества ------------------------------ */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.adv {
    position: relative;
    padding: 28px 26px;
    transition: transform 0.26s ease, border-color 0.26s ease;
}
.adv:hover { transform: translateY(-6px); border-color: rgba(200, 245, 66, 0.35); }
.adv__num {
    position: absolute;
    top: 20px; right: 24px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 34px;
    color: rgba(255, 255, 255, 0.07);
    line-height: 1;
}
.adv h3 { font-size: 18.5px; margin-top: 6px; }
.adv p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* ------------------------------ Процесс ------------------------------ */
.proc {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.pstep { position: relative; padding: 26px 24px; transition: transform 0.26s ease, border-color 0.26s ease; }
.pstep:hover { transform: translateY(-6px); border-color: rgba(200, 245, 66, 0.35); }
.pstep__num {
    width: 42px; height: 42px;
    border-radius: 13px;
    background: var(--lime-soft);
    border: 1px solid rgba(200, 245, 66, 0.32);
    color: var(--lime);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 17px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}
.pstep h3 { font-size: 18px; }
.pstep p { margin-top: 9px; color: var(--muted); font-size: 14.3px; }
.pstep:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 30px;
    right: -19px;
    color: rgba(200, 245, 66, 0.55);
    font-size: 18px;
    z-index: 1;
}

/* ------------------------------ CTA ------------------------------ */
.cta {
    position: relative;
    padding: clamp(48px, 7vw, 84px) clamp(24px, 5vw, 64px);
    text-align: center;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    inset: -45% -20%;
    background: radial-gradient(closest-side, rgba(200, 245, 66, 0.13), transparent 72%);
    pointer-events: none;
}
.cta h2 { font-size: clamp(28px, 4.2vw, 46px); }
.cta p {
    margin: 20px auto 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 16.5px;
}
.cta__actions {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}
.cta__note {
    display: block;
    margin-top: 26px;
    color: var(--muted-2);
    font-size: 12.5px;
}

/* ------------------------------ Футер ------------------------------ */
.footer {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    background: rgba(10, 15, 21, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 44px;
    padding: 58px 0 42px;
}
.footer__about { margin-top: 18px; color: var(--muted); font-size: 14.5px; max-width: 40ch; }
.footer__about .mono { color: var(--lime); font-size: 0.9em; }
.footer__domain {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border-radius: 11px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 13.5px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.footer__domain:hover { border-color: rgba(200, 245, 66, 0.4); color: var(--lime); }
.footer__domain .icon { width: 16px; height: 16px; color: var(--lime); }

.footer__col h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 18px;
}
.footer__col ul { display: grid; gap: 11px; }
.footer__col a {
    color: var(--muted);
    font-size: 14.5px;
    transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--lime); }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    color: var(--muted-2);
    font-size: 13px;
}
.footer__tech { opacity: 0.75; }

/* ------------------------------ Появление при скролле ------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0s);
}
.reveal.is-vis { opacity: 1; transform: none; }

/* ------------------------------ Адаптив ------------------------------ */
@media (max-width: 1020px) {
    .about { grid-template-columns: 1fr; gap: 40px; }
    .sd { grid-template-columns: 1fr; gap: 36px; padding: 58px 0; }
    .sd--rev .sd__info { order: 0; }
    .sd--rev .sd__visual { order: 0; }
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .proc { grid-template-columns: repeat(2, 1fr); }
    .pstep:not(:last-child)::after { content: none; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 36px; }
}

@media (max-width: 900px) {
    .nav {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        z-index: 60;
        width: min(320px, 84vw);
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin: 0;
        padding: 104px 26px 30px;
        background: rgba(13, 19, 27, 0.97);
        backdrop-filter: blur(26px) saturate(150%);
        -webkit-backdrop-filter: blur(26px) saturate(150%);
        border-left: 1px solid var(--border);
        box-shadow: -30px 0 70px rgba(3, 8, 14, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.32s ease, visibility 0s linear 0.32s;
        overflow-y: auto;
    }
    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.32s ease;
    }
    .nav a { font-size: 19px; padding: 13px 14px; }
    .header__cta { display: none; }
    /* Бургер должен оставаться над открытой панелью меню */
    .burger { display: flex; margin-left: auto; position: relative; z-index: 80; }
    .nav { margin-left: 0; }
    /* При открытом меню убираем blur у шапки: вложенный backdrop-filter
       ломает композитинг панели в части браузеров */
    body.nav-locked .header {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom-color: transparent;
    }
}

@media (max-width: 600px) {
    .container { width: calc(100% - 40px); }
    .hero { padding: 150px 0 48px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .section { padding-top: 84px; }
    .section--last { padding-bottom: 84px; }
    .stats { gap: 12px; }
    .stat { padding: 18px; }
    .adv-grid, .proc { grid-template-columns: 1fr; }
    .sd__actions .btn { width: 100%; }
    .mock__body { padding: 18px; }
    .footer__bottom { justify-content: center; text-align: center; }
}

/* ------------------------------ Отключение анимаций ------------------------------ */
@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; }
}
