:root {
  --ink: #111820;
  --ink-soft: #3d4652;
  --ink-mute: #6b7480;
  --paper: #f5f2ea;
  --paper-2: #fffdf8;
  --line: #e2ddd1;
  --lime: #c8ff3d;
  --lime-deep: #9be000;
  --blue: #2f5bff;
  --coral: #ff6b57;
  --violet: #b79bff;
  --sand: #ffd9a0;
  --dark: #10161d;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 24px 60px rgba(17, 24, 32, 0.12);
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 7.5vw, 6.2rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); letter-spacing: -0.02em; line-height: 1.1; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 234, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 221, 209, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--ink);
  color: var(--lime);
  border-radius: 14px;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
  transform: rotate(-4deg);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-text small { color: var(--ink-mute); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a { text-decoration: none; position: relative; }
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--ink);
  transition: width 0.2s ease;
}
.site-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.7rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(17, 24, 32, 0.2); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-small { padding: 0.65rem 1.2rem; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-submit { width: 100%; margin-top: 0.4rem; background: var(--lime); color: var(--ink); }
.btn-submit:hover { background: var(--lime-deep); }
.btn-submit[disabled] { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(200, 255, 61, 0.4), transparent 34%),
    radial-gradient(circle at 6% 80%, rgba(47, 91, 255, 0.14), transparent 30%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.2rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow .dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 4px rgba(155, 224, 0, 0.2);
}
.eyebrow.light { color: rgba(255, 255, 255, 0.72); }

.hero-copy h1 { margin-bottom: 1.6rem; }
.accent-word {
  display: inline-block;
  background: var(--lime);
  border-radius: 0.24em;
  padding: 0 0.12em;
  transform: rotate(-1.6deg);
}

.hero-copy .lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.6rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
  margin: 0;
  padding-top: 1.6rem;
  border-top: 1px dashed #c9c2b2;
}
.hero-stats div { min-width: 6rem; }
.hero-stats dt { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.hero-stats dd { margin: 0.3rem 0 0; font-size: 0.82rem; font-weight: 600; color: var(--ink-mute); }

.hero-figure {
  position: relative;
  margin: 0;
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  border: 6px solid var(--paper-2);
}
.hero-sticker {
  position: absolute;
  right: -0.5rem;
  bottom: 1.6rem;
  background: var(--ink);
  color: var(--lime);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  transform: rotate(-4deg);
  box-shadow: 0 14px 30px rgba(17, 24, 32, 0.24);
}

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  padding: 0.9rem 0;
}
.ticker-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: marquee 26s linear infinite;
}
.ticker-track span:nth-child(even) { color: var(--lime-deep); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: 3rem;
}
.section-head h2 { margin-top: 0.2rem; }
.section-note { max-width: 30rem; color: var(--ink-soft); margin: 0; }

/* About */
.about { background: var(--paper-2); border-block: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-figure { margin: 0; position: relative; }
.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 4.3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 6px solid var(--paper);
  box-shadow: var(--shadow);
}
.about-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-mute);
}
.about-copy h2 { margin-bottom: 1.4rem; }
.about-copy p { color: var(--ink-soft); max-width: 40rem; }

.check-list { display: grid; gap: 0.7rem; margin-top: 1.6rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  font-weight: 600;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: inset 0 0 0 2px var(--ink);
}

/* Programs */
.programs { background: var(--paper); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  --card-bg: var(--paper-2);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 17rem;
  padding: 1.8rem;
  background: var(--card-bg);
  border: 1px solid rgba(17, 24, 32, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(17, 24, 32, 0.14); }
.card::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  bottom: -2.5rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.card-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: auto;
  opacity: 0.65;
}
.card h3 { margin: 1.4rem 0 0.7rem; position: relative; z-index: 1; }
.card p { font-size: 0.96rem; line-height: 1.55; color: rgba(17, 24, 32, 0.78); position: relative; z-index: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; position: relative; z-index: 1; }
.card-tags li {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(17, 24, 32, 0.14);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}
.card-lime { --card-bg: var(--lime); }
.card-blue { --card-bg: #d7e0ff; }
.card-coral { --card-bg: #ffd4cc; }
.card-violet { --card-bg: #e6ddff; }
.card-sand { --card-bg: var(--sand); }
.card-ink { --card-bg: var(--dark); color: #fff; border-color: transparent; }
.card-ink .card-num { color: var(--lime); }
.card-ink p { color: rgba(255, 255, 255, 0.72); }
.card-ink .card-tags li { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.card-ink::after { background: rgba(200, 255, 61, 0.16); }

/* Admission */
.admission { background: var(--paper-2); border-block: 1px solid var(--line); }
.admission-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.admission-grid h2 { margin-bottom: 1.2rem; }
.steps { display: grid; gap: 0.9rem; }
.steps li {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.4rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li > span {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-weight: 900;
}
.steps strong { display: block; font-size: 1.1rem; letter-spacing: -0.01em; }
.steps p { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 0.94rem; }

/* Lead form */
.lead-section { background: var(--dark); color: #fff; }
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.lead-copy h2 { margin-bottom: 1.4rem; }
.lead-copy > p { color: rgba(255, 255, 255, 0.68); max-width: 30rem; }
.lead-points { display: grid; gap: 0.75rem; margin-top: 2rem; }
.lead-points li {
  position: relative;
  padding-left: 1.9rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}
.lead-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--lime);
}

.lead-form {
  background: var(--paper-2);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 0.4rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #d8d2c6;
  border-radius: 14px;
  padding: 0.8rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 5rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.14);
}
.field input[aria-invalid="true"] { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 107, 87, 0.14); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1.1rem 0 1.3rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  accent-color: var(--ink);
}
.consent a { color: var(--blue); font-weight: 700; }

.form-status { margin: 0.9rem 0 0; min-height: 1.4rem; font-weight: 700; font-size: 0.9rem; }
.form-status.is-error { color: #c22f1c; }
.form-status.is-success { color: #1c7a43; }

/* Contacts */
.contacts { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.contact-card {
  padding: 1.7rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.9rem;
}
.contact-card p { font-weight: 600; }
.contact-card a { text-decoration: none; border-bottom: 2px solid var(--lime); }
.contact-card a:hover { background: var(--lime); }
.contact-card .muted { color: var(--ink-mute); font-weight: 500; font-size: 0.84rem; margin-top: 0.45rem; }
.contact-card-dark { background: var(--ink); color: #fff; border-color: transparent; }
.contact-card-dark .contact-label { color: rgba(255, 255, 255, 0.6); }
.contact-card-dark p { color: rgba(255, 255, 255, 0.82); }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 3rem 0 2.4rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 3rem;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand .brand-mark { background: var(--lime); color: var(--ink); }
.footer-brand p { font-weight: 700; line-height: 1.3; font-size: 0.95rem; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.9rem; font-weight: 600; }
.footer-nav a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-nav a:hover { color: var(--lime); }
.footer-copy {
  grid-column: 1 / -1;
  margin: 1rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .admission-grid,
  .lead-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 34rem; }
  .about-figure { max-width: 30rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { gap: 1rem; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .home .nav-toggle { display: inline-flex; }
  .home .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(17, 24, 32, 0.08);
    display: none;
  }
  .home .site-nav.is-open { display: flex; }
  .site-nav { gap: 0.5rem 1rem; font-size: 0.88rem; }
  .site-nav a { padding: 0.35rem 0; }
  .site-nav .btn { margin-top: 0.3rem; align-self: flex-start; }
  .hero { padding-top: 2.5rem; }
  .hero-sticker { right: 0.4rem; bottom: 0.8rem; font-size: 0.82rem; padding: 0.75rem 0.95rem; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 15rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
