/* ════════════════════════════════════════════════════════════════
   BETTO 17 FUTSAL ACADEMY — public site
   Palette sampled from the official crest (LOGO BETTO17FA.svg).
   Modern · sporty · professional · minimalist.
   ════════════════════════════════════════════════════════════════ */

:root {
  /* brand */
  --navy-ink: #04081c;
  --navy: #000267;
  --blue: #00349c;
  --blue-lift: #1e56c8;
  --red: #fc0000;
  --red-deep: #a10102;

  /* neutrals */
  --ink: #0d1220;
  --ink-2: #39415a;
  --ink-3: #6b7590;
  --line: #e3e7f0;
  --line-2: #eef1f7;
  --bg: #ffffff;
  --bg-tint: #f5f7fb;
  --white: #ffffff;

  /* type */
  --f-display: 'Archivo', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* rhythm */
  --shell: 1240px;
  --gut: clamp(18px, 4.2vw, 40px);
  --sec-y: clamp(64px, 9vw, 128px);
  --r: 14px;
  --r-lg: 22px;

  --ease: cubic-bezier(.22, .68, .32, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --head-h: 72px;
  --shadow: 0 1px 2px rgba(6, 12, 32, .05), 0 12px 34px -18px rgba(6, 12, 32, .28);
  --shadow-lg: 0 2px 6px rgba(6, 12, 32, .06), 0 30px 70px -30px rgba(6, 12, 32, .42);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--red); color: #fff; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--blue-lift);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: fixed; top: -100px; left: 12px; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ── layout primitives ─────────────────────────────────────────── */

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.shell.narrow { max-width: 820px; }

.sec { padding-block: var(--sec-y); position: relative; }
.sec-dark { background: var(--navy-ink); color: #fff; }
.sec-dark .sec-title, .sec-dark h3 { color: #fff; }

/*
 * Alternating band. The cards it holds (programs, pillars, layers, boxes,
 * tables, maps) all carry their own white surface, so only the section's own
 * type — heading, kicker, supporting line, outline buttons — needs flipping.
 */
.sec-tint { background: var(--navy); color: #fff; }
/*
 * Cards keep their white surface, so their type has to go back to ink —
 * otherwise inherited headings turn white on white and vanish. `.dl-card`,
 * `.fac-card`, and gallery captions are excluded: those are dark or
 * transparent and want the light type.
 */
.sec-tint .prog-link,
.sec-tint .pillar,
.sec-tint .layer,
.sec-tint .box,
.sec-tint .post-card,
.sec-tint .table-wrap,
.sec-tint .map-card { color: var(--ink); }
.sec-tint .sec-title, .sec-tint h2, .sec-tint .sub { color: #fff; }
.sec-tint .sec-desc { color: #b7c1e0; }
.sec-tint .kicker { color: #ff5a5a; }
.sec-tint .empty { color: rgba(255, 255, 255, .62); }
.sec-tint .fac-card h3 { color: #fff; }
.sec-tint .fac-card p { color: #b7c1e0; }
.sec-tint .btn-line {
  --btn-fg: #fff;
  box-shadow: inset 0 0 0 1.6px rgba(255, 255, 255, .34);
}
.sec-tint .btn-line:hover { --btn-fg: var(--navy); background: #fff; box-shadow: none; }

.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head.is-center { margin-inline: auto; text-align: center; }
.sec-title { font-size: clamp(28px, 4.4vw, 50px); }
.sec-desc { margin-top: 16px; color: var(--ink-2); font-size: clamp(15px, 1.35vw, 17.5px); }
.sec-dark .sec-desc, .on-dark .sec-desc { color: #a9b4d4; }
.prose-on-dark { color: #c3cbe4; max-width: 74ch; font-size: 17px; }
.sec-foot { margin-top: clamp(32px, 4vw, 48px); }
.sec-head.is-center + * + .sec-foot { text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-display);
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.kicker.light { color: #ff5a5a; }
.on-dark .kicker { color: #ff5a5a; }
.kicker .dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 0 currentColor; animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 90, 90, .55); }
  70%  { box-shadow: 0 0 0 11px rgba(255, 90, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 90, 0); }
}

.lead { font-size: clamp(17px, 1.8vw, 21px); line-height: 1.6; color: var(--ink); font-weight: 500; }
.lead p + p { margin-top: .8em; }
.prose { color: var(--ink-2); font-size: 16.5px; }
.prose p + p { margin-top: 1.05em; }
.lead + .prose { margin-top: 28px; }
.sub { font-size: clamp(19px, 2vw, 24px); margin: 40px 0 16px; }
.empty { color: var(--ink-3); padding: 48px 0; text-align: center; }

/* ── buttons ───────────────────────────────────────────────────── */

.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 26px; border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-display); font-weight: 700; font-size: 14.5px; letter-spacing: .012em;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s;
  will-change: transform;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 62%);
  transform: translateX(-110%); transition: transform .6s var(--ease-out);
}
.btn:hover::after { transform: translateX(0); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(6, 12, 32, .6); }
.btn:active { transform: translateY(0) scale(.985); }

.btn-red { --btn-bg: var(--red); }
.btn-red:hover { background: var(--red-deep); }
.btn-line {
  --btn-bg: transparent; --btn-fg: var(--navy);
  box-shadow: inset 0 0 0 1.6px var(--line);
}
.btn-line:hover { --btn-fg: #fff; background: var(--navy); box-shadow: none; }
.btn-ghost {
  --btn-bg: rgba(255, 255, 255, .07); --btn-fg: #fff;
  box-shadow: inset 0 0 0 1.6px rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; --btn-fg: var(--navy-ink); box-shadow: none; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-lg { padding: 17px 32px; font-size: 15.5px; }
.btn-block { display: flex; width: 100%; }

.link-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-display); font-weight: 700; font-size: 13.5px; color: var(--red);
}
.link-more i { transition: transform .3s var(--ease-out); font-style: normal; }
a:hover .link-more i { transform: translateX(5px); }

/* ── scroll progress + header ──────────────────────────────────── */

.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 90; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: var(--red); transition: width .08s linear; }

.site-head {
  position: fixed; inset: 0 0 auto; z-index: 80; height: var(--head-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .45s var(--ease);
}
.site-head.is-solid {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(6, 12, 32, .5);
}
.site-head.is-hidden { transform: translateY(-102%); }
.head-in { display: flex; align-items: center; gap: 22px; }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.logo-mark { width: 36px; height: auto; flex: none; display: block; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b {
  font-family: var(--f-display); font-weight: 900; font-size: 16.5px;
  letter-spacing: -.01em; color: var(--navy-ink);
}
.brand-txt i {
  font-style: normal; font-size: 8.6px; font-weight: 600;
  letter-spacing: .22em; color: var(--ink-3); margin-top: 3px;
}
.is-dark-top .site-head:not(.is-solid) .brand-txt b { color: #fff; }
.is-dark-top .site-head:not(.is-solid) .brand-txt i { color: rgba(255, 255, 255, .6); }
.is-dark-top .site-head:not(.is-solid) .head-nav a { color: rgba(255, 255, 255, .8); }
.is-dark-top .site-head:not(.is-solid) .head-nav a:hover,
.is-dark-top .site-head:not(.is-solid) .head-nav a.is-active { color: #fff; }
.is-dark-top .site-head:not(.is-solid) .lang { border-color: rgba(255, 255, 255, .28); }
.is-dark-top .site-head:not(.is-solid) .lang a { color: rgba(255, 255, 255, .72); }
.is-dark-top .site-head:not(.is-solid) .lang a.is-active { background: #fff; color: var(--navy-ink); }
.is-dark-top .site-head:not(.is-solid) .burger span { background: #fff; }

.head-nav { display: flex; align-items: center; gap: 4px; }
.head-nav a {
  position: relative; padding: 9px 13px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
.head-nav a:hover { color: var(--navy-ink); background: rgba(6, 12, 32, .045); }
.head-nav a.is-active { color: var(--navy-ink); font-weight: 600; }
.head-nav a.is-active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; background: var(--red); border-radius: 2px;
}

.head-tools { display: flex; align-items: center; gap: 12px; }
.lang {
  display: flex; align-items: center; padding: 3px; gap: 2px;
  border: 1.4px solid var(--line); border-radius: 999px;
}
.lang a {
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: .05em;
  color: var(--ink-3); transition: background-color .2s, color .2s;
}
.lang a.is-active { background: var(--navy-ink); color: #fff; }

.burger {
  display: none; width: 42px; height: 42px; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.burger span {
  width: 20px; height: 2px; background: var(--navy-ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ── mobile menu ───────────────────────────────────────────────── */

.menu {
  position: fixed; inset: 0; z-index: 85;
  background: var(--navy-ink); color: #fff;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  overflow-y: auto;
}
.menu.is-open { opacity: 1; visibility: visible; }
/*
 * Twelve entries plus two buttons have to fit one phone screen without
 * scrolling, so the type is sized against the viewport height rather than
 * its width. `dvh` keeps it honest while mobile browser chrome slides away.
 */
.menu-in {
  min-height: 100%; display: flex; flex-direction: column;
  padding-block: 14px 24px;
}
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.menu-x {
  width: 38px; height: 38px; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 16px;
}
.menu-nav { display: flex; flex-direction: column; margin: 12px 0 auto; }
.menu-nav a {
  display: flex; align-items: baseline; gap: 13px;
  padding: clamp(6px, 0.9dvh, 11px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--f-display);
  font-size: clamp(15px, 2.4dvh, 21px);
  line-height: 1.25; font-weight: 800; letter-spacing: -.02em;
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), color .2s;
  transition-delay: calc(var(--mi) * 26ms + 70ms);
}
.menu.is-open .menu-nav a { opacity: 1; transform: none; }
.menu-nav a span {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #ff5a5a;
  min-width: 21px;
}
.menu-nav a.is-active { color: #ff5a5a; }
.menu-foot { display: grid; gap: 8px; margin-top: 16px; }
.menu-foot .btn { padding-block: clamp(10px, 1.5dvh, 14px); }

/* On a dark panel the default navy outline button reads as invisible. */
.menu-foot .btn-line {
  --btn-fg: var(--red);
  box-shadow: inset 0 0 0 1.6px rgba(252, 0, 0, .5);
}

/* ── hero ──────────────────────────────────────────────────────── */

.hero {
  position: relative; min-height: min(100svh, 860px);
  display: flex; align-items: flex-end;
  padding-block: calc(var(--head-h) + 48px) clamp(42px, 5.5vw, 70px);
  background: var(--navy-ink); color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 116%; object-fit: cover; object-position: 50% 42%;
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(4, 8, 28, .96) 4%, rgba(4, 8, 28, .72) 38%, rgba(4, 8, 28, .42) 72%, rgba(4, 8, 28, .6)),
    linear-gradient(105deg, rgba(0, 2, 103, .55), rgba(4, 8, 28, .1) 62%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .3;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 100%, #000 20%, transparent 78%);
}
.hero-in { position: relative; width: 100%; }
.hero-kicker { margin-bottom: 20px; }

.hero-title {
  font-size: clamp(33px, 5.9vw, 68px);
  font-weight: 900; letter-spacing: -.032em; line-height: 1.02;
  margin-bottom: 22px; max-width: 19ch;
}
.hero-title .hl {
  display: block; overflow: hidden;
}
.hero-title .hl > * { display: block; }
.hero-title .hl {
  opacity: 0; transform: translateY(.5em);
  animation: heroIn .95s var(--ease-out) forwards;
  animation-delay: calc(var(--li) * 110ms + 120ms);
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

.hero-sub {
  max-width: 58ch; font-size: clamp(15px, 1.55vw, 18px);
  color: rgba(255, 255, 255, .82); margin-bottom: 32px;
  opacity: 0; animation: heroIn .9s var(--ease-out) .42s forwards;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(30px, 4vw, 46px);
  opacity: 0; animation: heroIn .9s var(--ease-out) .55s forwards;
}

.hero-scroll {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0;
  width: 24px; height: 38px; border: 1.6px solid rgba(255, 255, 255, .35); border-radius: 14px;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px; translate: -50% 0;
  width: 3px; height: 7px; border-radius: 2px; background: #fff;
  animation: scrollDot 1.9s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(13px); }
}

/* stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r); overflow: hidden;
}
.stat { background: rgba(4, 8, 28, .55); backdrop-filter: blur(8px); padding: 20px 18px; }
.stat .num {
  display: block; font-family: var(--f-display); font-weight: 900;
  font-size: clamp(26px, 3.6vw, 42px); line-height: 1; letter-spacing: -.03em; color: #fff;
}
.stat span { display: block; margin-top: 7px; font-size: 12.5px; color: rgba(255, 255, 255, .66); }
/* The stat bar sits on plain white sections; there it needs the dark treatment. */
.sec:not(.sec-tint):not(.sec-dark) .stats { background: var(--line); border-color: var(--line); }
.sec:not(.sec-tint):not(.sec-dark) .stat { background: #fff; backdrop-filter: none; }
.sec:not(.sec-tint):not(.sec-dark) .stat .num { color: var(--navy-ink); }
.sec:not(.sec-tint):not(.sec-dark) .stat span { color: var(--ink-3); }

/* ── marquee ───────────────────────────────────────────────────── */

.marquee {
  overflow: hidden; background: var(--navy-ink); color: #fff;
  padding-block: 14px; border-block: 1px solid rgba(255, 255, 255, .1);
}
.mq-track { display: flex; align-items: center; gap: 26px; width: max-content; will-change: transform; }
.mq-track span {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(14px, 1.6vw, 19px);
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.mq-track i { color: var(--red); font-style: normal; font-size: 11px; }

/* ── pillars ───────────────────────────────────────────────────── */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 30px); }
.pillars.is-four { grid-template-columns: repeat(2, 1fr); }
.pillar {
  position: relative; padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pillar-n {
  display: block; font-family: var(--f-display); font-weight: 900; font-size: 13px;
  letter-spacing: .1em; color: var(--red); margin-bottom: 16px;
}
.pillar h3 { font-size: clamp(19px, 1.9vw, 23px); margin-bottom: 11px; }
.pillar p { color: var(--ink-2); font-size: 15px; }

/* ── program cards ─────────────────────────────────────────────── */

.prog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.prog-card { perspective: 1100px; }
.prog-link {
  display: block; height: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
  transform-style: preserve-3d;
}
.prog-card:hover .prog-link { box-shadow: var(--shadow-lg); border-color: transparent; }
.prog-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-tint); }
.prog-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out), filter .5s;
}
.prog-card:hover .prog-media img { transform: scale(1.06); }
.prog-badge {
  position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--red); color: #fff;
  font-family: var(--f-display); font-weight: 800; font-size: 12px; letter-spacing: .05em;
}
.prog-body { padding: 20px 20px 22px; }
.prog-body h3 { font-size: 20px; margin-bottom: 6px; }
.prog-tag { color: var(--ink-2); font-size: 14.5px; margin-bottom: 16px; }
.prog-meta { display: flex; gap: 22px; margin: 0 0 16px; }
.prog-meta dt { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.prog-meta dd { margin: 3px 0 0; font-family: var(--f-display); font-weight: 700; font-size: 14.5px; }
.prog-slot {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: #12864a;
}
.prog-slot i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.prog-slot.is-full { color: var(--ink-3); }

/* ── coach cards ───────────────────────────────────────────────── */

.coach-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.coach-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.coach-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.coach-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-tint); }
.coach-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.coach-card:hover .coach-media img { transform: scale(1.05); }
.coach-body { padding: 20px; }
.coach-body h3 { font-size: 18.5px; }
.coach-role { color: var(--red); font-size: 13px; font-weight: 600; margin: 5px 0 15px; }
.coach-meta { margin: 0 0 14px; display: grid; gap: 9px; }
.coach-meta > div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: start; }
.coach-meta dt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.coach-meta dd { margin: 0; font-size: 13.5px; font-weight: 500; }
.coach-bio { color: var(--ink-2); font-size: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }

/* ── split section ─────────────────────────────────────────────── */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; }
.split-media img { width: 100%; height: 112%; object-fit: cover; }
.split-badge {
  position: absolute; right: 18px; bottom: 18px; padding: 14px 20px; border-radius: var(--r);
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); text-align: center;
}
.split-badge b {
  display: block; font-family: var(--f-display); font-weight: 900; font-size: 26px;
  line-height: 1; color: var(--navy-ink);
}
.split-badge span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.split-copy .sec-title { margin-bottom: 22px; }
.split-copy .btn { margin-top: 28px; }

/* ── achievements ──────────────────────────────────────────────── */

.ach-list { list-style: none; margin: 0; padding: 0; }
.ach-row {
  display: grid; grid-template-columns: 78px 1fr 84px auto; gap: 18px; align-items: baseline;
  padding: 20px 4px; border-bottom: 1px solid rgba(255, 255, 255, .12);
  transition: background-color .3s, padding-left .35s var(--ease-out);
}
.ach-row:hover { background: rgba(255, 255, 255, .04); padding-left: 14px; }
.ach-year { font-family: var(--f-display); font-weight: 800; font-size: 15px; color: #ff5a5a; }
.ach-event { font-family: var(--f-display); font-weight: 700; font-size: clamp(16px, 1.8vw, 20px); }
.ach-event em { display: block; font-style: normal; font-family: var(--f-body); font-weight: 400; font-size: 13.5px; color: #97a3c4; margin-top: 5px; }
.ach-ku { font-size: 13px; color: #8f9bbd; }
.ach-res {
  font-family: var(--f-display); font-weight: 800; font-size: 14px;
  padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); white-space: nowrap;
}
.ach-row.is-hl .ach-res { background: var(--red); }

.ach-list.is-light .ach-row { border-color: var(--line); }
.ach-list.is-light .ach-row:hover { background: var(--bg-tint); }
.ach-list.is-light .ach-year { color: var(--red); }
.ach-list.is-light .ach-event em { color: var(--ink-3); }
.ach-list.is-light .ach-res { background: var(--bg-tint); color: var(--navy-ink); }
.ach-list.is-light .ach-row.is-hl .ach-res { background: var(--red); color: #fff; }
.season { margin-bottom: 44px; }
.season-y {
  font-size: clamp(30px, 5vw, 54px); color: var(--line);
  letter-spacing: -.04em; margin-bottom: 6px;
}

/* ── gallery ───────────────────────────────────────────────────── */

.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.gal-item {
  position: relative; margin: 0; border-radius: var(--r); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--bg-tint); cursor: zoom-in;
}
.gal-item.is-big { grid-column: span 2; grid-row: span 2; aspect-ratio: 8 / 6.05; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.gal-item:hover img { transform: scale(1.06); }
.gal-item figcaption {
  position: absolute; inset: auto 0 0; padding: 26px 16px 14px; color: #fff; font-size: 13px;
  background: linear-gradient(to top, rgba(4, 8, 28, .88), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease-out);
}
.gal-item:hover figcaption { opacity: 1; transform: none; }
.gal-item.is-hidden { display: none; }
.gal-grid.is-masonry { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  padding: 9px 17px; border: 1.4px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .25s;
}
.chip:hover { border-color: var(--navy-ink); }
.chip.is-active { background: var(--navy-ink); border-color: var(--navy-ink); color: #fff; }

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(4, 8, 28, .94); padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb img { max-width: min(1100px, 94vw); max-height: 84vh; object-fit: contain; border-radius: 8px; }
.lb-cap { color: rgba(255, 255, 255, .8); font-size: 13.5px; margin-top: 14px; text-align: center; }
.lb-x, .lb-nav {
  position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 18px;
  display: grid; place-items: center; transition: background-color .2s;
}
.lb-x:hover, .lb-nav:hover { background: rgba(255, 255, 255, .26); }
.lb-x { top: 20px; right: 20px; }
.lb-nav.prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb-nav.next { right: 20px; top: 50%; translate: 0 -50%; }

/* ── posts ─────────────────────────────────────────────────────── */

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: clamp(16px, 2vw, 26px); }
.post-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card > a { display: flex; flex-direction: column; height: 100%; }
.post-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; font-size: 12.5px; color: var(--ink-3); }
.tagpill {
  padding: 4px 10px; border-radius: 999px; background: rgba(0, 52, 156, .09); color: var(--blue);
  font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.tagpill.is-alt { background: rgba(252, 0, 0, .09); color: var(--red); }
.post-body h3 { font-size: 19px; margin-bottom: 9px; }
.post-body p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 18px; }
.post-body .link-more { margin-top: auto; }

.article .art-title { font-size: clamp(28px, 4.6vw, 48px); margin: 14px 0 18px; }
.art-media { border-radius: var(--r-lg); overflow: hidden; margin: 34px 0; aspect-ratio: 16 / 9; }
.art-media img { width: 100%; height: 100%; object-fit: cover; }
.article .prose { margin-bottom: 40px; }

.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 22px; }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--red); }
.crumb i { font-style: normal; opacity: .45; }

/* ── events ────────────────────────────────────────────────────── */

.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ev-row {
  display: grid; grid-template-columns: 68px 1fr; gap: 20px; align-items: start;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  transition: border-color .3s, transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.ev-row:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: transparent; }
.ev-date {
  text-align: center; padding: 10px 6px; border-radius: var(--r); background: var(--navy-ink); color: #fff;
}
.ev-date b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 24px; line-height: 1; }
.ev-date span { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .72; margin-top: 4px; }
.ev-kind {
  display: inline-block; padding: 4px 10px; border-radius: 999px; margin-bottom: 9px;
  font-family: var(--f-display); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  background: var(--bg-tint); color: var(--ink-2);
}
.kind-pertandingan { background: rgba(252, 0, 0, .1); color: var(--red); }
.kind-seleksi { background: rgba(0, 52, 156, .1); color: var(--blue); }
.kind-libur { background: #f1f1f4; color: var(--ink-3); }
.ev-main h3 { font-size: 17.5px; margin-bottom: 8px; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-3); margin: 0; }
.ev-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ev-meta span + span::before { content: '·'; margin-right: 10px; opacity: .5; }
.ev-note { font-size: 13px; color: var(--ink-2); margin: 9px 0 0; }

/* ── tables ────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
.tbl th {
  text-align: left; padding: 15px 18px; background: var(--navy-ink); color: #fff;
  font-family: var(--f-display); font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.tbl td { padding: 16px 18px; border-top: 1px solid var(--line-2); font-size: 14.5px; vertical-align: top; }
.tbl tbody tr:hover { background: var(--bg-tint); }
.td-sub { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.dd-line { display: block; }
.dd-line + .dd-line { margin-top: 3px; }

/* ── facility + map ────────────────────────────────────────────── */

.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.fac-card h3 { font-size: 18.5px; margin: 18px 0 9px; }
.fac-card p { color: var(--ink-2); font-size: 14.5px; }
.fac-media { border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-tint); }
.fac-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.fac-card:hover .fac-media img { transform: scale(1.05); }

.map-card {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff;
}
.map-copy { padding: clamp(26px, 3.4vw, 44px); }
.map-copy h3 { font-size: clamp(21px, 2.4vw, 28px); margin-bottom: 14px; }
.map-addr { color: var(--ink-2); font-size: 15px; }
.map-hours { color: var(--ink-3); font-size: 13.5px; margin-bottom: 22px; }
.map-embed { min-height: 320px; background: var(--bg-tint); }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(.25); }
.map-under { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; }
.map-under p { font-size: 14px; color: var(--ink-2); max-width: 46ch; margin: 0; }

/* ── contact ───────────────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 3.4vw, 44px); align-items: start; }
.contact-list { display: grid; gap: 12px; }
.ct-card {
  display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s;
}
.ct-card:not(.is-static):hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.ct-k { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.ct-card b { font-family: var(--f-display); font-size: 19px; display: block; }
.ct-card em { display: block; font-style: normal; font-size: 13.5px; color: var(--ink-2); margin-top: 7px; }
.ct-hours { font-size: 15px !important; font-weight: 600; line-height: 1.55; }
.contact-map .map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); min-height: 380px; }
.contact-map .map-embed iframe { min-height: 380px; }

/* ── fees ──────────────────────────────────────────────────────── */

.dl-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 2.6vw, 34px); align-items: center;
  padding: clamp(24px, 3.2vw, 40px); border-radius: var(--r-lg); margin-bottom: clamp(28px, 4vw, 48px);
  background: linear-gradient(122deg, var(--navy-ink), var(--navy) 58%, #12207a);
  color: #fff; position: relative; overflow: hidden;
}
.dl-card::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(252, 0, 0, .34), transparent 68%);
}
.dl-icon {
  width: 62px; height: 62px; border-radius: var(--r); display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff; position: relative; z-index: 1;
}
.dl-icon svg { width: 30px; height: 30px; }
.dl-copy { position: relative; z-index: 1; }
.dl-copy h2 { font-size: clamp(20px, 2.4vw, 27px); margin-bottom: 8px; }
.dl-copy p { color: rgba(255, 255, 255, .78); font-size: 14.5px; max-width: 62ch; }
.dl-meta { font-size: 12.5px !important; color: rgba(255, 255, 255, .55) !important; margin-top: 8px; }
.dl-act { position: relative; z-index: 1; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 26px); }
.box { padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.box.is-muted { background: var(--bg-tint); }
.box h3 { font-size: 18px; margin-bottom: 16px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; font-size: 14.8px; color: var(--ink-2); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 9px;
  border-left: 2.4px solid var(--red); border-bottom: 2.4px solid var(--red);
  transform: rotate(-45deg); border-radius: 1px;
}
.ticks.is-cross li::before {
  width: 14px; height: 14px; top: 5px; border: 0; transform: none;
  background:
    linear-gradient(currentColor, currentColor) center/100% 2.2px no-repeat;
  color: var(--ink-3); rotate: 0deg;
}

/* ── curriculum layers ─────────────────────────────────────────── */

.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(12px, 1.6vw, 18px); }
.layer {
  display: grid; grid-template-columns: 62px 1fr; align-items: start; gap: clamp(14px, 2vw, 26px);
  padding: clamp(18px, 2.2vw, 26px); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .3s, box-shadow .4s var(--ease-out);
}
.layer:hover { border-color: transparent; box-shadow: var(--shadow-lg); }
.layer-n {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(24px, 3vw, 34px);
  line-height: 1; color: var(--line); letter-spacing: -.03em;
}
.layer:hover .layer-n { color: var(--red); }
.layer-copy h3 { font-size: clamp(17px, 1.8vw, 20px); margin-bottom: 7px; }
.layer-copy p { color: var(--ink-2); font-size: 15px; }

/* ── management list ───────────────────────────────────────────── */

.people {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}
.person {
  display: grid; gap: 5px; padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
}
.person-role {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.person b { font-size: 16px; font-weight: 600; }

/* ── fee table ─────────────────────────────────────────────────── */

.tbl-fee { min-width: 0; }
.tbl-fee td { font-size: 15px; }
.tbl-fee .td-num { text-align: right; white-space: nowrap; font-weight: 600; }
.tbl-fee tr.is-total td {
  font-family: var(--f-display); font-weight: 800; font-size: 16.5px;
  color: var(--navy); background: var(--bg-tint);
}
.table-wrap + .box { margin-top: clamp(18px, 2.2vw, 26px); }

/* ── page hero ─────────────────────────────────────────────────── */

.page-hero {
  position: relative; background: var(--navy-ink); color: #fff;
  padding-block: calc(var(--head-h) + clamp(46px, 7vw, 92px)) clamp(46px, 7vw, 92px);
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(4, 8, 28, .95) 22%, rgba(4, 8, 28, .68) 62%, rgba(0, 2, 103, .55));
}
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-in { position: relative; }
.page-title { font-size: clamp(31px, 5.6vw, 62px); max-width: 18ch; }
.page-lead { margin-top: 18px; max-width: 62ch; color: rgba(255, 255, 255, .8); font-size: clamp(15px, 1.5vw, 17.5px); }

/* ── detail layout ─────────────────────────────────────────────── */

.detail { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.side-card {
  padding: clamp(22px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow); position: sticky; top: calc(var(--head-h) + 20px);
}
.side-card h3 { font-size: 17.5px; margin-bottom: 16px; }
.side-slot {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: 12.5px; font-weight: 600; color: #12864a;
}
.side-slot i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.side-slot.is-full { color: var(--ink-3); }
.side-dl { margin: 0 0 22px; display: grid; gap: 14px; }
.side-dl > div { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.side-dl > div:last-child { border: 0; padding-bottom: 0; }
.side-dl dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.side-dl dd { margin: 0; font-size: 14.5px; font-weight: 500; }
.side-card .btn + .btn { margin-top: 10px; }
.side-card hr { border: 0; border-top: 1px solid var(--line-2); margin: 20px 0; }
.side-note { font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; }

.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.steps li { font-size: 14px; color: var(--ink-2); padding-left: 4px; }
.steps li::marker { color: var(--red); font-weight: 700; font-family: var(--f-display); }
.side-card .ticks.is-tight { gap: 8px; }
.side-card .ticks.is-tight li { font-size: 13.5px; padding-left: 26px; }
.side-link {
  display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600;
  color: var(--red); text-decoration: none;
}
.side-link:hover { text-decoration: underline; }

/* Optional photo-consent block on the registration form. */
.fld-consent { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.fld-consent legend { padding: 0 6px; }
.fld-consent .fld-hint { font-size: 14px; color: var(--ink-2); margin: 6px 0 12px; }
.fld-consent .fld-note { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }

/* ── accordion ─────────────────────────────────────────────────── */

.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(16px, 1.8vw, 19px);
  letter-spacing: -.01em; transition: color .2s;
}
.acc-q:hover { color: var(--red); }
.acc-q i {
  position: relative; width: 18px; height: 18px; flex: none;
}
.acc-q i::before, .acc-q i::after {
  content: ''; position: absolute; inset: 50% 0 auto; height: 2.2px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease-out);
}
.acc-q i::after { transform: rotate(90deg); }
.acc-q[aria-expanded="true"] i::after { transform: rotate(0); }
.acc-q[aria-expanded="true"] { color: var(--red); }
.acc-a { overflow: hidden; }
.acc-in { padding: 0 4px 24px; color: var(--ink-2); font-size: 15.2px; max-width: 68ch; }

/* ── forms ─────────────────────────────────────────────────────── */

.reg-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.reg-form {
  padding: clamp(24px, 3vw, 38px); border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow); display: grid; gap: 18px;
}
.fld { display: grid; gap: 7px; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld label, .fld .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fld label i { color: var(--red); font-style: normal; }
.fld input, .fld select, .fld textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.fld textarea { resize: vertical; min-height: 96px; }
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 52, 156, .12);
}
.fld input[aria-invalid="true"] { border-color: var(--red); }
.fld-err { font-size: 12.5px; color: var(--red); font-weight: 500; }
.radios { display: flex; gap: 10px; }
.radios label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 8px; border: 1.5px solid var(--line); border-radius: 11px; cursor: pointer;
  font-size: 13.5px; white-space: nowrap; transition: all .2s;
}
.radios input { accent-color: var(--red); }
.radios label:has(input:checked) { border-color: var(--navy-ink); background: var(--bg-tint); font-weight: 600; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.8px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.check.has-err span { color: var(--red); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 18px; border-radius: 11px; font-size: 14px; }
.alert.is-err { background: rgba(252, 0, 0, .08); color: var(--red-deep); border: 1px solid rgba(252, 0, 0, .22); }

.sec-thanks { padding-block: calc(var(--head-h) + 80px) 120px; }
.thanks { text-align: center; }
.thanks-ico {
  width: 74px; height: 74px; margin: 0 auto 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 32px; color: #fff; background: #12864a;
  animation: pop .55s var(--ease-out) both;
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.thanks h1 { font-size: clamp(27px, 4vw, 42px); margin-bottom: 14px; }
.thanks p { color: var(--ink-2); max-width: 52ch; margin-inline: auto; }
.thanks-act { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* ── CTA band ──────────────────────────────────────────────────── */

.cta-band { position: relative; background: var(--navy-ink); color: #fff; padding-block: clamp(58px, 7vw, 96px); overflow: hidden; }
.cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 90% at 12% 110%, rgba(252, 0, 0, .3), transparent 62%),
    radial-gradient(ellipse 70% 100% at 88% -20%, rgba(0, 52, 156, .5), transparent 64%);
}
.cta-in { position: relative; display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.cta-title { font-size: clamp(27px, 4.4vw, 50px); margin-bottom: 16px; }
.cta-copy p { color: rgba(255, 255, 255, .78); max-width: 56ch; }
.cta-actions { display: grid; gap: 12px; }

/* ── footer ────────────────────────────────────────────────────── */

.site-foot { background: var(--navy-ink); color: #fff; padding-block: clamp(48px, 6vw, 76px) 30px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.3fr; gap: clamp(28px, 4vw, 60px); }
.foot-brand .logo-mark { width: 46px; height: auto; margin-bottom: 18px; }
.foot-name { font-family: var(--f-display); font-weight: 800; font-size: 19px; margin-bottom: 6px; }
.foot-tag { color: rgba(255, 255, 255, .58); font-size: 14px; margin-bottom: 22px; max-width: 34ch; }
.foot-col h4 {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #ff5a5a; margin-bottom: 18px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col ul a, .foot-col ul em {
  color: rgba(255, 255, 255, .72); font-size: 14px; font-style: normal;
  transition: color .2s;
}
.foot-col ul a:hover { color: #fff; }
.foot-contact li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; }
.foot-contact li span { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .38); padding-top: 3px; }
.foot-bot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: clamp(34px, 4vw, 56px); padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12.5px; color: rgba(255, 255, 255, .45);
}
.foot-note { max-width: 52ch; }

/* ── floating WhatsApp ─────────────────────────────────────────── */

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .35s var(--ease-out);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08) translateY(-2px); }

/* ── error page ────────────────────────────────────────────────── */

.sec-err { padding-block: calc(var(--head-h) + 90px) 130px; text-align: center; }
.err-code {
  display: block; font-family: var(--f-display); font-weight: 900;
  font-size: clamp(80px, 18vw, 190px); line-height: .9; letter-spacing: -.05em;
  color: var(--line); margin-bottom: 10px;
}
.sec-err h1 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 12px; }
.sec-err p { color: var(--ink-2); margin-bottom: 30px; }

/* ── animation utilities ───────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}

/* `.wd` keeps a word intact; only the characters inside it animate. */
.wd { display: inline-block; white-space: nowrap; }
.sec-title .ch, .page-title .ch, .cta-title .ch {
  display: inline-block; opacity: 0; transform: translateY(.38em);
}
[data-chars].is-in .ch {
  opacity: 1; transform: none;
  transition: opacity .42s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: calc(var(--ci) * 11ms);
}

/* ── responsive ────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .head-nav { display: none; }
  .burger { display: flex; }
  .detail, .reg-grid, .contact-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .cta-in { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --head-h: 64px; }
  .pillars { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 44px 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-media { aspect-ratio: 16 / 10; }
  .map-card { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .dl-card { grid-template-columns: auto 1fr; }
  .dl-act { grid-column: 1 / -1; }
  .dl-act .btn { width: 100%; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-item.is-big { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .ach-row { grid-template-columns: 62px 1fr; row-gap: 8px; }
  .ach-ku { grid-column: 2; }
  .ach-res { grid-column: 2; justify-self: start; }
}

/* Short phones (landscape, or small devices): trim the menu further so the
   twelve entries and both buttons still land inside one screen. */
@media (max-height: 620px) {
  .menu-in { padding-block: 10px 16px; }
  .menu-top { height: 40px; }
  .menu-nav { margin: 8px 0 auto; }
  .menu-nav a { padding: 4px 0; font-size: 14px; }
  .menu-foot { margin-top: 10px; gap: 6px; }
  .menu-foot .btn { padding-block: 9px; font-size: 13px; }
}

@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .fld-row { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr; }
  .gal-item.is-big { grid-column: auto; }
  .ev-row { grid-template-columns: 56px 1fr; gap: 14px; padding: 16px; }
  .hero-cta .btn { width: 100%; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .foot-contact li { grid-template-columns: 1fr; gap: 3px; }
}

/* ── motion & print ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .sec-title .ch, .page-title .ch, .cta-title .ch { opacity: 1; transform: none; }
  .hero-title .hl, .hero-sub, .hero-cta { opacity: 1; animation: none; }
}

@media print {
  .site-head, .menu, .wa-float, .progress, .cta-band, .hero-scroll, .btn { display: none !important; }
  body { color: #000; }
  .sec { padding-block: 18px; }
}
