* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
}

.plan-card .center-actions {
  margin-top: auto;
}

.btn {
  text-align: center;
  white-space: normal;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrap {
  gap: 14px;
}

.brand span {
  line-height: 1.2;
}

@media (max-width: 1024px) {
  .container {
    width: min(100% - 28px, 960px);
  }

  .hero-shell,
  .grid-2,
  .grid-3,
  .stat-grid,
  .roadmap,
  .compare-wrap,
  .why-learn-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plan-grid,
  .feature-bullets {
    grid-template-columns: 1fr;
  }

  .plan-card.recommended {
    transform: none;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .container {
    width: calc(100% - 24px);
  }

  .header {
    backdrop-filter: blur(14px);
  }

  .nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .brand {
    max-width: 210px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand span {
    font-size: 14px;
  }

  .change-language-btn {
    padding: 8px 10px;
    font-size: 12px;
    margin-left: 0;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(5, 8, 22, 0.96);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
  }

  body.menu-open .nav {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .program-hero {
    padding: 42px 0 34px;
  }

  .hero-shell,
  .grid-2,
  .grid-3,
  .stat-grid,
  .roadmap,
  .plan-grid,
  .feature-bullets,
  .newsletter-card form,
  .newsletter-features,
  .trust-strip,
  .why-learn-grid,
  .compare-wrap {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .hero-art,
  .content-card,
  .feature-card,
  .stat-card,
  .plan-card,
  .faq-card,
  .newsletter-card,
  .platform-card,
  .join-card,
  .compare-card,
  .road-step,
  .footer-hero {
    padding: 18px;
    border-radius: 18px;
  }

  .hero-panel h1 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.08;
  }

  .hero-subtitle,
  p {
    line-height: 1.75;
  }

  .hero-actions,
  .center-actions,
  .newsletter-cta-row {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn,
  .center-actions .btn,
  .newsletter-cta-row .btn,
  .newsletter-card button {
    width: 100%;
    min-width: 0;
  }

  .program-snapshot-img {
    height: 180px;
  }

  .mini-stats {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .heading-center {
    margin-bottom: 22px;
  }

  .heading-center h2 {
    font-size: clamp(24px, 7vw, 34px);
  }

  .stat-card strong {
    font-size: 24px;
  }

  .newsletter-card {
    padding: 20px;
  }

  .newsletter-card form {
    gap: 10px;
  }

  .newsletter-card input {
    padding: 14px;
  }

  .trusted-carousel {
    padding: 8px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .trusted-track {
    animation: none;
    width: max-content;
  }

  .trusted-item {
    min-width: 230px;
    max-width: 230px;
    scroll-snap-align: start;
  }

  .trusted-btn {
    display: none;
  }

  .footer-top,
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-bottom {
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 20px);
  }

  .language-card {
    padding: 20px;
    border-radius: 20px;
  }

  .language-actions {
    grid-template-columns: 1fr;
  }

  .lang-btn {
    padding: 15px;
    font-size: 16px;
  }

  .brand {
    max-width: 175px;
  }

  .brand span {
    font-size: 12px;
  }

  .hero-panel h1 {
    font-size: 30px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .mini-stats,
  .newsletter-features,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .program-snapshot-img {
    height: 160px;
  }

  .plan-card h3 {
    font-size: 24px;
  }

  .feature-bullets li {
    font-size: 14px;
  }

  .trusted-item {
    min-width: 220px;
    max-width: 220px;
  }

  .trusted-item img {
    width: 48px;
    height: 48px;
  }

  .footer-logo-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
  }
}