*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #003d7a;
  --primary-light: #1a5bb5;
  --primary-dark: #002a55;
  --accent: #4a90d9;
  --accent-light: #e8f0fe;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --text: #1a1a2e;
  --text-light: #5a6a7a;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,61,122,0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --header-h: 72px;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex; align-items: center;
}
.header .container {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.header-logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 16px; color: var(--primary);
}
.header-logo { padding: 0 12px; display: flex; align-items: center; }
.header-logo img { height: calc(var(--header-h) - 16px); width: auto; }
.nav { display: flex; gap: 8px; align-items: center; }
.nav a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-light);
  transition: all .2s;
}
.nav a:hover { background: var(--accent-light); color: var(--primary); }
.nav .btn-sm {
  background: var(--primary); color: var(--white);
  font-weight: 600;
}
.nav .btn-sm:hover { background: var(--primary-light); color: var(--white); }
.header .nav a { color: rgba(255,255,255,0.85); }
.header .nav a:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.header .nav .btn-sm { background: var(--white); color: var(--primary); }
.header .nav .btn-sm:hover { background: var(--accent-light); color: var(--primary); }
.header-logo { color: var(--white); }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span {
  display: block; width: 24px; height: 2px; background: var(--white);
  border-radius: 2px; transition: all .3s;
}
@media (max-width: 767px) {
  .burger { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; background: var(--white);
    padding: 16px 24px; gap: 4px;
    border-bottom: 1px solid rgba(0,61,122,0.08);
    transform: translateY(-100%); opacity: 0;
    pointer-events: none; transition: all .3s;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { width: 100%; padding: 12px 16px; color: var(--text-light); }
  .nav a:hover { color: var(--primary); }
  .nav .btn-sm { background: var(--primary); color: var(--white); }
  .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-light);
  max-width: 720px;
  line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: url("../img/back.jpg") center / cover no-repeat;
  color: var(--white);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-left: 40px; max-width: none; margin: 0; }
.hero-grid {
  max-width: 840px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero p {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 680px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all .2s;
}
.btn-primary {
  background: var(--white); color: var(--primary);
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  padding-right: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 840px;
}
.hero-stat { text-align: center; }
.hero-stat-value {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
}
.hero-stat-label { font-size: 13px; opacity: 0.6; margin-top: 4px; }

@media (max-width: 767px) {
  .hero .container { padding-left: 24px; }
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all .3s;
  border: 1px solid rgba(0,61,122,0.04);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,61,122,0.12); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-light);
}
.card h3 {
  font-size: 20px; font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}
.card p { color: var(--text-light); line-height: 1.7; font-size: 15px; }

/* Teachers */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.teacher-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,61,122,0.04);
}
.teacher-avatar {
  width: 160px; height: 200px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  margin: 0 auto 16px;
  overflow: hidden;
}
.teacher-avatar img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card h4 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.teacher-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; text-align: left; }
.teacher-bio {
  list-style: disc;
  padding-left: 20px;
  text-align: left;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}
.teacher-bio a { color: var(--primary-light); }
.teacher-bio li { margin-bottom: 4px; }

/* Price section */
.price-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,61,122,0.04);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.price-cards > .price-card {
  min-height: 410px;
}

.price-card--recommended {
  position: relative;
  border: 1px solid rgba(0,61,122,0.45);
  box-shadow: 0 18px 42px rgba(0,61,122,0.14);
}
.price-card-badge {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 14px;
  margin: -14px 0 14px;
  border-radius: 999px;
  background: #fff0bf;
  color: #7a4a00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.price-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.35;
}
.price-card-discount-label {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 100px;
  margin-bottom: 8px;
  align-self: center;
}
.price-card-amount {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.15;
}
.price-card-list {
  list-style: none;
  text-align: left;
  margin-bottom: 16px;
  flex-grow: 1;
}
.price-card-list li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-light);
}
.price-card-list li::before {
  content: '✓';
  color: var(--primary-light);
  font-weight: 700;
  margin-right: 8px;
}
.price-card-note {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 20px;
}
.price-btn {
  margin-top: auto;
  width: 100%;
  background: var(--primary) !important;
  color: var(--white) !important;
  justify-content: center;
}
.price-btn:hover { background: var(--primary-light) !important; }

.price-card--lyceum {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 220px;
  align-items: center;
  gap: 32px;
  padding: 32px 34px;
  text-align: left;
  border: 1px solid rgba(14, 127, 64, 0.28);
  background: linear-gradient(90deg, rgba(14, 127, 64, 0.04), rgba(255,255,255,0.96));
}
.lyceum-card-main {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}
.lyceum-card-icon {
  flex: 0 0 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lyceum-card-icon svg {
  width: 76px;
  height: 76px;
  fill: none;
  stroke: #0e7f40;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.price-card--lyceum .price-card-title {
  color: var(--text);
  font-size: 22px;
  margin-bottom: 0;
}
.lyceum-card-content {
  border-left: 1px solid rgba(0,61,122,0.16);
  padding-left: 32px;
}
.price-card--lyceum .price-card-amount {
  color: #0e7f40;
  font-size: 34px;
  margin-bottom: 8px;
}
.price-card--lyceum .price-card-amount sup {
  font-size: 18px;
}
.price-card--lyceum .price-card-note {
  margin-bottom: 6px;
}
.price-card--lyceum .price-btn {
  width: 100%;
  margin-top: 0;
  align-self: center;
}
.price-footnote {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}

@media (max-width: 980px) {
  .price-cards {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .price-cards > .price-card {
    min-height: 0;
  }
  .price-card--lyceum {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .lyceum-card-main {
    justify-content: center;
    flex-direction: column;
    gap: 14px;
  }
  .lyceum-card-content {
    border-left: 0;
    border-top: 1px solid rgba(0,61,122,0.16);
    padding-left: 0;
    padding-top: 22px;
  }
}

@media (max-width: 560px) {
  .price-card,
  .price-card--lyceum {
    padding: 28px 22px;
  }
}

/* FAQ */
.faq-list { max-width: 800px; margin: 40px auto 0; }
.faq-item {
  border-bottom: 1px solid rgba(0,61,122,0.08);
  padding: 20px 0;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; cursor: pointer;
  font-size: 17px; font-weight: 600; color: var(--text);
  background: none; border: none; width: 100%; text-align: left;
  padding: 0;
}
.faq-question::after {
  content: '+';
  font-size: 24px; color: var(--primary-light);
  transition: transform .3s; flex-shrink: 0;
}
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: all .3s ease; font-size: 15px;
  color: var(--text-light); line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 300px; padding-top: 12px; }

/* Documents */
.docs-grid {
  max-width: 800px;
  margin: 40px auto 0;
  display: flex; flex-direction: column;
  gap: 16px;
}
.docs-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,61,122,0.04);
}
.docs-number {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  margin-top: 2px;
}
.docs-text { font-size: 15px; color: var(--text); line-height: 1.6; }
.docs-text p { margin-bottom: 4px; }
.docs-text p:last-child { margin-bottom: 0; }

/* CTA / Form */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  padding: 64px 48px;
  text-align: center;
  color: var(--white);
  margin-top: 40px;
}
.cta-box h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.cta-box p { opacity: 0.9; margin-top: 12px; font-size: 18px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-box .btn { margin-top: 32px; }
.cta-box .btn-primary { background: var(--white); color: var(--primary); }
.cta-box .btn-primary:hover { background: var(--accent-light); }

/* Program levels */
.program-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.program-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,61,122,0.04);
  display: flex; flex-direction: column; gap: 16px;
}
.program-level {
  font-size: 20px; font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: block;
  width: 100%;
  text-align: center;
}
.program-level--beginner { background: #e8f5e9; color: #2e7d32; }
.program-level--intermediate { background: #fff3e0; color: #e65100; }
.program-level--advanced { background: #fce4ec; color: #c62828; }
.program-for { font-size: 14px; color: var(--text); line-height: 1.6; font-weight: 500; }
.program-concept { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.program-list { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.program-list strong { color: var(--text); font-weight: 700; }
.program-list ul { list-style: disc; padding-left: 20px; margin-top: 6px; }
.program-list li { margin-bottom: 4px; }
@media (max-width: 900px) {
  .program-levels { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer h4 { color: var(--white); font-weight: 700; margin-bottom: 12px; font-size: 16px; }
.footer a { color: rgba(255,255,255,0.7); transition: color .2s; }
.footer a:hover { color: var(--white); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; }

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Landing content additions */
.cards-grid--three {
  grid-template-columns: repeat(3, 1fr);
}
.card-compact {
  padding: 28px;
}
.card-compact h3 {
  margin-bottom: 10px;
}
.schedule-list {
  max-width: 760px;
  margin: 40px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,61,122,0.04);
  overflow: hidden;
}
.schedule-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0,61,122,0.08);
}
.schedule-item:last-child {
  border-bottom: none;
}
.schedule-item span {
  font-weight: 800;
  color: var(--primary);
}
.schedule-item p {
  color: var(--text-light);
}
@media (max-width: 900px) {
  .cards-grid--three {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .header .nav a {
    color: var(--text-light);
  }
  .header .nav a:hover {
    color: var(--primary);
    background: var(--accent-light);
  }
  .header .nav .btn-sm {
    color: var(--white);
    background: var(--primary);
  }
  .hero {
    min-height: 760px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-stat {
    text-align: left;
  }
  .schedule-item {
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 16px;
  }
}
