/* ==========================================================
   Политика152 — стили проекта (p152-*) поверх sf-base.css
   Концепт «Канцелярия»: интерфейс оформлен как сам документ.
   Разделы — параграфы закона, состав — опись, тарифы — прейскурант.
   Один акцент — красный карандаш: им «заполняют» бланк. Шрифт — только Onest, тема — только светлая.
   ========================================================== */

/* ---------- Шапка ---------- */
.p152-header { position: sticky; top: 0; z-index: 50; background: var(--sf-bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.p152-header.is-scrolled { border-color: var(--sf-border); }
.p152-header .sf-wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.p152-logo { display: flex; align-items: center; gap: 10px; color: var(--sf-text); text-decoration: none; font: 700 19px/1 var(--sf-font); letter-spacing: -.02em; }
.p152-logo:hover { color: var(--sf-text); }
.p152-logo-mark { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--sf-accent); outline: 1px solid var(--sf-accent); outline-offset: -5px; color: var(--sf-accent); display: grid; place-items: center; font: 700 10.5px/1 var(--sf-font); letter-spacing: -.02em; transform: rotate(-12deg); }
.p152-logo b { font-weight: 700; color: var(--sf-accent); }
.p152-nav { display: flex; gap: 2px; margin-left: auto; }
.p152-nav a { padding: 8px 9px; color: var(--sf-muted); text-decoration: none; font-size: 16px; }
.p152-nav a:hover { color: var(--sf-text); }
.p152-nav a .n { font: 600 12px/1 var(--sf-font); color: var(--sf-accent); margin-right: 4px; }
@media (max-width: 1000px) { .p152-nav { display: none; } .p152-header .sf-row { margin-left: auto; } }

@media (max-width: 430px) { .p152-header .sf-wrap { gap: 10px; padding-right: 12px; padding-left: 12px; } .p152-header .sf-row { gap: 4px; } .p152-logo { gap: 6px; font-size: 16px; } .p152-logo-mark { width: 29px; height: 29px; } .p152-header .btn-sm { padding: 8px; font-size: 11px; } }

/* ---------- Hero ---------- */
.p152-hero { padding: 64px 0 72px; border-bottom: 1.5px solid var(--sf-rule); }
.p152-hero .sf-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.p152-meta { font: 600 12px/1.4 var(--sf-font); text-transform: uppercase; letter-spacing: .08em; color: var(--sf-muted); padding-bottom: 14px; margin-bottom: 26px; border-bottom: 1px solid var(--sf-border); }
.p152-hero h1 { margin: 0 0 22px; }
.p152-mark { position: relative; white-space: nowrap; }
.p152-mark::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: -.06em; height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 60 3, 120 12, 180 6 S 260 4, 298 8' fill='none' stroke='%23C2391F' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.p152-lead { font-size: 19.5px; color: var(--sf-muted); max-width: 540px; margin-bottom: 30px; }
.p152-link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--sf-accent); padding-bottom: 1px; }
.p152-terms { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font: 500 14.5px/1.4 var(--sf-font); color: var(--sf-muted); }
.p152-terms li::before { content: '— '; color: var(--sf-accent); }
@media (max-width: 920px) { .p152-hero .sf-wrap { grid-template-columns: 1fr; gap: 48px; } .p152-hero { padding-top: 36px; } }

/* Лист документа в hero: настоящий текст, поля заполнены «карандашом» */
.p152-sheet {
  position: relative; margin: 0; background: var(--sf-surface); border: 1px solid var(--sf-border);
  padding: 30px 34px 40px; font: 400 14.5px/1.6 var(--sf-font); box-shadow: var(--sf-shadow-lg);
  transform: rotate(.8deg);
}
.p152-sheet p { margin: 0 0 10px; }
.p152-sheet-url { font: 500 12px/1 var(--sf-font); color: var(--sf-muted); margin: -8px 0 22px; padding-bottom: 12px; border-bottom: 1px dashed var(--sf-border); }
.p152-sheet-url b { color: var(--sf-accent); font-weight: 400; }
.p152-sheet-title { text-align: center; font: 700 14px/1.3 var(--sf-font); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.p152-sheet-title small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; color: var(--sf-muted); margin-top: 4px; }
.p152-sheet-h { font-weight: 700; margin-top: 16px !important; }
.p152-sheet-fade { color: var(--sf-muted); -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent); }
.p152-fill { font-weight: 600; font-size: 14px; color: var(--sf-accent); border-bottom: 1px solid var(--sf-accent); padding: 0 2px; white-space: nowrap; }
.p152-note { position: absolute; font: 600 12px/1 var(--sf-font); color: var(--sf-accent); transform: rotate(-4deg); }
.p152-note--1 { right: 8px; top: 104px; background: var(--sf-bg); padding: 4px 6px; border: 1px solid var(--sf-accent); }
.p152-sheet .p152-stamp { position: absolute; right: 22px; bottom: -34px; width: 118px; }
@media (max-width: 600px) { .p152-sheet { padding: 24px 20px 36px; transform: none; } .p152-note--1 { display: none; } .p152-fill { white-space: normal; } }

/* Печать */
.p152-stamp { color: var(--sf-accent); opacity: .82; transform: rotate(-14deg); mix-blend-mode: multiply; }

/* ---------- Секции как параграфы ---------- */
.p152-section { padding: 72px 0 64px; }
.p152-sh { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; gap: 0 16px; border-top: 1.5px solid var(--sf-rule); padding-top: 18px; margin-bottom: 14px; }
.p152-sh h2 { margin: 0; max-width: 760px; }
.p152-num { font: 700 15px/1 var(--sf-font); color: var(--sf-accent); }
.p152-sh-lead { margin: 0 0 36px 112px; max-width: 680px; font-size: 18.5px; color: var(--sf-muted); }
.p152-sh + :not(.p152-sh-lead) { margin-top: 36px; }
@media (max-width: 760px) {
  .p152-section { padding: 56px 0; }
  .p152-sh { grid-template-columns: 1fr; gap: 10px; }
  .p152-sh-lead { margin-left: 0; }
}

/* Факты */
.p152-facts { margin: 0 0 0 112px; display: grid; }
.p152-facts > div { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--sf-border); }
.p152-facts > div:first-child { border-top: 1px solid var(--sf-border); }
.p152-facts dt { font: 700 34px/1 var(--sf-font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.p152-facts dt.is-red { color: var(--sf-accent); }
.p152-facts dd { margin: 0; color: var(--sf-muted); max-width: 520px; }
@media (max-width: 760px) { .p152-facts { margin-left: 0; } .p152-facts > div { grid-template-columns: 1fr; gap: 6px; } }

/* Пункты */
.p152-clauses { list-style: none; margin: 36px 0 32px 112px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.p152-clauses span { font: 700 14px/1 var(--sf-font); color: var(--sf-accent); display: block; margin-bottom: 12px; }
.p152-clauses h3 { margin-bottom: 8px; }
.p152-clauses p { color: var(--sf-muted); margin: 0; }
@media (max-width: 860px) { .p152-clauses { grid-template-columns: 1fr; margin-left: 0; gap: 24px; } }

/* Код */
.p152-code { display: flex; align-items: center; gap: 12px; background: var(--sf-surface); border: 1px solid var(--sf-border); border-left: 3px solid var(--sf-accent); border-radius: var(--sf-radius-sm); padding: 14px 14px 14px 18px; font-family: var(--sf-font); font-weight: 500; font-size: 14px; overflow-x: auto; }
#how .p152-code { margin-left: 112px; }
.p152-code code { flex: 1; white-space: nowrap; }
.p152-code b { color: var(--sf-accent); font-weight: 600; }
.p152-code .t { color: var(--sf-text); } .p152-code .a { color: var(--sf-muted); } .p152-code .s { color: var(--sf-accent); }
.p152-code .btn { flex: none; border-color: var(--sf-border); background: var(--sf-bg); color: var(--sf-text); }
.p152-code .btn:hover { border-color: var(--sf-text); }
@media (max-width: 760px) { #how .p152-code { margin-left: 0; } }

/* Опись */
.p152-inventory { width: calc(100% - 112px); margin-left: 112px; border-collapse: collapse; font-size: 16.5px; }
.p152-inventory th { text-align: left; font: 600 11.5px/1 var(--sf-font); text-transform: uppercase; letter-spacing: .08em; color: var(--sf-muted); padding: 0 12px 12px 0; border-bottom: 1.5px solid var(--sf-rule); }
.p152-inventory td { padding: 15px 16px 15px 0; border-bottom: 1px solid var(--sf-border); vertical-align: top; }
.p152-inventory td:first-child { width: 48px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--sf-accent); }
.p152-inventory td:nth-child(2) { width: 32%; font-weight: 600; }
.p152-inventory td:last-child { color: var(--sf-muted); }
@media (max-width: 760px) {
  .p152-inventory { width: 100%; margin-left: 0; }
  .p152-inventory thead { display: none; }
  .p152-inventory tr { display: grid; grid-template-columns: 36px 1fr; border-bottom: 1px solid var(--sf-border); padding: 12px 0; }
  .p152-inventory td { border: 0; padding: 0; width: auto !important; }
  .p152-inventory td:last-child { grid-column: 2; padding-top: 4px; }
}

/* Прейскурант */
.p152-price-list { margin-left: 112px; border-top: 1.5px solid var(--sf-rule); }
.p152-price-row { display: grid; grid-template-columns: minmax(0, auto) 1fr auto 130px; gap: 18px; align-items: end; padding: 24px 0; border-bottom: 1px solid var(--sf-border); }
.p152-price-row.is-hot { border-bottom: 1.5px solid var(--sf-rule); }
.p152-price-name h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p152-price-name > span { color: var(--sf-muted); font-size: 15px; }
.p152-price-dots { border-bottom: 2px dotted var(--sf-border); height: 1px; margin-bottom: 18px; min-width: 24px; }
.p152-price-sum { font: 700 32px/1 var(--sf-font); letter-spacing: -.03em; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.p152-price-sum small { display: block; font: 500 12.5px/1 var(--sf-font); letter-spacing: 0; color: var(--sf-muted); margin-top: 6px; }
.p152-price-row .btn { width: 100%; }
.p152-footnote { margin: 16px 0 0 112px; font: 400 14px/1.5 var(--sf-font); color: var(--sf-muted); }
.p152-footnote b { color: var(--sf-accent); font-weight: 700; }
@media (max-width: 760px) {
  .p152-price-list, .p152-footnote { margin-left: 0; }
  .p152-price-row { grid-template-columns: 1fr auto; align-items: center; }
  .p152-price-name { grid-column: 1 / -1; }
  .p152-price-dots { display: none; }
  .p152-price-sum { text-align: left; }
  .p152-price-row .btn { width: auto; }
}

/* Примечания */
.p152-faq { max-width: 820px; margin-left: 112px; }
.p152-faq details { border-bottom: 1px solid var(--sf-border); }
.p152-faq details:first-child { border-top: 1px solid var(--sf-border); }
.p152-faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font: 600 18px/1.35 var(--sf-font); position: relative; }
.p152-faq summary::-webkit-details-marker { display: none; }
.p152-faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font: 400 26px/1 var(--sf-font); color: var(--sf-accent); transition: transform .2s; }
.p152-faq details[open] summary::after { transform: rotate(45deg); }
.p152-faq details p { color: var(--sf-muted); padding-bottom: 20px; margin: 0; max-width: 680px; }
@media (max-width: 760px) { .p152-faq { margin-left: 0; } }

/* Финал: место для печати */
.p152-final { border-bottom: 0; }
.p152-sign { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; border-top: 4px double var(--sf-rule); padding-top: 40px; }
.p152-sign h2 { max-width: 620px; }
.p152-sign-line { position: relative; height: 180px; border-bottom: 1px solid var(--sf-text); }
.p152-sign-line .p152-stamp { position: absolute; right: 30px; bottom: -40px; width: 170px; }
.p152-sign-line span { position: absolute; left: 0; bottom: -24px; font: 500 13px/1 var(--sf-font); color: var(--sf-muted); }
@media (max-width: 760px) { .p152-sign { grid-template-columns: 1fr; } .p152-sign-line { height: 120px; } .p152-sign-line .p152-stamp { width: 130px; } }

/* Подвал */
.p152-footer { padding: 40px 0 56px; color: var(--sf-muted); font-size: 14.5px; border-top: 1px solid var(--sf-border); }
.p152-landing .p152-footer { border-top: 0; }
.p152-footer .sf-wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.p152-footer a { color: var(--sf-muted); }

/* ---------- Авторизация ---------- */
.p152-auth { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 20px; }
.p152-auth .sf-card { width: 100%; max-width: 420px; padding: 34px; border-top: 3px solid var(--sf-rule); }
.p152-auth h1 { font-size: 30px; }

/* ---------- Кабинет ---------- */
.p152-app { padding: 36px 0 80px; }
.p152-app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1.5px solid var(--sf-rule); }
.p152-app-head h1 { font-size: 34px; margin: 4px 0; }
.p152-sites { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.p152-site-card { display: block; text-decoration: none; color: var(--sf-text); transition: border-color .15s, box-shadow .15s; }
.p152-site-card:hover { color: var(--sf-text); border-color: var(--sf-text); box-shadow: inset 3px 0 0 var(--sf-accent); }
.p152-site-card h3 { margin: 12px 0 4px; }
.p152-empty { text-align: center; padding: 64px 24px; }
.p152-empty .p152-stamp { width: 120px; margin: 0 auto 20px; }

/* Вкладки: на широком экране переносятся на вторую строку, на телефоне листаются пальцем без полос прокрутки.
   Подчёркивание — inset-тенью, без отрицательного отступа (из-за него появлялась вертикальная прокрутка) */
.p152-tabs { display: flex; flex-wrap: wrap; gap: 0 4px; box-shadow: inset 0 -1px 0 var(--sf-border); margin-bottom: 28px; }
.p152-tabs a { padding: 12px 13px; color: var(--sf-muted); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.p152-tabs a:hover { color: var(--sf-text); }
.p152-tabs a.is-active { color: var(--sf-text); box-shadow: inset 0 -2px 0 var(--sf-accent); }
@media (max-width: 760px) {
  .p152-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .p152-tabs::-webkit-scrollbar { display: none; }
  .p152-tabs a { padding: 12px 12px; }
}

.p152-split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.p152-split > * { min-width: 0; }
.p152-doc-nav { position: sticky; top: 88px; display: grid; gap: 2px; }
.p152-doc-nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: var(--sf-text); text-decoration: none; font-size: 16px; border-left: 2px solid transparent; }
.p152-doc-nav a:hover { background: var(--sf-surface-2); }
.p152-doc-nav a.is-active { border-color: var(--sf-accent); background: var(--sf-surface); font-weight: 600; }
.p152-doc-nav .btn { justify-content: flex-start; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 860px) { .p152-split { grid-template-columns: minmax(0, 1fr); } .p152-split > * { min-width: 0; }
.p152-doc-nav { position: static; } }

.p152-risks { display: grid; gap: 10px; }
.p152-kpis { grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; }
.p152-kpi strong { display: block; font: 700 32px/1.1 var(--sf-font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.p152-kpi span { color: var(--sf-muted); font-size: 14.5px; }
@media (max-width: 760px) { .p152-kpis { grid-template-columns: 1fr 1fr; } }

/* ---------- Тариф и оплата ---------- */
.p152-billing { display: grid; gap: 24px; }
.p152-billing .p152-price-list { margin-left: 0; }
.p152-billing-status { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.p152-billing-status strong { font: 700 22px/1.2 var(--sf-font); letter-spacing: -.02em; display: block; }
.p152-test-note { font: 500 13.5px/1.5 var(--sf-font); color: var(--sf-warn); }

/* ---------- Мастер-анкета ---------- */
.p152-wizard { max-width: 820px; margin: 0 auto; }
.p152-progress { display: flex; gap: 6px; margin-bottom: 30px; }
.p152-progress span { flex: 1; height: 3px; background: var(--sf-border); transition: background .25s; }
.p152-progress span.is-done { background: var(--sf-accent); }
.p152-step-pane { display: none; }
.p152-step-pane.is-active { display: block; animation: sf-in .25s ease-out; }
.p152-step-pane h2 { font-size: 30px; }
.p152-wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--sf-border); }
.p152-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .p152-cols { grid-template-columns: 1fr; } }
.p152-seg { display: inline-flex; border: 1px solid var(--sf-text); border-radius: var(--sf-radius-sm); flex-wrap: wrap; overflow: hidden; }
.p152-seg label { cursor: pointer; }
.p152-seg label + label span { border-left: 1px solid var(--sf-text); }
.p152-seg input { position: absolute; opacity: 0; pointer-events: none; }
.p152-seg span { display: block; padding: 9px 14px; font-weight: 600; font-size: 15px; color: var(--sf-muted); }
.p152-seg input:checked + span { background: var(--sf-text); color: var(--sf-bg); }
.p152-seg input:focus-visible + span { outline: 2px solid var(--sf-accent); outline-offset: -2px; }
.p152-flag { font: 600 12px/1 var(--sf-font); color: var(--sf-warn); margin-left: 6px; }

/* ---------- Документ ---------- */
.p152-doc-sheet { min-width: 0; max-width: 100%; background: var(--sf-surface); border: 1px solid var(--sf-border); padding: clamp(24px, 5vw, 64px); position: relative; }
.p152-doc { overflow-wrap: anywhere; max-width: 740px; margin: 0 auto; font: 400 16px/1.7 var(--sf-font); }
.p152-doc h1 { font-size: clamp(22px, 2.6vw, 28px); text-align: center; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.p152-doc h2 { font-size: 18px; margin: 30px 0 10px; }
.p152-doc-meta { text-align: center; color: var(--sf-muted); font: 500 13px/1.5 var(--sf-font); margin-bottom: 32px; }
.p152-doc ul { padding-left: 22px; }
.p152-doc li { margin-bottom: 4px; }
.p152-table-wrap { max-width: 100%; overflow-x: auto; }
.p152-table { width: 100%; border-collapse: collapse; font: 400 14.5px/1.5 var(--sf-font); margin: 8px 0 16px; }
.p152-table th, .p152-table td { border: 1px solid var(--sf-border); padding: 9px 11px; text-align: left; vertical-align: top; }
.p152-table th { background: var(--sf-surface-2); font-weight: 600; }
.p152-table--kv td:first-child { width: 34%; font-weight: 600; background: var(--sf-surface-2); }
.p152-public { padding: 40px 0 80px; }
.p152-public .sf-wrap { max-width: 960px; }
.p152-public-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; font-size: 15px; color: var(--sf-muted); }

@media print {
  .p152-header, .p152-footer, .p152-public-bar, .p152-doc-nav, .p152-tabs, .no-print { display: none !important; }
  body { background: #fff; }
  .p152-table-wrap { overflow: visible; }
  .p152-doc-sheet { border: 0; box-shadow: none; padding: 0; }
  .p152-split { display: block; }
}

/* ---------- Мобильная шапка ---------- */
@media (max-width: 600px) {
  .p152-header .sf-wrap { gap: 12px; }
  .p152-header .btn-primary { display: none; }
}
.p152-footer a { text-decoration-color: var(--sf-border); }


/* ---------- Статьи: опись, поля и содержание ---------- */
.p152-breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 24px 0 0; font-size: 13px; color: var(--sf-muted); overflow-wrap: anywhere; }
.p152-breadcrumbs a { text-decoration-thickness: 1px; }
.p152-reading-intro { padding: 42px 0 38px; max-width: 920px; }
.p152-reading-intro .p152-meta { margin-bottom: 22px; }
.p152-reading-intro h1 { overflow-wrap: anywhere; font-size: clamp(30px, 4.8vw, 52px); line-height: 1.12; text-wrap: balance; }
.p152-reading-lead { max-width: 790px; font-size: 19px; line-height: 1.6; color: var(--sf-muted); margin: 20px 0; }
.p152-reading-date { color: var(--sf-muted); font-size: 13px; margin-bottom: 0; }
.p152-reading-home { padding-bottom: 48px; }
.p152-reading-all { margin-top: 24px; }
.p152-reading-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.p152-reading-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--sf-border); background: var(--sf-surface); padding: 26px; }
.p152-reading-tag { display: block; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--sf-accent); margin-bottom: 16px; }
.p152-reading-card h3 { font-size: 21px; line-height: 1.3; margin-bottom: 14px; }
.p152-reading-card h3 a { text-decoration: none; }
.p152-reading-card h3 a:hover { text-decoration: underline; }
.p152-reading-card p { font-size: 15px; color: var(--sf-muted); }
.p152-reading-bottom { margin-top: auto; border-top: 1px solid var(--sf-border); padding-top: 18px; font-size: 12px; color: var(--sf-muted); display: flex; justify-content: space-between; }
.p152-reading-bottom span { color: var(--sf-accent); font-size: 18px; line-height: 1; }
.p152-reading-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 38px 0 0; padding: 34px 0; border-top: 1.5px solid var(--sf-rule); }
.p152-reading-cta > div { flex: 1 1 440px; }
.p152-reading-cta h2 { font-size: 30px; }
.p152-reading-cta p { max-width: 640px; color: var(--sf-muted); margin-bottom: 0; }
.p152-reading-page { padding-bottom: 60px; }
.p152-reading-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; border-top: 1.5px solid var(--sf-rule); padding-top: 30px; }
.p152-reading-aside { position: sticky; top: 90px; }
.p152-reading-toc h2 { font-size: 14px; margin-bottom: 16px; letter-spacing: 0; }
.p152-reading-toc ol { padding-left: 20px; margin: 0 0 20px; font-size: 14px; }
.p152-reading-toc li { padding: 0 0 11px 2px; }
.p152-reading-toc a { text-decoration: none; color: var(--sf-muted); }
.p152-reading-toc a:hover { color: var(--sf-accent); }
.p152-reading-aside-link { font-size: 13px; }
.p152-reading-body { min-width: 0; font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.p152-reading-body h2 { font-size: clamp(25px, 3vw, 30px); line-height: 1.25; margin: 38px 0 16px; scroll-margin-top: 90px; }
.p152-reading-body > h2:first-child { margin-top: 0; }
.p152-reading-body h3 { font-size: 21px; margin: 24px 0 12px; line-height: 1.35; }
.p152-reading-body ul, .p152-reading-body ol { padding-left: 24px; margin: 0 0 22px; }
.p152-reading-body li { padding-left: 3px; margin-bottom: 8px; }
.p152-reading-body blockquote { margin: 24px 0; padding: 20px 24px; border-left: 3px solid var(--sf-accent); background: var(--sf-surface); font-size: 16px; }
.p152-reading-body blockquote p:last-child { margin-bottom: 0; }
.p152-reading-body pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 20px; background: var(--sf-surface); border: 1px solid var(--sf-border); line-height: 1.7; }
.p152-reading-basis { border-top: 1px solid var(--sf-border); padding-top: 22px; margin-top: 38px; color: var(--sf-muted); font-size: 13px; }
.p152-reading-basis p { margin: 6px 0 0; }
.p152-reading-inline-cta { margin-top: 30px; padding: 26px; background: var(--sf-surface-2); }
.p152-reading-inline-cta h2 { font-size: 24px; margin-top: 0; }
.p152-reading-inline-cta .p152-link { display: inline-block; font-size: 14px; margin: 14px 0 0 16px; }
.p152-reading-related { margin-top: 54px; padding-top: 24px; border-top: 1.5px solid var(--sf-rule); }
.p152-reading-related > h2 { font-size: 28px; margin-bottom: 24px; }
.p152-reading-landing-grid { margin-left: 112px; }
@media (max-width: 960px) { .p152-reading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .p152-reading-layout { grid-template-columns: 1fr; gap: 28px; } .p152-reading-aside { position: static; } .p152-reading-toc { padding: 20px 22px 10px; background: var(--sf-surface-2); } .p152-reading-toc ol { columns: 2; column-gap: 28px; } .p152-reading-toc li { break-inside: avoid; } .p152-reading-aside-link { display: inline-block; margin-top: 14px; } }
@media (max-width: 760px) { .p152-reading-landing-grid { margin-left: 0; } }
@media (max-width: 600px) { .p152-reading-grid { grid-template-columns: 1fr; } .p152-reading-intro { padding: 30px 0; } .p152-reading-lead { font-size: 17px; } .p152-reading-card { padding: 22px; } .p152-reading-body { font-size: 16.5px; } .p152-reading-toc ol { columns: 1; } .p152-reading-inline-cta { padding: 22px; } .p152-reading-inline-cta .p152-link { display: block; margin-left: 0; } .p152-reading-cta h2 { font-size: 27px; } }
@media print { .p152-reading-aside, .p152-reading-related, .p152-reading-inline-cta, .p152-breadcrumbs { display: none; } .p152-reading-layout { display: block; } }


/* ---------- Таблицы в статьях ---------- */
.p152-reading-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; margin: 8px 0 24px; display: block; overflow-x: auto; }
.p152-reading-body thead, .p152-reading-body tbody { display: table; width: 100%; border-collapse: collapse; }
.p152-reading-body th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--sf-muted); padding: 0 12px 10px 0; border-bottom: 1.5px solid var(--sf-rule); vertical-align: bottom; }
.p152-reading-body td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--sf-border); vertical-align: top; }
.p152-reading-body td time, .p152-reading-body td strong { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Отложенная публикация ---------- */
.p152-soon { color: inherit; }
.p152-schedule-note { margin: 0 0 20px; }
.p152-reading-pending { margin-top: 40px; padding-top: 18px; border-top: 1.5px solid var(--sf-rule); }
.p152-reading-pending h2 { font-size: 22px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.p152-reading-pending h2 small { font-size: 13px; font-weight: 400; color: var(--sf-muted); }
.p152-reading-pending ol { list-style: none; padding: 0; margin: 0; }
.p152-reading-pending li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--sf-border); }
.p152-reading-pending time { color: var(--sf-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Конструктор баннера ---------- */
.p152-admin-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; margin-top: 20px; }
.p152-admin-summary > * { min-width: 0; }
.p152-builder { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 28px; align-items: start; }
.p152-builder-controls { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.p152-presets { padding: 16px 18px; background: var(--sf-surface); border: 1px solid var(--sf-border); }
.p152-bgroup { background: var(--sf-surface); border: 1px solid var(--sf-border); }
.p152-bgroup > summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; font-size: 16px; display: flex; align-items: baseline; gap: 8px; }
.p152-bgroup > summary::-webkit-details-marker { display: none; }
.p152-bgroup > summary::after { content: '+'; margin-left: auto; color: var(--sf-accent); font-weight: 400; font-size: 20px; line-height: 1; }
.p152-bgroup[open] > summary::after { content: '−'; }
.p152-bgroup > summary small { font-weight: 400; color: var(--sf-muted); font-size: 13px; }
.p152-bgroup.is-muted > summary { color: var(--sf-muted); }
.p152-bgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; padding: 4px 18px 18px; border-top: 1px solid var(--sf-border); padding-top: 16px; }
.p152-bf { min-width: 0; }
.p152-bf--wide { grid-column: 1 / -1; }
.p152-bf .sf-label { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.p152-bf output { color: var(--sf-accent); font-variant-numeric: tabular-nums; }
.p152-bf .sf-input, .p152-bf .sf-select { min-height: 40px; padding: 8px 12px; font-size: 15px; }
.p152-bhelp { padding: 0 18px 16px; font-size: 13.5px; color: var(--sf-muted); }
.p152-bhelp code { font-size: 12.5px; background: var(--sf-surface-2); padding: 1px 4px; }
.p152-code-area { font-family: ui-monospace, Menlo, Consolas, monospace !important; font-size: 13px !important; }
.p152-range { width: 100%; accent-color: var(--sf-accent); }
.p152-seg--sm span { padding: 7px 11px; font-size: 13.5px; }
.p152-color { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.p152-color input[type=color] { width: 40px; height: 40px; padding: 0; border: 1px solid var(--sf-border); background: none; cursor: pointer; flex: none; }
.p152-color span { display: grid; gap: 2px; min-width: 0; }
.p152-color b { font-size: 13.5px; font-weight: 600; }
.p152-hex { width: 100px; border: 0; border-bottom: 1px dashed var(--sf-border); background: transparent; font: 500 13px/1.4 ui-monospace, Menlo, monospace; color: var(--sf-muted); padding: 0; text-transform: uppercase; }
.p152-hex:focus { outline: none; border-bottom-color: var(--sf-accent); color: var(--sf-text); }
.p152-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; }
.p152-switch input { position: absolute; opacity: 0; pointer-events: none; }
.p152-switch span { position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--sf-border); transition: background .2s; flex: none; }
.p152-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.p152-switch input:checked + span { background: var(--sf-accent); }
.p152-switch input:checked + span::after { transform: translateX(16px); }
.p152-switch input:focus-visible + span { outline: 2px solid var(--sf-accent); outline-offset: 2px; }
.p152-switch b { font-weight: 600; }
.p152-switch--sm { font-size: 13.5px; }
.p152-builder-save { position: sticky; bottom: 0; z-index: 5; padding: 16px 18px; background: var(--sf-bg); border-top: 1.5px solid var(--sf-rule); display: grid; gap: 10px; }

.p152-builder-preview { min-width: 0; position: sticky; top: 84px; display: grid; gap: 10px; }
.p152-pv-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.p152-mock { position: relative; height: 560px; overflow: hidden; background: #F7F7F5; border: 1px solid var(--sf-border); border-radius: 10px; margin: 0 auto; width: 100%; transition: width .25s; box-shadow: var(--sf-shadow-lg); }
.p152-mock.is-mobile { width: 360px; max-width: 100%; height: 640px; border-radius: 26px; border-width: 8px; border-color: #1C1B17; }
.p152-mock-top { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #ECEAE4; border-bottom: 1px solid #DDD9CF; font-size: 12px; color: #6A655A; }
.p152-mock-top i { width: 9px; height: 9px; border-radius: 50%; background: #CFCAC0; }
.p152-mock-top span { margin-left: 10px; padding: 3px 10px; background: #F7F7F5; border-radius: 99px; }
.p152-mock.is-mobile .p152-mock-top i { display: none; }
.p152-mock-page { padding: 26px 24px; display: grid; gap: 10px; }
.p152-mock-page .l { height: 9px; border-radius: 5px; background: #E4E1DA; }
.p152-mock-page .w40 { width: 40%; height: 16px; background: #CFCAC0; } .p152-mock-page .w90 { width: 90%; } .p152-mock-page .w75 { width: 75%; }
.p152-mock-page .w85 { width: 85%; } .p152-mock-page .w60 { width: 60%; } .p152-mock-page .w50 { width: 50%; }
.p152-mock-page .blk { height: 120px; background: #E9E6DF; border-radius: 6px; margin: 6px 0; }
.p152-mock-form { display: none; position: absolute; left: 50%; top: 70px; transform: translateX(-50%); width: min(340px, calc(100% - 32px)); padding: 20px; background: #fff; border: 1px solid #E4E1DA; border-radius: 10px; color: #222; font: 400 14px/1.4 system-ui, sans-serif; }
.p152-mock.show-form .p152-mock-form { display: grid; gap: 10px; }
.p152-mock-form .fi { height: 38px; border: 1px solid #DDD; border-radius: 6px; }
.p152-mock-form .fb { height: 40px; border-radius: 6px; background: #222; color: #fff; display: grid; place-items: center; font-weight: 600; }
.p152-mock-stage { position: absolute; inset: 34px 0 0 0; }
.p152-mock.show-form .p152-mock-stage { display: none; }
@media (max-width: 1100px) { .p152-builder { grid-template-columns: minmax(0, 1fr); } .p152-builder-preview { min-width: 0; position: static; order: -1; } }
@media (max-width: 640px) { .p152-bgrid { grid-template-columns: 1fr; } .p152-mock { height: 480px; } }

.p152-bf .p152-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
.p152-bf .p152-seg span { height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.25; }
.p152-pv-bar .p152-seg { display: inline-flex; }


/* ---------- Аккаунт ---------- */
.p152-auth-aside { float: right; font-weight: 400; font-size: 13.5px; }
.p152-account { display: grid; gap: 16px; max-width: 760px; }
.p152-account h3 { margin-bottom: 12px; }
.p152-verify-note { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 24px; }
.p152-impersonate { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px 16px; background: var(--sf-accent); color: #fff; font-size: 14.5px; }
.p152-impersonate .btn { background: #fff; color: var(--sf-text); }

/* ---------- Админка ---------- */
.p152-admin-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 24px; }
.p152-admin-kpis .sf-card { padding: 16px 18px; }
.p152-admin-kpis strong { display: block; font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.p152-admin-kpis span { color: var(--sf-muted); font-size: 13.5px; }
.p152-admin-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.p152-admin-tools .sf-input, .p152-admin-tools .sf-select { width: auto; min-height: 38px; padding: 6px 10px; }
.p152-admin-table td, .p152-admin-table th { white-space: nowrap; }
.p152-admin-table td.wrap { white-space: normal; min-width: 220px; }
.p152-admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.p152-admin-actions form { display: inline-flex; gap: 4px; }
.p152-admin-actions .sf-input, .p152-admin-actions .sf-select { min-height: 32px; padding: 4px 8px; font-size: 13.5px; width: auto; }
.p152-admin-actions .btn { min-height: 32px; padding: 0 10px; font-size: 13.5px; }
details.p152-admin-row > summary { cursor: pointer; color: var(--sf-accent); font-size: 13.5px; list-style: none; }
details.p152-admin-row[open] { min-width: 380px; }
.p152-pager { display: flex; gap: 8px; margin-top: 14px; }

/* ---------- v0.6: промокоды, приглашения, проверка сайта ---------- */
.p152-price-sum s { color: var(--sf-muted); font-weight: 400; font-size: .7em; margin-right: 4px; }
.p152-promo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.p152-promo .sf-input { width: 200px; min-height: 38px; padding: 6px 10px; text-transform: uppercase; }
.p152-promo.is-on { padding: 10px 14px; background: var(--sf-ok-soft); border-left: 3px solid var(--sf-ok); border-radius: var(--sf-radius-sm); justify-content: space-between; }
.p152-promo-err { color: var(--sf-danger); }
.p152-ref-how { margin: 16px 0 0; padding-left: 20px; color: var(--sf-muted); }
.p152-ref-how li { margin-bottom: 6px; }
.p152-ref-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.p152-ref-kpis strong { display: block; font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.p152-ref-kpis span { color: var(--sf-muted); font-size: 13.5px; }

.p152-check h1 { margin-bottom: 14px; }
.p152-check .p152-lead { max-width: 680px; }
.p152-check-form { display: flex; gap: 10px; max-width: 640px; margin-bottom: 18px; }
.p152-check-form .sf-input { flex: 1; min-height: 52px; font-size: 17px; }
@media (max-width: 560px) { .p152-check-form { flex-direction: column; } }
.p152-check-what { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border-top: 2px solid var(--sf-rule); margin: 36px 0 18px; }
.p152-check-what > div { padding: 16px 18px 16px 0; border-bottom: 1px solid var(--sf-border); }
.p152-check-what b { display: block; margin-bottom: 4px; }
.p152-check-what span { color: var(--sf-muted); font-size: 15px; }
.p152-check-cta { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 20px; }
.p152-check-cta h3 { margin-bottom: 4px; }

.p152-scan { margin-top: 8px; }
.p152-scan-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--sf-rule); }
.p152-scan-head strong { display: block; font-size: 22px; letter-spacing: -.01em; }
.p152-scan-item { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--sf-border); }
.p152-scan-item .sf-badge { justify-self: start; align-self: start; }
.p152-scan-item p { margin: 4px 0 0; color: var(--sf-muted); font-size: 15px; }
.p152-scan-item.is-bad b { color: var(--sf-danger); }
@media (max-width: 560px) { .p152-scan-item { grid-template-columns: 1fr; gap: 6px; } }
.p152-scan > .sf-small { margin-top: 14px; }
.sf-badge--info { color: var(--sf-muted); }
.p152-scan-run { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.p152-scan-run > div { max-width: 640px; }
.p152-scan-fix { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.p152-scan-svc { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 8px; }

.p152-admin-new { margin-bottom: 18px; }
.p152-admin-new > summary { cursor: pointer; }
.p152-admin-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 14px; align-items: end; margin-top: 14px; }
.p152-admin-form > .sf-check, .p152-admin-form > .btn { margin-bottom: 16px; justify-self: start; }
.p152-admin-settings { max-width: 760px; }
.p152-admin-settings h3 { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.p152-switch { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; margin-bottom: 16px; font-weight: 500; }
.p152-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.p152-switch span { position: relative; width: 40px; height: 22px; border-radius: 11px; background: var(--sf-border); transition: background .15s; flex: none; }
.p152-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.p152-switch input:checked + span { background: var(--sf-ok); }
.p152-switch input:checked + span::after { transform: translateX(18px); }
.p152-switch input:focus-visible + span { outline: 2px solid var(--sf-text); outline-offset: 2px; }

/* v0.8 */
.p152-req { font-size: 12.5px; color: var(--sf-muted); }
.p152-changelog { margin-bottom: 24px; }
.p152-changelog summary { cursor: pointer; }
.p152-changelog ol { margin: 12px 0 8px; padding-left: 20px; }
.p152-changelog li { margin-bottom: 6px; }

/* v0.9: white-label страницы документов */
.p152-wl-head { border-bottom: 1px solid var(--sf-border); background: var(--sf-surface); }
.p152-wl-head .sf-wrap { max-width: 960px; min-height: 64px; display: flex; align-items: center; }
.p152-wl-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--sf-text); font-weight: 600; text-decoration: none; }
.p152-wl-brand img { max-height: 40px; max-width: 200px; width: auto; height: auto; display: block; }
.p152-wl-foot { padding: 24px 0 40px; color: var(--sf-muted); font-size: 14px; }
.p152-wl-foot .sf-wrap { max-width: 960px; }
@media print { .p152-wl-head .sf-wrap { min-height: 0; } .p152-wl-foot { display: none; } }
/* кабинет: настройки white-label */
.p152-wl-form { display: grid; gap: 16px; max-width: 760px; }
.p152-wl-logo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.p152-wl-logo img { max-height: 48px; max-width: 200px; border: 1px solid var(--sf-border); padding: 6px; background: #fff; }
.p152-wl-dns { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; }

/* v0.9.2: подвал прижат к низу экрана на коротких страницах */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .p152-footer, body > .p152-wl-foot { margin-top: auto; }
@media print { body { display: block; min-height: 0; } }
