/* GLPCD — стили сайта. Палитра: фиолетовая — светящийся сиреневый на глубоком баклажановом + купон с перфорацией. */

:root {
  --ink: #1d1136;
  --ink-2: #2f2152;
  --paper: #f3f0fa;
  --surface: #ffffff;
  --muted: #5f5878;
  --line: #ddd5ec;
  --signal: #a98bff;
  --signal-2: #9573ff;
  --tint: #eae0ff;
  --tint-2: #f5f0ff;
  --on-ink: #cbc2e6;
  --ok: #157f55;
  --ok-bg: #e7f5ee;
  --err: #c2383d;
  --err-bg: #fdecec;
  --sub: #5a3fd8;
  --trv: #a23bc8;
  --prm: #1d1136;
  --gold: #d9c6ff;

  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-display: "Unbounded", "Onest", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 104px);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sub); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Типографика ---------- */
h1, h2, .display {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(1.85rem, 1.1rem + 3vw, 3.15rem); line-height: 1.1; }
h2 { font-size: clamp(1.45rem, 1.05rem + 1.6vw, 2.15rem); line-height: 1.15; }
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 480px) { h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; } }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 0; font-weight: 600; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.sec { padding-block: var(--section); }
.sec--white { background: var(--surface); }
.sec--ink { background: var(--ink); color: #fff; }
.sec--ink .lead { color: var(--on-ink); }
.sec__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 780px; }
.sec__foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px;
  border-radius: var(--r-md); border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--signal-2); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.sec--ink .btn--ghost { border-color: #fff; color: #fff; }
.sec--ink .btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .hdr { background: rgba(255,255,255,.86); backdrop-filter: blur(10px); } }
.hdr__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo__word { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.logo__tag { font-size: .78rem; color: var(--muted); line-height: 1.2; max-width: 11em; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); font-weight: 500; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { background: var(--paper); box-shadow: inset 0 -2px 0 var(--ink); }
.nav a { white-space: nowrap; }
@media (max-width: 1140px) { .logo__tag { display: none; } }
.hdr__code {
  font-family: var(--f-display); font-weight: 700; font-size: .85rem; letter-spacing: .03em;
  background: var(--signal); padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none; white-space: nowrap;
}
.burger { display: none; background: none; border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 7px 12px; font-weight: 600; }

@media (max-width: 960px) {
  .logo__tag { display: none; }
  .burger { display: inline-block; order: 3; }
  .hdr__code { order: 2; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--paper); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; background: none; font-weight: 700; }
}
@media (max-width: 480px) {
  .hdr__in { gap: 10px; }
  .logo { gap: 8px; }
  .hdr__code { padding: 9px 10px; }
  .burger { padding: 7px 10px; }
}
@media (max-width: 359px) {
  .logo__word { display: none; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
}

/* ---------- Хлебные крошки ---------- */
.crumbs { padding-top: 22px; font-size: .9rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- Купон ---------- */
.coupon {
  --bg: var(--signal); --fg: var(--ink); --perf: rgba(29,17,54,.35); --hole: var(--paper);
  position: relative;
  display: grid; grid-template-columns: auto 1fr;
  background: var(--bg); color: var(--fg);
  border-radius: 14px;
}
.coupon--premium { --bg: var(--ink); --fg: #fff; --perf: rgba(255,255,255,.3); }
.sec--white .coupon { --hole: var(--surface); }
.sec--ink .coupon { --hole: var(--ink); }
.sec--ink .coupon--premium { --bg: var(--ink-2); }
.coupon__stub {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 18px 18px 18px 20px;
  border-right: 2px dashed var(--perf);
}
.coupon__stub::before, .coupon__stub::after {
  content: ""; position: absolute; right: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--hole);
}
.coupon__stub::before { top: -10px; }
.coupon__stub::after { bottom: -10px; }
.coupon__amount { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); line-height: 1; white-space: nowrap; }
.coupon--premium .coupon__amount { color: var(--signal); }
.coupon__unit { font-size: .8rem; margin-top: 6px; opacity: .8; }
.coupon__body { display: grid; gap: 6px; padding: 16px 18px 16px 22px; min-width: 0; container-type: inline-size; }
.coupon__scope { font-size: .92rem; font-weight: 500; }
.coupon__row { display: grid; justify-items: start; gap: 10px; }
@container (min-width: 330px) {
  .coupon__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
}
.coupon__code {
  font-family: var(--f-display); font-weight: 700; letter-spacing: .05em;
  font-size: clamp(1.3rem, 1rem + 1.3vw, 1.85rem); line-height: 1.1;
  user-select: all; -webkit-user-select: all;
}
.coupon__copy {
  border: 0; border-radius: var(--r-sm); padding: 10px 14px; font-weight: 600; font-size: .92rem;
  background: var(--ink); color: #fff; min-height: 42px;
}
.coupon--premium .coupon__copy { background: var(--signal); color: var(--ink); }
.coupon__copy.is-done { background: var(--ok); color: #fff; }
.coupons { display: grid; gap: 16px; }

/* ---------- Первый экран ---------- */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(48px, 7vw, 96px); }
.hero__grid {
  display: grid; column-gap: clamp(28px, 5vw, 72px); row-gap: 24px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-areas: "title coupons" "text coupons";
  align-items: start;
}
.hero__title { grid-area: title; }
.hero__text { grid-area: text; display: grid; gap: 22px; align-content: start; }
.hero__coupons { grid-area: coupons; display: grid; gap: 16px; align-self: center; }
.hero__hint { font-size: .92rem; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "coupons" "text"; }
}

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .38em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.5L12 5.3' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.ticks--row { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Цифры ---------- */
.facts { background: var(--ink); color: #fff; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 20px; display: grid; gap: 4px; border-left: 1px solid rgba(255,255,255,.14); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { font-family: var(--f-display); font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); color: var(--signal); font-weight: 700; }
.fact span { font-size: .92rem; color: var(--on-ink); }
@media (max-width: 760px) {
  .facts__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fact { padding: 18px 14px; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact:nth-child(odd) { padding-left: 0; }
}

/* ---------- Колонки с текстом ---------- */
.cols { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 3px solid var(--ink); }
.col p { color: var(--muted); }
@media (max-width: 860px) { .cols, .cols--2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Таблицы ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .95rem; }
.tbl caption { text-align: left; padding: 14px 16px; color: var(--muted); font-size: .9rem; }
.tbl th, .tbl td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.tbl thead th { border-top: 0; font-weight: 600; background: var(--paper); }
.tbl tbody th { font-weight: 600; width: 18%; }
.tbl--wide { min-width: 960px; }
.tbl--narrow { min-width: 560px; }
.tbl--wide tbody th { width: 16%; }
.tbl--sticky tbody th, .tbl--sticky thead th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.tbl--sticky thead th:first-child { background: var(--paper); }
.tbl s { color: var(--muted); }
.tbl code { font-family: var(--f-display); font-weight: 700; font-size: .85em; letter-spacing: .03em; background: var(--tint); padding: 2px 6px; border-radius: 4px; }
.price-new { font-weight: 700; }
.tbl .is-ours-row th, .tbl .is-ours-row td { background: var(--tint-2); }
.tbl .is-ours-row th { box-shadow: inset 4px 0 0 var(--signal); }
@media (max-width: 760px) {
  .table-scroll--stack { overflow: visible; border: 0; background: none; }
  .tbl--stack { min-width: 0 !important; }
  .tbl--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl--stack, .tbl--stack tbody, .tbl--stack tr, .tbl--stack th, .tbl--stack td { display: block; width: auto; }
  .tbl--stack tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; }
  .tbl--stack tbody th { position: static; border-top: 0; background: var(--paper); font-size: 1rem; width: auto; }
  .tbl--stack td { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 10px 16px; }
  .tbl--stack td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; }
  .tbl--stack caption:not(.sr) { display: block; width: auto; padding: 0 0 10px; }
  .tbl--stack .cv { min-width: 0; }
  .tbl--stack .is-ours-row { border: 2px solid var(--ink); }
  .tbl--stack .is-ours-row th { background: var(--signal); box-shadow: none; }
}
.tag-save { display: block; font-size: .82rem; color: var(--ok); font-weight: 600; }

/* ---------- Сценарии ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { font-size: .88rem; padding: 6px 10px; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
a.chip:hover { border-color: var(--ink); }
.sec--white .chip { background: var(--paper); }

/* ---------- Тарифы ---------- */
.tariffs { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 1000px) { .tariffs { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
.tariff {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px;
}
.tariff--pick { border: 2px solid var(--ink); }
.tariff__badge {
  position: absolute; top: -13px; left: 22px;
  background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 6px;
}
.tariff__head { display: grid; gap: 16px; }
.tariff__head > div { display: grid; gap: 6px; }
@media (max-width: 1000px) {
  .tariff__head { grid-template-columns: 116px minmax(0, 1fr); align-items: center; }
  .tariff__head .plastic { padding: 8px 10px; font-size: .5rem; border-radius: 8px; }
  .tariff__head .plastic-img { border-radius: 8px; }
  .tariff__head .plastic__chip { width: 20px; height: 15px; border-radius: 3px; }
  .tariff__head .plastic__num { font-size: .55rem; }
  .tariff__head .plastic__kind { display: none; }
  .tariff__head .plastic__nfc { width: 12px; height: 12px; }
}
@media (max-width: 359px) {
  .tariff__head, .rec__card { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
}
.tariff__name { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; }
.tariff__for { color: var(--muted); }
.tariff__price { display: grid; gap: 2px; }
.tariff__old { color: var(--muted); font-size: .95rem; }
.tariff__new { font-family: var(--f-display); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.tariff__with { font-size: .9rem; }
.tariff__with b { font-family: var(--f-display); letter-spacing: .03em; background: var(--tint); padding: 1px 6px; border-radius: 4px; font-size: .82rem; }
.tariff__incl { font-size: .9rem; color: var(--ok); font-weight: 600; }
.specs { margin: 0; display: grid; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.specs s { color: var(--muted); font-weight: 400; margin-right: 4px; }
.tariff .ticks { font-size: .95rem; }
.tariff__note { font-size: .92rem; color: var(--muted); margin-top: auto; padding-top: 4px; }
.tariff__auto { font-size: .82rem; color: var(--muted); text-align: center; margin-top: -6px; }

/* Бонус на баланс */
.bonus { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 10px 14px; border-radius: var(--r-md); background: var(--tint); color: var(--ink); font-size: .9rem; line-height: 1.35; }
.bonus__amt { font-family: var(--f-display); font-size: 1.2rem; font-weight: 700; white-space: nowrap; color: var(--sub); }
.sec--ink .bonus { background: var(--ink-2); color: #fff; }
.sec--ink .bonus__amt { color: var(--signal); }
.tariff__bonus { margin: -6px 0 0; font-size: .9rem; font-weight: 600; color: var(--sub); }

/* Изображение карты */
.plastic-img { display: block; width: 100%; height: auto; aspect-ratio: 1.586; object-fit: cover; object-position: center; border-radius: 14px; }
.plastic {
  position: relative; aspect-ratio: 1.586; border-radius: 14px; overflow: hidden; color: #fff;
  padding: 16px 18px; display: grid; grid-template-rows: auto 1fr auto; font-size: .8rem;
}
.plastic--subscriptions { background: var(--sub); }
.plastic--travel { background: var(--trv); }
.plastic--premium { background: var(--prm); color: var(--gold); }
.plastic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 2px, transparent 2px 14px);
}
.plastic__top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; letter-spacing: .04em; }
.plastic__mid { display: flex; align-items: center; gap: 12px; }
.plastic__chip { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #f2d98c, #c9a34e); }
.plastic--premium .plastic__chip { background: linear-gradient(135deg, #f5e3b0, #b08a3e); }
.plastic__nfc { width: 22px; height: 22px; opacity: .9; }
.plastic__bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.plastic__num { font-family: var(--f-display); font-size: .95rem; letter-spacing: .08em; }
.plastic__kind { font-weight: 600; font-size: .78rem; opacity: .9; text-align: right; }

.inc { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.inc div { display: grid; gap: 4px; }
.inc p { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .inc { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Промо-блок ---------- */
.promo { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 860px) { .promo { grid-template-columns: minmax(0, 1fr); } }
.promo__text { display: grid; gap: 18px; }

/* ---------- Шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: s; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps--list { grid-template-columns: minmax(0, 1fr); max-width: 760px; gap: 0; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; }
.steps li::before {
  content: counter(s);
  font-family: var(--f-display); font-weight: 700; font-size: 1.1rem;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--signal); color: var(--ink);
}
.sec--ink .steps li::before { background: var(--signal); }
.steps p { color: var(--muted); }
.sec--ink .steps p { color: var(--on-ink); }
.sec--ink .steps--list li { border-top-color: rgba(255,255,255,.14); }
.steps--list li { grid-template-columns: 44px 1fr; column-gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps--list li::before { grid-row: span 3; }
.steps--list li:first-child { border-top: 0; }
@media (max-width: 900px) { .steps, .steps--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .steps, .steps--3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Каталог ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm);
  padding: 8px 12px; font-size: .92rem; text-decoration: none; display: inline-flex; gap: 8px; align-items: baseline;
}
.cat span { color: var(--muted); font-size: .82rem; }
.cat[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat[aria-pressed="true"] span { color: var(--on-ink); }
.guides { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr)); }
.guide {
  display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); text-decoration: none;
}
.guide:hover { border-color: var(--ink); }
.guide b { font-weight: 600; }
.guide span { font-size: .85rem; color: var(--muted); }
.sec--white .guide { background: var(--paper); }

.search { display: flex; gap: 10px; margin-bottom: 16px; }
.search input {
  flex: 1; min-height: 50px; padding: 12px 16px; font: inherit; border: 2px solid var(--line); border-radius: var(--r-md); background: #fff;
}
.search input:focus { border-color: var(--ink); outline: none; }
.catalog { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 45%), 1fr)); gap: 8px; }
.catalog li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.catalog li > * { display: grid; padding: 10px 12px; text-decoration: none; }
.catalog b { font-weight: 600; font-size: .95rem; }
.catalog small { color: var(--muted); font-size: .8rem; }
.catalog a b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.catalog__count { color: var(--muted); font-size: .92rem; }
@media (max-width: 600px) {
  .cats { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 auto; }
  .catalog li > * { padding: 9px 10px; }
  .catalog b { font-size: .9rem; overflow-wrap: anywhere; }
  .catalog small { font-size: .75rem; }
}
.catalog__empty { padding: 20px; background: var(--surface); border-radius: var(--r-md); margin-top: 16px; }

/* ---------- Отзывы ---------- */
.ratings { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rating {
  display: grid; gap: 4px; padding: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); text-decoration: none;
}
.rating:hover { border-color: var(--ink); }
.rating b { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; }
.rating b small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.rating__stars { color: #8f6bff; letter-spacing: 2px; }
.rating span:last-child { color: var(--muted); font-size: .92rem; }
.widget { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; height: 720px; max-height: 80vh; }
.widget iframe { width: 100%; height: 100%; border: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center/14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/2px 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 22px; color: var(--muted); max-width: 72ch; }
.faq__a ul { margin: 10px 0 0; padding-left: 20px; }
.faq__a li + li { margin-top: 4px; }
.faq-group + .faq-group { margin-top: clamp(40px, 5vw, 64px); }
.faq-group h2 { margin-bottom: 8px; }
.faq-group .lead { margin-bottom: 20px; }

/* ---------- Внутренняя навигация ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.toc a { font-size: .92rem; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; background: var(--surface); }
.toc a:hover { border-color: var(--ink); }

/* ---------- Заголовок внутренней страницы ---------- */
.phead { padding-block: 20px clamp(40px, 6vw, 72px); }
.phead__grid { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; margin-top: 18px; }
.phead__text { display: grid; gap: 18px; }
@media (max-width: 860px) { .phead__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Макет формы (страница промокода) ---------- */
.mock-pair { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .mock-pair { grid-template-columns: minmax(0, 1fr); } }
.state { display: grid; gap: 14px; align-content: start; }
.state__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.state__label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.state--ok .state__label { color: var(--ok); }
.state--err .state__label { color: var(--err); }
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: grid; gap: 10px;
  font-size: .95rem; box-shadow: 0 1px 0 var(--line);
}
.mock__title { font-weight: 600; }
.mock__field { border: 2px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-family: var(--f-display); font-size: .9rem; letter-spacing: .03em; }
.mock__field.is-ok { border-color: var(--ok); background: var(--ok-bg); }
.mock__field.is-err { border-color: var(--err); background: var(--err-bg); }
.mock__msg { font-size: .85rem; color: var(--err); margin-top: -4px; }
.mock__row { display: flex; justify-content: space-between; gap: 10px; }
.mock__row--disc { color: var(--ok); font-weight: 600; }
.mock__row--total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; }
.mock-cap { font-size: .88rem; color: var(--muted); }

/* ---------- Сервисная страница ---------- */
.rec {
  display: grid; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 2px solid var(--ink);
}
.rec__card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; }
.rec__card .plastic { padding: 8px 10px; font-size: .55rem; border-radius: 8px; }
.rec__card .plastic-img { border-radius: 8px; }
.rec__card .plastic__chip { width: 22px; height: 16px; border-radius: 3px; }
.rec__card .plastic__num { font-size: .6rem; }
.rec__card .plastic__nfc { width: 12px; height: 12px; }
.rec__card .plastic__kind { display: none; }
.rec__price b { font-family: var(--f-display); font-size: 1.35rem; }
.rec__price s { color: var(--muted); margin-left: 6px; }
.note {
  padding: 18px 20px; border-left: 4px solid var(--signal); background: var(--tint-2); border-radius: 0 var(--r-md) var(--r-md) 0;
  display: grid; gap: 6px; max-width: 760px;
}
.note p { margin: 0; }
.note--kb { margin: 0 0 28px; max-width: 820px; }
.steps--list + .note--kb { margin: 28px 0 0; }
.note a { color: inherit; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 760px; border-top: 1px solid var(--line); }
.checklist li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 2px; background: var(--ink); }
.checklist b { font-weight: 600; }

/* ---------- Финальный призыв ---------- */
.final { display: grid; gap: 18px; justify-items: start; max-width: 760px; }

/* ---------- Текстовые страницы ---------- */
.prose { max-width: 760px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.prose h2 { font-size: 1.35rem; margin-top: 24px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose p, .prose li { color: #2e2447; }

/* ---------- Подвал ---------- */
.ftr { background: #e8e2f4; padding-block: 48px 110px; font-size: .92rem; }
.ftr__top { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; padding-bottom: 28px; border-bottom: 1px solid #d6cce9; }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ftr__nav a { text-decoration: none; font-weight: 500; }
.ftr__nav a:hover { text-decoration: underline; }
.ftr__legal { display: grid; gap: 10px; padding-top: 24px; color: var(--muted); max-width: 900px; }
.ftr__ad { color: var(--ink); }
@media (min-width: 900px) { .ftr { padding-bottom: 48px; } }

/* ---------- Нижняя плашка на мобильных ---------- */
.dock {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 8px 8px 8px 14px;
  box-shadow: 0 10px 30px rgba(29,17,54,.28);
  transform: translateY(140%); transition: transform .25s ease;
}
.dock.is-on { transform: none; }
.dock__info { display: grid; line-height: 1.15; min-width: 0; flex: 1; }
.dock__info small { font-size: .75rem; color: var(--on-ink); }
.dock__code { background: none; border: 0; padding: 0; text-align: left; font-family: var(--f-display); font-weight: 700; color: var(--signal); font-size: 1rem; letter-spacing: .04em; }
.dock .btn { min-height: 44px; padding: 10px 14px; font-size: .92rem; }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- Уведомление ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 60; transform: translate(-50%, 20px);
  width: min(92vw, 460px); background: var(--ok); color: #fff; padding: 14px 18px; border-radius: var(--r-md);
  font-size: .95rem; box-shadow: 0 10px 30px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

.cookie {
  position: fixed; left: 10px; bottom: 10px; z-index: 70; max-width: 420px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px;
  display: flex; gap: 12px; align-items: center; font-size: .88rem; box-shadow: 0 10px 30px rgba(29,17,54,.16);
}
.cookie button { border: 0; background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 8px 14px; font-weight: 600; }

.nf { text-align: left; padding-block: 12vh; display: grid; gap: 18px; max-width: 640px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .hdr, .dock, .cookie, .toast, .ftr { display: none; }
}
