/* Section‑specific styles */

/* ============ SECTION ============ */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo-link:hover {
  text-decoration: none;
}
.logo-icon {
  flex-shrink: 0;
}
.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 0;
}
.logo-accent {
  color: var(--text-primary);
}

.nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.nav a {
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.2s;
}
.nav a:hover {
  color: var(--accent-primary);
}
.nav a:hover::after {
  width: 100%;
}

.header-cta {
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.25rem;
}
.burger span {
  width: 26px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  padding-top: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: left;
  position: relative;
  z-index: 99;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.hero-content {
  flex: 1;
  max-width: 580px;
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-actions .btn {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

/* Hero visual – CSS globe */
.hero-visual {
  flex-shrink: 0;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.globe {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(168, 85, 247, 0.35),
      transparent 60%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(192, 132, 252, 0.2),
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(24, 24, 27, 0.6),
      var(--bg-primary) 70%
    );
  box-shadow:
    0 0 60px 10px var(--accent-glow),
    inset 0 0 80px rgba(168, 85, 247, 0.15);
  border: 1px solid var(--border-color);
  position: relative;
  animation: globePulse 4s ease-in-out infinite;
}
.globe::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 15px,
      rgba(168, 85, 247, 0.07) 15px,
      rgba(168, 85, 247, 0.07) 16px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 15px,
      rgba(168, 85, 247, 0.06) 15px,
      rgba(168, 85, 247, 0.06) 16px
    );
}
@keyframes globePulse {
  0%,
  100% {
    box-shadow: 0 0 60px 10px var(--accent-glow);
  }
  50% {
    box-shadow: 0 0 90px 25px var(--accent-glow);
  }
}

/* ============ FEATURES ============ */
.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  padding: 2rem 1.5rem;
  text-align: center;
}
.feature-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ============ HOW IT WORKS ============ */
.how-it-works .steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
}
.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
  z-index: 1;
  position: relative;
}
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: var(--accent-primary);
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.copyright {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ============ GLASS CARD ============ */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px var(--accent-glow);
  border-color: var(--accent-primary);
}

/* --- Новая секция: Статистика --- */
.stats-section {
  padding-top: 0;
  margin-top: -40px; /* Чтобы прижать к герою */
  position: relative;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Секция: Сервисы (Список) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

#services .section-title + p {
  text-align: center;
  color: var(--text-secondary);
  max-width: 640px;
  margin: -1.5rem auto 2rem;
  line-height: 1.6;
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.service-name {
  font-weight: 600;
  font-size: 1rem;
}

.service-status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.service-status.available {
  background: rgba(0, 255, 150, 0.15);
  color: #00ff96;
}

.services-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 15px;
  text-align: center;
  opacity: 0.6;
}

/* --- Секция: Технологии --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.tech-block {
  padding: 25px;
  text-align: center;
}

.tech-block h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--accent-primary);
}

.tech-block p {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Секция: FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.faq-item summary {
  font-weight: 600;
  padding: 15px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent-primary);
  transition: 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 0 15px 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Бейдж в герое --- */
.hero-badge {
  display: inline-block;
  background: rgba(0, 255, 150, 0.12);
  color: #00ff96;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 255, 150, 0.2);
  letter-spacing: 0.3px;
}

.hero-trust {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Иконки в карточках технологий --- */
.tech-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.tech-icon svg {
  width: 48px;
  height: 48px;
}

/* --- Бейдж в герое --- */
.hero-badge {
  display: inline-block;
  background: rgba(0, 255, 150, 0.12);
  color: #00ff96;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 255, 150, 0.2);
  letter-spacing: 0.3px;
}

.hero-trust {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust i {
  color: var(--accent-primary);
}

/* ============ TRIAL SECTION ============ */
.trial-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.trial-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 150, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 150, 0.12);
  color: #00ff96;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0, 255, 150, 0.25);
}
.trial-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.trial-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.trial-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.trial-step {
  text-align: center;
  padding: 1rem;
}
.trial-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 255, 150, 0.15);
  color: #00ff96;
  font-weight: 700;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(0, 255, 150, 0.3);
}
.trial-step h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}
.trial-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.trial-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 1rem;
}

/* ============ REFERRAL SECTION ============ */
.referral-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}
.referral-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}
.referral-card {
  padding: 2rem 1.5rem;
  text-align: center;
}
.referral-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}
.referral-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.referral-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.referral-cta {
  text-align: center;
}

/* ============ REVIEWS SECTION ============ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.review-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.review-stars {
  color: #ffb800;
  font-size: 0.95rem;
  letter-spacing: 2px;
}
.review-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary, #c084fc)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.review-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.review-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* ============ LEGAL NOTE ============ */
.legal-note {
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
}
.legal-note strong {
  color: var(--text-primary);
}

/* ============ SCROLL REVEAL ============ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Адаптивность (Медиа-запросы) --- */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
  }

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

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-number {
    font-size: 1.8rem;
  }

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
  .nav {
    display: flex;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    flex-direction: column;
    width: 240px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
    padding: 1rem;
    transform: translateX(100%);
    opacity: 0;
    transition:
      transform 0.35s ease,
      opacity 0.35s ease;
    pointer-events: none;
  }
  .nav.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav a {
    display: block;
    padding: 0.5rem 0;
  }
  .burger {
    display: flex;
  }
  .header-cta {
    display: none;
  }
  .hero-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
  .hero-visual {
    width: 200px;
    height: 200px;
  }
  .trial-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .referral-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }
  .hero-visual {
    width: 160px;
    height: 160px;
  }
  .hero-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
