:root {
  --bg: #f4ede3;
  --paper: #fbf7f1;
  --panel: #ebe1d3;
  --ink: #16130f;
  --ink-2: #2a2520;
  --body: #453e36;
  --muted: #7d7265;
  --faint: #a89c8c;
  --red: #c81e26;
  --red-2: #a8161d;
  --red-soft: rgba(200, 30, 38, 0.1);
  --line: rgba(22, 19, 15, 0.1);
  --line-2: rgba(22, 19, 15, 0.18);
  --night: #0e0c0a;
  --on-dark: #f4ede3;
  --on-dark-2: rgba(244, 237, 227, 0.66);
  --on-dark-3: rgba(244, 237, 227, 0.4);
  --line-dark: rgba(244, 237, 227, 0.13);
  --ok: #2f8a57;
  --f-brand: 'Unbounded', 'Geologica', system-ui, sans-serif;
  --f-head: 'Geologica', system-ui, sans-serif;
  --f-body: 'Golos Text', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --maxw: 1180px;
  --gut: 24px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 80px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-red { background: var(--red); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 26px -12px rgba(200,30,38,.8); }
.btn-red:hover { background: var(--red-2); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-ink:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
@media (hover: hover) { .btn-ghost:hover { background: var(--ink); color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--ink); } }
.btn-sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.link { color: var(--red); font-weight: 600; text-underline-offset: 3px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(244,237,227,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.wordmark { font: 800 22px/1 var(--f-brand); letter-spacing: -.01em; color: var(--ink); }
.wordmark b { color: var(--red); font-weight: 800; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.navlink { font: 500 15px var(--f-body); color: var(--ink-2); padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.navlink:hover { background: var(--panel); }

/* ---------- hero + tariffs ---------- */
.hero { padding-block: 48px 40px; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font: 500 12px var(--f-mono); color: var(--ink-2); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47,138,87,.15); animation: pulse 2s ease-in-out infinite; }
.checked { color: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(47,138,87,0); } }
.hero h1 { font-weight: 900; font-size: clamp(40px, 6vw, 80px); line-height: .98; letter-spacing: -.04em; margin: 18px 0 18px; }
.swoosh { color: var(--red); white-space: nowrap; }
.hero-lead { font-size: 19px; max-width: 46ch; }
.perks { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; color: var(--ink-2); }
.perks li { position: relative; padding-left: 22px; }
.perks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.stats { display: flex; gap: 32px; margin: 28px 0 0; padding: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; gap: 6px; max-width: 16ch; }
.stats li + li { padding-left: 32px; border-left: 1px solid var(--line-2); }
.stats b { font: 800 30px/1 var(--f-brand); letter-spacing: -.04em; color: var(--ink); white-space: nowrap; }
.stats i { display: inline-block; font-style: normal; white-space: nowrap; }
.stats span { font: 500 12px/1.4 var(--f-mono); color: var(--muted); }

.seg { position: relative; display: inline-flex; gap: 4px; margin-top: 36px; padding: 4px; border-radius: 14px; background: var(--panel); }
.seg button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; font: 600 14px var(--f-body); color: var(--ink-2); padding: 10px 16px; border-radius: 10px; white-space: nowrap; transition: color .25s; }
.seg button small { font: 600 11px var(--f-mono); color: var(--red); margin-left: 4px; }
.seg button[aria-checked="true"] { color: var(--ink); }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 10px; background: var(--paper); box-shadow: 0 2px 8px -4px rgba(22,19,15,.35); }
.seg.ready .seg-thumb { transition: transform .35s cubic-bezier(.3,.7,.2,1), width .35s cubic-bezier(.3,.7,.2,1); }

.tariffs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.t-card { position: relative; display: flex; flex-direction: column; border-radius: 24px; padding: 28px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.t-card.hot { background: var(--ink); color: var(--on-dark-2); box-shadow: 0 30px 60px -30px rgba(22,19,15,.7); }
.t-card h3 { font: 800 26px/1 var(--f-brand); letter-spacing: -.02em; }
.t-card.hot h3 { color: var(--on-dark); }
.t-tag { position: absolute; top: 26px; right: 24px; font: 600 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--red); padding: 6px 10px; border-radius: 99px; }
.t-desc { margin-top: 10px; font-size: 15px; min-height: 48px; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font: 800 46px/1 var(--f-brand); letter-spacing: -.045em; color: var(--ink); }
.t-card.hot .price b { color: var(--on-dark); }
.price span { display: inline-block; font: 500 14px var(--f-mono); color: var(--muted); }
.t-card.hot .price span { color: var(--on-dark-3); }
.price-sub { margin-top: 8px; font: 500 13px var(--f-mono); color: var(--muted); min-height: 20px; display: flex; gap: 8px; align-items: center; }
.t-card.hot .price-sub { color: var(--on-dark-2); }
.save { background: var(--red-soft); color: var(--red); padding: 2px 7px; border-radius: 6px; font-weight: 600; }
.t-card.hot .save { background: rgba(200,30,38,.25); color: #ff8a8f; }
.swap { animation: swap-in .35s cubic-bezier(.2,.7,.2,1); }
@keyframes swap-in { from { opacity: 0; transform: translateY(6px); } }
.rows { margin: 22px 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--line); flex: 1; }
.t-card.hot .rows { border-color: var(--line-dark); }
.rows li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.t-card.hot .rows li { border-color: var(--line-dark); }
.rows li b { font-weight: 600; color: var(--ink); text-align: right; }
.t-card.hot .rows li b { color: var(--on-dark); }
.rows li b.no { color: var(--faint); font-weight: 500; }
.rows li small { display: block; font-size: 12px; line-height: 1.4; color: var(--muted); }
.t-card.hot .rows li small { color: var(--on-dark-3); }
.t-refund { margin-top: 10px; text-align: center; text-wrap: balance; font: 500 12px var(--f-mono); color: var(--muted); }
.t-card.hot .t-refund { color: var(--on-dark-3); }

.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; padding: 0; list-style: none; font: 500 13px var(--f-mono); color: var(--muted); }
.trust li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }

/* ---------- sections ---------- */
.section { padding-block: 72px; }
.section-head { margin-bottom: 32px; }
.section h2 { font-weight: 900; font-size: clamp(30px, 4vw, 52px); line-height: 1; letter-spacing: -.035em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 28px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line-2); }
.step-n { font: 800 56px/1 var(--f-brand); letter-spacing: -.05em; color: var(--red); }
.step h3 { font-size: 21px; font-weight: 800; margin-top: 20px; letter-spacing: -.01em; }
.step p { margin-top: 8px; font-size: 15px; }
.apps { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.apps span { font: 500 12px var(--f-mono); padding: 5px 10px; border-radius: 99px; background: var(--panel); color: var(--ink-2); }

.dark { background: var(--night); color: var(--on-dark-2); }
.dark h2, .dark h3 { color: var(--on-dark); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { padding: 28px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line-dark); }
.feature h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.feature p { margin-top: 8px; font-size: 15px; }
.flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.flags span { font: 500 13px var(--f-body); padding: 6px 11px; border-radius: 99px; background: rgba(244,237,227,.07); color: var(--on-dark); }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font: 700 18px var(--f-head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--f-body); color: var(--red); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 62ch; }

.final { text-align: center; padding-top: 24px; }
.final p { margin: 14px 0 26px; font-size: 18px; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--on-dark-2); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot .wordmark { color: var(--on-dark); font-size: 26px; }
.foot-lead { margin-top: 14px; max-width: 34ch; font-size: 14px; }
.foot h4 { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 12px; }
.foot p, .foot li { font-size: 14px; line-height: 1.8; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.footlink { color: var(--on-dark); text-underline-offset: 3px; text-decoration-color: var(--on-dark-3); }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 12px var(--f-mono); color: var(--on-dark-3); }

.cookie { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin-inline: auto; display: flex; gap: 14px; align-items: center; background: var(--ink); color: var(--on-dark); padding: 12px 12px 12px 18px; border-radius: 14px; box-shadow: 0 16px 30px -12px rgba(0,0,0,.5); font-size: 14px; line-height: 1.45; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.cookie .btn { flex: none; }

/* ---------- adaptive ---------- */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; }
  /* Прокрутка режет всё, что выходит за отступы: тень Pro укорочена ровно до нижнего (36px). */
  .tariffs {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 12px calc(var(--gut) * -1) -24px; padding: 8px var(--gut) 36px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .tariffs::-webkit-scrollbar { display: none; }
  .tariffs .t-card { flex: 0 0 min(82%, 360px); scroll-snap-align: center; }
  .tariffs .t-card.hot { box-shadow: 0 24px 40px -28px rgba(22,19,15,.7); }
  .faq { grid-template-columns: 1fr; gap: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .hide-sm { display: none; }
  .hero { padding-top: 32px; }
  .hero-lead { font-size: 17px; }
  .perks { font-size: 15px; }
  .stats { gap: 14px; }
  .stats li + li { padding-left: 14px; }
  .stats b { font-size: 22px; }
  .status { border-radius: 14px; }
  .checked { display: block; }
  .checked .sep { display: none; }
  .seg { display: flex; margin-top: 28px; }
  .seg button { flex: 1; padding: 10px 6px; font-size: 13px; }
  .seg button small { display: block; margin: 2px 0 0; }
  .features { grid-template-columns: 1fr; }
  .section { padding-block: 52px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .seg.ready .seg-thumb { transition: none; } .dot, .swap { animation: none; } }
