:root {
  --blue: #1739c9;
  --ink: #0a1630;
  --sun: #ffc83d;
  --sky: #e8f0ff;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
html.big { font-size: 125%; }
body {
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
h1, h2, h3 { line-height: 1.12; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.8rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { max-width: 60ch; }
a { color: inherit; }
.wrap { width: min(1120px, 92%); margin-inline: auto; }
.sub { margin-bottom: 2rem; font-size: 1.15rem; }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; box-shadow: 0 0 0 7px var(--ink); }

.skip { position: absolute; left: -999px; top: 0; background: var(--sun); padding: 0.8rem 1.2rem; z-index: 50; font-weight: 700; }
.skip:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-block; padding: 0.9rem 1.6rem; border: 3px solid var(--blue); border-radius: 12px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn.solid { background: var(--blue); color: var(--white); }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); }
.btn.line { background: transparent; color: var(--blue); }
.btn.line:hover { background: var(--blue); color: var(--white); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 4px solid var(--blue); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; }
.logo { font-weight: 700; font-size: 1.1rem; line-height: 1.2; text-decoration: none; color: var(--blue); }
.nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav a:not(.btn) { font-weight: 700; text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }
.tools { display: flex; gap: 0.5rem; }
.tool { font: inherit; font-weight: 700; background: var(--sun); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; padding: 0.4rem 0.9rem; cursor: pointer; }
.tool[aria-pressed="true"] { background: var(--ink); color: var(--sun); }
.menu { display: none; }

/* Hero */
.hero { background: var(--sky); padding: clamp(3rem, 8vw, 6rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); color: var(--ink); margin-bottom: 1.3rem; }
.lead { font-size: 1.3rem; margin-bottom: 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.wave-zone { display: grid; justify-items: center; gap: 1.2rem; text-align: center; }
.wave {
  position: relative; width: 240px; height: 240px; border-radius: 50%;
  background: var(--sun); color: var(--ink); border: 4px solid var(--ink);
  font: inherit; font-size: 1.5rem; font-weight: 700; cursor: pointer;
}
.wave-label { position: relative; z-index: 2; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--blue); opacity: 0; }
.wave.waving .ring { animation: pulse 1.2s ease-out; }
.wave.waving .r2 { animation-delay: 0.25s; }
.wave.waving { animation: shake 0.6s; }
@keyframes pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.wave-msg { font-weight: 700; }

/* Programs */
.programs { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.panel { padding: 2rem; border: 4px solid var(--ink); border-radius: 20px; }
.p-blue { background: var(--blue); color: var(--white); }
.p-sun { background: var(--sun); }
.p-ink { background: var(--ink); color: var(--white); }
.p-sky { background: var(--sky); }

/* Approach */
.approach { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--sun); border-block: 4px solid var(--ink); }
.points { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 1.5rem; }
.points li { border-left: 8px solid var(--ink); padding-left: 1.2rem; }
.points strong { display: block; font-size: 1.4rem; }

/* Admissions */
.admissions { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 1.2rem; max-width: 760px; margin-top: 1.5rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; align-items: start; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-size: 1.5rem; font-weight: 700;
}
.steps strong { font-size: 1.3rem; display: block; }

/* Contact */
.contact { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--ink); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info dt { font-weight: 700; color: var(--sun); margin-top: 1rem; }
.info dd { margin: 0; }
.info a { color: var(--white); }
form { background: var(--white); color: var(--ink); padding: 2rem; border-radius: 20px; display: grid; gap: 0.5rem; }
label { font-weight: 700; margin-top: 0.4rem; }
input, textarea { width: 100%; font: inherit; padding: 0.8rem 1rem; border: 3px solid var(--ink); border-radius: 12px; }
input:focus, textarea:focus { border-color: var(--blue); }
form .btn { justify-self: start; margin-top: 0.8rem; }
.error { font-weight: 700; color: #b00020; }

footer { padding: 1.5rem 0; background: var(--white); border-top: 4px solid var(--blue); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; }

@media (max-width: 860px) {
  .hero-grid, .contact-grid, .panels, .points { grid-template-columns: 1fr; }
  .menu { display: block; }
  .nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 1.2rem; padding: 1.4rem 4%; background: var(--white); border-bottom: 4px solid var(--blue);
  }
  .nav.open { display: flex; }
  .tools { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave.waving, .wave.waving .ring { animation: none; }
}
