* {
  box-sizing: border-box;
}

:root {
  --bg: #07111f;
  --bg-soft: #0f1c2f;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #dbe5f0;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.narrow {
  width: min(850px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 229, 240, 0.9);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.96rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: 0;
  background: #eef4ff;
  color: var(--primary);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

.hero {
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.28), transparent 35%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  padding: 72px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.eyebrow,
.section-label {
  display: inline-block;
  background: #e8f1ff;
  color: var(--primary);
  border: 1px solid #cfe0ff;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 16px;
}

.hero h1,
.legal-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.hero p,
.section-heading p,
.content-block p,
.legal-hero p,
.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: #b8cae0;
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card,
.info-card,
.image-card,
.cta-box,
.phone-card {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px;
  border: 1px solid #edf2f7;
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.phone-card.large {
  max-width: 360px;
  padding: 14px;
  border: 1px solid #e5edf8;
  background: linear-gradient(180deg, #ffffff, #eef5ff);
}

.phone-card img {
  border-radius: 28px;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--surface-2);
}

.trust {
  padding-top: 24px;
  padding-bottom: 0;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.trust-bar span {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 38px;
}

.two-col.reverse {
  direction: rtl;
}

.two-col.reverse > * {
  direction: ltr;
}

.courses-layout {
  display: grid;
  gap: 34px;
}

.courses-layout .content-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.courses-layout .feature-list {
  display: inline-block;
  text-align: left;
}

.course-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.course-image-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 12px;
}

.course-image-card img {
  width: 100%;
  height: 500px;
  object-fit: contain;
}

.enroll-btn {
  min-width: 170px;
  margin-bottom: 6px;
}

.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.content-block h2,
.section-heading h2,
.cta-box h2,
.legal-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.image-card {
  border: 1px solid #e7eef7;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.image-card img {
  border-radius: 16px;
}

.feature-list {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.feature-list li {
  margin-bottom: 10px;
}

.section-heading {
  text-align: center;
  margin: 0 auto 34px;
  max-width: 760px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.info-card {
  border: 1px solid #edf2f7;
  padding: 26px;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.cta-section {
  background: linear-gradient(180deg, #0f172a, #111f38);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(255,255,255,0.05));
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.1);
}

.cta-box p,
.cta-box .section-label {
  color: rgba(255,255,255,0.86);
}

.cta-box .section-label {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}

.site-footer {
  background: #07111f;
  color: rgba(255,255,255,0.88);
  padding-top: 54px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.9fr;
  gap: 26px;
}

.footer-brand {
  color: var(--white);
}

.footer-text,
.footer-links a {
  color: rgba(255,255,255,0.72);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 26px;
  padding: 18px 0 22px;
  color: rgba(255,255,255,0.62);
}

.legal-main {
  background: #f8fafc;
  min-height: 100vh;
}

.legal-hero {
  padding: 72px 0 20px;
}

.legal-content {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.legal-content h2 {
  margin-top: 26px;
  font-size: 1.5rem;
}

.legal-content h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.legal-content ul {
  padding-left: 20px;
  color: var(--muted);
}

.compact-footer {
  margin-top: 40px;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .course-images,
  .cards-grid,
  .footer-grid,
  .hero-stats,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .cta-box {
    display: grid;
  }

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

  .hero-media {
    order: -1;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255,255,255,0.98);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .static-nav {
    position: static;
    display: flex;
    flex-direction: row;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

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

  .course-image-card img {
    height: 420px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 70px 0;
  }

  .hero {
    padding-top: 46px;
  }

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

  .legal-content {
    padding: 22px;
  }

  .static-nav {
    gap: 12px;
    font-size: 0.92rem;
  }

  .course-image-card img {
    height: 400px;
  }
}
