/* =========================================================================
   Femidaprime — публичная главная (лендинг для неавторизованных)
   Построена на токенах app.css: та же палитра indigo/violet, те же радиусы,
   те же темы через [data-bs-theme]. Свои переменные — с префиксом --lp-,
   свои классы — с префиксом .lp-, чтобы ничего не пересекалось с приложением.
   ========================================================================= */

.lp {
    --lp-deep: #312e81;
    --lp-deep-2: #4338ca;
    --lp-violet: #5b21b6;

    /* Светлый акцент, читаемый на тёмном indigo-градиенте героя */
    --lp-accent: #a5b4fc;
    /* Нумерация секций и предупреждающие блоки */
    --lp-amber: #f59e0b;

    --lp-surface: var(--bg-card);
    --lp-surface-2: var(--brand-50);
    --lp-amber-soft: #fffbeb;
    --lp-amber-line: #fde68a;
    --lp-amber-ink: #92400e;

    --lp-line: var(--border-subtle);
    --lp-radius: 22px;
    --lp-shadow: 0 18px 60px rgba(15, 23, 42, 0.10);

    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 72px;
}

[data-bs-theme="dark"] .lp {
    --lp-surface-2: rgba(99, 102, 241, 0.10);
    --lp-amber-soft: rgba(245, 158, 11, 0.10);
    --lp-amber-line: rgba(245, 158, 11, 0.30);
    --lp-amber-ink: #fcd34d;
    --lp-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

/* --------------------------------- Hero ---------------------------------- */

.lp-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 440px;
    padding: 44px 48px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(130deg, var(--lp-deep), var(--lp-deep-2) 62%, var(--lp-violet));
    box-shadow: var(--lp-shadow);
}

.lp-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 470px;
    height: 470px;
    right: -130px;
    top: -210px;
    border: 88px solid rgba(165, 180, 252, 0.16);
    border-radius: 50%;
}

.lp-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 230px;
    height: 230px;
    right: 170px;
    bottom: -145px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.28);
}

.lp-hero__eyebrow {
    margin: 0 0 12px;
    color: var(--lp-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lp-hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(38px, 5.4vw, 64px);
    line-height: 1.0;
    letter-spacing: -0.045em;
    font-weight: 700;
}

.lp-hero__lead {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.5;
}

.lp-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.lp-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.lp-nav a {
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: var(--r-pill);
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background var(--dur-fast) var(--ease),
        border-color var(--dur-fast) var(--ease),
        transform var(--dur-fast) var(--ease);
}

.lp-nav a:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.40);
    color: #fff;
    transform: translateY(-1px);
}

/* Кнопка на тёмном герое: инвертированная, чтобы не спорить с btn-primary.
   position + overflow — под пробегающий блик (см. «Микродинамика»). */
.lp-btn-on-dark {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border: 0;
    border-radius: var(--r-pill);
    color: var(--lp-deep);
    background: #fff;
    font-weight: 650;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.lp-btn-on-dark:hover {
    color: var(--lp-deep);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.lp-btn-on-dark--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

/* app.css красит все <a> тёмной темы селектором [data-bs-theme="dark"] a —
   он специфичнее одного класса и делал текст кнопок бледно-сиреневым.
   Возвращаем цвет селектором тяжелее атрибутного. */
[data-bs-theme="dark"] .lp-btn-on-dark { color: var(--lp-deep); }
[data-bs-theme="dark"] .lp-btn-on-dark--ghost { color: #fff; }

.lp-btn-on-dark--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

/* ------------------------------- Прайс-полоса ---------------------------- */

.lp-summary {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 12px;
    margin: -44px 28px 0;
}

.lp-summary__card {
    min-height: 136px;
    padding: 20px;
    border: var(--card-border);
    border-radius: var(--r-xl);
    background: var(--lp-surface);
    box-shadow: var(--shadow-md);
}

.lp-summary__card--primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(140deg, var(--lp-deep-2), var(--brand-600));
}

.lp-summary__label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp-summary__card--primary .lp-summary__label { color: rgba(255, 255, 255, 0.70); }

.lp-summary__value {
    display: block;
    font-size: clamp(23px, 2.8vw, 33px);
    line-height: 1;
    letter-spacing: -0.035em;
    font-weight: 700;
    white-space: nowrap;
    color: var(--text-primary);
}

.lp-summary__card--primary .lp-summary__value { color: #fff; }

.lp-summary__note {
    display: block;
    margin-top: 9px;
    color: var(--text-muted);
    font-size: 12px;
}

.lp-summary__card--primary .lp-summary__note { color: rgba(255, 255, 255, 0.72); }

/* --------------------------------- Секции -------------------------------- */

.lp-section {
    margin-top: 84px;
    scroll-margin-top: 24px;
}

.lp-section__head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 18px;
    margin-bottom: 26px;
}

.lp-section__num {
    color: var(--lp-amber);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.lp-section__head h2 {
    margin: 0;
    font-size: clamp(29px, 3.8vw, 44px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 700;
    color: var(--text-primary);
}

.lp-section__desc {
    grid-column: 2;
    max-width: 760px;
    margin: -4px 0 0;
    color: var(--text-muted);
}

/* --------------------------------- Панели -------------------------------- */

.lp-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
}

.lp-panel {
    padding: 26px;
    border: var(--card-border);
    border-radius: var(--lp-radius);
    background: var(--lp-surface);
    box-shadow: var(--shadow-sm);
    break-inside: avoid;
}

.lp-panel h3 {
    margin: 14px 0 0;
    font-size: 25px;
    line-height: 1.14;
    letter-spacing: -0.028em;
    font-weight: 650;
    color: var(--text-primary);
}

.lp-panel p {
    margin: 12px 0 0;
    color: var(--text-muted);
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: var(--r-pill);
    color: var(--brand-700);
    background: var(--brand-50);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lp-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-600);
}

[data-bs-theme="dark"] .lp-badge {
    color: var(--brand-300);
    background: rgba(99, 102, 241, 0.16);
}

.lp-check {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.lp-check li {
    position: relative;
    padding-left: 28px;
    color: var(--text-secondary);
}

.lp-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
    color: var(--brand-700);
    background: var(--brand-100);
    font-size: 11px;
    font-weight: 800;
}

[data-bs-theme="dark"] .lp-check li::before {
    color: var(--brand-300);
    background: rgba(99, 102, 241, 0.20);
}

.lp-lines {
    display: grid;
    gap: 0;
    margin-top: 18px;
}

.lp-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    padding: 14px 0;
    border-top: 1px solid var(--lp-line);
}

.lp-line span { color: var(--text-muted); font-size: 13px; }
.lp-line strong { font-size: 19px; white-space: nowrap; color: var(--text-primary); }

/* ------------------------------ Карточка-решение -------------------------- */

.lp-decision {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 26px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--brand-100);
    border-radius: var(--lp-radius);
    background: linear-gradient(135deg, var(--bg-card), var(--brand-50));
    box-shadow: var(--shadow-sm);
}

[data-bs-theme="dark"] .lp-decision {
    border-color: rgba(99, 102, 241, 0.22);
    background: linear-gradient(135deg, var(--bg-card), rgba(99, 102, 241, 0.10));
}

.lp-decision h3 {
    margin: 14px 0 0;
    font-size: 26px;
    line-height: 1.14;
    letter-spacing: -0.03em;
    font-weight: 650;
    color: var(--text-primary);
}

.lp-decision p {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--text-muted);
}

.lp-decision__total {
    min-width: 240px;
    padding: 22px;
    border-radius: var(--r-xl);
    color: #fff;
    background: linear-gradient(140deg, var(--lp-deep-2), var(--brand-600));
}

.lp-decision__total span {
    display: block;
    color: rgba(255, 255, 255, 0.70);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.lp-decision__total strong {
    display: block;
    margin-top: 9px;
    font-size: 31px;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.lp-decision__total small {
    display: block;
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.70);
}

/* ------------------------------ Карточки-этапы ---------------------------- */

.lp-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.lp-card {
    min-height: 218px;
    padding: 22px;
    border: var(--card-border);
    border-radius: var(--lp-radius);
    background: var(--lp-surface);
    box-shadow: var(--shadow-sm);
    break-inside: avoid;
}

.lp-card--accent {
    position: relative;
    overflow: hidden;
    border-color: transparent;
    color: #fff;
    background: linear-gradient(140deg, var(--lp-deep), var(--lp-deep-2));
}

.lp-card--accent::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -90px;
    bottom: -100px;
    border: 34px solid rgba(165, 180, 252, 0.22);
    border-radius: 50%;
}

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

.lp-card--accent .lp-card__tag { color: var(--lp-accent); }

.lp-card__value {
    display: block;
    margin-top: 22px;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 700;
    white-space: nowrap;
    color: var(--text-primary);
}

.lp-card--accent .lp-card__value { color: #fff; }

.lp-card h4 {
    margin: 15px 0 0;
    font-size: 17px;
    line-height: 1.24;
    font-weight: 650;
    color: var(--text-primary);
}

.lp-card--accent h4 { color: #fff; }

.lp-card p {
    margin: 9px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}

.lp-card--accent p { color: rgba(255, 255, 255, 0.74); }

/* ------------------------------- Мелкие блоки ----------------------------- */

.lp-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.lp-tile {
    padding: 15px;
    border-radius: var(--r-md);
    background: var(--lp-surface-2);
}

.lp-tile--amber { background: var(--lp-amber-soft); }

.lp-tile span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.lp-tile strong {
    display: block;
    margin-top: 6px;
    font-size: 20px;
    letter-spacing: -0.025em;
    white-space: nowrap;
    color: var(--text-primary);
}

.lp-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    margin-top: 16px;
    padding: 15px 18px;
    border: 1px solid var(--lp-amber-line);
    border-radius: var(--r-md);
    background: var(--lp-amber-soft);
    color: var(--lp-amber-ink);
    font-size: 13px;
}

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

[data-bs-theme="dark"] .lp-note strong { color: var(--lp-amber-ink); }

.lp-alert {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid var(--lp-amber-line);
    border-left: 5px solid var(--lp-amber);
    border-radius: var(--r-md);
    background: var(--lp-amber-soft);
}

.lp-alert strong {
    display: block;
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.3;
}

.lp-alert p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 15px;
}

/* -------------------------- Раскрывающаяся выгрузка ----------------------- */

.lp-disclosure {
    margin-top: 14px;
    overflow: hidden;
    border: var(--card-border);
    border-radius: var(--r-xl);
    background: var(--lp-surface);
}

.lp-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 650;
    color: var(--text-primary);
}

.lp-disclosure > summary::-webkit-details-marker { display: none; }

.lp-disclosure > summary::after {
    content: "+";
    display: grid;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--brand-600);
    font-size: 18px;
    transition: transform var(--dur) var(--ease);
}

/* Повёрнутый «+» читается как «закрыть» — и, в отличие от смены content
   на «−», умеет анимироваться. */
.lp-disclosure[open] > summary::after { transform: rotate(45deg); }

.lp-sub {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
}

.lp-disclosure__body {
    padding: 0 20px 20px;
    border-top: 1px solid var(--lp-line);
}

.lp-table-wrap {
    margin-top: 16px;
    overflow-x: auto;
    border: 1px solid var(--lp-line);
    border-radius: var(--r-md);
}

.lp-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.lp-table-wrap th {
    padding: 10px 12px;
    color: var(--text-muted);
    background: var(--lp-surface-2);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.lp-table-wrap td {
    padding: 11px 12px;
    border-top: 1px solid var(--lp-line);
    font-size: 12px;
    vertical-align: top;
    color: var(--text-secondary);
}

.lp-table-wrap .num { text-align: right; white-space: nowrap; }

.lp-table-wrap tr.is-total td {
    background: var(--brand-50);
    font-weight: 700;
    color: var(--text-primary);
}

[data-bs-theme="dark"] .lp-table-wrap tr.is-total td { background: rgba(99, 102, 241, 0.14); }

.lp-table-wrap tr.is-subtotal td {
    background: var(--lp-surface-2);
    font-weight: 600;
}

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

/* --------------------------------- Финансы -------------------------------- */

.lp-finance {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
}

.lp-finance__main {
    padding: 30px;
    border-radius: var(--lp-radius);
    color: #fff;
    background: linear-gradient(140deg, var(--lp-deep), var(--lp-deep-2) 70%, var(--lp-violet));
}

.lp-finance__main h3 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.035em;
    font-weight: 650;
}

.lp-finance__main > p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.lp-finance__lines {
    margin-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.lp-finance__line {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.lp-finance__line span { color: rgba(255, 255, 255, 0.74); }
.lp-finance__line strong { white-space: nowrap; }

.lp-total {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-top: 24px;
}

.lp-total span {
    display: block;
    color: var(--lp-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp-total strong {
    display: block;
    margin-top: 7px;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.05em;
    white-space: nowrap;
}

.lp-total small { color: rgba(255, 255, 255, 0.74); }

.lp-steps {
    display: grid;
    gap: 15px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: lpsteps;
}

.lp-steps li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: start;
    counter-increment: lpsteps;
}

.lp-steps li::before {
    content: counter(lpsteps, decimal-leading-zero);
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    color: var(--brand-700);
    background: var(--brand-100);
    font-size: 11px;
    font-weight: 800;
}

[data-bs-theme="dark"] .lp-steps li::before {
    color: var(--brand-300);
    background: rgba(99, 102, 241, 0.20);
}

.lp-steps span { color: var(--text-muted); font-size: 14px; }

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

.lp-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 22px;
    margin-top: 64px;
    padding-top: 20px;
    border-top: 1px solid var(--lp-line);
    color: var(--text-muted);
    font-size: 12px;
}

.lp-footer__copy,
.lp-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lp-footer__contacts {
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
}

.lp-footer__contacts a { text-decoration: none; }

/* -------------------------------- Адаптив --------------------------------- */

@media (max-width: 980px) {
    .lp { width: min(100% - 24px, 780px); }
    .lp-hero { min-height: 0; padding: 32px; }
    .lp-summary { grid-template-columns: repeat(2, 1fr); margin: -34px 16px 0; }
    .lp-cards { grid-template-columns: 1fr; }
    .lp-card { min-height: 0; }
    .lp-grid,
    .lp-finance { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .lp { width: min(100% - 16px, 560px); }
    .lp-hero { padding: 24px; }
    .lp-summary { gap: 8px; margin-inline: 8px; }
    .lp-summary__card { min-height: 112px; padding: 15px; }
    .lp-summary__value { font-size: 23px; }
    .lp-section { margin-top: 64px; }
    .lp-section__head { grid-template-columns: 1fr; gap: 6px; }
    .lp-section__desc { grid-column: 1; margin-top: 0; }
    .lp-decision { grid-template-columns: 1fr; padding: 22px; }
    .lp-decision__total { min-width: 0; }
    .lp-tiles { grid-template-columns: 1fr; }
    .lp-panel,
    .lp-finance__main { padding: 22px; }
    .lp-total { flex-direction: column; align-items: flex-start; }
    .lp-total strong { font-size: 34px; }
    .lp-footer { flex-direction: column; align-items: flex-start; }
    .lp-footer__contacts { text-align: left; }
}

/* ------------------------------ Микродинамика ------------------------------ */
/* Оживление страницы без смены палитры. Три сквозных правила безопасности:
   - всё, что скрывает контент, работает только под html.lp-js (класс вешает
     static/js/landing.js — без JS страница полностью статична и видима);
   - самопроизвольное движение выключено при prefers-reduced-motion;
   - печать глушит динамику в блоке @media print ниже. */

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

::selection { background: rgba(99, 102, 241, 0.22); }
[data-bs-theme="dark"] ::selection { background: rgba(99, 102, 241, 0.45); }

/* Появление блоков при входе в вьюпорт. Именно animation, а не transition:
   transition на transform «залипал» бы в ховер-подъёмах карточек ниже. */
@media (prefers-reduced-motion: no-preference) {
    .lp-js .lp-reveal { opacity: 0; }
    .lp-js .lp-reveal.is-in { animation: lp-rise 0.55s var(--ease) both; }
}

@keyframes lp-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

/* Карточки чуть приподнимаются под курсором. Только на устройствах с ховером:
   на тач-экранах эффект «залипает» после тапа. */
@media (hover: hover) {
    .lp-summary__card, .lp-panel, .lp-card, .lp-tile, .lp-decision {
        transition:
            transform var(--dur) var(--ease),
            box-shadow var(--dur) var(--ease),
            border-color var(--dur) var(--ease);
    }

    .lp-summary__card:hover, .lp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
    .lp-panel:hover, .lp-decision:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
    .lp-tile:hover { transform: translateY(-2px); }

    /* Градиентные карточки бордер не подсвечивают: он у них и так прозрачный. */
    .lp-summary__card:not(.lp-summary__card--primary):hover,
    .lp-card:not(.lp-card--accent):hover,
    .lp-panel:hover { border-color: rgba(99, 102, 241, 0.35); }

    .lp-table-wrap tbody tr:not(.is-total):not(.is-subtotal):hover td { background: var(--lp-surface-2); }

    .lp-disclosure > summary { transition: background-color var(--dur) var(--ease); }
    .lp-disclosure > summary:hover { background: var(--lp-surface-2); }
}

/* Герой: медленное «дыхание» градиента и дрейф декоративных кругов.
   Циклы длинные, чтобы движение замечалось краем глаза, а не отвлекало. */
@media (prefers-reduced-motion: no-preference) {
    .lp-hero {
        background-size: 180% 180%;
        animation: lp-hero-drift 24s ease-in-out infinite alternate;
    }

    .lp-hero::before { animation: lp-float-a 16s ease-in-out infinite alternate; }
    .lp-hero::after  { animation: lp-float-b 12s ease-in-out infinite alternate; }

    .lp-badge::before { animation: lp-pulse 2.6s var(--ease) infinite; }
}

@keyframes lp-hero-drift {
    from { background-position: 0% 0%; }
    to   { background-position: 100% 100%; }
}

@keyframes lp-float-a {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-18px, 14px, 0); }
}

@keyframes lp-float-b {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(12px, -16px, 0); }
}

@keyframes lp-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.35); }
    70%  { box-shadow: 0 0 0 6px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* Блик, пробегающий по кнопкам героя. Обратного transition нет нарочно:
   после ухода курсора блик сбрасывается мгновенно и незаметно. */
.lp-btn-on-dark::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-130%) skewX(-18deg);
    background: linear-gradient(105deg, transparent 38%, rgba(67, 56, 202, 0.14) 50%, transparent 62%);
    pointer-events: none;
}

.lp-btn-on-dark--ghost::after {
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.28) 50%, transparent 62%);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .lp-btn-on-dark:hover::after {
        transform: translateX(130%) skewX(-18deg);
        transition: transform 0.6s var(--ease);
    }
}

/* Таблица выгрузки мягко проявляется при каждом раскрытии. */
@media (prefers-reduced-motion: no-preference) {
    .lp-disclosure[open] .lp-disclosure__body { animation: lp-rise 0.4s var(--ease) both; }
}

/* «Фонарик» тёмной темы: размытое световое пятно под курсором на тёмных
   блоках с белым текстом. Координаты пятна (--lp-mx/--lp-my) обновляет
   landing.js на mousemove. Градиентные карточки (старт проверки, accent,
   финансы) исключены — они светятся и так. Селектор фонарика в landing.js
   держать в согласии с этим списком. */
.lp-summary__card, .lp-panel, .lp-card, .lp-tile, .lp-decision, .lp-disclosure { position: relative; }

[data-bs-theme="dark"] .lp-summary__card:not(.lp-summary__card--primary)::after,
[data-bs-theme="dark"] .lp-panel::after,
[data-bs-theme="dark"] .lp-card:not(.lp-card--accent)::after,
[data-bs-theme="dark"] .lp-tile::after,
[data-bs-theme="dark"] .lp-decision::after,
[data-bs-theme="dark"] .lp-disclosure::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(
        280px circle at var(--lp-mx, 50%) var(--lp-my, 50%),
        var(--lp-torch, rgba(165, 180, 252, 0.34)),
        transparent 65%
    );
    transition: opacity var(--dur) var(--ease);
    pointer-events: none;
}

/* Янтарная плитка подсвечивается тёплым светом, а не индиговым. */
[data-bs-theme="dark"] .lp-tile--amber { --lp-torch: rgba(251, 191, 36, 0.26); }

[data-bs-theme="dark"] .lp-summary__card:not(.lp-summary__card--primary):hover::after,
[data-bs-theme="dark"] .lp-panel:hover::after,
[data-bs-theme="dark"] .lp-card:not(.lp-card--accent):hover::after,
[data-bs-theme="dark"] .lp-tile:hover::after,
[data-bs-theme="dark"] .lp-decision:hover::after,
[data-bs-theme="dark"] .lp-disclosure:hover::after { opacity: 1; }

/* Тень у шапки, когда страница проскроллена. */
.lp-js .app-header { transition: box-shadow var(--dur) var(--ease); }
.lp-js .app-header.is-scrolled { box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10); }
[data-bs-theme="dark"].lp-js .app-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }

/* Полоса прогресса чтения. Элемент создаёт landing.js, поэтому без JS её нет.
   Живёт вне .lp — токены --lp-* здесь недоступны, цвета из app.css/литералы. */
.lp-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 3000;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--brand-500), #8b5cf6);
    pointer-events: none;
}

/* --------------------------------- Печать --------------------------------- */

@media print {
    @page { size: A4; margin: 10mm; }

    .app-header,
    .lp-hero__cta { display: none !important; }

    /* Кружок «+/−» — интерактивный элемент, на бумаге и в PDF он мёртвый. */
    .lp-disclosure > summary::after { display: none !important; }
    .lp-disclosure > summary { cursor: default; }

    /* Иначе тянущийся на 100vh шелл допечатывает пустой блок под подвалом. */
    .app-shell { min-height: 0; }

    .lp { width: 100%; margin: 0; }
    .lp-hero { min-height: 0; padding: 28px; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .lp-section { margin-top: 38px; }
    .lp-panel,
    .lp-card,
    .lp-decision,
    .lp-finance__main { box-shadow: none; break-inside: avoid; }
    .lp-disclosure:not([open]) .lp-disclosure__body { display: none; }

    /* Ширина A4 за вычетом полей — около 718px, то есть попадает под мобильный
       брейкпоинт, и вся вёрстка схлопывается в одну колонку. На бумаге это
       лишние страницы, поэтому возвращаем сетки к десктопным. */
    .lp-summary { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
    .lp-grid { grid-template-columns: 1.2fr 0.8fr; }
    .lp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-tiles { grid-template-columns: repeat(3, 1fr); }
    .lp-finance { grid-template-columns: 1.15fr 0.85fr; }
    .lp-decision { grid-template-columns: 1fr auto; }

    /* Прайс-полоса заезжает на героя отрицательным margin. Герой в печати ниже,
       чем на экране, и карточки накрывают навигацию — возвращаем обычный отступ. */
    .lp-summary { margin: 16px 0 0; }
    .lp-summary__card { min-height: 0; padding: 15px; box-shadow: none; }
    .lp-card { min-height: 0; padding: 18px; }

    /* Выгрузка длинная: пусть ломается по страницам, но каждая таблица целиком. */
    .lp-disclosure { box-shadow: none; break-inside: auto; }
    .lp-table-wrap { break-inside: avoid; }

    /* Вся микродинамика на бумаге мертва: непоказанные блоки — видимы,
       герой — в исходном градиенте, полоса чтения — отсутствует. */
    .lp-progress { display: none !important; }
    .lp-reveal { opacity: 1 !important; animation: none !important; }
    .lp-hero { background-size: auto; }
    .lp-hero, .lp-hero::before, .lp-hero::after,
    .lp-badge::before, .lp-disclosure__body { animation: none !important; }
}
