/* =========================================================================
   TRUSTNODE landing — light version (website-design-light.md).
   All colours are tokens on :root; one accent (violet) for buttons/selection.
   ========================================================================= */

:root {
  --bg: #f5f3ea;
  --soft: #e9ece2;
  --line: #d8ddd3;
  --ink: #1d2b26;
  --ink-2: #56665e;
  --dim: #78877e;
  --teal: #24584b;
  --teal-hover: #183f36;
  --teal-soft: #e6eddf;
  --teal-ink: #214d41;
  --ok: #7c9b3e;
  --err: #c0322a;

  /* phone (stays dark, as in the reference) */
  --ph-body: #172c27;
  --ph-screen: #203b33;
  --ph-plate: #31584b;
  --ph-ring: #c8dc77;
  --ph-text: #f0f1e8;
  --ph-dim: #bac8b8;

  --display: "Space Grotesk", system-ui, sans-serif;
  --text: "Inter", 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; } }
/* phones / tablets: the nav is hidden, «Мой доступ» stays reachable from the header */
.hdr-access { margin-left: auto; flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; background: none; border: 0; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.hdr-access svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hdr-access + .btn { margin-left: 12px; }
@media (max-width: 519px) { .header__row { gap: 8px; } .hdr-access + .btn { margin-left: 4px; } }
@media (max-width: 419px) {
  .hdr-access { padding: 0 8px; } .hdr-access + .btn { margin-left: 0; }
  .hdr-access svg { width: 24px; height: 24px; } .hdr-access span { display: none; }
}
@media (max-width: 359px) { .logo { letter-spacing: .08em; } .header .btn { padding: 0 12px; } }
@media (min-width: 900px) { .hdr-access { display: none; } .hdr-access + .btn { margin-left: 4px; } }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
/* the first screen and the countries marquee are not for copying; the devices are a picture (no long-press menu) */
.hero, .mq { -webkit-user-select: none; user-select: none; }
.hero__phone { pointer-events: none; -webkit-touch-callout: none; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.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: #d95316; 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(239,107,39,.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; }
/* the highlighted first point (signal bars instead of the check) */
.ticks li.ticks__hl { flex-basis: 100%; color: var(--teal-ink); font-weight: 600; }
.ticks li.ticks__hl::before {
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19v-2M10 19v-6M15 19v-10M20 19v-14' fill='none' stroke='%2324584b' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.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) */
/* devices: laptop + phone, one scene. Designed at a fixed size (--sw × --sh) and scaled with
   `scale` (not `zoom`: iOS Safari zooms boxes but not text). app.js sets --z = column width / --sw.
   Phones and portrait tablets (<1024px): under the ticks. ≥1024px: at the side of the text. */
/* Geometry: phone and laptop are centred on the same horizontal axis; --app-pad shifts the «Подключено» block so it is
   centred in the part of the laptop screen the phone doesn't cover (pad = phone width − screen inset). */
.hero__phone { --sw: 620px; --sh: 400px; --lw: 540px; --lt: 33px; --app-h: 300px; --list-w: 212px; --ps: .6; --pt: 21px; --app-pad: 64px;
  position: relative; width: 100%; max-width: var(--sw); height: calc(var(--sh) * var(--z, .6)); margin: 8px auto 0; justify-self: center; }
.scene { position: absolute; top: 0; left: 0; width: var(--sw); height: var(--sh); scale: var(--z, .6); transform-origin: 0 0; }  /* box width = sw·z, so left:0 is centred */
.scene .laptop { position: absolute; right: 0; top: var(--lt); width: var(--lw); }
.scene .phone { position: absolute; left: 0; top: var(--pt); width: 290px; scale: var(--ps); transform-origin: 0 0; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; }
  .hero__phone { --sw: 700px; --sh: 460px; --lw: 640px; --lt: 33px; --app-h: 360px; --list-w: 232px; --ps: .7; --pt: 21px; --app-pad: 112px; margin: 0; }
}
/* wide screens: the whole first screen gets wider and stays centred; the devices get the extra room */
@media (min-width: 1440px) {
  .hero .wrap, .header .wrap { max-width: calc(1400px + 2 * var(--pad)); }  /* the header follows the wider first screen */
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
/* desktops (mouse): scale by `zoom` — the browser lays the scene out again at the new size, so text and edges stay
   sharp even above 100%. Touch devices keep `scale` (iOS Safari zooms boxes but not text). */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .hero__phone { max-width: none; }
  .scene { scale: none; zoom: var(--z, .7); }
  /* the phone keeps `scale` here too: a `zoom` nested in the scene's zoom left its pinned screen unzoomed in Safari
     (text and pill at full size inside a small body, 13" Mac, 24.10) */
}
.laptop__screen { margin: 0 24px; padding: 10px; border-radius: 16px 16px 6px 6px; background: var(--ph-body); box-shadow: 0 40px 60px -36px rgba(21,15,48,.5); }
.app { height: var(--app-h, 300px); display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: var(--ph-screen); color: var(--ph-text); }
.app__bar { position: relative; display: flex; align-items: center; gap: 12px; height: 28px; padding: 0 12px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07); }
.app__dots { display: flex; gap: 5px; }
.app__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.2); }
.app__bar b { position: absolute; left: 50%; translate: -50% 0; font-family: var(--display); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.app__bar b span { color: var(--ph-ring); }
.app__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) var(--list-w, 212px); }
.app__main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding-left: var(--app-pad); }
.app__srv { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--ph-plate); font-size: 11px; font-weight: 600; white-space: nowrap; }
.app__ring { width: 100px; height: 100px; display: grid; place-items: center; border-radius: 50%; border: 5px solid var(--ph-ring); color: var(--ph-ring); }
.app__ring svg { width: 36px; height: 36px; }
.app__main b { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.app__main small { color: var(--ph-dim); font-size: 10.5px; white-space: nowrap; }
.app__list { list-style: none; margin: 0; padding: 10px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid rgba(255,255,255,.07); }
/* the rows share the column height (no empty tail): 7 servers on phones, 8 on wider screens */
.app__list li { flex: 1 1 0; min-height: 0; }
.app__list li:nth-child(n+8) { display: none; }
@media (min-width: 1024px) { .app__list li:nth-child(n+8) { display: flex; } }
.app__list li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.app__list .nm { display: inline-flex; align-items: center; }
.app__list li.is-on { background: var(--ph-plate); box-shadow: inset 0 0 0 1px rgba(167,139,250,.45); }
.app__list small { margin-left: auto; color: var(--ph-ring); font-size: 10px; font-weight: 700; }
.app .fl { width: 20px; height: 13px; flex: none; overflow: hidden; border-radius: 2px; }
.app .fl svg { width: 100%; height: 100%; }
.laptop__base { position: relative; height: 14px; border-radius: 0 0 14px 14px; background: #aeb6c6; box-shadow: inset 0 1px 0 #c9cfdb, 0 16px 24px -14px rgba(21,15,48,.4); }
.laptop__base::after { content: ""; position: absolute; top: 0; left: 50%; width: 76px; height: 5px; translate: -50% 0; border-radius: 0 0 6px 6px; background: #8f99ad; }
.phone {
  position: relative; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 10px; background: var(--ph-body);
  box-shadow: 0 50px 80px -40px rgba(21,15,48,.55), 0 0 0 1px rgba(21,15,48,.28), inset 0 0 0 1px rgba(255,255,255,.07);
  transform: rotate(-3deg);
}
.phone__notch { position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 80px; height: 22px; border-radius: 20px; background: #0a0618; z-index: 2; }
/* pinned to the body by inset (not height:100%): Safari with `zoom` resolves the aspect-ratio box and a percentage
   child height differently, and the screen hung below the body's bottom edge on Macs */
.phone__screen {
  position: absolute; inset: 10px; 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; }
.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(21,15,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; }
}
/* Mi Browser (Xiaomi / POCO) only: nested scale + rotate layers and the endless pill animation leaked stray coloured
   pixels under the phone. There the scene is drawn as one layer and the pill stays put; other browsers are untouched. */
.is-mibrowser .scene { will-change: transform; backface-visibility: hidden; }
.is-mibrowser .scene .phone { backface-visibility: hidden; }
.is-mibrowser .pill { backface-visibility: hidden; animation: pill-in .6s var(--ease) 1.5s forwards; }

/* ---------- 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); }

/* ---------- checkout without JavaScript (<noscript> form; html.no-js is removed by app.js) ---------- */
.no-js .buy { display: none; }
.nojs-buy { display: grid; gap: 14px; max-width: 640px; padding: 20px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--bg); }
.nojs-buy .field { display: grid; gap: 6px; }
.nojs-buy__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.nojs-buy select.field__input { appearance: auto; }
.nojs-buy .btn { width: 100%; }

/* ---------- 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(21,15,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(217,83,22,.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; }
.plan__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
/* ≥1200: name and price share a row, the chip wraps under the name → same top height on all cards */
@media (min-width: 1200px) { .plan__top { min-height: 52px; align-items: flex-start; } }
.plan__deal { padding: 2px 7px; border: 1px solid #ddd0fb; border-radius: 6px; color: var(--teal-ink); font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.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); }
.pay__row { align-items: center; }
.pay__sum { margin: 0 0 12px; display: grid; gap: 2px; }
.pay__sum b { font-size: 17px; }
.pay__sum span { font-size: 14px; color: var(--ink-2); }
.pay__note { margin: 0; font-size: 13px; color: var(--ink-2); max-width: 620px; }
.pay__note a { color: var(--teal); font-weight: 600; }

/* ---------- 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; }
}
@media (max-width: 759px) {
  .step { padding-left: 68px; }
  .step__num { position: absolute; left: 0; top: 0; }
  .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 51s 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(21,15,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(21,15,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; }
/* «ПОДКЛЮЧИТЕСЬ» is wider than the card on 320–400px phones → scale with the screen there */
@media (max-width: 420px) { .final .h2 { font-size: 6.2vw; } }
.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) {
  /* logo / legal line / filler rows in column 1; the support button sits in the legal line's row, centred on it */
  .footer__grid { grid-template-columns: 1.3fr 1fr auto; grid-template-rows: auto auto 1fr auto; row-gap: 10px; align-items: start; }
  .footer__grid > div:first-child { display: contents; }
  .footer__grid > div:first-child > .logo { grid-column: 1; grid-row: 1; justify-self: start; }
  .footer__grid .footer__legal { grid-column: 1; grid-row: 2; margin: 0; align-self: center; }
  .footer__links { grid-column: 2; grid-row: 1 / 4; }
  .footer__support { grid-column: 3; grid-row: 2; align-self: center; }
  .footer__copy { grid-row: 4; margin-top: 16px; }
}
.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(21,15,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(21,15,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; }
.modal__body .note { margin: 12px 0 16px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--soft); color: var(--ink-2); font-size: 14px; }

.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(239,107,39,.45); } 70% { box-shadow: 0 0 0 8px rgba(239,107,39,0); } 100% { box-shadow: 0 0 0 0 rgba(239,107,39,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; }
}

/* Trustnode visual identity: restrained field notes, clear type and functional color. */
body { background: #f5f3ea; }
.header { background: rgba(245,243,234,.96); border-bottom-color: #d8ddd3; }
.logo { letter-spacing: .12em; }
.logo b { color: #24584b; }
.hero { position: relative; isolation: isolate; background: #f5f3ea; padding-top: clamp(48px, 7vw, 88px); }
.hero::before { content: ""; position: absolute; z-index: -1; right: 0; top: 0; bottom: 0; width: 43%; background: #e7eadf; border-left: 1px solid #d8ddd3; }
.hero__text, .hero__phone { position: relative; z-index: 1; }
.h1, .h2, .btn, .logo, .step__num, .plan__name, .plan__price, .row h3 { font-family: var(--text); }
.h1 { max-width: 680px; font: 700 clamp(40px, 6.2vw, 72px)/.98 var(--display); letter-spacing: -.06em; text-transform: none; }
.h1 span { display: inline; color: #24584b; font-style: normal; font-weight: 500; }
.h2 { font: 700 clamp(28px, 3.8vw, 44px)/1.08 var(--display); text-transform: none; letter-spacing: -.045em; }
.btn { border-radius: 8px; box-shadow: none; background: #24584b; text-transform: none; letter-spacing: 0; }
.btn:hover { background: #183f36; }
.btn--ghost, .btn--soft { box-shadow: none; }
.status { border-radius: 4px; background: transparent; color: #24584b; border: 0; border-left: 2px solid #8ea74c; padding: 3px 10px; }
.status__dot { box-shadow: none; animation: none; }
.section--soft { background: #e9ece2; }
.section { border-top-color: #d8ddd3; }
.plan { border-radius: 8px; border-color: #d8ddd3; background: #fbfaf5; box-shadow: none; }
.plan:hover { border-color: #7d958b; }
.plan.is-active { border-color: #24584b; background: #eaf0e6; box-shadow: inset 0 0 0 1px #24584b; }
.plan.is-active .plan__price { color: #24584b; }
.periods { background: #edf0e9; border-radius: 6px; }
.periods__thumb { border-radius: 4px; background: #24584b; }
.period { border-radius: 4px; }
.plan.is-active .period.is-active { color: #fff; }
.plan.is-active .periods__thumb { background: #24584b; box-shadow: none; }
.badge-pop { background: #dbe8b8; color: #29452f; border-radius: 3px; }
.pay, .pay__inner { border-radius: 8px; }
.pay { background: #183f36; color: #f6f4eb; }
.pay .muted, .pay__methods { color: #c6d2c6; }
.pay .input { background: #fbfaf5; border-color: #fbfaf5; color: #1d2b26; border-radius: 6px; }
.pay__sum span, .pay__note { color: #c6d2c6; }
.pay__note a { color: #d5e99a; }
.buybar { background: #183f36; border-color: #31594c; color: #f6f4eb; }
.buybar__info span { color: #c6d2c6; }
.footer { background: #183f36; color: #d7dfd4; border-top: 0; }
.footer .logo, .footer .footer__label { color: #f6f4eb; }
.footer .logo b { color: #c8dc77; }
.footer__links a, .footer__links .linkbtn { color: #c6d2c6; }
.footer__links a:hover, .footer__links .linkbtn:hover { color: #fff; }
.footer__copy { color: #c6d2c6; }
.faq details { border-color: #d8ddd3; }
.faq summary::after { color: #24584b; }
@media (max-width: 760px) {
  .hero { background: #f5f3ea; }
  .hero::before { top: 48%; bottom: 0; width: 100%; height: 52%; border-left: 0; border-top: 1px solid #d8ddd3; }
  .hero__phone { margin-top: 26px; }
}

/* Keep text legible on the dark green checkout surface. */
.period.is-active { color: #fff; }
.pay .consent { color: #f6f4eb; }
.pay .consent a { color: #d5e99a; }
