:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #1a2433;
  --muted: #4b5b70;
  --accent: #1f4e79;
  --accent-hover: #163a5c;
  --accent-soft: #e6eef6;
  --border: #d7e0ea;
  --error: #b42318;
  --success: #067647;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(26, 36, 51, 0.08);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin: 0 0 16px;
}
h1 { font-size: 56px; }
h2 { font-size: 40px; }
h3 { font-size: 20px; margin-bottom: 8px; }
p { margin: 0 0 16px; max-width: 68ch; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
.noscript-warning {
  background: #fff4cc;
  color: #5c4200;
  padding: 16px 24px;
  text-align: center;
  border-bottom: 1px solid #e6d48a;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 249, 252, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.nav { display: flex; flex-wrap: wrap; gap: 16px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 8px 0; }
.nav a:hover, .nav a:focus { color: var(--accent); }

.hero { padding: 96px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}
.lead { font-size: 20px; color: var(--muted); margin-bottom: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.hero-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.hero-contacts strong { color: var(--text); }

.hero-visual { display: flex; justify-content: center; }
.hero-image {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--accent-soft);
}
.section-figure {
  margin: 0 0 32px;
}
.section-figure img {
  width: 100%;
  max-width: 960px;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}

.section { padding: 80px 0; }
.section-alt { background: #eef3f8; }
.section-head { margin-bottom: 32px; }
.section-intro { color: var(--muted); font-size: 16px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin-bottom: 0; }
.card-accent {
  height: 96px;
  border-radius: 8px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #1f4e79, #5a8ab5);
}
.card-accent.alt { background: linear-gradient(135deg, #2f6b4f, #7fb59a); }
.card-accent.soft { background: linear-gradient(135deg, #6b5a2f, #c2a66b); }

.teacher-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.meta { font-size: 14px; color: var(--accent); margin-bottom: 8px; }

.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; color: var(--muted); }
.step-num {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.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; font-size: 14px; }
input[type="text"], textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #b8c4d2;
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: #fff;
  min-height: 44px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus {
  outline: 3px solid rgba(31,78,121,0.25);
  border-color: var(--accent);
}
.hint { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.error { font-size: 14px; color: var(--error); margin: 8px 0 0; min-height: 1.2em; }
.checkbox-field { display: flex; gap: 12px; align-items: flex-start; }
.checkbox-field input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 20px; }
.checkbox-field label { margin: 0; font-weight: 400; }
.form-note { font-size: 14px; color: var(--muted); margin: 8px 0 16px; }
.form-status { margin-top: 16px; font-size: 14px; min-height: 1.5em; }
.form-status.success { color: var(--success); }
.form-status.fail { color: var(--error); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover, .btn-secondary:focus { background: var(--accent-soft); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-full { width: 100%; }

.contacts-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 720px;
}
.contacts-box p { margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 14px; margin-top: 16px; }

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

@media (max-width: 900px) {
  .hero-grid, .apply-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 24px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 16px 0; }
  .nav { gap: 8px 16px; }
  .form-card { padding: 24px; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
