:root {
  --bg: #ffffff;
  --ink: #0d1b2a;
  --navy: #1B2A6B;
  --navy-dark: #0f1a42;
  --gold: #F0A500;
  --gold-light: #fff3cc;
  --muted: #5a6a7e;
  --line: #dde4ee;
  --soft: #f4f7fb;
  --cyan: #00b8d9;
  --cyan-dark: #0085a8;
  --lime: #b7f34b;
  --lime-deep: #76b900;
  --panel: #ffffff;
  --shadow: 0 18px 50px rgba(13, 27, 42, 0.1);
  --radius: 10px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
}

body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(221, 228, 238, 0.9);
  backdrop-filter: blur(18px);
}

.brand, .nav, .hero-actions, .filters, .footer { display: flex; align-items: center; }

.brand {
  gap: 11px;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-logo {
  width: 32px;
  height: 32px;
}

.astana-hub-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

.header-cta, .button {
  border: 0;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font);
}

.header-cta {
  padding: 12px 18px;
  color: white;
  background: var(--navy);
  transition: background 160ms;
}

.header-cta:hover { background: var(--navy-dark); }

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(400px, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(56px, 7vw, 90px) clamp(20px, 5vw, 72px) 64px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(240,165,0,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(27,42,107,0.05) 0%, transparent 70%),
    linear-gradient(90deg, rgba(0,184,217,0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,184,217,0.06) 1px, transparent 1px),
    #ffffff;
  background-size: auto, auto, 44px 44px, 44px 44px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  padding: 6px 14px;
  border: 1.5px solid rgba(27,42,107,0.2);
  border-radius: 999px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  background: rgba(27,42,107,0.04);
}

.hero-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 0.97;
  letter-spacing: -1px;
  color: var(--ink);
}

.hero-copy p {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 20px);
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  transition: transform 160ms, box-shadow 160ms;
}

.button.primary {
  color: white;
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(27,42,107,0.25);
}

.button.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(27,42,107,0.32); }

.button.secondary {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 8px 20px rgba(240,165,0,0.2);
}

.button.secondary:hover { transform: translateY(-2px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 12px;
  max-width: 700px;
  margin: 40px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.85);
}

.hero-stats dt {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* ── LEARNING UI ── */
.learning-ui {
  border: 1px solid rgba(13,27,42,0.1);
  border-radius: 16px;
  background: #f8fbfd;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ui-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--navy);
  color: white;
}

.ui-topbar span {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
}
.ui-topbar span:first-child { background: #ff6b6b; }
.ui-topbar span:nth-child(2) { background: var(--gold); }
.ui-topbar span:nth-child(3) { background: var(--lime); }
.ui-topbar strong { margin-left: auto; font-size: 13px; }

.ui-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 14px;
  padding: 16px;
}

.code-panel, .progress-panel, .mentor-panel, .lesson-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.code-panel {
  grid-row: span 2;
  padding: 18px;
  font-family: var(--mono);
  background: #0d1b2a;
}

.code-row { padding: 8px 0; color: #c6d6e4; font-size: 13px; white-space: nowrap; }
.code-row span { display: inline-block; width: 26px; color: #4a5e72; }
.code-row.accent { color: var(--lime); }
.code-row.muted { color: #3e5268; }

.progress-panel, .lesson-card { padding: 16px; }
.progress-panel p, .mentor-panel p, .lesson-card p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.progress-panel strong { display: block; margin-top: 4px; font-size: 38px; line-height: 1; color: var(--navy); }

.progress-track { height: 7px; margin: 14px 0 8px; border-radius: 999px; background: #e0e8f0; overflow: hidden; }
.progress-track span { display: block; width: 68%; height: 100%; background: linear-gradient(90deg, var(--cyan), #00d4f5); }
.progress-panel small { color: var(--muted); font-size: 12px; font-weight: 600; }

.mentor-panel { display: flex; align-items: center; gap: 12px; padding: 14px; }
.avatar, .teacher-photo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 800;
}
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 16px; }
.mentor-panel strong { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; }

.lesson-card { grid-column: 1 / -1; }
.lesson-card span { display: inline-flex; margin-bottom: 10px; color: var(--cyan-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.lesson-card strong { display: block; font-size: 20px; }

/* ── SECTIONS ── */
.section { padding: 88px clamp(20px, 5vw, 72px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

.section-head.compact { display: block; text-align: center; margin-bottom: 48px; }

.section-head h2, .techorda h2, .contact h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.section-head p, .techorda p, .contact-copy p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.section-head.compact p { margin: 14px auto 0; }

/* ── WHY SECTION ── */
.why-section { background: var(--navy); color: white; }
.why-section .section-head h2 { color: white; }
.why-section .section-head p { color: rgba(255,255,255,0.65); }

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

.why-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  transition: background 200ms, transform 200ms;
}

.why-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-3px);
}

.why-icon { font-size: 28px; margin-bottom: 14px; }

.why-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: white;
}

.why-card p { margin: 0; color: rgba(255,255,255,0.6); font-size: 15px; line-height: 1.6; }

/* ── COURSES ── */
.courses-section { background: var(--soft); }

.filters {
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter {
  min-height: 38px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 160ms;
}

.filter.active {
  border-color: var(--navy);
  color: white;
  background: var(--navy);
}

.filter:not(.active):hover { border-color: var(--navy); color: var(--navy); }

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

.course-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 4px 16px rgba(13,27,42,0.05);
  transition: transform 180ms, box-shadow 180ms, border-color 180ms;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(13,27,42,0.1);
  border-color: rgba(27,42,107,0.2);
}

.course-card.is-hidden { display: none; }

.course-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 15px;
}

.icon-backend { background: #e8f0fe; color: #1B2A6B; }
.icon-ai-dev  { background: #fff3cc; color: #b37400; }
.icon-data    { background: #e8f5e9; color: #2e7d32; }
.icon-ds      { background: #e3f2fd; color: #0d47a1; }
.icon-ml      { background: #f3e5f5; color: #6a1b9a; }
.icon-industry{ background: #fff8e1; color: #e65100; font-size: 22px; }
.icon-devops  { background: #e0f7fa; color: #00697a; }
.icon-sec     { background: #fce4ec; color: #880e4f; }

.course-tag {
  display: inline-flex;
  margin: 14px 0 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-card h3 { margin: 4px 0 10px; font-size: 20px; line-height: 1.2; }

.course-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.course-card ul {
  display: grid;
  gap: 7px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.course-card li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: 1px;
}

.course-more {
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: color 160ms;
}
.course-more:hover { color: var(--gold); }

/* ── TARGET AUDIENCE ── */
.audience-section { background: white; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

.audience-card {
  padding: 24px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 200ms, transform 200ms;
}

.audience-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.aud-icon { font-size: 32px; margin-bottom: 12px; }

.audience-card h3 { margin: 0 0 8px; font-size: 16px; }

.audience-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ── METHODOLOGY ── */
.approach { background: var(--soft); }

.approach-meta { text-align: center; margin-bottom: 42px; }

.ratio-bar {
  display: inline-flex;
  height: 10px;
  width: 360px;
  max-width: 100%;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.ratio-theory {
  width: 30%;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}

.ratio-practice {
  width: 70%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: white;
}

.ratio-labels {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.approach-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.approach-list article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: border-color 180ms;
}

.approach-list article:hover { border-color: rgba(27,42,107,0.25); }

.line-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--gold);
  font-weight: 900;
  font-size: 18px;
}

.approach-list h3 { margin: 0 0 5px; font-size: 18px; }
.approach-list p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── TECHORDA ── */
.techorda {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 0 clamp(20px, 5vw, 72px);
  padding: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffbea 0%, #fff9d6 50%, #fffef4 100%);
  border: 2px solid rgba(240,165,0,0.25);
}

.techorda-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.techorda h2 { color: var(--navy); }
.techorda p { margin-top: 16px; color: #384556; font-size: 16px; }

.grant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.grant-grid article {
  padding: 20px;
  border: 1.5px solid rgba(240,165,0,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.75);
}

.grant-grid strong { display: block; font-size: 30px; line-height: 1; color: var(--navy); }
.grant-grid span { display: block; margin-top: 10px; color: #4a5a6a; font-size: 14px; font-weight: 600; }

/* ── TEACHERS ── */
.teachers { background: var(--soft); }

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

.teacher-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 4px 16px rgba(13,27,42,0.04);
  transition: transform 180ms, box-shadow 180ms;
}

.teacher-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(13,27,42,0.09);
}

.teacher-photo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 900;
  color: white;
}

.tp-green  { background: linear-gradient(135deg, #10b981, #34d399); }
.tp-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.tp-blue   { background: linear-gradient(135deg, #1B2A6B, #3b5bdb); }
.tp-navy   { background: linear-gradient(135deg, #0f172a, #1e3a5f); }
.tp-orange { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.tp-cyan   { background: linear-gradient(135deg, #0891b2, #22d3ee); }

.teacher-photo span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.teacher-info { flex: 1; min-width: 0; }
.teacher-info h3 { margin: 0 0 4px; font-size: 17px; }
.teacher-role { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.teacher-bio { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.teacher-course {
  display: inline-block;
  margin: 4px 0 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(27,42,107,0.08);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.teacher-linkedin {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #0a66c2;
}
.teacher-linkedin:hover { text-decoration: underline; }

/* ── CONTACT ── */
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 88px clamp(20px, 5vw, 72px);
  background: var(--navy);
  color: white;
}

.contact-copy { max-width: 680px; }
.contact-copy h2 { color: white; }
.contact-copy p { margin-top: 16px; color: rgba(255,255,255,0.65); }

address {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  color: white;
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
}

address a { color: rgba(255,255,255,0.85); }
address a:hover { color: white; }

.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  color: white;
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms, border-color 160ms, transform 160ms;
}
.social-link:hover { transform: translateY(-2px); background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.3); }
.social-link span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink); font-size: 11px; font-weight: 900; }
.social-link.telegram span { background: #8ee8ff; }
.social-link.instagram span { background: #ffb2d2; }
.social-link.whatsapp span { background: var(--lime); }

/* ── MODAL ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms;
}
.modal.is-open { pointer-events: auto; opacity: 1; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,0.6);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(780px, calc(100vh - 44px));
  overflow: auto;
  padding: 32px;
  border: 1.5px solid rgba(221,228,238,0.9);
  border-radius: 18px;
  background: white;
  box-shadow: 0 32px 80px rgba(13,27,42,0.28);
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms;
}
.modal.is-open .modal-dialog { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font);
}
.modal-close:hover { background: var(--soft); }

.modal-icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 900;
  background: rgba(27,42,107,0.1);
  color: var(--navy);
}

.modal-tag {
  display: inline-flex;
  margin: 14px 0 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-copy h2 {
  max-width: calc(100% - 50px);
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.modal-copy p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

.modal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.modal-meta article {
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}
.modal-meta span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.modal-meta strong { display: block; margin-top: 5px; font-size: 15px; color: var(--navy); }

.modal-teacher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(27,42,107,0.05);
  border: 1px solid rgba(27,42,107,0.1);
}

.modal-teacher span { color: var(--muted); font-size: 13px; font-weight: 700; }
.modal-teacher strong { color: var(--navy); font-size: 15px; }

.modal-program {
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--navy);
  color: white;
}
.modal-program h3 { margin: 0 0 14px; font-size: 18px; }
.modal-program ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.modal-program li { color: rgba(255,255,255,0.8); font-size: 15px; font-weight: 600; }
.modal-program li::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: 1px;
}

.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ── FOOTER ── */
.footer {
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: #f1f5f9;
  font-size: 14px;
  font-weight: 700;
}

.footer-brand, .astana-hub-logo { display: inline-flex; align-items: center; }
.footer-brand { gap: 10px; color: var(--ink); font-weight: 900; white-space: nowrap; }
.footer-brand .brand-mark { width: 32px; height: 32px; font-size: 11px; }

.astana-hub-logo {
  gap: 0;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111827;
  color: white;
  transition: transform 160ms;
}
.astana-hub-logo:hover { transform: translateY(-2px); }
.astana-hub-logo svg { display: block; }

.astana-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #111827;
  overflow: hidden;
}
.astana-mark span { position: absolute; width: 22px; height: 7px; border-radius: 999px; background: var(--cyan); }
.astana-mark span:first-child { background: #ff6b6b; transform: translateY(-6px) rotate(-24deg); }
.astana-mark span:nth-child(2) { background: var(--lime); transform: rotate(-24deg); }
.astana-mark span:nth-child(3) { transform: translateY(6px) rotate(-24deg); }

.astana-wordmark { display: grid; gap: 0; line-height: 0.9; }
.astana-wordmark strong, .astana-wordmark em { font-size: 13px; font-style: normal; font-weight: 900; }
.astana-wordmark em { color: var(--cyan-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .site-header { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; }
  .hero, .techorda { grid-template-columns: 1fr; }
  .contact { align-items: flex-start; flex-direction: column; }
  .hero { min-height: auto; }
  .course-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 700px) {
  .site-header { position: static; padding: 14px 18px; }
  .brand { width: 100%; }
  .header-cta { width: 100%; text-align: center; }
  .nav { overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .hero { padding: 40px 18px 48px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-stats, .course-grid, .teacher-grid, .audience-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .grant-grid { grid-template-columns: 1fr 1fr; }
  .teacher-card { flex-direction: column; }
  .section, .contact { padding: 60px 18px; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .filters { overflow-x: auto; padding-bottom: 4px; flex-wrap: nowrap; }
  .techorda { margin: 0 18px; padding: 32px 22px; border-radius: 12px; }
  .approach-list article { grid-template-columns: 1fr; }
  .footer { align-items: flex-start; flex-direction: column; }
  .modal { padding: 14px; }
  .modal-dialog { padding: 22px; border-radius: 12px; }
  .modal-meta { grid-template-columns: 1fr; }
  .modal-actions .button { width: 100%; }
  .ui-grid { grid-template-columns: 1fr; }
  .code-panel { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* ── СТИЛИ ДЛЯ ФОРМЫ В МОДАЛЬНОМ ОКНЕ ── */
.modal-actions {
  display: block !important; /* Меняем flex на блочную структуру */
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 15px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--navy);
}

.modal-form .btn-submit {
  width: 100%;
  justify-content: center;
  cursor: pointer;
}

.modal-form .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Красивый текстовый разделитель "или" */
.or-divider {
  text-align: center;
  margin: 15px 0;
  color: var(--muted);
  font-size: 14px;
  position: relative;
}

.or-divider::before,
.or-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: var(--line);
}

.or-divider::before { left: 0; }
.or-divider::after { right: 0; }

.whatsapp-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  border: 1px solid #25D366;
  color: black !important;
}

.whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.1);
}

/* Уведомления статусов */
.form-status {
  font-size: 14px;
  text-align: center;
  margin-top: 5px;
  font-weight: 500;
}
.form-status.processing { color: var(--muted); }
.form-status.success { color: var(--lime-deep); }
.form-status.error { color: #d93838; }