/* ============================================================
   BIG BEN — Academia de Inglés
   Sistema de diseño · vanilla CSS
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --navy:        #0d2273;
  --navy-deep:   #081747;
  --navy-soft:   #1b3aa3;
  --red:         #e0233a;
  --red-deep:    #b3122a;

  /* Acentos energéticos (historias IG) */
  --yellow:      #ffc63d;
  --yellow-deep: #f0a500;
  --purple:      #6d4bf0;
  --sky:         #38b6ff;

  /* Neutros cálidos */
  --cream:       #fef9f1;
  --paper:       #ffffff;
  --ink:         #0e1430;
  --ink-soft:    #4a5170;
  --line:        #e7e2d6;

  /* Sistema */
  --maxw: 1180px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow:    0 18px 40px -22px rgba(13, 34, 115, .45);
  --shadow-lg: 0 40px 80px -40px rgba(8, 23, 71, .55);
  --ease: cubic-bezier(.21, .68, .35, 1);

  --font-display: "Caprasimo", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- Helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 72px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px;
  background: currentColor; opacity: .8;
}

.h-sec {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.8vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: 0;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }

.text-red { color: var(--red); }
.text-yellow { color: var(--yellow-deep); }

/* tinta inglesa: subrayado a mano */
.ink-underline { position: relative; white-space: nowrap; }
.ink-underline::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.08em;
  height: .42em; z-index: -1; border-radius: 6px;
  background: var(--yellow); opacity: .85;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 16px; letter-spacing: .005em;
  padding: 15px 26px; border-radius: 999px;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn--red { background: var(--red); color: #fff; box-shadow: 0 14px 28px -14px var(--red); }
.btn--red:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 20px 34px -14px var(--red); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); transform: translateY(-2px); }

.btn--yellow { background: var(--yellow); color: var(--navy-deep); box-shadow: 0 14px 28px -16px var(--yellow-deep); }
.btn--yellow:hover { background: var(--yellow-deep); color: #fff; transform: translateY(-2px); }

.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

.btn--outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

.btn--lg { padding: 18px 34px; font-size: 17px; }
.btn--block { width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(254, 249, 241, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(8,23,71,.6); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 50px; width: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt b {
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  letter-spacing: .02em; color: var(--navy);
}
.brand__txt span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-weight: 700; font-size: 15px; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--navy); background: rgba(13,34,115,.07); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__login {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 15px; color: var(--navy);
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--navy);
  transition: all .2s var(--ease);
}
.nav__login svg { width: 17px; height: 17px; }
.nav__login:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }

.nav__burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); align-items: center; justify-content: center; }
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; display: block; width: 20px; height: 2.2px; background: var(--navy); border-radius: 2px; transition: .25s;
}
.nav__burger span::before { transform: translateY(-6px); }
.nav__burger span::after { transform: translateY(4px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 84px 0 96px;
}
/* rayos Union Jack */
.hero__rays {
  position: absolute; top: -30%; right: -8%;
  width: 760px; height: 760px; pointer-events: none;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%,
      transparent 0deg 16deg,
      rgba(255,255,255,.04) 16deg 17deg);
  opacity: .9;
}
.hero__glow {
  position: absolute; pointer-events: none;
}
.hero__glow--red { width: 520px; height: 520px; left: -160px; bottom: -200px;
  background: radial-gradient(circle, rgba(224,35,58,.55), transparent 62%); }
.hero__glow--yellow { width: 420px; height: 420px; right: 4%; top: 12%;
  background: radial-gradient(circle, rgba(255,198,61,.30), transparent 60%); }

.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: 8px 16px 8px 10px; border-radius: 999px;
  font-weight: 700; font-size: 13.5px; margin-bottom: 26px;
}
.hero__badge i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: var(--navy-deep); font-style: normal; font-weight: 900; font-size: 12px; }

.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: 0;
  margin-bottom: 22px;
}
.hero h1 .pop { color: var(--yellow); }
.hero__h1-main { display: block; }
.hero__h1-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-style: italic;
  font-size: .4em;
  letter-spacing: .005em;
  line-height: 1.2;
  color: rgba(255,255,255,.85);
  margin-top: .35em;
}

/* Signos ¿ ¡ en fuente de respaldo: Corben Bold no los incluye (bug upstream) */
.sp-mark { font-family: var(--font-body); font-weight: 600; }
.hero__sub { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: rgba(255,255,255,.82); max-width: 33ch; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: rgba(255,255,255,.7); font-weight: 600; }
.hero__meta b { color: #fff; }

/* tarjeta visual del hero (Big Ben + reloj) */
.hero__card {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(255,255,255,.14), transparent 55%),
    linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%);
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
}
.hero__card::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 38%, rgba(255,255,255,.07) 0 9deg, transparent 9deg 18deg);
}
.hero__logoChip {
  position: relative; z-index: 2; width: 72%; background: #fff;
  border-radius: var(--r-lg); padding: 30px 24px; text-align: center;
  box-shadow: var(--shadow);
}
.hero__logoChip img { width: 100%; }
.hero__floats { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.float-chip {
  position: absolute; background: #fff; color: var(--navy);
  font-weight: 800; font-size: 14px; padding: 11px 16px; border-radius: 14px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px;
}
.float-chip i { font-style: normal; }
.float-chip--1 { top: 6%; left: -6%; }
.float-chip--2 { bottom: 9%; right: -7%; background: var(--yellow); }
.float-chip--3 { bottom: 30%; left: -9%; background: var(--navy-deep); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .float-chip { animation: floaty 5s var(--ease) infinite; }
  .float-chip--2 { animation-delay: -1.6s; }
  .float-chip--3 { animation-delay: -3.1s; }
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Marquee de confianza ---------- */
.trust { background: var(--red); color: #fff; padding: 0; overflow: hidden; }
.trust__track { display: flex; gap: 0; white-space: nowrap; animation: marquee 28s linear infinite; }
.trust__track:hover { animation-play-state: paused; }
.trust__group { display: flex; }
.trust__item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px; font-weight: 800; font-size: 15px; letter-spacing: .02em;
}
.trust__item i { font-style: normal; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .trust__track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* ============================================================
   SECCIÓN: CURSOS
   ============================================================ */
.head { max-width: 720px; margin-bottom: 52px; }
.head--center { margin-inline: auto; text-align: center; }
.head .eyebrow { margin-bottom: 16px; }
.head .lead { margin-top: 16px; }

.courses { background: var(--cream); }
.courses__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.course {
  position: relative; background: var(--paper); border-radius: var(--r-lg);
  padding: 30px 28px 28px; border: 1px solid var(--line);
  box-shadow: 0 2px 0 rgba(8,23,71,.04);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .2s;
  overflow: hidden;
}
.course::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--accent, var(--navy));
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.course__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent);
  margin-bottom: 20px;
}
.course__icon svg { width: 28px; height: 28px; }
.course__age {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}
.course h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; letter-spacing: 0; margin-bottom: 8px; }
.course p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 18px; }
.course__sched { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px dashed var(--line); }
.course__sched li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.course__sched li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.course__sched li span { color: var(--ink-soft); font-weight: 600; }
.course--wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.course--wide .course__icon { margin-bottom: 0; }
.course--wide > div { min-width: 0; }
.course--wide h3 { margin-bottom: 4px; }
.course--wide p { margin-bottom: 0; }

/* ============================================================
   SECCIÓN: NIVELES / TRAYECTO ANGLIA
   ============================================================ */
.path { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.path__rays { position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 16% 120%, rgba(255,255,255,.04) 0 8deg, transparent 8deg 16deg); }
.path__inner { position: relative; z-index: 2; display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.path .lead { color: rgba(255,255,255,.78); }
.path__badge {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 26px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px; padding: 14px 18px;
}
.path__badge b { font-size: 13px; letter-spacing: .04em; }
.path__badge small { display: block; font-size: 12px; color: rgba(255,255,255,.65); font-weight: 600; }
.path__badge .anglia { width: 42px; height: 42px; border-radius: 10px; background: var(--sky); display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 12px; letter-spacing: .02em; }

.ladder { display: flex; flex-direction: column; gap: 12px; }
.rung {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 16px 20px;
  transition: transform .25s var(--ease), background .25s;
}
.rung:hover { transform: translateX(8px); background: rgba(255,255,255,.12); }
.rung__step { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--yellow); width: 34px; flex-shrink: 0; }
.rung__body { flex: 1; min-width: 0; }
.rung__body b { font-weight: 800; font-size: 17px; }
.rung__body span { display: block; font-size: 13.5px; color: rgba(255,255,255,.65); }
.rung__lvl { font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.12); }
.rung:nth-child(1) { border-left: 4px solid var(--sky); }
.rung:nth-child(2) { border-left: 4px solid var(--purple); }
.rung:nth-child(3) { border-left: 4px solid var(--yellow); }
.rung:nth-child(4) { border-left: 4px solid var(--red); }

/* ============================================================
   SECCIÓN: INSTALACIONES
   ============================================================ */
.gallery__grid { columns: 3; column-gap: 16px; }
.shot {
  position: relative; break-inside: avoid; margin: 0 0 16px;
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: #eef0f7;
}
.shot img { width: 100%; height: auto; display: block; transition: transform .5s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0;
  padding: 32px 16px 14px; color: #fff;
  background: linear-gradient(transparent, rgba(8,23,71,.82));
}
.shot__cap b { font-family: var(--font-display); font-weight: 700; font-size: 18px; display: block; line-height: 1.15; }
.shot__cap span { font-size: 13px; opacity: .92; font-weight: 600; }

/* ============================================================
   SECCIÓN: SOBRE
   ============================================================ */
.about { background: var(--cream); }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__visual { position: relative; }
.about__photo {
  aspect-ratio: 5/6; border-radius: var(--r-lg); border: 1px solid var(--line);
  overflow: hidden; position: relative; box-shadow: var(--shadow); background: #eef0f7;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__stamp {
  position: absolute; bottom: -26px; right: -18px; z-index: 3;
  background: var(--yellow); color: var(--navy-deep);
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; padding: 14px;
  box-shadow: var(--shadow); transform: rotate(-8deg);
  border: 3px solid #fff;
}
.about__stamp b { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; }
.about__stamp span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.feats { display: grid; gap: 18px; margin-top: 28px; }
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat__ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; }
.feat__ic svg { width: 22px; height: 22px; }
.feat b { display: block; font-weight: 800; font-size: 16.5px; margin-bottom: 2px; }
.feat p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ============================================================
   SECCIÓN: STAFF
   ============================================================ */
.staff { background: var(--paper); }
/* Dirección destacada */
.staff__lead { display: flex; justify-content: center; margin-bottom: 34px; }
.lead-card {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch;
  max-width: 640px; width: 100%; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.lead-card__photo { position: relative; background: #eef0f7; }
.lead-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.lead-card__info { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.lead-card__tag {
  align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); background: rgba(224,35,58,.1); padding: 5px 12px; border-radius: 999px; margin-bottom: 6px;
}
.lead-card__info b { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.1; color: var(--ink); }
.lead-card__info span { font-size: 14px; color: var(--ink-soft); font-weight: 600; }

/* Grilla de profes */
.staff__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.member { text-align: center; width: calc((100% - 88px) / 5); }
.member__photo {
  aspect-ratio: 3 / 4; border-radius: 18px; margin-bottom: 16px; position: relative; overflow: hidden;
  background: repeating-linear-gradient(45deg, #eef0f7 0 12px, #e6e9f4 12px 24px);
  border: 1px solid var(--line);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.member__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 1; }
.member:nth-child(5n+1) .member__photo::after { background: var(--red); }
.member:nth-child(5n+2) .member__photo::after { background: var(--navy); }
.member:nth-child(5n+3) .member__photo::after { background: var(--yellow); }
.member:nth-child(5n+4) .member__photo::after { background: var(--purple); }
.member:nth-child(5n+5) .member__photo::after { background: var(--sky); }
.member b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.member span { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.staff__note { text-align: center; margin-top: 36px; font-size: 14.5px; color: var(--ink-soft); }

/* ============================================================
   SECCIÓN: CONTACTO
   ============================================================ */
.contact { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.contact__glow { position: absolute; width: 500px; height: 500px; right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(224,35,58,.4), transparent 62%); pointer-events: none; }
.contact__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact .lead { color: rgba(255,255,255,.78); }

.contact__list { display: grid; gap: 16px; margin-top: 32px; }
.contact__item {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 16px 20px; transition: background .2s, transform .2s;
}
.contact__item:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.contact__item .ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff; }
.contact__item .ic svg { width: 22px; height: 22px; }
.contact__item small { display: block; font-size: 12.5px; color: rgba(255,255,255,.6); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.contact__item b { font-size: 17px; font-weight: 700; }

.contact__form {
  background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 32px;
  box-shadow: var(--shadow-lg);
}
.contact__form h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin-bottom: 6px; }
.contact__form > p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 15.5px;
  padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--cream); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(13,34,115,.1); background: #fff;
}
.field textarea { resize: vertical; min-height: 96px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 12px; text-align: center; }

.form-feedback { display: none; font-size: 13.5px; font-weight: 700; padding: 11px 14px; border-radius: 12px; margin-bottom: 14px; }
.form-feedback.is-ok { display: block; color: #0a6b2e; background: rgba(16,160,72,.12); }
.form-feedback.is-error { display: block; color: var(--red-deep); background: rgba(224,35,58,.10); }

.map {
  margin-top: 22px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid rgba(255,255,255,.16); aspect-ratio: 16/7; position: relative;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, rgba(255,255,255,.02) 12px 24px);
  display: grid; place-items: center;
}
.map a { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); font-weight: 800; padding: 11px 20px; border-radius: 999px; font-size: 14px; }
.map a svg { width: 17px; height: 17px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand img { height: 56px; background: #fff; padding: 8px; border-radius: 14px; margin-bottom: 16px; }
.footer__brand p { font-size: 14.5px; max-width: 34ch; }
.footer h4 { color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a { display: block; padding: 6px 0; font-size: 15px; transition: color .2s; }
.footer__col a:hover { color: var(--yellow); }
.footer__social { display: flex; gap: 10px; margin-top: 14px; }
.footer__social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .2s, transform .2s; }
.footer__social a:hover { background: var(--red); transform: translateY(-2px); }
.footer__social svg { width: 20px; height: 20px; color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-size: 13px; flex-wrap: wrap; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   MOBILE NAV PANEL
   ============================================================ */
.mnav {
  position: fixed; inset: 0; z-index: 200; background: var(--navy);
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; padding: 28px 24px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%); transition: transform .35s var(--ease); visibility: hidden;
}
.mnav.open { transform: none; visibility: visible; }
.mnav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-shrink: 0; }
.mnav__head .brand__txt b, .mnav__head .brand__txt span { color: #fff; }
.mnav__close { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.25); color: #fff; font-size: 26px; display: grid; place-items: center; }
.mnav__links { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
.mnav__links a { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 28px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); flex-shrink: 0; }
.mnav__cta { flex-shrink: 0; display: grid; gap: 12px; padding-top: 20px; }
@media (max-height: 700px) {
  .mnav__head { margin-bottom: 14px; }
  .mnav__links a { font-size: 21px; padding: 10px 0; }
  .mnav__cta { padding-top: 14px; gap: 10px; }
  .mnav__cta .btn--lg { padding: 12px 20px; font-size: 15px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__card { max-width: 420px; margin-inline: auto; width: 100%; }
  .path__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .courses__grid { grid-template-columns: repeat(2, 1fr); }
  .course--wide { grid-column: span 2; }
  .gallery__grid { columns: 2; }
  .member { width: calc((100% - 44px) / 3); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 720px) {
  .nav__login { display: none; }
  .section { padding: 72px 0; }
  .courses__grid { grid-template-columns: 1fr; }
  .course--wide { grid-column: span 1; grid-template-columns: 1fr; text-align: left; }
  .course--wide .btn { justify-self: start; }
  .gallery__grid { columns: 2; }
  .member { width: calc((100% - 22px) / 2); }
  .lead-card { grid-template-columns: 1fr; max-width: 360px; }
  .lead-card__info { text-align: center; padding: 22px 24px 26px; align-items: center; }
  .lead-card__info b { font-size: 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .about__stamp { width: 104px; height: 104px; right: 8px; bottom: -20px; }
}
@media (max-width: 420px) {
  .gallery__grid { columns: 1; }
}
