:root {
  --blue: #2f6bff;
  --blue-deep: #12368f;
  --blue-soft: #8eb0ff;
}

html {
  scroll-padding-top: 86px;
}

.site-header {
  top: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

nav {
  gap: 23px;
}

nav a::after {
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.language-switch {
  border-color: rgba(86, 130, 255, 0.48);
}

.language-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 5px 18px rgba(47, 107, 255, 0.3);
}

.language-switch button:disabled,
.language-switch button[aria-disabled="true"] {
  color: rgba(255, 255, 255, 0.28);
  cursor: not-allowed;
  opacity: 0.42;
  filter: grayscale(1);
  box-shadow: none;
}

.hero {
  padding-top: 78px;
}

.hero-shade {
  background:
    linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.96) 24%, rgba(5, 5, 5, 0.64) 49%, rgba(9, 22, 54, 0.08) 78%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.9), transparent 34%),
    radial-gradient(circle at 88% 30%, rgba(47, 107, 255, 0.16), transparent 32%);
}

.hero-grid {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(92, 139, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 139, 255, 0.13) 1px, transparent 1px);
}

.hero-badge > span {
  color: var(--blue-soft);
  border-color: var(--blue);
  box-shadow: inset 0 0 24px rgba(47, 107, 255, 0.12);
}

.hero-stats {
  border-top-color: rgba(92, 139, 255, 0.32);
}

.hero-stats strong,
.feature-grid article > span,
.section-tag > span {
  color: var(--blue-soft);
}

.system-photo {
  border-right: 1px solid rgba(47, 107, 255, 0.28);
}

.system-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(20, 65, 180, 0.12);
}

.journey-track article > span::after {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(47, 107, 255, 0.1);
}

.plans-intro {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.plan-card.featured {
  border-color: var(--blue);
  background: linear-gradient(150deg, rgba(18, 54, 143, 0.34), #131313 54%);
  box-shadow: 0 28px 90px rgba(47, 107, 255, 0.13);
}

.plan-card.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(142, 176, 255, 0.07), transparent 38%);
}

.plan-card.featured > * {
  position: relative;
  z-index: 1;
}

.plan-card.featured .popular {
  position: absolute;
}

.plan-card.featured .plan-top span {
  visibility: hidden;
}

.plan-card:hover {
  border-color: rgba(89, 133, 255, 0.72);
}

.price > span,
.plan-card > a:hover {
  color: var(--blue-soft);
}

.testimonials {
  position: relative;
  overflow: hidden;
  padding: 140px max(24px, calc((100vw - var(--max)) / 2));
  background:
    radial-gradient(circle at 12% 12%, rgba(47, 107, 255, 0.2), transparent 28%),
    linear-gradient(145deg, #101a37 0%, #0b0d13 42%, #080808 100%);
  border-top: 1px solid rgba(79, 126, 255, 0.25);
  border-bottom: 1px solid rgba(79, 126, 255, 0.18);
}

.testimonials::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -240px;
  top: -250px;
  border: 1px solid rgba(142, 176, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(47, 107, 255, 0.025), 0 0 0 144px rgba(47, 107, 255, 0.018);
}

.reviews-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.28fr 1fr;
  gap: 70px;
}

.reviews-heading > div:last-child {
  max-width: 900px;
}

.reviews-heading h2 {
  margin: 0;
  font-size: clamp(46px, 5.4vw, 80px);
}

.reviews-heading > div:last-child > p:last-child {
  max-width: 740px;
  margin: 30px 0 0;
  color: #b6bdd0;
  font-size: 17px;
}

.testimonial-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 72px;
}

.testimonial-card {
  min-height: 292px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  background: rgba(12, 16, 27, 0.82);
  border: 1px solid rgba(142, 176, 255, 0.2);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.testimonial-card:nth-child(2),
.testimonial-card:nth-child(3) {
  border-color: rgba(242, 194, 43, 0.2);
}

.quote-mark {
  height: 52px;
  color: var(--blue-soft);
  font-family: Georgia, serif;
  font-size: 74px;
  line-height: 0.9;
}

.testimonial-card > p {
  max-width: 610px;
  margin: 16px 0 34px;
  color: #e3e7f2;
  font-size: 18px;
  line-height: 1.62;
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.review-meta span {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.13em;
}

.review-meta small {
  color: #8992aa;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.final-cta {
  background: radial-gradient(circle at 50% 65%, rgba(20, 55, 139, 0.38), #080808 62%);
}

.cta-ring {
  border-color: rgba(80, 126, 255, 0.22);
  box-shadow: 0 0 0 70px rgba(47, 107, 255, 0.025), 0 0 0 140px rgba(47, 107, 255, 0.018);
}

@media (max-width: 1120px) {
  nav {
    gap: 16px;
  }

  nav a {
    font-size: 12px;
  }
}

@media (max-width: 1000px) {
  .system-photo {
    border-right: 0;
    border-bottom: 1px solid rgba(47, 107, 255, 0.28);
  }

  .reviews-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .testimonials {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

@media (max-width: 650px) {
  .site-header {
    top: 0;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-bg {
    object-position: 69% center;
  }

  .plans-intro {
    margin-top: 28px;
  }

  .testimonials {
    padding: 90px 22px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .testimonial-card {
    min-height: 270px;
    padding: 27px;
  }

  .testimonial-card > p {
    font-size: 16px;
  }

  .reviews-heading h2 {
    font-size: 45px;
  }

  .review-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plan-card {
    transition: none;
  }
}
