:root {
  --bg: #f4ede3;
  --paper: #fbf7f1;
  --panel: #ebe1d3;
  --panel-2: #e2d6c4;
  --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;
  --ok-dark: #62d394;
  --warn: #c07000;
  --warn-dark: #f0a53c;
  --tg: #229ed9;
  --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; }
[hidden] { display: none !important; }
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;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.app { position: relative; z-index: 1; }
.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; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--f-mono); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 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, border-color .18s ease, opacity .18s;
}
.btn svg { flex: none; }
.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-glass { background: rgba(244,237,227,.07); color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line-dark); }
.btn-glass:hover { background: rgba(244,237,227,.13); }
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg:hover { background: #1b8bc0; transform: translateY(-1px); }
.btn-sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; gap: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: pointer; background: none; border: 0; padding: 0; }

/* ---------- header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(244,237,227,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.wordmark { font: 800 21px/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: 8px; }
.top-nav .navlink { background: none; border: 0; cursor: pointer; font: 500 15px var(--f-body); color: var(--ink-2); padding: 10px 12px; border-radius: 10px; }
.top-nav .navlink:hover { background: var(--panel); }
.sub-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 99px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font: 500 13px var(--f-mono); color: var(--ink-2);
  white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.dot.live { box-shadow: 0 0 0 0 rgba(47,138,87,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(98,211,148,.55); } 70% { box-shadow: 0 0 0 8px rgba(98,211,148,0); } 100% { box-shadow: 0 0 0 0 rgba(98,211,148,0); } }

/* ---------- screens ---------- */
[data-screen] { animation: screenIn .45s cubic-bezier(.2,.7,.2,1); }
@keyframes screenIn { from { opacity: .001; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- home: hero ---------- */
.hero { padding-block: 56px 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 {
  font-weight: 900; font-size: clamp(42px, 5.6vw, 76px); line-height: .98; letter-spacing: -.04em; margin: 22px 0 22px;
}
.swoosh {
  background: linear-gradient(var(--red), var(--red)) left bottom / 0% .11em no-repeat;
  padding-bottom: .04em; animation: swoosh 1s .35s cubic-bezier(.6,0,.2,1) forwards;
}
@keyframes swoosh { to { background-size: 100% .11em; } }
.hero-lead { font-size: 19px; line-height: 1.6; color: var(--body); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.proof div { font: 500 13px/1.3 var(--f-mono); color: var(--muted); }
.proof b { display: block; font: 800 22px/1.1 var(--f-brand); color: var(--ink); letter-spacing: -.02em; margin-bottom: 4px; }

.tunnel-card {
  position: relative; border-radius: 28px; overflow: hidden; background: var(--ink);
  aspect-ratio: 1 / 1.06; max-width: 100%;
  box-shadow: 0 40px 80px -40px rgba(22,19,15,.65), 0 0 0 1px rgba(22,19,15,.9);
}
.tunnel { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tc-top { position: absolute; top: 20px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); }
.conn {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  background: rgba(14,12,10,.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-dark); border-radius: 18px; padding: 16px 16px 14px; color: var(--on-dark);
}
.conn-row { display: flex; align-items: center; gap: 12px; }
.conn-state { font: 600 15px var(--f-body); display: flex; align-items: center; gap: 8px; }
.conn-state .dot { background: var(--ok-dark); }
.conn-city { font: 400 13px var(--f-mono); color: var(--on-dark-2); margin-top: 2px; }
.conn-timer { margin-left: auto; font: 500 20px var(--f-mono); letter-spacing: -.02em; }
.power {
  width: 50px; height: 30px; border-radius: 99px; background: var(--red); position: relative; flex: none; border: 0; cursor: pointer;
  transition: background .2s;
}
.power::after { content: ""; position: absolute; top: 3px; left: 23px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; }
.power[aria-pressed="false"] { background: rgba(244,237,227,.2); }
.power[aria-pressed="false"]::after { left: 3px; }
.marquee { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-dark); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font: 500 12px var(--f-mono); color: var(--on-dark-2); white-space: nowrap; }
.marquee span i { font-style: normal; margin-right: 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- home: tariffs ---------- */
.section { padding-block: 72px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { font-weight: 900; font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -.035em; }
.seg { position: relative; display: inline-flex; padding: 5px; background: var(--panel); border-radius: 14px; gap: 4px; }
.seg button {
  border: 0; background: transparent; cursor: pointer; padding: 10px 16px; border-radius: 10px;
  font: 600 14px var(--f-body); color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap;
  position: relative; z-index: 1; transition: color .25s;
}
.seg button small { font: 600 11px var(--f-mono); color: var(--red); }
.seg button[aria-checked="true"] { color: var(--ink); }
.seg-thumb {
  position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 10px;
  background: var(--paper); box-shadow: 0 1px 2px rgba(22,19,15,.12), 0 0 0 1px var(--line);
  transition: transform .35s cubic-bezier(.3,.7,.2,1), width .35s cubic-bezier(.3,.7,.2,1);
}
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.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); overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
}
.t-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 40px -28px rgba(22,19,15,.4); }
.t-card.hot { background: var(--ink); color: var(--on-dark-2); box-shadow: 0 30px 60px -30px rgba(22,19,15,.7); padding-top: 0; }
.t-card.hot h3 { color: var(--on-dark); }
.t-strip { position: relative; height: 104px; margin: 0 -28px 24px; }
.t-strip canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--ink)); }
.t-tag { position: absolute; top: 16px; left: 28px; z-index: 2; font: 600 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--red); padding: 6px 10px; border-radius: 99px; }
.t-name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.t-name h3 { font: 800 26px/1 var(--f-brand); letter-spacing: -.02em; }
.t-desc { margin-top: 10px; font-size: 15px; min-height: 48px; }
.price { margin-top: 22px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font: 800 50px/1 var(--f-brand); letter-spacing: -.045em; color: var(--ink); }
.t-card.hot .price b { color: var(--on-dark); }
.price span { 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; }
.rows { margin: 24px 0 26px; 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: 12px 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; }
.t-card.hot .rows li b.no { color: var(--on-dark-3); }
.tip { border-bottom: 1px dashed currentColor; cursor: help; }

/* ---------- home: steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 30px 28px 28px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line-2); }
.step-n { font: 800 64px/1 var(--f-brand); letter-spacing: -.05em; color: var(--red); }
.step h3 { font-size: 21px; font-weight: 800; margin-top: 22px; letter-spacing: -.01em; }
.step p { margin-top: 8px; font-size: 15px; }
.step .apps { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.app-pill { display: inline-flex; gap: 6px; align-items: center; font: 500 12px var(--f-mono); padding: 6px 10px; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }

/* ---------- faq ---------- */
.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; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 62ch; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--on-dark-2); margin-top: 40px; 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 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.7; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot .footlink { background: none; border: 0; padding: 0; cursor: pointer; color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--on-dark-3); font-size: 14px; }
.stub { font-family: var(--f-mono); font-size: 13px; color: #ffb3b6; border-bottom: 1px dashed rgba(255,179,182,.5); }
.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); }

/* ---------- checkout ---------- */
.back { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font: 500 14px var(--f-mono); color: var(--muted); padding: 0; }
.back:hover { color: var(--ink); }
.co { padding-block: 36px 72px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: start; }
.co h1 { font-weight: 900; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.035em; line-height: 1; }
.field { margin-top: 30px; }
.field > label, .field-label { display: block; font: 700 15px var(--f-head); color: var(--ink); margin-bottom: 12px; }
.trial { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.trial a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.trial a:hover { text-decoration-color: var(--ink); }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt {
  position: relative; text-align: left; cursor: pointer; background: transparent; border: 0;
  border-radius: 14px; padding: 14px 16px; box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: box-shadow .15s, background-color .15s;
}
.opt:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.opt[aria-checked="true"] { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.opt[aria-checked="true"]::after { content: ""; position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.opt[disabled] { opacity: .4; pointer-events: none; }
.opt b { display: block; font: 700 16px var(--f-head); color: var(--ink); }
.opt span { display: block; font: 500 13px var(--f-mono); color: var(--muted); margin-top: 4px; }
.opt span em { font-style: normal; color: var(--red); }
.input {
  width: 100%; height: 56px; border-radius: 12px; border: 0; padding: 0 16px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-2); font: 400 16px var(--f-body); color: var(--ink);
  transition: box-shadow .15s;
}
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px rgba(22,19,15,.08); }
.input.mono { font-family: var(--f-mono); font-size: 15px; }
.input.err { box-shadow: inset 0 0 0 2px var(--red), 0 0 0 4px var(--red-soft); }
.err-text { color: var(--red); font-size: 14px; margin-top: 10px; font-weight: 500; }
.co-pay { margin-top: 30px; }
.co-pay .btn { height: 60px; font-size: 17px; border-radius: 14px; }
.legal-line { font-size: 13px; color: var(--muted); margin-top: 14px; }
.legal-line .link { font-weight: 500; font-size: 13px; }

.summary { position: sticky; top: 92px; border-radius: 26px; overflow: hidden; background: var(--ink); color: var(--on-dark-2); }
.summary-vis { position: relative; height: 170px; }
.summary-vis::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, var(--ink)); }
.summary-body { padding: 4px 26px 26px; position: relative; }
.summary h3 { color: var(--on-dark); font: 800 28px/1 var(--f-brand); letter-spacing: -.02em; }
.summary .per { font: 500 13px var(--f-mono); color: var(--on-dark-3); margin-top: 8px; }
.sum-rows { list-style: none; margin: 20px 0; padding: 0; }
.sum-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-dark); font-size: 14px; }
.sum-rows li b { color: var(--on-dark); font-weight: 600; text-align: right; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line-dark); }
.sum-total span { font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-3); }
.sum-total b { font: 800 34px/1 var(--f-brand); color: var(--on-dark); letter-spacing: -.03em; }
.secure { margin-top: 16px; display: flex; gap: 8px; align-items: center; font: 400 12px var(--f-mono); color: var(--on-dark-3); }

/* ---------- success ---------- */
.ok { padding-block: 44px 72px; }
.ok-head { display: flex; gap: 22px; align-items: center; }
.check { width: 72px; height: 72px; border-radius: 22px; background: var(--ink); display: grid; place-items: center; flex: none; }
.check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ok h1 { font-weight: 900; font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -.035em; line-height: 1; }
.ok-head p { margin-top: 10px; font-size: 17px; }
.flow { display: grid; gap: 16px; margin-top: 36px; }
.fstep { display: grid; grid-template-columns: 88px minmax(0, 1fr); border-radius: 26px; overflow: hidden; transition: opacity .3s, filter .3s; }
.fstep-n { display: grid; place-items: start center; padding-top: 30px; font: 800 30px/1 var(--f-brand); letter-spacing: -.04em; }
.fstep-body { padding: 30px 32px 30px 0; }
.fstep h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; letter-spacing: -.025em; line-height: 1.05; }
.fstep .why { margin-top: 10px; max-width: 60ch; }
.fstep.dark { background: var(--ink); color: var(--on-dark-2); }
.fstep.dark h2 { color: var(--on-dark); }
.fstep.dark .fstep-n { color: var(--red); }
.fstep.light { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.fstep.light .fstep-n { color: var(--ink); }
.fstep.waiting { opacity: .55; filter: saturate(.3); }
.fstep.done .fstep-n { color: var(--ok-dark); }
.fstep-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.linkbox { display: flex; align-items: center; gap: 6px; margin-top: 18px; padding: 6px 6px 6px 16px; border-radius: 14px; background: rgba(244,237,227,.06); box-shadow: inset 0 0 0 1px var(--line-dark); max-width: 640px; }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px var(--f-mono); color: var(--on-dark); }
.linkbox.light { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); }
.linkbox.light code { color: var(--ink); }
.iconbtn { flex: none; height: 38px; min-width: 38px; padding: 0 12px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; border-radius: 10px; border: 0; cursor: pointer; font: 600 13px var(--f-body); background: rgba(244,237,227,.1); color: var(--on-dark); }
.iconbtn:hover { background: rgba(244,237,227,.18); }
.linkbox.light .iconbtn { background: var(--ink); color: var(--on-dark); }
.warnline { display: flex; gap: 10px; margin-top: 16px; font-size: 14px; max-width: 64ch; align-items: flex-start; }
.warnline svg { flex: none; margin-top: 2px; color: var(--warn-dark); }
.fstep.light .warnline svg { color: var(--warn); }
.qr-wrap { display: flex; gap: 18px; align-items: center; margin-top: 18px; }
.qr { width: 132px; height: 132px; border-radius: 14px; overflow: hidden; background: #fff; flex: none; }
.qr svg { width: 100%; height: 100%; display: block; }
.stores { font-size: 14px; margin-top: 14px; }
.qr-btn { margin-top: 12px; }
.stores .link { color: var(--on-dark); text-decoration-color: var(--on-dark-3); font-weight: 500; font-size: 14px; }

/* ---------- login ---------- */
.login { padding-block: 64px 80px; }
.login-card { max-width: 620px; margin: 0 auto; }
.login h1 { font-weight: 900; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.04em; line-height: 1; }
.login-lead { margin-top: 14px; font-size: 17px; max-width: 46ch; }
.login-form { margin-top: 32px; display: flex; gap: 10px; }
.login-form .input { flex: 1; min-width: 0; }
.login-field { position: relative; flex: 1; min-width: 0; }
.login-field .input { width: 100%; padding-right: 108px; }
.paste {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  height: 38px; padding: 0 14px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--panel); color: var(--ink); font: 600 14px var(--f-body); transition: background-color .2s;
}
.paste:hover { background: var(--line-2); }
.login-help { margin-top: 28px; border-block: 1px solid var(--line); }
.login-help summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.login-help summary::-webkit-details-marker { display: none; }
.login-help summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; transition: transform .25s; }
.login-help[open] summary::after { transform: rotate(45deg); }
.login-help ul { margin: 0; padding: 0 0 18px; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.login-help b { color: var(--ink); font-weight: 600; }
.login-alt { margin-top: 24px; font-size: 15px; color: var(--ink-2); }

/* ---------- cabinet ---------- */
.cab { padding-block: 32px 72px; }
.cab-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cab-head h1 { font-weight: 900; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.035em; line-height: 1; }
.status { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; border-radius: 30px; overflow: hidden; background: var(--ink); color: var(--on-dark-2); min-height: 360px; }
.status-main { position: relative; z-index: 2; padding: 34px 36px; display: flex; flex-direction: column; }
.status-vis { position: relative; }
.status-vis::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink), transparent 35%); pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 99px; font: 600 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.pill.ok { background: rgba(98,211,148,.12); color: var(--ok-dark); }
.pill.ok .dot { background: var(--ok-dark); }
.pill.warn { background: rgba(240,165,60,.14); color: var(--warn-dark); }
.pill.warn .dot { background: var(--warn-dark); }
.pill.bad { background: rgba(200,30,38,.22); color: #ff8a8f; }
.pill.bad .dot { background: #ff5a61; }
.status-tier { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.status-tier .tn { font: 800 15px var(--f-brand); color: var(--on-dark); letter-spacing: -.01em; }
.days { display: flex; align-items: flex-end; gap: 14px; margin-top: 26px; }
.days b { font: 800 clamp(88px, 11vw, 148px)/.8 var(--f-brand); letter-spacing: -.06em; color: var(--on-dark); }
.days span { font: 500 13px/1.4 var(--f-mono); color: var(--on-dark-2); padding-bottom: 8px; }
.days span strong { display: block; color: var(--on-dark); font-weight: 600; font-size: 15px; }
.period { margin-top: 26px; }
.period-bar { height: 6px; border-radius: 99px; background: rgba(244,237,227,.12); overflow: hidden; }
.period-bar i { display: block; height: 100%; border-radius: 99px; background: var(--on-dark); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.status.is-warn .period-bar i { background: var(--warn-dark); }
.status.is-bad .period-bar i { background: var(--red); }
.period-meta { display: flex; justify-content: space-between; margin-top: 8px; font: 400 12px var(--f-mono); color: var(--on-dark-3); }
.status-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 28px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.tiles.no-ap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tg-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  margin-top: 16px; padding: 22px 24px; border-radius: 22px;
  background: rgba(34, 158, 217, .1); box-shadow: inset 0 0 0 1.5px rgba(34, 158, 217, .35);
}
.tg-banner-text { flex: 1 1 320px; }
.tg-banner h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.tg-perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tg-perks .app-pill { font: 500 13px var(--f-body); }
.tile { background: var(--paper); border-radius: 22px; padding: 24px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.tile-label { font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.tile-big { margin-top: 18px; font: 800 36px/1 var(--f-brand); letter-spacing: -.04em; color: var(--ink); }
.tile-big small { font: 500 15px var(--f-mono); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.meter { margin-top: 18px; height: 10px; border-radius: 99px; background: var(--panel); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.tile-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.slots { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.slots i { width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.slots i.on { background: var(--ink); box-shadow: none; }
.tile .btn { margin-top: auto; }
.tile-state { margin-top: 18px; font: 800 24px/1.1 var(--f-brand); letter-spacing: -.02em; color: var(--ink); }
.tile-state.off { color: var(--faint); }
.tile p.tile-text { font-size: 14px; margin: 10px 0 18px; }

.cab-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.card { background: var(--paper); border-radius: 22px; padding: 26px; box-shadow: inset 0 0 0 1px var(--line); }
.card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.card-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.key-row { display: flex; gap: 20px; align-items: flex-start; margin-top: 18px; }
.key-row .qr { width: 118px; height: 118px; box-shadow: inset 0 0 0 1px var(--line); }
.key-main { flex: 1; min-width: 0; }
.key-main .linkbox { margin-top: 0; }
.key-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.table-wrap { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th { text-align: left; font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line-2); }
td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-variant-numeric: tabular-nums; }
td.sum { font-weight: 600; color: var(--ink); }
tr.fresh td { animation: fresh 2.4s ease; }
@keyframes fresh { 0%, 30% { background: rgba(98,211,148,.18); } 100% { background: transparent; } }
.help { margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 24px 26px; border-radius: 22px; background: var(--panel); }
.help h3 { font-size: 19px; font-weight: 800; }
.help p { font-size: 14px; margin-top: 4px; max-width: 70ch; }
.help-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(14,12,10,.55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.dialog { position: relative; width: 100%; max-width: 580px; max-height: calc(100% - 24px); overflow: auto; background: var(--bg); border-radius: 26px; padding: 30px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); animation: rise .3s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.dialog h2 { font-weight: 900; font-size: 30px; letter-spacing: -.03em; line-height: 1.05; padding-right: 40px; }
.dialog .x { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--panel); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.dialog .x:hover { background: var(--panel-2); }
.renew-sum { margin-top: 24px; padding: 16px 18px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.renew-sum b { color: var(--ink); }
.legal-doc { margin-top: 18px; font-size: 14px; line-height: 1.7; }
.legal-doc p + p { margin-top: 10px; }
.legal-doc h4 { font-size: 15px; margin: 18px 0 8px; }

/* ---------- pay overlay ---------- */
.paying { position: fixed; inset: 0; z-index: 90; background: var(--ink); animation: fade .25s ease; }
.paying canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.paying-box { position: absolute; left: 50%; bottom: max(12vh, 90px); transform: translateX(-50%); width: min(420px, calc(100% - 32px)); text-align: center; color: var(--on-dark); background: rgba(14,12,10,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-dark); border-radius: 20px; padding: 22px 24px; }
.paying-box b { display: block; font: 700 20px var(--f-head); }
.paying-box span { display: block; margin-top: 6px; font: 400 13px var(--f-mono); color: var(--on-dark-2); }
.paying-bar { height: 3px; border-radius: 99px; background: rgba(244,237,227,.12); margin-top: 16px; overflow: hidden; }
.paying-bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width 2.6s cubic-bezier(.4,0,.2,1); }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 95; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--on-dark); padding: 12px 18px; border-radius: 12px; font: 500 14px var(--f-body); box-shadow: 0 16px 30px -12px rgba(0,0,0,.5); transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); display: flex; gap: 10px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { color: var(--ok-dark); flex: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .tunnel-card { aspect-ratio: 4 / 3.3; }
  .tariffs, .steps { grid-template-columns: 1fr; }
  .t-card.hot { order: -1; }
  .faq { grid-template-columns: 1fr; gap: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .co-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; order: -1; margin-top: 24px; }
  .co-grid > div > .field:first-child { margin-top: 8px; }
  .status { grid-template-columns: minmax(0, 1fr); }
  .status-vis { position: absolute; inset: 0; opacity: .55; }
  .status-vis::before { background: linear-gradient(90deg, var(--ink) 20%, transparent); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .tile:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  body { font-size: 15px; }
  .top .wrap { height: 60px; }
  .top-nav .navlink.hide-sm { display: none; }
  .hero { padding-block: 32px 48px; }
  .hero-lead { font-size: 17px; }
  .hero-cta .btn { flex: 1; }
  .section { padding-block: 48px; }
  .seg { width: 100%; }
  .seg button { flex: 1; justify-content: center; padding: 10px 6px; flex-direction: column; gap: 2px; }
  .tariffs {
    display: flex; grid-template-columns: none; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut);
    margin-inline: calc(var(--gut) * -1); padding: 2px var(--gut) 10px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .tariffs::-webkit-scrollbar { display: none; }
  .tariffs .t-card { flex: 0 0 84%; scroll-snap-align: start; }
  .foot-grid { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr; }
  .fstep { grid-template-columns: minmax(0, 1fr); }
  .fstep-actions .btn { width: 100%; }
  .linkbox { max-width: 100%; }
  .fstep-n { place-items: start; padding: 26px 22px 0; }
  .fstep-body { padding: 14px 22px 26px; }
  .qr-wrap { flex-direction: column; align-items: flex-start; }
  .login-form { flex-direction: column; }
  .login-field { flex: none; }
  .status-main { padding: 26px 22px; }
  .tiles, .tiles.no-ap { grid-template-columns: minmax(0, 1fr); }
  .tg-banner { padding: 20px; }
  .tg-banner .btn { width: 100%; }
  .key-row { flex-direction: column-reverse; align-items: stretch; }
  .key-row .qr { align-self: flex-start; }
  .help { grid-template-columns: 1fr; }
  .dialog { padding: 24px 18px; align-self: end; border-radius: 24px 24px 18px 18px; }
  .sheet { padding: 8px; }
  .ok-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .swoosh { background-size: 100% .11em; }
}

/* ---------- live site additions ---------- */
.notice { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; color: var(--ink-2); }
.notice.warn { background: rgba(240,165,60,.08); box-shadow: inset 0 0 0 1.5px rgba(192,112,0,.4); }
.notice a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.fstep.dark .notice { background: rgba(244,237,227,.06); box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--on-dark-2); }
.spinner { width: 72px; height: 72px; border-radius: 22px; background: var(--ink); display: grid; place-items: center; flex: none; }
.spinner::after { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(244,237,227,.18); border-top-color: var(--red); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ok-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.loading-line { font: 500 14px var(--f-mono); color: var(--muted); padding: 40px 0; }
.status-empty { margin-top: 18px; font-size: 16px; max-width: 40ch; }
.dialog p { margin-top: 12px; font-size: 15px; }
.dialog .dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- legal pages ---------- */
.doc { padding-block: 40px 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-weight: 900; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; line-height: 1.05; margin-top: 22px; }
.doc h2 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin: 36px 0 4px; }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.doc code { font-family: var(--f-mono); font-size: .92em; }
.doc a { color: var(--red); text-underline-offset: 3px; }
.doc .table-wrap table { min-width: 0; }
