/* ============================================================
   夸朵 Cream — 少儿编程品牌官网（纯 CSS 版）
   科技蓝主色 + 活力橙点缀，低龄童趣感
   ============================================================ */

:root {
  /* 品牌主色 */
  --primary: oklch(0.52 0.22 255);
  --primary-foreground: oklch(0.98 0.01 255);
  --accent: oklch(0.72 0.19 55);
  --accent-foreground: oklch(0.15 0.02 55);

  --background: oklch(0.99 0.005 255);
  --foreground: oklch(0.22 0.03 255);
  --card: #ffffff;
  --muted: oklch(0.96 0.008 255);
  --muted-fg: oklch(0.52 0.02 255);
  --border: oklch(0.92 0.01 255);

  /* 辅助色 */
  --sky: oklch(0.78 0.13 240);
  --mint: oklch(0.82 0.12 160);
  --sun: oklch(0.85 0.15 85);
  --bubble: oklch(0.75 0.15 350);

  /* Hero 渐变 */
  --hero-from: oklch(0.45 0.20 255);
  --hero-to: oklch(0.38 0.16 280);

  --radius: 0.75rem;
  --shadow-sm: 0 1px 3px oklch(0.22 0.03 255 / 0.08);
  --shadow-md: 0 8px 24px -6px oklch(0.22 0.03 255 / 0.12);
  --shadow-lift: 0 20px 40px -12px oklch(0.52 0.22 255 / 0.25);

  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; }

/* ===== 文字渐变 ===== */
.text-gradient-accent {
  background: linear-gradient(135deg, var(--accent), var(--sun));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.text-gradient-primary {
  background: linear-gradient(135deg, var(--primary), var(--sky));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 600; transition: all .2s ease; white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-xl { padding: 16px 40px; font-size: 18px; height: 56px; }
.btn-block { width: 100%; border-radius: var(--radius); padding: 12px; font-size: 14px; }
.btn-accent { background: var(--accent); color: var(--accent-foreground); box-shadow: 0 8px 20px -6px oklch(0.72 0.19 55 / 0.5); }
.btn-accent:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-ghost { border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-outline { border: 1px solid var(--border); background: var(--background); color: var(--foreground); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 64px;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: oklch(0.99 0.005 255 / 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand-logo { width: 180px;  object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 18px; font-weight: 800; color: #fff; transition: color .3s; }
.brand-slogan { font-size: 10px; font-weight: 600; letter-spacing: .5px; color: var(--sun); transition: color .3s; }
.navbar.scrolled .brand-name { color: var(--foreground); }
.navbar.scrolled .brand-slogan { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 12px; font-size: 14px; font-weight: 500; border-radius: 10px;
  color: rgba(255,255,255,.85); transition: all .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.12); }
.navbar.scrolled .nav-links a { color: var(--muted-fg); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); background: oklch(0.52 0.22 255 / 0.06); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.navbar.scrolled .nav-toggle span { background: var(--foreground); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: var(--card); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  flex-direction: column; padding: 12px 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px; font-size: 15px; font-weight: 500; color: var(--muted-fg); border-radius: 10px; }
.mobile-menu a:hover { color: var(--primary); background: oklch(0.52 0.22 255 / 0.06); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  background-size: 200% 200%; animation: gradient-shift 8s ease infinite;
  padding-top: 64px;
}
.stars { position: absolute; inset: 0; pointer-events: none; }
.star { position: absolute; color: rgba(255,255,255,.4); font-size: 16px; animation: twinkle 3s ease-in-out infinite; }

.hero-inner {
  display: flex; align-items: center; gap: 40px; min-height: 88vh;
  padding-top: 80px; padding-bottom: 80px; position: relative;
}
.hero-copy { flex: 1; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px); color: #fff; font-size: 14px; font-weight: 500;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-title { font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1.15; color: #fff; }
.hero-slogan { margin-top: 16px; font-size: clamp(18px, 2.5vw, 22px); font-weight: 600; color: rgba(255,255,255,.9); }
.hero-desc { margin: 16px auto 0; max-width: 460px; color: rgba(255,255,255,.7); font-size: 16px; }
.hero-btns { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats { margin-top: 48px; display: flex; gap: 40px; justify-content: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.stat-suffix { font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: var(--accent); }
.stat-label { margin-top: 4px; font-size: 14px; color: rgba(255,255,255,.7); }

.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; }
.hero-glow { position: absolute; inset: 10%; border-radius: 50%; background: rgba(255,255,255,.1); filter: blur(60px); }
.hero-img { width: 100%; max-width: 480px; border-radius: 20px; object-fit: contain; animation: float 4s ease-in-out infinite; position: relative; }
.hero-wave { color: var(--background); line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: 60px; }

/* ===== Section 通用 ===== */
.section { padding: 80px 0; }
.section-soft { background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--foreground); margin-top: 16px; }
.section-title.left { text-align: left; }
.section-sub { margin: 12px auto 0; max-width: 560px; color: var(--muted-fg); font-size: 16px; }
.eyebrow { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.eyebrow-primary { background: oklch(0.52 0.22 255 / 0.1); color: var(--primary); }
.eyebrow-accent { background: oklch(0.72 0.19 55 / 0.15); color: var(--accent); }

/* ===== 课程卡片 ===== */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.course-bar { height: 6px; }
.grad-sky { background: linear-gradient(90deg, var(--sky), var(--primary)); }
.grad-orange { background: linear-gradient(90deg, var(--accent), var(--sun)); }
.grad-mint { background: linear-gradient(90deg, var(--mint), var(--sky)); }
.course-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--muted); }
.course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.course-card:hover .course-media img { transform: scale(1.05); }
.age-tag { position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: 10px; background: oklch(0.99 0.005 255 / 0.9); backdrop-filter: blur(4px); font-size: 14px; font-weight: 700; color: var(--primary); }
.course-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.course-name { font-size: 22px; font-weight: 800; color: var(--foreground); }
.course-tagline { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--accent); }
.course-desc { margin: 12px 0 16px; font-size: 14px; color: var(--muted-fg); line-height: 1.7; }
.course-list { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.course-list li { font-size: 14px; color: var(--foreground); opacity: .85; }
.course-body .btn-block { margin-top: auto; }

/* ===== 作品卡片 ===== */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.work-card { position: relative; overflow: hidden; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-md); }
.work-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover .work-media img { transform: scale(1.08); }
.work-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.3), transparent);
  opacity: 0; transition: opacity .3s;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-overlay h3 { color: #fff; font-size: 18px; font-weight: 700; }
.work-overlay .work-author { color: rgba(255,255,255,.85); font-size: 14px; }
.work-overlay .work-desc { color: rgba(255,255,255,.7); font-size: 12px; margin-top: 4px; }
.work-tag { align-self: flex-start; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-foreground); font-size: 12px; font-weight: 600; }
.work-info { padding: 16px; transition: opacity .3s; }
.work-card:hover .work-info { opacity: 0; }
.work-info-top { display: flex; align-items: center; justify-content: space-between; }
.work-info-top h3 { font-size: 16px; font-weight: 700; color: var(--foreground); }
.work-pill { padding: 2px 8px; border-radius: 999px; background: oklch(0.52 0.22 255 / 0.1); color: var(--primary); font-size: 12px; }
.work-info p { margin-top: 4px; font-size: 14px; color: var(--muted-fg); }

/* ===== 互动演示 ===== */
.demo-stage { overflow: hidden; border-radius: 20px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.demo-scene { position: relative; height: 280px; display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(to bottom, oklch(0.78 0.13 240 / 0.2), oklch(0.52 0.22 255 / 0.1)); }
.demo-star { position: absolute; font-size: 18px; animation: twinkle 3s ease-in-out infinite; }
.demo-character { margin-bottom: 32px; transition: transform .3s; }
.demo-robot { width: 72px; height: 72px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 36px; box-shadow: var(--shadow-md); transition: background .3s; background: var(--primary); }
.demo-shadow { margin: 4px auto 0; width: 48px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.15); }
.demo-ground { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: oklch(0.52 0.22 255 / 0.3); }
.demo-controls { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 20px; border-top: 1px solid var(--border); }
.block-btn { padding: 12px 24px; border-radius: 14px; font-size: 15px; font-weight: 700; color: #fff; box-shadow: var(--shadow-md); transition: transform .15s, filter .15s; }
.block-btn:active { transform: scale(.94); filter: brightness(.92); }
.btn-blue { background: var(--primary); }
.btn-orange { background: var(--accent); color: var(--accent-foreground); }
.btn-mint { background: var(--mint); color: var(--foreground); }
.demo-tip { margin-top: 24px; text-align: center; font-size: 14px; color: var(--muted-fg); }

/* 角色动作 */
@keyframes pixel-walk { from { transform: translateX(0); } to { transform: translateX(60px); } }
@keyframes pixel-jump { 0%,100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-40px) rotate(-6deg); } 60% { transform: translateY(-40px) rotate(6deg); } }
.demo-character.walk { animation: pixel-walk .6s ease-out forwards; }
.demo-character.jump { animation: pixel-jump .8s ease-in-out; }

/* ===== 师资 ===== */
.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.teacher-card { position: relative; overflow: hidden; text-align: center; padding: 28px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); }
.teacher-avatar { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; ring: 4px; box-shadow: 0 0 0 4px oklch(0.52 0.22 255 / 0.15); transition: box-shadow .3s; }
.teacher-card:hover .teacher-avatar { box-shadow: 0 0 0 4px oklch(0.72 0.19 55 / 0.4); }
.teacher-avatar img { width: 100%; height: 100%; object-fit: cover; }
.teacher-name { font-size: 18px; font-weight: 800; color: var(--foreground); }
.teacher-title { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--accent); }
.teacher-bg { margin-top: 12px; font-size: 14px; color: var(--muted-fg); line-height: 1.7; }

/* ===== 学习成果 ===== */
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 64px; }
.result-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.result-num { font-size: 40px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.result-suffix { font-size: 28px; font-weight: 800; color: var(--accent); margin-left: 2px; }
.result-stat > .result-num { display: inline; }
.result-label { font-size: 14px; color: var(--muted-fg); }

.testimonial { position: relative; max-width: 720px; margin: 0 auto; }
.quote-mark { position: absolute; top: 8px; left: 24px; font-size: 80px; line-height: 1; color: oklch(0.52 0.22 255 / 0.12); font-family: Georgia, serif; }
.testimonial-track { position: relative; overflow: hidden; border-radius: 24px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.testimonial-item { display: none; padding: 48px 64px; text-align: center; }
.testimonial-item.is-active { display: block; animation: fade-in .5s ease; }
.stars-row { color: var(--accent); font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-text { font-size: 18px; line-height: 1.8; color: var(--foreground); }
.testimonial-author { margin-top: 24px; font-weight: 700; color: var(--foreground); }
.testimonial-role { font-size: 14px; color: var(--muted-fg); }
.test-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: 24px; color: var(--foreground); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.test-arrow:hover { background: var(--primary); color: #fff; }
.test-prev { left: -8px; }
.test-next { right: -8px; }
.test-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.test-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--border); transition: all .3s; }
.test-dot.active { width: 24px; background: var(--primary); }

/* ===== 关于我们 ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-p { margin-top: 20px; font-size: 16px; line-height: 1.8; color: var(--muted-fg); }
.value-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.value-item { padding: 14px 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); text-align: center; transition: transform .3s, box-shadow .3s; }
.value-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-item strong { display: block; font-size: 14px; color: var(--primary); }
.value-item span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted-fg); }
.about-visual { position: relative; }
.about-glow { position: absolute; inset: -16px; border-radius: 28px; background: linear-gradient(135deg, oklch(0.52 0.22 255 / 0.15), oklch(0.72 0.19 55 / 0.15)); filter: blur(24px); }
.about-frame { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.about-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; background: linear-gradient(to top, oklch(0.52 0.22 255 / 0.85), transparent); color: #fff; font-size: 14px; font-weight: 500; }

/* ===== CTA ===== */
.cta { position: relative; overflow: hidden; padding: 80px 0; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); background-size: 200% 200%; animation: gradient-shift 8s ease infinite; }
.cta-inner { position: relative; text-align: center; }
.cta-title { font-size: clamp(28px, 5vw, 48px); font-weight: 800; color: #fff; }
.cta-sub { margin: 16px auto 0; max-width: 560px; color: rgba(255,255,255,.8); font-size: 18px; }
.cta-btns { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== 页脚 ===== */
.footer { background: var(--primary); color: var(--primary-foreground); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 64px 24px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { width: 360px; }
.fl-name { font-size: 20px; font-weight: 800; }
.fl-slogan { font-size: 13px; opacity: .7; }
.footer-desc { margin-top: 16px; font-size: 14px; line-height: 1.7; opacity: .7; }
.footer-parent { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 12px; opacity: .85; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; opacity: .9; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { font-size: 14px; opacity: .65; transition: opacity .2s, color .2s; }
.footer-col a:hover { opacity: 1; color: var(--sun); }
.contact-list li { display: flex; align-items: center; gap: 8px; }
.social-row { display: flex; gap: 12px; }
.social-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all .2s; }
.social-icon:hover { background: var(--accent); transform: translateY(-2px); }
.social-tip { margin-top: 12px; font-size: 12px; opacity: .5; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; opacity: .5; }

/* ===== 动效 keyframes ===== */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes twinkle { 0%,100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes gradient-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* hover 上浮 */
.hover-lift { transition: transform .3s ease, box-shadow .3s ease; }
.hover-lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }

/* 滚动渐入（JS 加 .in-view 触发） */
.reveal, .reveal-up, .reveal-left, .reveal-right { opacity: 0; transition: opacity .6s ease, transform .6s ease; }
.reveal-up, .reveal { transform: translateY(24px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal.in-view, .reveal-up.in-view, .reveal-left.in-view, .reveal-right.in-view { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .course-grid, .teacher-grid, .result-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { flex-direction: column; min-height: auto; padding-top: 48px; padding-bottom: 48px; gap: 32px; }
  .hero-stats { gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 56px 0; }
  .testimonial-item { padding: 40px 28px; }
  .test-prev { left: 4px; }
  .test-next { right: 4px; }
}

@media (max-width: 560px) {
  .course-grid, .teacher-grid, .result-grid, .work-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-btns .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, .reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
