/* podpiskahapp.ru «Подписчик» — холодный светлый фон, тёмно-синие чернила, кобальтовые кнопки, коралловые цены.
   Шрифты: Unbounded (заголовки) и Golos Text (текст) с Google Fonts, при недоступности — системные.
   Свои классы — с префиксом sb-; классы тарифов и формы (plan, btn, modal, co-*) читает js/checkout.js. */
:root {
  color-scheme: light;
  --sb-bg: #f2f6fc;
  --sb-bg-2: #e6edf8;
  --sb-card: #ffffff;
  --sb-ink: #101a33;
  --sb-ink-2: #45506b;
  --sb-ink-3: #6b7591;
  --sb-line: #d5deec;
  --sb-cobalt: #1d3fd0;
  --sb-cobalt-2: #1530a6;
  --sb-cobalt-soft: #e3e9ff;
  --sb-coral: #ff7a59;
  --sb-coral-2: #e85a37;
  --sb-coral-soft: #ffe9e2;
  --sb-navy: #0d1630;
  --sb-ok: #11795a;
  --sb-r: 12px;
  --sb-r-lg: 20px;
  --sb-max: 70rem;
  --sb-read: 45rem;
  --sb-head: "Unbounded", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --sb-text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sb-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 18px; }
body { margin: 0; background: var(--sb-bg); color: var(--sb-ink); font: 17px/1.6 var(--sb-text); overflow-wrap: break-word; font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; }
a { color: var(--sb-cobalt); text-decoration: underline; text-decoration-color: rgba(29, 63, 208, 0.35); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--sb-cobalt-2); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--sb-coral); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--sb-head); color: var(--sb-ink); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(25px, 6.2vw, 42px); line-height: 1.14; margin: 8px 0 18px; }
h2 { font-size: clamp(20px, 4.6vw, 27px); line-height: 1.22; margin: 46px 0 14px; }
h2::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 10px; border-radius: 4px; background: var(--sb-coral); }
h3 { font-size: 17px; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 1.25em; }
li { margin: 0 0 8px; }
code { font-family: var(--sb-mono); font-size: 0.86em; background: var(--sb-cobalt-soft); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 18px; font-size: 16px; background: var(--sb-card); border: 1px solid var(--sb-line); border-radius: var(--sb-r); overflow: hidden; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--sb-line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--sb-bg-2); font-size: 14px; font-weight: 600; color: var(--sb-ink-2); }
.muted { color: var(--sb-ink-2); }

.sb-shell, .container { width: 100%; max-width: var(--sb-max); margin: 0 auto; padding: 0 16px; }
.sb-skip { position: absolute; left: -9999px; top: 0; }
.sb-skip:focus { left: 12px; top: 10px; z-index: 50; background: var(--sb-card); padding: 8px 12px; border: 2px solid var(--sb-ink); }

/* ---- шапка ---------------------------------------------------------------- */
.sb-top { background: var(--sb-card); border-bottom: 1px solid var(--sb-line); }
.sb-top__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 8px; }
.sb-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--sb-ink); text-decoration: none; }
.sb-brand svg { width: 36px; height: 36px; flex: none; }
.sb-brand__name { font-family: var(--sb-head); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.sb-brand__name small { display: block; font: 500 12px/1.2 var(--sb-text); letter-spacing: 0; color: var(--sb-ink-3); }
.sb-top__buy { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--sb-r); background: var(--sb-cobalt); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.sb-top__buy:hover { background: var(--sb-cobalt-2); color: #fff; }
.sb-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sb-tabs::-webkit-scrollbar { display: none; }
.sb-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 42px; padding: 0 11px; border-bottom: 3px solid transparent; color: var(--sb-ink-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.sb-tabs a:hover { color: var(--sb-ink); border-bottom-color: var(--sb-line); }
.sb-tabs a[aria-current="page"] { color: var(--sb-ink); border-bottom-color: var(--sb-coral); }

/* ---- заголовок страницы и оффер ------------------------------------------- */
.sb-crumbs { font-size: 14px; color: var(--sb-ink-3); padding-top: 16px; }
.sb-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.sb-crumbs li { margin: 0; }
.sb-crumbs li + li::before { content: "/"; margin: 0 8px 0 6px; color: var(--sb-line); }
.sb-crumbs a { color: var(--sb-ink-2); text-decoration: none; }
.sb-head { padding-top: 10px; padding-bottom: 4px; }
.sb-lead { font-size: 18px; color: var(--sb-ink-2); max-width: var(--sb-read); }
.sb-upd { margin: 12px 0 18px; font-size: 14px; color: var(--sb-ink-3); }
.sb-upd time { font-weight: 600; color: var(--sb-ink-2); }

.sb-offer { display: grid; gap: 10px; align-items: center; max-width: var(--sb-read); margin: 0 0 6px; padding: 18px; border-radius: var(--sb-r-lg); background: var(--sb-navy); color: #e8edfb; box-shadow: 0 14px 30px rgba(13, 22, 48, 0.18); }
.sb-offer__tag { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #9fb0e8; }
.sb-offer__price { margin: 0; font-size: 16px; }
.sb-offer__price b { font-family: var(--sb-head); font-size: 34px; line-height: 1; color: var(--sb-coral); margin: 0 4px; }
.sb-offer__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; }
.sb-offer__facts li { margin: 0; position: relative; padding-left: 16px; }
.sb-offer__facts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--sb-coral); }
.sb-offer__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: var(--sb-r); background: var(--sb-coral); color: var(--sb-navy); font-weight: 700; font-size: 17px; text-decoration: none; }
.sb-offer__btn:hover { background: #ff9274; color: var(--sb-navy); }

/* ---- текст ------------------------------------------------------------------ */
.sb-body { max-width: calc(var(--sb-read) + 32px); padding-bottom: 36px; }
.sb-body > section:first-child > h2:first-child { margin-top: 26px; }
.sb-ticks { list-style: none; padding: 0; }
.sb-ticks > li { position: relative; padding-left: 28px; }
.sb-ticks > li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 12px; height: 7px; border-left: 3px solid var(--sb-cobalt); border-bottom: 3px solid var(--sb-cobalt); transform: rotate(-45deg); }
.sb-steps { counter-reset: sb; list-style: none; padding: 0; }
.sb-steps > li { counter-increment: sb; position: relative; padding: 2px 0 0 46px; margin-bottom: 16px; min-height: 32px; }
.sb-steps > li::before { content: counter(sb); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 9px; background: var(--sb-cobalt-soft); color: var(--sb-cobalt-2); font: 700 15px/32px var(--sb-head); text-align: center; }
.sb-grid { display: grid; gap: 12px; margin: 14px 0 16px; padding: 0; list-style: none; }
.sb-grid > li, .sb-grid > div { margin: 0; background: var(--sb-card); border: 1px solid var(--sb-line); border-radius: var(--sb-r-lg); padding: 16px 18px; }
.sb-grid p { margin: 0 0 8px; font-size: 16px; color: var(--sb-ink-2); }
.sb-grid p:last-child { margin-bottom: 0; }
.sb-pairs { display: grid; gap: 0; margin: 14px 0; background: var(--sb-card); border: 1px solid var(--sb-line); border-radius: var(--sb-r-lg); overflow: hidden; }
.sb-pairs > div { padding: 12px 16px; border-bottom: 1px solid var(--sb-line); }
.sb-pairs > div:last-child { border-bottom: 0; }
.sb-pairs dt { font-weight: 700; }
.sb-pairs dd { margin: 2px 0 0; color: var(--sb-ink-2); font-size: 16px; }
.sb-tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sb-tbl caption { caption-side: bottom; text-align: left; font-size: 14px; color: var(--sb-ink-3); padding: 8px 2px 0; }
.sb-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 18px; }
.sb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: var(--sb-r); border: 2px solid var(--sb-cobalt); background: var(--sb-card); color: var(--sb-cobalt); font-weight: 600; font-size: 16px; text-decoration: none; }
.sb-btn:hover { background: var(--sb-cobalt-soft); }
.sb-btn--fill { background: var(--sb-cobalt); color: #fff; }
.sb-btn--fill:hover { background: var(--sb-cobalt-2); border-color: var(--sb-cobalt-2); color: #fff; }
.sb-note { background: var(--sb-coral-soft); border-radius: var(--sb-r); padding: 14px 16px; font-size: 16px; }

/* вопросы */
.sb-faq { display: grid; gap: 10px; }
.sb-faq details { background: var(--sb-card); border: 1px solid var(--sb-line); border-radius: var(--sb-r); padding: 0 16px; }
.sb-faq summary { cursor: pointer; list-style: none; position: relative; padding: 14px 30px 14px 0; font-weight: 600; }
.sb-faq summary::-webkit-details-marker { display: none; }
.sb-faq summary::after { content: ""; position: absolute; right: 4px; top: 22px; width: 9px; height: 9px; border-right: 2px solid var(--sb-cobalt); border-bottom: 2px solid var(--sb-cobalt); transform: rotate(45deg); transition: transform 0.15s; }
.sb-faq details[open] summary::after { transform: rotate(-135deg); top: 26px; }
.sb-faq details p { margin: 0 0 14px; color: var(--sb-ink-2); }

/* подвал */
.sb-foot { margin-top: 24px; background: var(--sb-bg-2); border-top: 1px solid var(--sb-line); font-size: 15px; color: var(--sb-ink-2); }
.sb-foot a { color: var(--sb-ink); text-decoration: none; }
.sb-foot a:hover { color: var(--sb-cobalt); text-decoration: underline; }
.sb-foot__cols { display: grid; gap: 22px; padding-top: 30px; padding-bottom: 18px; }
.sb-foot__about p { margin: 12px 0 0; max-width: 24rem; }
.sb-foot__h { margin: 0 0 10px; font: 700 13px/1.3 var(--sb-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sb-ink-3); }
.sb-foot__col ul { list-style: none; margin: 0; padding: 0; }
.sb-foot__col li { margin: 0 0 7px; }
.sb-foot__base { border-top: 1px solid var(--sb-line); padding-top: 14px; padding-bottom: 24px; font-size: 14px; }
.sb-foot__base p { margin: 0 0 6px; }

/* ---- /access: тарифы и форма (классы читают checkout.js и сервер) --------- */
.hero-lead { font-size: 18px; color: var(--sb-ink-2); max-width: var(--sb-read); }
.access-plans { padding-bottom: 8px; }
.plans-grid { display: grid; gap: 16px; margin-top: 14px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--sb-card); border: 1px solid var(--sb-line); border-radius: var(--sb-r-lg); padding: 22px 18px 18px; }
.plan--recommended { border: 2px solid var(--sb-cobalt); box-shadow: 0 12px 30px rgba(29, 63, 208, 0.16); }
.plan__badge { position: absolute; top: -13px; right: 16px; background: var(--sb-cobalt); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; padding: 4px 11px; border-radius: 8px; }
.plan__badge--saving { background: var(--sb-coral); color: var(--sb-navy); }
.plan__name { font-family: var(--sb-head); font-size: 18px; font-weight: 700; }
.plan__price { font-family: var(--sb-head); font-size: 32px; font-weight: 700; line-height: 1.1; margin-top: 8px; }
.plan__old { min-height: 20px; color: var(--sb-ink-3); text-decoration: line-through; font-size: 15px; }
html[data-reference-price="hide"] .plan__old { visibility: hidden; }
.plan__sub { color: var(--sb-ok); font-weight: 600; font-size: 15px; margin: 6px 0 12px; }
.plan ul { list-style: none; padding: 12px 0 0; margin: 0 0 16px; border-top: 1px dashed var(--sb-line); font-size: 15px; color: var(--sb-ink-2); }
.plan li { margin: 0 0 6px; padding-left: 18px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 1px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--sb-coral); }
.plan .btn { margin-top: auto; }
.plans-note { font-size: 15px; color: var(--sb-ink-2); margin-top: 18px; }
.pending-order { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; padding: 14px 16px; border: 2px solid var(--sb-coral); border-radius: var(--sb-r); background: var(--sb-coral-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--sb-r); font: 600 16px/1.2 var(--sb-text); text-decoration: none; cursor: pointer; border: 2px solid var(--sb-cobalt); background: var(--sb-card); color: var(--sb-cobalt); }
.btn:hover { background: var(--sb-cobalt-soft); }
.btn--primary { background: var(--sb-cobalt); color: #fff; }
.btn--primary:hover { background: var(--sb-cobalt-2); border-color: var(--sb-cobalt-2); }
.btn--ghost { background: var(--sb-card); }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: 0.6; cursor: wait; }

#checkout-inline:empty { display: none; }
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 30; background: rgba(13, 22, 48, 0.6); padding: 16px; overflow-y: auto; }
.modal-backdrop.open { display: flex; align-items: flex-start; justify-content: center; }
.modal { position: relative; width: 100%; max-width: 500px; margin: 6vh auto 0; background: var(--sb-card); border-radius: var(--sb-r-lg); padding: 22px 18px; }
.modal h3 { font-size: 20px; margin: 0 0 6px; }
.modal__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--sb-ink); }
.modal__desc { color: var(--sb-ink-2); font-size: 16px; }
.modal__summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; margin: 0 0 14px; background: var(--sb-bg); border-radius: var(--sb-r); }
.modal__amount { text-align: right; }
.modal__amount b { display: block; font-size: 22px; }
.modal__amount small { color: var(--sb-ink-3); font-size: 12px; }
.modal label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.modal input { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--sb-line); border-radius: var(--sb-r); font: 17px var(--sb-text); color: var(--sb-ink); background: #fff; margin-bottom: 14px; }
.modal input:focus { border-color: var(--sb-cobalt); outline: none; }
.modal__error { color: #b3261e; font-weight: 600; font-size: 15px; min-height: 1em; margin: 0 0 8px; }
.modal__note { font-size: 13px; color: var(--sb-ink-3); text-align: center; margin: 10px 0 0; }
.co-rails-cap { font-size: 14px; color: var(--sb-ink-2); margin: 0 0 6px; }
.co-rails { display: flex; gap: 8px; margin: 0 0 14px; }
.co-rail { flex: 1; min-height: 46px; padding: 8px 6px; border: 2px solid var(--sb-line); border-radius: var(--sb-r); background: #fff; color: var(--sb-ink); font: 600 15px/1.2 var(--sb-text); cursor: pointer; }
.co-rail.is-on { border-color: var(--sb-cobalt); background: var(--sb-cobalt-soft); color: var(--sb-cobalt-2); }
.co-rail-hint, .co-short-note, .co-email-hint { font-size: 14px; color: var(--sb-ink-2); margin: -6px 0 12px; }
.co-alt { font-size: 14px; color: var(--sb-ink-3); text-align: center; margin: 10px 0 0; }
.co-alt button { border: 0; background: none; padding: 0; color: var(--sb-cobalt); font: inherit; text-decoration: underline; cursor: pointer; }
html[data-form="inline"] .modal-backdrop { position: static; inset: auto; z-index: auto; background: none; padding: 0; overflow: visible; }
html[data-form="inline"] .modal-backdrop.open { display: block; }
html[data-form="inline"] .modal { margin: 18px auto 0; border: 1px solid var(--sb-line); box-shadow: 0 10px 26px rgba(13, 22, 48, 0.08); }
html[data-form="inline"] .modal__close { display: none; }

/* ---- /success ------------------------------------------------------------- */
.order-box { max-width: 680px; margin-top: 20px; padding: 18px; border: 1px solid var(--sb-line); border-radius: var(--sb-r-lg); background: var(--sb-card); }
.order-box select, .order-box input { font: inherit; }
.tg-box { margin: 0 0 16px; padding: 16px; border: 2px solid var(--sb-cobalt); border-radius: var(--sb-r); background: var(--sb-cobalt-soft); }
.sb-field { display: block; width: 100%; max-width: 360px; min-height: 48px; padding: 10px; margin: 8px 0; border: 2px solid var(--sb-line); border-radius: var(--sb-r); background: #fff; }

/* ---- шире телефона ---------------------------------------------------------- */
@media (min-width: 640px) {
  .sb-offer { grid-template-columns: 1fr auto; padding: 20px 24px; }
  .sb-offer__tag, .sb-offer__price, .sb-offer__facts { grid-column: 1; }
  .sb-offer__btn { grid-column: 2; grid-row: 1 / span 3; }
  .sb-grid { grid-template-columns: repeat(2, 1fr); }
  .sb-pairs { grid-template-columns: repeat(2, 1fr); }
  .sb-pairs > div:nth-child(odd) { border-right: 1px solid var(--sb-line); }
  .sb-pairs > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .modal { padding: 26px 28px; }
}
@media (min-width: 900px) {
  body { font-size: 18px; }
  .sb-shell, .container { padding: 0 24px; }
  .sb-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .plans-grid { grid-template-columns: repeat(4, 1fr); }
  .sb-foot__cols { grid-template-columns: 1.3fr repeat(4, 1fr); }
  .sb-tabs { overflow: visible; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
