/* etoir.ru landing styles — extracted from inline <style> on 2026-05-19 */
/* ===== Мост на дизайн-систему v0.2 (2026-07-16) =====
   Этот файл написан до tokens.css и обращается к своим именам (--primary,
   --radius, --card-shadow). Вместо переименования 3000 строк старые имена
   переопределены как ПСЕВДОНИМЫ ролей из tokens.css — так перекрашивается
   разом весь unauth (лендинг, блог, оферта, политика), а не только «/».

   Правило: сырых hex здесь больше нет. Новое пишем ролями из tokens.css,
   старые имена доживают до вычистки. См. docs/DESIGN_SYSTEM.md §8.7.

   ВАЖНО: --bg, --text, --border, --font-mono здесь НЕ объявляются. Их даёт
   tokens.css, и они обязаны переключаться на [data-zone="inverse"]. Объявить
   их тут — значит убить инверсную полосу.                                    */
        :root {
            --bg-alt:            var(--bg-sunken);
            --primary:           var(--p-500);
            --primary-dark:      var(--p-700);
            --primary-light:     var(--p-50);
            --primary-glow:      transparent;   /* свечения нет: §5 «иерархия линией» */
            --accent:            var(--a-500);
            --accent-dark:       var(--a-600);   /* яркий оранж: hover не уводим в тёмный, иначе тёмный текст CTA теряет AA */
            --accent-light:      var(--a-50);
            --text-secondary:    var(--text-muted);
            --text-light:        var(--text-faint);
            --card-bg:           var(--surface);
            /* §8.4 — карточки без теней. Граница вместо размытия. */
            --card-shadow:       var(--sh-hair);
            --card-shadow-hover: 0 0 0 1px var(--border-strong);
            --success:           var(--ok);
            --danger:            var(--stop);
            --radius:            var(--r-md);
            --radius-sm:         var(--r-sm);
            --radius-lg:         var(--r-lg);
            --transition:        var(--d-base) var(--e-out);
            --font:              var(--font-sans);
        }

        /* ===== Reset & Base ===== */
        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            scroll-padding-top: 80px;
        }

        body {
            font-family: var(--font);
            /* 18/1.7 давало «блоговую» рыхлость — §3 */
            font-size: var(--t-body);
            line-height: var(--lh-body);
            color: var(--text);
            background: var(--bg);
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
        }

        img { max-width: 100%; height: auto; display: block; }
        a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
        a:hover { color: var(--primary-dark); }

        .container {
            max-width: var(--grid-max);
            margin: 0 auto;
            padding: 0 var(--gutter);
        }

        /* ===== Utility ===== */
        /* Была пилюля (radius 100px) на заливке — стартап-тик, §1.1.
           Стало: метка на поле листа. Засечка 2px слева, прямой угол, без фона. */
        .section-label {
            display: inline-flex;
            align-items: center;
            gap: var(--s-2);
            font-family: var(--font-mono);
            font-size: var(--t-label);
            font-weight: var(--fw-medium);
            color: var(--text-muted);
            background: none;
            padding: 0 0 0 var(--s-3);
            border-left: 2px solid var(--a-500);
            border-radius: 0;
            letter-spacing: var(--tr-label);
            text-transform: uppercase;
            margin-bottom: var(--s-4);
        }

        /* §3.1 — массу даёт вес и трекинг, а не кегль. 800/1.2 читался рыхло. */
        .section-title {
            font-size: var(--t-h2);
            font-weight: var(--fw-bold);
            line-height: var(--lh-tight);
            letter-spacing: var(--tr-head);
            color: var(--text);
            margin-bottom: var(--s-4);
            text-wrap: balance;
        }

        .section-subtitle {
            font-size: var(--t-lead);
            color: var(--text-muted);
            max-width: var(--grid-narrow);   /* §4.2 — знаки, а не пиксели */
            line-height: var(--lh-body);
        }

        .section-header {
            text-align: center;
            margin-bottom: var(--stack-lg);
        }

        /* Mono-надлапка секции (§8.9 — mono только для меток). Читается как метка
           раздела на чертеже, а не как заголовок. Цвет приглушённый: охра — событие. */
        .section-kicker {
            display: inline-block;
            font-family: var(--font-mono);
            font-size: var(--t-label);
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-bottom: 14px;
        }

        /* Лист с полем для шапки секции (§4.1). Opt-in: не трогает центрированные
           шапки подстраниц. Номер раздела и mono-нота живут в левом поле --rail,
           как на чертёжном листе; засечка сверху — слева поле уже занято (§1.1). */
        .section-header--rail {
            display: grid;
            grid-template-columns: var(--rail) 1fr;
            gap: var(--gutter);
            text-align: left;
        }

        .section-rail {
            display: flex;
            flex-direction: column;
            gap: var(--s-2);
            padding-top: var(--s-1);
            border-top: 2px solid var(--text);
        }

        /* Всё, кроме поля, — в правую колонку (иначе подзаголовок падает под номер) */
        .section-header--rail > :not(.section-rail) { grid-column: 2; }
        .section-header--rail .section-subtitle { margin: 0; }

        @media (max-width: 1100px) {
            .section-header--rail { grid-template-columns: 1fr; gap: var(--s-4); }
            .section-header--rail > :not(.section-rail) { grid-column: auto; }
            .section-rail { flex-direction: row; align-items: baseline; gap: var(--s-3); }
        }
        .section-postfix {
            text-align: left;
            font-size: 12px;
            margin-top: 20px;
        }

        .section-header .section-subtitle {
            margin: 0 auto;
        }

        /* ===== Animations ===== */
        /* §6.2 — вытирание, а не сдвиг. translateY(32px) за 0.7s — это
           «всплывающая карточка», язык потребительских лендингов. Здесь
           изображение не прилетает, оно вычерчивается: язык плоттера.
           Имя класса .fade-up оставлено — оно проставлено по всем шаблонам,
           переименование не купило бы ничего. Поведение новое. */
        /* ВНИМАНИЕ, грабли: clip-path в состоянии покоя ставить НЕЛЬЗЯ.
           IntersectionObserver меряет геометрию ПОСЛЕ клипа, поэтому
           `clip-path: inset(0 100% 0 0)` даёт ему ratio=0 даже у блока,
           целиком попавшего в экран. Наблюдатель не проставит .visible,
           а без .visible не снимется клип — страница гаснет намертво.
           Поэтому в покое прячемся ТОЛЬКО прозрачностью (не геометрия),
           а вытирание играем анимацией уже на .visible. */
        .fade-up {
            opacity: 1;
        }

        .fade-up.visible {
            opacity: 1;   /* без transition: непрозрачность щёлкает, вытирает клип */
            animation: wipe-in var(--d-slow) var(--e-out) both;
        }

        @keyframes wipe-in {
            from { clip-path: inset(0 100% 0 0); }
            to   { clip-path: inset(0); }
        }

        /* Стаггер 50ms, не длиннее 4 звеньев — §6.2. Было 100ms × 6. */
        .fade-up:nth-child(2).visible { animation-delay: 50ms; }
        .fade-up:nth-child(3).visible { animation-delay: 100ms; }
        .fade-up:nth-child(4).visible { animation-delay: 150ms; }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(3deg); }
        }

        @keyframes pulse-glow {
            0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); }
            50% { box-shadow: 0 0 0 20px transparent; }
        }

        @keyframes spin-slow {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* ===== Buttons ===== */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 16px 32px;
            border-radius: 12px;
            font-family: var(--font);
            font-size: 16px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: all var(--transition);
            white-space: nowrap;
        }

        .btn-primary {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
            transform: translateY(-2px);
            color: #fff;
        }

        .btn-accent {
            background: var(--accent);
            color: var(--n-950);
            box-shadow: 0 4px 16px rgba(253, 117, 0, 0.3);
        }

        .btn-accent:hover {
            background: var(--accent-dark);
            box-shadow: 0 8px 24px rgba(253, 117, 0, 0.4);
            transform: translateY(-2px);
            color: var(--n-950);
        }

        .btn-outline {
            background: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        .btn-outline:hover {
            background: var(--primary);
            color: #fff;
            transform: translateY(-2px);
        }

        .btn-lg {
            padding: 20px 40px;
            font-size: 18px;
            border-radius: 14px;
        }

        .btn svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        /* ===== HEADER ===== */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            /* §5 — blur убран полностью, включая хедер. В v0.1 он числился
               «утилитой», но утилиту, которую видно, видно. Хедер непрозрачный. */
            background: var(--bg);
            border-bottom: 1px solid transparent;
            transition: border-color var(--d-base) var(--e-out),
                        box-shadow var(--d-base) var(--e-out);
        }

        .header.scrolled {
            border-bottom-color: var(--border);
            box-shadow: var(--sh-raise);   /* единственное, что физически «над» полосой */
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 72px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 24px;
            font-weight: 800;
            color: var(--text);
        }

        .logo span {
            color: var(--primary);
        }

        .logo-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            background: var(--accent);
            border-radius: 50%;
            margin-left: 2px;
            animation: pulse-glow 2s infinite;
        }

        .nav {
            display: flex;
            align-items: center;
            gap: 32px;
        }

        .nav a {
            font-size: 15px;
            font-weight: 500;
            color: var(--text-secondary);
            transition: color var(--transition);
            position: relative;
        }

        .nav a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            border-radius: 1px;
            transition: width var(--transition);
        }

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

        .nav a:hover::after {
            width: 100%;
        }

        .nav-item.has-dropdown {
            position: relative;
            display: flex;
            align-items: center;
        }

        .has-dropdown > a {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .nav-caret {
            transition: transform var(--transition);
        }

        .has-dropdown:hover .nav-caret,
        .has-dropdown:focus-within .nav-caret {
            transform: rotate(180deg);
        }

        .nav-dropdown {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(4px);
            min-width: 240px;
            display: flex;
            flex-direction: column;
            gap: 2px;
            padding: 8px;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            box-shadow: 0 12px 32px rgba(0,0,0,0.12);
            opacity: 0;
            visibility: hidden;
            transition: opacity var(--transition), transform var(--transition);
            z-index: 100;
        }

        /* Невидимый мост через 8px-зазор, чтобы курсор не терял :hover */
        .has-dropdown::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            height: 12px;
        }

        .has-dropdown:hover .nav-dropdown,
        .has-dropdown:focus-within .nav-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(8px);
        }

        .nav-dropdown a {
            padding: 8px 12px;
            border-radius: 8px;
            white-space: nowrap;
            transition: background var(--transition), color var(--transition);
        }

        .nav-dropdown a:hover {
            background: var(--surface-2, rgba(0,0,0,0.04));
        }

        /* Подчёркивание из .nav a лишнее внутри выпадашки */
        .nav-dropdown a::after { content: none; }

        .header-cta {
            padding: 10px 24px;
            font-size: 14px;
        }

        .header-email {
            font-size: 14px;
            color: var(--text-secondary);
            text-decoration: none;
            transition: color .2s;
            white-space: nowrap;
        }
        .header-email:hover { color: var(--primary); }

        .cta-email-link {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            font-size: 15px;
            font-weight: 500;
            color: var(--primary);
            text-decoration: none;
            margin-bottom: 20px;
        }
        .cta-email-link:hover { text-decoration: underline; }

        .mobile-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
        }

        .mobile-toggle span {
            display: block;
            width: 24px;
            height: 2px;
            background: var(--text);
            border-radius: 2px;
            transition: all var(--transition);
        }

        /* ===== HERO ===== */
        /* .hero-bg / .hero-blob-1..3 / .hero-grid удалены вместе с разметкой:
           размытые градиентные пятна и сетка с радиальной маской — самый
           узнаваемый тик сгенерированного лендинга (§1.1). Заодно ушли три
           blur(80px) на бесконечной анимации — это была самая дорогая
           отрисовка на первом экране. */
        .hero {
            position: relative;
            padding: calc(var(--section-y) + var(--s-8)) 0 var(--section-y);
            overflow: hidden;
        }

        /* Центрированная колонка убрана: заголовок теперь прижат к полю листа.
           Симметрия по центру — предсказуемая композиция по умолчанию (§4.1). */
        .hero-content {
            position: relative;
            z-index: 1;
        }

        .hero-text {
            width: 100%;
        }

        /* §3.1 — дисплей выходил лёгким, потому что кегль растили, а вес нет.
           Масса набирается весом 900, трекингом -0.035em и интерлиньяжем 0.96:
           строки сцепляются в плиту. Градиентная заливка .highlight снята —
           это украшение, а не иерархия. */
        .hero-text h1 {
            font-size: var(--t-display);
            font-weight: var(--fw-black);
            line-height: var(--lh-display);
            letter-spacing: var(--tr-display);
            margin-bottom: var(--s-5);
            color: var(--text);
            /* ch считается от кегля самого h1 — ограничение едет вместе с clamp() */
            max-width: 17ch;
            text-wrap: balance;
        }

        .hero-lead {
            font-size: var(--t-lead);
            color: var(--text-muted);
            margin-bottom: var(--s-6);
            line-height: var(--lh-body);
            max-width: var(--grid-narrow);
        }

        .hero-actions {
            display: flex;
            gap: var(--s-4);
            flex-wrap: wrap;
        }

        .hero-stats {
            display: flex;
            gap: 48px;
            margin-top: 48px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .hero-stat-row {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .hero-stat-value {
            font-family: var(--font-mono);
            font-size: 48px;
            font-weight: 700;
            color: var(--primary);
            line-height: 1;
        }

        .stat-arrow {
            color: #22c55e;
            flex-shrink: 0;
        }

        .hero-stat-label {
            font-size: 15px;
            color: var(--text-secondary);
            margin-top: 8px;
        }

        /* Hero Visual */
        .hero-visual {
            width: 100%;
            max-width: 1100px;
            margin: 60px auto 0;
        }

        .hero-mockup {
            position: relative;
            width: 100%;
        }

        .mockup-window {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            box-shadow: var(--card-shadow-hover);
            overflow: hidden;
            border: 1px solid var(--border);
        }

        .mockup-titlebar {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 14px 18px;
            background: var(--bg-alt);
            border-bottom: 1px solid var(--border);
        }

        .mockup-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .mockup-dot:nth-child(1) { background: #EF4444; }
        .mockup-dot:nth-child(2) { background: #F59E0B; }
        .mockup-dot:nth-child(3) { background: #10B981; }

        .mockup-url {
            flex: 1;
            background: var(--card-bg);
            border-radius: 8px;
            padding: 6px 14px;
            font-size: 13px;
            color: var(--text-secondary);
            margin-left: 8px;
            font-family: var(--font-mono);
        }

        .mockup-body {
            padding: 24px;
            min-height: 280px;
        }

        .mockup-dashboard {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 20px;
        }

        .mockup-kpi {
            background: var(--bg);
            border-radius: var(--radius-sm);
            padding: 16px;
            text-align: center;
            border: 1px solid var(--border);
        }

        .mockup-kpi-value {
            font-family: var(--font-mono);
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .mockup-kpi-value.green { color: var(--success); }
        .mockup-kpi-value.blue { color: var(--primary); }
        .mockup-kpi-value.amber { color: var(--accent); }

        .mockup-kpi-label {
            font-size: 11px;
            color: var(--text-secondary);
        }

        .mockup-chart {
            background: var(--bg);
            border-radius: var(--radius-sm);
            padding: 16px;
            border: 1px solid var(--border);
        }

        .mockup-chart-title {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 12px;
        }

        .mockup-bars {
            display: flex;
            align-items: flex-end;
            gap: 8px;
            height: 80px;
        }

        .mockup-bar {
            flex: 1;
            background: linear-gradient(to top, var(--primary), var(--primary-light));
            border-radius: 4px 4px 0 0;
            transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .hero-float-card {
            position: absolute;
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 14px 20px;
            box-shadow: var(--card-shadow-hover);
            border: 1px solid var(--border);
            animation: float 6s ease-in-out infinite;
            z-index: 2;
        }

        .hero-float-card.card-1 {
            top: -10px;
            right: -30px;
            animation-delay: 0s;
        }

        .hero-float-card.card-2 {
            bottom: 40px;
            left: -40px;
            animation-delay: -3s;
        }

        .float-card-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .float-card-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .float-card-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--success); }
        .float-card-icon.red { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

        .float-card-text {
            font-size: 13px;
            font-weight: 600;
        }

        .float-card-sub {
            font-size: 11px;
            color: var(--text-secondary);
        }

        /* ===== PAIN POINTS ===== */
        .pain-points {
            padding: var(--section-y) 0;
            /* sunken-фон уносим: он уже на соседнем proof-strip, два подряд сливаются.
               Sunken — редкое «событие» (§2), не полоса через секцию. */
            background: var(--bg);
            position: relative;
        }

        .pain-points::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--border), transparent);
        }

        .pain-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
        }

        .pain-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 32px 24px;
            border: 1px solid var(--border);
            transition: all var(--transition);
            position: relative;
            overflow: hidden;
        }

        .pain-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--danger), var(--accent));
            opacity: 0;
            transition: opacity var(--transition);
        }

        .pain-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--card-shadow-hover);
        }

        .pain-card:hover::before {
            opacity: 1;
        }

        .pain-icon {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            background: rgba(239, 68, 68, 0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            color: var(--danger);
        }

        .pain-icon svg {
            width: 28px;
            height: 28px;
        }

        .pain-card h3 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 10px;
            line-height: 1.3;
        }

        .pain-card p {
            font-size: 15px;
            color: var(--text-secondary);
            line-height: 1.6;
        }


        /* ===== CTA INLINE ===== */
        .cta-inline {
            padding: var(--section-y) 0;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            position: relative;
            overflow: hidden;
        }

        .cta-inline::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image:
                radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
        }

        .cta-inline-content {
            position: relative;
            z-index: 1;
            text-align: center;
        }

        .cta-inline h2 {
            font-size: clamp(28px, 4vw, 40px);
            font-weight: 800;
            color: #fff;
            margin-bottom: 16px;
        }

        .cta-inline p {
            font-size: 18px;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 32px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-inline .btn-accent {
            font-size: 18px;
            padding: 18px 40px;
        }


        /* ===== HOW IT WORKS ===== */
        .how-it-works {
            padding: var(--section-y) 0;
        }

        .steps-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 32px;
            position: relative;
        }

        .steps-grid::before {
            content: '';
            position: absolute;
            top: 48px;
            left: calc(16.66% + 48px);
            right: calc(16.66% + 48px);
            height: 2px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            opacity: 0.3;
        }

        .step-card {
            text-align: center;
            position: relative;
        }

        .step-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 96px;
            height: 96px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-light), var(--bg));
            font-family: var(--font-mono);
            font-size: 36px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 24px;
            position: relative;
            border: 2px solid var(--primary);
        }

        .step-card h3 {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 12px;
        }

        .step-card p {
            font-size: 15px;
            color: var(--text-secondary);
            line-height: 1.6;
            max-width: 280px;
            margin: 0 auto;
        }

        /* ===== ADVANTAGES ===== */
        .advantages {
            padding: var(--section-y) 0;
            background: var(--bg-alt);
        }

        .advantages-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0;
        }

        .advantage-item {
            padding: 32px 28px 32px 0;
            border-top: 1px solid var(--border);
        }

        .advantage-item:nth-child(3n+2),
        .advantage-item:nth-child(3n+3) {
            padding-left: 28px;
            border-left: 1px solid var(--border);
        }

        .advantage-item h3 {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 8px;
            line-height: 1.3;
        }

        .advantage-item p {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* Плитка-маршрутизатор (§7.2): та же плитка, но ведёт вглубь.
           Наведение — засечка охрой сверху и фон, без тени (§8.3, §8.4). */
        a.advantage-item {
            display: block;
            position: relative;
            color: inherit;
            text-decoration: none;
            transition: background var(--d-fast) var(--e-out);
        }

        a.advantage-item::before {
            content: "";
            position: absolute;
            top: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--a-500);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform var(--d-fast) var(--e-out);
        }

        a.advantage-item:hover {
            background: var(--bg-sunken);
        }

        a.advantage-item:hover::before {
            transform: scaleX(1);
        }

        a.advantage-item:focus-visible {
            outline: none;
            box-shadow: var(--sh-focus);
        }

        /* ===== PRICING (/pricing/) ===== */
        /* Цена — данные, а не проза: mono + tabular-nums (§8.11) */
        .plan-price {
            font-family: var(--font-mono);
            font-variant-numeric: tabular-nums;
            font-size: 28px;
            font-weight: 600;
            color: var(--text);
            margin: 12px 0 8px;
        }

        .plan-period {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
        }

        .plan-cta {
            margin-top: 16px;
        }

        /* Скидка на тариф: прайс-лист зачёркнут, рядом — размер скидки */
        .plan-price-old {
            font-size: 18px;
            font-weight: 500;
            color: var(--text-secondary);
            text-decoration: line-through;
            margin-right: 8px;
        }

        .plan-discount {
            font-family: var(--font-sans);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: .02em;
            color: var(--accent);
            border: 1px solid currentColor;
            border-radius: 4px;
            padding: 2px 6px;
            margin-left: 8px;
            vertical-align: middle;
        }

        .plan-saving {
            font-size: 13px;
            font-weight: 500;
            color: var(--accent);
            margin-top: -4px;
        }

        /* Переключатель «Помесячно / На год».
           ponytail: CSS-only через :has(), без JS — в карточке отрендерены обе
           цены, неактивную прячем. На /pricing/ кнопок оплаты нет, только
           «Начать бесплатно», поэтому period никуда не отправляется. */
        .period-switch {
            display: flex;
            justify-content: center;
            gap: 0;
            margin-bottom: 32px;
        }

        .period-switch input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .period-switch label {
            cursor: pointer;
            padding: 8px 20px;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-secondary);
            border: 1px solid var(--border);
        }

        .period-switch label:first-of-type { border-radius: 6px 0 0 6px; }
        .period-switch label:last-of-type { border-radius: 0 6px 6px 0; border-left: 0; }

        .period-switch input:checked + label {
            color: var(--text);
            background: var(--bg-alt);
        }

        .period-switch input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

        /* Тариф без годовой опции продолжает показывать месячную цену и на
           вкладке «На год» — прячем месячную только там, где есть годовая. */
        #plans:has(#pricing-monthly:checked) [data-period="yearly"],
        #plans:has(#pricing-yearly:checked) .advantage-item:has([data-period="yearly"]) [data-period="monthly"] { display: none; }

        /* Ссылка «дальше по теме» под секцией-тизером */
        .section-more {
            margin-top: 28px;
            font-size: 15px;
            font-weight: 600;
        }

        .section-more a {
            color: var(--primary);
            text-decoration: none;
            border-bottom: 2px solid var(--a-500);
            padding-bottom: 2px;
        }

        .plans-common {
            margin-top: 24px;
            font-size: 14px;
            line-height: 1.7;
            color: var(--text-secondary);
        }

        .plans-common-label {
            font-family: var(--font-mono);
            font-size: var(--t-label);
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--text);
            margin-right: 8px;
        }

        /* ===== CTA FORM ===== */
        .cta-form-section {
            padding: var(--section-y) 0;
            position: relative;
            overflow: hidden;
        }

        .cta-form-section::before {
            content: '';
            position: absolute;
            width: 500px;
            height: 500px;
            border-radius: 50%;
            background: var(--primary-glow);
            filter: blur(100px);
            top: -200px;
            right: -200px;
        }

        .cta-form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 64px;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .cta-form-text h2 {
            font-size: clamp(32px, 4vw, 44px);
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 20px;
        }

        .cta-form-text p {
            font-size: 18px;
            color: var(--text-secondary);
            margin-bottom: 32px;
            line-height: 1.7;
        }

        .cta-benefits-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .cta-benefits-list li {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 16px;
            font-weight: 500;
        }

        .cta-benefits-list li svg {
            width: 20px;
            height: 20px;
            color: var(--success);
            flex-shrink: 0;
        }

        .form-card {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            padding: 40px;
            box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
            border: 1px solid var(--border);
        }

        .form-card h3 {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .form-card .form-subtitle {
            font-size: 15px;
            color: var(--text-secondary);
            margin-bottom: 28px;
        }

        .form-group {
            margin-bottom: 18px;
        }

        .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--text);
        }

        .form-group label .optional {
            font-weight: 400;
            color: var(--text-light);
        }

        .form-input {
            width: 100%;
            padding: 14px 18px;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            font-family: var(--font);
            font-size: 15px;
            color: var(--text);
            background: var(--bg);
            transition: all var(--transition);
            outline: none;
        }

        .form-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-glow);
            background: var(--card-bg);
        }

        .form-input::placeholder {
            color: var(--text-light);
        }

        textarea.form-input {
            resize: vertical;
            min-height: 80px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        .form-submit {
            width: 100%;
            margin-top: 8px;
        }

        .form-consent {
            margin-top: 16px;
        }

        .consent-label {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            cursor: pointer;
        }

        .consent-checkbox {
            flex-shrink: 0;
            width: 18px;
            height: 18px;
            margin-top: 2px;
            accent-color: var(--primary);
            cursor: pointer;
        }

        .consent-text {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .consent-text a {
            color: var(--primary);
            text-decoration: underline;
        }

        .consent-text a:hover {
            color: var(--primary-dark);
        }

        .form-consent.error .consent-text {
            color: var(--danger);
        }

        .form-consent.error .consent-checkbox {
            outline: 2px solid var(--danger);
            border-radius: 2px;
        }

        .form-success {
            display: none;
            text-align: center;
            padding: 40px 20px;
        }

        .form-success.visible {
            display: block;
        }

        .form-success svg {
            width: 64px;
            height: 64px;
            color: var(--success);
            margin-bottom: 16px;
        }

        .form-success h4 {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .form-success p {
            font-size: 15px;
            color: var(--text-secondary);
        }

        /* ===== FAQ ===== */
        .faq {
            padding: var(--section-y) 0;
            background: var(--bg-alt);
        }

        /* Лендинг: тизер тарифов идёт между product-nav (sunken) и faq (sunken).
           Обычный фон здесь разрывает три sunken-блока подряд. Только #pricing —
           на /pricing/ у секций другие id, их это не трогает. */
        #pricing.advantages { background: var(--bg); }

        .faq-list {
            max-width: 800px;
            margin: 0 auto;
        }

        .faq-item {
            background: var(--card-bg);
            border-radius: var(--radius);
            border: 1px solid var(--border);
            margin-bottom: 12px;
            overflow: hidden;
            transition: all var(--transition);
        }

        .faq-item:hover {
            border-color: var(--primary-light);
        }

        .faq-question {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 22px 28px;
            cursor: pointer;
            gap: 16px;
            user-select: none;
        }

        .faq-question h3 {
            font-size: 17px;
            font-weight: 600;
            line-height: 1.4;
        }

        .faq-toggle {
            flex-shrink: 0;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: var(--bg-alt);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition);
        }

        .faq-toggle svg {
            width: 18px;
            height: 18px;
            color: var(--text-secondary);
            transition: transform var(--transition);
        }

        .faq-item.open .faq-toggle {
            background: var(--primary-light);
        }

        .faq-item.open .faq-toggle svg {
            transform: rotate(180deg);
            color: var(--primary);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .faq-answer-inner {
            padding: 0 28px 22px;
            font-size: 15px;
            color: var(--text-secondary);
            line-height: 1.7;
        }

        /* ===== CTA FINAL ===== */
        /* Инверсная полоса: роли уже переключены [data-zone="inverse"] (tokens.css),
           поэтому здесь только компоновка — сырых цветов нет (§8.7). */
        .cta-final {
            padding: var(--section-y) 0;
            text-align: center;
            background: var(--bg);
            color: var(--text);
        }

        .cta-final h2 {
            font-size: var(--t-display);
            font-weight: 900;                 /* §3 — дисплей/h-уровень: вес 900 */
            letter-spacing: -0.035em;
            line-height: 0.96;
            margin-bottom: 16px;
            color: var(--text);
        }

        .cta-final p {
            font-size: var(--t-lead);
            color: var(--text-muted);
            margin: 0 auto 40px;
            max-width: 600px;
        }

        /* ===== FOOTER ===== */
        .footer {
            padding: 48px 0;
            background: var(--text);
            color: rgba(255, 255, 255, 0.6);
        }

        .footer-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
        }

        .footer-logo {
            font-size: 20px;
            font-weight: 800;
            color: #fff;
        }

        .footer-logo span {
            color: var(--primary);
        }

        .footer-links {
            display: flex;
            gap: 24px;
        }

        .footer-links a {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.5);
            transition: color var(--transition);
        }

        .footer-links a:hover {
            color: #fff;
        }

        .footer-copy {
            font-size: 13px;
        }

        .footer-email {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            transition: color var(--transition);
        }
        .footer-email:hover { color: #fff; }

        .footer-contacts {
            display: flex;
            flex-direction: column;
            gap: 4px;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.5);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .hero-visual {
                display: none;
            }

            .hero-stats {
                display: none;
            }

            .pain-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .cta-form-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            body { font-size: 16px; }

            .nav { display: none; }
            .header-cta { display: none; }
            .header-email { display: none; }
            .mobile-toggle { display: flex; }

            .nav.open {
                display: flex;
                flex-direction: column;
                position: absolute;
                top: 72px;
                left: 0;
                right: 0;
                background: var(--card-bg);
                padding: 24px;
                border-bottom: 1px solid var(--border);
                box-shadow: 0 8px 24px rgba(0,0,0,0.08);
                gap: 16px;
            }

            .nav.open + .header-cta-mobile {
                display: block;
            }

            .nav.open .has-dropdown {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .nav.open .nav-dropdown {
                position: static;
                transform: none;
                opacity: 1;
                visibility: visible;
                min-width: 0;
                width: 100%;
                padding: 0 0 0 16px;
                border: none;
                box-shadow: none;
                background: transparent;
                gap: 8px;
            }

            .hero {
                padding: 120px 0 80px;
            }

            .hero-text h1 {
                font-size: 32px;
            }

            .hero-stats {
                flex-direction: column;
                gap: 20px;
                align-items: center;
            }

            .pain-grid {
                grid-template-columns: 1fr;
            }

            .steps-grid {
                grid-template-columns: 1fr;
                gap: 40px;
            }

            .steps-grid::before {
                display: none;
            }

            .advantages-grid {
                grid-template-columns: 1fr;
            }

            .advantage-item:nth-child(3n+2),
            .advantage-item:nth-child(3n+3) {
                padding-left: 0;
                border-left: none;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .btn-lg {
                padding: 16px 32px;
                font-size: 16px;
            }

            .footer-inner {
                flex-direction: column;
                text-align: center;
            }

            .footer-links {
                justify-content: center;
                flex-wrap: wrap;
            }

            .section-header {
                margin-bottom: 40px;
            }

            /* Скрываем сноску статистики, т.к. сами цифры скрыты на мобильном */
            .hero .section-postfix {
                display: none;
            }

            /* Показываем скриншот дашборда в hero на мобилке */
            .hero-visual {
                display: block;
                margin-top: 32px;
                max-width: 100%;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 16px;
            }

            .hero {
                padding: 110px 0 60px;
            }

            .hero-text h1 {
                font-size: 28px;
            }

            .form-card {
                padding: 24px;
            }

            .cta-form-grid {
                gap: 32px;
            }

            .fsw-screen-area {
                height: 200px;
            }

            .pain-points,
            .how-it-works,
            .advantages,
            .faq,
            .cta-final {
                padding: 64px 0;
            }
        }

        /* ===== FEATURES SCROLL (replaces features grid + showcase) ===== */

        .features-scroll-wrapper {
            position: relative;
            height: 400vh; /* 100vh × 4 tabs */
            margin-bottom: 56px;
        }

        .features-sticky {
            position: sticky;
            top: 0;
            height: 100vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            background: var(--bg);
            border-bottom: 1px solid var(--border);
        }

        .fsw-header {
            text-align: center;
            padding: 20px 24px 0;
            flex-shrink: 0;
        }

        .fsw-header .section-label {
            margin-bottom: 8px;
        }

        .fsw-header .section-title {
            font-size: clamp(22px, 3vw, 32px);
            margin-bottom: 0;
        }

        .fsw-tabs {
            display: flex;
            justify-content: center;
            gap: 0;
            padding: 0 24px;
            margin-top: 20px;
            border-bottom: 2px solid var(--border);
            overflow-x: auto;
            scrollbar-width: none;
            flex-shrink: 0;
        }
        .fsw-tabs::-webkit-scrollbar { display: none; }

        .fsw-tab {
            flex-shrink: 0;
            padding: 10px 22px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            border: none;
            background: none;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
            transition: color var(--transition), border-color var(--transition);
            font-family: var(--font);
            white-space: nowrap;
        }
        .fsw-tab:hover { color: var(--text); }
        .fsw-tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
            font-weight: 600;
        }

        .fsw-progress {
            height: 3px;
            background: var(--border);
            flex-shrink: 0;
        }
        .fsw-progress-fill {
            height: 100%;
            background: var(--primary);
            transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            width: 25%;
        }

        .fsw-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            align-self: center;
            text-align: center;
            gap: 8px;
            padding: 12px 32px 10px;
            flex-shrink: 0;
            max-width: 800px;
            width: 100%;
        }

        .fsw-icon {
            width: 44px;
            height: 44px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .fsw-icon svg { width: 20px; height: 20px; }

        .fsw-body { width: 100%; }
        .fsw-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 4px;
        }
        .fsw-desc {
            font-size: 15px;
            color: var(--text-secondary);
            line-height: 1.55;
            max-width: 600px;
            margin: 0 auto 10px;
        }
        .fsw-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            justify-content: center;
        }
        .fsw-tag {
            font-size: 12px;
            font-weight: 500;
            padding: 3px 12px;
            border-radius: var(--r-sm);
            background: var(--primary-light);
            color: var(--primary);
        }

        .fsw-screen-area {
            flex: 1;
            position: relative;
            overflow: hidden;
            background: var(--bg-alt);
            margin: 0 32px 32px;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
        }

        .fsw-screen {
            position: absolute;
            inset: 0;
            display: none;
            overflow: hidden;
            cursor: zoom-in;
        }
        .fsw-screen.active { display: block; }

        .fsw-screen img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: top center;
            display: block;
            transform: scale(1);
            transition: transform 0.45s ease;
            transform-origin: top center;
        }
        .fsw-screen:hover img {
            transform: scale(1.12);
        }

        .fsw-zoom-hint {
            position: absolute;
            bottom: 10px;
            right: 14px;
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            color: var(--text-muted);
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: var(--r-sm);
            padding: 3px 10px 3px 8px;
            pointer-events: none;
            opacity: 1;
            transition: opacity 0.3s;
        }
        .fsw-screen:hover .fsw-zoom-hint { opacity: 0; }
        .fsw-zoom-hint svg { flex-shrink: 0; }

        @keyframes fsw-slide-in-right  { from { opacity:0; transform:translateX(40px) } to { opacity:1; transform:translateX(0) } }
        @keyframes fsw-slide-out-left  { from { opacity:1; transform:translateX(0) }    to { opacity:0; transform:translateX(-40px) } }
        @keyframes fsw-slide-in-left   { from { opacity:0; transform:translateX(-40px)} to { opacity:1; transform:translateX(0) } }
        @keyframes fsw-slide-out-right { from { opacity:1; transform:translateX(0) }    to { opacity:0; transform:translateX(40px) } }

        .fsw-screen.enter-right { animation: fsw-slide-in-right 0.35s ease forwards; }
        .fsw-screen.exit-left   { animation: fsw-slide-out-left 0.35s ease forwards; display: flex !important; }
        .fsw-screen.enter-left  { animation: fsw-slide-in-left  0.35s ease forwards; }
        .fsw-screen.exit-right  { animation: fsw-slide-out-right 0.35s ease forwards; display: flex !important; }

        @media (prefers-reduced-motion: reduce) {
            .fsw-screen.enter-right,
            .fsw-screen.exit-left,
            .fsw-screen.enter-left,
            .fsw-screen.exit-right { animation: none; }
            .fsw-progress-fill { transition: none; }
            .fsw-tab { transition: none; }
        }

        .fsw-swipe-hint {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 12px;
            color: var(--text-light);
            padding: 6px 0 2px;
            user-select: none;
            pointer-events: none;
        }
        .fsw-swipe-hint svg { width: 14px; height: 14px; flex-shrink: 0; }

        @media (max-width: 768px) {
            .fsw-swipe-hint { display: flex; }
            .features-scroll-wrapper { height: auto; }
            .features-sticky {
                position: static;
                height: auto;
                overflow: visible;
            }
            .fsw-screen-area {
                flex: none; /* prevents flex-basis:0% from collapsing height */
                height: 240px;
                margin: 0 16px 16px;
            }
            .fsw-info { padding: 16px 16px 12px; }
            .fsw-header { padding: 28px 16px 0; }
            .fsw-tabs {
                justify-content: flex-start; /* fix: center+overflow-x обрезает первый таб слева */
                padding: 0 16px;
                scroll-snap-type: x mandatory;
            }
            .fsw-tab { scroll-snap-align: start; }
        }

        /* ===== LIGHTBOX ===== */
        .fsw-lightbox {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: rgba(0, 0, 0, 0.88);
            align-items: center;
            justify-content: center;
            cursor: zoom-out;
        }
        .fsw-lightbox.open {
            display: flex;
            animation: lb-fade-in 0.25s ease;
        }
        @keyframes lb-fade-in { from { opacity: 0 } to { opacity: 1 } }

        .fsw-lightbox img {
            max-width: 92vw;
            max-height: 92vh;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 24px 80px rgba(0,0,0,0.5);
            animation: lb-scale-in 0.25s ease;
            cursor: default;
        }
        @keyframes lb-scale-in { from { opacity: 0; transform: scale(0.94) } to { opacity: 1; transform: scale(1) } }

        .fsw-lightbox-close {
            position: absolute;
            top: 16px;
            right: 20px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            background: rgba(255,255,255,0.12);
            color: #fff;
            font-size: 22px;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }
        .fsw-lightbox-close:hover { background: rgba(255,255,255,0.22); }

        /* ===== COOKIE BANNER ===== */
        .cookie-banner {
            position: fixed;
            bottom: 24px;
            left: 24px;
            max-width: 380px;
            z-index: 9000;
            background: var(--text);
            border-radius: 12px;
            padding: 16px 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.25);
            transform: translateY(calc(100% + 32px));
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .cookie-banner.visible { transform: translateY(0); }

        .cookie-banner-text {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.5;
        }

        .cookie-banner-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .cookie-btn-accept {
            padding: 8px 20px;
            background: var(--primary);
            color: #fff;
            border: none;
            border-radius: 8px;
            font-family: var(--font);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: background var(--transition);
        }
        .cookie-btn-accept:hover { background: var(--primary-dark); }

        @media (max-width: 480px) {
            .cookie-banner { bottom: 16px; left: 16px; right: 16px; max-width: none; padding: 14px 16px; }
            .cookie-banner-text { font-size: 12px; }
        }

        /* ===== RESULTS / STATS ===== */
        #results-section { padding: var(--section-y) 20px; background: #f5f7fb; text-align: center; }
        .rs-badge { display: inline-block; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #2563eb; background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.2); border-radius: 20px; padding: 4px 16px; margin-bottom: 18px; }
        .rs-title { font-size: clamp(24px, 4vw, 36px); font-weight: 700; color: #111827; margin: 0 0 12px; line-height: 1.2; }
        .rs-sub { font-size: 15px; color: #6b7280; margin: 0 auto 48px; max-width: 500px; line-height: 1.6; }
        .rs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
        .rs-card { background: #fff; border: 1px solid #dbeafe; border-radius: 16px; padding: 44px 32px 40px; position: relative; overflow: hidden; transition: box-shadow .25s, transform .25s; }
        .rs-card:hover { box-shadow: 0 8px 32px rgba(37,99,235,.1); transform: translateY(-3px); }
        .rs-topbar { position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 16px 16px 0 0; background: linear-gradient(90deg, #2563eb, #60a5fa); }
        .rs-num { font-size: clamp(48px, 6vw, 68px); font-weight: 800; color: #2563eb; line-height: 1; margin-bottom: 8px; letter-spacing: -.02em; }
        .rs-arrow-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; background: #dbeafe; color: #1d4ed8; border-radius: 20px; padding: 5px 14px; margin-bottom: 18px; }
        .rs-label { font-size: 18px; font-weight: 700; color: #1f2937; margin-bottom: 10px; }
        .rs-desc { font-size: 15px; color: #9ca3af; line-height: 1.6; }
        .rs-footnote { margin-top: 24px; font-size: 12px; color: #9ca3af; }
        @media (max-width: 540px) { .rs-grid { grid-template-columns: 1fr; } }

        /* ===== FEATURES (плоский показ) ===== */
        /* Бывший sticky-виджет заменён: §1.1 — sticky-скролл и фейк-браузер были
           «тиком машины». Скриншоты продукта остались, поданы как чертёжные врезки:
           волосяная рамка, радиус 4px, без тени, mono-подпись вместо точек-дот. */
        #features-section.feat { padding: var(--section-y) 0; background: var(--bg); }

        .feat-rows {
            display: flex;
            flex-direction: column;
            gap: var(--stack-lg);
            margin-top: var(--stack-lg);
        }

        .feat-row {
            display: grid;
            grid-template-columns: 7fr 3fr;   /* §4.16 — 7/3, не 6/6 */
            gap: var(--s-8, 48px);
            align-items: center;
        }

        /* Зеркалим сам шаблон, а не order: `order` не переносит элемент в другой
           трек грида — картинка иначе падает в узкую 3fr-колонку. Скриншот всегда
           широкий (7fr), меняется только сторона. */
        .feat-row--rev {
            grid-template-columns: 3fr 7fr;
        }

        .feat-row--rev .feat-shot { order: 2; }
        .feat-row--rev .feat-text { order: 1; }

        .feat-shot {
            margin: 0;
            border: 1px solid var(--border);
            border-radius: var(--r-md);
            overflow: hidden;
            background: var(--bg-sunken);
        }

        .feat-shot-url {
            display: block;
            font-family: var(--font-mono);
            font-size: var(--t-label);
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-muted);
            padding: 10px 16px;
            border-bottom: 1px solid var(--border);
        }

        .feat-shot img { width: 100%; display: block; }

        .feat-num {
            display: block;
            font-family: var(--font-mono);
            font-size: var(--t-label);
            letter-spacing: 0.12em;
            color: var(--accent);
            margin-bottom: 12px;
        }

        .feat-text h3 {
            font-size: var(--t-h3);
            font-weight: 700;
            line-height: 1.2;
            margin: 0 0 10px;
            color: var(--text);
        }

        .feat-text p {
            font-size: 15px;
            line-height: 1.6;
            color: var(--text-secondary);
            margin: 0;
        }

        @media (max-width: 860px) {
            .feat-row,
            .feat-row--rev { grid-template-columns: 1fr; gap: 20px; }
            /* одна колонка: картинка (в HTML идёт первой) всегда над текстом */
            .feat-row--rev .feat-shot { order: 0; }
            .feat-row--rev .feat-text { order: 1; }
        }

  /* ===== AI FEATURES SECTION ===== */
  .section-label--dark {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 11px;
      font-weight: 700;
      font-family: var(--font-mono);
      letter-spacing: 0.09em;
      color: #60a5fa;
      background: rgba(96,165,250,0.1);
      border: 1px solid rgba(96,165,250,0.25);
      border-radius: 20px;
      padding: 5px 16px;
  }

  .ai-features-section {
      background: linear-gradient(140deg, #060c18, #0f2060, #1a0f35, #060c18);
      background-size: 300% 300%;
      animation: ai-bg-shift 8s ease infinite;
      padding: var(--section-y) 0;
      position: relative;
      overflow: hidden;
  }

  .ai-features-section .section-header {
      text-align: center;
      margin-bottom: 52px;
      position: relative;
      z-index: 1;
  }

  .ai-features-section .container { position: relative; z-index: 1; }

  .ai-features-section .section-title {
      color: #f8fafc;
      font-size: 32px;
      font-weight: 800;
      letter-spacing: -0.5px;
      margin-bottom: 14px;
  }

  .ai-features-section .section-subtitle {
      color: #94a3b8;
      font-size: 15px;
      max-width: 460px;
      margin: 0 auto;
      line-height: 1.7;
  }

  .ai-features-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
  }

  .ai-card {
      background: rgba(255,255,255,0.035);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 18px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
  }

  .ai-card-header {
      padding: 22px 22px 0;
      min-height: 92px;
  }

  .ai-card-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 8px;
      padding: 5px 10px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.05em;
      margin-bottom: 10px;
  }

  .ai-card-tag--blue  { background: rgba(37,99,235,0.15);  color: #60a5fa; }
  .ai-card-tag--green { background: rgba(34,197,94,0.12);  color: #4ade80; }
  .ai-card-tag--amber { background: rgba(245,158,11,0.12); color: #fbbf24; }

  .ai-card-title {
      color: #f1f5f9;
      font-size: 17px;
      font-weight: 700;
      line-height: 1.25;
      margin-bottom: 18px;
  }

  .ai-card-illustration {
      margin: 0 14px;
      background: linear-gradient(160deg, #1a2744, #162032);
      border-radius: 12px;
      padding: 14px;
      border: 1px solid rgba(255,255,255,0.06);
      margin-bottom: 14px;
      height: 272px;
      overflow: hidden;
  }

  /* Card 1 chat illustration: flex column so input stays at bottom */
  .ai-card-illustration--chat {
      display: flex;
      flex-direction: column;
  }

  .ai-card-body {
      padding: 0 22px 22px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      flex: 1;
  }

  .ai-card-desc {
      color: #94a3b8;
      font-size: 15px;
      line-height: 1.65;
  }

  .ai-card-checks {
      display: flex;
      flex-direction: column;
      gap: 5px;
      margin-top: 4px;
  }

  .ai-card-checks li {
      list-style: none;
      color: #64748b;
      font-size: 11.5px;
      display: flex;
      gap: 7px;
  }

  .ai-card-checks li::before {
      content: '✓';
      color: #22d3ee;
      flex-shrink: 0;
  }

  /* Stagger animation for AI cards */
  .ai-features-grid > .ai-card:nth-child(1) { transition-delay: 0s;   }
  .ai-features-grid > .ai-card:nth-child(2) { transition-delay: 0.1s; }
  .ai-features-grid > .ai-card:nth-child(3) { transition-delay: 0.2s; }

  /* Tablet: 2 columns, 3rd card full width */
  @media (max-width: 1024px) {
      .ai-features-grid {
          grid-template-columns: repeat(2, 1fr);
      }
      .ai-features-grid > .ai-card:nth-child(3) {
          grid-column: 1 / -1;
      }
  }

  /* Mobile: 1 column */
  @media (max-width: 768px) {
      .ai-features-section { padding: 48px 0; }
      .ai-features-grid {
          grid-template-columns: 1fr;
      }
      .ai-features-grid > .ai-card:nth-child(3) {
          grid-column: auto;
      }
      .ai-features-section .section-title { font-size: 26px; }
  }

  @media (max-width: 480px) {
      .ai-card-header { padding: 16px 16px 0; }
      .ai-card-body   { padding: 0 16px 16px; }
      .ai-card-title  { font-size: 15px; }
  }

  /* ===== INTEGRATIONS SECTION ===== */
  .integrations-section {
      background: #f5f7fb;
      padding: var(--section-y) 0;
  }

  .int-flow {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      margin: 48px 0 0;
  }

  .int-col {
      display: flex;
      flex-direction: column;
      gap: 12px;
      flex-shrink: 0;
      width: 230px;
  }

  .int-node {
      background: #fff;
      border: 1.5px solid #e2e8f0;
      border-radius: 12px;
      padding: 14px 18px;
      display: flex;
      align-items: center;
      gap: 12px;
  }

  .int-node--dashed {
      border-style: dashed;
      border-color: #cbd5e1;
  }

  .int-node--out {
      background: #eff6ff;
      border-color: #bfdbfe;
  }

  .int-node-badge {
      background: #e8f0ff;
      color: #2563EB;
      font-size: 15px;
      font-weight: 800;
      padding: 5px 10px;
      border-radius: 7px;
      flex-shrink: 0;
  }

  .int-node-label {
      font-size: 15px;
      font-weight: 600;
      color: #1e293b;
  }

  .int-node-sub {
      font-size: 13px;
      color: #94a3b8;
      margin-top: 2px;
  }

  .int-node-icon {
      font-size: 22px;
      flex-shrink: 0;
  }

  .int-node-text {
      font-size: 15px;
      font-weight: 600;
      color: #2563EB;
  }

  /* Arrows column */
  .int-arrows {
      display: flex;
      flex-direction: column;
      gap: 10px;
      align-items: center;
      padding: 0 16px;
      flex-shrink: 0;
  }

  .int-arrow {
      display: flex;
      align-items: center;
      height: 42px;
  }

  .int-arrow-line {
      height: 2px;
      width: 32px;
  }

  .int-arrow-head {
      width: 0;
      height: 0;
      border-top: 5px solid transparent;
      border-bottom: 5px solid transparent;
  }

  /* incoming arrow: grey, pointing right */
  .int-arrow--in .int-arrow-line  { background: #cbd5e1; }
  .int-arrow--in .int-arrow-head  { border-left: 7px solid #cbd5e1; }

  /* outgoing arrow: blue, pointing right */
  .int-arrow--out .int-arrow-line { background: #2563EB; }
  .int-arrow--out .int-arrow-head { border-left: 7px solid #2563EB; }

  /* reversed outgoing arrow: blue, pointing left (from center outward to left col) */
  .int-arrow--rev .int-arrow-line { background: #2563EB; }
  .int-arrow--rev .int-arrow-head { border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-right: 7px solid #2563EB; border-left: none; }

  /* Center: эТОИР box */
  .int-center {
      background: linear-gradient(135deg, #2563EB, #1d4ed8);
      border-radius: 14px;
      padding: 24px 20px;
      box-shadow: 0 8px 24px rgba(37,99,235,0.35);
      text-align: center;
      flex-shrink: 0;
  }

  .int-center-title {
      color: #fff;
      font-size: 20px;
      font-weight: 800;
      line-height: 1;
      margin-bottom: 4px;
  }

  .int-center-sub {
      color: rgba(255,255,255,0.65);
      font-size: 10px;
  }

  /* Tags row below flow */
  .int-tags {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 32px;
  }

  .int-tag {
      background: #fff;
      border: 1px solid #e2e8f0;
      border-radius: 20px;
      padding: 5px 14px;
      font-size: 12px;
      color: #475569;
  }

  .int-tag-sep {
      color: #cbd5e1;
      font-size: 14px;
  }

  /* CTA under tags */
  .int-cta {
      text-align: center;
      margin-top: 32px;
  }

  .int-cta p {
      color: #64748b;
      font-size: 15px;
      margin-bottom: 16px;
  }

  /* Mobile: vertical stack */
  @media (max-width: 768px) {
      .integrations-section { padding: 48px 0; }

      .int-flow {
          flex-direction: column;
          align-items: stretch;
          gap: 0;
          margin-top: 32px;
      }

      .int-col { width: 100%; }

      .int-arrows {
          flex-direction: row;
          justify-content: center;
          padding: 10px 0;
          gap: 0;
      }

      /* Vertical arrow for mobile */
      .int-arrow {
          flex-direction: column;
          height: auto;
          width: 24px;
      }

      .int-arrow-line {
          width: 2px;
          height: 24px;
      }

      /* vertical arrowhead: pointing down */
      .int-arrow-head {
          border-top: 0;
          border-bottom: 0;
          border-left: 5px solid transparent;
          border-right: 5px solid transparent;
      }

      .int-arrow--in  .int-arrow-line  { background: #cbd5e1; }
      .int-arrow--in  .int-arrow-head  {
          border-left: 5px solid transparent;
          border-right: 5px solid transparent;
          border-top: 7px solid #cbd5e1;
          border-bottom: 0;
      }

      .int-arrow--out .int-arrow-line  { background: #2563EB; }
      .int-arrow--out .int-arrow-head  {
          border-left: 5px solid transparent;
          border-right: 5px solid transparent;
          border-top: 7px solid #2563EB;
          border-bottom: 0;
      }

      /* reversed arrow on mobile: points up */
      .int-arrow--rev .int-arrow-line  { background: #2563EB; }
      .int-arrow--rev .int-arrow-head  {
          border-left: 5px solid transparent;
          border-right: 5px solid transparent;
          border-bottom: 7px solid #2563EB;
          border-top: 0;
      }

      .int-center { padding: 20px; }
  }
/* ===== AI ANIMATIONS ===== */

/* Shared keyframes */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes ai-bg-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes ai-float-1 {
  0%, 100% { transform: translateY(0px);   opacity: 0.85; }
  50%       { transform: translateY(-32px); opacity: 0.4; }
}
@keyframes ai-float-2 {
  0%, 100% { transform: translateY(0px);   opacity: 0.75; }
  50%       { transform: translateY(-22px); opacity: 0.35; }
}
@keyframes ai-float-3 {
  0%, 100% { transform: translateY(0px);  opacity: 0.7; }
  50%       { transform: translateY(26px); opacity: 0.9; }
}
@keyframes ai-float-4 {
  0%, 100% { transform: translateY(0px);   opacity: 0.8; }
  50%       { transform: translateY(-38px); opacity: 0.3; }
}

/* Particles */
.ai-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.ai-particle--1 { width:6px; height:6px; top:12%;left:8%;   background:#60a5fa;opacity:.85;box-shadow:0 0 14px 4px #60a5fa;animation:ai-float-1 9s  ease-in-out infinite; }
.ai-particle--2 { width:4px; height:4px; top:70%;left:15%;  background:#818cf8;opacity:.75;box-shadow:0 0 12px 3px #818cf8;animation:ai-float-2 13s ease-in-out infinite 1.5s; }
.ai-particle--3 { width:7px; height:7px; top:25%;left:82%;  background:#60a5fa;opacity:.8; box-shadow:0 0 18px 5px #60a5fa;animation:ai-float-1 11s ease-in-out infinite 3s; }
.ai-particle--4 { width:4px; height:4px; top:80%;left:75%;  background:#818cf8;opacity:.7; box-shadow:0 0 12px 3px #818cf8;animation:ai-float-3 8s  ease-in-out infinite 0.5s; }
.ai-particle--5 { width:8px; height:8px; top:50%;left:50%;  background:#60a5fa;opacity:.65;box-shadow:0 0 22px 6px #60a5fa;animation:ai-float-2 14s ease-in-out infinite 2s; }
.ai-particle--6 { width:3px; height:3px; top:8%; left:60%;  background:#a78bfa;opacity:.8; box-shadow:0 0 10px 3px #a78bfa;animation:ai-float-4 10s ease-in-out infinite 4s; }
.ai-particle--7 { width:5px; height:5px; top:60%;left:90%;  background:#60a5fa;opacity:.75;box-shadow:0 0 14px 4px #60a5fa;animation:ai-float-3 12s ease-in-out infinite 1s; }
.ai-particle--8  { width:3px; height:3px; top:90%;left:40%;  background:#818cf8;opacity:.7; box-shadow:0 0 10px 3px #818cf8;animation:ai-float-4 7s  ease-in-out infinite 3.5s; }
.ai-particle--9  { width:5px; height:5px; top:35%;left:22%;  background:#60a5fa;opacity:.8; box-shadow:0 0 14px 4px #60a5fa;animation:ai-float-3 10s ease-in-out infinite 2s; }
.ai-particle--10 { width:4px; height:4px; top:48%;left:68%;  background:#a78bfa;opacity:.75;box-shadow:0 0 12px 3px #a78bfa;animation:ai-float-1 12s ease-in-out infinite 0.5s; }
.ai-particle--11 { width:6px; height:6px; top:18%;left:45%;  background:#818cf8;opacity:.8; box-shadow:0 0 16px 5px #818cf8;animation:ai-float-2 9s  ease-in-out infinite 3.5s; }
.ai-particle--12 { width:3px; height:3px; top:62%;left:33%;  background:#22d3ee;opacity:.85;box-shadow:0 0 10px 4px #22d3ee;animation:ai-float-4 11s ease-in-out infinite 1s; }
.ai-particle--13 { width:7px; height:7px; top:5%; left:22%;  background:#60a5fa;opacity:.7; box-shadow:0 0 20px 6px #60a5fa;animation:ai-float-1 15s ease-in-out infinite 4s; }
.ai-particle--14 { width:4px; height:4px; top:88%;left:58%;  background:#a78bfa;opacity:.75;box-shadow:0 0 12px 3px #a78bfa;animation:ai-float-3 8s  ease-in-out infinite 0.8s; }
.ai-particle--15 { width:5px; height:5px; top:38%;left:95%;  background:#60a5fa;opacity:.8; box-shadow:0 0 14px 4px #60a5fa;animation:ai-float-2 13s ease-in-out infinite 2.5s; }
.ai-particle--16 { width:3px; height:3px; top:72%;left:48%;  background:#818cf8;opacity:.7; box-shadow:0 0 10px 3px #818cf8;animation:ai-float-4 9s  ease-in-out infinite 1.8s; }

/* Chat bubble animation states */
.ai-chat-bubble {
  display: none;
}
.ai-chat-bubble.ai-chat-bubble--visible {
  display: flex;
  animation: bubble-appear 0.35s ease forwards;
}
@keyframes bubble-appear {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Task row animation states */
.ai-task-row {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ai-card.is-visible .ai-task-row:nth-child(1) { opacity:1;transform:translateY(0);transition-delay:0s; }
.ai-card.is-visible .ai-task-row:nth-child(2) { opacity:1;transform:translateY(0);transition-delay:.15s; }
.ai-card.is-visible .ai-task-row:nth-child(3) { opacity:1;transform:translateY(0);transition-delay:.3s; }

/* Status dot pulse */
.ai-status-dot { animation: pulse-dot 1.4s ease-in-out infinite; }

/* Card hover effects */
.ai-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ai-card:nth-child(1):hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(37,99,235,0.25);
  border-color: rgba(37,99,235,0.3);
}
.ai-card:nth-child(2):hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(34,197,94,0.2);
  border-color: rgba(34,197,94,0.3);
}
.ai-card:nth-child(3):hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(245,158,11,0.2);
  border-color: rgba(245,158,11,0.3);
}

/* ===== INTEGRATIONS ARROW ANIMATION ===== */
/* Note: NO overflow:hidden — .int-arrow-line is 2px tall, it would clip the 6px dot.
   Edge fade is handled by opacity:0 at 0%/100% of the keyframe. */
.int-arrow-line {
  position: relative;
}
.int-arrow-line::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: int-flow-h 2s ease-in-out infinite;
}
.int-arrow--in  .int-arrow-line::after { background:#94a3b8; box-shadow:0 0 5px #94a3b8; }
.int-arrow--out .int-arrow-line::after { background:#2563EB; box-shadow:0 0 6px rgba(37,99,235,.8); }
.int-arrow--rev .int-arrow-line::after { background:#2563EB; box-shadow:0 0 6px rgba(37,99,235,.8); animation-name: int-flow-h-rev; }

@keyframes int-flow-h {
  0%   { left:-6px;              opacity:0; }
  10%  { opacity:1; }
  90%  { opacity:1; }
  100% { left:calc(100% + 6px);  opacity:0; }
}

@keyframes int-flow-h-rev {
  0%   { left:calc(100% + 6px);  opacity:0; }
  10%  { opacity:1; }
  90%  { opacity:1; }
  100% { left:-6px;              opacity:0; }
}

/* Stagger: incoming arrows (first .int-arrows) */
.int-arrows:first-of-type .int-arrow:nth-child(1) .int-arrow-line::after { animation-delay:0s; }
.int-arrows:first-of-type .int-arrow:nth-child(2) .int-arrow-line::after { animation-delay:0.65s; }
.int-arrows:first-of-type .int-arrow:nth-child(3) .int-arrow-line::after { animation-delay:1.3s; }

/* Stagger: outgoing arrows (last .int-arrows) */
.int-arrows:last-of-type .int-arrow:nth-child(1) .int-arrow-line::after { animation-delay:0.2s; }
.int-arrows:last-of-type .int-arrow:nth-child(2) .int-arrow-line::after { animation-delay:0.85s; }
.int-arrows:last-of-type .int-arrow:nth-child(3) .int-arrow-line::after { animation-delay:1.5s; }

/* Mobile: vertical dot animation for integration arrows */
@keyframes int-flow-v {
  0%   { top: -6px;             opacity: 0; }
  15%  { top: 0;                opacity: 1; }
  85%  { top: 100%;             opacity: 1; }
  100% { top: calc(100% + 6px); opacity: 0; }
}
@keyframes int-flow-v-rev {
  0%   { top: calc(100% + 6px); opacity: 0; }
  15%  { top: 100%;             opacity: 1; }
  85%  { top: 0;                opacity: 1; }
  100% { top: -6px;             opacity: 0; }
}
@media (max-width: 768px) {
  .int-arrow-line::after {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    animation: int-flow-v 2s ease-in-out infinite;
  }
  .int-arrow--rev .int-arrow-line::after {
    top: calc(100% + 6px);
    animation-name: int-flow-v-rev;
  }
}

/* ===== PREFERS-REDUCED-MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .ai-features-section                    { animation: none; background-position: 0% 50%; }
  .ai-particle                            { animation: none; }
  .ai-status-dot                          { animation: none; }
  .ai-chat-bubble.ai-chat-bubble--visible { animation: none; }
  .ai-card                                { transition: none; }
  .ai-task-row                            { transition: none; }
  .int-arrow-line::after                  { display: none; }
  /* IoT reduced-motion */
  .iot-button                             { animation: none; }
  .iot-button-cap                         { animation: none; transition: none; }
  .iot-led--active                        { animation: none; }
  .iot-tag                                { transition: none; }
  .iot-arrow-line::after                  { display: none; }
}

/* ===== IOT SECTION ===== */
.iot-section {
  padding: var(--section-y) 0;
  background: #fff;
}

.iot-illustration {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 1000px;
  margin: 48px auto 0;
  justify-content: center;
  padding: 0 20px;
}

/* Button wrapper — fixed size so tags have a stable absolute positioning context */
.iot-button-wrap {
  position: relative;
  width: 260px;
  height: 290px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Industrial button base */
.iot-button {
  width: 160px;
  height: 190px;
  background: #1e293b;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: iot-breathe 2.5s ease-in-out infinite;
}

.iot-button-ring {
  width: 120px;
  height: 120px;
  background: #334155;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.iot-button-cap {
  width: 98px;
  height: 98px;
  background: radial-gradient(circle at 35% 35%, #ef4444, #dc2626 60%, #b91c1c);
  border-radius: 50%;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 4px 16px rgba(220,38,38,0.4), inset 0 3px 0 rgba(255,255,255,0.2);
  position: relative;
}

/* Ripple ring on the cap */
.iot-button-cap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(220,38,38,0.5);
  animation: iot-ripple 2.5s ease-out infinite;
}

.iot-button-cap.iot-pressed {
  transform: scale(0.88);
  box-shadow: 0 0 30px 12px rgba(220,38,38,0.5), inset 0 2px 0 rgba(255,255,255,0.1);
}

.iot-button-label {
  font-size: 11px;
  font-family: monospace;
  color: #94a3b8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* LEDs */
.iot-leds {
  display: flex;
  gap: 6px;
  position: absolute;
  bottom: 10px;
}
.iot-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #334155;
}
.iot-led--active {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse-dot 1.4s ease-in-out infinite; /* reuse existing keyframe */
}

/* Assignment tags — stacked at same position, one visible at a time */
.iot-tag {
  position: absolute;
  top: 0;
  right: -10px;
  z-index: 1;
  white-space: nowrap;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.iot-tag--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Arrow */
.iot-arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.iot-arrow-line {
  position: relative;
  width: 110px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    #cbd5e1 0px, #cbd5e1 6px,
    transparent 6px, transparent 12px
  );
}
.iot-arrow-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 6px rgba(37,99,235,0.6);
  opacity: 0; /* dot is hidden until fired by JS */
}
.iot-arrow-line--firing::after {
  animation: int-flow-h 0.75s ease-in-out 1 forwards; /* single pass on each press */
}
.iot-arrow-head {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #cbd5e1;
}

/* Task card */
.iot-card {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
}
.iot-card-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}
.iot-card-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}
.iot-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.iot-card-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}
.iot-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.iot-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
}
.iot-card-meta {
  font-size: 13px;
  color: #64748b;
}

/* Facts grid */
.iot-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0 0;
  list-style: none;
}
.iot-fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px;
}
.iot-fact-icon {
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  flex-shrink: 0;
}
.iot-fact-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.iot-fact-desc {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
}

/* Keyframes */
@keyframes iot-breathe {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.03); }
}
@keyframes iot-ripple {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes iot-card-appear {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1023px) {
  .iot-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .iot-section      { padding: 48px 0; }
  .iot-illustration { flex-direction: column; gap: 24px; }
  .iot-arrow        { display: none; }
  .iot-card         { width: 100%; max-width: 320px; }
}
@media (max-width: 479px) {
  .iot-facts { grid-template-columns: 1fr; }
}

/* ===== FLOORMAP SECTION ===== */
.floormap-section {
  padding: var(--section-y) 0;
  background: #f8fafc;
}
.fmap-illustration {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 0 20px;
  position: relative;
}
.fmap-canvas {
  background: #fff;
  border: 2px solid #334155;
  border-radius: 16px;
  padding: 28px 28px 24px;
  position: relative;
  box-shadow: 0 8px 40px rgba(15,23,42,0.07);
}
.fmap-canvas-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 16px;
  display: block;
}
.fmap-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.fmap-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 16px 0;
  position: relative;
}
.fmap-divider::after {
  content: 'ЗОНА B';
  position: absolute;
  left: 0;
  top: -9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}
.fmap-machine {
  width: 94px;
  height: 78px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}
.fmap-machine--alarm {
  box-shadow: 0 0 0 2px #ef4444, 0 4px 16px rgba(239,68,68,0.18);
  border-color: #ef4444;
  background: #fff5f5;
}
.fmap-machine--maint {
  box-shadow: 0 0 0 2px #f59e0b, 0 4px 16px rgba(245,158,11,0.14);
  border-color: #f59e0b;
  background: #fffbeb;
}
.fmap-machine-icon { color: #64748b; }
.fmap-machine-label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.06em;
  font-family: monospace;
}
.fmap-machine-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  transition: background 0.3s ease;
}
.fmap-machine--alarm .fmap-machine-dot {
  background: #ef4444;
  animation: fmap-pulse-dot 1.3s ease-in-out infinite;
}
.fmap-machine--maint .fmap-machine-dot { background: #f59e0b; }

@keyframes fmap-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  60%       { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* Floating alert card */
.fmap-alert-card {
  position: absolute;
  top: -14px;
  right: 20px;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(239,68,68,0.12);
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  min-width: 210px;
  z-index: 10;
}
.fmap-alert-card--visible {
  opacity: 1;
  transform: translateY(0);
}
.fmap-alert-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: fmap-pulse-dot 1.3s ease-in-out infinite;
}
.fmap-alert-body { display: flex; flex-direction: column; gap: 2px; }
.fmap-alert-title { font-size: 13px; font-weight: 700; color: #0f172a; }
.fmap-alert-sub   { font-size: 12px; color: #64748b; }

/* Legend */
.fmap-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}
.fmap-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}
.fmap-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Facts */
.fmap-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0 0;
  list-style: none;
}
.fmap-fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px;
}
.fmap-fact-icon {
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  flex-shrink: 0;
}
.fmap-fact-title { font-size: 18px; font-weight: 700; color: #0f172a; }
.fmap-fact-desc  { font-size: 15px; color: #64748b; line-height: 1.6; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fmap-machine-dot     { animation: none; }
  .fmap-alert-dot       { animation: none; }
  .fmap-machine         { transition: none; }
  .fmap-alert-card      { transition: none; }
}

/* Responsive */
@media (max-width: 1023px) {
  .fmap-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .floormap-section { padding: 48px 0; }
  .fmap-row         { gap: 8px; }
  .fmap-machine     { width: 76px; height: 65px; }
  .fmap-alert-card  { right: 8px; top: -48px; min-width: 180px; }
}
@media (max-width: 479px) {
  .fmap-facts   { grid-template-columns: 1fr; }
  .fmap-row     { flex-wrap: wrap; justify-content: center; }
  .fmap-machine { width: 88px; }
}

/* ===== Comparison ===== */
.comparison-section { padding: var(--section-y) 0; background: var(--bg); }
.comparison-table-wrapper { overflow-x: auto; margin-top: 32px; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.comparison-table th, .comparison-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.comparison-table thead th { background: var(--bg-alt); font-weight: 600; color: var(--text); }
.comparison-table .col-etoir { background: var(--primary-light); }
.comparison-table tbody tr:hover { background: var(--bg-alt); }
.comparison-table .etoir-mark { display: block; font-weight: 700; color: var(--primary); font-size: 1.1rem; line-height: 1; margin-bottom: 4px; }
.comparison-table .etoir-sub { display: block; font-size: 0.875rem; color: var(--text-secondary); }
@media (max-width: 768px) {
  .comparison-table { font-size: 0.9rem; min-width: 600px; }
  .comparison-table th, .comparison-table td { padding: 12px 14px; }
}

/* ===== Industries ===== */
.industries-section { padding: var(--section-y) 0; background: var(--bg-alt); }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.industry-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.industry-card .industry-icon { font-size: 40px; margin-bottom: 16px; }
.industry-card h3 { font-size: 1.25rem; margin: 0 0 12px; color: var(--text); }
.industry-card p { color: var(--text-secondary); line-height: 1.6; margin: 0; }
@media (max-width: 768px) {
  .industries-grid { grid-template-columns: 1fr; gap: 16px; }
  .industry-card { padding: 24px; }
}

/* ROI calculator */
.roi-section{background:linear-gradient(135deg,var(--bg) 0%,var(--primary-light) 100%);padding: var(--section-y) 0}
.roi-section .section-subtitle{text-align:center;color:var(--text-secondary);max-width:720px;margin:12px auto 0}
.quiz-card{max-width:760px;margin:44px auto 0;background:var(--card-bg);border:1px solid var(--border);border-radius:20px;padding:40px;box-shadow:var(--card-shadow)}
.quiz-q{margin-bottom:24px}
.quiz-q-label{display:block;font-weight:600;color:var(--text);margin-bottom:12px}
.quiz-opts{display:flex;gap:10px;flex-wrap:wrap}
.quiz-opt{flex:1 1 0;min-width:96px;font:inherit;font-size:.95rem;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:13px 12px;cursor:pointer;text-align:center;transition:border-color .15s,background .15s,color .15s}
.quiz-opt:hover{border-color:var(--primary)}
.quiz-opt[aria-pressed="true"]{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}
.quiz-opt:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(37,99,235,.35)}
.quiz-result{display:none;margin-top:8px;border-top:1px dashed var(--border);padding-top:24px}
.quiz-result.on{display:block;animation:quizReveal .32s ease}
@keyframes quizReveal{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.quiz-result.on{animation:none}}
.quiz-result-cap{font-size:.8rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}
.quiz-result-num{font-size:2.4rem;font-weight:700;color:var(--primary);line-height:1.1;font-feature-settings:"tnum";letter-spacing:-.02em}
.quiz-meta{display:flex;gap:28px;margin:18px 0 4px;flex-wrap:wrap}
.quiz-meta div{font-size:.8rem;color:var(--text-secondary)}
.quiz-meta b{display:block;font-size:1.05rem;color:var(--text);font-weight:600;margin-top:2px}
.quiz-line{font-size:.95rem;color:var(--text);margin:14px 0 6px;max-width:60ch}
.quiz-note{font-size:.78rem;color:var(--text-secondary);font-style:italic;margin-top:12px}
.roi-cta{display:inline-block;margin-bottom:16px;background:var(--primary);color:#fff;padding:14px 28px;border-radius:var(--radius-sm);font-weight:600;text-decoration:none;transition:background .2s,box-shadow .2s,transform .2s;box-shadow:none}
.roi-cta:hover,.roi-cta:focus-visible{background:var(--primary-dark);color:#fff;box-shadow:none;transform:translateY(1px)}
@media (max-width:768px){.quiz-card{padding:26px}.quiz-result-num{font-size:1.8rem}}

/* Methodology accordion */
.methodology-section{padding: var(--section-y) 0;background:var(--card-bg)}
.methodology-list{max-width:800px;margin:48px auto 0}
.methodology-list details{border:1px solid var(--border);border-radius:12px;margin-bottom:12px;padding:20px 24px;background:var(--card-bg);transition:box-shadow .2s}
.methodology-list details[open]{box-shadow:0 4px 12px rgba(0,0,0,.04)}
.methodology-list summary{cursor:pointer;font-weight:600;color:var(--text);list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px}
.methodology-list summary::after{content:'+';font-size:1.5rem;color:var(--primary);transition:transform .2s;flex-shrink:0}
.methodology-list details[open] summary::after{content:'−'}
.methodology-list summary::-webkit-details-marker{display:none}
.methodology-list p{margin:16px 0 0;line-height:1.7;color:var(--text-secondary)}
.methodology-list a{color:var(--primary)}

/* Product-demo slideshow */
.demo-section{padding: var(--section-y) 0;background:var(--bg-alt)}
.demo-section .section-subtitle{text-align:center;color:var(--text-secondary);max-width:720px;margin:12px auto 0}
.slideshow{position:relative;max-width:1100px;margin:48px auto 0;border-radius:20px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.12);background:var(--card-bg)}
.slideshow-track{position:relative;aspect-ratio:16/10}
.slide{position:absolute;inset:0;opacity:0;transition:opacity .5s ease;pointer-events:none}
.slide.active{opacity:1;pointer-events:auto}
.slide img{width:100%;height:100%;object-fit:cover;display:block}
.slide-caption{position:absolute;bottom:0;left:0;right:0;padding:16px 24px;background:linear-gradient(to top,rgba(0,0,0,.7),transparent);color:#fff;font-weight:500}
.slideshow-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;border:none;background:rgba(255,255,255,.9);color:var(--text);font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.15);z-index:2}
.slideshow-prev{left:16px}.slideshow-next{right:16px}
.slideshow-dots{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);display:flex;gap:8px;z-index:2}
.slideshow-dot{width:8px;height:8px;border-radius:50%;border:none;background:rgba(255,255,255,.5);cursor:pointer;transition:background .2s,transform .2s;padding:0}
.slideshow-dot.active{background:#fff;transform:scale(1.3)}
@media (max-width:768px){.slideshow{border-radius:12px}.slideshow-nav{width:36px;height:36px;font-size:18px}}

/* Sticky mobile CTA */
.sticky-cta-mobile{display:none;position:fixed;bottom:0;left:0;right:0;height:56px;background:var(--primary);color:#fff;align-items:center;justify-content:space-between;padding:0 16px;z-index:100;transform:translateY(100%);transition:transform .3s ease;box-shadow:0 -4px 12px rgba(0,0,0,.12)}
.sticky-cta-mobile.visible{transform:translateY(0)}
.sticky-cta-text{font-size:.875rem;font-weight:500;flex:1;padding-right:12px}
.sticky-cta-btn{background:var(--accent);color:var(--text);padding:8px 16px;border-radius:8px;font-weight:600;text-decoration:none;font-size:.875rem;white-space:nowrap}
.sticky-cta-close{background:none;border:none;color:rgba(255,255,255,.7);font-size:18px;padding:0 8px;cursor:pointer}
@media (max-width:768px){.sticky-cta-mobile{display:flex}}


/* ===== Blog preview section (added 2026-05-19) ===== */
.blog-preview { padding: var(--section-y) 0; background: var(--bg-alt); }
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 48px 0 32px;
}
.blog-preview-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-preview-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.blog-preview-card .blog-preview-meta { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 12px; }
.blog-preview-card h3 { font-size: 1.25rem; margin: 0 0 12px; color: var(--text); line-height: 1.3; }
.blog-preview-card p { color: var(--text-secondary); line-height: 1.6; margin: 0 0 16px; flex: 1; }
.blog-preview-card .blog-preview-link { color: var(--primary); font-weight: 600; }
.blog-preview-all { text-align: center; }
.blog-preview-all a { color: var(--primary); font-weight: 600; font-size: 1.0625rem; }
.blog-preview-all a:hover { text-decoration: underline; }


/* ===== Inline CTA banners (added 2026-05-19) ===== */
.inline-cta { padding: 32px 0; }
.inline-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 36px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.inline-cta-banner--accent {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  color: #fff;
}
.inline-cta-banner--accent .inline-cta-text strong { color: #fff; }
.inline-cta-banner--accent .inline-cta-text span { color: rgba(255,255,255,0.85); }
.inline-cta-text { display: flex; flex-direction: column; gap: 4px; }
.inline-cta-text strong { font-size: 1.125rem; color: var(--text); font-weight: 700; }
.inline-cta-text span { color: var(--text-secondary); font-size: 0.9375rem; }
.inline-cta-banner .btn { flex-shrink: 0; white-space: nowrap; }
.btn-light {
  background: #fff;
  color: var(--primary);
  border: none;
}
.btn-light:hover { background: #f8fafc; }

@media (max-width: 720px) {
  .inline-cta-banner { flex-direction: column; align-items: flex-start; padding: 24px; gap: 16px; }
  .inline-cta-banner .btn { width: 100%; text-align: center; }
}


/* ===== Industries accordion (refactor 2026-05-19) ===== */
.industries-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin: 48px auto 0;
}
.industry-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.industry-item[open] { box-shadow: var(--card-shadow); }
.industry-item summary {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  list-style: none;
  user-select: none;
}
.industry-item summary::-webkit-details-marker { display: none; }
.industry-item summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform 0.2s;
  line-height: 1;
}
.industry-item[open] summary::after { transform: rotate(45deg); }
.industry-item .industry-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.industry-item p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}
@media (max-width: 640px) {
  .industry-item summary { padding: 16px 18px; font-size: 1rem; }
  .industry-item p { padding: 0 18px 18px; }
}


/* ===== Icon overrides for SVG sprite (2026-05-19) ===== */
.industry-item .industry-icon {
  width: 28px;
  height: 28px;
  font-size: 0;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.industry-item .industry-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.int-node-icon {
  width: 28px;
  height: 28px;
  font-size: 0;
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.int-node-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.comparison-table .etoir-mark {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0;
  margin-bottom: 4px;
}
.comparison-table .etoir-mark svg {
  width: 18px;
  height: 18px;
  display: block;
}


/* ===== Live demo section (added 2026-07-14, redesigned — flat/editorial) ===== */
.demo-live { padding: var(--section-y) 0; background: var(--bg-alt); border-block: 1px solid var(--border); }
.demo-live-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.demo-live-kicker {
  display: flex; align-items: center; gap: 9px; margin: 0 0 22px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-secondary);
}
/* Заголовок стал h1 (это первый заголовок /demo/), поэтому вес 900: §3 — «900 только дисплей и h1» */
.demo-live-text h1 { font-size: 2.5rem; line-height: 0.96; margin: 0 0 20px; color: var(--text); font-weight: 900; letter-spacing: -0.035em; }
.demo-live-text h1 .highlight { color: var(--primary); }
.demo-live-lead { color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.7; margin: 0 0 34px; max-width: 500px; }
.demo-live-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); animation: demo-live-ping 1.8s ease-out infinite;
}
@keyframes demo-live-ping { 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.demo-live-stats { display: flex; gap: 40px; margin: 0 0 36px; }
.demo-live-stats > div { padding-left: 18px; border-left: 2px solid var(--border); }
.demo-live-stats dt { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.02em; }
.demo-live-stats dd { margin: 8px 0 0; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.35; max-width: 12ch; }
.demo-live-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.demo-live-note { color: var(--text-light); font-size: 0.8125rem; }
.demo-live-visual {
  display: block; text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.demo-live-visual:hover { transform: translateY(-4px); }
.demo-live-visual .mockup-window { position: relative; }
.demo-live-play {
  position: absolute; inset: auto 0 0 0; padding: 16px;
  background: rgba(37, 99, 235, 0.94);
  color: #fff; font-weight: 600; text-align: center; opacity: 0; transition: opacity var(--transition);
}
.demo-live-visual:hover .demo-live-play { opacity: 1; }
@media (max-width: 900px) {
  .demo-live { padding: 64px 0; }
  .demo-live-grid { grid-template-columns: 1fr; gap: 40px; }
  .demo-live-text h1 { font-size: 2rem; }
  .demo-live-visual { order: -1; }
}
@media (max-width: 520px) {
  .demo-live-stats { gap: 24px; }
  .demo-live-stats dt { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .demo-live-pulse { animation: none; } }

/* ==========================================================================
   Дизайн-система v0.2 — компоненты
   Только роли из tokens.css, ни одного сырого hex. См. docs/DESIGN_SYSTEM.md
   ========================================================================== */

/* ===== Лист с полем (§4.1) =====
   Симметричный контейнер по центру — самый громкий признак сгенерированной
   страницы. Левое поле не пустота, а рабочая зона: номер раздела и mono-
   аннотации, как на поле чертёжного листа. */
.sheet {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: var(--gutter);
  align-items: start;
}

.sheet-rail {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-top: var(--s-1);
  border-top: 2px solid var(--text);   /* засечка сверху: слева поле уже занято (§1.1) */
}

.rail-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-label);
  color: var(--text);
}

.rail-note {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Ниже 1100px поле схлопывается в горизонтальную шапку раздела (§4.1) */
@media (max-width: 1100px) {
  .sheet { grid-template-columns: 1fr; gap: var(--s-4); }
  .sheet-rail {
    flex-direction: row;
    align-items: baseline;
    gap: var(--s-3);
  }
}

/* ===== Тикер отраслей =====
   Отдельная бегущая строка без шапки и подписей: только чипы-ссылки едут во всю
   ширину, как строка на приборном табло. Отрасли — кликабельны (→ /industries/). */
.proof-strip { padding: 0; }

.proof-marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  /* края растворяются — лента уходит за обрез, а не обрывается (§1.1) */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.proof-track {
  display: flex;
  width: max-content;
  animation: proof-scroll 45s linear infinite;
}

.proof-marquee:hover .proof-track { animation-play-state: paused; }

.proof-group {
  display: flex;
  flex: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.proof-group li {
  display: flex;
  border-left: 1px solid var(--border);   /* разделитель — волосяная линия (§8.10) */
}

.proof-group a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-6);
  white-space: nowrap;
  font-size: var(--t-sm);
  color: var(--text);
  text-decoration: none;
  transition: color var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out);
}

.proof-group a:hover { color: var(--primary); background: var(--bg-sunken); }
.proof-group a:focus-visible { outline: none; box-shadow: var(--sh-focus); }

.proof-group svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--text-faint);
}

.proof-group a:hover svg { color: var(--primary); }

@keyframes proof-scroll { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  /* без движения — статичный переносящийся ряд, тикер не едет */
  .proof-track { animation: none; flex-wrap: wrap; }
  .proof-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ===== Шапка /product/ ===== */
.product-hero {
  padding: calc(var(--section-y) + var(--s-8)) 0 var(--section-y);
  border-bottom: 1px solid var(--border);
}

/* Вес 900 — только дисплей и h1 (§8.13). Интерлиньяж ниже единицы: строки
   сцепляются в плиту, и заголовок работает как масса, а не набор букв. */
.product-h1 {
  font-size: var(--t-h1);
  font-weight: var(--fw-black);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  color: var(--text);
  margin: 0 0 var(--s-4);
}

.product-lead {
  font-size: var(--t-lead);
  line-height: var(--lh-body);
  color: var(--text-muted);
  max-width: var(--grid-narrow);
  margin: 0 0 var(--stack-lg);
}

.product-toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  border-top: 1px solid var(--border);
  padding-top: var(--s-4);
}

.product-toc a {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}
.product-toc a:hover { color: var(--primary); }
