/* ============================================================
   Happ VPN — design system
   ============================================================ */

:root {
  --bg: #05060c;
  --bg-soft: #080a12;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2fb;
  --muted: #9aa4ba;
  --muted-2: #6d778c;
  --brand: #7b5cff;
  --brand-deep: #5b3ce8;
  --brand-2: #35d6ff;
  --accent: #3ee0a5;
  --danger: #ff6b81;
  --warn: #ffc46b;
  --tg: #2aabee;
  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
  --shadow-glow: 0 0 0 1px rgba(123, 92, 255, 0.35), 0 24px 70px -24px rgba(123, 92, 255, 0.55);
  --container: 1180px;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(123, 92, 255, 0.20), transparent 62%),
    radial-gradient(800px 520px at 92% 4%, rgba(53, 214, 255, 0.13), transparent 60%),
    radial-gradient(700px 700px at 50% 110%, rgba(62, 224, 165, 0.07), transparent 65%);
  pointer-events: none;
}

::selection { background: rgba(123, 92, 255, 0.45); color: #fff; }

/* [hidden] должен побеждать display: flex/grid у компонентов */
[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

svg { width: 1em; height: 1em; }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 940px; }

.section { padding: 96px 0; position: relative; }
.section--pricing { padding-top: 84px; }

.section__head { max-width: 720px; margin: 0 0 44px; }
.section__head h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 14px; }
.section__lead { color: var(--muted); font-size: 17px; max-width: 620px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9a8ff;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.grad {
  background: linear-gradient(100deg, #b7a5ff 0%, var(--brand) 35%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px 0;
  transition: background 0.3s var(--ease), border-color 0.3s, backdrop-filter 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(5, 6, 12, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner { display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--brand) 0%, #4b2fd6 55%, #1c1140 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 24px -10px rgba(123, 92, 255, 0.9);
  color: #fff;
  font-size: 20px;
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__text { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand__text span { color: var(--muted); font-weight: 500; }
.brand--sm .brand__mark { width: 32px; height: 32px; border-radius: 10px; }
.brand--sm .brand__mark svg { width: 17px; height: 17px; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 2px;
  transition: right 0.3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { right: 0; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge--demo {
  color: #ffd9a3;
  border-color: rgba(255, 196, 107, 0.35);
  background: rgba(255, 196, 107, 0.10);
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--panel-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.3s, opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn__icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary {
  border: none;
  background: linear-gradient(120deg, #8b6dff 0%, var(--brand) 40%, #4f8bff 100%);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(123, 92, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn--primary:hover {
  box-shadow: 0 18px 44px -14px rgba(123, 92, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: none;
}

.btn--ghost { background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); }

.btn--soft {
  background: rgba(123, 92, 255, 0.14);
  border-color: rgba(123, 92, 255, 0.35);
  color: #cdbcff;
}
.btn--soft:hover { background: rgba(123, 92, 255, 0.22); }

.btn--tg {
  background: linear-gradient(120deg, #2aabee, #229ed9);
  border: none;
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(42, 171, 238, 0.9);
}

.btn--danger {
  background: rgba(255, 107, 129, 0.14);
  border-color: rgba(255, 107, 129, 0.4);
  color: #ffb3bf;
}
.btn--danger:hover:not([disabled]) { background: rgba(255, 107, 129, 0.22); }

.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--sm { padding: 9px 14px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- user chip ---------- */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.user-chip:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.09); }
.user-chip__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), #3f7bff);
  font-size: 13px; font-weight: 700; color: #fff;
  overflow: hidden;
}
.user-chip__avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip__name { font-size: 14px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip__chevron { width: 16px; height: 16px; color: var(--muted); }

/* mobile burger */
.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.8px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.hero__orb--1 {
  width: 420px; height: 420px;
  left: -80px; top: -120px;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.65), transparent 65%);
  animation: floatOrb 16s ease-in-out infinite;
}
.hero__orb--2 {
  width: 380px; height: 380px;
  right: -60px; top: 40px;
  background: radial-gradient(circle, rgba(53, 214, 255, 0.42), transparent 65%);
  animation: floatOrb 20s ease-in-out infinite reverse;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.6;
}
@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, 28px, 0) scale(1.08); }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: clamp(36px, 4.6vw, 58px);
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin-bottom: 20px;
}
.hero__lead {
  color: var(--muted);
  font-size: 17.5px;
  max-width: 520px;
  margin-bottom: 30px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 520px;
}
.hero__stats div { border-left: 1px solid var(--line); padding-left: 14px; }
.hero__stats dt { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.hero__stats dd { color: var(--muted-2); font-size: 13px; margin: 2px 0 0; }

.hero__art { position: relative; display: flex; justify-content: center; padding: 34px 8px; min-width: 0; }

/* Длинные строки (ссылки, суммы) не должны раздувать колонки грида */
.hero__inner > *,
.plans > *,
.grid > *,
.checkout > *,
.cab__grid > *,
.steps > * { min-width: 0; }

/* keycard */
.keycard {
  position: relative;
  width: min(100%, 420px);
  max-width: 100%;
  padding: 24px;
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02) 42%, rgba(123, 92, 255, 0.10)),
    rgba(10, 12, 22, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  transform: rotate(-2.2deg);
  transition: transform 0.6s var(--ease);
  animation: cardIn 0.9s var(--ease) both;
}
.keycard:hover { transform: rotate(0deg) translateY(-4px); }
@keyframes cardIn {
  from { opacity: 0; transform: rotate(-6deg) translateY(26px) scale(0.96); }
  to { opacity: 1; transform: rotate(-2.2deg) translateY(0) scale(1); }
}
.keycard::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(123, 92, 255, 0.55), transparent 40%, rgba(53, 214, 255, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.keycard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.keycard__status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); display: inline-block; }
.dot--live { background: var(--accent); box-shadow: 0 0 0 4px rgba(62, 224, 165, 0.14); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(62, 224, 165, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(62, 224, 165, 0.04); }
}
.keycard__plan {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 5px 10px;
  border-radius: 999px;
  color: #d6ccff;
  background: rgba(123, 92, 255, 0.18);
  border: 1px solid rgba(123, 92, 255, 0.35);
}
.keycard__days { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; }
.keycard__days b { font-size: 44px; }
.keycard__meta { color: var(--muted-2); font-size: 13px; margin: 4px 0 16px; }
.keycard__bar {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-bottom: 18px;
}
.keycard__bar i {
  display: block;
  height: 100%;
  width: var(--w, 60%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 18px rgba(123, 92, 255, 0.7);
}
.keycard__url {
  display: flex;
  overflow: hidden;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: #b9c2d6;
  margin-bottom: 16px;
}
.keycard__lock { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.keycard__url code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.keycard__copy { margin-left: auto; color: var(--muted-2); flex-shrink: 0; }
.keycard__copy svg { width: 15px; height: 15px; }
.keycard__apps { display: flex; gap: 8px; }
.app-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #c6cde0;
}
.app-chip--icon { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; }
.app-chip--icon svg { width: 14px; height: 14px; }

/* floating chips */
.float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 15px;
  background: rgba(12, 15, 26, 0.9);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  font-size: 13px;
  animation: floaty 7s ease-in-out infinite;
  z-index: 2;
}
.float b { display: block; font-size: 13px; font-weight: 600; }
.float small { display: block; color: var(--muted-2); font-size: 11px; }
.float--loc { left: -26px; bottom: -8px; }
.float--wl { right: -26px; top: -22px; animation-delay: -2.4s; }
.float__icon { width: 22px; height: 22px; color: #a594ff; }
.flag { font-size: 20px; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- trust ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  padding: 20px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.trust__label { color: var(--muted-2); font-size: 13px; letter-spacing: 0.02em; }
.trust__apps { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-left: auto; }
.trust__app {
  font-weight: 600;
  font-size: 15px;
  color: #b7bfd2;
  opacity: 0.72;
  transition: opacity 0.2s, color 0.2s;
}
.trust__app:hover { opacity: 1; color: #fff; }

/* ---------- features ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feature {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 120px at 20% 0%, rgba(123, 92, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.18); }
.feature:hover::before { opacity: 1; }
.feature__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  margin-bottom: 18px;
  color: #c9bbff;
  background: rgba(123, 92, 255, 0.14);
  border: 1px solid rgba(123, 92, 255, 0.28);
  font-size: 22px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ---------- segmented ---------- */
.segmented {
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 30px;
}
.segmented__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, color 0.2s, box-shadow 0.25s;
}
.segmented__btn svg { width: 16px; height: 16px; }
.segmented__btn:hover { color: var(--text); }
.segmented__btn.is-active {
  color: #fff;
  background: linear-gradient(120deg, rgba(123, 92, 255, 0.9), rgba(79, 139, 255, 0.85));
  box-shadow: 0 10px 24px -12px rgba(123, 92, 255, 0.9);
}

/* ---------- plans ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014));
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.plan:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); }
.plan__badge {
  position: absolute;
  top: -11px; left: 22px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0714;
  background: linear-gradient(100deg, #b8a6ff, #6ee7ff);
  box-shadow: 0 8px 20px -10px rgba(123, 92, 255, 0.9);
}
.plan__title { font-size: 15px; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.plan__amount { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; }
.plan__cur { font-size: 18px; color: var(--muted); font-weight: 500; }
.plan__old { color: var(--muted-2); text-decoration: line-through; font-size: 14px; }
.plan__per { color: var(--muted-2); font-size: 13px; margin-bottom: 18px; }
.plan__features { display: grid; gap: 9px; margin-bottom: 22px; font-size: 14px; color: #c4ccdd; }
.plan__features li { display: flex; align-items: flex-start; gap: 9px; }
.plan__features svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.plan__cta { margin-top: auto; }

.plan--featured {
  border-color: rgba(123, 92, 255, 0.55);
  background:
    radial-gradient(300px 160px at 70% 0%, rgba(123, 92, 255, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-glow);
}
.plan--featured .plan__cta .btn { width: 100%; }

.pricing-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted-2);
  font-size: 13.5px;
}
.pricing-note svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--muted); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 40px; }
.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.step__num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a594ff;
  margin-bottom: 14px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }


.pay-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}
.pay-strip__label { color: var(--muted-2); font-size: 13px; margin-right: 4px; }
.pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: #cfd6e6;
}
.pay-pill svg { width: 16px; height: 16px; color: #a99bff; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; }
.faq__item {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s, background 0.25s;
}
.faq__item[open] { border-color: rgba(123, 92, 255, 0.35); background: rgba(123, 92, 255, 0.05); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq__item[open] summary svg { transform: rotate(180deg); color: #b9a8ff; }
.faq__item p { padding: 0 20px 20px; color: var(--muted); font-size: 15px; }

/* ---------- cta ---------- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 42px;
  border-radius: 28px;
  border: 1px solid rgba(123, 92, 255, 0.3);
  background:
    radial-gradient(500px 220px at 10% 0%, rgba(123, 92, 255, 0.28), transparent 70%),
    radial-gradient(400px 200px at 95% 100%, rgba(53, 214, 255, 0.16), transparent 70%),
    rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.cta h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.cta p { color: var(--muted); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; padding: 54px 0 30px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.footer__inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; margin-bottom: 40px; }
.footer__brand p { color: var(--muted-2); font-size: 14px; max-width: 260px; margin-top: 14px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color 0.2s; }
.footer__cols a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 13px;
}

/* ---------- page / checkout ---------- */
.page { padding: 40px 0 90px; }
.page__title { font-size: clamp(30px, 4vw, 42px); margin: 18px 0 10px; }
.page__lead { color: var(--muted); margin-bottom: 32px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s, gap 0.2s;
}
.back-link svg { width: 16px; height: 16px; transform: rotate(180deg); }
.back-link:hover { color: var(--text); gap: 11px; }

.checkout { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 20px; align-items: start; }
.checkout__main { display: grid; gap: 16px; }
.checkout__aside { position: sticky; top: 92px; display: grid; gap: 16px; }

.panel {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}
.panel--muted { background: rgba(255, 255, 255, 0.02); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel__head h2, .panel__head h3 { font-size: 17px; }
.panel h3 { font-size: 17px; margin-bottom: 10px; }

.h2-inline { font-size: 20px; margin-bottom: 16px; }

/* payment methods */
.methods { display: grid; gap: 10px; }
.method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
  text-align: left;
  width: 100%;
}
.method:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); }
.method.is-active {
  border-color: rgba(123, 92, 255, 0.6);
  background: rgba(123, 92, 255, 0.10);
  box-shadow: 0 0 0 1px rgba(123, 92, 255, 0.25) inset;
}
.method__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 20px;
  flex-shrink: 0;
}
.method__icon svg { width: 22px; height: 22px; color: #c2b5ff; }
.method__body { flex: 1; min-width: 0; }
.method__title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.method__note { color: var(--muted-2); font-size: 13px; margin-top: 2px; }
.method__radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.6px solid var(--line-strong);
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.method.is-active .method__radio { border-color: #a48cff; }
.method.is-active .method__radio::after {
  content: "";
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: linear-gradient(140deg, #a48cff, #6ee7ff);
}
.method__tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(62, 224, 165, 0.12);
  border: 1px solid rgba(62, 224, 165, 0.3);
  color: #7ff0c4;
}

/* promo */
.promo { display: flex; gap: 10px; }
.input {
  flex: 1;
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}
.input::placeholder { color: var(--muted-2); }
.input:focus {
  outline: none;
  border-color: rgba(123, 92, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.16);
}
.input--area { resize: vertical; min-height: 104px; line-height: 1.5; }
.hint { color: var(--muted-2); font-size: 13px; margin-top: 10px; }
.hint--ok { color: #7ff0c4; }
.hint--err { color: #ffb3bf; }

.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: #c4ccdd; font-size: 14.5px; }
.ticks svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.ticks--sm li { font-size: 13.5px; }
.ticks--sm svg { width: 15px; height: 15px; }

/* summary */
.summary { display: grid; gap: 14px; }
.summary__title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); }
.summary__plan { display: flex; gap: 14px; align-items: center; }
.summary__badge {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(123, 92, 255, 0.35), rgba(53, 214, 255, 0.18));
  border: 1px solid rgba(123, 92, 255, 0.4);
  color: #d9d0ff;
  font-size: 21px;
  flex-shrink: 0;
}
.summary__name { font-weight: 600; font-size: 15.5px; }
.summary__sub { color: var(--muted-2); font-size: 13px; }
.summary__rows { display: grid; gap: 9px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.summary__row b { color: var(--text); font-weight: 600; }
.summary__row--discount b { color: #7ff0c4; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary__total span { color: var(--muted); font-size: 14px; }
.summary__total b { font-size: 28px; letter-spacing: -0.04em; }
.summary .btn { width: 100%; }
.summary__note { color: var(--muted-2); font-size: 12px; text-align: center; line-height: 1.45; }

/* ---------- success ---------- */
.success { display: grid; gap: 18px; }
.success__top {
  text-align: center;
  padding: 40px 26px 32px;
  border-radius: 28px;
  border: 1px solid rgba(62, 224, 165, 0.28);
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(62, 224, 165, 0.16), transparent 70%),
    rgba(255, 255, 255, 0.03);
}
.success__icon {
  width: 68px; height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(62, 224, 165, 0.14);
  border: 1px solid rgba(62, 224, 165, 0.4);
  color: var(--accent);
  animation: popIn 0.6s var(--ease) both;
}
.success__icon svg { width: 32px; height: 32px; }
@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success h1 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 10px; }
.success__lead { color: var(--muted); max-width: 520px; margin: 0 auto; }
.success__meta { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: var(--muted-2); }
.success__meta b { color: var(--text); font-weight: 600; }

.key-box {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.32);
}
.key-box__label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.key-box__label span { font-size: 13px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted-2); }
.key-box__value {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
}
.key-box__value code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; color: #cfd8ea; }

.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.app-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.app-btn:hover { border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }
.app-btn__icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(123, 92, 255, 0.16);
  border: 1px solid rgba(123, 92, 255, 0.3);
  color: #cabbff;
  flex-shrink: 0;
}
.app-btn__icon svg { width: 18px; height: 18px; }
.app-btn b { display: block; font-size: 14.5px; font-weight: 600; }
.app-btn small { display: block; color: var(--muted-2); font-size: 12px; }

.steps-mini { display: grid; gap: 10px; counter-reset: sm; }
.steps-mini li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #c4ccdd;
  font-size: 14.5px;
}
.steps-mini li::before {
  counter-increment: sm;
  content: counter(sm);
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(123, 92, 255, 0.18);
  border: 1px solid rgba(123, 92, 255, 0.35);
  font-size: 11.5px;
  font-weight: 700;
  color: #cabbff;
  flex-shrink: 0;
}

/* ---------- cabinet ---------- */
.cab__head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(400px 160px at 10% 0%, rgba(123, 92, 255, 0.18), transparent 70%),
    rgba(255, 255, 255, 0.03);
}
.cab__avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), #3f7bff);
  font-weight: 700; font-size: 20px; color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.cab__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cab__who h1 { font-size: 22px; margin-bottom: 3px; }
.cab__who p { color: var(--muted-2); font-size: 14px; }
.cab__head .btn { margin-left: auto; }

.cab__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.cab__col { display: grid; gap: 16px; }
.cab__aside { display: grid; gap: 16px; }

.subs { display: grid; gap: 14px; }
.sub-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}
.sub-card--expired { opacity: 0.72; }
.sub-card--expired::after {
  content: "истекла";
  position: absolute;
  top: 16px; right: 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffb3bf;
}
.sub-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sub-card__title { font-size: 18px; font-weight: 600; }
.sub-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(62, 224, 165, 0.12);
  border: 1px solid rgba(62, 224, 165, 0.3);
  color: #7ff0c4;
}
.sub-card__status--off { background: rgba(255, 196, 107, 0.1); border-color: rgba(255, 196, 107, 0.3); color: #ffd9a3; }
.sub-card__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.sub-card__meta b { color: var(--text); font-weight: 600; }
.sub-card__bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-bottom: 18px; }
.sub-card__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.sub-card__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.sub-card__autopay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

.switch {
  position: relative;
  width: 46px; height: 26px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
  padding: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #cfd6e6;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.switch[aria-checked="true"] { background: linear-gradient(120deg, var(--brand), #4f8bff); border-color: transparent; }
.switch[aria-checked="true"]::after { transform: translateX(20px); background: #fff; }

/* table */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left;
  color: var(--muted-2);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 10px 10px 0;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 11px 10px 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: #c8d0e2; }
.table tr:last-child td { border-bottom: none; }
.table b { color: var(--text); font-weight: 600; }
.pay-status { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.pay-status--paid { background: rgba(62, 224, 165, 0.12); color: #7ff0c4; }
.pay-status--pending { background: rgba(255, 196, 107, 0.12); color: #ffd9a3; }
.pay-status--failed { background: rgba(255, 107, 129, 0.12); color: #ffb3bf; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 9, 0.72);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease both;
}
.modal__dialog {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #12141f, #0a0c14);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 1);
  animation: modalIn 0.35s var(--ease) both;
}
.modal__dialog--pay { width: min(100%, 500px); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.modal__close:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.modal__close svg { width: 16px; height: 16px; }
.modal__body { padding: 30px 28px 28px; }
.modal__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  margin-bottom: 18px;
  background: rgba(42, 171, 238, 0.14);
  border: 1px solid rgba(42, 171, 238, 0.35);
  color: #7fd4ff;
  font-size: 26px;
}
.modal__icon--warn { background: rgba(255, 196, 107, 0.12); border-color: rgba(255, 196, 107, 0.3); color: #ffd9a3; }
.modal__body h2 { font-size: 24px; margin-bottom: 10px; }
.modal__lead { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }
.modal__actions .btn { flex: 1 1 170px; }
.modal__note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.5;
}
.modal__note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }

.divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--muted-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.field { display: block; margin-bottom: 12px; }
.field__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.field__label b { color: #ff9aa8; }

/* pay modal */
.pay-head { text-align: center; margin-bottom: 22px; }
.pay-head h2 { font-size: 22px; margin-bottom: 8px; }
.pay-head p { color: var(--muted); font-size: 14px; }
.pay-amount { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; text-align: center; margin: 6px 0 4px; }
.pay-timer {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 auto 20px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 196, 107, 0.1);
  border: 1px solid rgba(255, 196, 107, 0.28);
  color: #ffd9a3;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.pay-timer svg { width: 15px; height: 15px; }
.pay-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  padding: 20px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
  background:
    radial-gradient(120px 120px at 50% 38%, rgba(123, 92, 255, 0.18), transparent 72%),
    rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.pay-qr__icon { width: 44px; height: 44px; color: #b9a8ff; opacity: 0.9; }
.pay-qr span { font-size: 11.5px; color: var(--muted); line-height: 1.45; max-width: 140px; }
.pay-actions { display: grid; gap: 10px; }
.pay-note { color: var(--muted-2); font-size: 12.5px; text-align: center; margin-top: 14px; line-height: 1.5; }

/* toast */
.toasts {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 200;
  display: grid;
  gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 19, 30, 0.96);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.95);
  font-size: 14px;
  animation: toastIn 0.35s var(--ease) both;
}
.toast--ok { border-color: rgba(62, 224, 165, 0.35); }
.toast--err { border-color: rgba(255, 107, 129, 0.4); }
.toast svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.toast--ok svg { color: var(--accent); }
.toast--err svg { color: var(--danger); }
.toast--info svg { color: var(--brand-2); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ---------- авторизация по e-mail ---------- */
.auth-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.auth-tabs__btn {
  flex: 1;
  padding: 9px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, color 0.2s;
}
.auth-tabs__btn:hover { color: var(--text); }
.auth-tabs__btn.is-active {
  color: #fff;
  background: linear-gradient(120deg, rgba(123, 92, 255, 0.92), rgba(79, 139, 255, 0.85));
  box-shadow: 0 10px 24px -14px rgba(123, 92, 255, 0.9);
}

.auth-form { display: grid; gap: 12px; }
.auth-form[hidden] { display: none; }
.auth-form .btn { margin-top: 4px; }
.field__opt { margin-left: 6px; font-style: normal; font-size: 12px; color: var(--muted-2); }

.panel--soft {
  background: rgba(123, 92, 255, 0.07);
  border-color: rgba(123, 92, 255, 0.3);
}

#cabLink:empty { display: none; }

.link-code {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  background: rgba(0, 0, 0, 0.28);
}
.link-code:empty { display: none; }
.link-code__label {
  margin-bottom: 6px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.link-code__value {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #e6dcff;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* статичный режим: ?noanim и пользователи без JS видят контент сразу */
html.no-anim .reveal,
html.no-anim .reveal.is-in { opacity: 1; transform: none; }
html.no-anim *,
html.no-anim *::before,
html.no-anim *::after { animation: none !important; transition: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .hero__inner { gap: 34px; }
  .hero__stats { gap: 12px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout { grid-template-columns: 1fr; }
  .checkout__aside { position: static; }
  .cab__grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .section { padding: 76px 0; }
  .nav {
    position: fixed;
    inset: 68px 16px auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(10, 12, 20, 0.98);
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 60px -30px #000;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    margin: 0;
    z-index: 90;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 10px; font-size: 16px; border-radius: 10px; }
  .nav a:hover { background: rgba(255, 255, 255, 0.05); }
  .nav a::after { display: none; }
  .burger { display: block; }
  #loginBtn span { display: none; }
  #loginBtn { padding: 10px; }
  .hero { padding: 32px 0 56px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; margin-bottom: 8px; }
  .keycard { transform: rotate(-1.4deg) scale(0.96); }
  .float--loc { left: 0; bottom: -6px; }
  .float--wl { right: 0; top: -8px; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .cta { padding: 28px; }
  .trust__apps { margin-left: 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero__title { font-size: clamp(34px, 9vw, 44px); }
  .hero__lead { font-size: 16px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .grid--3, .plans { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .section__head { margin-bottom: 30px; }
  .plan--featured { order: -1; }
  .apps { grid-template-columns: 1fr; }
  .modal__body { padding: 26px 20px 22px; }
  .summary__total b { font-size: 24px; }
  .cab__head .btn { margin-left: 0; width: 100%; }
  .segmented { width: 100%; }
  .segmented__btn { flex: 1; justify-content: center; padding: 10px 8px; font-size: 13px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .keycard__days { font-size: 28px; }
  .keycard__days b { font-size: 36px; }
  /* на узких экранах карточка без наклона и без висящих плашек */
  .badge--demo { display: none; }
  .hero__art { padding: 6px 0 18px; }
  .keycard { transform: none; animation: none; }
  .keycard:hover { transform: none; }
  .float { display: none; }
  .plan__amount { font-size: 30px; }
  .app-btn { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
