/* podpiskahapp.online «Тариф» — прайс-лист: светлый лавандовый фон, глубокий фиолетовый, жёлтый ценник.
   Шрифты: Manrope (текст и заголовки) и IBM Plex Mono (цены, цифры, подписи). Сначала телефон. */
:root {
  color-scheme: light;
  --tf-bg: #f6f4fb;
  --tf-bg-2: #eeeaf7;
  --tf-surface: #ffffff;
  --tf-ink: #1c1530;
  --tf-ink-2: #574f6c;
  --tf-line: #e1dbef;
  --tf-violet: #5b2ee0;
  --tf-violet-dark: #4320b5;
  --tf-violet-soft: #ece6ff;
  --tf-tag: #ffd54a;
  --tf-tag-soft: #fff5cc;
  --tf-mint: #0d7c60;
  --tf-mint-soft: #dcf3ea;
  --tf-danger: #b3261e;
  --tf-r: 12px;
  --tf-r-lg: 20px;
  --tf-max: 70rem;
  --tf-text: 46rem;
  --tf-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tf-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--tf-bg); color: var(--tf-ink); font: 400 17px/1.65 var(--tf-sans); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--tf-violet-dark); text-decoration: underline; text-decoration-color: rgba(91, 46, 224, 0.35); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--tf-tag); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--tf-sans); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; color: var(--tf-ink); }
h1 { font-size: clamp(29px, 7vw, 48px); margin: 4px 0 18px; max-width: 22ch; }
h2 { font-size: clamp(22px, 4.6vw, 30px); margin: 44px 0 14px; }
h3 { font-size: 19px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 1.3em; }
li { margin: 0 0 8px; }
code { font-family: var(--tf-mono); font-size: 0.86em; background: var(--tf-bg-2); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
b, strong { font-weight: 700; }

.tf-wrap, .container { width: 100%; max-width: var(--tf-max); margin: 0 auto; padding: 0 16px; }
.tf-skip { position: absolute; left: -9999px; top: 0; }
.tf-skip:focus { left: 12px; top: 10px; z-index: 60; background: var(--tf-surface); padding: 8px 12px; border: 2px solid var(--tf-ink); }
.tf-muted, .muted { color: var(--tf-ink-2); }

/* ---- шапка ---------------------------------------------------------------- */
.tf-top { background: var(--tf-ink); color: #fff; }
.tf-top__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 10px; }
.tf-logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.tf-logo svg { width: 38px; height: 38px; flex: none; }
.tf-logo__name { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.tf-logo__sub { display: block; font: 500 11px/1.2 var(--tf-mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; margin-top: 3px; }
.tf-top__buy { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px 0 24px; background: var(--tf-tag); color: var(--tf-ink); font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; border-radius: 6px 10px 10px 6px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.tf-top__buy:hover { background: #ffe07a; }
.tf-menu { display: flex; gap: 2px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tf-menu::-webkit-scrollbar { display: none; }
.tf-menu a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 11px; color: #d9d2ee; font: 500 13px/1 var(--tf-mono); letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; border-radius: 8px; }
.tf-menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.tf-menu a[aria-current="page"] { color: var(--tf-ink); background: var(--tf-tag); }

/* ---- шапка страницы ------------------------------------------------------- */
.tf-crumbs { font-size: 14px; color: var(--tf-ink-2); padding-top: 16px; }
.tf-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.tf-crumbs li { margin: 0; }
.tf-crumbs li + li::before { content: "/"; margin: 0 6px 0 2px; color: #b5abcf; }
.tf-hero { padding-top: 14px; padding-bottom: 6px; }
.tf-eyebrow { display: inline-block; margin: 10px 0 0; font: 600 12px/1.4 var(--tf-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tf-violet); background: var(--tf-violet-soft); padding: 4px 10px; border-radius: 999px; }
.tf-lead { font-size: 18px; color: var(--tf-ink-2); max-width: var(--tf-text); }
.tf-meta { margin: 12px 0 10px; font: 500 13px/1.4 var(--tf-mono); color: var(--tf-ink-2); }

/* карточка оффера под H1 */
.tf-offer { display: grid; gap: 14px; align-items: center; background: var(--tf-surface); border: 1px solid var(--tf-line); border-radius: var(--tf-r-lg); padding: 14px; box-shadow: 0 12px 30px rgba(28, 21, 48, 0.07); max-width: 52rem; }
.tf-offer__tag { position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; background: var(--tf-tag); color: var(--tf-ink); border-radius: 10px; padding: 14px 18px 14px 30px; }
.tf-offer__tag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--tf-surface); box-shadow: inset 0 0 0 2px rgba(28, 21, 48, 0.25); }
.tf-offer__tag span { font: 600 14px/1 var(--tf-mono); }
.tf-offer__tag b { font: 600 36px/1 var(--tf-mono); letter-spacing: -0.03em; }
.tf-offer__title { margin: 0 0 4px; font-weight: 800; font-size: 18px; }
.tf-offer__terms { margin: 0; font-size: 15px; color: var(--tf-ink-2); }

/* ---- кнопки ----------------------------------------------------------------- */
.tf-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: var(--tf-r);
  font: 800 16px/1.2 var(--tf-sans); text-decoration: none; cursor: pointer;
  border: 2px solid var(--tf-ink); background: transparent; color: var(--tf-ink);
}
.tf-btn:hover, .btn:hover { background: var(--tf-bg-2); }
.tf-btn--main, .btn--primary { background: var(--tf-violet); border-color: var(--tf-violet); color: #fff; }
.tf-btn--main:hover, .btn--primary:hover { background: var(--tf-violet-dark); border-color: var(--tf-violet-dark); }
.btn--block { display: flex; width: 100%; }
.btn--ghost { background: var(--tf-surface); border-color: var(--tf-line); }
.btn--ghost:hover { border-color: var(--tf-ink); background: var(--tf-surface); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 56px; font-size: 17px; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.tf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }

/* ---- текст страницы ---------------------------------------------------------- */
.tf-page { padding-bottom: 36px; }
.tf-page > * { max-width: var(--tf-text); }
.tf-page > .tf-actions { max-width: none; }
.tf-page > section:first-child h2 { margin-top: 24px; }
.tf-steps { counter-reset: tf; list-style: none; padding: 0; }
.tf-steps > li { counter-increment: tf; position: relative; padding-left: 48px; margin-bottom: 16px; }
.tf-steps > li::before { content: counter(tf, decimal-leading-zero); position: absolute; left: 0; top: 1px; width: 34px; height: 30px; border-radius: 6px; background: var(--tf-ink); color: var(--tf-tag); font: 600 14px/30px var(--tf-mono); text-align: center; }
.tf-ticks { list-style: none; padding: 0; }
.tf-ticks > li { position: relative; padding-left: 28px; }
.tf-ticks > li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px; border-left: 3px solid var(--tf-mint); border-bottom: 3px solid var(--tf-mint); transform: rotate(-45deg); }
.tf-callout { background: var(--tf-tag-soft); border-left: 5px solid var(--tf-tag); border-radius: 0 var(--tf-r) var(--tf-r) 0; padding: 14px 16px; }
.tf-cards { display: grid; gap: 12px; margin: 14px 0 10px; padding: 0; list-style: none; }
.tf-cards > li { margin: 0; background: var(--tf-surface); border: 1px solid var(--tf-line); border-radius: var(--tf-r-lg); padding: 16px 18px; }
.tf-cards p { margin: 0; font-size: 16px; color: var(--tf-ink-2); }
.tf-pairs { display: grid; gap: 8px; margin: 14px 0; }
.tf-pairs > div { display: grid; gap: 2px; background: var(--tf-surface); border: 1px solid var(--tf-line); border-radius: var(--tf-r); padding: 12px 16px; }
.tf-pairs dt { font-weight: 800; }
.tf-pairs dd { margin: 0; color: var(--tf-ink-2); font-size: 16px; }

/* таблицы цен */
.tf-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 18px; border: 1px solid var(--tf-line); border-radius: var(--tf-r); background: var(--tf-surface); }
.tf-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 30rem; }
.tf-table caption { caption-side: bottom; text-align: left; font-size: 14px; color: var(--tf-ink-2); padding: 10px 14px; border-top: 1px solid var(--tf-line); }
.tf-table th, .tf-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--tf-line); vertical-align: top; }
.tf-table tbody tr:last-child td { border-bottom: 0; }
.tf-table th { font: 600 12px/1.3 var(--tf-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--tf-ink-2); background: var(--tf-bg-2); }
.tf-table td.tf-num { font-family: var(--tf-mono); white-space: nowrap; }
.tf-table tr.tf-best td { background: var(--tf-mint-soft); }
.tf-plus { color: var(--tf-mint); font-weight: 600; }

/* полосы «цена месяца» */
.tf-bars { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 10px; }
.tf-bars li { margin: 0; display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 10px; font-size: 15px; }
.tf-bars__track { position: relative; height: 34px; background: var(--tf-bg-2); border-radius: 8px; overflow: hidden; }
.tf-bars__fill { display: flex; align-items: center; justify-content: flex-end; height: 100%; padding-right: 10px; background: var(--tf-violet); color: #fff; font: 600 14px/1 var(--tf-mono); border-radius: 8px; white-space: nowrap; }
.tf-bars li:last-child .tf-bars__fill { background: var(--tf-mint); }

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

/* подвал */
.tf-foot { margin-top: 36px; background: var(--tf-ink); color: #d6cfe8; font-size: 15px; }
.tf-foot a { color: #fff; }
.tf-foot__grid { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 22px; }
.tf-foot__unoff { margin: 14px 0 8px; max-width: 26rem; color: #c3bad9; }
.tf-foot__col p { margin: 0 0 8px; font: 600 12px/1.3 var(--tf-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--tf-tag); }
.tf-foot__col ul { list-style: none; padding: 0; margin: 0; }
.tf-foot__col li { margin: 0 0 6px; }
.tf-foot__legal { border-top: 1px solid #352b52; padding-top: 14px; padding-bottom: 24px; color: #a99fc4; font-size: 14px; }

/* ---- /access: тарифы и форма (классы читают checkout.js и сервер) ------------- */
.hero-lead { font-size: 18px; color: var(--tf-ink-2); max-width: var(--tf-text); }
.access-plans { margin-top: 8px; }
.plans-grid { display: grid; gap: 16px; margin-top: 14px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--tf-surface); border: 1px solid var(--tf-line); border-radius: var(--tf-r-lg); padding: 22px 18px 18px; }
.plan--recommended { border: 2px solid var(--tf-violet); box-shadow: 0 14px 34px rgba(91, 46, 224, 0.16); }
.plan__badge { position: absolute; top: -13px; left: 16px; background: var(--tf-violet); color: #fff; font: 600 11px/1 var(--tf-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; }
.plan__badge--saving { background: var(--tf-tag); color: var(--tf-ink); }
.plan__name { font-weight: 800; font-size: 20px; }
.plan__old { min-height: 20px; color: var(--tf-ink-2); text-decoration: line-through; font: 500 14px/1.4 var(--tf-mono); }
html[data-reference-price="hide"] .plan__old { visibility: hidden; }
.plan__price { font: 600 34px/1.1 var(--tf-mono); letter-spacing: -0.03em; }
.plan__sub { display: inline-block; align-self: flex-start; background: var(--tf-mint-soft); color: var(--tf-mint); font-weight: 700; font-size: 14px; margin: 6px 0 12px; padding: 3px 8px; border-radius: 6px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: 15px; color: var(--tf-ink-2); }
.plan li { margin: 0 0 6px; padding-left: 20px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--tf-tag); }
.plan .btn { margin-top: auto; }
.plans-note { font-size: 15px; color: var(--tf-ink-2); margin-top: 16px; }
.pending-order { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; padding: 14px 16px; border: 2px solid var(--tf-violet); border-radius: var(--tf-r); background: var(--tf-violet-soft); }

#checkout-inline:empty { display: none; }
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 40; background: rgba(28, 21, 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: 520px; margin: 6vh auto 0; background: var(--tf-surface); border-radius: var(--tf-r-lg); padding: 22px 18px; border-top: 6px solid var(--tf-tag); }
.modal h3 { margin: 0 0 6px; font-size: 21px; }
.modal__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--tf-ink); }
.modal__desc { color: var(--tf-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(--tf-bg); border-radius: var(--tf-r); }
.modal__amount { text-align: right; }
.modal__amount b { display: block; font: 600 22px/1.2 var(--tf-mono); }
.modal__amount small { color: var(--tf-ink-2); font-size: 12px; }
.modal label { display: block; font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.modal input { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--tf-line); border-radius: var(--tf-r); font-size: 17px; font-family: inherit; color: var(--tf-ink); background: #fff; margin-bottom: 14px; }
.modal input:focus { border-color: var(--tf-violet); outline: none; }
.modal__error { color: var(--tf-danger); font-weight: 700; font-size: 15px; min-height: 1em; margin: 0 0 8px; }
.modal__note { font-size: 13px; color: var(--tf-ink-2); text-align: center; margin: 10px 0 0; }
.co-rails-cap { font-size: 14px; color: var(--tf-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(--tf-line); border-radius: var(--tf-r); background: #fff; color: var(--tf-ink); font: 700 15px/1.2 var(--tf-sans); cursor: pointer; }
.co-rail.is-on { border-color: var(--tf-violet); background: var(--tf-violet); color: #fff; }
.co-alt button { border: 0; background: none; padding: 0; color: var(--tf-violet-dark); text-decoration: underline; font: inherit; 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; box-shadow: 0 10px 28px rgba(28, 21, 48, 0.1); }
html[data-form="inline"] .modal__close { display: none; }

/* ---- /success ------------------------------------------------------------- */
.tf-order { max-width: 680px; margin-top: 20px; padding: 18px; border: 2px solid var(--tf-line); border-radius: var(--tf-r-lg); background: var(--tf-surface); }
.tf-order select, .tf-order input { font: inherit; }
.tf-tg { margin: 0 0 16px; padding: 16px; border: 2px solid var(--tf-violet); border-radius: var(--tf-r); background: var(--tf-violet-soft); }

/* ---- шире телефона ---------------------------------------------------------- */
@media (min-width: 640px) {
  .tf-offer { grid-template-columns: auto 1fr auto; padding: 14px 16px; }
  .tf-cards { grid-template-columns: repeat(2, 1fr); }
  .tf-cards--3 { grid-template-columns: 1fr; }
  .tf-pairs { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 26px 28px; }
}
@media (min-width: 900px) {
  body { font-size: 18px; }
  .tf-wrap, .container { padding: 0 24px; }
  .plans-grid { grid-template-columns: repeat(4, 1fr); }
  .tf-foot__grid { grid-template-columns: 1.5fr repeat(4, 1fr); }
  .tf-menu { overflow: visible; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
