:root {
  --ink: #16243a;
  --ink-soft: #44546b;
  --navy: #13294b;
  --navy-deep: #0d1e39;
  --gold: #c8963e;
  --gold-soft: #e7c98b;
  --paper: #f7f4ec;
  --paper-alt: #fffdf8;
  --line: #e3dccb;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(19, 41, 75, .10);
  --wrap: 1140px;
  --sans: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 17px/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-lead {
  max-width: 620px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 236, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  line-height: 1.2;
}

.brand-text small {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

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

.cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
  font-weight: 600;
  font-size: .94rem;
  text-decoration: none;
  border: 1px solid var(--navy);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.cta:hover,
.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep) !important;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy) !important;
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--paper-alt);
  border-color: var(--gold);
  color: var(--navy) !important;
}

.hero {
  padding: clamp(40px, 7vw, 84px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(900px 460px at 88% 8%, rgba(200, 150, 62, .16), transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-alt) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero-text .lead {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 34px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  padding: 14px 16px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

.hero-facts strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--navy);
}

.hero-facts span {
  font-size: .8rem;
  color: var(--ink-soft);
}

.hero-media img,
.about-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(19, 41, 75, .06);
  object-fit: cover;
}

.about { padding: clamp(48px, 7vw, 88px) 0; }

.about-inner {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(200, 150, 62, .18);
  color: #8a641f;
  font-size: .72rem;
  font-weight: 700;
}

.direction {
  padding: clamp(48px, 7vw, 88px) 0;
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-soft);
  box-shadow: var(--shadow);
}

.card-num {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: .9rem;
  color: var(--gold);
  letter-spacing: .08em;
}

.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

.teachers { padding: clamp(48px, 7vw, 88px) 0; }

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

.teacher {
  padding: 28px 24px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .04em;
}

.teacher p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.schedule {
  padding: clamp(44px, 6vw, 76px) 0;
  background: var(--navy);
  color: #e9edf5;
}

.schedule h2 { color: #fff; }
.schedule .eyebrow { color: var(--gold-soft); }

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.schedule-item {
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-item strong {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-soft);
}

.schedule-item span { font-size: .88rem; color: #c8d2e2; }

.lead {
  padding: clamp(48px, 7vw, 88px) 0;
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
}

.lead-inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.lead-text { position: sticky; top: 100px; }
.lead-text .hint { font-size: .88rem; color: var(--ink-soft); }

.lead-form {
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lead-form label {
  display: block;
  margin-bottom: 16px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, .18);
}

.lead-form textarea { resize: vertical; min-height: 92px; }

.lead-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.5;
}

.lead-form .consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--navy);
}

.req { color: #b4532a; }

.lead-form button {
  width: 100%;
  margin-top: 4px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.lead-form button:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.lead-form button:disabled { opacity: .6; cursor: wait; transform: none; }

.form-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: .92rem;
  font-weight: 600;
}

.form-status.ok { color: #217a4b; }
.form-status.err { color: #b23a2b; }

.contacts { padding: clamp(48px, 7vw, 88px) 0; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.contact-card {
  padding: 26px 24px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card h3 { color: var(--gold); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.contact-card p { margin: 0 0 6px; }
.contact-card .muted { color: var(--ink-soft); font-size: .86rem; }
.contact-card a { font-weight: 600; }

.site-footer {
  padding: 28px 0;
  background: var(--navy-deep);
  color: #b9c5d8;
  font-size: .88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer p { margin: 0; }
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; }

.legal { padding: 48px 0 72px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal ul { color: var(--ink-soft); }
.legal .back { display: inline-block; margin-bottom: 24px; font-size: .9rem; }

.staff-shell { padding: 48px 0 72px; }
.staff-table { width: 100%; border-collapse: collapse; background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.staff-table th, .staff-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.staff-table th { background: var(--navy); color: #fff; font-weight: 600; }
.staff-table tr:last-child td { border-bottom: 0; }
.staff-empty { padding: 28px; color: var(--ink-soft); background: var(--paper-alt); border: 1px dashed var(--line); border-radius: var(--radius); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(200, 150, 62, .18); color: #7a571b; font-size: .78rem; font-weight: 600; }

@media (max-width: 900px) {
  .hero-inner,
  .about-inner,
  .lead-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .about-media { order: -1; }
  .lead-text { position: static; }
  .main-nav { gap: 14px; }
}

@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
  .main-nav { gap: 12px 16px; }
  .main-nav .cta { padding: 9px 16px; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
}

.muted { color: var(--ink-soft); }
.schedule-note { margin: 0 0 14px; color: var(--ink-soft); font-size: .92rem; }
code { background: rgba(19, 41, 75, .07); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.hint { color: var(--ink-soft); font-size: .88rem; }
