/* podpiskaincy.ru «Абонемент» — кремовая бумага, тёмно-зелёные чернила, бирюзовые кнопки, горчичные цены.
   Мотив — проездной билет: выемки по краям карточек и пунктир линии отрыва. Шрифты: Unbounded (заголовки)
   и Golos Text (текст). Сначала телефон, потом широкие экраны.
   Классы без префикса ab- (btn, plan, modal, co-*, container, plans-grid, pending-order) читают checkout.js и сервер. */
:root {
  color-scheme: light;
  --cream: #f6f1e6;
  --cream-2: #efe7d6;
  --card: #fffcf6;
  --ink: #142f2b;
  --ink-2: #3f5651;
  --ink-3: #6b7d78;
  --line: #e1d7c2;
  --teal: #0e6b5c;
  --teal-2: #0a5247;
  --teal-soft: #dcefe9;
  --coral: #e2583a;
  --coral-soft: #fbe4da;
  --sun: #f3c14b;
  --sun-soft: #fbefcb;
  --ok: #1d7a4f;
  --bad: #b42318;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 1px 0 rgba(20, 47, 43, 0.05), 0 16px 34px -22px rgba(20, 47, 43, 0.5);
  --shadow-s: 0 1px 0 rgba(20, 47, 43, 0.05), 0 8px 18px -14px rgba(20, 47, 43, 0.45);
  --display: "Unbounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --max: 70rem;
  --read: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; color: var(--ink); font: 16px/1.65 var(--text); overflow-wrap: break-word;
  background: var(--cream) radial-gradient(1200px 420px at 85% -120px, rgba(243, 193, 75, 0.22), transparent 70%) no-repeat;
}
img, svg { max-width: 100%; }
a { color: var(--teal-2); text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: rgba(14, 107, 92, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--coral); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(25px, 6.2vw, 42px); line-height: 1.16; font-weight: 600; margin: 8px 0 18px; max-width: 26ch; }
h2 { font-size: clamp(19px, 4.6vw, 26px); line-height: 1.25; font-weight: 600; margin: 46px 0 14px; }
h3 { font-size: 16px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 1.25em; }
li { margin: 0 0 7px; }
li::marker { color: var(--teal); }
code { font-family: var(--mono); font-size: 0.9em; background: var(--sun-soft); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.muted { color: var(--ink-2); }

.ab-wrap, .container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.ab-skip { position: absolute; left: -9999px; top: 0; }
.ab-skip:focus { left: 12px; top: 10px; z-index: 60; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* ---- шапка -------------------------------------------------------------------- */
.ab-head { background: rgba(246, 241, 230, 0.92); border-bottom: 1px dashed var(--line); }
.ab-head__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 10px; }
.ab-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.ab-brand:hover { color: var(--ink); }
.ab-mark { width: 40px; height: 40px; flex: none; }
.ab-brand__name { font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.ab-brand__name small { display: block; margin-top: 4px; font-family: var(--text); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-3); }
.ab-head__cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--teal); color: var(--cream); font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.ab-head__cta:hover { background: var(--teal-2); color: #fff; }
.ab-nav { display: flex; gap: 4px; overflow-x: auto; padding-top: 2px; padding-bottom: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ab-nav::-webkit-scrollbar { display: none; }
.ab-nav a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.ab-nav a:hover { background: var(--cream-2); color: var(--ink); }
.ab-nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }

/* ---- первый экран --------------------------------------------------------------- */
.ab-crumbs { font-size: 13.5px; color: var(--ink-3); padding-top: 18px; }
.ab-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.ab-crumbs li { margin: 0; }
.ab-crumbs li + li::before { content: "→"; margin: 0 8px 0 6px; color: var(--ink-3); }
.ab-crumbs a { color: var(--ink-2); }
.ab-hero { padding-top: 10px; padding-bottom: 4px; }
.ab-hero--home { padding-top: 30px; }
.ab-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.ab-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.ab-lead { font-size: 17.5px; color: var(--ink-2); max-width: var(--read); }
.ab-note { max-width: var(--read); padding: 12px 16px; border-left: 4px solid var(--sun); border-radius: 0 var(--radius-s) var(--radius-s) 0; background: var(--sun-soft); font-size: 15.5px; }
.ab-stamp { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border: 1px dashed var(--ink-3); border-radius: 6px; font-size: 13px; color: var(--ink-3); transform: rotate(-1deg); }

/* карточка оффера — билет с выемками и линией отрыва */
.ab-offer {
  position: relative; display: grid; gap: 14px; align-items: center; max-width: 52rem; margin: 0 0 22px;
  padding: 18px 20px; border-radius: var(--radius); background: var(--teal); color: var(--cream); box-shadow: var(--shadow);
}
.ab-offer::before, .ab-offer::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--cream); }
.ab-offer::before { left: -11px; }
.ab-offer::after { right: -11px; }
.ab-offer p { margin: 0; }
.ab-offer__sum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-size: 15px; }
.ab-offer__sum b { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1; color: var(--sun); letter-spacing: -0.02em; }
.ab-offer__terms { margin-top: 4px; font-size: 14px; color: #cfe5df; }
.ab-offer__facts { list-style: none; margin: 0; padding: 12px 0 0; border-top: 2px dashed rgba(246, 241, 230, 0.35); font-size: 15px; }
.ab-offer__facts li { margin: 0 0 4px; padding-left: 20px; position: relative; }
.ab-offer__facts li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 9px; height: 9px; border-radius: 2px; background: var(--sun); transform: rotate(45deg); }
.ab-offer .ab-offer__cta { background: var(--sun); color: var(--ink); }
.ab-offer .ab-offer__cta:hover { background: #f7cf6a; color: var(--ink); }

/* ---- текст страниц --------------------------------------------------------------- */
.ab-text { padding-bottom: 40px; }
.ab-text > * { max-width: var(--read); }
.ab-text > section:first-child h2:first-child { margin-top: 22px; }
.ab-steps { counter-reset: n; list-style: none; padding: 0; }
.ab-steps > li { counter-increment: n; position: relative; padding: 2px 0 0 48px; margin-bottom: 14px; min-height: 34px; }
.ab-steps > li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: #fff; font: 600 15px/34px var(--display); text-align: center; }
.ab-cards { display: grid; gap: 14px; margin: 16px 0 12px; padding: 0; list-style: none; }
.ab-cards > li { margin: 0; padding: 18px 18px 8px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--teal); box-shadow: var(--shadow-s); }
.ab-cards p { font-size: 15.5px; color: var(--ink-2); }
.ab-specs { display: grid; gap: 10px; margin: 16px 0; }
.ab-specs > div { padding: 14px 16px; border-radius: var(--radius-s); background: var(--card); border: 1px solid var(--line); }
.ab-specs dt { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--teal-2); }
.ab-specs dd { margin: 4px 0 0; color: var(--ink-2); font-size: 15.5px; }
.ab-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
caption { caption-side: bottom; text-align: left; font-size: 13.5px; color: var(--ink-3); padding: 8px 14px 12px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px dashed var(--line); vertical-align: top; }
th { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); background: var(--cream-2); }
tbody tr:last-child td { border-bottom: 0; }

/* полоса «билетов» со сроками */
.ab-pass { margin: 26px 0; padding: 18px 16px 14px; border-radius: var(--radius); background: var(--ink); color: var(--cream); box-shadow: var(--shadow); }
.ab-pass__title { margin: 0 0 2px; font-family: var(--display); font-size: 18px; font-weight: 600; }
.ab-pass__note { margin: 0 0 14px; font-size: 14.5px; color: #c3d4cf; }
.ab-pass__grid { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ab-pass__grid li { margin: 0; }
.ab-pass__item { display: grid; gap: 2px; padding: 12px 12px 10px; border-radius: var(--radius-s); background: var(--card); color: var(--ink); text-decoration: none; border-top: 3px dashed var(--sun); }
.ab-pass__item:hover { background: var(--sun-soft); color: var(--ink); }
.ab-pass__term { font-size: 13.5px; color: var(--ink-3); }
.ab-pass__sum { font-family: var(--display); font-size: 20px; font-weight: 700; }
.ab-pass__per { font-size: 13px; font-weight: 600; color: var(--teal); }
.ab-pass__fine { margin: 0; font-size: 13.5px; color: #c3d4cf; text-align: center; }

/* вопросы и ответы */
.ab-faq { margin-top: 10px; }
.ab-qa { border-bottom: 1px dashed var(--line); }
.ab-qa:first-of-type { border-top: 1px dashed var(--line); }
.ab-qa summary { cursor: pointer; list-style: none; position: relative; padding: 15px 44px 15px 0; font-weight: 600; font-size: 16.5px; }
.ab-qa summary::-webkit-details-marker { display: none; }
.ab-qa summary::after { content: ""; position: absolute; right: 8px; top: 21px; width: 10px; height: 10px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); transition: transform 0.15s; }
.ab-qa[open] summary::after { transform: rotate(-135deg); top: 26px; }
.ab-qa p { margin: 0; padding: 0 0 16px; color: var(--ink-2); }

/* /podderzhka и юридические страницы */
.ab-contacts { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 10px; }
.ab-contacts li { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 14px 16px; border-radius: var(--radius-s); background: var(--card); border: 1px solid var(--line); }
.ab-contacts span { font-weight: 600; min-width: 5em; }
.ab-legal h2 { font-size: clamp(17px, 4vw, 21px); margin-top: 32px; }

/* ---- подвал -------------------------------------------------------------------- */
.ab-foot { margin-top: 44px; background: #12302b; color: #d5e2de; font-size: 15px; }
.ab-foot a { color: var(--cream); text-decoration-color: rgba(243, 193, 75, 0.5); }
.ab-foot a:hover { color: var(--sun); }
.ab-foot__grid { display: grid; gap: 24px; padding-top: 34px; padding-bottom: 22px; }
.ab-foot .ab-brand, .ab-foot .ab-brand:hover { color: var(--cream); }
.ab-foot .ab-brand__name small { color: #9fb6b0; }
.ab-foot__about p { margin: 12px 0 0; max-width: 26rem; color: #b6c9c4; }
.ab-foot__head { margin: 0 0 8px; font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sun); }
.ab-foot__col ul { list-style: none; padding: 0; margin: 0; }
.ab-foot__col li { margin: 0 0 6px; }
.ab-foot__bottom { border-top: 1px dashed #36524c; padding-top: 14px; padding-bottom: 26px; font-size: 13.5px; color: #9fb6b0; }
.ab-foot__bottom p { margin: 0 0 6px; }
.ab-foot__unofficial { color: #d5e2de; }

/* ---- кнопки (классы читают checkout.js и сервер) ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 999px;
  font: 600 16px/1.2 var(--text); text-decoration: none; cursor: pointer;
  background: var(--card); color: var(--ink); border-color: var(--line);
}
.btn:hover { background: var(--cream-2); color: var(--ink); }
.btn--primary { background: var(--teal); border-color: var(--teal); color: var(--cream); }
.btn--primary:hover { background: var(--teal-2); border-color: var(--teal-2); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--teal); color: var(--teal-2); }
.btn--ghost:hover { background: var(--teal-soft); color: var(--teal-2); }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* ---- /access: тарифы и форма (классы читают checkout.js и сервер) --------------- */
.access-plans { padding-top: 10px; }
.plans-grid { display: grid; gap: 18px; margin-top: 12px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px 18px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.plan--recommended { border: 2px solid var(--teal); background: linear-gradient(var(--teal-soft), var(--card) 46%); }
.plan__badge { position: absolute; top: -13px; left: 16px; padding: 3px 11px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.plan__badge--saving { background: var(--sun); color: var(--ink); }
.plan__name { font-family: var(--display); font-size: 17px; font-weight: 600; }
.plan__old { min-height: 20px; margin-top: 6px; color: var(--ink-3); text-decoration: line-through; font-size: 14.5px; }
html[data-reference-price="hide"] .plan__old { visibility: hidden; }
.plan__price { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.plan__sub { align-self: flex-start; margin: 8px 0 14px; padding: 2px 9px; border-radius: 6px; background: var(--sun-soft); font-weight: 600; font-size: 13.5px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; font-size: 15px; color: var(--ink-2); }
.plan li { margin: 0 0 7px; padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 6px; height: 11px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); }
.plan .btn { margin-top: auto; }
.plans-note { font-size: 14.5px; color: var(--ink-2); margin-top: 20px; max-width: 52rem; }
.pending-order { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--sun-soft); border: 1px solid var(--sun); }

#checkout-inline:empty { display: none; }
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 40; background: rgba(18, 48, 43, 0.62); 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; padding: 22px 18px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 6px; font-size: 19px; }
.modal__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--ink-2); }
.modal__desc { color: var(--ink-2); font-size: 15px; }
.modal__summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; margin: 0 0 16px; border-radius: var(--radius-s); background: var(--teal-soft); border: 1px dashed var(--teal); }
.modal__amount { text-align: right; }
.modal__amount b { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; }
.modal__amount small { color: var(--ink-2); 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: 1.5px solid var(--line); border-radius: var(--radius-s); font: 17px var(--text); color: var(--ink); background: #fff; margin-bottom: 14px; }
.modal input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 107, 92, 0.18); }
.modal__error { color: var(--bad); font-weight: 600; font-size: 15px; min-height: 1em; margin: 0 0 8px; }
.modal__note { font-size: 13px; color: var(--ink-3); text-align: center; margin: 10px 0 0; }
.co-email-hint, .co-rail-hint, .co-short-note { font-size: 13.5px; color: var(--ink-2); margin: -6px 0 12px; }
.co-alt { font-size: 14px; }
.co-rails-cap { font-size: 14px; color: var(--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: 1.5px solid var(--line); border-radius: var(--radius-s); background: #fff; color: var(--ink); font: 600 14.5px/1.2 var(--text); cursor: pointer; }
.co-rail.is-on { background: var(--teal); border-color: var(--teal); color: var(--cream); }
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: 22px auto 0; }
html[data-form="inline"] .modal__close { display: none; }

/* ---- /success ------------------------------------------------------------------ */
.ab-order { max-width: 680px; margin-top: 20px; padding: 20px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ab-order__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.ab-order__row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.ab-order__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.ab-field { min-width: 0; flex: 1; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--cream); font: inherit; color: var(--ink); }
.ab-field--select { display: block; width: 100%; max-width: 360px; margin: 8px 0; background: #fff; }
.ab-tg { margin: 0 0 16px; padding: 16px; border-radius: var(--radius-s); background: var(--teal-soft); border: 1px dashed var(--teal); }

.ab-wide { display: none; }
html, body { overflow-x: clip; }

/* ---- шире телефона ----------------------------------------------------------------- */
@media (min-width: 640px) {
  .ab-wide { display: inline; }
  th, td { padding: 11px 14px; white-space: nowrap; }
  .ab-offer { grid-template-columns: auto 1fr auto; gap: 22px; padding: 20px 28px; }
  .ab-offer__facts { padding: 0 0 0 22px; border-top: 0; border-left: 2px dashed rgba(246, 241, 230, 0.35); }
  .ab-cards { grid-template-columns: repeat(2, 1fr); }
  .ab-specs { grid-template-columns: repeat(2, 1fr); }
  .ab-pass { padding: 22px 24px 16px; }
  .ab-pass__grid { grid-template-columns: repeat(4, 1fr); }
  .modal { padding: 26px 28px; }
}
@media (min-width: 900px) {
  body { font-size: 17px; }
  .ab-wrap, .container { padding: 0 24px; }
  .ab-cards--3, .ab-text .ab-cards { grid-template-columns: repeat(3, 1fr); }
  .plans-grid { grid-template-columns: repeat(4, 1fr); }
  .ab-foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
  .ab-nav { overflow: visible; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
