:root {
  --blue-900: #0a1f5c;
  --blue-800: #0033a0;
  --blue-700: #1e3fa8;
  --blue-600: #2b50c7;
  --blue-500: #3d63e0;
  --blue-100: #e8eeff;
  --blue-50: #f4f7ff;
  --gray-700: #4a5568;
  --gray-600: #5c6b7a;
  --gray-500: #718096;
  --white: #ffffff;
  --shadow-soft: 0 8px 32px rgba(43, 80, 199, 0.1);
  --shadow-card: 0 4px 24px rgba(10, 31, 92, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--blue-900);
  background: var(--blue-50);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Background orbit decoration */
.bg-orbit {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #dce6ff 0%, #f4f7ff 45%, #ffffff 100%);
  pointer-events: none;
}

.bg-orbit::before,
.bg-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(43, 80, 199, 0.12);
  border-radius: 50%;
}

.bg-orbit::before {
  width: 140%;
  height: 60%;
  top: -15%;
  left: -20%;
  transform: rotate(-8deg);
}

.bg-orbit::after {
  width: 90%;
  height: 45%;
  bottom: 10%;
  right: -25%;
  transform: rotate(12deg);
}

.star {
  position: absolute;
  width: 12px;
  height: 12px;
  color: var(--blue-600);
  opacity: 0.35;
}

.star--tl { top: 8%; left: 12%; }
.star--tr { top: 14%; right: 10%; }
.star--br { bottom: 18%; right: 14%; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(244, 247, 255, 0.85);
  border-bottom: 1px solid rgba(43, 80, 199, 0.08);
}

.header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
}

.logo-link img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo-link span {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-600);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--blue-600);
  background: rgba(43, 80, 199, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(43, 80, 199, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 6px 24px rgba(43, 80, 199, 0.45);
}

.btn--outline {
  background: var(--white);
  color: var(--blue-600);
  border: 2px solid rgba(43, 80, 199, 0.2);
}

.btn--outline:hover {
  border-color: var(--blue-600);
  background: var(--blue-50);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn--telegram::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69a.2.2 0 00-.05-.18c-.06-.05-.14-.03-.21-.02-.09.02-1.49.95-4.22 2.79-.4.27-.76.41-1.08.4-.36-.01-1.04-.2-1.55-.37-.63-.2-1.13-.31-1.09-.66.02-.18.27-.36.74-.55 2.92-1.27 4.86-2.11 5.83-2.51 2.78-1.16 3.35-1.36 3.73-1.36.08 0 .27.02.39.12.1.08.13.19.14.27-.01.06.01.24 0 .38z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69a.2.2 0 00-.05-.18c-.06-.05-.14-.03-.21-.02-.09.02-1.49.95-4.22 2.79-.4.27-.76.41-1.08.4-.36-.01-1.04-.2-1.55-.37-.63-.2-1.13-.31-1.09-.66.02-.18.27-.36.74-.55 2.92-1.27 4.86-2.11 5.83-2.51 2.78-1.16 3.35-1.36 3.73-1.36.08 0 .27.02.39.12.1.08.13.19.14.27-.01.06.01.24 0 .38z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Telegram в шапке — тот же стиль, что у «Получить 5 дней» */
.nav .btn--primary.btn--telegram {
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  margin-left: 0.5rem;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(43, 80, 199, 0.45);
}

.nav .btn--primary.btn--telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(43, 80, 199, 0.55);
}

.nav .btn--primary.btn--telegram::before {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--blue-600);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* Main layout */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Animated centered logo */
.logo-hero {
  position: relative;
  width: min(220px, 52vw);
  height: min(220px, 52vw);
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-hero__core {
  position: relative;
  z-index: 2;
  width: 58%;
  height: 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  animation: logo-float 4s ease-in-out infinite;
}

.logo-hero__core img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.logo-hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  pointer-events: none;
}

.logo-hero__ring--outer {
  inset: 0;
  border-color: rgba(43, 80, 199, 0.12);
  border-top-color: var(--blue-600);
  border-right-color: rgba(43, 80, 199, 0.35);
  animation: orbit-spin 14s linear infinite;
}

.logo-hero__ring--inner {
  inset: 14%;
  border-style: dashed;
  border-color: rgba(43, 80, 199, 0.2);
  border-bottom-color: var(--blue-500);
  animation: orbit-spin-reverse 9s linear infinite;
}

.logo-hero__glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 80, 199, 0.12) 0%, transparent 70%);
  animation: logo-pulse 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes orbit-spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes logo-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-hero__ring--outer,
  .logo-hero__ring--inner,
  .logo-hero__core,
  .logo-hero__glow {
    animation: none;
  }
}

.hero__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--blue-600);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero__tagline {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Feature cards */
.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.features {
  display: grid;
  gap: 1rem;
  max-width: 520px;
  margin: 0 auto 3rem;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  padding: 1.125rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.feature-card__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.feature-card__graphic {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  border-radius: 12px;
}

.feature-card__graphic img {
  display: block;
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-900);
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
}

.about__text h2 {
  font-size: 1.5rem;
  color: var(--blue-800);
  margin-bottom: 1rem;
}

.about__text p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.about__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.about__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.about__list li::before {
  content: "✦";
  color: var(--blue-600);
  font-size: 0.75rem;
  margin-top: 0.35rem;
}

.about__visual {
  display: flex;
  justify-content: center;
}

.orbit-ring {
  position: relative;
  width: 200px;
  height: 200px;
}

.orbit-ring img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.orbit-ring::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(43, 80, 199, 0.15);
  border-radius: 50%;
  border-top-color: var(--blue-600);
  animation: spin 12s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Promo */
.promo {
  text-align: center;
  background: linear-gradient(135deg, var(--white) 0%, var(--blue-100) 100%);
  border: 1px solid rgba(43, 80, 199, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-card);
}

.promo h2 {
  font-size: 1.25rem;
  color: var(--blue-900);
  margin-bottom: 0.5rem;
}

.promo p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step__num {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--blue-800);
}

.step p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* CTA block */
.cta-block {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  border-radius: 24px;
  color: var(--white);
}

.cta-block h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cta-block p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-block .btn--outline {
  background: var(--white);
  border-color: transparent;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--gray-500);
  font-size: 0.875rem;
  border-top: 1px solid rgba(43, 80, 199, 0.08);
}

.footer a {
  color: var(--blue-600);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Payment page */
.page-header {
  text-align: center;
  padding: 1rem 0 2.5rem;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--blue-600);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--gray-600);
  max-width: 520px;
  margin: 0 auto;
}

/* Trial / guest access */
.trial-section {
  max-width: 640px;
  margin: 0 auto 3rem;
}

.trial-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(43, 80, 199, 0.1);
  text-align: center;
}

.trial-card h2 {
  font-size: 1.35rem;
  color: var(--blue-800);
  margin-bottom: 0.5rem;
}

.trial-card > p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.trial-panel[hidden] {
  display: none !important;
}

.trial-loading {
  padding: 2rem 0;
}

.trial-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border: 3px solid var(--blue-100);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.trial-steps {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.trial-step {
  background: var(--blue-50);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.trial-step__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

.trial-step h3 {
  font-size: 1rem;
  color: var(--blue-900);
  margin-bottom: 0.35rem;
}

.trial-step p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}

.trial-code {
  display: block;
  background: var(--white);
  border: 1px dashed rgba(43, 80, 199, 0.25);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  color: var(--blue-800);
  word-break: break-all;
  margin-bottom: 0.75rem;
}

.trial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trial-actions .btn {
  flex: 1;
  min-width: 140px;
}

.trial-meta {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 1rem;
}

.trial-message {
  font-size: 0.9rem;
  color: var(--blue-700);
  margin-bottom: 1rem;
}

.trial-error {
  color: #c53030;
  margin-bottom: 1rem;
}

.trial-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 1.25rem;
  line-height: 1.5;
}

.trial-choice {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}

.trial-option {
  padding: 1.35rem 1.15rem;
  background: var(--blue-50);
  border: 1px solid rgba(43, 80, 199, 0.12);
  border-radius: var(--radius-md);
}

.trial-option__text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue-800);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.trial-option .btn {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.trial-proxy-result__title {
  font-size: 1.1rem;
  color: var(--blue-800);
  margin-bottom: 0.5rem;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn--ghost {
  background: transparent;
  color: var(--gray-600);
  box-shadow: none;
}

.btn--ghost:hover {
  color: var(--blue-600);
}

/* Mobile nav */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(43, 80, 199, 0.1);
    box-shadow: var(--shadow-card);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a,
  .nav .btn {
    width: 100%;
    text-align: center;
  }

  .nav .btn--primary.btn--telegram {
    margin-left: 0;
    margin-top: 0.5rem;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
  }

  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__list li {
    justify-content: center;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}
