/* Веб-интерфейс Realty: лендинг и путь до отчёта.
   Перенесено из prototype/assets/proto.css без переименования токенов и классов (docs/BRANDBOOK.md);
   прототипные куски (.proto-*, .stub, .ph, body.show-stubs) удалены. Токены — в :root. */

:root {
  --brand-name: "До показа";

  --accent: #1D4ED8;
  --accent-hover: #1E40AF;
  --accent-soft: #EAF0FE;
  --text: #111827;
  --muted: #5B6472;
  --bg: #FFFFFF;
  --surface: #F5F6F8;
  --line: #E3E6EB;
  --green: #1E9E5A;
  --yellow: #D99A00;
  --red: #D8433B;
  /* darker variants for small text on white: --red alone gives ~4:1, below AA */
  --red-text: #B3261E;
  --footer-bg: #0B1B3F;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* shape rule: cards and fields 12px, large section panels 28px, buttons and chips are pills */
  --radius: 12px;
  --radius-panel: 28px;
  --shadow-float: 0 12px 32px rgba(17, 38, 94, 0.14);

  --gutter: 16px;
  --container: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-index scale */
  --z-sticky: 10;
  --z-actionbar: 20;
  --z-cookie: 30;
  --z-fab: 40;
  --z-panel: 50;
  --z-modal: 60;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 26px;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 32px; line-height: 38px; }
h2 { font-size: 28px; line-height: 34px; }
h3 { font-size: 19px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

@media (min-width: 1024px) {
  h1 { font-size: 48px; line-height: 56px; }
  h2 { font-size: 38px; line-height: 46px; }
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 15px; line-height: 22px; }
.tiny { font-size: 13px; line-height: 18px; }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: var(--z-modal);
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 17px/1 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer; touch-action: manipulation;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), border-color .2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--accent-soft); color: var(--accent); }
.btn-secondary:hover { background: #DCE6FD; color: var(--accent-hover); }
.btn-outline { background: var(--bg); color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: #C9CED6; color: var(--text); }
.btn-light { background: #fff; color: var(--footer-bg); }
.btn-light:hover { background: var(--accent-soft); color: var(--footer-bg); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

.link-btn {
  background: none; border: 0; padding: 0; font: inherit; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.arrow-link { font-weight: 600; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.arrow-link:hover { text-decoration: underline; }

/* ---------- form fields ---------- */

.field { display: grid; gap: 8px; }
.field-label { font-weight: 600; font-size: 15px; line-height: 20px; }
.field-hint { color: var(--muted); font-size: 14px; line-height: 20px; }

.input, .textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font: 400 17px/24px var(--font); color: var(--text);
  background: #fff; border: 1px solid #C9CED6; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #6B7280; }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(29, 78, 216, .18); }
.input[aria-invalid="true"] { border-color: var(--red); }

.field-error { color: var(--red-text); font-size: 15px; line-height: 22px; }
.field-error:empty { display: none; }

.field-counter { text-align: right; margin: 0; }
.field-counter:empty { display: none; }
.field-counter-warn { color: var(--red-text); }

.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check span { font-size: 15px; line-height: 24px; }

/* chips (survey purpose) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 15px; transition: background-color .2s, border-color .2s, color .2s;
}
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- source labels ---------- */

.src { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 999px; font-size: 12px; line-height: 1; font-weight: 600; white-space: nowrap;
}
.tag-fact { background: var(--accent-soft); color: #1E3A8A; }
.tag-listing { background: #EEF0F3; color: #374151; }
.tag-photo { background: #F1ECFB; color: #4C2F8F; }
.tag-estimate { background: #fff; color: #374151; border: 1px dashed #9AA3AF; }

/* traffic light */
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.dot-red { background: var(--red); }
.dot-yellow { background: var(--yellow); }
.dot-green { background: var(--green); }

.verdict {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px;
  border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 20px;
}
.verdict-yellow { background: #FFF4D6; color: #6B4A00; }
.verdict-yellow .dot { background: var(--yellow); }

/* ---------- header ---------- */

.site-header { position: relative; z-index: var(--z-sticky); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; min-height: 44px; }
.brand:hover { color: var(--text); }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; }
svg.brand-mark { flex: none; display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 999px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav a:hover, .nav button:hover { background: rgba(255, 255, 255, .7); color: var(--accent); }
.nav .nav-desktop { display: none; }
.nav .nav-login { border: 1px solid var(--line); background: #fff; padding: 0 16px; }
@media (min-width: 768px) {
  .nav .nav-desktop { display: inline-flex; }
}

/* ---------- landing: hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 50% at 12% 0%, #D6E3FD 0%, rgba(214, 227, 253, 0) 100%),
    radial-gradient(45% 45% at 95% 35%, #E3ECFE 0%, rgba(227, 236, 254, 0) 100%),
    linear-gradient(180deg, #F2F6FF 0%, #FFFFFF 100%);
  border-radius: 0 0 var(--radius-panel) var(--radius-panel);
  padding-bottom: 40px;
}
.hero-inner { position: relative; padding-top: 12px; text-align: center; }
.hero h1 { max-width: 760px; margin: 0 auto; }

/* четыре вопроса покупателя (P13): столбик на телефоне, 2×2 от 640 px */
.pains {
  list-style: none; display: grid; gap: 6px; max-width: 640px; margin: 16px auto 0; text-align: left;
}
.pains li {
  position: relative; padding-left: 30px; font-size: 17px; line-height: 24px; font-weight: 500; color: #1F2937;
}
.pains li::before {
  content: "?"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  font-size: 14px; line-height: 1; font-weight: 700;
}
@media (min-width: 640px) {
  .pains { grid-template-columns: auto auto; justify-content: center; gap: 10px 24px; margin-top: 20px; max-width: none; }
}
@media (min-width: 1024px) { .pains li { white-space: nowrap; } }

.link-form { max-width: 640px; margin: 20px auto 0; text-align: left; }
.link-form-row { display: grid; gap: 10px; }
.link-form .input { background: #fff; box-shadow: 0 1px 2px rgba(17, 24, 39, .04); }
.link-form-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; min-height: 28px; }
.link-form .field-error { margin-top: 8px; }
.link-form .link-btn { font-size: 14px; min-height: 28px; }
@media (min-width: 640px) {
  .link-form-row { grid-template-columns: 1fr auto; background: #fff; border: 1px solid #C9CED6; border-radius: 999px; padding: 6px; gap: 6px; }
  .link-form-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(29, 78, 216, .18); }
  .link-form-row .input { border: 0; box-shadow: none; min-height: 48px; border-radius: 999px; padding-left: 20px; }
  .link-form-row .input:focus { box-shadow: none; }
  .link-form-row .btn { min-height: 48px; }
  .link-form-meta { padding: 0 20px; }
  .link-form .field-error { padding: 0 20px; }
}

.trust-line { margin: 14px auto 0; color: var(--muted); font-size: 14px; line-height: 20px; max-width: 600px; }
.trust-line .price-inline { color: var(--text); font-weight: 600; }
.trust-line s { color: var(--muted); }

/* карточка находок примера — одна точка фокуса первого экрана; на телефоне под формой */
.hero-card {
  display: grid; gap: 16px; max-width: 520px; margin: 28px auto 0; padding: 20px; text-align: left;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-float); animation-delay: .15s;
}
.hc-kicker { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.hc-claim { display: block; font-size: 14px; line-height: 20px; color: var(--muted); }
.hc-main strong { display: block; margin-top: 4px; font-size: 30px; line-height: 36px; letter-spacing: -0.02em; color: var(--red-text); }
.hc-list { list-style: none; display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.hc-list strong { display: block; font-size: 17px; line-height: 24px; }
.hero-card .arrow-link { min-height: 32px; }
@media (min-width: 1200px) {
  .hero-inner {
    display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: center;
    padding-top: 40px; padding-bottom: 16px; text-align: left;
  }
  .hero-main h1 { margin: 0; }
  .hero-main .pains { justify-content: start; margin-left: 0; }
  .hero-main .link-form { margin-left: 0; }
  .hero-main .trust-line { margin-left: 0; }
  .hero-card { margin: 0; padding: 28px; }
  .hc-main strong { font-size: 36px; line-height: 42px; }
}

/* ---------- landing: sections ---------- */

.section { padding: 56px 0; }
.section.section-tight { padding: 32px 0; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { margin-top: 12px; color: var(--muted); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (min-width: 1024px) {
  .section { padding: 88px 0; }
  .section.section-tight { padding: 48px 0; }
  .section-head { margin-bottom: 40px; }
}

/* block 2: features bento */
.features { display: grid; gap: 12px; }
.feature {
  display: grid; gap: 10px; align-content: start;
  padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.feature p { color: var(--muted); font-size: 16px; line-height: 24px; }
.feature-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-surface { background: var(--surface); border-color: transparent; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .feature { padding: 28px; min-height: 200px; }
  .feature-wide { grid-column: span 2; }
}

/* «Так выглядит отчёт»: на панели; вкладки и список слева, справа — стопка листов со снимком раздела примера
   (static/example/*.webp), итог по квартире поверх и счётчик «раздел N из 11» — чтобы лист не читался как весь отчёт */
.rp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px var(--gutter); }
.example-band { background: var(--surface); border-radius: var(--radius-panel); }
.rp-lead { margin-top: 10px; color: var(--muted); }
.rp-tabs {
  display: flex; gap: 8px; margin: 24px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 6px;
  overflow-x: auto; scrollbar-width: none;
}
.rp-tabs::-webkit-scrollbar { display: none; }
.rp-tab {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.rp-tab:hover { border-color: var(--accent); color: var(--accent); }
.rp-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.rp-panel { margin-top: 20px; }
.rp-list { list-style: none; display: grid; gap: 14px; }
.rp-list li { position: relative; padding-left: 32px; font-size: 17px; line-height: 25px; color: #374151; }
.rp-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 1.5px; background: var(--muted); }
.rp-links { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 20px; }
.rp-note { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.rp-preview {
  position: relative; background: linear-gradient(180deg, #E4ECFD 0%, #EEF3FE 100%); border-radius: 20px;
  padding: 18px 16px 0; overflow: hidden;
}
.rp-badge { display: block; margin: 0 4px 22px; font-weight: 600; color: var(--accent); }
/* стопка: два листа выглядывают сверху из-за текущего */
.rp-stack { position: relative; }
.rp-stack::before, .rp-stack::after {
  content: ""; position: absolute; top: -8px; left: 12px; right: 12px; height: 40px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 0 0; opacity: .75;
}
.rp-stack::after { top: -15px; left: 26px; right: 26px; opacity: .5; }
.rp-sheet {
  position: relative; z-index: 1; display: block; height: 420px; overflow: hidden; border-radius: 14px 14px 0 0; background: #fff;
  border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 8px 24px rgba(17, 24, 39, .08); text-decoration: none;
}
.rp-sheet[hidden] { display: none; }
.rp-sheet img {
  display: block; width: 100%; height: auto; transition: transform .2s;
  -webkit-mask-image: linear-gradient(#000 70%, transparent 96%); mask-image: linear-gradient(#000 70%, transparent 96%);
}
.rp-sheet:hover img { transform: translateY(-4px); }
.rp-count {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap;
  padding: 6px 14px; border-radius: 999px; background: var(--text); color: #fff; font-size: 13px; line-height: 18px; font-weight: 500;
}
.rp-verdict {
  position: relative; z-index: 2; display: grid; gap: 6px; justify-items: start; margin: -8px 0 26px;
  padding: 12px 14px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-float);
}
.rp-verdict-kicker { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rp-verdict-why { font-size: 13px; line-height: 18px; color: #374151; }
@media (min-width: 1024px) {
  .rp { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px; align-items: start; padding: 56px 48px; }
  .rp-tabs { gap: 6px; }
  .rp-tab { padding: 0 12px; }
  .rp-tabs { flex-wrap: wrap; overflow: visible; margin: 28px 0 0; padding: 0; }
  .rp-panel { margin-top: 28px; min-height: 250px; }
  .rp-preview { padding: 24px 24px 0; }
  .rp-sheet { height: 560px; }
  /* итог — карточкой поверх правого верхнего угла листа */
  .rp-verdict { position: absolute; top: 96px; right: 12px; margin: 0; max-width: 290px; }
  .rp-verdict .verdict { white-space: nowrap; }
}

/* «Под вас»: анкета примера слева, её след в отчёте справа */
.pz { display: grid; gap: 12px; }
.pz-form, .pz-result { border-radius: 20px; padding: 20px; }
.pz-form { background: var(--surface); }
.pz-result { border: 1px solid var(--line); background: #fff; }
.pz-label { display: block; margin-bottom: 16px; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.pz-answers { margin: 0; display: grid; gap: 10px; }
.pz-answers > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.pz-answers dt { font-size: 13px; line-height: 18px; color: var(--muted); }
.pz-answers dd { margin: 2px 0 0; font-size: 16px; line-height: 22px; font-weight: 500; }
.pz-note { margin-top: 14px; font-size: 14px; line-height: 20px; color: var(--muted); }
.pz-list { list-style: none; display: grid; gap: 16px; }
.pz-list li { position: relative; padding-left: 32px; font-size: 16px; line-height: 24px; color: #374151; }
.pz-list li::before {
  position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; line-height: 1;
}
.pz-minus::before { content: "−"; background: #FDECEA; color: var(--red-text); }
.pz-plus::before { content: "+"; background: #E6F5EC; color: #146B3D; }
.pz-why { display: block; font-size: 13px; line-height: 18px; color: var(--muted); }
.pz-why::before { content: "из анкеты: "; }
.pz-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.pz-quote { font-size: 15px; line-height: 20px; color: var(--muted); }
.pz-foot { margin-top: 20px; max-width: 720px; color: var(--muted); }
@media (min-width: 900px) {
  .pz { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: stretch; }
  .pz-form, .pz-result { padding: 28px; border-radius: var(--radius-panel); }
}

/* block 5: comparison */
.compare-cards { display: grid; gap: 12px; }
.compare-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff; scroll-snap-align: start; }
.compare-card h3 { margin-bottom: 12px; }
.compare-card dl { margin: 0; display: grid; gap: 10px; }
.compare-card dt { font-size: 13px; line-height: 18px; color: var(--muted); }
.compare-card dd { margin: 0; font-size: 16px; line-height: 22px; }
.compare-card.ours { border: 2px solid var(--accent); background: var(--accent-soft); }
.compare-table { display: none; width: 100%; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; vertical-align: top; font-size: 16px; line-height: 24px; border-bottom: 1px solid var(--line); }
.compare-table thead th { font-size: 17px; border-bottom: 0; }
.compare-table tbody th { font-weight: 500; color: var(--muted); width: 22%; }
.compare-table .ours { background: var(--accent-soft); font-weight: 500; }
.compare-table thead .ours { border-radius: 16px 16px 0 0; color: var(--accent); }
.compare-table tbody tr:last-child .ours { border-radius: 0 0 16px 16px; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
@media (min-width: 900px) {
  .compare-cards { display: none; }
  .compare-table { display: table; }
}

/* block 7: prices */
.prices-band {
  background:
    radial-gradient(50% 60% at 50% 0%, #DCE7FD 0%, rgba(220, 231, 253, 0) 100%),
    var(--surface);
  border-radius: var(--radius-panel);
}
/* «Во что обходится ошибка» — отдельный раздел перед стоимостью */
.losses { list-style: none; display: grid; gap: 12px; }
.losses li { display: grid; align-content: start; gap: 4px; padding: 20px; border-radius: 20px; background: #FDF3F2; }
.loss-what { font-size: 15px; line-height: 20px; font-weight: 600; color: #374151; }
.losses strong { font-size: 30px; line-height: 38px; letter-spacing: -0.02em; color: var(--red-text); }
.loss-how { font-size: 15px; line-height: 22px; color: var(--muted); }
@media (min-width: 900px) {
  .losses { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .losses li { padding: 28px; }
  .losses strong { font-size: 36px; line-height: 44px; }
}
.price-cards { display: grid; gap: 12px; }
.price-card {
  position: relative; display: grid; gap: 12px; align-content: start;
  padding: 24px 20px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
}
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-float); }
.price-badge {
  position: absolute; top: -13px; left: 20px; height: 26px; padding: 0 12px; display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600;
}
.price-amount { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-amount strong { font-size: 36px; line-height: 40px; letter-spacing: -0.03em; }
.price-amount s { color: var(--muted); font-size: 18px; }
.price-card .muted { font-size: 15px; line-height: 22px; }
.price-note { margin-top: 20px; text-align: center; color: var(--muted); font-size: 15px; line-height: 22px; }
@media (min-width: 900px) {
  .price-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
  .price-card { padding: 32px 28px 28px; }
  .price-card .btn { margin-top: auto; }
}
body.price-main .beta-only { display: none !important; }
body:not(.price-main) .main-only { display: none !important; }

/* block 8: guarantee */
.guarantee {
  display: grid; gap: 16px; padding: 24px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line);
}
.guarantee p { font-size: 18px; line-height: 28px; }
@media (min-width: 768px) { .guarantee { grid-template-columns: 56px 1fr; gap: 24px; padding: 32px 40px; align-items: center; } }

/* block 9: faq */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  min-height: 60px; padding: 14px 0; font-weight: 600; font-size: 18px; line-height: 26px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 18px; color: #374151; max-width: 68ch; }

/* block 10: lead magnet */
.lead {
  display: grid; gap: 24px; padding: 24px; border-radius: var(--radius-panel);
  background: var(--accent-soft);
}
.lead form { display: grid; gap: 12px; }
@media (min-width: 900px) { .lead { grid-template-columns: 1fr 1fr; padding: 48px; gap: 48px; align-items: center; } }

/* block 11: footer */
.site-footer {
  margin: 0 8px 8px; padding: 40px 0 32px; border-radius: var(--radius-panel);
  background: var(--footer-bg); color: #D5DBEA;
}
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
.footer-disclaimer { font-size: 15px; line-height: 23px; max-width: 62ch; }
.footer-links { list-style: none; display: grid; gap: 4px; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; line-height: 21px; display: grid; gap: 6px; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}

/* cookie bar */
.cookie {
  position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: var(--z-cookie);
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 8px 8px 8px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-float);
  font-size: 14px; line-height: 20px; max-width: 560px;
}
.cookie[hidden] { display: none; }

/* ---------- path screens ---------- */

.flow-header { border-bottom: 1px solid var(--line); background: #fff; }
.flow-header .container { max-width: 720px; }
.flow { max-width: 720px; margin: 0 auto; padding: 20px var(--gutter) 40px; }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.back-link::before { content: ""; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.flow h1 { font-size: 28px; line-height: 34px; }
.flow .lede { margin-top: 8px; color: var(--muted); }
@media (min-width: 768px) {
  .flow { padding-top: 32px; }
  .flow h1 { font-size: 36px; line-height: 44px; }
}

.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 24px; }
.stepper li { display: grid; gap: 6px; font-size: 13px; line-height: 16px; color: var(--muted); }
.stepper li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.stepper li.done::before, .stepper li[aria-current="step"]::before { background: var(--accent); }
.stepper li[aria-current="step"] { color: var(--text); font-weight: 600; }

.stack { display: grid; gap: 20px; }
.stack-sm { display: grid; gap: 12px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.card-surface { background: var(--surface); border-color: transparent; }

.object-card { display: grid; gap: 14px; }
.object-photo { aspect-ratio: 16 / 10; }
.object-card .price { font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; }
.object-card .source { color: var(--muted); font-size: 14px; }
@media (min-width: 640px) {
  .object-card { grid-template-columns: 240px 1fr; align-items: center; gap: 20px; }
  .object-photo { aspect-ratio: 4 / 3; height: 100%; }
}

.object-mini { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.object-mini-noimg { grid-template-columns: 1fr auto; }
.object-mini p { font-size: 15px; line-height: 21px; }

.skeleton { position: relative; overflow: hidden; background: #ECEFF3; border-radius: 8px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: translateX(-100%); animation: shimmer 1.2s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 16px; }
.sk-line + .sk-line { margin-top: 10px; }

.two-col { display: grid; gap: 12px; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; } }
.include-list { list-style: none; display: grid; gap: 10px; margin-top: 10px; }
.include-list li { position: relative; padding-left: 28px; font-size: 16px; line-height: 23px; }
.include-list li::before {
  position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.include-yes li::before { content: "✓"; background: #E3F4EA; color: #146B3D; }
.include-no li::before { content: "✕"; background: #F1F2F4; color: #5B6472; }

.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: #FFF6E0; color: #4A3500; font-size: 16px; line-height: 23px; }
.notice-info { background: var(--accent-soft); color: #1E3A8A; }
.notice-error { background: #FDECEA; color: #7A1C16; }
.notice[hidden] { display: none; }

/* sticky action bar on phones */
.actions { display: grid; gap: 10px; margin-top: 28px; }
@media (max-width: 767px) {
  body.has-actionbar { padding-bottom: 150px; }
  .actions.sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-actionbar); margin: 0;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .actions.sticky .btn { min-height: 48px; }
  /* the cookie banner (fixed, above the bar) would hide the buttons: until it is closed the bar stays in the flow */
  body.has-cookie .actions.sticky {
    position: static; margin-top: 28px; padding: 0; background: none; border-top: 0;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}
@media (min-width: 768px) {
  .actions { grid-auto-flow: column; justify-content: start; }
}

/* tariffs */
.tariffs { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; }
.tariff { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; background: #fff; transition: border-color .2s, background-color .2s; }
.tariff input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.tariff:has(input:checked) { border: 2px solid var(--accent); background: var(--accent-soft); padding: 15px; }
.tariff-name { font-weight: 600; }
.tariff-price { text-align: right; }
.tariff-price strong { display: block; font-size: 20px; line-height: 24px; }
.tariff-price s { color: var(--muted); font-size: 14px; }
.tariff .small { color: var(--muted); }
.tariff .price-badge { position: static; height: 22px; font-size: 12px; margin-left: 6px; vertical-align: 2px; }

/* progress */
.stages { list-style: none; display: grid; gap: 4px; }
.stage { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stage:last-child { border-bottom: 0; }
.stage-icon { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #C9CED6; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; }
.stage-state { font-size: 14px; color: var(--muted); }
.stage[data-state="running"] .stage-icon { border-color: var(--accent-soft); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.stage[data-state="running"] .stage-name { font-weight: 600; }
.stage[data-state="running"] .stage-state { color: var(--accent); }
.stage[data-state="done"] .stage-icon { background: var(--green); border-color: var(--green); }
.stage[data-state="done"] .stage-icon::after { content: "✓"; }
.stage[data-state="done"] .stage-state { color: #146B3D; }
@keyframes spin { to { transform: rotate(360deg); } }
.ready { display: grid; gap: 12px; padding: 20px; border-radius: 16px; background: #E8F6EE; }
.ready[hidden] { display: none; }

/* ---------- report ---------- */

.report-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.report-layout > * { min-width: 0; }
@media (max-width: 1023px) {
  .report-layout > .toc { margin: 0 calc(-1 * var(--gutter)); }
}
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.example-banner { background: var(--accent-soft); }
.example-banner .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.example-banner p { font-weight: 600; color: #1E3A8A; }

.toc {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.toc ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px var(--gutter); scrollbar-width: none; }
.toc ul::-webkit-scrollbar { display: none; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; white-space: nowrap; text-decoration: none; color: var(--text); font-size: 14px; background: var(--surface); }
.toc a.active { background: var(--accent); color: #fff; }
.toc .toc-title { display: none; }

.report-head { padding: 24px 0 8px; }
.report-head h1 { font-size: 30px; line-height: 36px; }
.report-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: #374151; font-size: 16px; }
.report-price { font-size: 26px; line-height: 32px; font-weight: 700; margin-top: 12px; letter-spacing: -0.02em; }
.disclaimer { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); color: #374151; font-size: 14px; line-height: 21px; }

.rsec { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.rsec > h2 { font-size: 24px; line-height: 30px; margin-bottom: 16px; }
.rsec h3 { margin-bottom: 6px; }

.summary-top { display: grid; gap: 16px; }
.score-big { display: flex; align-items: baseline; gap: 6px; }
.score-big strong { font-size: 48px; line-height: 1; letter-spacing: -0.03em; }
.pc-grid { display: grid; gap: 12px; margin-top: 16px; }
.pc-col h3 { font-size: 16px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.pc-item { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); }
.pc-item + .pc-item { margin-top: 8px; }
.pc-item h4 { font-size: 16px; line-height: 22px; font-weight: 600; margin-bottom: 4px; letter-spacing: 0; }
.pc-item p { font-size: 15px; line-height: 22px; color: #374151; }
.pc-item .src { margin-top: 8px; }
.pc-plus { border-left: 3px solid var(--green); }
.pc-minus { border-left: 3px solid var(--red); }
@media (min-width: 768px) { .pc-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.kpi { padding: 14px; border-radius: var(--radius); background: var(--surface); }
.kpi .tiny { color: var(--muted); }
.kpi strong { display: block; font-size: 18px; line-height: 24px; margin-top: 2px; }
.kpi-accent { background: var(--accent-soft); }
.kpi-wide { grid-column: 1 / -1; }
@media (min-width: 768px) { .kpis { grid-template-columns: repeat(4, 1fr); } .kpi-wide { grid-column: span 1; } }

.rtable { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.rtable th, .rtable td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rtable thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.rtable .num { text-align: right; white-space: nowrap; }
@media (max-width: 639px) {
  .rtable.stackable thead { display: none; }
  .rtable.stackable tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .rtable.stackable td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 3px 0; text-align: right; }
  .rtable.stackable td::before { content: attr(data-label); color: var(--muted); text-align: left; }
  .rtable.stackable td:first-child { font-weight: 600; text-align: left; }
  .rtable.stackable td:first-child::before { display: none; }
}

.finding { padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.finding + .finding { margin-top: 10px; }
.finding p { font-size: 16px; line-height: 24px; color: #374151; margin-top: 4px; }
.finding .src { margin-top: 8px; }

.photo-findings { display: grid; gap: 12px; }
.photo-finding { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.photo-finding div.body { padding: 14px 16px; }
.photo-finding p { font-size: 15px; line-height: 22px; color: #374151; margin-top: 4px; }
@media (min-width: 768px) { .photo-findings { grid-template-columns: repeat(3, 1fr); } }

.scheme { aspect-ratio: 16 / 10; margin-bottom: 16px; }
.neg-list { list-style: none; display: grid; gap: 8px; margin-top: 16px; }
.neg-list li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: baseline; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); font-size: 15px; line-height: 22px; }

.risks { display: grid; gap: 10px; }
.risk { display: grid; gap: 8px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.risk-title { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.risk dl { margin: 0; display: grid; gap: 6px; font-size: 15px; line-height: 22px; }
.risk dt { color: var(--muted); font-size: 13px; line-height: 18px; }
.risk dd { margin: 0; }
@media (min-width: 900px) {
  .risk { grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; align-items: start; }
  .risk dl { display: contents; }
  .risk dl > div { display: grid; gap: 2px; }
}

.checklist { list-style: none; display: grid; gap: 6px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); cursor: pointer; font-size: 16px; line-height: 23px; }
.checklist input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--green); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }

.to-top {
  position: fixed; left: 16px; bottom: 16px; z-index: var(--z-fab);
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-float); font: 600 14px var(--font); color: var(--text);
  display: inline-flex; align-items: center; text-decoration: none;
  transition: opacity .2s, transform .2s var(--ease);
}
.to-top[hidden] { display: none; }

@media (min-width: 1024px) {
  .report-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
  .toc { top: 16px; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .toc ul { flex-direction: column; padding: 0; overflow: visible; }
  .toc a { background: none; min-height: 40px; }
  .toc a:hover { background: var(--surface); }
  .toc .toc-title { display: block; font-size: 13px; color: var(--muted); padding: 24px 12px 8px; }
  .to-top { display: none; }
  .report-head h1 { font-size: 40px; line-height: 48px; }
}

/* mode: address report hides listing and photo parts */
body.mode-address [data-hide-in~="address"] { display: none !important; }
body:not(.mode-address) [data-show-in~="address"] { display: none !important; }

/* simple content pages */
.page { max-width: 860px; margin: 0 auto; padding: 24px var(--gutter) 56px; }
.page h1 { margin-bottom: 12px; }
.page h2 { font-size: 24px; line-height: 30px; margin: 36px 0 10px; scroll-margin-top: 16px; }
.page p + p { margin-top: 12px; }
.doc ol, .doc ul { margin: 8px 0 0; padding-left: 22px; }
.doc ol > li + li, .doc ul > li + li { margin-top: 8px; }
.doc li > ul { margin-top: 6px; }
.requisites th { width: 38%; font-weight: 600; color: var(--muted); }

/* ---------- modal ---------- */

.modal-backdrop {
  position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: end center;
  background: rgba(11, 27, 63, .5); padding: 12px;
  animation: fade .2s ease-out;
}
.modal {
  width: 100%; max-width: 460px; background: #fff; border-radius: 20px; padding: 24px;
  display: grid; gap: 12px; animation: rise .25s var(--ease);
}
.modal h2 { font-size: 22px; line-height: 28px; }
.modal .actions { margin-top: 8px; grid-auto-flow: row; }
@media (min-width: 640px) { .modal-backdrop { place-items: center; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- motion ---------- */

.reveal { animation: rise .6s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .stage[data-state="running"] .stage-icon { border-color: var(--accent); }
}

/* ---------- дополнения Фазы 3 (нет в прототипе) ---------- */

.stepper-2 { grid-template-columns: repeat(2, 1fr); }

/* этап, который не удалось собрать: отчёт всё равно идёт дальше */
.stage[data-state="partial"] .stage-icon { border-color: var(--yellow); background: var(--yellow); }
.stage[data-state="partial"] .stage-state { color: #4A3500; }
.stage[data-state="failed"] .stage-icon { border-color: var(--red); background: var(--red); }
.stage[data-state="failed"] .stage-icon::after { content: "!"; }
.stage[data-state="failed"] .stage-state { color: var(--red-text); }

/* лендинг по MARKETING.md: находки, три опоры, образец факта, финальный призыв */
.two-col .card h3 { margin-bottom: 4px; }
@media (min-width: 768px) { .two-col .card { padding: 24px; } }

.final-cta {
  display: grid; gap: 24px; align-items: center;
  margin-bottom: 40px; padding: 32px var(--gutter); border-radius: var(--radius-panel);
  background: var(--accent); color: #fff;
}
.final-text { display: grid; gap: 12px; justify-items: start; }
.final-text p { color: #DCE6FD; max-width: 520px; }
.final-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 17px; line-height: 24px; }
.final-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: baseline; }
.final-list li::before { content: "✓"; font-weight: 700; color: #fff; }
.final-text .arrow-link { color: #fff; }
/* Белая карточка с той же формой ссылки, что в шапке: поле и кнопка всегда друг под другом */
.final-card { background: #fff; color: var(--text); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-float); }
.final-card .link-form { margin: 0; max-width: none; }
.final-card .link-form-row { grid-template-columns: 1fr; background: none; border: 0; padding: 0; gap: 12px; border-radius: 0; }
.final-card .link-form-row:focus-within { box-shadow: none; }
.final-card .link-form-row .input { border: 1px solid #C9CED6; border-radius: var(--radius); padding-left: 16px; min-height: 52px; }
.final-card .link-form-row .input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(29, 78, 216, .18); }
.final-card .link-form-row .btn { width: 100%; min-height: 52px; }
.final-card .link-form .field-error, .final-card .link-form-meta { padding: 0; }
.final-card .tiny { margin-top: 8px; }
.final-note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 20px; }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.final-actions .btn { margin-top: 8px; }
@media (max-width: 480px) { .final-actions { flex-direction: column; justify-self: stretch; } }
.btn-on-accent { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-on-accent:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
@media (min-width: 768px) { .final-card { padding: 32px; } }
@media (min-width: 1024px) {
  .final-cta { grid-template-columns: 1fr minmax(0, 480px); gap: 48px; padding: 64px 72px; margin-bottom: 56px; }
}

.admin-scroll { overflow-x: auto; margin-top: 20px; }
.admin { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.admin th, .admin td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.admin th { background: var(--surface); font-weight: 600; }
.admin .obj { max-width: 24rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin .st-done { color: #146B3D; }
.admin .st-failed { color: var(--red-text); }
.admin .flags { min-width: 14rem; color: var(--red-text); font-size: 13px; }
.review-flags { color: var(--red-text); white-space: normal; }

/* «Что стоит за словами в объявлении»: фрагмент объявления с номерами → пометки с источником.
   Телефон — текст, под ним список; от 1024 px — текст слева (липкий), пометки справа */
.annot { display: grid; gap: 16px; }
.annot-ad { margin: 0; background: var(--surface); border-radius: 16px; padding: 20px; }
.annot-ad-head { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.annot-ad-head span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.annot-ad-body { font-size: 16px; line-height: 26px; }
.annot-ad-body p, .annot-ad-body ul { margin: 0 0 10px; }
.annot-ad-body p:last-child { margin-bottom: 0; }
.annot-ad-body ul { padding-left: 20px; }
.annot-mark {
  color: inherit; text-decoration: none; background: #FDECEA; border-bottom: 2px solid var(--red-text);
  padding: 1px 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.annot-mark:hover { background: #FAD9D5; }
.annot-num, .annot-notes > li::before {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red-text); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; font-style: normal;
}
.annot-num { margin-left: 4px; vertical-align: 2px; }
.annot-notes { list-style: none; margin: 0; padding: 0; counter-reset: annot; display: grid; }
.annot-notes > li {
  counter-increment: annot; position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.annot-notes > li:first-child { padding-top: 0; }
.annot-notes > li:last-child { border-bottom: 0; padding-bottom: 0; }
.annot-notes > li::before { content: counter(annot); position: absolute; left: 0; top: 16px; width: 24px; height: 24px; font-size: 13px; }
.annot-notes > li:first-child::before { top: 2px; }
.annot-notes h3 { font-size: 18px; line-height: 26px; margin: 0; }
.annot-notes p { margin: 4px 0 0; color: var(--muted); }
.annot-src { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--muted); }
.annot-notes > li:target h3 { color: var(--red-text); }
@media (min-width: 1024px) {
  .annot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .annot-ad { position: sticky; top: 16px; padding: 28px; }
  .annot-ad-body { font-size: 17px; line-height: 28px; }
}

/* ---------- free teaser (/t/<token>, phase 4.2) ---------- */

.teaser-h { font-size: 19px; line-height: 26px; }
.teaser-grid { display: grid; gap: 12px; margin-top: 12px; }
.teaser-side { display: grid; gap: 0; align-content: start; }
/* на телефоне кнопка — в липкой панели: место под ней, чтобы не закрыла последнюю строку */
@media (max-width: 767px) { [data-page="teaser"] .flow { padding-bottom: 150px; } }
/* на широком экране закрытые строки и кнопка — справа и видны без прокрутки */
@media (min-width: 1024px) {
  [data-page="teaser"] .flow, [data-page="teaser"] .flow-header .container { max-width: 1080px; }
  [data-page="teaser"] .stepper { max-width: 672px; }
  .teaser-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .teaser-side { position: sticky; top: 16px; }
  .teaser-side .actions { margin-top: 16px; }
}
.teaser-object { display: grid; gap: 4px; }
.teaser-price { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.teaser-facts { display: grid; margin-top: 8px; }
.teaser-fact { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.teaser-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.teaser-fact dt { font-size: 14px; line-height: 20px; color: var(--muted); }
.teaser-fact dd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; }
.teaser-value { font-weight: 600; overflow-wrap: anywhere; }
.teaser-fact .src a, .teaser-fact .src span.tiny { align-self: center; }
@media (min-width: 640px) {
  .teaser-fact { grid-template-columns: 200px 1fr; gap: 16px; align-items: baseline; }
}
.teaser-closed { list-style: none; display: grid; margin-top: 8px; }
.teaser-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; min-height: 56px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.teaser-row:last-child { border-bottom: 0; }
.teaser-label { display: grid; gap: 2px; }
.teaser-label > span:first-child { font-weight: 600; }
.teaser-icon { width: 24px; height: 24px; border-radius: 8px; position: relative; background: var(--surface); }
/* закрыто: замок из рамки и дужки, без символов шрифта */
.teaser-locked .teaser-icon { background: var(--accent-soft); }
.teaser-locked .teaser-icon::before { content: ""; position: absolute; left: 7px; top: 11px; width: 10px; height: 8px; border-radius: 2px; background: var(--accent); }
.teaser-locked .teaser-icon::after { content: ""; position: absolute; left: 8.5px; top: 5px; width: 7px; height: 8px; border: 2px solid var(--accent); border-bottom: 0; border-radius: 5px 5px 0 0; box-sizing: border-box; }
/* проверили, ничего не нашли: галочка */
.teaser-none .teaser-icon { background: #E3F4EA; }
.teaser-none .teaser-icon::after { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 11px; border-right: 2px solid #146B3D; border-bottom: 2px solid #146B3D; transform: rotate(45deg); }
.teaser-pending .teaser-icon { background: transparent; border: 2px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; width: 20px; height: 20px; margin: 2px; animation: spin .9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .teaser-pending .teaser-icon { animation: none; border-color: var(--accent-soft); } }
.teaser-unknown .teaser-icon::after, .teaser-info .teaser-icon::after { content: ""; position: absolute; left: 7px; top: 11px; width: 10px; height: 2px; background: #9AA3AF; }
.teaser-count {
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
}

/* ---------- кабинет и вход (этап 4.3а, нет в прототипе) ---------- */

.stepper-3 { grid-template-columns: repeat(3, 1fr); }
.flow-login { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; }
.flow-login:hover { color: var(--accent); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--accent-hover); }
.input-code { max-width: 200px; font-size: 24px; letter-spacing: 6px; font-variant-numeric: tabular-nums; }
.input-sm { min-height: 44px; font-size: 14px; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-list { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.account-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-object { margin-top: 8px; overflow-wrap: anywhere; }
.status-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface); color: var(--muted); white-space: nowrap; }
.status-pill.st-done { background: #E7F6EE; color: #146B3D; }
.status-pill.st-running { background: var(--accent-soft); color: #1E3A8A; }
.status-pill.st-failed { background: #FDECEA; color: var(--red-text); }
.share { display: grid; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .account-item { padding: 20px 24px; } }
/* страницы на .page (кабинет, документы) шире потока: шапка по той же ширине, «Кабинет» — у правого края контента */
[data-page="account"] .flow-header .container, [data-page="legal"] .flow-header .container { max-width: 860px; }

/* ---------- модерация, М1: страница после заказа и срочность ---------- */

.wait-hero { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 24px 0 8px; }
.wait-mark { position: relative; display: grid; place-items: center; width: 88px; height: 88px; margin-bottom: 8px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
/* спокойная «волна» вокруг значка: без процентов и этапов */
.wait-mark::before, .wait-mark::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: wait-ring 3.2s var(--ease) infinite; }
.wait-mark::after { animation-delay: 1.6s; }
@keyframes wait-ring { 0% { transform: scale(1); opacity: .35; } 100% { transform: scale(1.6); opacity: 0; } }
.wait .wait-hero h1 { font-size: 32px; line-height: 38px; }
.wait-deadline { font-size: 20px; line-height: 28px; }
.wait-deadline strong { font-weight: 700; }
.wait-express { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; margin-right: 4px; border-radius: 999px; background: #FDE68A; color: #78350F; font-size: 15px; font-weight: 700; vertical-align: 2px; }
.wait-text { max-width: 520px; color: var(--muted); }
.wait-night { padding: 8px 14px; border-radius: var(--radius); background: var(--accent-soft); color: #1E3A8A; font-size: 15px; }
.wait-mail { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; }
.wait-mail svg { flex: none; margin-top: 1px; color: var(--accent); }
.wait-object { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .wait-hero { padding-top: 48px; }
  .wait .wait-hero h1 { font-size: 44px; line-height: 52px; }
  .wait-deadline { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .wait-mark::before, .wait-mark::after { animation: none; opacity: 0; } }

.express-box { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.express-box .check { margin: 0; }
.express-box.is-closed { background: var(--surface); }
.express-box.is-closed .check { color: var(--muted); }
.expert-line { color: #146C3E; font-weight: 600; }
.status-pill.st-queued, .status-pill.st-review, .status-pill.st-publishing { background: var(--accent-soft); color: #1E3A8A; }
/* список модератора */
.review-h2 { margin-top: 32px; font-size: 22px; line-height: 28px; }
.review-table .obj { max-width: 420px; white-space: normal; }
.review-table tr.is-overdue td { background: #FDECEA; }
.review-express { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: #FDE68A; color: #78350F; font-size: 12px; font-weight: 700; }

/* Оплата (этап 4.3б) */
.tariff.is-disabled { cursor: not-allowed; opacity: .55; }
.pay-credit { margin-top: 20px; border: 2px solid var(--accent); background: var(--accent-soft); }
.pay-credit p + p { margin-top: 6px; }
.pay-note { margin-top: 16px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-actions form { display: inline; }
.admin-section { margin-top: 32px; }
.admin-events td { vertical-align: top; }
