/* ============================================================
   REAKTIV CENTER — site styles
   Builds on tokens.css. NO hardcoded brand colors: every value
   resolves through a custom property. (CLAUDE.md §4, invariant 1)
   ============================================================ */

/* ---------- 1. Base & layout ---------------------------------- */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  overflow-x: hidden;
  /* faint vertical rhythm texture — barely there, adds depth to flat dark */
  background-image:
    radial-gradient(1200px 600px at 50% -8%, rgba(240,137,79,.055), transparent 62%);
  background-repeat: no-repeat;
}

::selection { background: var(--amber); color: var(--on-amber); }

img, svg { max-width: 100%; }
/* the UA stylesheet gives <figure> a 1em/40px margin, which shrinks every
   figure sitting in a grid cell (gallery tiles, testimonial cards). */
figure { margin: 0; }
blockquote { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 36px;
}
@media (max-width: 560px) { .container { padding-inline: 20px; } }

.section {
  padding-block: 66px;
  border-top: 1px solid var(--line);
  position: relative;
}
.section--flush { border-top: 0; }
[id] { scroll-margin-top: 96px; }

.section__head { max-width: 62ch; margin-bottom: 40px; }
.section__head .eyebrow { display: block; margin-bottom: 14px; }
.section__head h2 { font-size: var(--fs-h2); letter-spacing: .01em; }
.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--text-muted);
  margin: 16px 0 0;
  max-width: 60ch;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--amber); color: var(--on-amber);
  font-family: var(--font-display); font-size: var(--fs-button);
  letter-spacing: .05em; text-transform: uppercase;
  padding: 12px 20px; border-radius: 9px;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: var(--on-amber); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 2. Scroll-reveal ---------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
/* If JS never runs, content must still be visible. */
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 3. Buttons ---------------------------------------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-align: center; overflow: hidden;
  transition: background-color .2s ease, border-color .2s ease,
              color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { box-shadow: 0 8px 26px -12px var(--amber); }
.btn--primary:hover { box-shadow: 0 14px 34px -12px var(--amber); }
.btn--primary:active { background: var(--amber-press); }
/* moving sheen — pure decoration, dies under reduced-motion via tokens.css */
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 20%,
              rgba(243,238,231,.34) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 4. Header / nav ----------------------------------- */

.scroll-progress {
  position: fixed; inset: 0 auto auto 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--amber); z-index: 120; pointer-events: none;
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease,
              backdrop-filter .3s ease, padding .3s ease;
  padding-block: 18px;
}
.site-header.is-stuck {
  background: rgba(25,26,30,.82);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
  padding-block: 11px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--amber);
  position: relative; z-index: 2; }
.logo:hover { color: var(--amber-hover); }
.logo__mark { width: 34px; height: 31px; flex: none; display: block; }
.logo__word {
  font-family: var(--font-display);
  font-size: 1.05rem; letter-spacing: .13em;
  color: var(--text); text-transform: uppercase; line-height: 1;
  white-space: nowrap;
}
.logo__word b { font-weight: 700; }
.logo__word span { font-weight: 400; color: var(--text-muted); }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-button); letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted); padding: 9px 13px; border-radius: 8px;
  transition: color .2s ease, background-color .2s ease;
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; background: var(--amber); border-radius: 2px;
  transform: scaleX(0); transform-origin: 50%;
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
}
.nav__link[aria-current="true"] { color: var(--text); }
.nav__link[aria-current="true"]::after { transform: scaleX(1); }

.nav__cta { margin-left: 8px; }

/* Header phone (D-015) — replaces the amber `Postani član` button.
   Deliberately a ghost, not a fill: an --amber fill would need --on-amber text
   (invariant 3) and would outweigh the signup CTA sitting right below it in the
   hero. Amber text on --bg measures 6.1:1, AA at any size. */
.nav__phone {
  gap: 8px;
  color: var(--amber);
  border-color: rgba(240,137,79,.34);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
}
.nav__phone:hover { color: var(--amber); border-color: var(--amber); background: var(--surface); }
.nav__phone svg { width: 17px; height: 17px; flex: none; }
.nav__phone svg .ico {
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.nav__toggle {
  position: relative; z-index: 2;
  display: none; width: 44px; height: 44px; padding: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle:hover { border-color: var(--amber); color: var(--amber); }
.nav__toggle-bars { display: block; width: 18px; height: 12px; position: relative; }
.nav__toggle-bars i {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  border-radius: 2px; transition: transform .3s ease, opacity .2s ease;
}
.nav__toggle-bars i:nth-child(1) { top: 0; }
.nav__toggle-bars i:nth-child(2) { top: 5.25px; }
.nav__toggle-bars i:nth-child(3) { top: 10.5px; }
.nav__toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  /* full-height drawer: a half-height panel let the hero's own CTA show
     through underneath, which read as a duplicate button */
  .nav__links {
    position: fixed; inset: 0; height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px;
    background: var(--bg);
    padding: 92px 20px 26px;
    transform: translateY(-102%);
    transition: transform .38s cubic-bezier(.22,.61,.36,1);
    overflow-y: auto;
  }
  .nav__links.is-open { transform: none; }
  .nav__link { padding: 15px 12px; font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__link[aria-current="true"] { color: var(--amber); }
  .nav__cta { margin: 14px 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- 5. Hero ------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(64px, 11vh, 116px) 0;
  overflow: hidden;
  isolation: isolate;
}
/* one soft amber radial behind the hero — spec allows exactly one */
.hero__glow {
  position: absolute; z-index: -2;
  width: min(1100px, 130vw); aspect-ratio: 1.5;
  left: 50%; top: -18%; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(240,137,79,.11), rgba(240,137,79,.03) 55%, transparent 78%);
  filter: blur(12px);
  animation: heroDrift 17s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: translate3d(-3%, -1%, 0) scale(1); opacity: .85; }
  to   { transform: translate3d(3%, 2%, 0) scale(1.06); opacity: 1; }
}
/* ---- hero photograph -------------------------------------------------
   A marked placeholder standing in for a real photograph of the room.
   Layer order under the content: photo (-3) → glow (-2) → grid (-1).
   Delivered as <picture>/srcset rather than a CSS background, because a
   background image can carry neither srcset nor fetchpriority, and this
   is the LCP element. */
.hero__photo {
  position: absolute; inset: 0; z-index: -3;
  overflow: hidden;
}
.hero__photo picture { display: block; height: 100%; }
.hero__photo img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  /* below centre: holds the bar and both plates in frame as the hero grows
     taller, instead of drifting them off the bottom edge */
  object-position: 50% 72%;
}
/* Two-axis scrim. The AA contrast of --text on --bg is a guarantee the tokens
   make about a flat background; over a photograph it stops being true unless
   it is re-established here. The vertical stops darken the headline band and
   the stats band, the horizontal stop protects the left-aligned column. */
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    /* Mid stop deepened .71 -> .82 and the 84% stop .84 -> .86 when the hero
       photograph was replaced 2026-08-29. Measured on the render, not guessed:
       the new frame's amber glow sits behind the centred lead and note, which
       fell to 4.27:1 and 3.75:1 — both below AA at 18px/13px regular. At .82
       they measure 4.98 and 4.74. The horizontal gradient was deliberately
       left alone so the photo stays visible across the frame. */
    linear-gradient(to bottom,
      rgba(25,26,30,.93) 0%,
      rgba(25,26,30,.86) 26%,
      rgba(25,26,30,.82) 54%,
      rgba(25,26,30,.86) 84%,
      rgba(25,26,30,1)  100%),
    linear-gradient(to right,
      rgba(25,26,30,.66) 0%,
      rgba(25,26,30,.20) 52%,
      rgba(25,26,30,.44) 100%);
}
/* narrow viewports crop hard to the centre of the bar — pull the scrim back a
   little so the frame does not go completely flat */
@media (max-width: 720px) {
  .hero__photo::after {
    background:
      linear-gradient(to bottom,
        rgba(25,26,30,.94) 0%,
        rgba(25,26,30,.88) 40%,
        rgba(25,26,30,.72) 66%,
        rgba(25,26,30,1)  100%);
  }
}

/* faint structural grid — reads as "gym floor plan", not decoration */
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 34%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 62% at 50% 34%, #000 10%, transparent 72%);
  opacity: .55;
}

.hero__inner { text-align: center; display: grid; justify-items: center; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: rgba(31,33,38,.6);
  border-radius: 999px; padding: 8px 16px 8px 12px;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-eyebrow); letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 26px;
}
.hero__badge b { color: var(--text); font-weight: 600; }
@media (max-width: 560px) {
  .hero__badge { flex-wrap: wrap; justify-content: center; row-gap: 2px; letter-spacing: .12em; }
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none;
  box-shadow: 0 0 0 0 rgba(240,137,79,.55);
  animation: pulseRing 2.1s cubic-bezier(.35,0,.25,1) infinite;
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(240,137,79,.5); }
  70%  { box-shadow: 0 0 0 11px rgba(240,137,79,0); }
  100% { box-shadow: 0 0 0 0 rgba(240,137,79,0); }
}

.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.0;
  letter-spacing: .005em;
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.section__head h2 .line { display: block; }   /* forced break, D-032 */
/* accent word: amber ECG stroke UNDER the word — the word itself stays --text,
   because amber is never a reading color (CLAUDE.md §4, invariant 2) */
.accent-word { position: relative; display: inline-block; white-space: nowrap; }
.accent-word__underline {
  position: absolute; left: 0; right: 0; bottom: -.23em;
  width: 100%; height: .22em; overflow: visible; color: var(--amber);
}
.accent-word__underline path {
  fill: none; stroke: currentColor; stroke-width: 6;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  animation: drawLine 1.5s cubic-bezier(.65,0,.35,1) .55s forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .accent-word__underline path { stroke-dashoffset: 0; }
}

.hero .lead { margin-top: 26px; text-align: center; max-width: 56ch; }
.hero .btn-row { margin-top: 34px; justify-content: center; }
.hero__note {
  margin-top: 18px; font-size: var(--fs-small);
  letter-spacing: .02em;
  /* --text-subtle everywhere else, but this line lands in the photo's amber
     pool, where it measured 3.56:1 — below AA at 13px. --text-muted puts it
     back to 4.89:1 against the lit background. Invariant 4 caps where subtle
     may be used; it does not license a fail once a photo is behind it. */
  color: var(--text-muted);
}

/* ---------- 6. ECG signature motif ---------------------------- */

.ecg { display: block; width: 100%; height: auto; color: var(--amber); overflow: visible; }
.ecg__base { fill: none; stroke: var(--line); stroke-width: 2; }
.ecg__line {
  fill: none; stroke: currentColor; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
}
.ecg.is-in .ecg__line { animation: drawLine 2.1s cubic-bezier(.55,0,.3,1) forwards; }
.no-js .ecg__line, .ecg--static .ecg__line { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .ecg__line { stroke-dashoffset: 0; } }
/* travelling highlight — a short bright dash that runs the path forever */
.ecg__spark {
  fill: none; stroke: currentColor; stroke-width: 3.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 46 954; stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 7px rgba(240,137,79,.85));
  animation: sparkRun 5.5s linear 2.1s infinite;
  opacity: 0;
}
.ecg.is-in .ecg__spark { opacity: 1; }
@keyframes sparkRun { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }

.ecg-divider { margin-top: clamp(40px, 7vh, 76px); }

/* ---------- 7. Stats ------------------------------------------ */

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 30px 12px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1;
  color: var(--amber); letter-spacing: .005em;
  font-variant-numeric: tabular-nums;
}
.stat__value small { font-size: .5em; margin-left: .12em; font-weight: 600; }
.stat__label {
  margin-top: 10px; font-size: var(--fs-small);
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
  font-family: var(--font-display); font-weight: 600;
}
/* Three stats, so no 2-up step: it would leave one cell hanging. They hold
   three columns down to 560px, then stack. */
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-block: 22px; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

/* ---------- 8. Cards (shared) --------------------------------- */

.card {
  position: relative; overflow: hidden;
  padding: 28px;
  transition: transform .32s cubic-bezier(.22,.61,.36,1),
              border-color .32s ease, background-color .32s ease;
}
.card--hover:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
  background: var(--surface-2);
}
/* amber wash that fades in from the top edge on hover */
.card--hover::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(240,137,79,.10), transparent 46%);
  opacity: 0; transition: opacity .32s ease;
}
.card--hover:hover::before { opacity: 1; }
.card > * { position: relative; }

.icon-tile {
  width: 48px; height: 48px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--amber); margin-bottom: 20px;
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}
.card--hover:hover .icon-tile {
  border-color: var(--amber); transform: scale(1.06) rotate(-3deg);
}
.icon-tile svg { width: 24px; height: 24px; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; padding: 0; }
.tag {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-eyebrow); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-subtle);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
  transition: color .25s ease, border-color .25s ease;
}
.card--hover:hover .tag { color: var(--text-muted); border-color: rgba(243,238,231,.2); }

/* ---------- 9. Programs bento --------------------------------- */

.programs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.programs .card--wide { grid-column: span 2; }
.card--wide {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: center;
  background: linear-gradient(135deg, var(--surface-2), var(--surface) 62%);
}
.card--wide .card__art { align-self: stretch; display: grid; place-items: center; min-height: 150px; }
@media (max-width: 900px) {
  .programs { grid-template-columns: repeat(2, 1fr); }
  .programs .card--wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .programs { grid-template-columns: 1fr; }
  .programs .card--wide { grid-column: span 1; }
  .card--wide { grid-template-columns: 1fr; }
  .card--wide .card__art { display: none; }
}

/* decorative concentric plate art */
.plate-art { width: 100%; max-width: 190px; color: var(--amber); opacity: .85; }
.plate-art circle { fill: none; stroke: currentColor; }
.plate-art .ring-1 { stroke-width: 1.2; opacity: .28; }
.plate-art .ring-2 { stroke-width: 1.2; opacity: .5; }
.plate-art .ring-3 { stroke-width: 2; opacity: .9; }
.card--wide:hover .plate-art { animation: spinSlow 14s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ---------- 10. Schedule -------------------------------------- */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-button); letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; cursor: pointer;
  transition: color .22s ease, border-color .22s ease, background-color .22s ease;
}
.chip:hover { color: var(--text); border-color: rgba(243,238,231,.26); }
.chip[aria-pressed="true"] {
  background: var(--amber); border-color: var(--amber); color: var(--on-amber);
}

.schedule {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.day { border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.day:first-child { border-left: 0; }
.day__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-eyebrow); letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-muted); text-align: center;
  padding: 15px 6px; border-bottom: 1px solid var(--line);
  background: var(--band);
}
.day--weekend .day__name { color: var(--text-subtle); }
.day__slots { list-style: none; margin: 0; padding: 10px; display: grid; gap: 8px; align-content: start; flex: 1; }

.slot {
  display: block; padding: 12px 11px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid transparent;
  transition: border-color .22s ease, transform .22s ease, opacity .22s ease;
}
.slot:hover { border-color: var(--amber); transform: translateY(-2px); }
.slot__time {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--amber); font-variant-numeric: tabular-nums; letter-spacing: .02em;
  display: block;
}
.slot__title {
  display: block; margin-top: 5px; font-size: var(--fs-small);
  color: var(--text); line-height: 1.35;
}
.slot__coach { display: block; margin-top: 4px; font-size: var(--fs-small); color: var(--text-subtle); }
.slot.is-dimmed { opacity: .18; pointer-events: none; }
.day__empty { font-size: var(--fs-small); color: var(--text-subtle); padding: 12px 11px; }

.schedule-note {
  margin-top: 20px; font-size: var(--fs-small); color: var(--text-subtle);
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.schedule-note svg { width: 16px; height: 16px; color: var(--amber); flex: none; }

@media (max-width: 900px) {
  .schedule { grid-template-columns: repeat(2, 1fr); }
  .day { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .day:nth-child(odd) { border-left: 0; }
  .day:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 520px) {
  .schedule { grid-template-columns: 1fr; }
  .day { border-left: 0; }
  .day:nth-child(2) { border-top: 1px solid var(--line); }
}

/* ---------- 11. Coaches --------------------------------------- */

.coaches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .coaches { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .coaches { grid-template-columns: 1fr; } }

.coach { text-align: left; }
.coach__portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(240,137,79,.16), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 18px;
  transition: border-color .3s ease;
}
.card--hover:hover .coach__portrait { border-color: var(--amber); }
.coach__initials {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1;
  color: var(--text); letter-spacing: .04em;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), color .3s ease;
}
.card--hover:hover .coach__initials { transform: scale(1.07); color: var(--amber); }
.coach__portrait .ecg-mini {
  position: absolute; left: 0; right: 0; bottom: 16px;
  width: 100%; height: 26px; color: var(--amber); opacity: .55;
}
.coach__portrait .ecg-mini path {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.coach__slot-label {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-subtle); border: 1px dashed var(--line);
  border-radius: 999px; padding: 4px 9px; background: rgba(20,21,25,.6);
}
.coach h3 { margin-bottom: 6px; font-size: 1.25rem; }
.coach__role {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-eyebrow); letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber);
}

/* ---------- 12. Gallery bento --------------------------------- */

/* ---------- Feature block (#fitnes, D-022) ---------------------
   Image beside copy. Reusable: the next section that needs a picture
   next to a paragraph uses this, it is not a one-off for #fitnes. */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
}

.feature__media {
  position: relative;
  margin: 0;                       /* UA gives <figure> 1em 40px — see SOP lesson 1 */
  /* One ratio for every feature slot in both sections, so the picture boxes are
     identical wherever they appear (D-031). Square at two columns: 1/1 of a
     464px column is 464px, which clears the tallest text block (432px), so no
     slot is ever shorter than the copy beside it. */
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  /* same stand-in marking as the gallery panels (D-020) — if one changes,
     change both, or the page says two different things about which
     pictures are real */
  border: 1px dashed color-mix(in srgb, var(--amber) 30%, transparent);
}
.feature__art { position: absolute; inset: 0; }
/* A slot holding a real photograph: solid border, no badge (D-020's rule —
   the dashed marking means "still waiting on the client"). */
.feature__media--photo { border-style: solid; border-color: var(--line); }
.feature__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__art svg { width: 100%; height: 100%; display: block; color: var(--amber); }
.feature__art .stroke {
  fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round;
}
.feature__scrim {
  position: absolute; inset: 0;
  /* The scrim exists to hold a caption's contrast over lit pixels, so it lives
     and dies with the caption (D-037): the two Storitve slots dropped both, and
     only #fitnes — SVG art with a caption — still uses this rule. D-036's
     deeper three-stop ramp was measured for a caption over a photograph and
     went with it; these are the original stops, now through `--band`, which is
     exactly the colour the old rgba() literal hardcoded (invariant 1). */
  background: linear-gradient(180deg,
              transparent 40%,
              color-mix(in srgb, var(--band) 86%, transparent) 100%);
}
.feature__badge {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-display); font-style: normal;
  font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 9px;
}
.feature__cap {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  font-size: var(--fs-small); color: var(--text-muted);
}

.feature__body .eyebrow { display: block; margin-bottom: 12px; }
.feature__body h2 { margin-bottom: 16px; }
.feature__body .btn-row { margin-top: 28px; }
.feature__body .lead + .lead { margin-top: 14px; }
.feature__body h3 { margin-bottom: 16px; }
/* Two feature blocks in one section alternate sides (D-026). On one column the
   picture goes back on top for both, so the reading order stays image → text. */
.feature + .feature { margin-top: 60px; }
.feature--reverse .feature__media { order: 2; }
@media (max-width: 860px) { .feature--reverse .feature__media { order: 0; } }

/* ---------- Gallery split (D-034) -----------------------------
   #galerija reads like #fitnes and #programi: copy in one column, pictures in
   the other. Not `.feature` — twelve panels need more width than a paragraph,
   so the split is asymmetric, and it stacks at 980px rather than 860px because
   below that a closed panel stops reading as a panel. */
.gallery-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.gallery-split .section__head { margin-bottom: 0; }
/* Centre the copy on the PICTURE, not on picture + controls (user direction).
   The gallery column is the stage PLUS a 60px nav block (40px .dc-arrow + 20px
   .dc-nav margin-top), so `align-items: center` was landing the copy's centre
   30px below the stage's. Reserving the nav's height under the copy makes both
   centres fall on the picture. `:has()` ties it to the JS-driven nav — no JS,
   no nav row, no offset. Two columns only: stacked, the copy sits above the
   stage and this would just be a gap. Keep the 60px in step with the nav row. */
@media (min-width: 981px) {
  .gallery-split:has(.depth-carousel.is-ready) .section__head { margin-bottom: 60px; }
}
@media (max-width: 980px) {
  .gallery-split { grid-template-columns: 1fr; gap: 28px; }
}
/* The picture box is the same box as `.feature__media`: same column, same
   square ratio, so the three sections' image slots measure the same on screen
   (user direction, D-034). `height` must be unset for the ratio to drive the
   box. Twelve panels in half a container is tight, hence the smaller gap. */
.gallery-split .dc-stage {
  aspect-ratio: 1 / 1;
}
/* Stacked (<=980px) the accordion is back to full container width, where a
   square would be far taller than the row needs; below 720px it is vertical
   and sizes itself from its panels. */
@media (max-width: 980px) {
  /* stacked: the stage is the full container again, where a square would be
     taller than the stack needs */
  .gallery-split .dc-stage { aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  /* square again on a phone: a letterbox stage leaves the front card too small
     to be worth tapping */
  .gallery-split .dc-stage { aspect-ratio: 1 / 1; }
}

/* ---------- Depth carousel (D-035) ----------------------------
   Hand-written equivalent of the supplied React `DepthCarousel`. JS writes six
   numeric custom properties per card and nothing else — every colour, radius
   and duration resolves through a token (invariant 1), same contract as the
   accordion it replaces.

   Without JS none of those properties are set, so a 3D stack would pile twelve
   photographs on one spot. The default here is therefore a plain thumbnail
   grid; `.is-ready` (added by JS) switches the stage on. */
.depth-carousel { --dc-dur: .55s; --dc-ease: cubic-bezier(.22,.61,.36,1); }

.dc-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.dc-item { display: block; min-width: 0; }
.dc-nav { display: none; }

/* ---- the 3D stage, once JS is running ---- */
.depth-carousel.is-ready .dc-stage {
  position: relative;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  touch-action: pan-y;
  /* the deepest card fans past the right edge — clip it to the picture box so
     the slot keeps the same footprint as `.feature__media` (D-034) */
  overflow: hidden;
}
.depth-carousel.is-ready .dc-track {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
}
.depth-carousel.is-ready .dc-item {
  position: absolute;
  top: 50%;
  left: 50%;
  /* sized from the stage's HEIGHT, not its width: a width-sized 4:5 card is
     taller than the box as soon as the stage stops being square, and the
     overflow rule above then crops the front photograph. */
  height: 84%;
  aspect-ratio: 4 / 5;
  /* 84% is the stacked/mobile figure. Desktop overrides it below — the two-column
     picture must measure the same as `.feature__media` (D-045). */
  transform:
    translate(-50%, -50%)
    translateX(var(--dc-x, 0px))
    translateZ(var(--dc-z, 0px))
    rotateY(var(--dc-rot, 0deg));
  opacity: var(--dc-op, 1);
  filter: blur(var(--dc-blur, 0px));
  transition: transform var(--dc-dur) var(--dc-ease),
              opacity var(--dc-dur) var(--dc-ease),
              filter var(--dc-dur) var(--dc-ease);
}
/* past `visibleCards`: out of the picture and out of the tab order. `inert` is
   set in JS too — this only stops it eating pointer events. */
.depth-carousel.is-ready .dc-item[data-dc-hidden] { pointer-events: none; }

/* Picture height == `.feature__media` (464px at container width) — user direction,
   D-045. The card is tilted 14deg under a 1400px perspective, so its PAINTED box
   is ~3.3% taller than its layout box; `height: 100%` would overflow the stage's
   `overflow: hidden` and crop the photograph's top and bottom. 96.8% is the
   largest layout height whose painted height still fits — 463.5px inside 464px,
   measured, not guessed. `aspect-ratio: 4/5` is untouched, so the 1088x1360
   photographs crop no more than they did at 84%. Two columns only: stacked, the
   stage is 16/10 and the feature slots are full-width, so there is nothing to
   match. The percentage is tuned to a 464px stage — perspective is an absolute
   1400px, so it does not carry to a different stage size. */
@media (min-width: 981px) {
  .depth-carousel.is-ready .dc-item { height: 96.8%; }
}

.dc-card {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;   /* the no-JS grid sizes itself from this */
  padding: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.dc-card:hover { border-color: var(--amber); }
.dc-card[aria-current="true"] { border-color: color-mix(in srgb, var(--amber) 55%, transparent); }

.depth-carousel.is-ready .dc-card { height: 100%; aspect-ratio: auto; }
.dc-card__frame { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.dc-card__frame picture,
.dc-card__frame img { display: block; width: 100%; height: 100%; }
.dc-card__frame img {
  object-fit: cover;
  /* portrait 1088x1360 in a 4:5 box barely crops; 45% favours the room over
     the ceiling, and unlike the accordion the box no longer collapses. */
  object-position: 50% 45%;
  user-select: none;
  -webkit-user-drag: none;
}
.dc-card__frame svg { width: 100%; height: 100%; display: block; color: var(--amber); }
.dc-card__frame .stroke {
  fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round;
}

/* A card still waiting on a photograph carries the same marking as
   `.feature__media` and the old accordion — dashed amber plus the pill.
   Keep the three in sync (invariant 10, D-020). */
.dc-card:not(.dc-card--photo) {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--amber) 30%, transparent);
}
.dc-card:not(.dc-card--photo):hover { border-color: var(--amber); }
/* UNUSED since D-040 — the gallery holds twelve real photographs and no card
   carries a badge any more. Kept one iteration (D-033's rule) because the next
   photograph to arrive may be a stand-in again; delete it if it is still
   unreferenced when the gallery is next touched. */
.dc-card__badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--font-display); font-style: normal;
  font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 9px;
}

/* ---- nav row: below the stage, deliberately outside the measured box, so
       the picture slot stays the same size as `.feature__media` (D-034) ---- */
.depth-carousel.is-ready .dc-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.dc-arrow {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.dc-arrow:hover { border-color: var(--amber); color: var(--amber); }
.dc-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dc-count {
  font-family: var(--font-display);
  font-size: var(--fs-small); letter-spacing: .12em;
  color: var(--text-muted);
}
.dc-count b { color: var(--text); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .depth-carousel { --dc-dur: 0s; }
}

/* ---------- Gallery accordion (D-017) -------------------------
   Vanilla port of React Bits AccordionGallery. JS writes only the
   five numeric custom properties below; every colour, radius and
   duration resolves through a token (invariant 1). */
.gallery-accordion {
  --ag-gap: 10px;
  --ag-dur: .6s;
  --ag-ease: cubic-bezier(.22,.61,.36,1);
  --ag-media-size: 320px;

  display: flex;
  gap: var(--ag-gap);
  list-style: none;
  margin: 0;
  padding: 0;
  height: clamp(320px, 46vh, 460px);
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.ag-item { display: flex; min-width: 0; flex: 0 1 auto; flex-grow: var(--ag-grow, 1); }

.ag-panel {
  --ag-rot: 0deg;
  --ag-shift: 0px;
  --ag-gray: 1;
  --ag-dim: .35;

  position: relative;
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: rotateY(var(--ag-rot));
  transition: transform var(--ag-dur) var(--ag-ease),
              border-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}

.ag-panel:hover { border-color: var(--amber); }

.ag-panel__frame { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }

.ag-panel__media {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--ag-media-size);
  height: 100%;
  translate: -50% -50%;
  transform: translateX(var(--ag-shift));
  filter: grayscale(var(--ag-gray));
  transition: transform var(--ag-dur) var(--ag-ease),
              filter var(--ag-dur) var(--ag-ease);
}
.ag-panel__media svg {
  width: 100%; height: 100%; display: block; color: var(--amber);
}
.ag-panel__media .stroke {
  fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round;
}

/* A panel holding a real photograph. The SVG stand-ins are drawn to fill their
   box; a photo has its own aspect ratio, so it needs object-fit and a focal
   point that survives the panel collapsing to ~88px wide. */
.ag-panel--photo .ag-panel__media picture,
.ag-panel--photo .ag-panel__media img {
  width: 100%; height: 100%; display: block;
}
.ag-panel--photo .ag-panel__media img {
  object-fit: cover;
  /* 50% 35%, not a guessed centre: at the open panel's measured 473x420 a
     1088x1360 portrait overflows 171px vertically, and 50% clipped the
     roofline while leaving dead asphalt at the bottom. 35% keeps the whole
     roof and trims the car park instead. Re-measure if the panel ratio
     changes. */
  object-position: 50% 35%;
  user-select: none;
  -webkit-user-drag: none;
}

/* the dim layer carries --ag-dim, so it needs its own transition target */
.ag-panel__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 45%, rgba(20,21,25,.82) 100%),
    rgba(20,21,25,var(--ag-dim));
  transition: background var(--ag-dur) var(--ag-ease);
}

/* At twelve panels a closed panel is ~38px wide and the "Foto" pill (~48px)
   no longer fits — overflow:hidden clipped it to an unreadable stub on all
   eleven stand-ins. The pill is the ONLY thing marking these as placeholders
   (invariant 10), so the marking cannot depend on the panel being open:
   a dashed amber border carries it at every width, in the same visual
   language as .is-placeholder, and the pill returns when there is room. */
.ag-panel:not(.ag-panel--photo) {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--amber) 30%, transparent);
}
.ag-panel:not(.ag-panel--photo):hover { border-color: var(--amber); }

.ag-panel__badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--font-display); font-style: normal;
  font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 9px;
}
.ag-panel[aria-expanded="false"] .ag-panel__badge {
  opacity: 0;
  transition: opacity .2s ease;
}
.ag-panel[aria-expanded="true"] .ag-panel__badge {
  opacity: 1;
  transition: opacity var(--ag-dur) var(--ag-ease);
}

/* Captions removed 2026-08-29 at the user's request — the gallery is
   photographs only (D-018). The bar/label rules that drove the sliding
   caption went with them; restore from D-018 if captions ever come back. */

@media (max-width: 720px) {
  .gallery-accordion {
    flex-direction: column;
    height: auto;
    perspective: none;
  }
  .ag-item { min-height: 76px; }
  .ag-panel { transform: none; }
  .ag-panel__media { width: 100%; height: var(--ag-media-size); }
  .ag-panel[aria-expanded="true"] { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-accordion { --ag-dur: 0s; }
}

/* ---------- restored 2026-08-29 -------------------------------
   These rules were lost when the gallery block was spliced out with a
   bad end-index and were recovered from the browser's live CSSOM.
   Recovered text is CSSOM-normalised, so the original inline comments
   in this range are gone; the declarations are byte-faithful. */
@media (max-width: 900px) {
  .schedule { grid-template-columns: repeat(2, 1fr); }
  .day { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .day:nth-child(2n+1) { border-left: 0px; }
  .day:nth-child(-n+2) { border-top: 0px; }
}
@media (max-width: 520px) {
  .schedule { grid-template-columns: 1fr; }
  .day { border-left: 0px; }
  .day:nth-child(2) { border-top: 1px solid var(--line); }
}
.coaches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) {
  .coaches { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .coaches { grid-template-columns: 1fr; }
}
.coach { text-align: left; }
.coach__portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, rgba(240,137,79,.16), transparent 60%),
    var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 18px; transition: border-color 0.3s; }
.card--hover:hover .coach__portrait { border-color: var(--amber); }
.coach__initials { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; color: var(--text); letter-spacing: 0.04em; transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.3s; }
.card--hover:hover .coach__initials { transform: scale(1.07); color: var(--amber); }
.coach__portrait .ecg-mini { position: absolute; left: 0px; right: 0px; bottom: 16px; width: 100%; height: 26px; color: var(--amber); opacity: 0.55; }
.coach__portrait .ecg-mini path { fill: none; stroke: currentcolor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.coach__slot-label { position: absolute; top: 10px; left: 10px; font-family: var(--font-display); font-weight: 600; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-subtle); border: 1px dashed var(--line); border-radius: 999px; padding: 4px 9px; background: rgba(20, 21, 25, 0.6); }
.coach h3 { margin-bottom: 6px; font-size: 1.25rem; }
.coach__role { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) {
  .testimonials { grid-template-columns: 1fr; }
}
.quote { display: flex; flex-direction: column; }
.quote__mark { font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: 0.7; color: var(--amber); opacity: 0.5; margin-bottom: 14px; }
.quote blockquote { margin: 0px; font-size: var(--fs-lead); line-height: 1.55; color: var(--text); }
.quote figcaption { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote__name { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); font-size: 0.95rem; }
.quote__context { display: block; margin-top: 4px; font-size: var(--fs-small); color: var(--text-subtle); }
.stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--amber); }
.stars svg { width: 15px; height: 15px; fill: currentcolor; }
.billing-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 34px; }
.billing-toggle button { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-button); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); background: transparent; border: 0px; cursor: pointer; padding: 10px 20px; border-radius: 999px; transition: color 0.22s, background-color 0.22s; }
.billing-toggle button:hover { color: var(--text); }
.billing-toggle button[aria-pressed="true"] { background: var(--amber); color: var(--on-amber); }
.billing-toggle .save { font-size: 10px; letter-spacing: 0.12em; margin-left: 7px; color: var(--amber); transition: color 0.22s; }
.billing-toggle button[aria-pressed="true"] .save { color: var(--on-amber); opacity: 0.75; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) {
  .pricing { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}
.plan { border-radius: var(--radius-lg); padding: 32px 28px 30px; display: flex; flex-direction: column; height: 100%; }
.plan--featured { border-color: var(--amber); background: radial-gradient(120% 70% at 50% 0%, rgba(240,137,79,.13), transparent 62%),
    var(--surface); box-shadow: 0 0 0 1px var(--amber), 0 26px 60px -34px var(--amber); }
@media (min-width: 901px) {
  .plan--featured { transform: translateY(-14px); }
}
.plan--featured:hover { border-color: var(--amber); }
.plan__badge { position: absolute; top: 0px; left: 50%; translate: -50% -50%; background: var(--amber); color: var(--on-amber); font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 15px; border-radius: 999px; white-space: nowrap; }
.plan__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.plan__summary { margin-top: 8px; font-size: var(--fs-small); color: var(--text-muted); min-height: 2.6em; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0px 4px; }
.plan__amount { font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; letter-spacing: 0.005em; transition: opacity 0.22s, transform 0.22s; }
.plan__amount.is-swapping { opacity: 0; transform: translateY(-6px); }
.plan__currency { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--amber); }
.plan__period { font-size: var(--fs-small); color: var(--text-subtle); margin-left: 2px; }
.plan__billed { font-size: var(--fs-small); color: var(--text-subtle); min-height: 1.5em; }
.plan__features { list-style: none; margin: 26px 0px 30px; padding: 0px; display: grid; gap: 13px; flex: 1 1 0%; }
.plan__features li { display: flex; gap: 11px; align-items: flex-start; font-size: var(--fs-small); color: var(--text-muted); line-height: 1.5; }
.plan__features svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; color: var(--amber); }
.check { fill: none; stroke: currentcolor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plan__features li b { color: var(--text); font-weight: 500; }
.pricing-footnote { margin-top: 26px; text-align: center; font-size: var(--fs-small); color: var(--text-subtle); }
/* Full container, like every other block on the page (D-039). Line length is
   held on the prose in `ch`, not on the box in px — see `.faq__a > div`. */
.faq { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color 0.28s; }
.faq__item:hover { border-color: rgba(243, 238, 231, 0.2); }
.faq__item.is-open { border-color: var(--amber); }
.faq__q { width: 100%; text-align: left; cursor: pointer; background: transparent; border: 0px; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.faq__q:hover { color: var(--amber); }
.faq__q svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--amber); transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1); }
.faq__item.is-open .faq__q svg { transform: rotate(180deg); }
.faq__a { overflow: hidden; height: 0px; transition: height 0.34s cubic-bezier(0.22, 0.61, 0.36, 1); }
.faq__a > div { padding: 0px 22px 22px; color: var(--text-muted); font-size: var(--fs-body);
  /* the page's measure, same as .section__head (D-039) */
  max-width: 62ch; }
.no-js .faq__a { height: auto; }

/* ---- Full-width prose in #clanstvo and #vprasanja (D-051) --------
   A stated exception to D-039, by user direction. D-039 caps prose in `ch`
   (`.section__head` 62ch, `.lead` 60ch, the FAQ answer 62ch) so the measure
   stays readable while the boxes fill the container. These two sections opt
   out: the leads and every FAQ answer run the container's full 1040px, about
   130 characters a line against the ~78 the cap allowed. The cost is real and
   is recorded in decisions.md; every other section keeps the measure. */
#clanstvo .section__head,
#vprasanja .section__head { max-width: none; }
#clanstvo .section__head .lead,
#vprasanja .section__head .lead { max-width: none; }
#vprasanja .faq__a > div { max-width: none; }
.cta-band { background: var(--band); border-top: 1px solid var(--line); position: relative; overflow: hidden; text-align: center; padding-block: clamp(56px, 9vw, 88px); }
.cta-band__ecg { position: absolute; inset: auto 0px 0px; opacity: 0.22; }
.cta-band h2 { font-size: var(--fs-h1); max-width: 18ch; margin-inline: auto; text-wrap: balance; }
.cta-band .lead { margin-inline: auto; text-align: center; }
.cta-band .btn-row { justify-content: center; margin-top: 30px; }
.cta-band__meta { margin-top: 20px; font-size: var(--fs-small); color: var(--text-subtle); }
.site-footer { background: var(--band); border-top: 1px solid var(--line); padding-block: 56px 0px; }
.footer__top { margin-bottom: 34px; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}
/* Spacing is between siblings only (D-066), so whichever block opens a column
   starts at the column's top edge and all three h3s share one baseline. The
   old :first-child pair broke the moment a block moved to another column. */
.footer__block + .footer__block { margin-top: 24px; }
.footer__about address { max-width: 34ch; }
.footer h3 { font-size: var(--fs-eyebrow); letter-spacing: 0.2em; color: var(--text-muted); font-weight: 600; margin-bottom: 16px; }
.footer address { font-size: var(--fs-small); color: var(--text-muted); font-style: normal; line-height: 1.6; }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--amber); }
.footer address a { display: inline-block; }
.footer__hours { display: grid; gap: 9px; max-width: 27ch; }
.footer__hours dt, .footer__hours dd { margin: 0; }
.footer__hours div { display: flex; justify-content: space-between; gap: 14px; font-size: var(--fs-small); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--text-muted); transition: color 0.22s, border-color 0.22s, transform 0.22s; }
.socials a:hover { color: var(--amber); border-color: var(--amber); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: 46px; border-top: 1px solid var(--line); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; text-align: center; font-size: var(--fs-small); color: var(--text-subtle); }
.footer__sep { margin-inline: 4px; }
.footer__bottom p { margin: 0px; }
.is-placeholder { border-bottom: 1px dashed rgba(240, 137, 79, 0.42); cursor: help; }

/* ---------- 19b. Price list (D-033) ----------------------------
   The client's price list is a flat set of groups, not tiered plans, so this
   replaces the three plan cards. The `.plan*` and `.billing-toggle` rules above
   are now unused; kept for one iteration in case the tiers come back. */
/* One frame, not five (D-038). The old 2-column grid with a full-width first
   card produced three different box heights, and different box sizes read as
   different kinds of thing — this is one price list from one PDF. The frame is
   `.pricelist`; a group is a heading plus its rows, not a box of its own. */
.pricelist {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0 30px;
}

.pricegroup { padding: 28px 0 24px; }
/* Same hairline as the rows: the heading and its padding are what make a group
   boundary read as bigger than a row boundary, not a heavier line. */
.pricegroup + .pricegroup { border-top: 1px solid var(--line); }
/* These were <h3> until D-049 pushed them a level down under the fold headings.
   tokens.css styles `h1, h2, h3` only — nothing there covers h4 — so the level
   change silently cost the display font, the tight line-height and `margin: 0`,
   letting the UA's 1.33em top margin back in. Restored here rather than by
   widening the token rule, which would need an --fs-h4 step the scale does not
   have. If a second h4 context ever appears, give the system a real h4 instead. */
.pricegroup h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  margin: 0 0 6px;
  font-size: 1.125rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text);
}
.pricegroup__note {
  margin-top: 14px;
  font-size: var(--fs-small); color: var(--text-subtle);   /* fine print — invariant 4 */
}

/* ---- Cenik folds (D-049) --------------------------------------
   Two collapsing groups inside the one `.pricelist` frame. Deliberately the
   FAQ's shape — same button/panel contract, same easing, same escapes — so the
   page has one accordion idiom, not two. */
.pricefold + .pricefold { border-top: 1px solid var(--line); }
.pricefold__q {
  width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 0;
  color: var(--text);
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.125rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 26px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.pricefold__q:hover { color: var(--amber); }
.pricefold__q svg {
  width: 20px; height: 20px; flex: 0 0 auto; color: var(--amber);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.pricefold.is-open .pricefold__q svg { transform: rotate(180deg); }
.pricefold__a { overflow: hidden; height: 0; transition: height .34s cubic-bezier(.22,.61,.36,1); }
/* Script never ran: leave the prices on screen. §5 says prices are always
   visible, and a fold with no script to open it would bury them for good. */
.no-js .pricefold__a { height: auto; }
.pricefold__a > div { padding-bottom: 10px; }
/* The fold's own heading already spaces the first group off the button. */
.pricefold__a .pricegroup:first-child { padding-top: 0; }

.pricerows { list-style: none; margin: 0; padding: 0; }
.pricerow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.pricerow:last-child { border-bottom: 0; padding-bottom: 0; }
.pricerow__label { color: var(--text); }
.pricerow__note {
  grid-column: 1 / 2;
  margin-top: 4px;
  font-size: var(--fs-small); color: var(--text-subtle);
}
.pricerow__note b { color: var(--amber); font-weight: 600; }
.pricerow__price {
  grid-row: 1;
  grid-column: 2;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; line-height: 1;
  color: var(--amber);
  white-space: nowrap;
}
.pricerow__price small {
  font-family: var(--font-body); font-weight: 400;
  font-size: var(--fs-small); color: var(--text-muted);
}
.btn-row--center { justify-content: center; margin-top: 34px; }

@media (max-width: 720px) {
  .pricelist { padding: 0 20px; }
  .pricegroup { padding: 22px 0 18px; }
  .pricerow__price { font-size: 1.3rem; }
}

/* ---------- 20. Contact form ---------------------------------- */

.contact {
  /* Centred against the form, like `.feature` and `.gallery-split` (D-054).
     Was `start`, which only read as deliberate while the left column carried the
     assurances list and the direct-contact block under the copy. */
  /* Equal halves and the same 40px gap as `.feature` and `.gallery-split`, so the
     form card measures the same WIDTH as an image slot (D-055). Height cannot
     match — seven fields do not fit a 457px square — so only the width is matched. */
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 34px; } }

.contact__intro .eyebrow { display: block; margin-bottom: 14px; }
/* 30px of bottom margin was spacing the lead off the assurances list, which
   D-054 deleted; on the last paragraph it is now dead height that pulls the
   centred column off the form's axis. Stacked leads use the page's existing
   figure — `.feature__body .lead + .lead` is 14px (D-055). */
.contact__intro .lead { margin-bottom: 0; }
.contact__intro .lead + .lead { margin-top: 14px; }

.assurances { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 13px; }
.assurances li { display: flex; gap: 11px; align-items: flex-start;
  font-size: var(--fs-small); color: var(--text-muted); line-height: 1.5; }
.assurances svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--amber); }
.assurances b { color: var(--text); font-weight: 500; }

.contact__direct { display: flex; flex-wrap: wrap; gap: 30px; margin: 0;
  padding-top: 26px; border-top: 1px solid var(--line); }
.contact__direct dt {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-eyebrow); letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-subtle); margin-bottom: 7px;
}
.contact__direct dd { margin: 0; }
.contact__direct a { font-size: var(--fs-lead); }

.contact__card { padding: 32px; }
@media (max-width: 560px) { .contact__card { padding: 22px; } }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
/* a wrapping error message under one field must not stretch its neighbour's input */
.field-row > .field { align-content: start; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field label {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted);
}
.req { color: var(--amber); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-body);
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 13px 14px; line-height: 1.4;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 104px; }
.field ::placeholder { color: var(--text-subtle); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(243,238,231,.24); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(240,137,79,.18);
}
/* the token focus ring still applies for keyboard users on every control */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}

.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--amber) 50%),
    linear-gradient(135deg, var(--amber) 50%, transparent 50%);
  background-position: calc(100% - 21px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field select option { background: var(--surface-2); color: var(--text); }

/* invalid state */
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--amber-press); }
.field__error {
  margin: 0; font-size: var(--fs-small); color: var(--amber);
  display: flex; align-items: flex-start; gap: 6px;
}
/* `hidden` is only display:none in the UA sheet — the class above outranks it */
.field__error[hidden] { display: none; }
.field__error::before { content: "!"; font-weight: 700; }

/* consent checkbox */
.field--check {
  grid-template-columns: auto 1fr; align-items: start; gap: 12px; margin-top: 4px;
}
.field--check input {
  width: 20px; height: 20px; margin: 1px 0 0; flex: none; cursor: pointer;
  accent-color: var(--amber);
}
.field--check label {
  font-family: var(--font-body); font-size: var(--fs-eyebrow);
  letter-spacing: 0; text-transform: none; color: var(--text-muted);
  line-height: 1.5; cursor: pointer;
}
.field--check .field__error { grid-column: 1 / -1; }
.field--check.is-invalid label { color: var(--text); }

/* honeypot — hidden from people, still reachable by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status {
  margin: 0; font-size: var(--fs-small); line-height: 1.5; min-height: 1.2em;
  color: var(--text-muted);
}
.form__status:empty { display: none; }
.form__status.is-error { color: var(--amber); }
.form__status.is-ok {
  color: var(--text);
  border-left: 2px solid var(--amber); padding-left: 12px;
}

.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }
