/* Nunito Sans (SIL OFL 1.1, assets/fonts/OFL.txt) is served from this site: no requests to Google. */
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/nunito-sans-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/nunito-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/nunito-sans-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/nunito-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/nunito-sans-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/nunito-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ink: #03120E; --deep: #062A20; --emerald: #10B981; --emerald-dark: #0E9F6E;
  --snow: #F5F7F6; --muted: rgba(245,247,246,.68); --faint: rgba(245,247,246,.42);
  --danger: #F2766B; --line: rgba(255,255,255,.12);
  --glass: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--ink); color: var(--snow);
  font: 500 16px/1.5 "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 620px at 50% 8%, rgba(16,185,129,.20), transparent 70%),
    radial-gradient(1200px 900px at 50% 40%, var(--deep), var(--ink) 75%);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-size: 18px; font-weight: 600; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--faint); }
.accent { color: var(--emerald); }

.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(3,18,14,.72); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; }
.brand svg { width: 24px; height: 24px; fill: none; stroke: var(--emerald); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.links a:hover { color: var(--snow); }
.top .btn { margin-left: 0; }
.links + .btn { margin-left: 8px; }
.demo { padding: 9px 16px; text-align: center; font-size: 13px; color: #06231b; background: #f3d98b; }

main { flex: 1; width: 100%; outline: none; }
.wrap { width: min(1120px, 100% - 2 * clamp(16px, 4vw, 40px)); margin: 0 auto; }
section { padding: clamp(48px, 8vw, 96px) 0; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 46ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 17px/1 "Nunito Sans", system-ui, sans-serif; color: var(--ink);
  background: linear-gradient(180deg, var(--emerald), var(--emerald-dark));
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }
.btn.glass { color: var(--snow); background: var(--glass); border: 1px solid var(--line); }
.btn.small { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 8px 4px; cursor: pointer; font: inherit; font-weight: 600; color: var(--emerald); }
.link.quiet { color: var(--muted); }

.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

/* Landing */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: clamp(40px, 7vw, 88px); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .lead { margin-top: 18px; }
.emblem { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; margin: 0 auto; display: grid; place-items: center; }
.emblem i { position: absolute; border-radius: 50%; border: 1px solid rgba(16,185,129,.34); animation: ring 16s linear infinite; }
.emblem i:nth-child(2) { animation-delay: -4s; } .emblem i:nth-child(3) { animation-delay: -8s; } .emblem i:nth-child(4) { animation-delay: -12s; }
@keyframes ring { from { width: 44%; height: 44%; opacity: .9; } to { width: 100%; height: 100%; opacity: 0; } }
.emblem .disc {
  width: 36%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--line); box-shadow: 0 0 0 14px rgba(0,0,0,.16), 0 0 0 15px rgba(16,185,129,.3);
}
.emblem svg { width: 38%; fill: none; stroke: var(--emerald); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .emblem i { animation: none; opacity: .3; } html { scroll-behavior: auto; } }

.grid { display: grid; gap: 16px; margin-top: 32px; }
.features { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(16,185,129,.14); margin-bottom: 14px; }
.feature svg { width: 22px; height: 22px; fill: none; stroke: var(--emerald); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.steps { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; margin-bottom: 14px; font-weight: 700; color: var(--ink); background: var(--emerald);
}
.step p { margin-top: 6px; font-size: 15px; color: var(--muted); }
/* Plans: the same choice as in the Mini App — devices, then term */
.buy { display: grid; grid-template-columns: 1.6fr .9fr; gap: 16px; margin-top: 32px; align-items: stretch; }
.buy > .card { display: flex; flex-direction: column; gap: 18px; }
.buy .label { margin-bottom: 0; }
.slider { position: relative; height: 52px; border-radius: 26px; background: rgba(3,18,14,.5); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.slider::before { content: ""; position: absolute; left: 30px; right: 30px; top: 50%; height: 2px; background: rgba(245,247,246,.12); }
.slider button { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; padding: 0; }
.slider button i { width: 9px; height: 9px; border-radius: 50%; background: rgba(245,247,246,.5); transition: all .3s cubic-bezier(.2,1.4,.4,1); }
.slider button[aria-pressed=true] i { width: 30px; height: 30px; border: 4px solid var(--emerald); background: rgba(3,18,14,.9); }
.ticks { display: flex; justify-content: space-between; padding: 0 6px; margin-top: -10px; }
.ticks span { width: 48px; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.25; }
.ticks span.on { color: var(--emerald); font-weight: 600; }
.ticks small { display: block; font-size: 11px; color: var(--faint); }
.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 10px; padding-top: 6px; }
.term {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 14px; min-width: 0; min-height: 112px;
  padding: 14px 16px; border-radius: 20px; border: 1px solid var(--line); background: rgba(3,18,14,.35);
  color: var(--snow); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.term:hover { border-color: rgba(16,185,129,.45); }
.term[aria-pressed=true] { border-color: var(--emerald); background: linear-gradient(160deg, rgba(16,185,129,.45), rgba(16,185,129,.14)), rgba(6,42,32,.58); }
.term .top-line { display: flex; justify-content: space-between; align-items: center; gap: 6px; width: 100%; min-height: 24px; }
.term b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.term .sum { font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.term small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.term .pill { position: absolute; top: -11px; right: 12px; }
.pill { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; color: var(--emerald); background: #0b3328; border: 1px solid rgba(16,185,129,.45); }
.pill.best { color: var(--ink); background: var(--emerald); border-color: var(--emerald); }
.inc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.inc li { position: relative; padding-left: 28px; font-weight: 600; font-size: 15px; }
.inc li small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); margin-top: 2px; }
.inc li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--emerald); border-bottom: 2px solid var(--emerald); transform: rotate(-45deg); }
.summary { position: sticky; top: 88px; align-self: start; }
.pick { display: grid; margin: 0; }
.pick div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pick div:first-child { border-top: 0; padding-top: 0; }
.pick dt { color: var(--muted); }
.pick dd { margin: 0; font-weight: 600; text-align: right; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.total b { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.buy .fine { text-align: center; }
.buy .error:empty { display: none; }
.buy .fine a, .consent a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.consent { font-size: 13px; color: var(--faint); }
.apps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.app { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; }
.app span { font-size: 13px; color: var(--faint); }

/* Sign-in, TV */
.panel { width: min(440px, 100% - 32px); margin: clamp(32px, 7vw, 72px) auto; text-align: center; }
.panel .card { padding: 32px 28px; display: grid; gap: 14px; }
.panel h2 { font-size: 26px; }
.badge { width: 72px; height: 72px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: rgba(16,185,129,.14); }
.badge svg { width: 32px; height: 32px; fill: none; stroke: var(--emerald); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
label { display: block; text-align: left; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input {
  width: 100%; height: 56px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.06); color: var(--snow); font: 500 17px "Nunito Sans", system-ui, sans-serif;
}
input::placeholder { color: var(--faint); }
input.code { text-align: center; font: 600 26px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .28em; padding-left: calc(22px + .28em); text-transform: uppercase; }
.error { color: var(--danger); font-size: 14px; min-height: 21px; }
.ok { color: var(--emerald); }

/* Cabinet */
.cabinet { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: start; padding: clamp(24px, 5vw, 48px) 0 64px; }
.cabinet h1 { grid-column: 1 / -1; font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.stack { display: grid; gap: 16px; }
.sub { display: grid; gap: 16px; }
.sub .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.days { text-align: right; line-height: 1; }
.days b { display: block; font-size: 40px; color: var(--emerald); font-variant-numeric: tabular-nums; }
.days.over b { color: var(--danger); }
.label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.rows { display: grid; }
.rows > div { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.rows > div:first-child { border-top: 0; padding-top: 0; }
.rows .grow { flex: 1; min-width: 0; }
.rows small { display: block; font-size: 13px; color: var(--faint); }
.empty { color: var(--muted); font-size: 15px; }

.foot { padding: 36px clamp(16px, 4vw, 40px) 44px; border-top: 1px solid var(--line); display: grid; gap: 6px; justify-items: center; text-align: center; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 8px 0 4px; }
.foot nav a { color: var(--muted); }
.foot nav a:hover { color: var(--snow); }

/* Documents and payment result pages */
.doc { width: min(760px, 100% - 2 * clamp(16px, 4vw, 40px)); margin: 0 auto; padding: clamp(32px, 6vw, 64px) 0 72px; }
.doc h1 { font-size: clamp(28px, 4.4vw, 42px); }
.doc .ed { margin-top: 10px; color: var(--faint); font-size: 14px; }
.doc .card { margin-top: 28px; padding: clamp(20px, 4vw, 36px); }
.doc h2 { font-size: 20px; margin: 28px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--muted); font-size: 16px; }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.doc ul + p { margin-top: 10px; }
.doc a { color: var(--emerald); }
.doc mark { background: rgba(243,217,139,.18); color: #f3d98b; border-radius: 4px; padding: 0 4px; }
.doc .table { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.doc th, .doc td { padding: 10px 14px; text-align: left; border-top: 1px solid var(--line); white-space: nowrap; }
.doc thead th { border-top: 0; color: var(--faint); font-weight: 600; font-size: 13px; }
.doc td { color: var(--snow); }
.doc dl { display: grid; gap: 0; margin: 8px 0 0; }
.doc dl div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.doc dt { color: var(--faint); font-size: 14px; }
.doc dd { margin: 0; color: var(--snow); }
.result { display: grid; justify-items: center; gap: 14px; text-align: center; padding: clamp(56px, 10vw, 110px) 16px; width: min(520px, 100% - 32px); margin: 0 auto; }
.result .badge { width: 96px; height: 96px; }
.result .badge svg { width: 44px; height: 44px; }
.result p { color: var(--muted); }
.result .btn { margin-top: 10px; }


@media (max-width: 820px) {
  .links { display: none; }
  .top .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .emblem { max-width: 300px; order: -1; }
  .cabinet { grid-template-columns: 1fr; }
  .buy { grid-template-columns: 1fr; }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inc { grid-template-columns: 1fr; gap: 12px; }
  .summary { position: static; }
  .doc dl div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 380px) {
  .term { padding: 12px; }
  .term .sum { font-size: 20px; }
}

/* Used by app.js instead of inline styles (Content-Security-Policy). */
.plans-lead { margin-top: 12px; }
.loading { padding: 64px 0; }
.tv-note { margin-bottom: 14px; }
.link.flush { padding-left: 0; }
.result .btn + .btn { margin-top: 0; }
