/* ================= ROOT ================= */

:root {
  --bg-main: #eef4fb;
  --navy: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --orange: #f97316;
  --white: #ffffff;
  --border: #e2e8f0;
  --blue: #3b82f6;
}

/* ================= RESET ================= */

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-main);
  color: var(--text);
  padding-top: 90px;
  line-height: 1.6;
}

h2 {
  font-size: clamp(32px,5vw,42px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--navy);
}

.sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 50px;
  font-size: 18px;
}

/* ================= HEADER ================= */

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
  z-index: 1000;
}

.nav {
  max-width: 1200px;
  margin: auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.logo span {
  color: var(--orange);
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: .3s;
}

nav a:hover {
  color: var(--orange);
}

nav button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg,#f97316,#fb923c);
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(249,115,22,.35);
}

/* ================= PROGRAMS ================= */

.programs {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

.age-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
  background: #f1f5f9;
  padding: 8px;
  border-radius: 20px;
  width: fit-content;
  margin-inline: auto;
}

.age-tab {
  padding: 12px 24px;
  border-radius: 14px;
  border: none;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}

.age-tab.active {
  background: white;
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.age-panel { display:none; }
.age-panel.active { display:block; }

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 30px;
}

.program-card {
  background: white;
  border-radius: 28px;
  padding: 36px;
  border: 1px solid var(--border);
  transition: .35s ease;
  box-shadow: 0 20px 50px rgba(15,23,42,.06);
}

.program-card:hover {
  transform: translateY(-8px);
  border-color: var(--orange);
  box-shadow: 0 30px 70px rgba(15,23,42,.12);
}

.icon-box {
  font-size: 48px;
  height: 80px;
  width: 80px;
  background: #fff7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  margin-bottom: 20px;
}

.level-badge {
  display: inline-block;
  margin: 16px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.price-tag {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.duration {
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin-bottom: 18px;
}

.details-btn {
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  border: none;
  background: #f1f5f9;
  font-weight: 700;
  cursor: pointer;
}

.program-details {
  margin-top: 20px;
  display: none;
}

.program-card.active .program-details {
  display: block;
}

.program-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ================= PROJECTS ================= */

.projects-section {
  padding: 100px 20px;
  background: linear-gradient(180deg,#f8fbff,#ffffff);
}

.projects-container {
  max-width: 1200px;
  margin: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: white;
  border-radius: 24px;
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(15,23,42,.05);
  transition: .3s ease;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--orange);
  box-shadow: 0 30px 70px rgba(15,23,42,.12);
}

.project-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.project-level {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-block;
}

.project-level.beginner { background:#e0f2fe; color:#0369a1; }
.project-level.advanced { background:#ede9fe; color:#5b21b6; }
.project-level.pro { background:#ffe4e6; color:#9f1239; }

/* ================= CLASS GLIMPSE ================= */

.class-glimpse {
  padding: 90px 20px;
}

.class-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 26px;
}

.class-card {
  background: white;
  padding: 26px;
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(15,23,42,.08);
}

.class-card .tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
}

.class-card h3 {
  margin: 10px 0;
}

.class-points {
  margin: 12px 0 18px;
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
}

.class-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ================= FOOTER ================= */

.site-footer {
  background: #020617;
  color: #cbd5f5;
  padding-top: 70px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  color: #cbd5f5;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding: 16px;
  border-top: 1px solid rgba(148,163,184,.15);
  font-size: 13px;
}

/* ================= BUTTONS ================= */

.btn-primary {
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg,#f97316,#fb923c);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.btn-outline {
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

/* ================= RESPONSIVE ================= */

@media(max-width:900px){
  nav { display:none; }
}