/* ==========================================================================
   Anti-Rejection — overrides on top of Aigocy/Envato styles.css
   Loads LAST in the cascade. Addresses:
   1. Cyrillic fallback (Urbanist has no Cyrillic → Roboto kicks in via unicode-range)
   2. Hero background replacement (no demo images per Envato licence)
   3. Russian long-word wrapping
   4. Minor layout tweaks for our 6-step / 6-pains grids
   ========================================================================== */

/* ---------- 1. Font stack with Cyrillic fallback ---------- */
html, body,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
p, span, a, li, div, button, input, textarea, select,
.tf-btn, .tf-btn-2,
.heading-title, .heading-sub,
.text-display-1, .text-display-2, .text-body-1, .text-body-2, .text-body-3,
.text-sub-heading, .text-caption,
.nav-menu-main, .item-link, .footer-links,
.accordion-button, .accordion-body {
    font-family: "Urbanist", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

/* Russian display-size tuning: Urbanist → Roboto fallback works per-glyph,
   but we dial down letter-spacing slightly for Cyrillic density */
h1, h2, .heading-title, .text-display-2 {
    letter-spacing: -0.025em;
}

/* ---------- 2. Hero background (no demo image) ---------- */
.hero-image.no-image {
    background-image:
        radial-gradient(ellipse 60% 50% at 78% 18%, rgba(253, 58, 37, 0.28), transparent 60%),
        radial-gradient(ellipse 50% 55% at 12% 78%, rgba(253, 58, 37, 0.14), transparent 60%),
        linear-gradient(135deg, #1a1a1c 0%, #0b0b0d 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-image.no-image::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.35;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- 3. Russian long-word wrapping ---------- */
h1, h2, h3, h4, h5, h6,
.heading-title, .text-display-2,
p, li, .text-body-1, .text-body-2 {
    overflow-wrap: break-word;
    word-break: normal;
}

/* ---------- 4. Logo wordmark — "в точку." with brand-coloured accent dot ---------- */
.logo-site {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    color: var(--primary);
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}
.logo-site .logo-text {
    color: var(--primary);
}
.logo-site .logo-accent-dot {
    color: var(--brand);
    font-weight: 800;
    margin-left: 1px;
}

/* ---------- 5. Footer logo variant (inverts onto dark background) ---------- */
footer .logo-site,
footer .logo-site .logo-text {
    color: var(--white);
}

/* ---------- 6. Header: keep Aigocy defaults + force sticky pinning ---------- */
/* Aigocy ставит position: sticky без явного top → sticky по спецификации работает
   как relative. Фиксируем top: 0 чтобы pill оставался прилипшим к верху viewport
   на всех секциях. z-index повышен до 1000 — страхует от любых stacking contexts
   в секциях ниже (например, наша colored-column с z-index: 3 внутри compare). */
header.tf-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    isolation: isolate;
}

/* Header compact-mode on scroll — pill уменьшается + подъезжает вверх + получает
   тень, когда пользователь уходит со стартового экрана. Только transform-свойства,
   без reflow. Progressive enhancement через scroll-driven animations. */
@supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
        .tf-header .header-inner {
            transform-origin: top center;
            animation: ar-header-compact 1s linear both;
            animation-timeline: scroll(root);
            animation-range: 0 120px;
        }
        @keyframes ar-header-compact {
            from {
                scale: 1;
                translate: 0 0;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
                background-color: rgba(255, 255, 255, 0.86);
            }
            to {
                scale: 0.88;
                translate: 0 -16px;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
                background-color: rgba(255, 255, 255, 0.98);
            }
        }
        /* На мобиле header pill изначально меньше — translate -16px и scale 0.88
           делают его еле видимым. Снижаем агрессивность compact-mode для ≤991px:
           меньшее уменьшение и меньший подъём, чтобы навигация всегда читалась. */
        @media (max-width: 991px) {
            .tf-header .header-inner {
                animation-name: ar-header-compact-mobile;
            }
            @keyframes ar-header-compact-mobile {
                from {
                    scale: 1;
                    translate: 0 0;
                    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
                    background-color: rgba(255, 255, 255, 0.86);
                }
                to {
                    scale: 0.96;
                    translate: 0 -4px;
                    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
                    background-color: rgba(255, 255, 255, 0.98);
                }
            }
        }

        /* CTA-кнопка в шапке: box-shadow не масштабируется визуально 1:1 со scale,
           т.к. у Aigocy multi-layer shadow с крайне большими offset'ами (0 100px 80px).
           Явно интерполируем все 10 слоёв shadow к уменьшенной версии в compact-mode. */
        .tf-header .header-inner .tf-btn:not(.open-mb-menu) {
            animation: ar-header-cta-shadow 1s linear both;
            animation-timeline: scroll(root);
            animation-range: 0 120px;
        }
        @keyframes ar-header-cta-shadow {
            from {
                box-shadow:
                    0px -3px 0px 0px #080808 inset,
                    0px 1px 0px 0px #FFFFFF4D inset,
                    0px 2.77px 2.21px 0px #0000001F,
                    0px 6.65px 5.32px 0px #00000021,
                    0px 12.52px 10.02px 0px #00000022,
                    0px 22.34px 17.87px 0px #00000024,
                    0px 41.78px 33.42px 0px #00000026,
                    0px 100px 80px 0px #00000026,
                    0px 3px 3px 0px #00000024,
                    0px 2.77px 2.21px 0px #0000001F;
            }
            to {
                box-shadow:
                    0px -2px 0px 0px #080808 inset,
                    0px 1px 0px 0px #FFFFFF4D inset,
                    0px 1px 1.5px 0px #00000015,
                    0px 2px 3px 0px #00000015,
                    0px 3px 5px 0px #00000015,
                    0px 4px 7px 0px #00000018,
                    0px 6px 10px 0px #00000018,
                    0px 10px 16px 0px #00000018,
                    0px 1.5px 2px 0px #00000015,
                    0px 1px 1.5px 0px #00000015;
            }
        }
    }
}

/* Anchor scroll offset so sticky header doesn't cover targets */
[id] {
    scroll-margin-top: 110px;
}

/* ==========================================================================
   AR-PAST-HERO — ТОЛЬКО МОБАЙЛ (≤991px) — gating navbar бургера и cookie-баннера
   появлением второй секции. Класс ставится JS'ом (см. inline-скрипт в index.html)
   когда .ar-how начинает входить в viewport. На hero (без класса) элементы
   полностью скрыты на мобиле, чтобы обойти баг iOS Safari, при котором
   sticky-секция с will-change + view-timeline анимацией ломала позиционирование
   fixed-элементов на странице.
   Бонус: бургер-меню недоступно для клика на hero на мобиле, поэтому панель
   меню физически невозможно открыть в проблемной области.
   На десктопе CTA-кнопка и cookie-баннер работают как раньше — без gating.
   ========================================================================== */

@media (max-width: 991px) {
    /* CTA + бургер в навбаре на мобиле: плавно поднимаются + проявляются. */
    .tf-header .header-inner .tf-btn {
        transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1),
                    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
                    visibility 0s linear 360ms;
    }
    body:not(.ar-past-hero) .tf-header .header-inner .tf-btn {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px) scale(0.85);
    }
    body.ar-past-hero .tf-header .header-inner .tf-btn {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1),
                    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
                    visibility 0s;
    }

    /* Cookie-баннер на мобиле: пока нет ar-past-hero — полностью спрятан. */
    body:not(.ar-past-hero) .ar-cookie-banner {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(40px) !important;
    }
}

/* Reduced motion для past-hero gating (только мобайл) */
@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
    .tf-header .header-inner .tf-btn {
        transition: opacity 120ms linear, visibility 0s !important;
        transform: none !important;
    }
    body:not(.ar-past-hero) .tf-header .header-inner .tf-btn {
        transform: none !important;
    }
    body:not(.ar-past-hero) .ar-cookie-banner {
        transform: none !important;
    }
}

/* ---------- 7. Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .effectFade { opacity: 1 !important; transform: none !important; }
}

/* ---------- 8. Page background (overrides body colour for landing) ---------- */
body.landing-ar {
    background-color: var(--body);
    /* overflow-x: clip обрезает горизонтальный оверфлоу БЕЗ создания нового
       scrolling container — поэтому, в отличие от overflow-x: hidden, не ломает
       position: sticky для шапки и view-timeline анимации. Поддержка:
       Chrome 90+, Safari 16+, Firefox 81+ (для нашей аудитории — везде). */
    overflow-x: clip;
}

/* ---------- 9. Utility: max-content width for narrow readable paragraphs ---------- */
.max-prose {
    max-width: 62ch;
}

/* ---------- 10. Small polish: selection ---------- */
::selection {
    background: var(--brand);
    color: var(--white);
}

/* ==========================================================================
   HERO — custom composition (full-bleed, gradient blob + chrome reflections)
   Sits on top of Aigocy .section-hero to override inset/image behavior.
   ========================================================================== */

.section-hero.ar-hero {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    background-color: #ECECEE;
    position: relative;
    border-radius: 0;
}

.ar-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    /* Мягкий фейд к body-цвету внизу — убирает «линию» на стыке с следующей секцией.
       Blob + reflections + noise прозрачно растворяются, body-фон проступает. */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 68%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 68%, transparent 100%);
}

.ar-hero-reflections {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 50% 45% at 12% 25%, rgba(255,255,255,0.7), transparent 55%),
        radial-gradient(ellipse 40% 35% at 5% 80%, rgba(205,210,220,0.45), transparent 62%),
        radial-gradient(ellipse 30% 25% at 35% 90%, rgba(255,255,255,0.4), transparent 65%);
}

.ar-hero-blob {
    position: absolute;
    top: 8%;
    right: -280px;
    width: 960px;
    height: 860px;
    background: radial-gradient(ellipse at center, #FF4B2B 0%, #E11D1D 52%, rgba(225,29,29,0) 85%);
    filter: blur(120px);
    opacity: 0.7;
    transform: translateZ(0);
    will-change: transform;
}

.ar-hero-blob.ar-hero-blob--soft {
    top: 55%;
    right: 40%;
    width: 520px;
    height: 420px;
    opacity: 0.25;
    filter: blur(140px);
}

.ar-hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.55  0 0 0 0 0.58  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.section-hero.ar-hero > .container {
    position: relative;
    z-index: 2;
}

.section-hero.ar-hero .content-wrap {
    padding: 236px 0 80px;
    text-align: center;
    position: relative;
}

@media (max-width: 991px) {
    .section-hero.ar-hero .content-wrap {
        padding: 170px 0 80px;
    }
}

/* ---------- Hero kicker (section-number / eyebrow) ---------- */
.ar-hero-kicker {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary);
    margin: 0 0 36px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.ar-hero-kicker__num {
    color: var(--brand);
    font-weight: 700;
}
.ar-hero-kicker__dash {
    color: rgba(0, 0, 0, 0.22);
    font-weight: 400;
}

/* ---------- H1 — solid dark, bold, large ---------- */
.ar-hero-title {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 800;
    font-size: clamp(64px, 9vw, 160px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #0E0E10;
    margin: 0 0 36px;
    text-align: center;
    -webkit-text-fill-color: #0E0E10;
    background: none;
}

.ar-hero-title .ar-line1,
.ar-hero-title .ar-line2 {
    display: block;
}

.ar-hero-title .ar-line2 {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.5vw, 28px);
    flex-wrap: wrap;
    justify-content: center;
    line-height: 0.95;
}

/* Signal words — brand-coloured, override any webkit-text-fill inheritance */
.ar-hero-title .text-signal {
    color: var(--brand);
    -webkit-text-fill-color: var(--brand);
}

/* ---------- Decorative red pill + scattered stickers ---------- */
.ar-hero-pillgroup {
    position: relative;
    display: inline-block;
    width: 260px;
    height: 150px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Mobile-only pillgroup (duplicate, sibling of H1) — hidden on desktop/tablet */
.ar-hero-pillgroup--mobile {
    display: none;
}

.ar-hero-pill-bg {
    position: absolute;
    top: 60px;
    left: 16px;
    width: 224px;
    height: 72px;
    border-radius: 999px;
    background: linear-gradient(180deg, #EA2B16 0%, #FF3B26 100%);
    box-shadow:
        0 3px 5px rgba(0, 0, 0, 0.08),
        0 22px 37px rgba(255, 59, 0, 0.22),
        0 56px 83px rgba(255, 59, 0, 0.2),
        0 14px 34px rgba(255, 59, 0, 0.3),
        0 1px 2px rgba(255, 59, 0, 0.4);
}

.ar-sticker {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.16),
        0 4px 10px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
    line-height: 1;
    overflow: hidden;
}

.ar-sticker.st-hh {
    left: 4px;
    top: 0;
    background: #fff;
    color: #D50000;
    -webkit-text-fill-color: #D50000;
    font-size: 24px;
    --tilt: -8deg;
}

.ar-sticker.st-linkedin {
    left: 92px;
    top: 8px;
    background: #0A66C2;
    color: #fff;
    -webkit-text-fill-color: #fff;
    font-size: 26px;
    font-weight: 700;
    font-style: italic;
    --tilt: 6deg;
}

.ar-sticker.st-habr {
    right: 0;
    top: 50px;
    flex-direction: column;
    gap: 1px;
    padding: 5px 5px;
    background: #fff;
    --tilt: -5deg;
}
.ar-sticker.st-habr b {
    color: #65A43C;
    -webkit-text-fill-color: #65A43C;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}
.ar-sticker.st-habr span {
    font-size: 8px;
    font-weight: 700;
    color: #65A43C;
    -webkit-text-fill-color: #65A43C;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ar-sticker.st-sj {
    left: 52px;
    bottom: 0;
    top: auto;
    background: #fff;
    color: #FF6B35;
    -webkit-text-fill-color: #FF6B35;
    font-size: 12px;
    letter-spacing: -0.03em;
    white-space: nowrap;
    --tilt: 10deg;
}

/* Appear animation: fade + scale, respects each sticker's tilt via --tilt */
@keyframes ar-sticker-appear {
    from { opacity: 0; transform: rotate(var(--tilt, 0deg)) scale(0.8) translateY(8px); }
    to   { opacity: 1; transform: rotate(var(--tilt, 0deg)) scale(1) translateY(0); }
}

/* Idle float: starts after appear completes */
@keyframes ar-sticker-float-a {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50%      { transform: rotate(-6deg) translateY(-4px); }
}
@keyframes ar-sticker-float-b {
    0%, 100% { transform: rotate(6deg) translateY(0); }
    50%      { transform: rotate(4deg) translateY(-5px); }
}
@keyframes ar-sticker-float-c {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50%      { transform: rotate(-3deg) translateY(-3px); }
}
@keyframes ar-sticker-float-d {
    0%, 100% { transform: rotate(10deg) translateY(0); }
    50%      { transform: rotate(8deg) translateY(-4px); }
}

/* Только float (appear убран) — стикеры видны сразу, покачиваются бесконечно.
   Мелкие разные delay (0, 0.2s, 0.4s, 0.6s) чтобы не синхронно wobbly. */
.ar-sticker.st-hh       { animation: ar-sticker-float-a 7s ease-in-out infinite; }
.ar-sticker.st-linkedin { animation: ar-sticker-float-b 8s ease-in-out infinite 0.2s; }
.ar-sticker.st-habr     { animation: ar-sticker-float-c 9s ease-in-out infinite 0.4s; }
.ar-sticker.st-sj       { animation: ar-sticker-float-d 7.5s ease-in-out infinite 0.6s; }

@media (max-width: 575px) {
    .ar-hero-pillgroup {
        width: 260px;
        height: 150px;
    }
    .ar-hero-pill-bg {
        width: 220px;
        height: 68px;
        top: 60px;
        left: 20px;
    }
    .ar-sticker { width: 64px; height: 64px; font-size: 20px; }
    .ar-sticker.st-hh { font-size: 24px; }
    .ar-sticker.st-linkedin { font-size: 26px; left: 90px; }
    .ar-sticker.st-habr b { font-size: 22px; }
    .ar-sticker.st-habr span { font-size: 8px; }
    .ar-sticker.st-sj { font-size: 12px; letter-spacing: -0.03em; white-space: nowrap; }
}

/* ---------- Subtitle ---------- */
.ar-hero-sub {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #3A3A3C;
    max-width: 640px;
    margin: 0 auto 40px;
    font-weight: 400;
}

/* ---------- CTAs row ---------- */
.ar-hero-ctas {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.ar-hero-ctas .tf-btn,
.ar-hero-ctas .tf-btn-2 {
    padding: 16px 28px;
    font-size: 16px;
}

/* ---------- Reassure row under CTAs ---------- */
.ar-hero-reassure {
    margin: 28px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: "Urbanist", "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary);
}
.ar-hero-reassure .sep {
    color: rgba(0, 0, 0, 0.18);
    font-weight: 400;
}

/* ==========================================================================
   HERO — primary CTA (flat, centered, with lift-on-hover)
   ========================================================================== */

.ar-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 60px;
    padding: 0 36px;
    min-width: 240px;
    background: #0E0E10;
    color: #ffffff;
    font-family: "Urbanist", "Roboto", sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.005em;
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
    cursor: pointer;
}
.ar-hero-cta:hover,
.ar-hero-cta:focus-visible {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.ar-hero-cta:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

/* ==========================================================================
   HERO — load animations (stagger fade-up + blob fade-in + sticker appear)
   ========================================================================== */

/* Entrance animations removed — элементы появляются сразу в финальном виде.
   Класс .ar-fade-up остался в HTML (безвредно), CSS-рулы превратились в no-op. */
.ar-fade-up {
    opacity: 1;
}

.ar-hero-blob {
    opacity: 0.7;
}
.ar-hero-blob.ar-hero-blob--soft {
    opacity: 0.25;
}

/* ==========================================================================
   SCROLL STACK — sticky hero + slide-over reveal of "how it works"
   Portage 21st.dev hero-scroll-animation (Framer Motion) на нативный CSS
   view-timeline. При скролле hero «уезжает назад» (scale+rotate), секция
   «Как работает» «выныривает» снизу и накрывает hero.
   ========================================================================== */

.ar-scroll-stack {
    position: relative;
}
.ar-scroll-stack .section-hero.ar-hero {
    position: sticky;
    top: 0;
    z-index: 1;
}
.ar-scroll-stack .ar-how {
    position: relative;
    z-index: 2;
}

/* will-change: transform создаёт композитный слой и новый containing-block.
   На iOS Safari в комбинации с position: sticky и view-timeline это ломает
   позиционирование fixed-элементов (cookie-banner, mobile-menu) — они
   кешируют позицию относительно sticky-родителя на момент загрузки страницы.
   Поэтому на мобиле will-change снимаем — анимации scroll-stack там всё
   равно отключены (см. ниже). На десктопе оставляем для GPU-acceleration. */
@media (min-width: 992px) {
    .ar-scroll-stack .section-hero.ar-hero {
        will-change: transform;
    }
    .ar-scroll-stack .ar-how {
        will-change: transform;
    }
}

/* Scroll-driven transform — только для десктопа (≥992px) и только для браузеров
   с поддержкой view-timeline (Chrome 115+ / Edge 115+ / Safari 17.4+ / Firefox 133+).
   На МОБИЛЕ анимация ОТКЛЮЧЕНА — на iOS Safari её активность ломала позицию
   fixed-элементов (cookie-banner, menu-panel) по всей странице. Без анимации
   sticky-hero просто стоит, ar-how обычным образом наезжает сверху при скролле.
   Для старых браузеров — sticky всё равно работает, hero просто не скейлится. */
@supports (animation-timeline: view()) {
    @media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
        .ar-scroll-stack .ar-how {
            view-timeline-name: --ar-how-view;
            view-timeline-axis: block;
        }
        /* Non-zero duration обязательно — без неё shorthand defaults duration=0s,
           что заставляет браузер считать анимацию завершённой и применять to-state
           ещё до того, как timeline начнёт управлять прогрессом. Timeline потом
           сам переопределяет длительность под скролл. */
        .ar-scroll-stack .section-hero.ar-hero {
            animation: ar-hero-recede 1s linear both;
            animation-timeline: --ar-how-view;
            animation-range: entry 0% entry 100%;
        }
        .ar-scroll-stack .ar-how {
            animation: ar-how-emerge 1s linear both;
            animation-timeline: --ar-how-view;
            animation-range: entry 0% entry 100%;
        }
        @keyframes ar-hero-recede {
            from { transform: scale(1) rotate(0deg); }
            to   { transform: scale(0.85) rotate(-4deg); }
        }
        @keyframes ar-how-emerge {
            from { transform: scale(0.88) rotate(4deg); }
            to   { transform: scale(1) rotate(0deg); }
        }
    }
}

/* ---------- Respect user motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    .ar-fade-up,
    .ar-hero-blob,
    .ar-sticker {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .ar-hero-blob       { opacity: 0.7 !important; }
    .ar-hero-blob--soft { opacity: 0.25 !important; }
    .ar-sticker.st-hh       { transform: rotate(-8deg) !important; }
    .ar-sticker.st-linkedin { transform: rotate(6deg)  !important; }
    .ar-sticker.st-habr     { transform: rotate(-5deg) !important; }
    .ar-sticker.st-sj       { transform: rotate(10deg) !important; }
}

/* ---------- Nav link — hover-only underline with scaleX animation (no active state) ---------- */
.tf-header .item-link {
    position: relative;
    color: var(--primary);
    text-decoration: none;
    padding: 4px 0;
    transition: color 180ms ease;
}
.tf-header .item-link::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    width: 100%;
    background-color: var(--brand);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 220ms ease;
}
/* focus-visible works on all devices (keyboard accessibility) */
.tf-header .item-link:focus-visible::before {
    transform: scaleX(1);
}
.tf-header .item-link:focus-visible {
    color: var(--brand);
}
/* hover only on devices that actually hover (not touch) */
@media (hover: hover) {
    .tf-header .item-link:hover::before {
        transform: scaleX(1);
    }
    .tf-header .item-link:hover {
        color: var(--brand);
    }
}

/* ==========================================================================
   HERO — breakpoint polish & fixes (pass 2, responsive tuning)
   ========================================================================== */

/* Navbar pill: opaque frosted glass — сильные статические значения блюра,
   чтобы контент никогда не просвечивал. Только background-color анимируется
   динамически (keyframes ниже) — blur/saturate остаются одинаково сильными
   на всех скроллах, это самый надёжный путь без интерполяции filter-функций. */
.tf-header .header-inner {
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(42px) saturate(1.7);
    -webkit-backdrop-filter: blur(42px) saturate(1.7);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

/* Fallback для браузеров без backdrop-filter (некоторые android-вебвью,
   старый edge) — плотный фон, без стекла, но читаемо */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .tf-header .header-inner {
        background-color: rgba(255, 255, 255, 0.98);
    }
}

/* Blob: push lower so it sits under the pill without bleeding through */
.ar-hero-blob {
    top: 25%;
    right: -320px;
}

/* H1: rebalance ratio 3:1 vs sub — smaller max, tighter line-height */
.ar-hero-title {
    font-size: clamp(48px, 5.5vw, 88px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 800;
    max-width: 1100px;
    margin: 0 auto;
    text-wrap: balance;
    padding-left: 16px;
    padding-right: 16px;
}
/* Tablet + mobile: pill wraps BELOW H1 text as separate block */
@media (max-width: 1199px) {
    .ar-hero-title .ar-line2 {
        flex-direction: column;
        gap: 24px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .ar-hero-title {
        font-size: clamp(44px, 6vw, 72px);
        line-height: 1.1;
        max-width: 680px;
    }
    .ar-hero-blob {
        filter: blur(200px);
        top: -10%;
        right: -380px;
    }
    .ar-sticker {
        box-shadow:
            0 18px 36px rgba(0, 0, 0, 0.1),
            0 4px 10px rgba(0, 0, 0, 0.05),
            0 0 0 1px rgba(0, 0, 0, 0.04);
    }
    /* Tablet pill below H1: slightly larger than mobile, cards 56 */
    .ar-hero-pillgroup {
        width: 340px;
        height: 160px;
    }
    .ar-hero-pill-bg {
        width: 296px;
        height: 66px;
        top: 60px;
        left: 22px;
    }
    .ar-sticker {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        font-size: 18px;
    }
    .ar-sticker.st-hh { left: 8px; top: 0; font-size: 22px; }
    .ar-sticker.st-linkedin { left: 108px; top: 6px; font-size: 24px; }
    .ar-sticker.st-habr { right: 8px; top: 52px; }
    .ar-sticker.st-habr b { font-size: 20px; }
    .ar-sticker.st-habr span { font-size: 8px; }
    .ar-sticker.st-sj { left: 76px; top: 96px; bottom: auto; font-size: 12px; letter-spacing: -0.03em; white-space: nowrap; }
}

@media (max-width: 767px) {
    .ar-hero-title {
        font-size: clamp(32px, 8.5vw, 42px);
        line-height: 1.05;
        /* Расширяем контейнер на широких мобильных (≥ ~440px), чтобы «Резюме,
           которое» поместилось в одну строку. На узких (iPhone SE, 320–380px)
           ограничиваем по реальной ширине viewport, чтобы не было оверфлоу. */
        max-width: min(440px, calc(100vw - 32px));
        text-wrap: balance;
    }
    .ar-hero-title .ar-line2 {
        gap: 20px;
    }
    /* Mobile-only: «Резюме, которое» — первая строка, «пробивает» — вторая.
       white-space: nowrap на .ar-line1-a принудительно держит «Резюме, которое»
       на одной строке (без него балансировка text-wrap: balance ломает фразу
       на «Резюме,» / «которое»). .ar-line1-b → display: block уносит «пробивает»
       на новую строку. На десктопе оба span'а inline и склеиваются. */
    .ar-hero-title .ar-line1 .ar-line1-a {
        white-space: nowrap;
    }
    .ar-hero-title .ar-line1 .ar-line1-b {
        display: block !important;
    }
}

/* Subtitle: larger lead-type on all breakpoints; vertical rhythm via H1/CTA margins */
.ar-hero-sub {
    font-size: clamp(20px, 1.7vw, 26px);
    line-height: 1.5;
    font-weight: 400;
    color: #3A3A3C;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
@media (max-width: 767px) {
    .ar-hero-sub {
        font-size: 17px;
        line-height: 1.5;
        max-width: 320px;
    }
}

/* Vertical rhythm per spec: H1→sub 64px, sub→CTA 40px (mobile: 40/32) */
.ar-hero-title {
    margin-bottom: 64px !important;
}
.ar-hero-ctas {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
@media (max-width: 767px) {
    /* H1 has no bottom margin on mobile — pill sibling has its own margin-top 28 */
    .ar-hero-title { margin-bottom: 0 !important; }
    .ar-hero-ctas { margin-top: 24px; }
}

/* Mobile CTA: compact fit, not full-width */
@media (max-width: 767px) {
    .ar-hero-ctas {
        margin-top: 24px;
        width: 100%;
        justify-content: center;
    }
    .ar-hero-cta {
        width: min(88%, 320px);
        height: 56px;
        padding: 0 28px;
        font-size: 16px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   MOBILE PILL — compact unified composition, symmetric ∧ layout over capsule
   Container 260×100, capsule 220×64, 4 cards 44×44. All cards white bg with
   brand-coloured content (icons visible), capsule pixel-positioned to avoid
   transform conflicts with .ar-fade-up animation.
   ========================================================================== */
@media (max-width: 767px) {
    /* Hide inline pillgroup inside H1; show duplicate sibling below H1 */
    .ar-hero-pillgroup--inline { display: none !important; }

    .ar-hero-pillgroup--mobile {
        display: block;
        position: relative;
        width: 260px;
        height: 100px;
        margin: 28px auto 32px;
        overflow: visible;
    }

    /* Capsule: pixel-positioned (no transform → no conflict with ar-fade-up) */
    .ar-hero-pillgroup--mobile .ar-hero-pill-bg {
        position: absolute;
        left: 20px;
        top: 28px;
        width: 220px;
        height: 44px;
        border-radius: 999px;
        background: linear-gradient(135deg, #FF4B2B, #E11D1D);
        box-shadow: 0 18px 26px rgba(225, 29, 29, 0.22);
    }

    /* All cards: 44×44 white pill with soft shadow */
    .ar-hero-pillgroup--mobile .ar-sticker {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
    }

    /*
       Symmetric ∧ composition — outer cards (hh, Хабр) sit lower with more tilt,
       inner cards (LinkedIn, SuperJob) peek higher. All 4 cards within 260×100.
    */

    /* Mobile stickers — appear animation убран, static transform: rotate()
       т.к. на мобиле float-анимации нет (была disabled для избежания конфликта
       наклонов с desktop-keyframes). */

    /* hh — outer-left, lower, tilted left */
    .ar-hero-pillgroup--mobile .ar-sticker.st-hh {
        left: 18px;  top: 12px;
        right: auto; bottom: auto;
        transform: rotate(-8deg);
        background: #fff;
        color: #D50000;
        -webkit-text-fill-color: #D50000;
        font-size: 20px;
        animation: none;
    }

    /* LinkedIn — inner-left, higher, tilted right */
    .ar-hero-pillgroup--mobile .ar-sticker.st-linkedin {
        left: 74px;  top: -2px;
        right: auto; bottom: auto;
        transform: rotate(5deg);
        background: #0A66C2;
        color: #fff;
        -webkit-text-fill-color: #fff;
        font-size: 22px;
        font-style: italic;
        font-weight: 800;
        animation: none;
    }

    /* SuperJob — inner-right, higher, tilted left */
    .ar-hero-pillgroup--mobile .ar-sticker.st-sj {
        left: 138px; top: -2px;
        right: auto; bottom: auto;
        transform: rotate(-4deg);
        background: #fff;
        color: #FF6B35;
        -webkit-text-fill-color: #FF6B35;
        font-size: 9px;
        letter-spacing: -0.03em;
        white-space: nowrap;
        animation: none;
    }

    /* Хабр Карьера — outer-right, lower, tilted right */
    .ar-hero-pillgroup--mobile .ar-sticker.st-habr {
        right: 14px; top: 12px;
        left: auto;  bottom: auto;
        transform: rotate(8deg);
        background: #fff;
        animation: none;
    }
    .ar-hero-pillgroup--mobile .ar-sticker.st-habr b    { font-size: 18px; color: #65A43C; -webkit-text-fill-color: #65A43C; }
    .ar-hero-pillgroup--mobile .ar-sticker.st-habr span { font-size: 7px; color: #65A43C; -webkit-text-fill-color: #65A43C; }

    /* Soft white glow: recenter so it stays visible on auto-height hero */
    .ar-hero-blob.ar-hero-blob--soft {
        bottom: auto;
        top: 55%;
        left: -15%;
    }
}

/* Hero padding: room on mobile for CTAs + scroll indicator */
@media (max-width: 767px) {
    /* Hero = ровно один viewport на мобиле.
       Progressive enhancement: 100vh (legacy) → 100svh (safe) → 100dvh (current viewport).
       dvh динамически подстраивается под адрес-бар iOS Safari / Chrome — hero всегда точно
       занимает видимую область, следующая секция за нижней границей. */
    .section-hero.ar-hero {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
    }
    .section-hero.ar-hero .content-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        padding: 104px 20px 40px;
    }

    /* Mobile blob: smaller footprint, shifted further right/up so bottom half stays neutral */
    .ar-hero-blob {
        width: 90vw;
        height: 90vw;
        filter: blur(160px);
        top: -15%;
        right: -50%;
    }
    .ar-hero-blob:not(.ar-hero-blob--soft) {
        opacity: 0.3;
    }
    /* Re-purpose soft blob as left-bottom white glow for visual balance */
    .ar-hero-blob.ar-hero-blob--soft {
        width: 40vw;
        height: 40vw;
        left: -30%;
        top: auto;
        bottom: -20%;
        right: auto;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
        filter: blur(120px);
        opacity: 1;
    }
}

/* Tablet content-wrap padding: tighter than desktop, CTA→bottom 64 */
@media (min-width: 768px) and (max-width: 1199px) {
    .section-hero.ar-hero .content-wrap {
        padding: 200px 0 64px;
    }
}

/* Ghost CTA: bump white-ness so it reads against #ECECEE body */
.ar-hero-ctas .tf-btn-2 {
    background:
        radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%),
        linear-gradient(0deg, #FFFFFF, #FFFFFF);
}

/* ==========================================================================
   HOW IT WORKS — premium redesign with hero-continuity atmosphere
   Cards hierarchy (1-2 free = emphasized), integrated progress line,
   icon pills в стиле hero-стикеров, scroll-driven progress fill,
   мобильный вертикальный таймлайн.
   ========================================================================== */

.ar-how {
    padding: 120px 0 64px;
    background-color: var(--body);
    position: relative;
    z-index: 5;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    box-shadow: 0 -24px 48px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
@media (max-width: 1199px) {
    .ar-how {
        padding: 80px 0 48px;
        border-top-left-radius: 28px;
        border-top-right-radius: 28px;
        box-shadow: 0 -18px 36px rgba(0, 0, 0, 0.05);
    }
}
@media (max-width: 767px) {
    .ar-how {
        padding: 64px 0 40px;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        box-shadow: 0 -14px 28px rgba(0, 0, 0, 0.04);
    }
}

/* ---- Atmospheric background: soft red/white glows like hero ---- */
.ar-how__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    /* Bottom silver-white glow — зеркало top glow у pricing. Много stop'ов
       + fade до 100% = нет видимого «ободка» glow-зоны, только мягкое
       высветление, растворяющееся в body без края. */
    background: radial-gradient(
        ellipse 120% 90% at 50% 110%,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.42) 10%,
        rgba(255, 255, 255, 0.28) 22%,
        rgba(255, 255, 255, 0.16) 38%,
        rgba(255, 255, 255, 0.08) 55%,
        rgba(255, 255, 255, 0.03) 72%,
        transparent 92%
    );
}
.ar-how__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
}
.ar-how__glow--left {
    top: 10%;
    left: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(253, 58, 37, 0.10) 0%, transparent 70%);
}
.ar-how__glow--right {
    bottom: 5%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(253, 58, 37, 0.07) 0%, transparent 70%);
}
@media (max-width: 767px) {
    .ar-how__glow--left { width: 280px; height: 280px; filter: blur(100px); }
    .ar-how__glow--right { width: 320px; height: 320px; filter: blur(100px); }
}

.ar-how__container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Header ---- */
.ar-how__header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}
@media (max-width: 767px) {
    .ar-how__header { margin-bottom: 28px; }
}

.ar-how__eyebrow {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand);
    margin: 0 0 16px;
}

.ar-how__title {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #0E0E10;
    margin: 0 0 28px;
    text-wrap: balance;
}

/* ---- Free-promise pill: акцентный конверсионный badge ---- */
.ar-how__promise {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.ar-how__free-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(253, 58, 37, 0.18);
    color: #0E0E10;
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(253, 58, 37, 0.12),
                0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 220ms ease,
                border-color 220ms ease;
}
/* Hover/focus — работает как CTA-кнопка: лёгкий подъём + усиленная тень */
a.ar-how__free-badge:hover,
a.ar-how__free-badge:focus-visible {
    transform: translateY(-2px);
    color: #0E0E10;
    border-color: rgba(253, 58, 37, 0.35);
    box-shadow: 0 14px 36px rgba(253, 58, 37, 0.22),
                0 3px 8px rgba(253, 58, 37, 0.12),
                0 1px 0 rgba(255, 255, 255, 0.95) inset;
}
a.ar-how__free-badge:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

/* CTA-контейнер под карточками — центрирует badge и задаёт верхний отступ */
.ar-how__cta {
    text-align: center;
    margin-top: 56px;
}
@media (max-width: 767px) {
    .ar-how__cta { margin-top: 40px; }
}
.ar-how__free-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}
.ar-how__promise-sub {
    font-size: 13px;
    color: var(--secondary);
    margin: 0;
}

/* ---- Integrated progress line ---- */
.ar-how__progress {
    position: relative;
    max-width: 1040px;
    margin: 0 auto 40px;
    height: 24px;
    padding: 0 80px;
}
.ar-how__progress-track {
    position: absolute;
    top: 50%;
    left: 80px;
    right: 80px;
    height: 2px;
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-50%);
    border-radius: 2px;
}
.ar-how__progress-fill {
    position: absolute;
    top: 50%;
    left: 80px;
    height: 2px;
    width: 0%;
    max-width: calc(100% - 160px);
    background: linear-gradient(90deg, var(--brand) 0%, #FF6B4A 100%);
    border-radius: 2px;
    transform: translateY(-50%);
    box-shadow: 0 0 12px rgba(253, 58, 37, 0.35);
}
.ar-how__progress-dots {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
}
.ar-how__progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
}
/* Primary dots (3-4): brand-red с ring-glow — climax шага */
.ar-how__progress-dot--primary {
    width: 16px;
    height: 16px;
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 0 0 5px rgba(253, 58, 37, 0.15),
                0 4px 10px rgba(253, 58, 37, 0.4);
}

@media (max-width: 1199px) {
    .ar-how__progress { display: none; }
}

/* ---- Grid of step cards ---- */
.ar-how__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
@media (max-width: 1199px) {
    .ar-how__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 767px) {
    .ar-how__grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-left: 44px;
    }
    /* Mobile vertical timeline — линия переходит в brand-red в нижней половине (premium шаги 3-4) */
    .ar-how__grid::before {
        content: "";
        position: absolute;
        left: 15px;
        top: 32px;
        bottom: 32px;
        width: 2px;
        background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            var(--brand) 50%,
            var(--brand) 100%);
        border-radius: 2px;
    }
}

/* ---- Step card ---- */
.ar-how__card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 320ms ease,
                border-color 320ms ease;
}
/* Cards 1-2 (free): minimalistic, белые preliminary. Только tag отличает. */
.ar-how__card--free {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
}

/* Cards 3-4 (premium): идентичны по цвету и фоновым highlight шагам 1-2.
   Differentiator идёт ТОЛЬКО через typography: огромный brand-red номер 03/04
   (см. .ar-how__card--premium .ar-how__card-num ниже) и текст tag «В пакете 990 ₽». */
.ar-how__card--premium {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
}

@media (hover: hover) {
    .ar-how__card:hover {
        transform: translateY(-8px);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08),
                    0 12px 24px rgba(253, 58, 37, 0.08);
        border-color: rgba(253, 58, 37, 0.25);
    }
    .ar-how__card:hover .ar-how__icon-pill {
        transform: rotate(0deg) scale(1.05);
    }
}

/* Mobile timeline dot on card (::after чтобы не конфликтовать с ::before radial-glow на premium) */
@media (max-width: 767px) {
    .ar-how__card::after {
        content: "";
        position: absolute;
        left: -35px;
        top: 34px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #fff;
        border: 2px solid rgba(0, 0, 0, 0.15);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        z-index: 2;
    }
    /* Premium шаги (3-4) — яркие точки с ring-glow */
    .ar-how__card--premium::after {
        width: 16px;
        height: 16px;
        left: -37px;
        background: var(--brand);
        border-color: var(--brand);
        box-shadow: 0 0 0 5px rgba(253, 58, 37, 0.15),
                    0 4px 10px rgba(253, 58, 37, 0.4);
    }
}

/* ---- Card head: icon + free-tag ---- */
.ar-how__card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.ar-how__icon-pill {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08),
                0 2px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--brand);
    flex-shrink: 0;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* Per-card tilts for «небрежно разложили» sticker-feel */
.ar-how__card:nth-child(1) .ar-how__icon-pill { transform: rotate(-3deg); }
.ar-how__card:nth-child(2) .ar-how__icon-pill { transform: rotate(2deg); }
.ar-how__card:nth-child(3) .ar-how__icon-pill { transform: rotate(-2deg); }
.ar-how__card:nth-child(4) .ar-how__icon-pill { transform: rotate(3deg); }

.ar-how__free-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(253, 58, 37, 0.25);
}

/* ---- Number: default muted (preliminary), brand-red + glow на premium (climax) ---- */
.ar-how__card-num {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 800;
    font-size: 48px;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: rgba(14, 14, 16, 0.18);
    margin: 0 0 4px;
}
.ar-how__card--premium .ar-how__card-num {
    font-size: 80px;
    color: var(--brand);
    filter: drop-shadow(0 0 28px rgba(253, 58, 37, 0.5));
}

.ar-how__card-title {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: #0E0E10;
    margin: 8px 0 4px;
}

.ar-how__card-time {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}

.ar-how__card-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #3A3A3C;
    margin: 0 0 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ---- Benefits: airy, not a wall of text ---- */
.ar-how__benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ar-how__benefits li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.45;
    color: #3A3A3C;
}
.ar-how__benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0.5;
}
.ar-how__card--free .ar-how__benefits li::before {
    opacity: 0.75;
}

/* ---- Scroll-driven animations (progress fill + card entrance) ---- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        /* Progress fill grows as section scrolls through viewport */
        .ar-how__progress-fill {
            animation: ar-how-progress-fill 1s linear both;
            animation-timeline: --ar-how-view;
            animation-range: entry 40% cover 60%;
        }
        @keyframes ar-how-progress-fill {
            from { width: 0%; }
            to   { width: calc(100% - 160px); }
        }

        /* Cards enter on scroll with subtle fade-up stagger */
        .ar-how__card {
            animation: ar-how-card-enter 1s cubic-bezier(0.22, 1, 0.36, 1) both;
            animation-timeline: view();
            animation-range: entry 10% cover 15%;
        }
        @keyframes ar-how-card-enter {
            from { opacity: 0; transform: translateY(32px); }
            to   { opacity: 1; transform: translateY(0); }
        }
    }
}

/* ==========================================================================
   SECTION FADE — растушёвка границы между how и pricing.
   Перекрывает шов body-color блоком с subtle 3-stop gradient (body → warm → body).
   Через negative margins «ест» по 50px с обеих секций → layout не сдвигается,
   z-index: 10 поднимает fade над z-index: 5 у .ar-how.
   ========================================================================== */

.ar-section-fade {
    height: 100px;
    margin-top: -50px;
    margin-bottom: -50px;
    position: relative;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        var(--body) 0%,
        var(--body) 100%
    );
}
@media (max-width: 767px) {
    .ar-section-fade {
        height: 60px;
        margin-top: -30px;
        margin-bottom: -30px;
    }
}

/* Между pricing и compare: pricing-glow теперь сам гаснет к низу секции
   (центр свечения поднят к 70%). Мост — плоский body, только физически
   перекрывает субпиксельную линию на стыке. Никакого матчинга тинтов. */
.ar-section-fade--pc {
    height: 80px;
    margin-top: -40px;
    margin-bottom: -40px;
}

/* ==========================================================================
   PRICING SECTION — port 21st.dev pricing-section-1, адаптация под 2 тарифа
   ========================================================================== */

.ar-pricing {
    position: relative;
    margin-top: -1px;
    padding: 48px 0 80px;
    background-color: var(--body);
    overflow: hidden;
    /* Force GPU compositor layer — сравнивает compositor-статус с .ar-how
       (у которой z-index+box-shadow уже триггерят layer). При совпадении
       статусов anti-aliasing линия на стыке слоёв исчезает. */
    transform: translateZ(0);
}
@media (max-width: 1199px) {
    .ar-pricing { padding: 32px 0 56px; }
}
@media (max-width: 767px) {
    .ar-pricing { padding: 24px 0 48px; }
}

/* Subtle radial glow фон — mirror of hero atmosphere */
.ar-pricing__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        /* Top silver-white glow — зеркало bottom glow у how. Много stop'ов,
           fade до 100%, без видимого края — соприкасается с зеркальным glow
           how и образует единую светлую зону, без полосы. */
        radial-gradient(
            ellipse 120% 90% at 50% -10%,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(255, 255, 255, 0.42) 10%,
            rgba(255, 255, 255, 0.28) 22%,
            rgba(255, 255, 255, 0.16) 38%,
            rgba(255, 255, 255, 0.08) 55%,
            rgba(255, 255, 255, 0.03) 72%,
            transparent 92%
        ),
        /* Bottom red-glow — атмосфера секции */
        radial-gradient(
            ellipse 100% 60% at 50% 110%,
            rgba(253, 58, 37, 0.14) 0%,
            rgba(253, 58, 37, 0.04) 35%,
            transparent 65%
        );
}

.ar-pricing__container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Header ---- */
.ar-pricing__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}
@media (max-width: 767px) {
    .ar-pricing__header { margin-bottom: 40px; }
}

.ar-pricing__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-family: "Urbanist", "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 16px;
}
.ar-pricing__eyebrow-icon {
    filter: drop-shadow(0 0 6px rgba(253, 58, 37, 0.4));
}

.ar-pricing__title {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0E0E10;
    margin: 0 0 20px;
    text-wrap: balance;
}

.ar-pricing__sub {
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.55;
    color: #3A3A3C;
    margin: 0;
}

/* ---- Grid: 2 columns on desktop, 1 на mobile ---- */
.ar-pricing__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 991px) {
    .ar-pricing__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.ar-pricing__col-title {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #0E0E10;
    margin: 0 0 24px;
}

/* ---- Left: features list ---- */
.ar-pricing__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.ar-pricing__features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 16px;
    line-height: 1.5;
    color: #0E0E10;
}
.ar-pricing__features li > span:last-child {
    flex: 1;
    text-wrap: balance;
    hyphens: manual;
}

.ar-pricing__check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 4px 12px rgba(253, 58, 37, 0.3),
                0 1px 0 rgba(255, 255, 255, 0.3) inset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}
.ar-pricing__check--sm {
    width: 18px;
    height: 18px;
    font-size: 10px;
    box-shadow: 0 2px 6px rgba(253, 58, 37, 0.25);
}

/* ---- Right: plan card with toggle, price, CTA ---- */
.ar-pricing__plan-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08),
                0 8px 20px rgba(253, 58, 37, 0.06);
}
@media (max-width: 767px) {
    .ar-pricing__plan-card { padding: 24px; }
}

/* Toggle pill — dark gradient на active, нейтральный на inactive */
.ar-pricing__toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 999px;
    margin-bottom: 28px;
    position: relative;
}

.ar-pricing__toggle-btn {
    position: relative;
    padding: 13px 16px;
    background: transparent;
    border: 0;
    border-radius: 999px;
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--secondary);
    cursor: pointer;
    transition: color 200ms ease, background 300ms ease, box-shadow 300ms ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ar-pricing__toggle-btn:hover:not(.is-active) {
    color: #0E0E10;
}
.ar-pricing__toggle-btn.is-active {
    color: #fff;
    background: linear-gradient(180deg, #272727 0%, #0E0E10 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18),
                0 1px 0 rgba(255, 255, 255, 0.12) inset,
                0 -2px 0 rgba(0, 0, 0, 0.3) inset;
}
.ar-pricing__toggle-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.ar-pricing__save-badge {
    display: inline-flex;
    padding: 3px 8px;
    background: var(--brand);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(253, 58, 37, 0.35);
}

/* Price block */
.ar-pricing__price-block {
    padding: 12px 0 24px;
}
.ar-pricing__price {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #0E0E10;
    margin: 0 0 8px;
    transition: color 200ms ease;
}
.ar-pricing__per-unit {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 500;
}

/* Perks inside plan card — soft-filled guarantees block */
.ar-pricing__perks {
    list-style: none;
    padding: 14px 18px;
    margin: 0 0 20px;
    background: rgba(14, 14, 16, 0.04);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ar-pricing__perks li {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
    color: #3A3A3C;
    letter-spacing: 0.005em;
}

/* CTA — премиум dark pill */
.ar-pricing__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    background: #0E0E10;
    color: #ffffff;
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 220ms ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}
.ar-pricing__cta:hover,
.ar-pricing__cta:focus-visible {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}
.ar-pricing__cta:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

/* Viewport entrance — small fade-up при входе секции в viewport */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .ar-pricing__features-col,
        .ar-pricing__plan-col {
            animation: ar-pricing-enter 1s cubic-bezier(0.22, 1, 0.36, 1) both;
            animation-timeline: view();
            animation-range: entry 10% cover 20%;
        }
        @keyframes ar-pricing-enter {
            from { opacity: 0; transform: translateY(28px); }
            to   { opacity: 1; transform: translateY(0); }
        }
    }
}

/* ==========================================================================
   MOBILE MENU — floating dropdown panel + scrim (hidden on desktop)
   Panel edges align pixel-perfect with navbar pill via --ar-nav-gutter.
   ========================================================================== */

:root {
    --ar-nav-gutter: 32px; /* Aigocy's @lg: .tf-header .header-inner { margin: 0 32px } */
}

/* ---- Scrim: darker blurred backdrop behind panel ---- */
.ar-menu-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease-out, visibility 0s linear 200ms;
}
body.ar-menu-open .ar-menu-scrim {
    opacity: 1;
    visibility: visible;
    transition: opacity 200ms ease-out, visibility 0s;
}

/* ---- Panel: floating frosted card — same horizontal gutter as navbar ---- */
.ar-menu-panel {
    position: fixed;
    top: 80px;
    /* Привязка к ОБЕИМ боковым границам viewport через left+right даёт браузеру
       вычислить ширину автоматически = viewport − 2*gutter. Это РОВНО ширина
       навбар-pill, и в отличие от `100vw + translate(-50%)`, не ломается на iOS
       Safari, когда выше есть sticky-секция с активным transform-анимацией
       (наш hero c view-timeline scroll-anim). */
    left: var(--ar-nav-gutter);
    right: var(--ar-nav-gutter);
    width: auto;
    max-width: none;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 24px 24px 16px;
    box-sizing: border-box;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 200ms;
}
body.ar-menu-open .ar-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s;
}

/* ---- Menu list items ---- */
.ar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ar-menu-list li {
    opacity: 0;
    transform: translateY(8px);
}
body.ar-menu-open .ar-menu-list li {
    animation: ar-menu-item-in 320ms cubic-bezier(0.22, 1, 0.36, 1) var(--ar-item-delay, 120ms) forwards;
}

.ar-menu-item {
    display: block;
    padding: 14px 16px;
    font-family: "Urbanist", "Roboto", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #0E0E10;
    text-decoration: none;
    border-radius: 14px;
    transition: background 160ms ease, color 160ms ease;
}
.ar-menu-item:hover,
.ar-menu-item:focus-visible {
    background: rgba(0, 0, 0, 0.04);
    color: #0E0E10;
}

@keyframes ar-menu-item-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Burger icon swap: ☰ ↔ ✕ ---- */
.ar-menu-icon-close { display: none; }
body.ar-menu-open .ar-menu-icon-open { display: none; }
body.ar-menu-open .ar-menu-icon-close { display: block; }

/* ---- Panel hidden on desktop (≥992px, where inline nav is visible) ---- */
@media (min-width: 992px) {
    .ar-menu-scrim,
    .ar-menu-panel { display: none !important; }
}

/* ---- Reduced motion: no animations, instant appear/disappear.
   Так как панель теперь привязана через left+right (без translate(-50%)),
   достаточно сбросить transform в none. */
@media (prefers-reduced-motion: reduce) {
    .ar-menu-scrim,
    .ar-menu-panel { transition: none !important; }
    .ar-menu-panel,
    body.ar-menu-open .ar-menu-panel { transform: none !important; }
    body.ar-menu-open .ar-menu-list li {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================================
   COMPARISON SECTION (#compare)
   ============================================================ */
.ar-compare {
    position: relative;
    padding: 48px 0 80px;
    background: var(--body);
    color: #0E0E10;
    overflow: hidden;
}

/* Top-glow — зеркало pricing-glow. На стыке оба свечения сходятся
   с одинаковым уровнем тинта, поэтому визуальная линия не возникает. */
.ar-compare__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 100% 60% at 50% -10%,
        rgba(253, 58, 37, 0.14) 0%,
        rgba(253, 58, 37, 0.04) 35%,
        transparent 65%
    );
}

.ar-compare__container {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.ar-compare__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

/* Eyebrow — unified with pricing pattern (no pill bg, just uppercase colored text) */
.ar-compare__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    font-family: "Urbanist", "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 18px;
}

.ar-compare__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 10px rgba(253, 58, 37, 0.5);
}

.ar-compare__title {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #0E0E10;
    margin: 0 0 18px;
    text-wrap: balance;
}

.ar-compare__sub {
    font-size: 18px;
    line-height: 1.5;
    color: #3A3A3C;
    margin: 0;
    text-wrap: balance;
}

/* ---- Table wrapper ---- */
.ar-compare__table-wrap {
    position: relative;
    padding: 32px 8px 32px;  /* room for sticker above + glow below */
    margin: 0 -8px;
}

.ar-compare__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

/* Column widths: criterion 22%, three alternatives equal, ours slightly wider */
.ar-compare__table col.ar-compare__col--criterion {
    width: 22%;
}
.ar-compare__table col.ar-compare__col--ours {
    width: 21%;
}

/* ---- Base cells ---- */
.ar-compare__table th,
.ar-compare__table td {
    padding: 18px 18px;
    text-align: center;
    font-size: 15px;
    line-height: 1.4;
    vertical-align: middle;
    color: #1C1C1E;
    font-weight: 500;
}

/* Criterion column (row headers) */
.ar-compare__table tbody th {
    text-align: left;
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #0E0E10;
    padding-left: 4px;
    padding-right: 18px;
    white-space: nowrap;
}

/* Column headers (top row, alternatives) */
.ar-compare__table thead th {
    padding: 18px 18px 18px;
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #3A3A3C;
}

.ar-compare__table thead th.ar-compare__th-criterion {
    padding: 0;
}

/* Row hover — soft highlight across entire row */
.ar-compare__table tbody tr {
    transition: background-color 200ms ease;
}
.ar-compare__table tbody tr:hover th {
    background: rgba(14, 14, 16, 0.03);
}
.ar-compare__table tbody tr:hover td:not(:last-child) {
    background: rgba(14, 14, 16, 0.03);
}

/* Row dividers (subtle) — only between tbody rows */
.ar-compare__table tbody tr + tr th,
.ar-compare__table tbody tr + tr td {
    border-top: 1px solid rgba(14, 14, 16, 0.07);
}

/* ===== OUR COLUMN — brand highlight ===== */

.ar-compare__th-ours {
    position: relative;
}

/* Sticker — brand pill inside column header (where AI-адаптация text was) */
.ar-compare__sticker {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    background: var(--brand);
    color: #ffffff;
    font-family: "Urbanist", "Roboto", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow:
        0 10px 24px rgba(253, 58, 37, 0.4),
        0 2px 4px rgba(253, 58, 37, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.ar-compare__ours-name {
    display: block;
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #0E0E10;
    margin-top: 14px;
    letter-spacing: -0.005em;
}

/* Header cell of our column — brand tint, rounded top, strong border */
.ar-compare__table thead th:last-child {
    background: rgba(253, 58, 37, 0.06);
    border-radius: 22px 22px 0 0;
    box-shadow:
        inset 2px 0 0 var(--brand),
        inset -2px 0 0 var(--brand),
        inset 0 2px 0 var(--brand),
        0 -12px 40px -14px rgba(253, 58, 37, 0.28);
}

/* Body cells in our column — tint, bold dark text, side borders */
.ar-compare__table tbody td:last-child {
    background: rgba(253, 58, 37, 0.06);
    color: #0E0E10;
    font-weight: 700;
    box-shadow:
        inset 2px 0 0 var(--brand),
        inset -2px 0 0 var(--brand);
}

/* Lighter internal divider within our column */
.ar-compare__table tbody tr + tr td:last-child {
    border-top: 1px solid rgba(253, 58, 37, 0.18);
}

/* Row-hover override for our column — deeper tint instead of gray */
.ar-compare__table tbody tr:hover td:last-child {
    background: rgba(253, 58, 37, 0.09);
}

/* Bottom cell of our column — rounded bottom, border-bottom, glow */
.ar-compare__table tbody tr:last-child td:last-child {
    border-radius: 0 0 22px 22px;
    padding-bottom: 22px;
    box-shadow:
        inset 2px 0 0 var(--brand),
        inset -2px 0 0 var(--brand),
        inset 0 -2px 0 var(--brand),
        0 26px 60px -18px rgba(253, 58, 37, 0.38);
}

/* ---- Mobile cards — hidden on desktop ---- */
.ar-compare__cards {
    display: none;
}

/* ---- Sticker pop-in on scroll ---- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .ar-compare__sticker {
            animation: ar-compare-sticker-pop 1s cubic-bezier(0.22, 1, 0.36, 1) both;
            animation-timeline: view();
            animation-range: entry 20% cover 45%;
        }
        @keyframes ar-compare-sticker-pop {
            0%   { opacity: 0; transform: translateY(-6px) scale(0.85); }
            60%  { opacity: 1; transform: translateY(0) scale(1.06); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }
    }
}

/* ---- Content-level scroll reveal: soft rise + fade as compare enters viewport.
   Анимация применяется к ВНУТРЕННЕМУ container, а не к секции — чтобы сама
   секция и её bg-glow оставались на месте. Это сохраняет выровненный стык
   тинтов между pricing и compare в любой момент скролла. ---- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .ar-compare__container {
            transform-origin: 50% 100%;
            animation: ar-compare-rise 1s linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 100%;
        }
        @keyframes ar-compare-rise {
            from {
                opacity: 0.4;
                transform: scale(0.96) translateY(28px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }
    }
}

/* ---- Tablet ---- */
@media (max-width: 991px) {
    .ar-compare { padding: 40px 0 56px; }
    .ar-compare__header { margin-bottom: 48px; }
    .ar-compare__table th,
    .ar-compare__table td {
        padding: 14px 12px;
        font-size: 14px;
    }
    .ar-compare__table tbody th {
        font-size: 13px;
    }
    .ar-compare__table thead th {
        padding: 14px 12px;
        font-size: 13px;
    }
    .ar-compare__ours-name {
        font-size: 14px;
    }
    .ar-compare__sticker {
        font-size: 10px;
        padding: 6px 12px;
    }
}

/* ---- Mobile: switch from table to stacked cards ---- */
@media (max-width: 767px) {
    .ar-compare { padding: 28px 0 48px; }
    .ar-compare__header { margin-bottom: 36px; }
    .ar-compare__title {
        font-size: clamp(28px, 7vw, 36px);
    }
    .ar-compare__sub { font-size: 16px; }

    /* Hide desktop table */
    .ar-compare__table-wrap { display: none; }

    /* Show stacked cards */
    .ar-compare__cards {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 16px 0 8px;
    }

    .ar-compare__card {
        background: #ffffff;
        border: 1px solid rgba(14, 14, 16, 0.08);
        border-radius: 18px;
        padding: 20px 20px 22px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    }

    .ar-compare__card-title {
        font-family: "Urbanist", "Roboto", sans-serif;
        font-weight: 700;
        font-size: 17px;
        color: #0E0E10;
        margin: 0 0 14px;
        letter-spacing: -0.005em;
    }

    .ar-compare__card-rows {
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .ar-compare__card-rows > div {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 16px;
        padding: 10px 0;
        border-top: 1px solid rgba(14, 14, 16, 0.06);
    }

    .ar-compare__card-rows > div:first-child {
        border-top: none;
        padding-top: 4px;
    }

    .ar-compare__card-rows dt {
        font-size: 13px;
        color: #6B6B70;
        font-weight: 500;
        flex-shrink: 0;
    }

    .ar-compare__card-rows dd {
        margin: 0;
        font-size: 14px;
        font-weight: 600;
        color: #0E0E10;
        text-align: right;
    }

    /* Ours card — brand-highlighted winner */
    .ar-compare__card--ours {
        position: relative;
        margin-top: 16px;
        padding-top: 26px;
        background: linear-gradient(180deg, rgba(253, 58, 37, 0.04) 0%, #ffffff 40%);
        border: 2px solid var(--brand);
        box-shadow:
            0 24px 48px -16px rgba(253, 58, 37, 0.32),
            0 6px 14px rgba(0, 0, 0, 0.04);
    }

    .ar-compare__sticker--card {
        position: absolute;
        top: -14px;
        left: 20px;
        transform: none;
    }

    .ar-compare__card-title--ours {
        color: #0E0E10;
        margin-top: 4px;
    }

    .ar-compare__card--ours .ar-compare__card-rows dd {
        color: var(--brand);
        font-weight: 700;
    }

    /* Sticker pop-in for mobile card */
    @supports (animation-timeline: view()) {
        @media (prefers-reduced-motion: no-preference) {
            .ar-compare__sticker--card {
                animation: ar-compare-sticker-pop-card 1s cubic-bezier(0.22, 1, 0.36, 1) both;
                animation-timeline: view();
                animation-range: entry 20% cover 45%;
            }
            @keyframes ar-compare-sticker-pop-card {
                0%   { opacity: 0; transform: translateY(-8px) scale(0.85); }
                60%  { opacity: 1; transform: translateY(0) scale(1.06); }
                100% { opacity: 1; transform: translateY(0) scale(1); }
            }
        }
    }
}

/* ============================================================
   FAQ SECTION (#faq) — horizontal interactive accordion
   Структура из 21st.dev image-accordion, но без картинок:
   раскрытая панель показывает текст ответа.
   На мобилке переключается в вертикальный классический аккордеон.
   ============================================================ */
.ar-faq {
    position: relative;
    padding: 72px 0 80px;
    background: var(--body);
    color: #0E0E10;
}

.ar-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ar-faq__header {
    text-align: left;
    max-width: 720px;
    margin: 0 0 44px;
}

.ar-faq__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    font-family: "Urbanist", "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 18px;
}

.ar-faq__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 10px rgba(253, 58, 37, 0.5);
}

.ar-faq__title {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #0E0E10;
    margin: 0 0 14px;
    text-wrap: balance;
}

.ar-faq__sub {
    font-size: 17px;
    line-height: 1.5;
    color: #3A3A3C;
    margin: 0;
    text-wrap: balance;
}

/* ---- Horizontal accordion ---- */
.ar-faq__accordion {
    display: flex;
    gap: 12px;
    height: 480px;
}

/* Panel — премиальная карточка с multi-layer shadow и чистым белым фоном */
.ar-faq__panel {
    flex: 0 0 92px;
    background: linear-gradient(180deg, #ffffff 0%, #faf9f9 100%);
    border: 1px solid rgba(14, 14, 16, 0.06);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow:
        0 1px 2px rgba(14, 14, 16, 0.03),
        0 8px 20px rgba(14, 14, 16, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition:
        flex-basis 700ms cubic-bezier(0.22, 1, 0.36, 1),
        flex-grow 700ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 500ms ease,
        border-color 500ms ease,
        background 500ms ease;
}

/* Active — внешний brand-red halo, сбалансированный по всем сторонам.
   Убран «хвост» снизу: downward red shadow уравновешен с близким halo вокруг
   всей карточки, рамка точно обнимает контур. */
.ar-faq__panel.is-active {
    flex: 1 1 auto;
    background: #ffffff;
    border-color: rgba(253, 58, 37, 0.32);
    box-shadow:
        /* Близкий red halo — равномерно вокруг карточки */
        0 0 20px rgba(253, 58, 37, 0.16),
        /* Средняя red дымка — тоже равномерная */
        0 0 44px rgba(253, 58, 37, 0.10),
        /* Умеренная downward depth с red-тоном (без «хвоста») */
        0 14px 36px rgba(253, 58, 37, 0.10),
        /* Neutral depth — фиксирует в пространстве */
        0 8px 20px rgba(14, 14, 16, 0.06),
        /* Top highlight — glass edge */
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Hover на свёрнутой — превью будущего активного состояния:
   расширяется на +20px, появляется лёгкая розовая рамка и halo. */
.ar-faq__panel:not(.is-active):hover {
    flex: 0 0 112px;
    border-color: rgba(253, 58, 37, 0.22);
    box-shadow:
        0 2px 4px rgba(14, 14, 16, 0.04),
        0 12px 28px rgba(14, 14, 16, 0.06),
        0 0 18px rgba(253, 58, 37, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Collapsed state — trigger button: номер сверху, rotated label занимает
   оставшееся пространство, маленькая dot-индикация снизу. Компактный gap
   между номером и текстом. */
.ar-faq__panel-trigger {
    position: absolute;
    inset: 0;
    background: transparent;
    border: 0;
    padding: 18px 0 26px;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-align: center;
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 300ms 420ms ease,
        visibility 0s 420ms;
}

.ar-faq__panel-trigger:focus { outline: none; }
.ar-faq__panel-trigger:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -4px;
    border-radius: 22px;
}

.ar-faq__panel.is-active .ar-faq__panel-trigger {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Мгновенно скрываем — без transition на rotated-текст */
    transition: opacity 0s, visibility 0s;
}

/* Dot-индикатор интерактивности в нижней части свёрнутой карточки */
.ar-faq__panel-trigger::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(14, 14, 16, 0.25);
    transition: background 300ms ease, transform 300ms ease;
}

.ar-faq__panel:not(.is-active):hover .ar-faq__panel-trigger::after {
    background: var(--brand);
    transform: translateX(-50%) scale(1.3);
}

.ar-faq__panel-num {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: var(--brand);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ar-faq__panel-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #1C1C1E;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0 16px;
}

/* Content — мгновенно появляется при открытии и мгновенно пропадает
   при закрытии. Без fade, без delay — чистое visibility-переключение. */
.ar-faq__panel-content {
    opacity: 1;
    visibility: hidden;
    padding: 52px 64px 48px;
    height: 100%;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    transition: visibility 0s;
}

.ar-faq__panel.is-active .ar-faq__panel-content {
    visibility: visible;
    transition: visibility 0s;
}

/* Kicker «Ответ 0X» — только uppercase red текст, без pill-фона */
.ar-faq__panel-content-num {
    display: inline-block;
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: var(--brand);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* Фиксированная ширина текстовых блоков — чтобы текст НЕ ПЕРЕНОСИЛСЯ
   когда hover на другой панели слегка меняет ширину активной панели.
   540px безопасно < минимальной ширины контентной зоны активной панели
   (~588px в худшем случае при hover другой панели). */
.ar-faq__panel-q {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 800;
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1.15;
    color: #0E0E10;
    margin: 0 0 22px;
    letter-spacing: -0.015em;
    text-wrap: balance;
    width: 540px;
    max-width: 100%;
}

.ar-faq__panel-a {
    font-size: 16px;
    line-height: 1.65;
    color: #3A3A3C;
    margin: 0 0 14px;
    width: 540px;
    max-width: 100%;
}

.ar-faq__panel-a:last-of-type {
    margin-bottom: 0;
}

.ar-faq__panel-a strong {
    color: #0E0E10;
    font-weight: 600;
}

.ar-faq__panel-a a,
.ar-faq__panel-link {
    color: #0E0E10;
    text-decoration: underline;
    text-decoration-color: rgba(14, 14, 16, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.ar-faq__panel-a a:hover,
.ar-faq__panel-link:hover {
    text-decoration-color: #0E0E10;
}

/* Chip-гарантии — заполняют пустоту под коротким ответом, визуально
   усиливают доверие, но не перегружают. Тонкие нейтральные капсулы. */
.ar-faq__panel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    width: 540px;
    max-width: 100%;
}

.ar-faq__chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: rgba(14, 14, 16, 0.04);
    border: 1px solid rgba(14, 14, 16, 0.06);
    border-radius: 999px;
    font-family: "Urbanist", "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #3A3A3C;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* ---- Tablet ---- */
@media (max-width: 991px) {
    .ar-faq { padding: 56px 0 56px; }
    .ar-faq__panel { flex: 0 0 76px; }
    .ar-faq__panel:not(.is-active):hover { flex: 0 0 96px; }
    .ar-faq__panel-content { padding: 40px 40px 36px; }
    .ar-faq__panel-label { font-size: 14px; }
    .ar-faq__panel-q { font-size: clamp(22px, 3vw, 28px); }
}

/* ---- Mobile: vertical stacked accordion ---- */
@media (max-width: 767px) {
    .ar-faq { padding: 48px 0 48px; }
    .ar-faq__header { margin-bottom: 32px; text-align: left; }
    .ar-faq__title { font-size: clamp(26px, 7vw, 34px); }
    .ar-faq__sub { font-size: 15px; }

    .ar-faq__accordion {
        flex-direction: column;
        height: auto;
        gap: 8px;
    }

    .ar-faq__panel {
        flex: 0 0 auto;
        height: auto;
        transition:
            box-shadow 300ms ease,
            border-color 300ms ease,
            background-color 300ms ease;
    }

    /* Вертикальный стек → отключаем hover-expand и dot-индикатор */
    .ar-faq__panel:not(.is-active):hover { flex: 0 0 auto; }
    .ar-faq__panel-trigger::after { display: none; }

    .ar-faq__panel-trigger {
        position: relative;
        inset: auto;
        flex-direction: row;
        justify-content: flex-start;
        padding: 18px 22px;
        gap: 16px;
        min-height: 64px;
    }

    .ar-faq__panel.is-active .ar-faq__panel-trigger {
        opacity: 1;
        pointer-events: auto;
    }

    .ar-faq__panel.is-active .ar-faq__panel-label {
        color: var(--brand);
    }

    .ar-faq__panel-label {
        writing-mode: horizontal-tb;
        transform: none;
        flex: 1;
        font-size: 15px;
        text-align: left;
        padding: 0;
        justify-content: flex-start;
    }

    .ar-faq__panel-content {
        padding: 0;
        max-height: 0;
        height: auto;
        opacity: 1; /* always 1 — текст всегда непрозрачен, клипается через max-height */
        overflow: hidden;
        visibility: hidden;
        transition:
            max-height 280ms ease,
            padding 220ms ease,
            visibility 0s 280ms;
    }

    .ar-faq__panel.is-active .ar-faq__panel-content {
        max-height: 800px;
        visibility: visible;
        padding: 4px 22px 24px 22px;
        transition:
            max-height 280ms ease,
            padding 220ms ease,
            visibility 0s 0s;
    }

    .ar-faq__panel-q { display: none; }

    .ar-faq__panel-content-num {
        margin-bottom: 12px;
    }

    .ar-faq__panel-chips {
        gap: 6px;
        margin-top: 20px;
    }

    .ar-faq__chip {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .ar-faq__panel {
        transition: none;
    }
    .ar-faq__panel-content {
        transition: none;
    }
}

/* ============================================================
   FINAL CTA SECTION (#cta) — форма оплаты с двумя CTA:
   primary (оплата) + secondary (бесплатный анализ)
   ============================================================ */
.ar-cta {
    position: relative;
    padding: 72px 0 96px;
    background: var(--body);
    color: #0E0E10;
}

.ar-cta__container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.ar-cta__header {
    text-align: center;
    margin: 0 auto 40px;
    max-width: 600px;
}

.ar-cta__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    font-family: "Urbanist", "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 18px;
}

.ar-cta__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 10px rgba(253, 58, 37, 0.5);
}

.ar-cta__title {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #0E0E10;
    margin: 0 0 16px;
    text-wrap: balance;
}

.ar-cta__sub {
    font-size: 17px;
    line-height: 1.5;
    color: #3A3A3C;
    margin: 0;
    text-wrap: balance;
}

/* ---- Form card ---- */
.ar-cta__form {
    background: #ffffff;
    border: 1px solid rgba(14, 14, 16, 0.06);
    border-radius: 24px;
    padding: 28px;
    box-shadow:
        0 1px 2px rgba(14, 14, 16, 0.03),
        0 24px 60px rgba(14, 14, 16, 0.08),
        0 8px 20px rgba(253, 58, 37, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Brand header в шапке формы — как на premium-checkout страницах */
.ar-cta__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(14, 14, 16, 0.06);
}

.ar-cta__brand-logo {
    display: inline-flex;
    align-items: baseline;
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #0E0E10;
    letter-spacing: -0.02em;
    line-height: 1;
}

.ar-cta__brand-dot {
    color: var(--brand);
    margin-left: 1px;
}

.ar-cta__brand-tag {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 600;
    font-size: 11px;
    color: #6B6B70;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Plan selector (toggle + price) */
.ar-cta__plan {
    background: rgba(14, 14, 16, 0.03);
    border: 1px solid rgba(14, 14, 16, 0.04);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 22px;
}

.ar-cta__toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    background: #ffffff;
    border: 1px solid rgba(14, 14, 16, 0.06);
    border-radius: 999px;
    margin-bottom: 18px;
}

.ar-cta__toggle-btn {
    padding: 10px 14px;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #0E0E10;
    transition: color 220ms ease, background 220ms ease;
}

.ar-cta__toggle-btn.is-active {
    background: #0E0E10;
    color: #ffffff;
}

.ar-cta__save-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-left: 6px;
    vertical-align: middle;
}

.ar-cta__price-block {
    text-align: center;
}

.ar-cta__price {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 800;
    font-size: 44px;
    line-height: 1;
    color: #0E0E10;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.ar-cta__per-unit {
    font-size: 13px;
    color: #6B6B70;
}

/* Form fields */
.ar-cta__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.ar-cta__field {
    display: flex;
    flex-direction: column;
}

.ar-cta__label {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 600;
    font-size: 11px;
    color: #6B6B70;
    margin-bottom: 6px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ar-cta__input {
    padding: 14px 16px;
    background: #ffffff;
    border: 1.5px solid rgba(14, 14, 16, 0.08);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: #0E0E10;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    width: 100%;
    box-sizing: border-box;
}

.ar-cta__input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(253, 58, 37, 0.12);
}

.ar-cta__input::placeholder {
    color: #B2B2B5;
}

.ar-cta__input.is-error {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(253, 58, 37, 0.15);
}

/* Consent: container for two mandatory checkboxes (PRD §10.7) */
.ar-cta__consents {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

/* Consent checkbox */
.ar-cta__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.ar-cta__consent-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ar-cta__consent-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(14, 14, 16, 0.2);
    border-radius: 5px;
    background: #fff;
    margin-top: 1px;
    position: relative;
    transition: all 200ms ease;
}

.ar-cta__consent-input:focus-visible + .ar-cta__consent-check {
    box-shadow: 0 0 0 3px rgba(253, 58, 37, 0.2);
}

.ar-cta__consent-input:checked + .ar-cta__consent-check {
    background: var(--brand);
    border-color: var(--brand);
}

.ar-cta__consent-input:checked + .ar-cta__consent-check::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.ar-cta__consent.is-error .ar-cta__consent-check {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(253, 58, 37, 0.15);
}

.ar-cta__consent-text {
    font-size: 13px;
    line-height: 1.45;
    color: #6B6B70;
}

.ar-cta__consent-link {
    color: #0E0E10;
    text-decoration: underline;
    text-decoration-color: rgba(14, 14, 16, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 200ms ease;
}

.ar-cta__consent-link:hover {
    color: #0E0E10;
    text-decoration-color: #0E0E10;
}

/* Primary CTA — Pay */
.ar-cta__pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    padding: 0 24px;
    background: #0E0E10;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition:
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 220ms ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.ar-cta__pay:hover,
.ar-cta__pay:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    outline: none;
}

/* Divider "или" */
.ar-cta__divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0;
}

.ar-cta__divider::before,
.ar-cta__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(14, 14, 16, 0.08);
}

.ar-cta__divider-text {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(14, 14, 16, 0.4);
}

/* Secondary CTA — free analysis */
.ar-cta__free {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    padding: 0 24px;
    background: transparent;
    color: #0E0E10;
    border: 1.5px solid rgba(14, 14, 16, 0.15);
    border-radius: 999px;
    cursor: pointer;
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 600;
    font-size: 15px;
    transition:
        border-color 220ms ease,
        background 220ms ease,
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ar-cta__free:hover,
.ar-cta__free:focus-visible {
    border-color: rgba(253, 58, 37, 0.4);
    background: rgba(253, 58, 37, 0.03);
    transform: translateY(-1px);
    outline: none;
}

.ar-cta__arrow {
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ar-cta__pay:hover .ar-cta__arrow,
.ar-cta__free:hover .ar-cta__arrow {
    transform: translateX(3px);
}

/* Trust row */
.ar-cta__trust {
    margin: 18px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 12px;
    color: #6B6B70;
    letter-spacing: 0.01em;
    text-align: center;
}

.ar-cta__trust-dot {
    color: rgba(14, 14, 16, 0.2);
}

/* ---- Tablet ---- */
@media (max-width: 1199px) {
    .ar-cta {
        padding: 56px 0 80px;
    }
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .ar-cta {
        padding: 48px 0 72px;
    }
    .ar-cta__container {
        padding: 0 20px;
    }
    .ar-cta__header {
        margin-bottom: 32px;
    }
    .ar-cta__title {
        font-size: clamp(28px, 7vw, 36px);
    }
    .ar-cta__sub {
        font-size: 15px;
    }
    .ar-cta__form {
        padding: 22px 20px;
    }
    .ar-cta__brand {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }
    .ar-cta__brand-logo { font-size: 19px; }
    .ar-cta__brand-tag { font-size: 10px; }
    .ar-cta__plan {
        padding: 16px;
    }
    .ar-cta__price {
        font-size: 38px;
    }
    .ar-cta__fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ar-cta__pay {
        height: 52px;
        font-size: 15px;
    }
    .ar-cta__free {
        height: 48px;
        font-size: 14px;
    }
}

/* ==========================================================================
   COOKIE BANNER — floating frosted-glass card (PRD §10.6, §10.7 п. 3)
   Появляется при первом визите, два варианта: «Только необходимые» / «Принять все».
   Стилистика: то же стекло, что у navbar и mobile menu, кнопки — как .ar-cta__pay/free.

   Архитектура:
   - .ar-cookie-banner-frame — фиксированный якорь высотой 100svh (small viewport),
     не зависит от динамической UI мобильного браузера. Не блокирует клики.
   - .ar-cookie-banner — абсолютно позиционирован внутри якоря; нижний край
     всегда отрисован выше системной панели браузера, не уезжает за правый край.
   ========================================================================== */

.ar-cookie-banner-frame {
    position: fixed;
    inset: 0;
    /* svh = small viewport height (когда показана UI браузера) — банер всегда
       будет над динамической нижней панелью. Fallback на 100vh для старых браузеров. */
    height: 100vh;
    height: 100svh;
    pointer-events: none;
    z-index: 90;
    /* contain: paint НЕ ставим — на iOS Safari он создаёт новый containing block
       для absolute-баннера, и тот «склеивается» с координатами frame'а в моменты,
       когда выше есть sticky-секция с transform-анимацией (наш hero). */
}

.ar-cookie-banner {
    position: absolute;
    right: 24px;
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    max-width: 480px;
    width: calc(100% - 48px);
    padding: 22px 24px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(32px) saturate(1.6);
    -webkit-backdrop-filter: blur(32px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 18px 48px rgba(14, 14, 16, 0.18),
        0 4px 12px rgba(14, 14, 16, 0.06);
    color: #0E0E10;
    font-family: "Urbanist", "Roboto", "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 240ms ease-out,
        visibility 0s linear 320ms;
}

.ar-cookie-banner.is-shown {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 260ms ease-out,
        visibility 0s;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .ar-cookie-banner {
        background: rgba(255, 255, 255, 0.98);
    }
}

.ar-cookie-banner__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ar-cookie-banner__icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ar-cookie-banner__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ar-cookie-banner__title {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #0E0E10;
}

.ar-cookie-banner__text {
    margin: 0 0 16px;
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(14, 14, 16, 0.72);
    /* Браузер сам подберёт оптимальное разбиение, чтобы текст лёг ровными строками
       (Chrome 114+, Safari 17.4+, Firefox 121+). В старых браузерах — обычное поведение. */
    text-wrap: pretty;
}

.ar-cookie-banner__text a {
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px solid rgba(253, 58, 37, 0.3);
    transition: border-color 200ms ease, color 200ms ease;
}

.ar-cookie-banner__text a:hover,
.ar-cookie-banner__text a:focus-visible {
    border-bottom-color: var(--brand);
    color: var(--brand);
}

.ar-cookie-banner__actions {
    display: flex;
    gap: 10px;
}

.ar-cookie-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    transition:
        transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
        background 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.ar-cookie-banner__btn--secondary {
    background: transparent;
    color: #0E0E10;
    border: 1.5px solid rgba(14, 14, 16, 0.15);
}
.ar-cookie-banner__btn--secondary:hover,
.ar-cookie-banner__btn--secondary:focus-visible {
    border-color: rgba(253, 58, 37, 0.4);
    background: rgba(253, 58, 37, 0.03);
    outline: none;
}

.ar-cookie-banner__btn--primary {
    background: #0E0E10;
    color: #ffffff;
    border: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.ar-cookie-banner__btn--primary:hover,
.ar-cookie-banner__btn--primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    outline: none;
}

/* Tablet / mobile (≤ 991px, Bootstrap lg breakpoint) — компактнее, отступы меньше.
   Жёсткая защита по ширине: width: calc(100vw - 28px) гарантирует, что банер
   физически не может быть шире visual viewport, независимо от того, что происходит
   с frame'ом / containing block. Плюс центрируем через left: 50% + translateX. */
@media (max-width: 991px) {
    .ar-cookie-banner {
        /* Привязка к ОБЕИМ боковым границам через left+right — браузер сам
           вычислит ширину = viewport − 28. Без 100vw и без translate(-50%) —
           ничего не поедет вправо на hero-секции (sticky + transform-анимация). */
        left: 14px;
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom, 0px));
        width: auto;
        max-width: none;
        padding: 16px 16px 14px;
        border-radius: 18px;
        transform: translateY(20px);
    }
    .ar-cookie-banner.is-shown {
        transform: translateY(0);
    }
    .ar-cookie-banner__head {
        gap: 8px;
        margin-bottom: 6px;
    }
    .ar-cookie-banner__icon {
        flex: 0 0 22px;
        width: 22px;
        height: 22px;
    }
    .ar-cookie-banner__title {
        font-size: 14.5px;
    }
    .ar-cookie-banner__text {
        font-size: 12.5px;
        line-height: 1.45;
        margin-bottom: 12px;
    }
    .ar-cookie-banner__actions {
        gap: 8px;
    }
    .ar-cookie-banner__btn {
        height: 40px;
        font-size: 12.5px;
        padding: 0 12px;
    }
}

/* Узкие экраны (≤ 380px, iPhone SE и пр.) — кнопки в столбик,
   у каждой полная ширина для удобного тапа */
@media (max-width: 380px) {
    .ar-cookie-banner__actions {
        flex-direction: column;
        gap: 8px;
    }
    .ar-cookie-banner__btn {
        width: 100%;
        font-size: 13px;
    }
}

/* Уважаем prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .ar-cookie-banner,
    .ar-cookie-banner.is-shown,
    .ar-cookie-banner__btn {
        transition: opacity 120ms linear, visibility 0s;
        transform: none !important;
    }
}

/* ============= LEAD SUCCESS MODAL (лендинг → app) ============= */
.ar-lead-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ar-lead-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ar-lead-modal__scrim {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.55);
    backdrop-filter: blur(6px);
}

.ar-lead-modal__panel {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px 24px;
    box-shadow: 0 24px 80px rgba(9, 9, 11, 0.22);
    border: 1px solid rgba(9, 9, 11, 0.08);
}

.ar-lead-modal__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a7c72;
    margin: 0 0 10px;
}

.ar-lead-modal__title {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: var(--primary);
}

.ar-lead-modal__text {
    font-size: 0.98rem;
    line-height: 1.55;
    color: #51463e;
    margin: 0 0 20px;
}

.ar-lead-modal__close {
    width: 100%;
    justify-content: center;
}

/* ============================================================
   AR FOOTER — компактный подвал в стиле ar-cta / ar-faq
   ============================================================ */
.ar-footer {
    position: relative;
    padding: 36px 0 28px;
    background: var(--body);
    color: var(--neutral-600);
}

.ar-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(672px, calc(100% - 48px));
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(212, 212, 216, 0) 0%,
        var(--neutral-300) 50%,
        rgba(212, 212, 216, 0) 100%
    );
}

.ar-footer__container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.ar-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ar-footer__brand {
    font-family: "Urbanist", "Roboto", sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--primary);
    text-decoration: none;
    line-height: 1;
}

.ar-footer__brand-dot {
    color: var(--brand);
    font-weight: 800;
}

.ar-footer__top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral-500);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--neutral-200);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ar-footer__top-link:hover,
.ar-footer__top-link:focus-visible {
    color: var(--brand);
    border-color: rgba(253, 58, 37, 0.35);
    background: rgba(255, 255, 255, 0.75);
    outline: 2px solid rgba(253, 58, 37, 0.25);
    outline-offset: 2px;
}

.ar-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.ar-footer__pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--neutral-700);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--neutral-200);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.ar-footer__pill:hover,
.ar-footer__pill:focus-visible {
    color: var(--brand);
    border-color: rgba(253, 58, 37, 0.3);
    background: #fff;
    transform: translateY(-1px);
}

.ar-footer__meta {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
    color: var(--neutral-500);
}

.ar-footer__meta a {
    color: var(--neutral-600);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.ar-footer__meta a:hover,
.ar-footer__meta a:focus-visible {
    color: var(--brand);
    border-bottom-color: rgba(253, 58, 37, 0.35);
}

@media (max-width: 480px) {
    .ar-footer {
        padding: 28px 0 24px;
    }

    .ar-footer__top {
        margin-bottom: 14px;
    }

    .ar-footer__nav {
        gap: 6px;
    }

    .ar-footer__pill {
        padding: 6px 11px;
        font-size: 11px;
    }

    .ar-footer__meta {
        font-size: 11px;
    }
}

