:root {
  --ink: #14231e;
  --ink-soft: #3b4d45;
  --muted: #6d7c74;
  --paper: #f8f6ef;
  --surface: #ffffff;
  --surface-2: #f2f6f2;
  --line: #e1dccd;
  --line-strong: #cbd5cd;
  --accent: #0e5a4c;
  --accent-dark: #0a443a;
  --accent-soft: #e5f1eb;
  --gold: #c08a3e;
  --danger: #b4442f;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 22px 48px -30px rgba(20, 35, 30, .55);
  --shadow-soft: 0 10px 26px -18px rgba(20, 35, 30, .4);
  --shell: 1140px;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 16px/1.68 var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -10%, #eef4ee 0%, transparent 60%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid rgba(14, 90, 76, .35);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.14;
  margin: 0 0 .5em;
  letter-spacing: -.012em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 4.9vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
h3 { font-size: 1.18rem; line-height: 1.28; }

p { margin: 0 0 1em; }

.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.skip-link {
  position: absolute; left: 16px; top: -70px; z-index: 100;
  background: var(--ink); color: #fff; padding: 11px 18px;
  border-radius: 0 0 10px 10px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 239, .93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff; font-family: var(--font-head); font-size: 1.32rem;
  box-shadow: var(--shadow-soft);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.14rem; }
.brand-text small { color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 21px; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-size: .94rem; }
.main-nav a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.main-nav .cta {
  background: var(--accent); color: #fff; padding: 10px 19px; border-radius: 999px;
  font-weight: 600; text-decoration: none; box-shadow: var(--shadow-soft);
  transition: background .15s, transform .1s;
}
.main-nav .cta:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.main-nav .cta:active { transform: translateY(1px); }

.nav-toggle {
  display: none; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); padding: 9px 16px; border-radius: 999px;
  font: inherit; font-size: .9rem; cursor: pointer;
}

.hero { padding: clamp(48px, 7vw, 78px) 0 clamp(44px, 6vw, 66px); }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr .94fr;
  gap: clamp(32px, 5vw, 56px); align-items: center;
}
.eyebrow {
  display: inline-block; margin: 0 0 15px; padding: 6px 13px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: .75rem; font-weight: 700; letter-spacing: .085em; text-transform: uppercase;
}
.hero .lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 47ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 1px solid var(--accent);
  padding: 13px 25px; border-radius: 999px; font-size: .98rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 12px 24px -18px rgba(14, 90, 76, .8);
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--accent-dark); box-shadow: none; }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-wide { width: 100%; text-align: center; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 18px 36px; list-style: none;
  margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--font-head); font-size: 1.55rem; color: var(--accent-dark); line-height: 1.1; }
.hero-facts span { font-size: .81rem; color: var(--muted); }

.hero-media { margin: 0; position: relative; }
.hero-media img { box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; }
.hero-media figcaption {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  background: rgba(20, 35, 30, .84); color: #fff; padding: 10px 14px;
  border-radius: 10px; font-size: .82rem; backdrop-filter: blur(4px);
}

.section { padding: clamp(52px, 7vw, 78px) 0; }
.section-head { max-width: 770px; margin-bottom: 38px; }
.section-sub { color: var(--ink-soft); }
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(32px, 5vw, 54px); align-items: center; }
.about-media { margin: 0; }
.about-media img { box-shadow: var(--shadow); }
.about-text p { color: var(--ink-soft); }

.check-list { list-style: none; margin: 0 0 20px; padding: 0; }
.check-list li { position: relative; padding-left: 31px; margin-bottom: 10px; color: var(--ink-soft); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark); font-size: .75rem; font-weight: 700;
}
.check-list.small li { color: var(--muted); }
.text-link { font-weight: 600; }

.cards-section { background: linear-gradient(180deg, var(--paper) 0%, #f3f6f1 100%); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 27px 25px;
  box-shadow: var(--shadow-soft);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-icon {
  width: 47px; height: 47px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark);
  font-family: var(--font-head); font-size: 1.16rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .94rem; flex: 1; }
.card-meta { margin: 14px 0 18px; display: grid; gap: 6px; font-size: .85rem; }
.card-meta div {
  display: flex; justify-content: space-between; gap: 12px;
  border-top: 1px dashed var(--line); padding-top: 7px;
}
.card-meta dt { color: var(--muted); }
.card-meta dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.card-link {
  align-self: flex-start; background: none; border: none; padding: 0;
  font: inherit; font-size: .92rem; font-weight: 700; color: var(--accent-dark); cursor: pointer;
}
.card-link:hover { color: var(--accent); text-decoration: underline; }

.schedule-section { background: var(--surface); border-block: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); }
.schedule-table th, .schedule-table td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.schedule-table thead th {
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: .79rem; text-transform: uppercase; letter-spacing: .06em;
}
.schedule-table tbody tr:last-child td { border-bottom: none; }
.schedule-table tbody tr:hover { background: #f5f8f4; }

.admission-section { background: var(--paper); }
.steps {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.steps li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft);
}
.step-num {
  display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700;
}
.steps h3 { font-size: 1.06rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.lead-section { background: linear-gradient(180deg, #edf4ee 0%, var(--paper) 100%); }
.lead-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 54px); align-items: start; }
.lead-copy p { color: var(--ink-soft); }

.lead-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow);
}
.lead-form label { display: block; margin: 0 0 6px; font-size: .9rem; font-weight: 600; }
.lead-form input, .lead-form textarea, .lead-form select, .mini-form input {
  width: 100%; padding: 11px 13px; margin-bottom: 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fdfefc; color: var(--ink); font: inherit; font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus, .mini-form input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 90, 76, .14);
}
.lead-form textarea { resize: vertical; min-height: 86px; }
.lead-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.req { color: var(--danger); }
.hint { color: var(--muted); font-weight: 400; font-size: .8rem; }
.field-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(180, 68, 47, .12) !important; }

.consent {
  display: flex !important; align-items: flex-start; gap: 10px;
  margin: 4px 0 18px !important; font-weight: 400 !important; font-size: .86rem !important;
  color: var(--ink-soft); line-height: 1.5;
}
.consent input { width: 18px !important; height: 18px; margin: 3px 0 0 !important; flex: none; accent-color: var(--accent); }
.consent.field-error { box-shadow: none !important; }

.form-status { min-height: 1.4em; margin: 14px 0 0; font-weight: 600; font-size: .92rem; }
.form-status.is-ok { color: var(--accent-dark); }
.form-status.is-error { color: var(--danger); }
.form-note { margin: 10px 0 0; font-size: .78rem; color: var(--muted); }

.extras-section { background: var(--paper); }
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.extras-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 29px; box-shadow: var(--shadow-soft);
}
.extras-card p { color: var(--ink-soft); font-size: .95rem; }
.mini-form { margin-top: 18px; }
.mini-form label { display: block; margin: 0 0 6px; font-size: .9rem; font-weight: 600; }
.mini-form input { margin-bottom: 14px; }

.contacts-section { background: var(--surface); border-top: 1px solid var(--line); }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 54px); align-items: center; }
.contacts-grid p { color: var(--ink-soft); }
.contacts-card { font-style: normal; display: grid; gap: 13px; }
.contact-row {
  display: grid; grid-template-columns: 108px 1fr; gap: 16px;
  padding: 14px 18px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.contact-label {
  font-size: .77rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); padding-top: 3px;
}
.contact-row p { margin: 0; color: var(--ink); }

.site-footer { background: var(--ink); color: #d9e2dc; padding: 50px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-brand { font-family: var(--font-head); font-size: 1.12rem; color: #fff; margin-bottom: 8px; }
.footer-note { font-size: .85rem; color: #a9bbb2; max-width: 38ch; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .footer-contacts a { color: #d9e2dc; text-decoration: none; font-size: .9rem; }
.footer-nav a:hover, .footer-contacts a:hover { color: #fff; text-decoration: underline; }
.footer-contacts { display: flex; flex-direction: column; gap: 8px; }
.footer-contacts p { margin: 8px 0 0; font-size: .78rem; color: #8fa49a; }

.legal { max-width: 840px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin-top: 34px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal-updated { color: var(--muted); font-size: .85rem; margin-bottom: 28px; }
.legal-contacts {
  font-style: normal; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 16px 0 24px;
}
.legal-contacts p { margin: 0 0 6px; }

@media (max-width: 980px) {
  .hero-grid, .about-grid, .lead-grid, .contacts-grid, .extras-grid {
    grid-template-columns: 1fr; gap: 32px;
  }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-media { order: -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; box-shadow: var(--shadow-soft);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .main-nav .cta { text-align: center; margin-top: 10px; border-bottom: none; }
  .hero { padding: 34px 0 42px; }
  .section { padding: 48px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .hero-facts { gap: 16px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .schedule-table th, .schedule-table td { padding: 13px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .skip-link, .hero-actions, .lead-form, .mini-form, .site-footer { display: none !important; }
  body { background: #fff; }
  .section { padding: 20px 0; }
}
