/* =========================================================================
   Școala de înot Gheorghe Oancea — Constanța
   Concept: "Coloana de apă" — pagina coboară de la suprafață spre adânc.
   ========================================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:target { scroll-margin-top: 110px; }

/* ---------- 2. Tokens ---------- */
:root {
  /* coloana de apă: de la spuma de la suprafață la adâncul de 2 m */
  --r0: #F5FBFB;
  --r1: #E4F3F4;
  --r2: #C6E6EB;
  --r3: #92D2DC;
  --r4: #46A0B5;
  --r5: #1B6E88;
  --r6: #0C3C52;
  --r7: #062334;
  --r8: #03131E;

  --amber: #F5B335;   /* lumina de pe marginea bazinului, medalia */
  --amber-d: #D8951B;
  --coral: #E2503F;   /* flotorul roșu din frânghia de culoar */
  --foam: #FFFFFF;

  /* semantice — se rescriu pe .is-dark */
  --ink: #062028;
  --ink-soft: #3E626C;
  --ink-faint: #7A9BA3;
  --line: rgba(6, 32, 40, .14);
  --line-strong: rgba(6, 32, 40, .28);
  --card: rgba(255, 255, 255, .62);
  --card-line: rgba(6, 32, 40, .10);

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 52px);
  --band-y: clamp(72px, 9vw, 136px);
  --radius: 18px;
  --radius-l: 28px;

  --shadow-s: 0 2px 6px rgba(4, 30, 42, .06), 0 10px 24px -14px rgba(4, 30, 42, .28);
  --shadow-m: 0 4px 12px rgba(4, 30, 42, .08), 0 26px 54px -26px rgba(4, 30, 42, .42);
  --shadow-l: 0 10px 30px rgba(3, 22, 32, .16), 0 50px 90px -40px rgba(3, 22, 32, .60);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

.is-dark {
  --ink: #EAF7F8;
  --ink-soft: #BCDCE4;
  --ink-faint: #8FB4BF;
  --line: rgba(234, 247, 248, .16);
  --line-strong: rgba(234, 247, 248, .34);
  --card: rgba(255, 255, 255, .055);
  --card-line: rgba(234, 247, 248, .14);
  /* culoarea se moștenește de la body ca valoare calculată — rescrierea variabilei
     singură nu ajunge, așa că o aplicăm explicit pe bandă */
  color: var(--ink);
}
.is-dark .muted, .is-dark .lede, .is-dark .tbl td { color: var(--ink-soft); }
.is-dark .tbl .t-name, .is-dark .tbl .t-time, .is-dark strong, .is-dark b { color: var(--ink); }

/* ---------- 3. Bază ---------- */
body {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.62;
  color: var(--ink);
  background: var(--r0);
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 880px; }
.wrap--wide { max-width: 1440px; }

.band {
  position: relative;
  padding-block: var(--band-y);
  background-image: linear-gradient(180deg, var(--from, transparent) 0%, var(--to, transparent) 100%);
}
.band--tight { padding-block: clamp(48px, 6vw, 84px); }
.band--flush-top { padding-top: 0; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

::selection { background: var(--amber); color: #062028; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 4. Tipografie ---------- */
.display, h1, h2, h3, .h1, .h2, .h3, .h4 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 112, "wght" 780;
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: .94;
  text-wrap: balance;
}

.h1, h1 { font-size: clamp(2.6rem, 1.3rem + 6vw, 6rem); font-variation-settings: "wdth" 118, "wght" 800; letter-spacing: -.025em; line-height: 1.08; }
.h2, h2 { font-size: clamp(2rem, 1.1rem + 3.6vw, 3.9rem); }
.h3, h3 { font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem); font-variation-settings: "wdth" 106, "wght" 760; letter-spacing: -.005em; line-height: 1.02; }
.h4 { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); font-variation-settings: "wdth" 100, "wght" 720; letter-spacing: .01em; line-height: 1.1; }

.lede {
  font-size: clamp(1.08rem, 1rem + .55vw, 1.35rem);
  line-height: 1.56;
  color: var(--ink-soft);
  max-width: 62ch;
  text-wrap: pretty;
}
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
p { text-wrap: pretty; }
p + p { margin-top: .9em; }

/* eyebrow — eticheta de secțiune, în stilul marcajelor de pe bordura bazinului */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-display);
  font-variation-settings: "wdth" 96, "wght" 640;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--amber);
  flex: none;
}

/* numeral tehnic — timpi, adâncimi, prețuri */
.num {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 88, "wght" 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

/* ---------- 5. Butoane ---------- */
.btn {
  --btn-bg: var(--amber);
  --btn-fg: #062028;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .92rem 1.6rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100, "wght" 700;
  font-size: .84rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  box-shadow: 0 8px 20px -10px rgba(216, 149, 27, .8);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(216, 149, 27, .9); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--card); border-color: var(--ink); box-shadow: none; }

.btn--deep { --btn-bg: #062334; --btn-fg: #EAF7F8; box-shadow: 0 8px 20px -10px rgba(6, 35, 52, .7); }
.btn--deep:hover { box-shadow: 0 14px 30px -12px rgba(6, 35, 52, .8); }

.btn--sm { padding: .68rem 1.15rem; font-size: .74rem; }
.btn--full { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* link cu subliniere care „curge” */
.link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size .3s var(--ease);
}
.link:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* ---------- 6. Frânghia de culoar (separator) ---------- */
.laneline {
  height: 16px;
  background-image:
    radial-gradient(circle at 8px 8px, var(--coral) 0 6px, transparent 6.5px),
    radial-gradient(circle at 24px 8px, var(--foam) 0 6px, transparent 6.5px),
    radial-gradient(circle at 40px 8px, #1B6E88 0 6px, transparent 6.5px),
    radial-gradient(circle at 56px 8px, var(--foam) 0 6px, transparent 6.5px);
  background-size: 64px 16px;
  background-repeat: repeat-x;
  opacity: .75;
}

/* ---------- 7. Antet ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(245, 251, 251, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.header.is-stuck { box-shadow: 0 12px 28px -22px rgba(4, 30, 42, .8); }

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  min-height: 76px;
  padding-block: .7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand__mark { width: 42px; height: 42px; color: #062334; flex: none; }
.brand__text { display: grid; line-height: 1; }
.brand__name {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100, "wght" 800;
  font-size: .96rem;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.brand__sub {
  font-size: .62rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .28rem;
  font-weight: 600;
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, 1.15rem); }
.nav__link {
  position: relative;
  display: block;
  padding: .5rem .2rem;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .1rem;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); }

.header__cta { flex: none; }
.nav-toggle { display: none; }

/* meniu mobil */
@media (max-width: 1080px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--r0);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    box-shadow: var(--shadow-m);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: .95rem .2rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--amber-d); }
  .header__cta { margin-left: auto; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    padding: 0 11px;
    flex: none;
  }
  .nav-toggle span {
    display: block; height: 2px; width: 100%;
    background: var(--ink); border-radius: 2px;
    transition: transform .28s var(--ease), opacity .2s var(--ease);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .header__cta .btn { padding: .7rem 1rem; font-size: .72rem; }
  .brand__sub { display: none; }
}

/* ---------- 8. Rigla de adâncime (semnătura) ---------- */
.depth-rail {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: grid;
  gap: .5rem;
  justify-items: center;
  pointer-events: none;
  mix-blend-mode: multiply;
  transition: opacity .4s var(--ease);
}
.depth-rail__track {
  position: relative;
  width: 2px;
  height: 190px;
  background: linear-gradient(180deg, rgba(6, 32, 40, .06), rgba(6, 32, 40, .3));
  border-radius: 2px;
}
.depth-rail__ticks { position: absolute; inset: 0; }
.depth-rail__ticks i {
  position: absolute;
  left: -4px;
  width: 10px; height: 1px;
  background: rgba(6, 32, 40, .3);
}
.depth-rail__dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 11px; height: 11px;
  margin-left: -5.5px; margin-top: -5.5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 179, 53, .28);
  transition: top .12s linear;
}
.depth-rail__value {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 88, "wght" 700;
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
  letter-spacing: .06em;
  color: rgba(6, 32, 40, .62);
}
.depth-rail__label {
  writing-mode: vertical-rl;
  font-size: .58rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(6, 32, 40, .4);
  font-weight: 700;
}
body.rail-dark .depth-rail { mix-blend-mode: screen; }
body.rail-dark .depth-rail__track { background: linear-gradient(180deg, rgba(234, 247, 248, .12), rgba(234, 247, 248, .4)); }
body.rail-dark .depth-rail__ticks i { background: rgba(234, 247, 248, .34); }
body.rail-dark .depth-rail__value { color: rgba(234, 247, 248, .78); }
body.rail-dark .depth-rail__label { color: rgba(234, 247, 248, .45); }

@media (max-width: 1400px) { .depth-rail { display: none; } }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  padding-block: clamp(90px, 14vw, 170px) clamp(48px, 7vw, 90px);
  overflow: hidden;
  color: #EAF7F8;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 19, 30, .66) 0%, rgba(3, 19, 30, .22) 26%, rgba(3, 24, 36, .60) 58%, rgba(2, 15, 24, .90) 100%),
    linear-gradient(90deg, rgba(3, 19, 30, .74) 0%, rgba(3, 19, 30, .10) 66%);
}
/* caustice — lumina care tremură pe fundul bazinului */
.hero__caustics {
  position: absolute; inset: -12%; z-index: -1;
  background-image:
    radial-gradient(ellipse 42% 22% at 22% 30%, rgba(214, 249, 255, .16), transparent 60%),
    radial-gradient(ellipse 34% 18% at 72% 62%, rgba(214, 249, 255, .13), transparent 62%),
    radial-gradient(ellipse 28% 26% at 48% 84%, rgba(214, 249, 255, .1), transparent 64%);
  mix-blend-mode: screen;
  animation: drift 19s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.2%, -1.6%, 0) scale(1.05); }
  100% { transform: translate3d(-1.8%, 1.4%, 0) scale(1.02); }
}

.hero__inner {
  position: relative; display: grid; gap: clamp(1.4rem, 3vw, 2.2rem);
  /* pozele reale din bazin au zone foarte luminoase — umbra ține textul lizibil peste ele */
  text-shadow: 0 1px 2px rgba(2, 15, 24, .45), 0 6px 24px rgba(2, 15, 24, .35);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--f-display);
  font-variation-settings: "wdth" 96, "wght" 640;
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(234, 247, 248, .82);
}
.hero__eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--amber); }

/* titlu cu linie de plutire: copia de jos e refractată */
.waterline {
  position: relative;
  display: block;
  max-width: 16ch;
}
.waterline__base { display: block; }
.waterline__refr {
  position: absolute;
  inset: 0;
  display: block;
  color: #9FE8F2;
  clip-path: inset(var(--wl, 52%) 0 0 0);
  transform: translateX(4px) scaleY(1.012);
  filter: blur(.35px);
  opacity: .92;
  animation: wl 7.5s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes wl {
  0%   { clip-path: inset(50% 0 0 0); transform: translateX(4px); }
  100% { clip-path: inset(56% 0 0 0); transform: translateX(7px); }
}

.hero__lede { color: rgba(234, 247, 248, .88); max-width: 46ch; font-size: clamp(1.05rem, .98rem + .5vw, 1.28rem); }

/* fâșia de date de sub hero */
.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(234, 247, 248, .2);
  border: 1px solid rgba(234, 247, 248, .2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(1.6rem, 4vw, 3rem);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero__fact { background: rgba(4, 26, 38, .62); padding: 1.1rem 1.2rem; }
.hero__fact dt { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(234, 247, 248, .78); font-weight: 700; }
.hero__fact dd {
  margin-top: .35rem;
  font-family: var(--f-display);
  font-variation-settings: "wdth" 96, "wght" 760;
  font-size: clamp(1.1rem, .9rem + .8vw, 1.6rem);
  font-variant-numeric: tabular-nums;
  color: #EAF7F8;
}
.hero__fact dd small { font-size: .58em; font-variation-settings: "wdth" 96, "wght" 600; color: rgba(234, 247, 248, .68); }
@media (max-width: 780px) { .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* hero scurt pentru paginile interioare */
.pagehead {
  position: relative;
  isolation: isolate;
  padding-block: clamp(72px, 11vw, 132px) clamp(48px, 7vw, 84px);
  overflow: hidden;
  color: #EAF7F8;
}
.pagehead__media { position: absolute; inset: 0; z-index: -2; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(3, 19, 30, .84) 0%, rgba(4, 33, 49, .80) 55%, rgba(6, 44, 62, .93) 100%);
}
.pagehead__inner {
  display: grid; gap: 1.1rem; max-width: 62ch;
  text-shadow: 0 1px 2px rgba(2, 15, 24, .4);
}
.pagehead .lede { color: rgba(234, 247, 248, .88); }

/* firimituri */
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .78rem; color: rgba(234, 247, 248, .74); margin-bottom: .2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.crumbs li + li::before { content: "/"; margin-right: .45rem; opacity: .5; }
.crumbs li { display: inline; }

/* ---------- 10. Antet de secțiune ---------- */
.sechead { display: grid; gap: 1rem; max-width: 68ch; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.sechead--center { justify-items: center; text-align: center; margin-inline: auto; }
.sechead--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: end;
}
.sechead--split .sechead__title { grid-column: 1; }
@media (max-width: 900px) { .sechead--split { grid-template-columns: 1fr; align-items: start; } }

/* ---------- 11. Carduri ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border-radius: var(--radius-l);
  background: var(--card);
  border: 1px solid var(--card-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card--link { text-decoration: none; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--line-strong); }
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--r3), var(--r5));
  color: #F5FBFB;
  flex: none;
}
.card__icon svg { width: 24px; height: 24px; }
.card p { color: var(--ink-soft); }
.card__more {
  margin-top: auto;
  padding-top: .4rem;
  font-family: var(--f-display);
  font-variation-settings: "wdth" 96, "wght" 700;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-d);
  display: inline-flex; align-items: center; gap: .4rem;
}
.is-dark .card__more { color: var(--amber); }
.card--link:hover .card__more { gap: .75rem; }
.card__more { transition: gap .25s var(--ease); }

/* card cu imagine */
.tile { display: grid; gap: 1rem; text-decoration: none; }
.tile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--r3);
}
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(3, 19, 30, .72);
  color: #EAF7F8;
  padding: .4rem .8rem;
  border-radius: 999px;
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700;
  backdrop-filter: blur(6px);
}

/* ---------- 12. Bazinul cu 6 culoare (semnătura de conținut) ---------- */
.pool {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid rgba(234, 247, 248, .16);
  background: linear-gradient(180deg, #0E4761, #062334);
  box-shadow: var(--shadow-l);
}
.lane {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.5fr) 132px;
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.8rem);
  width: 100%;
  text-align: left;
  padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1rem, 2.4vw, 2rem);
  color: #EAF7F8;
  border-bottom: 1px solid rgba(234, 247, 248, .12);
  transition: background-color .35s var(--ease), padding-left .35s var(--ease);
}
.lane:last-child { border-bottom: 0; }
.lane::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .35s var(--ease);
}
.lane:hover, .lane:focus-visible { background: rgba(154, 226, 240, .1); padding-left: clamp(1.3rem, 2.9vw, 2.6rem); }
.lane:hover::before, .lane:focus-visible::before { transform: scaleY(1); }

.lane__no {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 122, "wght" 800;
  font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem);
  line-height: .8;
  color: rgba(154, 226, 240, .34);
  font-variant-numeric: tabular-nums;
  transition: color .35s var(--ease);
}
.lane:hover .lane__no { color: var(--amber); }
.lane__name { font-family: var(--f-display); font-variation-settings: "wdth" 102, "wght" 740; text-transform: uppercase; font-size: clamp(1rem, .9rem + .5vw, 1.3rem); letter-spacing: -.005em; line-height: 1.06; }
.lane__age { display: block; margin-top: .3rem; font-family: var(--f-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #7FB6C6; font-weight: 700; }
.lane__desc { color: rgba(234, 247, 248, .74); font-size: .95rem; line-height: 1.5; }
.lane__meta { text-align: right; font-size: .8rem; color: #7FB6C6; }
.lane__meta strong { display: block; font-family: var(--f-display); font-variation-settings: "wdth" 92, "wght" 720; font-size: 1.05rem; color: #EAF7F8; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .lane { grid-template-columns: 62px minmax(0, 1fr); grid-template-areas: "no name" "desc desc" "meta meta"; row-gap: .7rem; }
  .lane__no { grid-area: no; font-size: 2.2rem; }
  .lane__name { grid-area: name; }
  .lane__desc { grid-area: desc; }
  .lane__meta { grid-area: meta; text-align: left; display: flex; align-items: baseline; gap: .5rem; }
  .lane__meta strong { display: inline; }
}

/* ---------- 13. Statistici ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { border-top: 2px solid var(--line-strong); padding-top: 1rem; }
.stat__value {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 108, "wght" 800;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  line-height: .95;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.stat__value small { font-size: .42em; font-variation-settings: "wdth" 96, "wght" 640; letter-spacing: .04em; margin-left: .12em; }
.stat__label { margin-top: .5rem; font-size: .8rem; color: var(--ink-soft); line-height: 1.4; }

/* ---------- 14. Split media/text ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 4.5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
}
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.split__media--stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split__media--stack img:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; object-fit: cover; }
.split__media--stack img { aspect-ratio: 1; object-fit: cover; }
.split__body { display: grid; gap: 1.2rem; align-content: start; }

.badge-float {
  position: absolute;
  right: -14px; bottom: -18px;
  background: var(--amber);
  color: #062028;
  border-radius: 20px;
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow-m);
  display: grid;
  gap: .1rem;
  max-width: 200px;
}
.badge-float strong { font-family: var(--f-display); font-variation-settings: "wdth" 100, "wght" 800; font-size: 1.7rem; line-height: 1; }
.badge-float span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 640px) { .badge-float { right: 8px; bottom: -14px; } }

/* listă cu bife */
.ticks { display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .48em;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--amber);
  border-bottom: 2.5px solid var(--amber);
  transform: rotate(-45deg);
}
.ticks strong { color: var(--ink); font-weight: 700; }

/* ---------- 15. Tabel orar ---------- */
.tablewrap {
  overflow-x: auto;
  border-radius: var(--radius-l);
  border: 1px solid var(--card-line);
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}
.tbl { min-width: 720px; }
.tbl th, .tbl td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 94, "wght" 700;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(6, 32, 40, .04);
  position: sticky; top: 0;
  backdrop-filter: blur(6px);
}
.is-dark .tbl thead th { background: rgba(255, 255, 255, .06); }
.tbl tbody tr { transition: background-color .2s var(--ease); }
.tbl tbody tr:hover { background: rgba(146, 210, 220, .16); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .t-time { font-family: var(--f-display); font-variation-settings: "wdth" 88, "wght" 720; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .t-name { font-weight: 700; }

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .28rem .68rem;
  border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  border: 1px solid var(--line-strong);
  white-space: nowrap;
}
.pill--copii { background: rgba(146, 210, 220, .3); border-color: rgba(27, 110, 136, .35); color: #0C3C52; }
.pill--adulti { background: rgba(245, 179, 53, .25); border-color: rgba(216, 149, 27, .45); color: #7A5405; }
.pill--perf { background: rgba(226, 80, 63, .18); border-color: rgba(226, 80, 63, .4); color: #8E2417; }
.pill--liber { background: rgba(6, 32, 40, .07); color: #3E626C; }
.is-dark .pill--copii { color: #C6E6EB; }
.is-dark .pill--adulti { color: #F5D79A; }
.is-dark .pill--perf { color: #F3A99E; }
.is-dark .pill--liber { color: #A6C9D2; }

/* filtre */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; }
.chip {
  display: inline-block;
  padding: .58rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all .22s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: #062334; border-color: #062334; color: #EAF7F8; }
.is-dark .chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #062028; }

/* ---------- 16. Tarife ---------- */
.switch {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: rgba(6, 32, 40, .07);
  border: 1px solid var(--line);
  gap: 4px;
}
.is-dark .switch { background: rgba(255, 255, 255, .07); }
.switch button {
  padding: .58rem 1.25rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all .25s var(--ease);
}
.switch button[aria-selected="true"] { background: var(--foam); color: var(--ink); box-shadow: var(--shadow-s); }
.is-dark .switch button[aria-selected="true"] { background: var(--amber); color: #062028; }

.price {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  border-radius: var(--radius-l);
  background: var(--card);
  border: 1px solid var(--card-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.price--feature {
  background: linear-gradient(170deg, #0E4761, #062334);
  color: #EAF7F8;
  border-color: rgba(234, 247, 248, .18);
  box-shadow: var(--shadow-l);
}
.price--feature .price__note, .price--feature .ticks li { color: rgba(234, 247, 248, .78); }
.price--feature .ticks strong { color: #EAF7F8; }
.price__tag {
  align-self: start;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800;
  color: var(--amber-d);
}
.price--feature .price__tag { color: var(--amber); }
.price__amount { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.price__amount b {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 110, "wght" 800;
  font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.2rem);
  line-height: .9;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.price__amount span { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.price--feature .price__amount span { color: rgba(234, 247, 248, .7); }
.price__note { font-size: .86rem; color: var(--ink-soft); }
.price .btn { margin-top: auto; }

.note {
  display: flex;
  gap: .9rem;
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  background: rgba(245, 179, 53, .12);
  font-size: .88rem;
  color: var(--ink-soft);
  align-items: flex-start;
}
.note svg { width: 20px; height: 20px; flex: none; color: var(--amber-d); margin-top: .15rem; }
.note strong { color: var(--ink); }

/* ---------- 17. Echipă ---------- */
.coach { display: grid; gap: 1rem; }
.coach__photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--r3);
  position: relative;
}
.coach__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform .7s var(--ease), filter .5s var(--ease); }
.coach:hover .coach__photo img { transform: scale(1.04); filter: saturate(1.05); }
.coach__role { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--amber-d); font-weight: 800; }
.is-dark .coach__role { color: var(--amber); }
.coach__bio { font-size: .9rem; color: var(--ink-soft); }
.coach__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; }
.coach__tags span { font-size: .7rem; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }

/* ---------- 18. Testimoniale ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
@media (max-width: 980px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .quotes { grid-template-columns: minmax(0, 1fr); } }
.quote {
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border-radius: var(--radius-l);
  background: var(--card);
  border: 1px solid var(--card-line);
}
.quote__stars { display: flex; gap: 2px; color: var(--amber); }
.quote__stars svg { width: 16px; height: 16px; }
.quote blockquote { font-size: 1rem; line-height: 1.6; }
.quote figcaption { margin-top: auto; font-size: .82rem; color: var(--ink-soft); }
.quote figcaption b { display: block; color: var(--ink); font-size: .92rem; }

/* ---------- 19. Acordeon ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: 100%; text-align: left;
  padding: 1.35rem .2rem;
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100, "wght" 700;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  letter-spacing: -.005em;
  text-transform: none;
  line-height: 1.3;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.acc__btn:hover { color: var(--amber-d); }
.is-dark .acc__btn:hover { color: var(--amber); }
.acc__icon { position: relative; width: 22px; height: 22px; flex: none; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: currentColor; border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.acc__icon::before { width: 16px; height: 2px; }
.acc__icon::after { width: 2px; height: 16px; }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.acc__panel { overflow: hidden; height: 0; transition: height .38s var(--ease); }
.acc__panel > div { padding: 0 .2rem 1.5rem; color: var(--ink-soft); max-width: 76ch; }

/* ---------- 20. Galerie ---------- */
.gallery { columns: 3; column-gap: clamp(.8rem, 1.6vw, 1.3rem); }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 520px) { .gallery { columns: 1; } }
.gallery__item {
  break-inside: avoid;
  margin-bottom: clamp(.8rem, 1.6vw, 1.3rem);
  display: block;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--r3);
  cursor: zoom-in;
}
.gallery__item img { width: 100%; transition: transform .7s var(--ease); }
.gallery__item:hover img { transform: scale(1.045); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 1rem .9rem;
  background: linear-gradient(180deg, transparent, rgba(3, 19, 30, .85));
  color: #EAF7F8;
  font-size: .82rem;
  opacity: 0;
  transition: opacity .3s var(--ease);
  text-align: left;
}
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  place-items: center;
  background: rgba(3, 19, 30, .93);
  backdrop-filter: blur(8px);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 82vh; object-fit: contain; border-radius: 12px; box-shadow: var(--shadow-l); }
.lightbox__cap { color: rgba(234, 247, 248, .8); text-align: center; margin-top: 1rem; font-size: .9rem; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(234, 247, 248, .1);
  border: 1px solid rgba(234, 247, 248, .22);
  color: #EAF7F8;
  transition: background-color .2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(234, 247, 248, .22); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 22px; height: 22px; }

/* ---------- 21. Formulare ---------- */
.form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: .45rem; }
.field > label {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800;
  color: var(--ink-soft);
}
.field > label .req { color: var(--coral); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .9rem 1.05rem;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease);
}
.is-dark .field input, .is-dark .field select, .is-dark .field textarea { background: rgba(255, 255, 255, .07); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 179, 53, .22);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233E626C' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.05rem center; background-size: 12px; padding-right: 2.6rem; }
.field__hint { font-size: .8rem; color: var(--ink-faint); }
.field__error { font-size: .8rem; color: var(--coral); font-weight: 600; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--coral); }
.field.has-error .field__error { display: block; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin-top: .12rem; accent-color: var(--amber-d); }
.check .req { color: var(--coral); }
.check.has-error { color: var(--coral); }
.check.has-error input { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

/* pași formular */
.steps { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.step {
  display: flex; align-items: center; gap: .55rem;
  padding: .5rem .9rem .5rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .8rem; font-weight: 700; color: var(--ink-faint);
  transition: all .3s var(--ease);
}
.step b {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--line);
  color: var(--ink-soft);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  transition: all .3s var(--ease);
}
.step.is-active { border-color: var(--amber); color: var(--ink); background: rgba(245, 179, 53, .14); }
.step.is-active b { background: var(--amber); color: #062028; }
.step.is-done b { background: #1B6E88; color: #EAF7F8; }
.step.is-done { color: var(--ink-soft); }

.fstep { display: none; }
.fstep.is-active { display: grid; gap: 1.4rem; }

.form-ok {
  display: none;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.4rem);
  border-radius: var(--radius-l);
  background: linear-gradient(170deg, #0E4761, #062334);
  color: #EAF7F8;
  box-shadow: var(--shadow-l);
}
.form-ok.is-visible { display: block; }
.form-ok__icon { width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--amber); display: grid; place-items: center; color: #062028; }
.form-ok__icon svg { width: 30px; height: 30px; }
.form-ok p { color: rgba(234, 247, 248, .8); max-width: 48ch; margin-inline: auto; }

/* ---------- 22. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.6rem, 4vw, 3.6rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.infolist { display: grid; gap: 1.4rem; }
.infoitem { display: flex; gap: 1rem; align-items: flex-start; }
.infoitem__icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--r3), var(--r5));
  color: #F5FBFB;
}
.infoitem__icon svg { width: 20px; height: 20px; }
.infoitem dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 800; margin-bottom: .2rem; }
.infoitem dd { font-size: 1.02rem; font-weight: 600; }
.infoitem dd a { text-decoration: none; }
.infoitem dd a:hover { color: var(--amber-d); }
.infoitem dd small { display: block; font-weight: 400; font-size: .86rem; color: var(--ink-soft); margin-top: .15rem; }

.map {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow-m);
  aspect-ratio: 16 / 11;
  background: var(--r2);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.hours { display: grid; gap: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .68rem 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.hours li:last-child { border-bottom: 0; }
.hours li.is-today { font-weight: 800; color: var(--amber-d); }
.is-dark .hours li.is-today { color: var(--amber); }
.hours span:last-child { font-variant-numeric: tabular-nums; font-family: var(--f-display); font-variation-settings: "wdth" 88, "wght" 640; }

/* ---------- 22b. Regulament — articole numerotate ---------- */
.rules { counter-reset: rule; display: grid; gap: 1rem; }
.rules > li {
  counter-increment: rule;
  position: relative;
  padding-left: 3rem;
  color: var(--ink-soft);
}
.rules > li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .05em;
  font-family: var(--f-display);
  font-variation-settings: "wdth" 88, "wght" 720;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--amber-d);
}
.is-dark .rules > li::before { color: var(--amber); }
.rules strong { color: var(--ink); font-weight: 700; }

/* ---------- 23. CTA final ---------- */
.cta {
  position: relative;
  isolation: isolate;
  border-radius: clamp(24px, 4vw, 40px);
  overflow: hidden;
  padding: clamp(2.4rem, 6vw, 5rem);
  color: #EAF7F8;
  text-align: center;
  display: grid;
  gap: 1.4rem;
  justify-items: center;
}
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(150deg, rgba(5, 30, 45, .94), rgba(9, 50, 70, .88) 55%, rgba(18, 84, 108, .86));
}
.cta > * { text-shadow: 0 1px 2px rgba(2, 15, 24, .4); }
.cta .lede { color: rgba(234, 247, 248, .9); }

/* ---------- 24. Subsol ---------- */
.footer { background: #03131E; color: #A6C9D2; padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer a { text-decoration: none; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 4vw, 3rem); }
@media (max-width: 900px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }
.footer .brand { color: #EAF7F8; }
.footer .brand__mark { color: #EAF7F8; }
.footer .brand__sub { color: #6E96A2; display: grid; }
.footer__blurb { margin-top: 1.1rem; font-size: .92rem; max-width: 34ch; color: #7FA9B5; }
.footer__h {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 96, "wght" 700;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: #EAF7F8;
  margin-bottom: 1.1rem;
}
.footer__list { display: grid; gap: .62rem; font-size: .92rem; }
.footer__list a { transition: color .2s var(--ease); }
.footer__list a:hover { color: var(--amber); }
.footer__bottom {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(234, 247, 248, .12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .82rem;
  color: #6E96A2;
}
.socials { display: flex; gap: .6rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid rgba(234, 247, 248, .16);
  color: #A6C9D2;
  transition: all .25s var(--ease);
}
.socials a:hover { background: var(--amber); border-color: var(--amber); color: #062028; transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* banner demo */
.demobar {
  background: #062334;
  color: #A6C9D2;
  font-size: .78rem;
  text-align: center;
  padding: .55rem var(--gutter);
  letter-spacing: .02em;
}
.demobar b { color: var(--amber); }

/* ---------- 25. Animații la scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .waterline__refr { clip-path: inset(52% 0 0 0); transform: translateX(5px); }
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- 26. Utilitare ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .6rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: clamp(2.4rem, 4vw, 3.4rem); }
.center { text-align: center; }
.center-x { margin-inline: auto; }
.max-70 { max-width: 70ch; }
.stack { display: grid; gap: 1.2rem; }
.stack-sm { display: grid; gap: .7rem; }

/* =========================================================
   FIX: paginile ieseau din ecran pe telefon
   ========================================================= */

/* 1. Headerul. Pe un rand fara wrap stau: sigla+nume (222px), hamburgerul
   (44px) si butonul „Inscrie-te" (115px) — cu spatii si margini, ~453px.
   Sub atat, randul iesea din ecran pe TOATE cele 12 pagini.
   Ascundem NUMELE, pastram sigla si butonul: butonul e singura cale rapida
   spre inscriere din header (meniul hamburger nu contine „Inscrie-te",
   verificat), deci nu el trebuia sacrificat. */
@media (max-width: 460px) {
  .brand__text { display: none; }
  .header__inner { gap: .75rem; }
  .header__cta .btn { padding: .6rem .85rem; font-size: .68rem; }
}

/* 2. Butoanele. `.btn` e `white-space: nowrap` global, iar etichetele lungi
   in romana („Nu stiu ce nivel are copilul" = 345px, „Toate intrebarile
   frecvente" = 318px) depaseau ecranul. Pe telefon le lasam pe doua randuri. */
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; }
}
