/* =========================================================
   MURRLINK — ЛЕНДИНГ И ПУБЛИЧНЫЕ ПОЛИТИКИ

   Слой pages: это страничные правила, они не должны менять каркас
   приложения (`/app/`) и страницы входа. Цвет — только через токены
   из tokens.css, литералов здесь нет (tools/check_colors.py).

   Порядок подключения: tokens.css первым (он объявляет @layer),
   затем этот файл.
   ========================================================= */
@layer pages {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
        /* Якоря из шапки и оглавления не должны прятаться под липкой шапкой. */
        scroll-padding-top: 92px;
    }

    body.landing-page {
        margin: 0;
        min-height: 100vh;
        font-family: var(--font-ui);
        font-size: 16px;
        line-height: 1.6;
        color: var(--text-normal);
        background-color: var(--bg-app);
        /* Мягкое зарево акцента вместо тяжёлого фонового растра: первый
           экран лендинга не должен тянуть 484 КБ узора-сот. */
        background-image:
            radial-gradient(ellipse 60% 45% at 15% 0%,
                            var(--bg-glow-landing), transparent 60%),
            radial-gradient(ellipse 45% 40% at 95% 8%,
                            var(--bg-glow-landing), transparent 65%);
        background-repeat: no-repeat;
        /* Страховка от горизонтальной прокрутки на узком экране; вёрстка
           при этом остаётся в пределах ширины (проверяется живьём). */
        overflow-x: clip;
    }

    /* :where() держит специфичность ссылочного правила ниже классовых:
       иначе цвет `a` перебивал бы .lp-brand, .lp-nav a и цвета кнопок. */
    :where(body.landing-page) a {
        color: var(--link);
        text-decoration: none;
    }

    :where(body.landing-page) a:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    body.landing-page img {
        max-width: 100%;
        height: auto;
    }

    body.landing-page :focus-visible {
        outline: 2px solid var(--accent-2);
        outline-offset: 3px;
        border-radius: var(--radius-sm);
    }

    .lp-shell {
        width: 100%;
        max-width: 1180px;
        margin: 0 auto;
        padding: 0 28px;
    }

    /* --- Пропуск шапки с клавиатуры ------------------------------- */
    .lp-skip {
        position: fixed;
        left: 16px;
        top: -80px;
        z-index: 1000;
        padding: 10px 16px;
        border-radius: var(--radius-pill);
        background: var(--accent);
        color: var(--on-accent);
        font-weight: 700;
        transition: top var(--transition-fast);
    }

    .lp-skip:focus {
        top: 12px;
        text-decoration: none;
    }

    /* --- Шапка --------------------------------------------------- */
    .lp-header {
        position: sticky;
        top: 0;
        z-index: 40;
        background: var(--glass-bg);
        border-bottom: 1px solid var(--border);
        backdrop-filter: var(--glass-blur);
    }

    .lp-header-inner {
        min-height: 72px;
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .lp-brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        color: var(--text-primary);
        font-weight: 800;
        letter-spacing: -0.01em;
    }

    .lp-brand:hover {
        text-decoration: none;
    }

    .lp-brand-mark {
        width: 36px;
        height: 36px;
        flex: none;
        border-radius: var(--radius-md);
        box-shadow: var(--glow-accent);
    }

    .lp-brand-name {
        font-size: 18px;
        white-space: nowrap;
    }

    .lp-nav {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-left: 12px;
    }

    .lp-nav a {
        padding: 8px 12px;
        border-radius: var(--radius-pill);
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 600;
    }

    .lp-nav a:hover {
        background: var(--bg-hover);
        color: var(--text-primary);
        text-decoration: none;
    }

    .lp-header-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* --- Кнопки -------------------------------------------------- */
    .lp-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        padding: 10px 18px;
        border: 1px solid transparent;
        border-radius: var(--radius-pill);
        font: inherit;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        cursor: pointer;
        transition: background-color var(--transition-base),
                    border-color var(--transition-base),
                    transform var(--transition-fast),
                    box-shadow var(--transition-base);
    }

    .lp-btn:hover {
        text-decoration: none;
        transform: translateY(-1px);
    }

    .lp-btn:active {
        transform: translateY(0);
    }

    .lp-btn-primary {
        background: var(--btn-primary-bg);
        color: var(--btn-primary-fg);
        border-color: var(--btn-primary-border);
        box-shadow: var(--glow-accent);
    }

    .lp-btn-primary:hover {
        background: var(--btn-primary-bg-hover);
        border-color: var(--btn-primary-bg-hover);
        color: var(--btn-primary-fg);
        box-shadow: var(--glow-accent-lg);
    }

    /* Ссылочный цвет `a` теперь ниже по специфичности, но цвет кнопок всё
       равно фиксируем явно: на акценте нужен --on-accent, а не ссылочный
       циан (иначе контраст падает до 2.19:1). */
    body.landing-page .lp-btn-primary,
    body.landing-page .lp-btn-primary:hover {
        color: var(--on-accent);
    }

    .lp-btn-secondary {
        background: var(--btn-bg);
        border-color: var(--btn-border);
        color: var(--btn-fg);
    }

    .lp-btn-secondary:hover {
        background: var(--btn-bg-hover);
        border-color: var(--btn-border-hover);
    }

    body.landing-page .lp-btn-secondary,
    body.landing-page .lp-btn-secondary:hover {
        color: var(--btn-fg);
    }

    .lp-btn-ghost {
        background: transparent;
        border-color: var(--btn-border);
        color: var(--btn-fg);
    }

    body.landing-page .lp-btn-ghost,
    body.landing-page .lp-btn-ghost:hover {
        color: var(--btn-fg);
    }

    .lp-btn-ghost:hover {
        background: var(--btn-icon-hover-bg);
        border-color: var(--btn-border-hover);
        color: var(--btn-fg);
    }

    .lp-btn-lg {
        min-height: 52px;
        padding: 14px 24px;
        font-size: 16px;
    }

    .lp-btn-compact {
        min-height: 40px;
        padding: 8px 14px;
        font-size: 14px;
    }

    .lp-btn-icon,
    .lp-badge-icon,
    .lp-proof-icon {
        flex: none;
    }

    .lp-short {
        display: none;
    }

    /* --- Первый экран -------------------------------------------- */
    .lp-hero {
        padding: 76px 0 56px;
    }

    .lp-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
        align-items: center;
        gap: 52px;
    }

    .lp-eyebrow {
        margin: 0 0 14px;
        color: var(--accent-2);
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .lp-hero h1 {
        margin: 0 0 20px;
        color: var(--text-primary);
        font-size: clamp(38px, 4.6vw, 54px);
        line-height: 1.04;
        letter-spacing: -0.025em;
    }

    .lp-gradient-text {
        background-image: var(--accent-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

    .lp-lead {
        max-width: 54ch;
        margin: 0 0 28px;
        color: var(--text-muted);
        font-size: 18px;
        line-height: 1.65;
    }

    .lp-cta-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .lp-cta-note {
        margin: 14px 0 0;
        color: var(--text-muted);
        font-size: 13px;
    }

    .lp-facts {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        margin: 34px 0 0;
        padding: 0;
        list-style: none;
    }

    .lp-facts div {
        padding: 0 22px;
        border-left: 1px solid var(--border);
    }

    .lp-facts div:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .lp-facts dt {
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .lp-facts dd {
        margin: 4px 0 0;
        color: var(--text-primary);
        font-size: 15px;
        font-weight: 700;
    }

    /* --- Рамка скриншота ----------------------------------------- */
    .lp-hero-shot {
        position: relative;
        margin: 0;
        min-width: 0;
    }

    .lp-shot-frame {
        position: relative;
        overflow: hidden;
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-xl);
        background: var(--bg-panel);
        box-shadow: var(--panel-shadow), var(--glow-accent);
    }

    .lp-shot-bar {
        display: flex;
        align-items: center;
        gap: 7px;
        height: 30px;
        padding: 0 14px;
        background: var(--bg-sidebar-dark);
        border-bottom: 1px solid var(--border);
    }

    .lp-shot-bar span {
        width: 9px;
        height: 9px;
        border-radius: var(--radius-round);
        background: var(--border-soft);
    }

    .lp-shot-bar span:nth-child(1) {
        background: var(--danger-solid);
    }

    .lp-shot-bar span:nth-child(2) {
        background: var(--warning);
    }

    .lp-shot-bar span:nth-child(3) {
        background: var(--success);
    }

    .lp-shot-img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        background: var(--bg-sidebar-dark);
    }

    .lp-shot-badge {
        position: absolute;
        right: 18px;
        bottom: -16px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 14px;
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-pill);
        background: var(--bg-panel);
        color: var(--text-primary);
        font-size: 13px;
        font-weight: 700;
        box-shadow: var(--shadow-menu);
    }

    /* --- Плейсхолдер кадра --------------------------------------- */
    .lp-shot-placeholder {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        padding: 24px;
        border: 1px dashed var(--border-strong);
        background-color: var(--bg-panel);
        background-image:
            radial-gradient(ellipse 55% 55% at 50% 30%,
                            var(--accent-soft), transparent 70%);
        color: var(--text-muted);
        text-align: center;
    }

    .lp-ratio-wide {
        aspect-ratio: 16 / 9;
    }

    .lp-ratio-phone {
        aspect-ratio: 390 / 844;
    }

    .lp-ph-icon {
        display: inline-flex;
        color: var(--accent-2);
    }

    .lp-ph-title {
        color: var(--text-normal);
        font-size: 15px;
        font-weight: 700;
    }

    .lp-ph-note {
        color: var(--text-muted);
        font-size: 12px;
    }

    /* --- Полоса фактов ------------------------------------------- */
    .lp-proof {
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        background: var(--bg-sidebar);
    }

    .lp-proof-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .lp-proof-row p {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        color: var(--text-muted);
        font-size: 14px;
    }

    .lp-proof-icon {
        color: var(--accent);
    }

    /* --- Секции -------------------------------------------------- */
    .lp-section {
        padding: 84px 0;
    }

    .lp-section-head {
        max-width: 660px;
        margin: 0 0 38px;
    }

    .lp-section-head h2,
    .lp-spotlight-copy h2,
    .lp-download-copy h2,
    .lp-mobile-copy h2,
    .lp-cta-band h2 {
        margin: 0 0 14px;
        color: var(--text-primary);
        font-size: clamp(28px, 3.2vw, 42px);
        line-height: 1.12;
        letter-spacing: -0.02em;
    }

    .lp-section-lead {
        margin: 0;
        color: var(--text-muted);
        font-size: 17px;
    }

    /* --- Возможности --------------------------------------------- */
    .lp-features {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .lp-card {
        padding: 24px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--bg-panel);
        transition: transform var(--transition-base),
                    border-color var(--transition-base),
                    box-shadow var(--transition-base);
    }

    .lp-card:hover {
        transform: translateY(-2px);
        border-color: var(--border-glow);
        box-shadow: var(--shadow-menu);
    }

    .lp-card-accent {
        border-color: var(--glass-border);
        background-image: linear-gradient(160deg, var(--accent-soft),
                                          transparent 65%);
    }

    .lp-card-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin-bottom: 16px;
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-md);
        background: var(--accent-soft);
        color: var(--accent-2);
    }

    .lp-card h3 {
        margin: 0 0 8px;
        color: var(--text-primary);
        font-size: 18px;
        line-height: 1.3;
    }

    .lp-card p {
        margin: 0;
        color: var(--text-muted);
        font-size: 14.5px;
        line-height: 1.6;
    }

    /* --- Демонстрация экрана ------------------------------------- */
    .lp-spotlight {
        padding: 72px 0;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        background: var(--bg-sidebar);
    }

    .lp-spotlight-grid {
        display: grid;
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        align-items: center;
        gap: 48px;
    }

    .lp-spotlight-copy p {
        color: var(--text-muted);
        font-size: 17px;
    }

    .lp-checks {
        margin: 22px 0 26px;
        padding: 0;
        list-style: none;
    }

    .lp-checks li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 7px 0;
        color: var(--text-normal);
        font-size: 15px;
    }

    .lp-checks .icon {
        color: var(--accent-2);
        flex: none;
    }

    .lp-text-link {
        display: inline-block;
        color: var(--accent-2);
        font-weight: 700;
    }

    .lp-spotlight-shot {
        margin: 0;
        min-width: 0;
    }

    .lp-spotlight-shot figcaption,
    .lp-gallery-item figcaption,
    .lp-phone figcaption {
        margin-top: 12px;
        color: var(--text-muted);
        font-size: 13px;
    }

    /* --- Галерея ------------------------------------------------- */
    .lp-gallery {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .lp-gallery-item {
        margin: 0;
        min-width: 0;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--bg-panel);
        transition: border-color var(--transition-base),
                    box-shadow var(--transition-base);
    }

    .lp-gallery-item:hover {
        border-color: var(--border-glow);
        box-shadow: var(--shadow-menu);
    }

    .lp-gallery-item .lp-shot-img,
    .lp-gallery-item .lp-shot-placeholder {
        border-radius: var(--radius-md);
        border: 0;
    }

    .lp-gallery-wide {
        grid-column: 1 / -1;
    }

    .lp-gallery-item figcaption {
        padding: 8px 6px 4px;
        color: var(--text-muted);
        font-size: 14px;
    }

    .lp-gallery-item figcaption strong {
        display: block;
        margin-bottom: 2px;
        color: var(--text-primary);
        font-size: 15px;
    }

    /* Текстовая карточка в галерее: заполняет вторую половину последнего
       ряда и не оставляет пустую клетку рядом с кадром настроек. */
    .lp-gallery-note {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        padding: 28px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--bg-panel);
        background-image: linear-gradient(160deg, var(--accent-soft),
                                          transparent 70%);
    }

    .lp-gallery-note h3 {
        margin: 0 0 12px;
        color: var(--text-primary);
        font-size: 19px;
    }

    .lp-gallery-note ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .lp-gallery-note li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 7px 0;
        color: var(--text-muted);
        font-size: 15px;
    }

    .lp-gallery-note .icon {
        flex: none;
        color: var(--accent-2);
    }

    /* --- Телефон ------------------------------------------------- */
    .lp-mobile {
        padding: 24px 0 84px;
    }

    .lp-mobile-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 330px;
        align-items: center;
        gap: 56px;
    }

    .lp-mobile-copy p {
        color: var(--text-muted);
        font-size: 17px;
    }

    .lp-phone {
        margin: 0;
        justify-self: center;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .lp-phone-frame {
        position: relative;
        padding: 12px;
        border: 1px solid var(--glass-border);
        border-radius: 38px;
        background: var(--bg-sidebar-dark);
        box-shadow: var(--panel-shadow), var(--glow-accent);
    }

    .lp-phone-notch {
        position: absolute;
        top: 18px;
        left: 50%;
        z-index: 2;
        width: 74px;
        height: 18px;
        transform: translateX(-50%);
        border-radius: var(--radius-pill);
        background: var(--bg-app);
        border: 1px solid var(--border);
    }

    .lp-phone .lp-shot-img,
    .lp-phone .lp-shot-placeholder {
        aspect-ratio: 390 / 844;
        border-radius: 28px;
        object-fit: cover;
    }

    .lp-phone .lp-shot-placeholder {
        padding: 16px;
    }

    /* --- Скачать ------------------------------------------------- */
    .lp-download {
        padding: 8px 0 84px;
    }

    .lp-download-card {
        position: relative;
        overflow: hidden;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 250px;
        align-items: center;
        gap: 36px;
        padding: 42px;
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-xl);
        background: var(--bg-panel);
        background-image:
            radial-gradient(ellipse 55% 90% at 100% 50%,
                            var(--accent-soft), transparent 70%);
        box-shadow: var(--panel-shadow);
    }

    .lp-download-copy p {
        color: var(--text-muted);
        font-size: 16px;
    }

    .lp-download-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 22px 0;
        padding: 0;
        list-style: none;
    }

    .lp-download-meta li {
        display: flex;
        flex-direction: column;
        min-width: 108px;
        padding: 10px 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--bg-sidebar-dark);
    }

    .lp-meta-label {
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .lp-meta-value {
        color: var(--text-primary);
        font-family: var(--font-mono);
        font-size: 15px;
        font-weight: 700;
    }

    .lp-download-note {
        margin: 14px 0 0;
        color: var(--text-muted);
        font-size: 13px;
    }

    .lp-download-aside {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 200px;
    }

    .lp-download-aside img {
        position: relative;
        z-index: 1;
        width: 160px;
        height: 160px;
        filter: drop-shadow(0 0 24px var(--border-glow));
    }

    .lp-download-ring {
        position: absolute;
        inset: 10px;
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-round);
        background-image: var(--neon-grad);
        opacity: 0.16;
    }

    /* --- FAQ ----------------------------------------------------- */
    .lp-faq-layout {
        display: grid;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        align-items: start;
        gap: 56px;
    }

    .lp-faq-head {
        position: sticky;
        top: 100px;
        margin-bottom: 0;
    }

    .lp-faq {
        border-top: 1px solid var(--border);
    }

    .lp-faq-item {
        border-bottom: 1px solid var(--border);
    }

    .lp-faq-item summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 20px 4px;
        color: var(--text-primary);
        font-size: 17px;
        font-weight: 700;
        cursor: pointer;
        list-style: none;
    }

    .lp-faq-item summary::-webkit-details-marker {
        display: none;
    }

    /* Раскрытие FAQ: плюс/минус — SVG из общего набора (icons.js), а не
       текстовые «+»/«−» из content. Размер и цвет задаёт CSS. */
    .lp-faq-mark {
        display: inline-flex;
        flex: none;
        align-items: center;
        justify-content: center;
        color: var(--accent-2);
    }

    .lp-faq-mark .lp-faq-minus {
        display: none;
    }

    .lp-faq-item[open] .lp-faq-plus {
        display: none;
    }

    .lp-faq-item[open] .lp-faq-minus {
        display: inline-block;
    }

    .lp-faq-item summary:hover {
        color: var(--accent-2);
    }

    .lp-faq-item p {
        margin: 0;
        padding: 0 4px 20px;
        color: var(--text-muted);
        font-size: 15px;
        line-height: 1.7;
    }

    /* --- Финальный призыв ---------------------------------------- */
    .lp-cta-band {
        padding: 0 0 88px;
    }

    .lp-cta-band-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 28px;
        padding: 36px 42px;
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-xl);
        background-color: var(--bg-sidebar);
        background-image: linear-gradient(120deg, var(--accent-soft),
                                          transparent 60%);
        box-shadow: var(--glow-accent);
    }

    .lp-cta-band h2 {
        margin-bottom: 8px;
        font-size: clamp(24px, 2.6vw, 34px);
    }

    .lp-cta-band p {
        margin: 0;
        color: var(--text-muted);
    }

    /* --- Футер --------------------------------------------------- */
    .lp-footer {
        border-top: 1px solid var(--border);
        background: var(--bg-sidebar-dark);
    }

    .lp-footer-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
        gap: 36px;
        padding-top: 52px;
        padding-bottom: 40px;
    }

    .lp-footer-brand p {
        max-width: 34ch;
        margin: 14px 0 0;
        color: var(--text-muted);
        font-size: 14px;
    }

    .lp-footer-col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        min-width: 0;
    }

    .lp-footer-col h2 {
        margin: 0 0 4px;
        color: var(--text-primary);
        font-size: 14px;
        font-weight: 800;
    }

    .lp-footer-col a {
        color: var(--text-muted);
        font-size: 14px;
    }

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

    .lp-footer-muted {
        color: var(--text-muted);
        font-size: 13px;
    }

    .lp-footer-bottom {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
        padding-top: 18px;
        padding-bottom: 28px;
        border-top: 1px solid var(--border);
    }

    .lp-footer-bottom p {
        margin: 0;
        color: var(--text-muted);
        font-size: 13px;
    }

    .lp-footer-licenses {
        max-width: 62ch;
    }

    /* --- Правовые страницы --------------------------------------- */
    .lp-legal-hero {
        padding: 52px 0 28px;
        border-bottom: 1px solid var(--border);
        background-image:
            radial-gradient(ellipse 55% 80% at 10% 0%,
                            var(--accent-soft), transparent 70%);
    }

    .lp-breadcrumb {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-bottom: 22px;
        color: var(--text-muted);
        font-size: 13px;
    }

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

    .lp-legal-hero h1 {
        max-width: 900px;
        margin: 0 0 12px;
        color: var(--text-primary);
        font-size: clamp(30px, 4vw, 52px);
        line-height: 1.1;
        letter-spacing: -0.02em;
    }

    .lp-legal-meta {
        margin: 0 0 18px;
        color: var(--text-muted);
        font-size: 14px;
    }

    .lp-legal-lead {
        max-width: 76ch;
        margin: 0;
        color: var(--text-muted);
        font-size: 17px;
        line-height: 1.7;
    }

    .lp-legal-layout {
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
        align-items: start;
        gap: 56px;
        padding-top: 40px;
        padding-bottom: 88px;
    }

    .lp-toc {
        position: sticky;
        top: 96px;
        padding: 18px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--bg-panel);
    }

    .lp-toc-title {
        margin: 0 0 10px;
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .lp-toc ol {
        margin: 0;
        padding-left: 20px;
        color: var(--text-muted);
        font-size: 14px;
    }

    .lp-toc li {
        margin: 6px 0;
    }

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

    .lp-toc a:hover {
        color: var(--accent-2);
    }

    .lp-legal {
        min-width: 0;
        max-width: 820px;
    }

    .lp-legal h2 {
        margin: 42px 0 14px;
        padding-top: 28px;
        border-top: 1px solid var(--border);
        color: var(--text-primary);
        font-size: 24px;
        line-height: 1.25;
        letter-spacing: -0.01em;
    }

    .lp-legal h2:first-child {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    .lp-legal p {
        margin: 0 0 14px;
        color: var(--text-normal);
        font-size: 16px;
        line-height: 1.75;
    }

    .lp-legal ul,
    .lp-legal ol {
        margin: 0 0 16px;
        padding-left: 24px;
        color: var(--text-normal);
    }

    .lp-legal li {
        margin: 6px 0;
        line-height: 1.7;
    }

    .lp-legal strong {
        color: var(--text-primary);
    }

    .lp-requisites {
        margin: 18px 0 20px;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--bg-panel);
        list-style: none;
        overflow: hidden;
    }

    .lp-requisites li {
        display: grid;
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 16px;
        margin: 0;
        padding: 12px 18px;
        border-top: 1px solid var(--border);
        font-size: 15px;
    }

    .lp-requisites li:first-child {
        border-top: 0;
    }

    .lp-requisites li > span {
        color: var(--text-muted);
    }

    .lp-requisites strong {
        overflow-wrap: anywhere;
    }

    .lp-template-note {
        margin-top: 44px;
        padding: 20px 22px;
        border: 1px solid var(--warning);
        border-radius: var(--radius-lg);
        background-color: var(--bg-panel);
        background-image: linear-gradient(120deg, var(--accent-soft),
                                          transparent 70%);
    }

    .lp-template-note strong {
        display: block;
        margin-bottom: 6px;
        color: var(--warning);
        font-size: 16px;
    }

    .lp-template-note p {
        margin: 0;
        color: var(--text-muted);
        font-size: 14px;
        line-height: 1.65;
    }

    .lp-table-wrap {
        overflow-x: auto;
        margin: 0 0 18px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
    }

    .lp-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .lp-table th,
    .lp-table td {
        padding: 12px 14px;
        border-bottom: 1px solid var(--border);
        text-align: left;
        vertical-align: top;
    }

    .lp-table th {
        background: var(--bg-sidebar);
        color: var(--text-primary);
        font-size: 13px;
        letter-spacing: 0.02em;
    }

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

    .lp-table tr:last-child td {
        border-bottom: 0;
    }

    /* =========================================================
       АДАПТИВ
       Базовые правила выше описывают широкий экран, media-запросы —
       уточнения для узкого. Проверено на 1440 и 390.
       ========================================================= */

    @media (max-width: 1040px) {
        .lp-hero-grid,
        .lp-spotlight-grid,
        .lp-mobile-grid {
            grid-template-columns: minmax(0, 1fr);
            gap: 38px;
        }

        .lp-hero {
            padding-top: 56px;
        }

        .lp-hero-shot {
            max-width: 720px;
        }

        .lp-features {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .lp-mobile-grid {
            justify-items: start;
        }

        .lp-phone {
            justify-self: start;
        }

        .lp-download-card {
            grid-template-columns: minmax(0, 1fr);
        }

        .lp-download-aside {
            display: none;
        }

        .lp-faq-layout {
            grid-template-columns: minmax(0, 1fr);
            gap: 28px;
        }

        .lp-faq-head {
            position: static;
        }

        .lp-footer-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .lp-legal-layout {
            grid-template-columns: minmax(0, 1fr);
            gap: 26px;
        }

        .lp-toc {
            position: static;
        }

        .lp-toc ol {
            columns: 2;
            column-gap: 24px;
        }
    }

    @media (max-width: 820px) {
        .lp-nav {
            display: none;
        }

        .lp-header-inner {
            min-height: 64px;
            gap: 12px;
        }

        .lp-brand-name {
            font-size: 16px;
        }

        .lp-brand-mark {
            width: 32px;
            height: 32px;
        }
    }

    @media (max-width: 640px) {
        html {
            scroll-padding-top: 74px;
        }

        .lp-shell {
            padding: 0 18px;
        }

        .lp-hero {
            padding: 40px 0 42px;
        }

        .lp-hero h1 {
            font-size: clamp(32px, 9vw, 44px);
        }

        .lp-lead {
            font-size: 16px;
        }

        .lp-long {
            display: none;
        }

        .lp-short {
            display: inline;
        }

        .lp-btn-compact {
            padding: 8px 12px;
            font-size: 13px;
        }

        .lp-header-actions {
            gap: 6px;
        }

        .lp-cta-row {
            gap: 10px;
        }

        .lp-cta-row .lp-btn-lg {
            flex: 1 1 100%;
        }

        .lp-facts div {
            padding: 0 14px;
        }

        .lp-facts dd {
            font-size: 14px;
        }

        .lp-proof-row {
            grid-template-columns: minmax(0, 1fr);
            gap: 10px;
        }

        .lp-section {
            padding: 58px 0;
        }

        .lp-section-head {
            margin-bottom: 26px;
        }

        .lp-features,
        .lp-gallery {
            grid-template-columns: minmax(0, 1fr);
        }

        .lp-gallery-wide {
            grid-column: auto;
        }

        .lp-card {
            padding: 20px;
        }

        .lp-spotlight {
            padding: 52px 0;
        }

        .lp-download-card {
            padding: 24px;
        }

        .lp-download-meta li {
            min-width: 0;
            flex: 1 1 30%;
        }

        .lp-cta-band {
            padding-bottom: 60px;
        }

        .lp-cta-band-inner {
            padding: 26px 22px;
        }

        .lp-footer-grid {
            grid-template-columns: minmax(0, 1fr);
            gap: 26px;
            padding-top: 38px;
        }

        .lp-footer-bottom {
            flex-direction: column;
        }

        .lp-legal-hero {
            padding: 34px 0 22px;
        }

        .lp-legal-layout {
            padding-top: 26px;
            padding-bottom: 60px;
        }

        .lp-toc ol {
            columns: 1;
        }

        .lp-legal h2 {
            font-size: 21px;
            margin-top: 34px;
            padding-top: 22px;
        }

        .lp-legal p,
        .lp-legal li {
            font-size: 15px;
        }

        .lp-requisites li {
            grid-template-columns: minmax(0, 1fr);
            gap: 2px;
        }

        .lp-table {
            font-size: 13px;
        }

        .lp-table th,
        .lp-table td {
            padding: 10px;
        }
    }

    @media (max-width: 390px) {
        .lp-shell {
            padding: 0 14px;
        }

        .lp-brand-name {
            max-width: 96px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .lp-btn-compact {
            padding: 8px 10px;
        }
    }

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

        .lp-btn,
        .lp-card,
        .lp-gallery-item {
            transition: none;
        }

        .lp-btn:hover,
        .lp-card:hover {
            transform: none;
        }
    }
}
