:root {
  --bg: #020617;
  --bg-elevated: #0f172a;
  --bg-card: #111827;
  --border: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --purple: #a855f7;
  --glow: 0 0 40px rgba(34, 211, 238, 0.25);
  --radius: 16px;
  --container: 1120px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(2, 6, 23, 0.82);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo--sm {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.logo__glow {
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.35));
}

.nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--cyan);
}

.header__cta {
  margin-left: 0.25rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  flex-shrink: 0;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  color: #041016;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: #041016;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.28);
}

.btn--primary:hover {
  box-shadow: 0 10px 36px rgba(59, 130, 246, 0.4);
}

.btn--ghost {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.08);
}

.btn--lg {
  padding: 0.9rem 1.35rem;
}

.btn--block {
  width: 100%;
}

.btn--telegram {
  color: #fff;
  background: linear-gradient(135deg, #2aabee, #229ed9);
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 15%, rgba(168, 85, 247, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 90%, rgba(59, 130, 246, 0.1), transparent 50%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero__sub {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.glow-frame {
  position: relative;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.7), rgba(168, 85, 247, 0.55), rgba(59, 130, 246, 0.6));
  box-shadow: var(--glow), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.glow-frame::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: calc(var(--radius) + 12px);
  background: radial-gradient(circle at 50% 40%, rgba(34, 211, 238, 0.22), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.glow-frame img {
  width: 100%;
  border-radius: calc(var(--radius) - 1px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--bg-elevated);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.65), rgba(2, 6, 23, 0.2));
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefit {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.7);
}

.benefit__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.benefit h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Features */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature--reverse .feature__body {
  order: 2;
}

.feature--text {
  grid-template-columns: 1fr;
  max-width: 48rem;
}

.feature__num {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--purple);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.feature__body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.feature__body p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.85);
}

.price-card--popular {
  border-color: rgba(34, 211, 238, 0.55);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.12), transparent 40%),
    rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.12);
  transform: scale(1.03);
}

.price-card--best {
  border-color: rgba(168, 85, 247, 0.45);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  color: #041016;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.price-card__badge--best {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

.price-card h3 {
  margin: 0.25rem 0 0.25rem;
  font-size: 1.35rem;
}

.price-card__period {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-card__price {
  margin: 0 0 1.25rem;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-card__price span {
  font-size: 1.5rem;
  margin-right: 0.15rem;
  color: var(--cyan);
}

.price-card ul {
  margin-bottom: 1.5rem;
  flex: 1;
}

.price-card li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.95rem;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}

/* Contact */
.contact-block {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background:
    radial-gradient(ellipse at top, rgba(34, 211, 238, 0.12), transparent 55%),
    rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 50px rgba(34, 211, 238, 0.08);
  text-align: center;
}

.contact-block h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
}

.contact-block__hint {
  margin: 0 0 1.75rem;
  color: var(--muted);
}

.email-box {
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  text-align: left;
}

.email-box__label {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.email-box__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.email-box__value {
  flex: 1;
  min-width: 0;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--cyan);
  word-break: break-all;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */
.footer {
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid var(--border);
  background: #01040f;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__desc {
  margin: 0;
  color: var(--muted);
  max-width: 22rem;
}

.footer h4 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.footer__contacts li,
.footer__links li {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer__contacts a,
.footer__links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer__contacts a:hover,
.footer__links a:hover {
  color: var(--cyan);
}

.footer__bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.footer__bottom p {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
}

/* Legal pages */
.legal {
  padding: 4rem 0 5rem;
}

.legal h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.legal .meta {
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 100;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: #0f766e;
  color: #ecfeff;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid,
  .feature,
  .feature--reverse,
  .pricing,
  .benefits,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .feature--reverse .feature__body {
    order: 0;
  }

  .price-card--popular {
    transform: none;
  }

  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .lang-switch {
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    padding: 1rem;
    flex-direction: column;
    background: rgba(2, 6, 23, 0.96);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav.open {
    display: flex;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 3rem;
  }

  .contact-block {
    padding: 1.25rem;
  }

  .email-box__row .btn {
    width: 100%;
  }

  .contact-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .toast {
    transition: none;
  }
}
