:root {
  --bg: #040a1c;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.86);
  --ink-3: rgba(255, 255, 255, 0.6);
  --accent: #5fd4ff;
  --button-ink: #21477e;
  --best: #ffffff;
  --popular: #7fdcff;
  --badge-ink: #0b1733;
  --tab: 28px;
  --font: "Unbounded", "Arial Black", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(120% 60% at 85% 100%, rgba(77, 172, 220, 0.75), transparent 60%),
    radial-gradient(90% 50% at 10% 15%, rgba(18, 52, 150, 0.55), transparent 70%),
    linear-gradient(180deg, #030814 0%, #06143a 55%, #0d3a7a 100%);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
}

.glow-a {
  left: -140px;
  top: 52%;
  width: 260px;
  height: 260px;
  background: rgba(80, 210, 255, 0.55);
}

.glow-b {
  right: -120px;
  top: 8%;
  width: 240px;
  height: 240px;
  background: rgba(40, 90, 230, 0.35);
}

.defs {
  position: absolute;
}

.view {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
}

.title {
  margin: 8px 0 0;
  font-size: clamp(28px, 9vw, 38px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.title-small {
  margin-top: 16px;
  text-align: center;
  font-size: 28px;
}

.accent {
  color: var(--accent);
}

.subtitle {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.lead {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-2);
}

.logo {
  display: block;
  width: 104px;
  height: 104px;
  margin: 18px auto 8px;
  border-radius: 28px;
  /* Картинка с тёмным полем вокруг иконки — края растворяются в фоне. */
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}

.logo-small {
  width: 96px;
  height: 96px;
  margin-top: 36px;
}

/* --- тарифы ---------------------------------------------------------------- */

.plans {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.plan {
  position: relative;
  display: block;
  width: 100%;
  padding: var(--tab) 0 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.plan:active {
  transform: scale(0.985);
}

.plan:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 24px;
}

.plan-glass {
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.plan-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.plan-fill {
  fill: url(#glass);
}

.plan-stroke {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
  transition: stroke 0.15s ease;
}

.plan[aria-checked="true"] .plan-stroke {
  stroke: #ffffff;
  stroke-width: 2;
}

.plan[aria-checked="true"] .plan-shape {
  filter: drop-shadow(0 0 10px rgba(190, 228, 255, 0.55));
}

.plan-badge-fill.best {
  fill: var(--best);
}

.plan-badge-fill.popular {
  fill: var(--popular);
}

.plan-term,
.plan-badge {
  position: absolute;
  top: 0;
  height: var(--tab);
  line-height: var(--tab);
  white-space: nowrap;
}

.plan-term {
  left: 0;
  padding: 2px 0 0 26px;
  font-size: 14px;
  font-weight: 600;
}

.plan-badge {
  right: 0;
  padding: 1px 18px 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--badge-ink);
}

.plan-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 10px 20px 12px 24px;
}

.plan-prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.plan-old {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.plan-price {
  font-size: 19px;
  font-weight: 700;
}

.plan-monthly {
  flex-shrink: 0;
  text-align: right;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 700;
}

/* --- кнопка ---------------------------------------------------------------- */

.cta {
  margin-top: 18px;
}

.cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px 34px;
  margin-bottom: -24px;
  border-radius: 22px 22px 0 0;
  background: rgba(12, 30, 74, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}

.cta-button {
  position: relative;
  display: block;
  width: 100%;
  height: 64px;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  color: var(--button-ink);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(10, 30, 80, 0.35);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.cta-button:active {
  transform: scale(0.985);
}

.cta-button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.foot {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink-2);
}

.legal {
  margin: 14px 0 0;
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-3);
}

.legal a {
  color: inherit;
}

.link-button {
  display: block;
  margin: 16px auto 0;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.error {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #ffb4b4;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
