/* ==========================================================================
   Upskill Arabia — Stylesheet
   ========================================================================== */

:root {
  --primary: #4338CA;
  --primary-dark: #362CA0;
  --primary-light: #6366F1;
  --teal: #14B8A6;
  --amber: #F59E0B;
  --dark: #111827;
  --gray-900: #1F2937;
  --gray-700: #4B5563;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --bg-light: #F9FAFB;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 20px 48px rgba(17, 24, 39, 0.14);
  --font-en: 'Inter', 'Poppins', sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
  --font-ar: 'Tajawal', sans-serif;
  --container: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lang-ar {
  font-family: var(--font-ar);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar h4 {
  font-family: var(--font-ar);
  font-weight: 800;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select { font: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(67, 56, 202, 0.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(67, 56, 202, 0.4); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, height 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-sm);
  border-color: var(--gray-100);
  height: 66px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark);
}
body.lang-ar .logo { font-family: var(--font-ar); }
.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-700);
  padding: 8px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }
.lang-toggle .lang-en, .lang-toggle .lang-ar { transition: opacity 0.2s ease; }
body:not(.lang-ar) .lang-toggle .lang-en { color: var(--primary); font-weight: 700; }
body.lang-ar .lang-toggle .lang-ar { color: var(--primary); font-weight: 700; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 90px;
  overflow: hidden;
  background: linear-gradient(180deg, #F5F4FF 0%, #FFFFFF 70%);
}
.hero-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: float 14s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: var(--primary-light); top: -140px; right: -80px; }
.blob-2 { width: 320px; height: 320px; background: var(--teal); bottom: -100px; left: -60px; animation-delay: -4s; }
.blob-3 { width: 260px; height: 260px; background: var(--amber); top: 40%; left: 46%; opacity: 0.18; animation-delay: -8s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-25px, 25px) scale(0.95); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: rgba(67, 56, 202, 0.09);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--gray-700);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num, .stat-suffix {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  display: inline;
}
.stat-suffix { color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--gray-500); margin-top: 2px; display: block; }

.hero-media { position: relative; }
.hero-img-wrap {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.1;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: 0.85rem;
  animation: bob 5s ease-in-out infinite;
}
.floating-card em { color: var(--gray-500); font-style: normal; font-weight: 400; display: block; font-size: 0.75rem; }
.fc-icon { font-size: 1.3rem; }
.card-1 { top: 8%; left: -8%; animation-delay: 0s; }
.card-2 { bottom: 10%; right: -6%; animation-delay: -2.5s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--gray-300);
  border-radius: 20px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--primary);
  border-radius: 4px;
  animation: scrollDown 1.8s ease infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* ---------- Ken Burns (photo motion) ---------- */
@keyframes kenburns {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.09) translate(-1.5%, -1%); }
  100% { transform: scale(1) translate(0, 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-img, .course-img img { animation: kenburns 16s ease-in-out infinite; }
  .course-card:nth-child(2n) .course-img img { animation-duration: 19s; }
  .course-card:nth-child(3n) .course-img img { animation-duration: 22s; }
}
.hero-media:hover .hero-img { animation-play-state: paused; }

/* ---------- Vision 2030 Banner ---------- */
.vision-banner {
  padding: 22px 0;
  background: linear-gradient(90deg, #064E3B 0%, var(--primary) 100%);
}
.vision-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  flex-wrap: wrap;
}
.vision-flag { font-size: 1.4rem; line-height: 1; }
.vision-banner-inner p { color: rgba(255,255,255,0.92); font-size: 0.92rem; margin: 0; }
.vision-banner-inner strong { color: var(--white); }

/* ---------- Logo Strip ---------- */
.logos-strip { padding: 40px 0; border-bottom: 1px solid var(--gray-100); }
.logos-label { text-align: center; color: var(--gray-500); font-size: 0.85rem; margin-bottom: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--gray-300);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.logos-row span { transition: color 0.25s ease; }
.logos-row span:hover { color: var(--primary); }

/* ---------- Section Head ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 12px 0 14px; letter-spacing: -0.01em; }
.section-head p { color: var(--gray-700); font-size: 1.05rem; }

/* ---------- Features ---------- */
.features { padding: 110px 0; background: var(--bg-light); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--white);
  padding: 32px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: var(--white);
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--gray-500); font-size: 0.92rem; }

/* ---------- Teacher Training & Licensing ---------- */
.teacher-training { padding: 110px 0; background: var(--bg-light); }
.tt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tt-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tt-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tt-featured {
  border: 2px solid var(--amber);
  background: linear-gradient(180deg, #FFFBEB 0%, var(--white) 60%);
}
.tt-badge {
  align-self: flex-start;
  background: var(--amber);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.tt-badge-alt { background: rgba(67, 56, 202, 0.09); color: var(--primary); }
.tt-icon { font-size: 2.1rem; margin-bottom: 14px; line-height: 1; }
.tt-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.tt-card > p { color: var(--gray-500); font-size: 0.92rem; margin-bottom: 18px; flex: 1; }
.tt-specializations { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tt-specializations span {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--gray-100);
  padding: 5px 12px;
  border-radius: 999px;
}
.tt-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.tt-price { font-weight: 700; color: var(--primary); font-family: var(--font-heading); font-size: 1.02rem; }
.tt-price em { color: var(--gray-500); font-style: normal; font-weight: 500; font-size: 0.78rem; }
.tt-price-alt { color: var(--amber); }
.tt-note { text-align: center; color: var(--gray-500); font-size: 0.85rem; margin-top: 40px; }

/* ---------- Stats Banner ---------- */
.stats-banner {
  padding: 80px 0;
  background: linear-gradient(120deg, var(--primary) 0%, #5B4FE9 55%, var(--teal) 130%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 20px; }
.stat-block p { color: rgba(255,255,255,0.85); margin-top: 6px; font-size: 0.95rem; }
.stat-num-lg, .plus {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
}
.plus { color: var(--amber); }

/* ---------- How it works ---------- */
.how-it-works { padding: 110px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 26px; left: 16%; right: 16%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gray-300) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(67,56,202,0.28);
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { color: var(--gray-500); font-size: 0.92rem; max-width: 280px; margin: 0 auto; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 110px 0; background: var(--bg-light); }
.testimonial-slider { max-width: 720px; margin: 0 auto; text-align: center; }
.testi-track { position: relative; min-height: 220px; }
.testi-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.testi-card.active { opacity: 1; transform: translateY(0); pointer-events: auto; position: relative; }
.testi-quote { font-size: 1.25rem; font-weight: 500; color: var(--dark); line-height: 1.55; margin-bottom: 28px; }
.testi-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testi-person img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.testi-person div { text-align: left; }
body.lang-ar .testi-person div { text-align: right; }
.testi-person strong { display: block; font-size: 0.95rem; }
.testi-person span { color: var(--gray-500); font-size: 0.82rem; }
.testi-dots { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.testi-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-300); transition: all 0.25s ease; }
.testi-dots button.active { background: var(--primary); width: 24px; border-radius: 5px; }

/* ---------- CTA / Contact ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background: var(--dark);
}
.cta-blobs { position: absolute; inset: 0; z-index: 0; }
.blob-4 { width: 500px; height: 500px; background: var(--primary-light); opacity: 0.25; top: -120px; right: -100px; }
.cta-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.cta-text h2 { color: var(--white); font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 16px; }
.cta-text p { color: rgba(255,255,255,0.72); font-size: 1.05rem; margin-bottom: 26px; }
.cta-points { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; }
.cta-points li { color: rgba(255,255,255,0.9); font-size: 0.95rem; }
.cta-contact-info { display: flex; flex-direction: column; gap: 10px; }
.cta-contact-info a { color: var(--white); font-weight: 600; font-size: 0.95rem; opacity: 0.9; transition: opacity 0.2s ease; }
.cta-contact-info a:hover { opacity: 1; text-decoration: underline; }

.cta-form {
  background: var(--white);
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.cta-form h3 { margin-bottom: 20px; font-size: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.cta-form input, .cta-form select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: border-color 0.2s ease;
  background: var(--white);
}
.cta-form input:focus, .cta-form select:focus { outline: none; border-color: var(--primary); }
.form-note { text-align: center; font-size: 0.78rem; color: var(--gray-500); margin-top: 14px; }
.cta-form .btn-block { margin-top: 4px; }

.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success .fs-icon { font-size: 2.6rem; margin-bottom: 12px; }
.cta-form.submitted form-fields { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: #0B0F19; color: rgba(255,255,255,0.75); padding: 76px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; margin-bottom: 20px; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.88rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-newsletter p { font-size: 0.85rem; margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 0.85rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
  background: var(--primary);
  color: var(--white);
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.newsletter-form button:hover { background: var(--primary-light); }
.footer-bottom { padding: 22px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: var(--white); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }
body.lang-ar .back-to-top { right: auto; left: 26px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].visible { opacity: 1; transform: translateY(0); }

/* ---------- RTL adjustments ---------- */
body.lang-ar { direction: rtl; }
body.lang-ar .main-nav a::after { left: auto; right: 0; }
body.lang-ar .card-1 { left: auto; right: -8%; }
body.lang-ar .card-2 { right: auto; left: -6%; }
body.lang-ar .stat-suffix { margin-right: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .tt-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 480px; margin: 0 auto; }
  .cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .main-nav.open {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 20px 24px 28px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open ul { flex-direction: column; gap: 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .steps { grid-template-columns: 1fr; gap: 46px; }
  .steps::before { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .features-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .tt-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .floating-card { display: none; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
