:root {
  --navy: #173a6b;
  --navy-deep: #0f2a4f;
  --navy-ink: #14233c;
  --navy-soft: #1e4a82;
  --gold: #e9a63a;
  --gold-deep: #c9831f;
  --gold-pale: #f8e3b8;
  --terracotta: #a94e2e;
  --teal: #2f7f7a;
  --cream: #fbf6ee;
  --cream-deep: #f3eadb;
  --paper: #fffdf9;
  --white: #ffffff;
  --muted: #56657a;
  --line: #e7dccb;
  --line-strong: #d7c8b0;
  --success: #1f7a4d;
  --success-bg: #e7f5ec;
  --error: #b23b2e;
  --error-bg: #fbeae7;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(20, 35, 60, 0.06);
  --shadow: 0 16px 40px rgba(20, 35, 60, 0.1);
  --shadow-lg: 0 30px 70px rgba(20, 35, 60, 0.16);
  --sans: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --container: 1160px;
  --header-h: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy-ink);
  background: var(--cream);
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--navy);
  text-decoration-color: rgba(23, 58, 107, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy-ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.55rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

h3 {
  font-size: 1.22rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
}

.container {
  width: min(100% - 40px, var(--container));
  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;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--gold);
  color: var(--navy-ink);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.eyebrow-light {
  color: var(--gold);
}

.accent {
  color: var(--navy);
  white-space: nowrap;
  background-image: linear-gradient(rgba(233, 166, 58, 0.55), rgba(233, 166, 58, 0.55));
  background-repeat: no-repeat;
  background-size: 100% 0.26em;
  background-position: 0 88%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(23, 58, 107, 0.24);
}

.btn-primary:hover {
  background: var(--navy-deep);
  box-shadow: 0 14px 28px rgba(23, 58, 107, 0.3);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--navy);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-ink);
  box-shadow: 0 12px 26px rgba(233, 166, 58, 0.28);
}

.btn-gold:hover {
  background: #f2b14a;
}

.btn-sm {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  text-align: center;
}

.topbar-sep {
  color: var(--gold);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: var(--header-h);
}

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

.brand-mark {
  display: inline-flex;
  filter: drop-shadow(0 6px 12px rgba(23, 58, 107, 0.18));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: 0.01em;
}

.brand-text small {
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 100%;
}

.nav-toggle-box span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle-box span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle-box span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle-box span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-list a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy-ink);
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--terracotta);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.header-inner > .nav-actions {
  margin-left: auto;
}

.nav-phone {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.hero {
  position: relative;
  padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(233, 166, 58, 0.17), transparent 62%),
    radial-gradient(720px 520px at 4% 92%, rgba(47, 127, 122, 0.1), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  overflow: hidden;
}

.hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-deco-1 {
  width: 420px;
  height: 420px;
  top: -180px;
  right: -120px;
  border: 46px solid rgba(233, 166, 58, 0.14);
}

.hero-deco-2 {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -90px;
  background: rgba(23, 58, 107, 0.05);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-copy h1 {
  margin-bottom: 20px;
}

.hero-lead {
  max-width: 34em;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--muted);
}

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

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.hero-chips li {
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 4px;
}

.hero-facts dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.hero-facts a {
  text-decoration: none;
}

.hero-figure {
  position: relative;
  margin: 0;
}

.hero-image-frame {
  padding: 9px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
}

.hero-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 21px;
}

.hero-badge {
  position: absolute;
  left: -14px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-badge-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-pale);
  color: var(--navy);
  flex: 0 0 auto;
}

.hero-badge strong,
.hero-badge small {
  display: block;
}

.hero-badge strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.hero-badge small {
  font-size: 0.74rem;
  color: var(--muted);
}

.section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 24px 56px;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.section-head h2 {
  margin-bottom: 0;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.about-copy p {
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.feature-list strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy-ink);
  margin-bottom: 2px;
}

.feature-list span:last-child {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.about-figure {
  position: relative;
  margin: 0;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(-1.1deg);
}

.about-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.about-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 4px;
  font-size: 0.84rem;
  color: var(--muted);
}

.about-figure-label {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directions {
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(47, 127, 122, 0.07), transparent 65%),
    var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.direction-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.direction-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--terracotta));
  opacity: 0.9;
}

.direction-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--gold-pale);
  color: var(--navy);
}

.card-num {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: #9a8564;
}

.tag {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(23, 58, 107, 0.08);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.direction-card h3 {
  margin-bottom: 8px;
}

.direction-card > p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.card-points {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}

.card-points li {
  position: relative;
  padding-left: 16px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--navy-ink);
}

.card-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}

.directions-note,
.teachers-note,
.contacts-note {
  margin: 26px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(233, 166, 58, 0.09);
  font-size: 0.9rem;
  color: var(--navy-ink);
}

.teachers {
  background: var(--cream);
}

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

.teacher-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.teacher-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 18px 18px 18px 4px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.tag-tinted {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(169, 78, 46, 0.1);
  color: var(--terracotta);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-card h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.teacher-card > p {
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 12px;
}

.teacher-points {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.teacher-points li {
  position: relative;
  padding-left: 15px;
  font-size: 0.8rem;
  color: var(--navy);
}

.teacher-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold-deep);
}

.cta-band {
  position: relative;
  padding: clamp(38px, 5vw, 58px) 0;
  background:
    radial-gradient(600px 320px at 88% 0%, rgba(233, 166, 58, 0.2), transparent 60%),
    var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border: 42px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-inner h2 {
  color: var(--white);
  margin-bottom: 6px;
}

.cta-inner p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
  font-size: 0.96rem;
}

.cta-inner .btn {
  flex: 0 0 auto;
}

.lead-section {
  background: var(--paper);
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
}

.lead-copy > p {
  color: var(--muted);
}

.lead-info {
  display: grid;
  gap: 16px;
  margin: 26px 0;
}

.lead-info li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.lead-info-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--cream-deep);
  color: var(--navy);
  flex: 0 0 auto;
}

.lead-info strong {
  display: block;
  font-size: 0.93rem;
  margin-bottom: 1px;
}

.lead-info span:last-child {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

.lead-call {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px dashed var(--line-strong);
  font-size: 0.8rem;
  color: var(--muted);
}

.lead-call a {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.form-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-head {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.form-head h3 {
  margin-bottom: 4px;
  font-size: 1.4rem;
}

.form-head p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-ink);
}

.req {
  color: var(--terracotta);
}

.optional {
  font-weight: 500;
  font-size: 0.74rem;
  color: var(--muted);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--navy-ink);
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

select {
  padding-right: 40px;
  cursor: pointer;
}

input::placeholder,
textarea::placeholder {
  color: #667386;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--navy-soft);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(23, 58, 107, 0.12);
}

.field-error {
  display: none;
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--error);
}

.is-invalid .field-error {
  display: block;
}

.is-invalid input,
.is-invalid select,
.is-invalid textarea {
  border-color: var(--error);
  background: var(--error-bg);
}

.form-consent {
  margin-top: 4px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.checkbox input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 3px 0 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--navy);
}

.checkbox a {
  color: var(--navy);
}

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

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.is-loading .btn-spinner {
  display: inline-block;
}

.is-loading .btn-label {
  opacity: 0.8;
}

.is-loading {
  cursor: progress;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-foot {
  margin: 12px 0 0;
  font-size: 0.73rem;
  line-height: 1.45;
  color: var(--muted);
}

.form-status {
  display: none;
  margin-top: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-status.is-success,
.form-status.is-error {
  display: block;
  padding: 14px 16px;
  border: 1px solid transparent;
}

.form-status.is-success {
  background: var(--success-bg);
  border-color: rgba(31, 122, 77, 0.25);
  color: var(--success);
}

.form-status.is-error {
  background: var(--error-bg);
  border-color: rgba(178, 59, 46, 0.25);
  color: var(--error);
}

.form-status strong {
  display: block;
  margin-bottom: 2px;
}

.contacts {
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--cream-deep);
  color: var(--navy);
}

.contact-card h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.contact-card p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.contact-card a {
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-note {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}

.contacts-note a {
  font-weight: 700;
}

.site-footer {
  padding-top: clamp(42px, 5vw, 64px);
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 40px;
}

.brand-footer {
  color: var(--white);
  margin-bottom: 14px;
}

.brand-footer .brand-text strong {
  color: var(--white);
}

.brand-footer .brand-text small {
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand p {
  max-width: 42ch;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-nav ul,
.footer-contacts ul {
  display: grid;
  gap: 8px;
  font-size: 0.87rem;
}

.footer-nav a,
.footer-contacts a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contacts a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero {
  padding: clamp(42px, 5vw, 64px) 0 clamp(26px, 3vw, 36px);
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(233, 166, 58, 0.16), transparent 62%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 8px;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 66ch;
}

.prose {
  max-width: 820px;
  padding: clamp(36px, 5vw, 56px) 0 clamp(56px, 7vw, 84px);
}

.prose h2 {
  font-size: 1.45rem;
  margin-top: 34px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 6px;
}

.prose .note {
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(233, 166, 58, 0.1);
  color: var(--navy-ink);
  font-size: 0.9rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-weight: 700;
  text-decoration: none;
}

.staff-main {
  padding: clamp(32px, 4vw, 52px) 0 80px;
  background: var(--cream);
  min-height: 70vh;
}

.staff-card {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.staff-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 8px;
}

.staff-form .form-row {
  flex: 1 1 300px;
  margin-bottom: 0;
}

.staff-meta {
  margin: 18px 0 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

.staff-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 900px;
}

.staff-table th,
.staff-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.staff-table th {
  background: var(--cream-deep);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.staff-table tbody tr:last-child td {
  border-bottom: 0;
}

.staff-table td {
  color: var(--navy-ink);
}

.staff-table .cell-name {
  font-weight: 600;
}

.staff-table .cell-comment {
  max-width: 320px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.staff-empty {
  padding: 26px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.staff-hint {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--muted);
}

.staff-hint code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--cream-deep);
  font-size: 0.82em;
}

@media (max-width: 1080px) {
  .teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-actions {
    gap: 12px;
    padding-left: 18px;
  }

  .nav-list {
    gap: 18px;
  }
}

@media (max-width: 1000px) {
  :root {
    --header-h: 72px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px 20px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-open .site-nav {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
    border-bottom: 1px solid var(--line);
  }

  .nav-list a {
    display: block;
    padding: 11px 4px;
    font-size: 1rem;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 0 0;
    border-left: 0;
  }

  .nav-phone {
    text-align: center;
    font-size: 1.05rem;
  }

  .hero-grid,
  .about-grid,
  .lead-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 1;
  }

  .hero-figure {
    order: 2;
    max-width: 640px;
    margin-inline: auto;
    width: 100%;
  }

  .about-figure {
    order: 2;
    max-width: 640px;
    margin-inline: auto;
    width: 100%;
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .topbar-inner {
    font-size: 0.68rem;
    min-height: 38px;
    padding: 5px 0;
    flex-wrap: wrap;
    gap: 2px 7px;
  }

  .header-inner > .nav-actions {
    gap: 10px;
    padding-left: 0;
    border-left: 0;
  }

  .header-inner > .nav-actions .nav-phone {
    display: none;
  }

  .header-inner > .nav-actions .btn {
    width: auto;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .topbar-inner span:first-child {
    max-width: 100%;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-chips {
    margin-bottom: 24px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-facts div {
    display: flex;
    align-items: baseline;
    gap: 12px;
  }

  .hero-facts dt {
    min-width: 74px;
    margin: 0;
  }

  .hero-image-frame,
  .about-figure {
    transform: none;
  }

  .hero-badge {
    left: 8px;
    bottom: 12px;
    padding: 9px 13px 9px 9px;
  }

  .feature-list,
  .cards-grid,
  .teacher-grid,
  .contacts-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cta-inner .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero-actions .btn {
    width: 100%;
  }

  .header-inner > .nav-actions {
    display: none;
  }

  .about-figure figcaption {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .btn:hover,
  .direction-card:hover,
  .teacher-card:hover {
    transform: none;
  }
}
