/*
 * Сайт zvezdomer.ru. Без сборки: файл отдается как есть, в шаблоне с ?v=<хеш> (SiteAsset).
 * Палитра: чернила (текст, темные полосы), туман (чередующиеся полосы), звездное золото -
 * только звезды, рейтинг и главная кнопка; красный - только негатив (низкие оценки, жалобы).
 */

@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/site/fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/site/fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/site/fonts/golos-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C4, U+2113; }
/* Unbounded без latin-ext: знак рубля в крупных цифрах берется из Golos Text (следующий в стеке). */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/site/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/site/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #13213a;
  --ink-2: #2b3a55;
  --muted: #56647b;
  --line: #d8dee8;
  --line-soft: #e6ebf2;
  --mist: #eef2f7;
  --paper: #ffffff;
  --star: #ffb81c;
  --star-deep: #e89a00;
  --star-soft: #fff4d6;
  --alarm: #d33f35;
  --alarm-soft: #fdeceb;
  --ok: #1d8a57;
  --yandex: #fc3f1d;
  --gis: #19aa1e;
  --google: #4285f4;
  --tg: #2aabee;

  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 32px);
  --r-panel: 22px;
  --r-card: 14px;
  --r-ctl: 12px;
  --shadow: 0 1px 2px rgb(19 33 58 / 0.06), 0 12px 32px -12px rgb(19 33 58 / 0.18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-size-adjust: from-font;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--star-deep); }
:focus-visible { outline: 3px solid var(--star-deep); outline-offset: 2px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size-adjust: none;
}
h1 { font-size: clamp(1.95rem, 1.2rem + 2.5vw, 3.05rem); line-height: 1.1; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.16; font-weight: 500; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 600; }
p, li { text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-ctl); border: 1px solid transparent;
  font: 600 1rem/1 var(--text); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-star { background: var(--star); color: var(--ink); }
.btn-star:hover { background: #ffc844; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.on-ink .btn-line { color: #fff; border-color: rgb(255 255 255 / .35); }
.on-ink .btn-line:hover { border-color: #fff; }

/* ---------- шапка ---------- */
.site-header { border-bottom: 1px solid var(--line-soft); background: var(--paper); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 1.12rem/1 var(--display); text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.logo svg { width: 32px; height: 32px; flex: none; }
.site-nav { margin-left: auto; }
.menu-button {
  anchor-name: --menu-button;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--paper); color: var(--ink);
  font: 500 .95rem/1 var(--text); cursor: pointer;
}
.menu-button svg { width: 18px; height: 18px; }
.site-menu {
  list-style: none; margin: 0; padding: 8px;
  position: fixed; inset: auto;
  inset-block-start: 76px;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: var(--gutter);
  inline-size: min(86dvw, 22rem); max-block-size: calc(100dvh - 6rem); overflow: auto;
  margin-block-start: 8px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow);
}
.site-menu a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.site-menu a:hover { background: var(--mist); }
.site-menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--star-deep); background: var(--mist); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.header-actions .btn-small { gap: 0; }
.header-actions .btn-login { color: var(--ink); text-decoration: none; font-weight: 500; padding: 0 6px; }
.header-actions .btn-login:hover { text-decoration: underline; }
@supports not selector(:popover-open) { [popover]:not(.\:popover-open) { display: none; } }

.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu {
  position: static; display: flex; align-items: center; gap: 2px;
  inline-size: auto; max-block-size: none; overflow: visible; margin: 0; padding: 0;
  border: 0; background: transparent; box-shadow: none;
}
.site-header.is-wide .site-menu a { padding: 8px 12px; font-size: .97rem; }
.site-header.is-wide .site-menu a[aria-current="page"] { background: transparent; box-shadow: inset 0 -2px 0 var(--star-deep); border-radius: 0; }
.site-header.is-wide .menu-only { display: none; }
.site-header:not(.is-wide) .header-actions .btn-login { display: none; }
.is-measuring * { transition: none !important; }
@media (max-width: 480px) {
  .header-inner { gap: 12px; }
  .menu-button { padding: 0 10px; }
  .menu-button span, .header-actions .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .header-actions .btn-small { padding: 0 14px; }
}

/* ---------- общие блоки ---------- */
.band { padding-block: clamp(56px, 8vw, 104px); }
.band-mist { background: var(--mist); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink a { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 14px 0 0; }
.band-ink .section-head p { color: #c3cbe0; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.24rem); color: var(--ink-2); max-width: 36rem; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .split.flip > :first-child { order: 2; }
}
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 18px; height: 18px;
  background: var(--star-deep);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.1l2.59 6.94 7.4.32-5.81 4.6 1.99 7.13L12 17l-6.17 4.09 1.99-7.13-5.81-4.6 7.4-.32z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.text-link { font-weight: 600; }

/* звезды в строке */
.stars { display: inline-flex; gap: 2px; vertical-align: -2px; }
.stars svg { flex: none; width: 15px; height: 15px; max-width: none; fill: var(--star); }
.stars svg.off { fill: #d5dbe5; }
.stars.low svg:not(.off) { fill: var(--alarm); }

/* бейджи площадок */
.plat { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; font: 700 12px/1 Arial, Helvetica, sans-serif; flex: none; }
.plat-yandex { background: var(--yandex); }
.plat-2gis { background: var(--gis); }
.plat-google { background: var(--google); }
.plat-lg { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; }

/* ---------- первый экран ---------- */
.hero { padding-block: clamp(40px, 6vw, 84px) clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.hero h1 { max-width: 16ch; }
.hero .lead { margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 16px 0 0; color: var(--muted); font-size: .95rem; }

/* демо страницы отзывов (как /r/{key} в продукте) */
.gate { position: relative; }
.gate-stage { display: grid; gap: 18px; }
@media (min-width: 560px) { .gate-stage { grid-template-columns: 290px minmax(0, 1fr); align-items: center; } }
.phone {
  background: #f3f4f6; border-radius: 30px; padding: 14px; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.phone-card { background: #fff; border-radius: 18px; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; }
@media (min-width: 560px) { .phone-card { min-height: 392px; } }
.phone-head { background: #f5f6f9; text-align: center; padding: 13px 12px; font-weight: 600; font-size: .98rem; border-bottom: 1px solid #eef0f4; }
.phone-body { padding: 20px 18px 18px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.gate-step[data-step="rate"], .gate-step[data-step="thanks"] { margin-block: auto; }
.phone-body h3 { font-size: 1.12rem; margin-bottom: 14px; }
.phone-body .lead-s { color: var(--muted); font-size: .9rem; margin: -6px 0 14px; }
.rate { display: flex; justify-content: center; gap: 6px; }
.rate button {
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px;
  display: grid; place-items: center;
}
.rate svg { width: 36px; height: 36px; fill: #d1d5db; transition: fill .12s, transform .12s; }
.rate button.lit svg { fill: var(--star); }
.rate.low button.lit svg { fill: var(--alarm); }
@media (prefers-reduced-motion: no-preference) { .rate button:hover svg { transform: scale(1.08); } }
.gate-step[hidden] { display: none; }
.plat-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; margin-bottom: 8px;
  border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; font: 500 .95rem/1.2 var(--text); color: var(--ink); text-align: left;
}
.fake-field { text-align: left; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.fake-field span { display: block; margin-top: 3px; border: 1px solid #e5e7eb; border-radius: 9px; padding: 8px 10px; color: var(--ink); font-size: .9rem; background: #fafbfc; }
.phone-submit { margin-top: 6px; width: 100%; min-height: 42px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font: 600 .95rem/1 var(--text); cursor: pointer; }
.phone-back { margin-top: auto; padding-top: 10px; background: none; border: 0; color: var(--muted); font: 500 .85rem/1.2 var(--text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ok-mark { width: 52px; height: 52px; border-radius: 50%; background: #e8f6ee; color: var(--ok); display: grid; place-items: center; margin: 8px auto 12px; }
.ok-mark svg { width: 26px; height: 26px; }
.phone-powered { text-align: center; font-size: .75rem; color: #9aa3b2; margin: 10px 0 2px; }

.gate-legend { display: grid; gap: 10px; align-content: start; }
.legend-row {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper);
  transition: border-color .2s, background-color .2s;
}
.legend-row[hidden] { display: none; }
.legend-row .stars { margin-bottom: 6px; }
.legend-row b { display: block; font-weight: 600; }
.legend-row p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }
.legend-row.active.high { border-color: var(--star-deep); background: var(--star-soft); }
.legend-row.active.low { border-color: var(--alarm); background: var(--alarm-soft); }

/* сообщение в Telegram */
.tg {
  background: #e7eef6; border-radius: var(--r-card); padding: 12px; font-size: .9rem; line-height: 1.45;
}
.tg-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 10px; font-weight: 600; font-size: .9rem; }
.tg-head .ava { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); flex: none; }
.tg-head .ava svg { width: 20px; height: 20px; }
.tg-head small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.tg-msg { background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 12px; white-space: pre-line; box-shadow: 0 1px 1px rgb(19 33 58 / .08); max-width: 34rem; }
.tg-msg + .tg-msg { margin-top: 8px; }
.tg-msg .bot { display: block; color: var(--tg); font-weight: 600; font-size: .82rem; margin-bottom: 2px; }
.tg-time { display: block; text-align: right; color: #9aa3b2; font-size: .72rem; margin-top: 2px; }
.tg-album { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3px; margin: 0 0 8px; border-radius: 10px; overflow: hidden; height: 128px; }
.tg-album span { display: block; }
/* Размытые «фото гостя» без картинок: теплые пятна, как кофейня не в фокусе. */
.tg-album span:first-child { background:
  radial-gradient(ellipse 38% 42% at 46% 54%, #f7ead6 0 55%, transparent 60%),
  radial-gradient(ellipse 50% 55% at 46% 54%, #8a5a36 0 62%, transparent 66%),
  radial-gradient(circle at 82% 18%, #f4d9a8 0 14%, transparent 34%),
  linear-gradient(160deg, #6e4b33, #b98a5c 60%, #d8b98e); }
.tg-album span:last-child { background:
  radial-gradient(circle at 30% 30%, #ffe3a3 0 10%, transparent 30%),
  radial-gradient(ellipse 60% 40% at 50% 80%, #c98a4e 0 50%, transparent 70%),
  linear-gradient(200deg, #3d3a4a, #7a6555 55%, #c49a6c); }
.gate-tg { margin-top: 2px; }
.gate-tg[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .gate-tg:not([hidden]) { animation: tg-in .45s cubic-bezier(.2, .8, .2, 1); }
  @keyframes tg-in { from { opacity: 0; translate: 0 12px; } }
}

/* ---------- площадки ---------- */
.platforms { display: grid; border-top: 1px solid var(--line); grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; }
.platform-row {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 6px;
  padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.platform-row h3 { font-size: 1.15rem; }
.platform-row p { margin: 4px 0 0; color: var(--muted); }
.platform-row .freq { grid-column: 2; font-weight: 600; color: var(--ink); }
.platform-row .more { grid-column: 2; }
@media (min-width: 860px) {
  .platforms { grid-template-columns: 40px minmax(0, 1.25fr) minmax(0, .9fr) auto; column-gap: 28px; }
  .platform-row { align-items: center; }
  .platform-row .more { justify-self: end; }
  .platform-row .freq, .platform-row .more { grid-column: auto; }
  .platform-row p { margin: 0; }
}

/* ---------- лента ---------- */
.feed { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); overflow: hidden; }
.feed-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line-soft); }
.feed-sum div { padding: 16px 16px 14px; }
.feed-sum div + div { border-left: 1px solid var(--line-soft); }
.feed-sum .num { font: 600 1.6rem/1 var(--display); letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.feed-sum .num .plat { width: 20px; height: 20px; font-size: 11px; }
.feed-sum small { display: block; color: var(--muted); font-size: .82rem; margin-top: 6px; }
.feed-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.chip {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px;
  padding: 6px 12px; font: 500 .86rem/1.1 var(--text); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.low[aria-pressed="true"] { background: var(--alarm); border-color: var(--alarm); }
.feed-list { list-style: none; margin: 0; padding: 0; }
.review { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 16px 16px 16px 14px; border-bottom: 1px solid var(--line-soft); }
.review:last-child { border-bottom: 0; }
.review[hidden] { display: none; }
.review.neg { box-shadow: inset 3px 0 0 var(--alarm); }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .88rem; color: var(--muted); }
.review-meta b { color: var(--ink); font-weight: 600; }
.review p { grid-column: 2; margin: 2px 0 0; font-size: .95rem; }
.review .reply { grid-column: 2; margin-top: 6px; padding: 8px 10px; background: var(--mist); border-radius: 10px; font-size: .88rem; color: var(--ink-2); }
.review .reply b { font-weight: 600; }

/* ---------- шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; } }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font: 600 2.2rem/1 var(--display); color: var(--star-deep); margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- виджет ---------- */
.widget-frame { background: var(--mist); border-radius: var(--r-panel); padding: clamp(14px, 3vw, 28px); border: 1px solid var(--line); }
.widget-frame [data-reviews-widget] { --zv-font: var(--text); min-height: 320px; display: block; }
.widget-caption { font-size: .9rem; color: var(--muted); margin: 12px 4px 0; }
.code {
  position: relative; background: var(--ink); color: #e6ebf5; border-radius: var(--r-card);
  padding: 16px 18px; font: .86rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Перенос вместо горизонтальной прокрутки: ширина моноширинного шрифта разная в браузерах, и полоса
     прокрутки на Mac с постоянными скроллбарами наезжала на кнопку под блоком. Копируется кнопкой. */
  white-space: pre-wrap; overflow-wrap: anywhere; margin: 18px 0 0;
}
.code-actions { margin: 16px 0 0; }
.code .t { color: #ffcf66; }
.code .a { color: #9fd3ff; }

/* ---------- кому подходит ---------- */
.who { display: grid; gap: 0 48px; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.who > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.who h3 { font-size: 1.08rem; margin-bottom: 6px; }
.who p { margin: 0; color: var(--muted); }

/* ---------- цены ---------- */
.price-teaser { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .price-teaser { grid-template-columns: 1.2fr 1fr 1fr; } }
.price-teaser .pt { border-top: 2px solid #fff; padding-top: 16px; }
.price-teaser .amount { font: 600 clamp(2rem, 1.5rem + 2vw, 2.9rem)/1 var(--display); letter-spacing: -0.02em; }
.price-teaser .amount small { font: 500 1rem/1 var(--text); color: #c3cbe0; letter-spacing: 0; margin-left: 6px; }
.price-teaser p { color: #c3cbe0; margin: 10px 0 0; }

.plans { display: grid; gap: 20px; }
@media (min-width: 980px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.plan { border: 1px solid var(--line); border-radius: var(--r-panel); padding: 28px 26px; display: flex; flex-direction: column; background: var(--paper); }
.plan.main { border-color: var(--ink); border-width: 2px; }
.plan h2 { font-size: 1.35rem; }
.plan .for { color: var(--muted); margin: 8px 0 18px; min-height: 3em; }
.plan .amount { font: 600 2.6rem/1 var(--display); letter-spacing: -0.02em; }
.plan .amount.amount-text { font-size: 1.55rem; line-height: 1.15; padding-block: 6px 5px; }
.plan .amount small { font: 500 1rem/1.2 var(--text); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan .sub { color: var(--muted); font-size: .92rem; margin: 8px 0 22px; min-height: 1.4em; }
.plan .ticks { margin: 0 0 26px; }
.plan .btn { margin-top: auto; }

.compare { width: 100%; border-collapse: collapse; font-size: .96rem; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.compare thead th { background: var(--mist); font-weight: 600; white-space: nowrap; }
.compare tbody th { font-weight: 500; }
.compare tr:last-child > * { border-bottom: 0; }
@media (max-width: 600px) {
  .compare { font-size: .9rem; }
  .compare th, .compare td { padding: 10px 10px; }
  .compare thead th { white-space: normal; }
}
.compare td.y::before { content: "Да"; font-weight: 600; color: var(--ok); }
.compare td.n::before { content: "Нет"; color: var(--muted); }

/* ---------- вопросы ---------- */
.faq { display: grid; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); } }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 18px 0; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; inline-size: 14px; block-size: 14px; flex-shrink: 0; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}
.faq details[open] > summary::before { rotate: 0deg; }
.faq .answer { padding: 0 0 20px 26px; color: var(--ink-2); max-width: 44rem; }
.faq .answer p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq summary::before { transition: rotate .2s; }
  .faq details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; transition: block-size .25s ease-in-out, content-visibility .25s; transition-behavior: allow-discrete; }
  .faq details:not([open])::details-content { block-size: 0; }
}

/* ---------- финальный призыв ---------- */
.final { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .final { grid-template-columns: 1fr auto; } }
.final h2 { max-width: 20ch; }
.final p { color: #c3cbe0; margin: 14px 0 0; max-width: 36rem; }
.final .hero-actions { justify-content: flex-start; }

/* ---------- внутренние страницы ---------- */
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }
.page-hero { padding-block: clamp(28px, 4vw, 48px) clamp(44px, 6vw, 72px); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin: 20px 0 28px; }
.page-hero .plat-lg { margin-bottom: 22px; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .facts > div + div { border-left: 1px solid var(--line); padding-left: 24px; } }
.facts > div { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
.facts b { display: block; font: 600 1.35rem/1.15 var(--display); margin-bottom: 8px; letter-spacing: -0.01em; }
.facts p { margin: 0; color: var(--muted); }
.howto { counter-reset: h; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.howto li::before { content: counter(h); width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 .9rem/1 var(--display); }
.url-example { display: inline-block; font: .9rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--mist); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; word-break: break-all; }
.qr-card {
  max-width: 330px; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel);
  padding: 26px 26px 22px; text-align: center; box-shadow: var(--shadow);
}
.qr-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin-bottom: 6px; }
.qr-card p { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.qr-card svg { width: 180px; height: 180px; }
.qr-card .link { font: 600 .95rem/1 var(--text); margin-top: 12px; }

/* ---------- документы ---------- */
.doc { max-width: 48rem; padding-block: 8px clamp(56px, 8vw, 96px); }
.doc h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); margin: 12px 0 10px; }
.doc .edition { color: var(--muted); margin-bottom: 28px; }
.doc h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc .summary { background: var(--mist); border-radius: var(--r-card); padding: 20px 24px; margin-bottom: 8px; }
.doc .summary h2 { margin-top: 0; font-size: 1.1rem; }
.doc .summary ul { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 8px 0 16px; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.doc th { font-weight: 600; }
.doc .table-wrap { overflow-x: auto; }

/* ---------- заявка ---------- */
.lead-form { display: grid; gap: 14px; max-width: 40rem; }
.lead-form .row { display: grid; gap: 14px; }
@media (min-width: 640px) { .lead-form .row { grid-template-columns: 1fr 1fr; } }
.lead-form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.lead-form input, .lead-form textarea, .lead-form select {
  font: 1rem/1.4 var(--text); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%;
}
.lead-form input:focus-visible, .lead-form textarea:focus-visible, .lead-form select:focus-visible { outline: 3px solid var(--star); outline-offset: 0; border-color: var(--ink); }
.lead-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--ink-2); }
.lead-form .consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--r-card); padding: 14px 16px; margin-bottom: 18px; }
.notice-ok { background: #e8f6ee; color: #11573a; }
.notice-err { background: var(--alarm-soft); color: #8a221b; }

/* ---------- подвал ---------- */
.site-footer { background: var(--mist); padding-block: 48px 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }
.footer-grid h2 { font: 600 .95rem/1.3 var(--text); margin-bottom: 10px; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-about p { color: var(--muted); margin: 12px 0; max-width: 24rem; }
.footer-legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (forced-colors: active) {
  .site-header.is-wide .site-menu a[aria-current="page"] { text-decoration: underline; }
  .legend-row.active { outline: 2px solid CanvasText; }
}
@media print {
  .site-header, .site-footer, .band-ink, .hero-actions { display: none; }
}
