* {
  box-sizing: border-box;
}

:root {
  --bg: #f3f6fb;
  --panel: rgba(255, 255, 255, 0.82);
  --card: #eef3fb;
  --border: rgba(61, 107, 208, 0.14);
  --text: #1e2754;
  --muted: #67779a;
  --primary: #3f7cf3;
  --primary-dark: #255fd0;
  --shadow: 0 24px 60px rgba(34, 62, 115, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(63, 124, 243, 0.09), transparent 32%),
    radial-gradient(circle at bottom right, rgba(37, 95, 208, 0.08), transparent 28%),
    var(--bg);
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  opacity: 0.25;
}

.background-glow-left {
  top: -120px;
  left: -160px;
  background: rgba(63, 124, 243, 0.28);
}

.background-glow-right {
  bottom: -160px;
  right: -140px;
  background: rgba(112, 137, 255, 0.22);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 32px 0 44px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 48px;
}

.site-logo {
  display: block;
  max-width: 320px;
  height: auto;
}

/* старый овал больше не нужен */
.brand-badge,
.brand-text {
  display: none;
}

.hero-copy {
  max-width: 760px;
  text-align: center;
  margin: 56px auto 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-copy p,
.reviews-header p,
.cta-box p,
.step-content p,
.contact-note,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy p {
  max-width: 700px;
  margin: 22px auto 0;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.hero-actions,
.panel-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 30px rgba(63, 124, 243, 0.28);
}

.btn-secondary {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(63, 124, 243, 0.16);
}

.btn-large {
  min-height: 62px;
  padding: 0 28px;
}

.steps-section {
  padding: 20px 0 40px;
}

.panel {
  padding: clamp(24px, 3vw, 44px);
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.section-title h2,
.reviews-header h2,
.cta-box h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-icon {
  font-size: 1.45rem;
  color: var(--primary);
}

.steps-grid {
  display: grid;
  gap: 20px;
}

.step-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 18px 20px;
  background: rgba(239, 243, 251, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 24px rgba(63, 124, 243, 0.24);
  margin-top: 2px;
}

.step-content h3 {
  margin: 0 0 8px;
  font-size: clamp(1.12rem, 1.7vw, 1.45rem);
}

.step-content p {
  margin: 0;
  font-size: 1rem;
}

.contact-note {
  margin: 4px 0 0;
  text-align: center;
  width: 100%;
}

.telegram-btn {
  padding-left: 22px;
  padding-right: 24px;
}

.telegram-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
}

.telegram-icon svg {
  width: 100%;
  height: 100%;
}

.reviews-section {
  padding: 52px 0 30px;
}

.reviews-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.reviews-marquee {
  position: relative;
  overflow: hidden;
  padding: 10px 0 22px;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.reviews-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.reviews-marquee:hover .reviews-track {
  animation-play-state: paused;
}

.review-card {
  width: min(360px, 82vw);
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(63, 124, 243, 0.12);
  box-shadow: 0 20px 50px rgba(36, 57, 95, 0.09);
  backdrop-filter: blur(10px);
}

.review-card p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: #39486b;
}

.review-rating {
  margin-bottom: 14px;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: #ffb648;
}

.review-author {
  font-weight: 700;
}

.cta-section {
  padding: 26px 0 72px;
}

.cta-box {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,0.86), rgba(237,243,255,0.9));
  border: 1px solid rgba(63, 124, 243, 0.16);
  box-shadow: var(--shadow);
}

.cta-box p {
  margin: 14px 0 0;
}

.site-footer {
  padding: 0 0 34px;
  text-align: center;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); }
}

@media (max-width: 860px) {
  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-box .btn {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 20px;
  }

  .hero-copy {
    margin-top: 38px;
  }

  .section-title h2,
  .reviews-header h2,
  .cta-box h2 {
    font-size: 1.85rem;
  }

  .step-card {
    grid-template-columns: 1fr;
  }

  .step-number {
    margin-top: 0;
  }

  .contact-note {
    font-size: 0.95rem;
  }

  .btn, .btn-large {
    width: 100%;
  }
}
