:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-alt: #eef2f8;
  --text: #1f2937;
  --muted: #5b6472;
  --accent: #1f5eff;
  --accent-dark: #1749c9;
  --border: #d9e0ea;
  --danger: #b42318;
  --success: #166534;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.noscript-banner {
  background: #fff3cd;
  color: #664d03;
  padding: 16px 24px;
  text-align: center;
  border-bottom: 1px solid #ffe69c;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(217, 224, 234, 0.7);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #6ea8fe);
}
.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.nav a:hover, .nav a:focus { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:focus { outline: 3px solid rgba(31, 94, 255, 0.25); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { background: #93b4ff; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: rgba(31, 94, 255, 0.08); }
.header-cta { min-height: 40px; padding: 0 16px; font-size: 14px; }

.hero {
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  margin: 0 0 16px;
  font-size: 56px;
  line-height: 1.15;
  max-width: 680px;
}
h2 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.15;
}
h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
}
p { margin: 0 0 16px; max-width: 68ch; }
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); margin-bottom: 24px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.hero-contacts strong { color: var(--text); }

.hero-visual {
  position: relative;
  min-height: 360px;
  border-radius: 24px;
  background: linear-gradient(160deg, #e8f0ff 0%, #f7f8fb 60%);
  border: 1px solid var(--border);
}
.accent { position: absolute; border-radius: 24px; }
.accent-large {
  width: 240px; height: 240px; top: 24px; right: 24px;
  background: rgba(31, 94, 255, 0.12);
}
.accent-medium {
  width: 160px; height: 160px; bottom: 32px; left: 32px;
  background: rgba(31, 94, 255, 0.18);
}
.accent-small {
  width: 80px; height: 80px; top: 48px; left: 48px;
  background: var(--accent);
  opacity: 0.2;
}
.visual-card {
  position: absolute;
  left: 40px; right: 40px; bottom: 40px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.visual-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.visual-text { margin: 0; color: var(--muted); max-width: none; }

.section { padding: 96px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { margin-bottom: 48px; text-align: center; }
.section-head p { margin: 0 auto; color: var(--muted); font-size: 20px; }
.section-head.left { text-align: left; }
.section-head.left p { margin: 0; }

.cards-grid {
  display: grid;
  gap: 24px;
}
.cards-grid.three { grid-template-columns: repeat(3, 1fr); }
.cards-grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.card-accent {
  width: 48px; height: 8px; border-radius: 999px;
  background: var(--accent); margin-bottom: 24px;
}
.teacher-card .avatar {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(31, 94, 255, 0.12);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; margin-bottom: 16px;
}
.muted { color: var(--muted); }
.note { margin-top: 24px; color: var(--muted); font-size: 14px; }

.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.checklist {
  margin: 0; padding-left: 24px; color: var(--muted);
  display: grid; gap: 8px;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 8px; }
.req { color: var(--danger); }
input, textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
input:focus, textarea:focus {
  outline: 3px solid rgba(31, 94, 255, 0.2);
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 120px; }
.error { min-height: 24px; margin: 8px 0 0; color: var(--danger); font-size: 14px; }
.form-status { min-height: 24px; margin: 16px 0 0; font-weight: 600; }
.form-status.success { color: var(--success); }
.form-status.error-text { color: var(--danger); }
.form-hint { margin: 16px 0 0; color: var(--muted); font-size: 14px; max-width: none; }
.submit-btn { width: 100%; }

.text-link { font-weight: 600; }

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner p { margin: 0; }

@media (max-width: 960px) {
  .hero-grid, .apply-grid { grid-template-columns: 1fr; }
  .cards-grid.three { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
}

@media (max-width: 640px) {
  .container { padding: 0 24px; }
  .header-inner { flex-wrap: wrap; padding: 16px 0; }
  .nav { width: 100%; flex-wrap: wrap; gap: 16px; order: 3; }
  .header-cta { margin-left: auto; }
  .hero { padding: 64px 0; }
  .section { padding: 64px 0; }
  h1 { font-size: 28px; }
  .lead, .section-head p { font-size: 16px; }
  .cards-grid.three, .cards-grid.two { grid-template-columns: 1fr; }
  .hero-visual { min-height: 280px; }
  .visual-card { left: 24px; right: 24px; bottom: 24px; padding: 16px; }
  .accent-large { width: 160px; height: 160px; }
  .form-card, .card { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
