/* incy.cheap «Связка» — светло-лавандовый фон, чёрные контуры и жёсткие тени, фиолетовые кнопки, лаймовые ценники.
   Только системные шрифты, без внешних ресурсов. Сначала телефон, потом широкие экраны. */
:root {
  color-scheme: light;
  --bg: #f4f2ff;
  --bg-2: #ebe7ff;
  --paper: #ffffff;
  --ink: #15131f;
  --ink-2: #4b4860;
  --ink-3: #6c6886;
  --soft: #d9d3f5;
  --violet: #5a2fd6;
  --violet-2: #4421b0;
  --violet-soft: #e7e0ff;
  --lime: #d6f448;
  --lime-2: #c3e22c;
  --lime-soft: #f2fbc7;
  --ok: #15704f;
  --bad: #b3261e;
  --r: 14px;
  --r-s: 10px;
  --edge: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-s: 3px 3px 0 var(--ink);
  --max: 72rem;
  --read: 46rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.62 var(--font); overflow-wrap: break-word; font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; }
a { color: var(--violet-2); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: rgba(90, 47, 214, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); font-weight: 900; letter-spacing: -0.025em; }
h1 { font-size: clamp(30px, 8vw, 52px); line-height: 1.05; margin: 10px 0 16px; }
h2 { font-size: clamp(22px, 5.6vw, 32px); line-height: 1.15; margin: 44px 0 14px; }
h3 { font-size: 19px; line-height: 1.25; margin: 0 0 6px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 1.3em; }
li { margin: 0 0 7px; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--lime-soft); border: 1px solid var(--ink); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.muted { color: var(--ink-2); }
.hl { background: linear-gradient(transparent 58%, var(--lime) 58%); padding: 0 2px; }

.frame, .container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 10px; z-index: 60; background: var(--paper); padding: 8px 12px; border: var(--edge); }

/* ---- шапка ---------------------------------------------------------------- */
.disclaimer { margin: 0; background: var(--ink); color: #eae6ff; font-size: 13px; line-height: 1.45; }
.disclaimer .frame { display: block; padding-top: 7px; padding-bottom: 7px; }
.top { background: var(--paper); border-bottom: var(--edge); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.mark { width: 38px; height: 38px; flex: none; }
.logo__word { font-size: 23px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.logo__word small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.top__buy { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: var(--edge); border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-s); }
.top__buy:hover { background: var(--lime-2); }
.top__buy:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.menu { display: flex; gap: 6px; overflow-x: auto; padding-top: 2px; padding-bottom: 10px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.menu a { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border: 2px solid transparent; border-radius: var(--r-s); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.menu a:hover { border-color: var(--ink); }
.menu a[aria-current="page"] { background: var(--violet); border-color: var(--ink); color: #fff; }

/* ---- общие блоки ---------------------------------------------------------- */
.crumbs { font-size: 14px; color: var(--ink-2); padding-top: 16px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin: 0 6px 0 2px; color: var(--ink-3); }
.hero { padding-top: 14px; padding-bottom: 6px; }
.hero--home { padding-top: 28px; }
.hero__lead, .hero-lead { font-size: 18px; color: var(--ink-2); max-width: var(--read); }
.tag { display: inline-block; margin: 6px 0 0; padding: 3px 10px; border: var(--edge); border-radius: 999px; background: var(--lime); font-size: 13px; font-weight: 800; letter-spacing: 0.02em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.hero__grid { display: grid; gap: 22px; align-items: center; }
.sticker { justify-self: start; display: grid; gap: 2px; padding: 18px 22px; border: var(--edge); border-radius: 50% 46% 52% 44% / 46% 52% 44% 50%; background: var(--lime); box-shadow: var(--shadow); transform: rotate(-4deg); text-align: center; min-width: 210px; }
.sticker span { font-size: 14px; font-weight: 700; }
.sticker b { font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
.text { padding-bottom: 36px; }
.text > * { max-width: var(--read); }
.text > section:first-child h2:first-child { margin-top: 10px; }
.tldr { position: relative; margin: 18px 0 8px; padding: 22px 18px 6px; background: var(--paper); border: var(--edge); border-radius: var(--r); box-shadow: var(--shadow); }
.tldr__label { position: absolute; top: -13px; left: 14px; margin: 0; padding: 1px 10px; border: var(--edge); border-radius: 999px; background: var(--violet); color: #fff; font-size: 13px; font-weight: 800; }
.note-box { padding: 14px 16px; border: 2px dashed var(--ink); border-radius: var(--r); background: var(--lime-soft); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 14px; min-height: 32px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border: var(--edge); border-radius: 9px; background: var(--lime); color: var(--ink); font: 900 16px/28px var(--font); text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chips a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; border: var(--edge); border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.chips a:hover { background: var(--lime); }
.tiles { display: grid; gap: 14px; margin: 16px 0 10px; padding: 0; list-style: none; }
.tiles > li { margin: 0; background: var(--paper); border: var(--edge); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-s); }
.tiles p { margin: 0 0 8px; font-size: 15.5px; color: var(--ink-2); }
.facts { display: grid; gap: 10px; margin: 16px 0; }
.facts > div { background: var(--paper); border: var(--edge); border-radius: var(--r-s); padding: 12px 16px; }
.facts dt { font-weight: 900; font-size: 17px; }
.facts dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15.5px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 18px; border: var(--edge); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow-s); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
caption { caption-side: bottom; text-align: left; font-size: 14px; color: var(--ink-2); padding: 8px 12px 10px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--soft); vertical-align: top; }
th { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg-2); color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }

/* кнопки сайта (те же классы читают checkout.js и сервер) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: var(--edge); border-radius: var(--r-s);
  font: 800 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-s);
}
.btn:hover { background: var(--bg-2); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-2); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-2); }
.btn--ghost { background: var(--paper); color: var(--ink); }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* доска цен — встроенный блок покупки */
.board { margin: 28px 0; padding: 18px 16px 16px; background: var(--violet-soft); border: var(--edge); border-radius: var(--r); box-shadow: var(--shadow); }
.board__title { margin: 0 0 2px; font-size: 21px; font-weight: 900; letter-spacing: -0.02em; }
.board__note { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.board__grid { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.board__grid li { margin: 0; }
.price-chip { display: grid; gap: 1px; padding: 10px 12px; border: var(--edge); border-radius: var(--r-s); background: var(--paper); color: var(--ink); text-decoration: none; }
.price-chip:hover { background: var(--lime); }
.price-chip__term { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.price-chip__sum { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.price-chip__per { font-size: 13px; font-weight: 800; color: var(--ok); }
.board__fine { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); text-align: center; }

/* вопросы и ответы */
.faq__item { margin: 0 0 10px; background: var(--paper); border: var(--edge); border-radius: var(--r-s); }
.faq__item summary { cursor: pointer; list-style: none; padding: 13px 44px 13px 16px; position: relative; font-weight: 800; font-size: 16.5px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 12px; top: 9px; width: 26px; height: 26px; border: var(--edge); border-radius: 7px; background: var(--lime); font: 900 18px/22px var(--font); text-align: center; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 0; padding: 0 16px 14px; color: var(--ink-2); }

.more { margin-top: 36px; padding-top: 4px; }
.more h2 { font-size: 20px; margin: 0 0 10px; }

/* подвал */
.base { margin-top: 40px; background: var(--ink); color: #d8d3ef; font-size: 15px; }
.base a { color: #fff; text-decoration-color: rgba(214, 244, 72, 0.6); }
.base a:hover { color: var(--lime); }
.base__grid { display: grid; gap: 22px; padding-top: 30px; padding-bottom: 20px; }
.base .logo { color: #fff; }
.base__note { margin: 12px 0 0; max-width: 28rem; color: #bdb7dc; }
.base__col p { margin: 0 0 8px; font-weight: 800; color: var(--lime); }
.base__col ul { list-style: none; padding: 0; margin: 0; }
.base__col li { margin: 0 0 6px; }
.base__fine { margin: 0; border-top: 1px solid #36324a; padding-top: 14px; padding-bottom: 24px; color: #a8a2c6; font-size: 14px; }

/* /podderzhka */
.contacts { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 10px; }
.contacts li { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 12px 16px; border: var(--edge); border-radius: var(--r-s); background: var(--paper); }
.contacts span { font-weight: 800; min-width: 5.5em; }

/* ---- /access: тарифы и форма (классы читают checkout.js и сервер) --------- */
.access-plans { padding-top: 8px; }
.plans-grid { display: grid; gap: 18px; margin-top: 10px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--paper); border: var(--edge); border-radius: var(--r); padding: 22px 18px 18px; box-shadow: var(--shadow); }
.plan--recommended { background: var(--lime-soft); }
.plan__badge { position: absolute; top: -14px; left: 14px; padding: 2px 10px; border: var(--edge); border-radius: 999px; background: var(--violet); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.plan__badge--saving { background: var(--lime); color: var(--ink); }
.plan__name { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.plan__old { min-height: 20px; color: var(--ink-3); text-decoration: line-through; font-size: 15px; }
html[data-reference-price="hide"] .plan__old { visibility: hidden; }
.plan__price { font-size: 36px; font-weight: 900; line-height: 1.05; letter-spacing: -0.035em; }
.plan__sub { display: inline-block; align-self: flex-start; margin: 6px 0 12px; padding: 1px 8px; border-radius: 6px; background: var(--lime); font-weight: 800; font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: 15px; color: var(--ink-2); }
.plan li { margin: 0 0 6px; padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 11px; height: 11px; border: 2px solid var(--ink); border-radius: 3px; background: var(--lime); }
.plan .btn { margin-top: auto; }
.plans-note { font-size: 15px; color: var(--ink-2); margin-top: 20px; }
.pending-order { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; padding: 14px 16px; border: var(--edge); border-radius: var(--r); background: var(--lime); box-shadow: var(--shadow-s); }

#checkout-inline:empty { display: none; }
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 40; background: rgba(21, 19, 31, 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(--paper); border: var(--edge); border-radius: var(--r); padding: 22px 18px; box-shadow: var(--shadow); }
.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(--ink); }
.modal__desc { color: var(--ink-2); font-size: 15.5px; }
.modal__summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; margin: 0 0 14px; background: var(--violet-soft); border: var(--edge); border-radius: var(--r-s); }
.modal__amount { text-align: right; }
.modal__amount b { display: block; font-size: 22px; font-weight: 900; }
.modal__amount small { color: var(--ink-2); font-size: 12px; }
.modal label { display: block; font-weight: 800; font-size: 15px; margin: 0 0 6px; }
.modal input { width: 100%; min-height: 50px; padding: 12px 14px; border: var(--edge); border-radius: var(--r-s); font-size: 17px; font-family: inherit; color: var(--ink); background: #fff; margin-bottom: 14px; }
.modal input:focus { outline: 3px solid var(--lime); outline-offset: 1px; }
.modal__error { color: var(--bad); font-weight: 800; font-size: 15px; min-height: 1em; margin: 0 0 8px; }
.modal__note { font-size: 13px; color: var(--ink-2); text-align: center; margin: 10px 0 0; }
.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: var(--edge); border-radius: var(--r-s); background: #fff; color: var(--ink); font: 700 15px/1.2 var(--font); cursor: pointer; }
.co-rail.is-on { background: var(--ink); color: #fff; }
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 ------------------------------------------------------------- */
.order-box { max-width: 680px; margin-top: 20px; padding: 18px; border: var(--edge); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.order-box select, .order-box input { font: inherit; }
.tg-box { margin: 0 0 16px; padding: 16px; border: var(--edge); border-radius: var(--r-s); background: var(--violet-soft); }

/* ---- шире телефона ---------------------------------------------------------- */
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .board { padding: 22px 24px 20px; }
  .board__grid { grid-template-columns: repeat(4, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 26px 28px; }
}
@media (min-width: 900px) {
  body { font-size: 17px; }
  .frame, .container { padding: 0 24px; }
  .hero__grid { grid-template-columns: 1fr auto; }
  .sticker { justify-self: end; margin-right: 16px; }
  .tiles--4 { grid-template-columns: repeat(4, 1fr); }
  .tiles--3 { grid-template-columns: repeat(3, 1fr); }
  .plans-grid { grid-template-columns: repeat(4, 1fr); }
  .base__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; }
  .menu { overflow: visible; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
