/* =========================================================================
   JETNODE landing — light version (website-design-light.md).
   All colours are tokens on :root; one accent (teal) for buttons/selection.
   ========================================================================= */
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --soft: #f4f6f8;
  --line: #e4e7ee;
  --ink: #0b1530;
  --ink-2: #4c5675;
  --dim: #7a839f;
  --teal: #0f6f6c;
  --teal-hover: #0c5e5b;
  --teal-soft: #e5f3f1;
  --teal-ink: #0a4a48;
  --ok: #1f9d63;
  --err: #c0322a;

  /* phone (stays dark, as in the reference) */
  --ph-body: #0b1530;
  --ph-screen: #15284f;
  --ph-plate: #1d3260;
  --ph-ring: #4cc3b6;
  --ph-text: #dfe4f2;
  --ph-dim: #a9b3cf;

  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --wrap: 1120px;
  --pad: max(20px, min(4vw, 64px));

  --ease: cubic-bezier(.16, 1, .3, 1);
  --t: .22s;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
[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: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--teal); color: #fff; padding: 8px 12px; border-radius: 8px; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto;
  padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right));
}
.wrap--narrow { max-width: calc(820px + 2 * var(--pad)); }

.h1, .h2, .btn, .logo, .step__num, .plan__name, .plan__price, .row h3 {
  font-family: var(--display); text-transform: uppercase;
}
.h1 { font-size: clamp(34px, 5.4vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 22px; }
.h1 span { display: block; color: var(--teal); }
.h2 { font-size: clamp(26px, 3.6vw, 42px); line-height: 1.06; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 32px; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); margin: 0 0 30px; max-width: 540px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border: 1.5px solid transparent; border-radius: var(--r-sm);
  background: var(--teal); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .03em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), transform .12s var(--ease), opacity var(--t);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--teal-hover); }
.btn:active { transform: scale(.98); }
.btn__arrow { display: inline-block; transition: transform var(--t) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 13px; }
.btn--lg { min-height: 56px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--soft); border-color: var(--line); }
.btn--soft { background: var(--soft); color: var(--ink); }
.btn--soft:hover { background: var(--line); }
.btn.is-loading, .btn[disabled] { opacity: .6; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 40; height: 68px;
  background: rgba(255,255,255,.86); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.header__row { display: flex; align-items: center; gap: 24px; height: 100%; }
.logo { font-size: 18px; font-weight: 800; letter-spacing: .16em; text-decoration: none; color: var(--ink); }
.logo b { color: var(--teal); font-weight: 800; }
.nav { display: none; align-items: center; gap: 28px; margin-left: auto; font-size: 15px; }
.nav a, .nav__access { color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; transition: color var(--t); }
.nav a:hover, .nav__access:hover { color: var(--ink); }
.header .btn { margin-left: auto; }
@media (min-width: 900px) { .nav { display: flex; } .header .btn { margin-left: 4px; } }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }
.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 14px 7px 12px;
  border-radius: 999px; background: color-mix(in srgb, var(--ok) 10%, #fff); color: #157a4b; font-size: 14px; font-weight: 600;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(31,157,99,.5); animation: pulse 2.2s infinite; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 28px; }
.hero__price { margin: 0; color: var(--ink-2); font-size: 16px; }
.hero__price b { color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 18px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: 15px; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* phone (variant B2 + B4: server row, speed, ring; pill under the phone) */
.hero__phone { display: none; position: relative; justify-self: center; width: 290px; }
@media (min-width: 900px) { .hero__phone { display: block; } }
.phone {
  position: relative; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 10px; background: var(--ph-body);
  box-shadow: 0 50px 80px -40px rgba(11,21,48,.55), 0 0 0 1px rgba(11,21,48,.06); transform: rotate(-3deg);
}
.phone__notch { position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 80px; height: 22px; border-radius: 20px; background: #050a18; z-index: 2; }
.phone__screen {
  height: 100%; border-radius: 35px; background: var(--ph-screen); color: var(--ph-text);
  padding: 50px 16px 20px; display: flex; flex-direction: column; overflow: hidden;
}
/* status bar, on the camera-island line */
/* 3 columns: time | camera island | signal — each side centred in its half, like iOS */
.sbar { position: absolute; top: 9px; left: 10px; right: 10px; height: 22px; display: grid; grid-template-columns: 1fr 88px 1fr; align-items: center; color: var(--ph-text); }
.sbar__time { justify-self: center; grid-column: 1; font-size: 12.5px; font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.sbar__right { justify-self: center; grid-column: 3; display: flex; align-items: center; gap: 4px; }
.sbar__sig { width: 15px; height: 10px; fill: currentColor; }
.sbar__net { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.sbar__bat { width: 22px; height: 11px; fill: currentColor; }
.phone__screen { position: relative; }
.srv {
  display: flex; align-items: center; gap: 10px; background: var(--ph-plate); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 9px 11px; font-size: 12px; line-height: 1.25;
}
.srv__flag { width: 24px; height: 16px; flex: none; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.srv__flag svg { width: 100%; height: 100%; display: block; }
.srv__wf { display: inline-block; width: 11px; height: 11px; margin: 0 4px -1px 0; } /* white flag (Tabler flag-2, MIT) */
.srv__name { min-width: 0; }
.srv__name b { display: block; font-size: 12.5px; }
.srv__name small { display: block; color: var(--ph-dim); font-size: 10.5px; }
.srv__ping { margin-left: auto; color: var(--ph-ring); font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.srv__chev { color: var(--ph-dim); }
.spd { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.spd > div { background: var(--ph-plate); border-radius: 10px; padding: 6px 9px; line-height: 1.2; }
.spd small { display: block; color: var(--ph-dim); font-size: 9.5px; }
.spd small::first-letter { color: var(--ph-ring); }
.spd b { display: block; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone__mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 18px; }
.ring { position: relative; width: 62%; aspect-ratio: 1; margin: 0 auto 16px; display: grid; place-items: center; }
.ring__svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--ph-plate); stroke-width: 5; }
.ring__arc { fill: none; stroke: var(--ph-ring); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: ring-draw 1.2s var(--ease) .3s forwards; }
.ring__icon { width: 34%; color: var(--ph-ring); }
.phone__state { margin: 0; font-family: var(--display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.phone__timer { text-align: center; color: var(--ph-dim); font-size: 12px; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.pill {
  position: absolute; left: 50%; bottom: 26px; z-index: 3; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px 9px 9px; font-size: 14px; font-weight: 600;
  box-shadow: 0 16px 34px -14px rgba(11,21,48,.45), 0 0 0 1px var(--line);
  /* same tilt as the phone; appears, then slowly levitates (translate is separate from transform) */
  opacity: 0; transform: translate(-50%, 16px) rotate(-3deg);
  animation: pill-in .6s var(--ease) 1.5s forwards, levitate 7s cubic-bezier(.45, 0, .55, 1) 2.1s infinite;
}
.pill__ok { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 13px; font-weight: 800; }
@keyframes pill-in { to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes levitate {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; border-top: 1px solid var(--line); }
.section--soft { background: var(--soft); border-top: 0; }
.section--soft + .section { border-top: 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 32px; margin-bottom: 28px; }
.section__head .h2 { margin: 0; }
.section__head p { margin: 0; max-width: 380px; color: var(--ink-2); }

/* ---------- plans ---------- */
.plans { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 3 cards in a row get narrow on small laptops / iPad landscape: name above the price */
@media (min-width: 1000px) and (max-width: 1199px) { .plan__top { flex-direction: column; align-items: flex-start; gap: 6px; } }
/* tablets portrait: one card per row, but not stretched edge to edge */
@media (min-width: 640px) and (max-width: 999px) { .plans { max-width: 640px; } .pay { max-width: 640px; } }
.plan {
  position: relative; cursor: pointer; background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 20px; transition: border-color .35s var(--ease), box-shadow .45s var(--ease), transform .35s var(--ease);
}
.plan:active { transform: scale(.995); }
.plan:hover { border-color: #cdd2de; }
.plan.is-active { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.plan__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.plan__name { font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.plan__price { font-size: clamp(24px, 2.5vw, 34px); font-weight: 800; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color var(--t) var(--ease); }
.plan__price small { font-family: var(--text); text-transform: none; font-size: 14px; font-weight: 600; color: var(--dim); }
.plan.is-active .plan__price { color: var(--teal); }
.periods { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: var(--r-sm); background: var(--soft); }
/* sliding highlight behind the selected period */
.periods__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 8px; background: #fff;
  box-shadow: 0 1px 3px rgba(11,21,48,.12);
  transition: transform .42s var(--ease), width .42s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.plan.is-active .periods__thumb { background: var(--teal); box-shadow: 0 4px 12px -4px rgba(15,111,108,.55); }
.period {
  position: relative; z-index: 1; min-height: 42px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: color .3s var(--ease), transform .15s var(--ease);
}
.period:hover { color: var(--ink); }
.period:active { transform: scale(.96); }
.period.is-active { color: var(--ink); }
.plan.is-active .period.is-active { color: #fff; }
.plan__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.save {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-ink); white-space: nowrap;
  opacity: 0; transform: translateY(4px) scale(.94); transition: opacity .3s var(--ease), transform .35s var(--ease); pointer-events: none;
}
.save.is-on { opacity: 1; transform: none; }
.plan__num { display: inline-block; min-width: 2.2ch; text-align: right; }
.plan__name { white-space: nowrap; }
@media (max-width: 400px) {
  .plan { padding: 16px; }
  .plan__name { font-size: 13px; }
  .plan__price { font-size: 24px; }
  .period { font-size: 13px; min-height: 40px; }
}
.plans.no-anim .periods__thumb, .plans.no-anim .save, .plans.no-anim .plan { transition: none !important; }
.badge-pop {
  position: absolute; top: -11px; left: 18px; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff;
  font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* payment block */
.pay { margin-top: 18px; background: var(--soft); border-radius: var(--r); padding: 18px; }
.pay__row { display: grid; gap: 10px; }
@media (min-width: 760px) { .pay__row { grid-template-columns: minmax(0, 1fr) auto; } }
.field__input {
  width: 100%; min-height: 56px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.field__input::placeholder { color: var(--dim); }
.field__input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.field.is-invalid .field__input { border-color: var(--err); }
.field__error { margin: 6px 0 0; min-height: 0; font-size: 14px; color: var(--err); }
.field__error:empty { display: none; }
.pay__btn { min-width: 240px; }
.pay__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; max-width: 620px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal); flex: none; }
.consent a, .pay a { color: var(--ink); }
.pay__methods { margin: 0; font-size: 13px; color: var(--dim); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; position: relative; }
.step { position: relative; }
.step__num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 18px; box-shadow: 0 0 0 6px var(--soft);
}
.step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.step p { margin: 0; color: var(--ink-2); max-width: 320px; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps::before { content: ""; position: absolute; top: 24px; left: 24px; right: 24px; height: 2px; background: var(--line); }
}
@media (max-width: 759px) {
  .step { padding-left: 68px; }
  .step__num { position: absolute; left: 0; top: 0; }
  .steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
  .step h3 { padding-top: 12px; }
}

/* ---------- countries marquee (CSS only; paused off-screen / on hover) ---------- */
.mq {
  position: relative; overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; background: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mq + .section { border-top: 0; }
.mq__track { display: flex; width: max-content; animation: mq 46s linear infinite; }
.mq:hover .mq__track, .mq.is-off .mq__track { animation-play-state: paused; }
.mq__list { display: flex; list-style: none; margin: 0; padding: 0; }
.mq__list li { display: flex; align-items: center; gap: 10px; padding: 0 22px; font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--ink); }
.mq__list li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line); margin-left: 22px; }
.flag { width: 24px; height: 16px; border-radius: 3px; flex: none; overflow: hidden; box-shadow: 0 0 0 1px rgba(11,21,48,.08); }
.flag svg { width: 100%; height: 100%; display: block; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- non-stop: text + CTA | 2x2 tiles ---------- */
.ben { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .ben { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.ben__text .h2 { margin-bottom: 14px; }
.ben__text p { color: var(--ink-2); margin: 0; max-width: 420px; font-size: 17px; }
.tiles { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.tile { background: var(--soft); border-radius: var(--r); padding: 20px; transition: background-color .35s var(--ease), transform .35s var(--ease); }
.tile:hover { background: var(--teal-soft); transform: translateY(-2px); }
.tile__ic { width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--teal); display: grid; place-items: center; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(11,21,48,.06); }
.tile__ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin: 0 0 4px; font-size: 17px; }
.tile p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { display: grid; grid-template-columns: 42px 1fr; gap: 0 14px; align-items: center; padding: 14px 16px; }
  .tile__ic { margin: 0; grid-row: span 2; }
}
/* ---------- no-risk cards ---------- */
.cards { display: grid; gap: 14px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border-radius: var(--r); padding: 24px; border: 1px solid var(--line); }
.card__icon { width: 30px; height: 30px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg);
  transition: transform var(--t) var(--ease), margin var(--t) var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 0 22px; color: var(--ink-2); max-width: 700px; }
.faq a { color: var(--teal); }

/* ---------- final ---------- */
.section--final { border-top: 0; padding-top: 0; }
.final { background: var(--teal-soft); color: var(--teal-ink); border-radius: var(--r-lg); padding: clamp(36px, 6vw, 64px) var(--pad); text-align: center; }
.final .h2 { color: var(--ink); margin-bottom: 12px; }
.final p { margin: 0 0 26px; font-size: 17px; }
.final b { font-family: var(--display); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--dim); }
.footer__grid { display: grid; gap: 26px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.3fr 1fr auto; align-items: start; } }
.footer__legal { margin: 10px 0 0; max-width: 360px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__links a, .footer__links .linkbtn { color: var(--ink-2); text-decoration: none; }
.footer__links a:hover, .footer__links .linkbtn:hover { color: var(--ink); text-decoration: underline; }
.footer__label { margin: 0 0 10px; color: var(--ink); font-weight: 600; }
/* support button (variant 4): ink outline, teal icon + teal «Telegram» tag; fills ink on hover */
.support-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 8px 0 16px;
  border: 1.5px solid var(--ink); border-radius: 12px; color: var(--ink); text-decoration: none; background: #fff;
  transition: background .3s var(--ease), color .3s var(--ease), transform .15s var(--ease);
}
.support-btn__ico { width: 20px; height: 20px; flex: none; color: var(--teal); transition: color .3s var(--ease); }
.support-btn b { font-family: var(--display); text-transform: uppercase; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.support-btn em { font-style: normal; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: var(--teal); color: #fff; transition: background .3s var(--ease); }
.support-btn:hover { background: var(--ink); color: #fff; }
.support-btn:hover .support-btn__ico { color: var(--ph-ring); }
.support-btn:active { transform: scale(.98); }
.modal__body .support-btn { width: 100%; justify-content: center; margin-top: 10px; }
.footer__copy { grid-column: 1 / -1; margin: 0; font-size: 13px; }
@media (max-width: 899px) { .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }

/* ---------- mobile buy bar ---------- */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); border-top: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translateY(110%); transition: transform .3s var(--ease); visibility: hidden;
}
.buybar.is-on { transform: none; visibility: visible; }
.buybar__info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.buybar__info b { font-family: var(--display); font-weight: 800; font-size: 18px; }
.buybar__info span { color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { min-height: 48px; padding: 0 22px; }
@media (min-width: 900px) { .buybar { display: none; } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; justify-items: center; }
@media (min-width: 640px) { .modal { align-items: center; } }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11,21,48,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .25s var(--ease); }
.modal__dialog {
  position: relative; width: 100%; max-width: 460px; max-height: 92dvh; overflow: auto;
  background: #fff; color: var(--ink); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 32px 24px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 30px 80px -30px rgba(11,21,48,.5); animation: sheet-up .4s var(--ease);
}
@media (min-width: 640px) { .modal__dialog { border-radius: var(--r-lg); padding: 36px 32px 28px; animation-name: pop-in; } }
.modal.is-closing .modal__backdrop, .modal.is-closing .modal__dialog { animation: fade .22s var(--ease) reverse forwards; }
.modal__close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: none; font-size: 28px; line-height: 1; color: var(--dim); cursor: pointer;
}
.modal__close:hover { color: var(--ink); background: var(--soft); }
.modal__body { text-align: center; }
.modal__body h3 { margin: 0 0 10px; font-family: var(--display); text-transform: uppercase; font-size: 21px; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; padding: 0 24px; text-wrap: balance; }
.modal__body p { color: var(--ink-2); margin: 0 0 18px; }
.modal__body .btn { width: 100%; margin-top: 10px; }
.modal__body form { text-align: left; }
.modal__body .field__error { margin: 8px 0 0; }

.loader { width: 60px; height: 60px; margin: 6px auto 20px; position: relative; }
.loader::before, .loader::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; }
.loader::before { border-top-color: var(--teal); animation: spin .9s linear infinite; }
.loader::after { inset: 10px; border-bottom-color: var(--ph-ring); animation: spin 1.5s linear infinite reverse; }
.state-icon { width: 64px; height: 64px; margin: 2px auto 18px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 28px; font-weight: 800; }
.state-icon--fail { background: color-mix(in srgb, var(--err) 12%, #fff); color: var(--err); }

/* success: «доступ у вас на почте» */
.done__art { position: relative; width: 112px; height: 112px; margin: 0 auto 18px; }
.done__circle { position: absolute; inset: 0; border-radius: 50%; background: var(--teal-soft); transform: scale(.6); opacity: 0; animation: pop .5s var(--ease) forwards; }
.done__env { position: absolute; inset: 0; width: 100%; height: 100%; }
.done__env .env-body { fill: #fff; stroke: var(--teal); stroke-width: 2.5; }
.done__env .env-flap { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .6s var(--ease) .35s forwards; }
.done__env .env-badge { fill: var(--ok); transform-origin: 80px 36px; transform: scale(0); animation: pop .35s var(--ease) .8s forwards; }
.done__env .env-check { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw .3s var(--ease) 1s forwards; }
.done__plan {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left;
  margin: 0 0 18px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--soft); font-size: 14px; color: var(--ink-2);
}
.done__plan b { color: var(--ink); }
.done__hint { font-size: 13px !important; color: var(--dim) !important; margin: 14px 0 8px !important; }
.done__support { font-size: 14px; color: var(--ink-2); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 90;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; animation: fade .2s; }

/* ---------- documents (offer / privacy) ---------- */
.doc { padding-top: 44px; padding-bottom: 72px; }
.doc h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(28px, 5vw, 42px); line-height: 1.05; margin: 0 0 8px; letter-spacing: -0.02em; }
.doc h2 { font-size: 19px; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15px; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--teal); }
.muted { color: var(--dim); }

/* ---------- keyframes ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,157,99,.45); } 70% { box-shadow: 0 0 0 8px rgba(31,157,99,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,99,0); } }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes toast-in { to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pop { to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
