:root {
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-soft: #f1f6f3;
  --text: #1d2a24;
  --muted: #51635a;
  --accent: #1f6f4a;
  --accent-dark: #17563a;
  --accent-soft: #e4efe8;
  --line: #dce5df;
  --danger: #b42318;
  --success: #1f6f4a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 42, 36, 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.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 16px; color: #152119; }
h1 { font-size: 44px; letter-spacing: -0.02em; }
h2 { font-size: 32px; }
h3 { font-size: 21px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: 8px; top: -48px; background: #fff; color: var(--text);
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); z-index: 100;
}
.skip-link:focus { top: 8px; }
.noscript {
  background: #fff4e5; color: #7a2e0e; padding: 16px 24px; text-align: center;
  border-bottom: 1px solid #f0d8bf;
}
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 248, 245, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px 24px;
  min-height: 76px;
  padding: 8px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 18px; }
.brand-city { font-size: 13px; color: var(--muted); }
.header-contacts {
  font-size: 14px; color: var(--muted); padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff;
}
.header-phone-label { margin-right: 4px; }
.header-phone-value { font-weight: 600; color: var(--text); }
.nav { display: flex; gap: 14px 18px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a:focus { color: var(--accent); }
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 10% 20%, rgba(31,111,74,0.08), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(31,111,74,0.06), transparent 25%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.lead { font-size: 20px; color: var(--muted); max-width: 70ch; }
.actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus { outline: 3px solid rgba(31, 111, 74, 0.28); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-primary:disabled { background: #9bb8a9; cursor: not-allowed; transform: none; }
.btn-secondary { background: #fff; color: var(--accent-dark); border-color: #b9d2c4; }
.btn-secondary:hover { background: #e8f2ec; }
.hero-facts {
  list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px 16px; color: var(--muted);
}
.hero-facts li { background: rgba(255,255,255,0.7); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.hero-facts strong { color: var(--text); }
.hero-note { font-size: 14px; max-width: 70ch; margin: 0; }
.hero-media img { box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.section { padding: 80px 0; }
.section-alt { background: #eef3ef; }
.section-heading { margin-bottom: 32px; }
.section-lead { color: var(--muted); max-width: 72ch; font-size: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.fact-card, .class-card, .card, .contact-box, .summary-item, .info-panel, .process-block, .notice, .apply-details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.fact-card { padding: 22px; }
.fact-value { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--accent-dark); }
.info-panel { padding: 28px; background: linear-gradient(180deg, #ffffff, #f7faf8); }
.info-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.info-columns ul { padding-left: 20px; color: var(--muted); }
.info-columns li { margin-bottom: 8px; }
.media-stack { display: grid; gap: 20px; }
.media-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.aside-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.text-link { font-weight: 600; }
.checklist { padding-left: 20px; margin: 0 0 16px; color: var(--text); }
.checklist li { margin-bottom: 10px; }
.note { font-size: 14px; }
.muted { color: var(--muted); }
.classes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.class-card { padding: 24px; }
.class-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.class-card ul { padding-left: 18px; color: var(--muted); margin-bottom: 0; }
.class-card li { margin-bottom: 6px; }
.process-block { padding: 28px; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 14px; }
.steps li { padding-left: 4px; }
.steps strong { display: block; color: var(--text); margin-bottom: 4px; }
.steps span { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.card { padding: 24px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #d7e6dd, #b9d2c4);
  margin-bottom: 14px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-dark); font-weight: 700;
}
.meta { font-size: 14px; margin-top: -4px; }
.card-list { padding-left: 18px; color: var(--muted); margin-bottom: 0; }
.card-list li { margin-bottom: 6px; }
.notice { padding: 24px 28px; margin-top: 24px; background: #f9fbfa; }
.notice p:last-child { margin-bottom: 0; }
.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form-intro .section-lead { font-size: 18px; }
.apply-details { padding: 22px; margin-top: 20px; }
.muted-box { background: #f7faf8; }
.apply-details p:last-child, .apply-details ul:last-child { margin-bottom: 0; }
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.form-title { margin-bottom: 4px; }
.form-subtitle { margin-bottom: 20px; font-size: 14px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; }
.field-hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--text);
  border: 1px solid #b9c8bf; border-radius: 10px; background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(31,111,74,0.18); border-color: var(--accent); }
.checkbox-field { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-bottom: 8px; }
.checkbox-field input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--accent); }
.checkbox-field label { margin: 0; font-weight: 400; font-size: 15px; color: var(--text); }
.error { min-height: 20px; margin: 6px 0 0; color: var(--danger); font-size: 14px; }
.form-actions { margin-top: 8px; }
.form-status { min-height: 24px; margin: 16px 0 0; font-weight: 600; }
.form-status.success { color: var(--success); }
.form-status.fail { color: var(--danger); }
.small-print { font-size: 13px; margin-top: 12px; margin-bottom: 0; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact-info, .contact-side { display: grid; gap: 20px; }
.contact-box { padding: 24px; }
.contact-list { margin: 0; }
.contact-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf2ef; }
.contact-row:last-child { border-bottom: none; }
.contact-row dt { font-weight: 600; color: var(--text); }
.contact-row dd { margin: 0; color: var(--muted); }
.plain-list { padding-left: 18px; margin: 0; color: var(--muted); }
.plain-list li { margin-bottom: 8px; }
.map-placeholder {
  min-height: 340px; border-radius: var(--radius); border: 1px dashed #9fb3a7;
  background: linear-gradient(135deg, #e7efe9, #dfeae3);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 28px;
}
.map-title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.summary-item { padding: 24px; }
.summary-item p:last-child { margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: #f1f5f2; }
.footer-inner { display: grid; gap: 20px; }
.footer-brand-block p { margin-bottom: 8px; }
.footer-brand { font-size: 18px; font-weight: 700; color: var(--text); }
.footer-brand-block p:last-child { color: var(--muted); margin-bottom: 0; max-width: 80ch; }
.footer-links { display: flex; gap: 12px 16px; flex-wrap: wrap; font-size: 14px; }
.footer-copy { margin: 0; color: var(--muted); font-size: 14px; }
.policy { padding: 64px 0 80px; }
.policy .container { max-width: 860px; }
.policy h1 { font-size: 40px; }
.policy h2 { font-size: 22px; margin-top: 32px; }
.policy h3 { font-size: 18px; margin-top: 20px; }
.policy ul { padding-left: 20px; color: var(--muted); }
.policy li { margin-bottom: 8px; }
.policy-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 20px 0;
}
.policy-meta { font-size: 14px; color: var(--muted); }

@media (max-width: 1024px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .header-contacts { grid-column: 2; justify-self: end; }
  .nav { grid-column: 1 / -1; justify-content: flex-start; }
  .hero-grid, .two-col, .form-layout, .contacts-grid { grid-template-columns: 1fr; }
  .facts-grid, .classes-grid, .cards, .summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .header-inner { grid-template-columns: 1fr; gap: 12px; padding: 12px 0; }
  .header-contacts { justify-self: start; }
  .nav { gap: 10px 14px; }
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  .lead, .section-lead { font-size: 17px; }
  .hero, .section, .policy { padding: 56px 0; }
  .facts-grid, .classes-grid, .cards, .summary-grid, .info-columns, .hero-facts { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .map-placeholder { min-height: 260px; }
}
