/* ============================================================
   Внутренние публичные страницы в стиле главной (SITE_AUDIT_PLAN.md, этап 1):
   документы, контакты, итог оплаты. Подключается в layouts/public.php.
   Язык тот же, что у главной (landing-content.css, hero-home.css): шрифт
   заголовков Inter Hero, мягкий фон «шёлк», метка над заголовком, акцентное
   слово фиолетовым, карточки с пастельной заливкой, фиолетовые ссылки.
   ============================================================ */

/* Шрифт заголовков главной. Объявлен и в hero-home.css (тот подключается
   только на главной); одинаковое объявление браузер грузит один раз. */
@font-face {
    font-family: 'Inter Hero';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/assets/fonts/inter-hero-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Inter Hero';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/assets/fonts/inter-hero-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+2000-206F;
}

.pp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 36px;
}

/* --- Шапка страницы: фон, метка, заголовок --- */
.pp-hero {
    position: relative;
    isolation: isolate;
    padding: 56px 0 40px;
}

.pp-hero::before {
    content: '';
    position: absolute;
    inset: -72px 0 -40px;
    z-index: -1;
    pointer-events: none;
    background: url('/assets/img/hero-silk-wave.webp') 70% 0 / max(100%, 1500px) auto no-repeat;
    opacity: .55;
    -webkit-mask-image: linear-gradient(#000 35%, transparent);
    mask-image: linear-gradient(#000 35%, transparent);
}

.pp-hero-center { text-align: center; }
.pp-hero-center .pp-lead { margin-inline: auto; }

.pp-hero .section-eyebrow { margin: 0; }

.pp-title {
    font-family: 'Inter Hero', Inter, sans-serif;
    font-size: clamp(34px, 4.2vw, 56px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.045em;
    color: #11111b;
    margin: 16px 0 20px;
}

.pp-title span { color: #8060dc; }

.pp-lead {
    max-width: 720px;
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    color: #666574;
}

.pp-lead a { color: #8054ae; text-underline-offset: 3px; }

.pp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 7px 14px;
    border: 1px solid #e4d9f3;
    border-radius: 999px;
    background: #ffffffd9;
    font-size: 13px;
    color: #7052ad;
}

.pp-chip::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--l-gradient);
}

/* --- Переключатель документов --- */
.doc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.doc-tab {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border: 1px solid #e7e0f0;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #3f3f46;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}

.doc-tab:hover { border-color: #bda1e3; box-shadow: 0 6px 18px #7851a910; text-decoration: none; }

.doc-tab.is-active,
.doc-tab.is-active:hover {
    border-color: var(--color-accent, #000);
    background: var(--color-accent, #000);
    color: #fff;
    box-shadow: none;
}

/* --- Главное в карточках (условия) --- */
.doc-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 4px 0 40px;
}

.doc-fact {
    min-width: 0;
    padding: 24px;
    border: 1px solid #e9e3f7;
    border-radius: 22px;
    background: linear-gradient(145deg, #f5f0ff, #fdfcff);
}

.doc-fact:nth-child(2) { background: linear-gradient(145deg, #fff2f8, #fffdfd); border-color: #f3e4ec; }
.doc-fact:nth-child(3) { background: linear-gradient(145deg, #eef1ff, #fcfcff); border-color: #e2e7f9; }
.doc-fact:nth-child(4) { background: linear-gradient(145deg, #f3f0ff, #fffaf6); border-color: #ece4f2; }

.doc-fact-kicker {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8a7d98;
}

.doc-fact-value {
    font-family: 'Inter Hero', Inter, sans-serif;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1.2;
    color: #15101e;
    margin: 16px 0 8px;
}

.doc-fact p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #6b6578;
}

/* --- Документ: оглавление + текст в карточке --- */
.doc-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    padding-bottom: 96px;
}

.doc-toc {
    position: sticky;
    top: 104px;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    padding-right: 4px;
}

.doc-toc-title {
    display: block;
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8a7d98;
}

.doc-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid #ece4f5;
}

.doc-toc a {
    display: block;
    margin-left: -1px;
    padding: 7px 0 7px 16px;
    border-left: 2px solid transparent;
    font-size: 13.5px;
    line-height: 1.45;
    color: #71717a;
    text-decoration: none;
    transition: color .15s, border-color .15s;
}

.doc-toc a:hover { color: #3f3f46; text-decoration: none; }
.doc-toc a.is-current { color: #7a52d1; border-left-color: #8a5fe0; font-weight: 500; }

.doc-body {
    min-width: 0;
    padding: 48px 56px;
    border: 1px solid #ece4f5;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 26px 70px #7753bb0f;
}

.doc-body h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.02em;
    color: #15101e;
    margin: 44px 0 16px;
    scroll-margin-top: 100px;
}

.doc-body > h2:first-child,
.doc-body > :first-child { margin-top: 0; }

.doc-body p,
.doc-body li {
    font-size: 16px;
    line-height: 1.75;
    color: #3f3f46;
}

.doc-body p { margin: 0 0 14px; }

.doc-body ul,
.doc-body ol {
    margin: 0 0 18px;
    padding-left: 0;
    list-style: none;
}

.doc-body ol { counter-reset: doc-item; }

.doc-body li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 26px;
}

.doc-body ul > li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: .72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a77cf0, #e09ad0);
}

.doc-body ol > li { counter-increment: doc-item; }

.doc-body ol > li::before {
    content: counter(doc-item);
    position: absolute;
    left: 0;
    top: .2em;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f2ecfb;
    font-size: 11px;
    font-weight: 600;
    color: #8060dc;
}

.doc-body strong { color: #15101e; font-weight: 600; }

/* Ссылки внутри текста. Карточки, баннер и список документов — сами ссылки,
   их не подчёркиваем (на главной ссылки-кнопки тоже без подчёркивания) */
.doc-body a,
.pp-panel p a {
    color: #8054ae;
    text-decoration: underline;
    text-decoration-color: #d9c6ef;
    text-underline-offset: 3px;
}

.doc-body a:hover,
.pp-panel p a:hover { text-decoration-color: currentColor; }

.pp-card,
.pp-card:hover,
.pp-banner,
.pp-banner:hover,
.pp-links a,
.pp-links a:hover { text-decoration: none; }

.doc-note {
    margin: 0 0 18px;
    padding: 18px 22px;
    border: 1px solid #e6dbf6;
    border-radius: 16px;
    background: linear-gradient(120deg, #f6f1ff, #fff9fd);
    font-size: 15px;
    line-height: 1.7;
    color: #4d4458;
}

.doc-requisites {
    margin-top: 40px;
    padding: 20px 24px;
    border-radius: 16px;
    background: #f8f5fd;
    font-size: 14px;
    line-height: 1.7;
    color: #6b6578;
}

/* --- Контакты --- */
.pp-section { padding-bottom: 96px; }

.pp-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pp-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    border: 1px solid #e9e3f7;
    border-radius: 26px;
    background: linear-gradient(145deg, #f5f0ff, #fdfcff);
    color: #11111b;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.pp-card-pink { background: linear-gradient(145deg, #fff2f8, #fffdfd); border-color: #f3e4ec; }
.pp-card-blue { background: linear-gradient(145deg, #eef1ff, #fcfcff); border-color: #e2e7f9; }

a.pp-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px #7655c512; text-decoration: none; }

.pp-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.pp-card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 12px #59498c0a;
    color: #8860e4;
}

.pp-card-pink .pp-card-icon { color: #d073a7; }
.pp-card-blue .pp-card-icon { color: #7077d8; }
.pp-card-icon svg { width: 24px; height: 24px; }

.pp-card-index { font-size: 11px; letter-spacing: .1em; color: #82788f; }

.pp-card h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #82718f;
}

.pp-card-value {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.03em;
    color: #15101e;
    overflow-wrap: anywhere;
}

.pp-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #6b6578;
}

.pp-card-arrow { margin-top: auto; padding-top: 22px; font-size: 13px; font-weight: 600; color: #8054ae; }

.pp-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 22px 28px;
    border: 1px solid #e9dff7;
    border-radius: 22px;
    background: linear-gradient(110deg, #f8f4ff, #fff9fd);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}

.pp-banner:hover { border-color: #bda1e3; box-shadow: 0 6px 18px #7851a910; text-decoration: none; }

.pp-banner-icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    height: 44px;
    border-radius: 13px;
    background: #fff;
    color: #9366d5;
}

.pp-banner-icon svg { width: 24px; height: 24px; }
.pp-banner strong { display: block; font-size: 16px; color: #40324f; }
.pp-banner span { font-size: 14px; color: #83748f; }
.pp-banner-arrow { margin-left: auto; font-size: 20px; color: #9366d5; }

.pp-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.pp-panel {
    min-width: 0;
    padding: 30px;
    border: 1px solid #ece4f5;
    border-radius: 26px;
    background: #fff;
}

.pp-panel h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #15101e;
}

.pp-panel p { margin: 0 0 12px; font-size: 15px; line-height: 1.75; color: #3f3f46; }
.pp-panel p + h2 { margin-top: 26px; }

.pp-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pp-links li + li { border-top: 1px solid #f0eaf6; }

.pp-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    font-size: 15px;
    color: #3f3f46;
    text-decoration: none;
}

.pp-links a::after { content: '↗'; color: #9b7cc6; }
.pp-links a:hover { color: #7a52d1; text-decoration: none; }

/* --- Итог оплаты --- */
.pp-result {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 44px;
    border: 1px solid #ece4f5;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 26px 70px #7753bb14;
    text-align: center;
}

.pp-result-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1e9ff, #fde9f4);
    color: #7a52d1;
}

.pp-result-icon svg { width: 30px; height: 30px; }
.pp-result-fail .pp-result-icon { background: #fdf0f0; color: #c2545b; }

.pp-result .pp-title { font-size: clamp(30px, 3.4vw, 42px); }
.pp-result p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: #3f3f46; }
.pp-result-balance {
    margin: 22px 0;
    padding: 18px;
    border-radius: 18px;
    background: #f8f5fd;
}

.pp-result-balance span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8a7d98; }
.pp-result-balance strong { font-family: 'Inter Hero', Inter, sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -.04em; color: #15101e; }
.pp-result .btn { margin: 10px 0 22px; }
.pp-result-note { font-size: 13px !important; color: #83758b !important; }
.pp-result a:not(.btn) { color: #8054ae; text-underline-offset: 3px; }

/* ============================================================
   Тарифы (SITE_AUDIT_PLAN.md, этап 2) — карточки как «Стоимость» на главной
   ============================================================ */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Плашка пробника в шапке */
.pr-trial {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 860px;
    margin: 30px auto 0;
    padding: 18px 20px 18px 22px;
    border: 1px solid #ddcbf0;
    border-radius: 22px;
    background: radial-gradient(ellipse at 100% 0, #ecd7fa, transparent 65%), #f8f3fe;
    text-align: left;
}

.pr-trial-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    height: 46px;
    border-radius: 14px;
    background: #fff;
    color: #8860e4;
    box-shadow: 0 4px 12px #59498c0f;
}

.pr-trial-icon svg { width: 24px; height: 24px; }

.pr-trial-copy { font-size: 15px; line-height: 1.55; color: #5d5468; }
.pr-trial-copy strong { color: #15101e; font-weight: 700; }
.pr-trial-copy small { display: block; margin-top: 2px; font-size: 12.5px; color: #8a7d98; }
.pr-trial-btn { flex: none; margin-left: auto; border-radius: 14px; padding: 14px 20px; white-space: nowrap; }

/* Пакеты */
.pr-section { padding: 8px 0 40px; }
.pr-stub { margin-bottom: 20px; }
.pr-error { margin-top: 20px; color: #b42318; border-color: #f3d0d0; background: #fff6f6; }

.pr-packages {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.pr-pack {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px 24px 24px;
    border: 1px solid #e7e0f0;
    border-radius: 26px;
    background: #fff;
    transition: transform .2s, box-shadow .2s;
}

.pr-pack:hover { transform: translateY(-4px); box-shadow: 0 16px 35px #7655c512; }

.pr-pack-featured {
    border-color: #cdb4ee;
    background: radial-gradient(ellipse at 100% 0, #ecd7fa, transparent 62%), linear-gradient(160deg, #f8f2ff, #fff 70%);
    box-shadow: 0 22px 50px -28px #7a52d166;
}

.pr-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(115deg, #6366F1, #A855F7 52%, #EC4899);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .02em;
    box-shadow: 0 6px 16px -6px #a855f799;
}

.pr-pack-name {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8a7d98;
}

.pr-pack-sub {
    margin: 8px 0 0;
    min-height: 2.9em;
    font-size: 14px;
    line-height: 1.45;
    color: #6b6578;
}

.pr-pack-price {
    margin: 18px 0 4px;
    font-family: 'Inter Hero', Inter, sans-serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.055em;
    color: #15101e;
}

.pr-pack-tokens {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #3f3f46;
}

.pr-bonus {
    padding: 3px 9px;
    border-radius: 999px;
    background: #efe7fd;
    color: #7a52d1;
    font-size: 12.5px;
    font-weight: 600;
}

.pr-enough {
    list-style: none;
    margin: 20px 0 24px;
    padding: 18px 0 0;
    border-top: 1px solid #efe8f6;
    display: grid;
    gap: 9px;
}

.pr-enough li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13.5px;
    line-height: 1.45;
    color: #5d5468;
}

.pr-enough svg,
.pr-trust svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 2px; color: #a160e6; }

.pr-pack .btn { margin-top: auto; height: 50px; border-radius: 14px; font-size: 15px; font-weight: 600; }

/* Своя сумма */
.pr-pack-custom { background: linear-gradient(160deg, #fbfaff, #fff); }

.pr-custom-field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 10px;
    padding: 0 16px;
    height: 54px;
    border: 1px solid #e3dcee;
    border-radius: 14px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.pr-custom-field:focus-within { border-color: #8a5fe0; box-shadow: 0 0 0 4px #8a5fe01f; }

.pr-custom-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-family: 'Inter Hero', Inter, sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.04em;
    color: #15101e;
    -moz-appearance: textfield;
}

.pr-custom-input::-webkit-outer-spin-button,
.pr-custom-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pr-custom-currency { font-size: 20px; font-weight: 600; color: #8a7d98; }
.pr-custom-hint { min-height: 2.9em; font-size: 13.5px; line-height: 1.45; font-weight: 600; color: #7a52d1; }

.pr-tiers {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 24px;
    padding: 0;
}

.pr-tiers li {
    padding: 5px 10px;
    border: 1px solid #ece4f5;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    color: #6b6578;
}

.pr-tiers strong { color: #7a52d1; }

/* Строка доверия */
.pr-trust {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0 0;
    padding: 0;
}

.pr-trust li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 14px 16px;
    border: 1px solid #efe8f6;
    border-radius: 16px;
    background: #fdfcff;
    font-size: 13px;
    line-height: 1.5;
    color: #5d5468;
}

/* Прайс */
.pr-prices { padding: 56px 0 96px; background: linear-gradient(#fff, #fbf9ff 40%, #fff); }

.pr-heading { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.pr-heading-sub { margin-top: 72px; }

.pr-heading h2 {
    margin: 16px 0 16px;
    font-family: 'Inter Hero', Inter, sans-serif;
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.045em;
    color: #11111b;
}

.pr-heading h2 span { color: #8060dc; }
.pr-heading p { margin: 0; font-size: 16px; line-height: 1.7; color: #666574; }

.pr-card {
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid #ece4f5;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 26px 70px #7753bb0f;
}

.pr-model {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 24px;
    align-items: center;
    padding: 20px 28px;
}

.pr-model + .pr-model { border-top: 1px solid #f1ebf7; }

/* ▶ примера у модели (этап 3): чёрный круг с белым треугольником — как на всём сайте */
.pr-model-has-play { grid-template-columns: 44px minmax(0, 1fr) 170px; }

.pr-play,
.pr-play-empty {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.pr-play {
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    background: var(--color-accent, #000);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 18px -10px #0b0b0f80;
    transition: transform .15s, background .15s;
}

.pr-play:hover { transform: scale(1.06); background: #26222e; }
.pr-play:focus-visible { outline: 3px solid #a76cf0; outline-offset: 3px; }
.pr-play svg { width: 18px; height: 18px; }
.pr-play .pr-play-icon { margin-left: 2px; }
.pr-play .pr-pause-icon { display: none; }
.pr-play.is-playing .pr-play-icon { display: none; }
.pr-play.is-playing .pr-pause-icon { display: block; }
.pr-play.is-loading { animation: pr-pulse 1s ease-in-out infinite; }

@keyframes pr-pulse { 50% { box-shadow: 0 0 0 6px #8a5fe02e; } }

.pr-sample-text { font-style: italic; }
.pr-model-trial { background: linear-gradient(110deg, #f8f4ff, #fff9fd); }
.pr-model:first-child { border-radius: 26px 26px 0 0; }
.pr-model:last-child { border-radius: 0 0 26px 26px; }

.pr-model-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pr-model-name strong { font-size: 16.5px; font-weight: 600; color: #15101e; }
.pr-model-main p { margin: 5px 0 0; font-size: 14px; line-height: 1.55; color: #6b6578; }

.pr-chip {
    display: inline-flex;
    padding: 3px 9px;
    border: 1px solid #e6dcf5;
    border-radius: 999px;
    background: #faf7ff;
    font-size: 11.5px;
    font-weight: 500;
    color: #7a52d1;
    white-space: nowrap;
}

.pr-chip-gift { border-color: #f2d3e6; background: #fff3f9; color: #c0559a; }

.pr-model-price { text-align: right; }

.pr-model-price strong {
    display: block;
    font-family: 'Inter Hero', Inter, sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.04em;
    color: #15101e;
}

.pr-model-price span { font-size: 12px; color: #8a7d98; }

.pr-example { max-width: 980px; margin: 18px auto 0; text-align: center; font-size: 14px; line-height: 1.7; color: #6b6578; }

.pr-table-wrap { overflow-x: auto; }

.pr-table { width: 100%; border-collapse: collapse; font-size: 15px; }

.pr-table th,
.pr-table td { padding: 16px 24px; text-align: left; border-bottom: 1px solid #f1ebf7; }

.pr-table th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8a7d98;
}

.pr-table tbody tr:last-child td { border-bottom: 0; }
.pr-table td:first-child { font-weight: 600; color: #15101e; }
.pr-table td strong { font-family: 'Inter Hero', Inter, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: #15101e; }

.pr-ai {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

.pr-ai-card {
    padding: 26px;
    border: 1px solid #e9e3f7;
    border-radius: 24px;
    background: linear-gradient(145deg, #f5f0ff, #fdfcff);
}

.pr-ai-1 { background: linear-gradient(145deg, #fff2f8, #fffdfd); border-color: #f3e4ec; }
.pr-ai-2 { background: linear-gradient(145deg, #eef1ff, #fcfcff); border-color: #e2e7f9; }

.pr-ai-price {
    margin: 14px 0 10px;
    font-family: 'Inter Hero', Inter, sans-serif;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.045em;
    color: #15101e;
}

.pr-ai-price span { font-family: Inter, sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0; color: #8a7d98; }
.pr-ai-card p { margin: 0; font-size: 14px; line-height: 1.65; color: #6b6578; }

.pr-legal {
    max-width: 980px;
    margin: 72px auto 0;
    padding: 28px 32px;
    border-radius: 22px;
    background: #f8f5fd;
}

.pr-legal h2 { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: #15101e; }
.pr-legal p { margin: 0 0 10px; font-size: 14px; line-height: 1.75; color: #5d5468; }
.pr-legal p:last-child { margin-bottom: 0; }
.pr-legal a { color: #8054ae; text-decoration-color: #d9c6ef; text-underline-offset: 3px; }

@media (max-width: 1100px) {
    .pr-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
    .pr-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .pr-trial { flex-wrap: wrap; }
    .pr-trial-btn { width: 100%; margin-left: 0; }
    .pr-ai { grid-template-columns: 1fr; }
    .pr-model { grid-template-columns: minmax(0, 1fr) auto; padding: 18px 20px; gap: 14px; }
    .pr-model-has-play { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; }
    .pr-play, .pr-play-empty { width: 40px; height: 40px; }
    .pr-table th, .pr-table td { padding: 14px 16px; }
}

@media (max-width: 560px) {
    .pr-packages { grid-template-columns: 1fr; gap: 22px; }
    .pr-pack-sub, .pr-custom-hint { min-height: 0; }
    .pr-trust { grid-template-columns: 1fr; gap: 10px; }
    .pr-prices { padding: 36px 0 64px; }
    .pr-heading-sub { margin-top: 52px; }
    .pr-model-price strong { font-size: 22px; }
    .pr-legal { padding: 22px 20px; margin-top: 52px; }
}

/* Калькулятор (этап 6): слева — что, сколько и чем; справа — цена и чем пополнить.
   Во всю ширину пакетов — без «узкой колонки по центру» */
.pr-calc-section { padding: 40px 0 24px; }

.pr-calc {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid #ece4f5;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 26px 70px #7753bb0f;
}

.pr-calc-form { padding: 20px 22px 24px; min-width: 0; }

.pr-calc-tabs { display: flex; gap: 4px; margin-bottom: 26px; }

.pr-calc-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 15px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font: inherit;
    font-size: 14.5px;
    font-weight: 500;
    color: #6b6578;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.pr-calc-tab svg { width: 17px; height: 17px; }
.pr-calc-tab:hover { color: #15101e; }
.pr-calc-tab.is-on { background: #f4f4f6; color: #15101e; font-weight: 700; }
.pr-calc-tab:focus-visible { outline: 3px solid #a76cf0; outline-offset: 2px; }

.pr-calc-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pr-calc-presets + .pr-calc-row { margin-top: 28px; }

.pr-calc-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8a7d98;
}

.pr-calc-aside { font-size: 13px; color: #8a7d98; white-space: nowrap; }

.pr-calc-field { margin: 0 0 18px; }
.pr-calc-field .pr-custom-currency { font-size: 16px; }

/* Ползунок: заполненная часть — фирменный градиент, ручка — чёрная, как кнопки сайта */
.pr-calc-range {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 6px;
    margin: 0 0 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366F1, #A855F7 55%, #EC4899) 0 0 / var(--p, 50%) 100% no-repeat, #ece6f5;
    cursor: pointer;
}

.pr-calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--color-accent, #000);
    box-shadow: 0 2px 10px #2a1f3a40;
}

.pr-calc-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--color-accent, #000);
    box-shadow: 0 2px 10px #2a1f3a40;
}

.pr-calc-range:focus-visible { outline: 3px solid #a76cf0; outline-offset: 6px; }

.pr-calc-presets { display: flex; flex-wrap: wrap; gap: 6px; }

.pr-calc-preset {
    padding: 6px 12px;
    border: 1px solid #ece4f5;
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 12.5px;
    color: #6b6578;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.pr-calc-preset b { font-weight: 600; color: #3f3f46; }
.pr-calc-preset:hover { border-color: #d5c3ee; }
.pr-calc-preset.is-on { border-color: #b996ec; background: #faf6ff; }

/* Модели — ровной сеткой: название слева, цена бледно справа */
.pr-calc-models {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.pr-calc-model {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #e7e0f0;
    border-radius: 14px;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.pr-calc-model span {
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    color: #15101e;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pr-calc-model small { flex: none; font-size: 13px; color: #9a8fa8; }
.pr-calc-model:hover { border-color: #d5c3ee; }
.pr-calc-model.is-on { border-color: #8a5fe0; background: #faf6ff; box-shadow: 0 0 0 3px #8a5fe01f; }
.pr-calc-model.is-on small { color: #7a52d1; }

.pr-calc-check {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 2px 10px;
    margin-top: 16px;
    font-size: 14px;
    color: #3f3f46;
    cursor: pointer;
}

.pr-calc-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-accent, #000); }
.pr-calc-check small { grid-column: 2; font-size: 13px; color: #9a8fa8; }
.pr-calc-check[hidden] { display: none; }

/* Итог — пастельная панель, как у «Популярного» пакета */
.pr-calc-result {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 30px 28px 26px;
    border: 1px solid #e4d5f5;
    border-radius: 22px;
    background: radial-gradient(ellipse at 100% 0, #ecd7fa, transparent 62%), linear-gradient(160deg, #f8f2ff, #fff 75%);
}

.pr-calc-total {
    margin: 14px 0 6px;
    font-family: 'Inter Hero', Inter, sans-serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.055em;
    color: #15101e;
    overflow-wrap: anywhere;
}

.pr-calc-formula { font-size: 13.5px; line-height: 1.5; color: #8a7d98; }
.pr-calc-gift { align-self: flex-start; margin-top: 12px; white-space: normal; }
.pr-calc-gift[hidden] { display: none; }

.pr-calc-advice {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 22px 0 22px;
    padding-top: 20px;
    border-top: 1px solid #e9def6;
}

.pr-calc-advice-label { font-size: 12.5px; color: #8a7d98; }
.pr-calc-advice-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pr-calc-advice-title strong { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: #15101e; }
.pr-calc-advice-title .pr-bonus[hidden] { display: none; }
.pr-calc-advice-note { font-size: 14px; line-height: 1.5; color: #5d5468; }

/* Какую часть пополнения займёт проект */
.pr-calc-bar {
    height: 8px;
    margin: 12px 0 6px;
    border-radius: 999px;
    background: #ece4f7;
    overflow: hidden;
}

.pr-calc-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6366F1, #A855F7 55%, #EC4899);
    transition: width .35s ease;
}

.pr-calc-go { margin-top: auto; height: 50px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.pr-calc-note { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: #9a8fa8; text-align: center; }

/* Карточка, к которой подвёл калькулятор, — короткая подсветка */
.pr-pack-pulse { animation: pr-pack-pulse 1.8s ease-out; }

@keyframes pr-pack-pulse {
    0%, 35% { box-shadow: 0 0 0 4px #a855f766, 0 16px 35px #7655c51f; }
    100% { box-shadow: 0 0 0 0 #a855f700; }
}

@media (max-width: 960px) {
    .pr-calc { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .pr-calc-section { padding: 28px 0 8px; }
    .pr-calc { padding: 8px; border-radius: 24px; }
    .pr-calc-form { padding: 14px 12px 18px; }
    /* Три вкладки делят ширину поровну, без значков — «Дубляж видео» не обрезается */
    .pr-calc-tabs { margin-bottom: 22px; }
    .pr-calc-tab { flex: 1 1 auto; justify-content: center; padding: 0 8px; font-size: 14px; white-space: nowrap; }
    .pr-calc-tab svg { display: none; }
    /* Модели — в два столбца; длинное название переносится, строки сетки ровные */
    .pr-calc-model { height: auto; min-height: 52px; padding: 8px 12px; }
    .pr-calc-model span { font-size: 13.5px; line-height: 1.3; white-space: normal; }
    .pr-calc-model small { font-size: 12.5px; }
    .pr-calc-result { padding: 24px 20px 20px; }
    .pr-calc-total { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    .pr-play { transition: none; }
    .pr-play.is-loading { animation: none; }
    .pr-pack { transition: none; }
    .pr-pack:hover { transform: none; }
    .pr-pack-pulse { animation: none; }
    .pr-calc-bar span { transition: none; }
}

/* --- Адаптивность --- */
@media (max-width: 1060px) {
    .doc-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 32px; }
    .doc-body { padding: 40px; }
    .doc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .doc-layout { grid-template-columns: 1fr; }
    .doc-toc { display: none; }
    .pp-cards { grid-template-columns: 1fr; gap: 14px; }
    .pp-split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .pp-container { padding-inline: 16px; }
    .pp-hero { padding: 34px 0 28px; }
    .pp-title { font-size: 34px; }
    .pp-lead { font-size: 16px; }
    .doc-tabs { gap: 6px; margin-top: 22px; }
    .doc-tab { padding: 8px 13px; font-size: 13px; }
    /* Четыре карточки стопкой заняли бы весь экран — на телефоне 2 × 2 */
    .doc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
    .doc-fact { padding: 16px 14px; border-radius: 18px; }
    .doc-fact-kicker { font-size: 9px; letter-spacing: .06em; }
    .doc-fact-value { font-size: 22px; margin: 8px 0 6px; }
    .doc-fact p { font-size: 12.5px; line-height: 1.55; }
    .doc-body { padding: 26px 20px; border-radius: 20px; }
    .doc-body h2 { font-size: 19px; margin-top: 34px; }
    .doc-body p, .doc-body li { font-size: 15px; }
    .doc-layout, .pp-section { padding-bottom: 64px; }
    .pp-card, .pp-panel { padding: 22px; border-radius: 20px; }
    .pp-banner { padding: 18px; gap: 14px; align-items: flex-start; }
    .pp-result { padding: 34px 20px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .pp-card, .doc-tab, .doc-toc a { transition: none; }
    a.pp-card:hover { transform: none; }
}
