/* ============================================================
   Děti na startu — Sportovní plakát
   Shared stylesheet

   Colour values are fixed by Logo-manual-DNS.pdf (FISAF.cz).
   Do not adjust them. Read BRAND.md before editing anything here.
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Official FISAF palette — exact values, never altered */
  --red: #e30613;
  --blue: #009fe3;
  --orange: #ef7d00;
  --lime: #cccf00;
  --magenta: #e5007d;
  --yellow: #fbba00;

  /* Grounds & text */
  --white: #ffffff;
  --paper: #fdfbf7;
  --ink: #1d1d1b;
  --ink-mute: #57534e;
  --hairline: #e8e2d8;

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", Arial, sans-serif;

  /* Major-third scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.25rem, 1.18rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.56rem, 1.42rem + 0.7vw, 1.95rem);
  --step-3: clamp(1.95rem, 1.7rem + 1.25vw, 2.75rem);
  --step-4: clamp(2.44rem, 2.05rem + 1.7vw, 3.9rem);
  --step-5: clamp(2.9rem, 1.9rem + 4.6vw, 5.6rem);

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --maxw: 1280px;
  --radius: 4px;

  /* Spacing scale — replaces the inline margin-top values that used to live
     in the markup. --space-3xl stays fluid because it separates major blocks. */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: clamp(3rem, 6vw, 4.5rem);

  /* Interaction */
  --tap-min: 44px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 120ms;
  --dur-base: 260ms;
  --dur-slow: 420ms;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* `hidden` is a UA `display: none`, so any component rule that sets `display`
   silently outranks it. .form__status (display:flex) rendered as an empty
   bordered box on page load because of exactly that. */
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
ul,
ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  /* Czech words get long (SPORTOVIŠTĚ, METODICKOU). Hyphenate at valid points
     first — the page is lang="cs" — and only fall back to a hard break if the
     browser has no patterns. break-word alone snapped words with no hyphen. */
  hyphens: auto;
  overflow-wrap: break-word;
}
h1 {
  font-size: var(--step-5);
}
h2 {
  font-size: var(--step-4);
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
  font-stretch: 105%;
}
p {
  text-wrap: pretty;
}
.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-mute);
  max-width: 60ch;
}
.prose p {
  max-width: 68ch;
}
.prose p + p {
  margin-top: 1em;
}

/* Inline links: ink with a red underline. Never a brand colour as small text. */
.prose a,
.link {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness 0.15s ease;
}
.prose a:hover,
.link:hover {
  text-decoration-thickness: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
}
.section--paper {
  background: var(--paper);
}
.section__head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
/* PHASE 1.1 — restores the heading-to-lead relationship that was lost when the
   eyebrow labels were removed. */
.section__head > h2 + .lead {
  margin-top: var(--space-lg);
}

/* Spacing utilities — used instead of inline style="margin-top: …" */
.mt-md {
  margin-top: var(--space-md);
}
.mt-lg {
  margin-top: var(--space-lg);
}
.mt-xl {
  margin-top: var(--space-xl);
}
.mt-3xl {
  margin-top: var(--space-3xl);
}

/* Six-colour rule — the recurring brand device */
.colourbar {
  display: flex;
  height: 6px;
}
.colourbar span {
  flex: 1;
}
.colourbar span:nth-child(1) { background: var(--red); }
.colourbar span:nth-child(2) { background: var(--orange); }
.colourbar span:nth-child(3) { background: var(--yellow); }
.colourbar span:nth-child(4) { background: var(--lime); }
.colourbar span:nth-child(5) { background: var(--blue); }
.colourbar span:nth-child(6) { background: var(--magenta); }

/* ---------- Accessibility helpers ---------- */
.skip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  transform: translateY(-120%);
}
.skip:focus {
  transform: translateY(0);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
/* PHASE 3.17 — --blue was only 3.0:1 against white. An ink ring with a white
   halo reads on both the white and paper grounds with real margin. */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--white);
}

/* ---------- Buttons ----------
   Colours are fixed in every state. The only feedback is motion: a lift on
   hover and focus, and a shorter press on :active. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 700;
  font-stretch: 105%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--dur-slow) var(--ease-out);
}
/* hover latches after a tap on touch devices, so it stays gated.
   :focus-visible is outside the query so keyboard users keep the feedback. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-4px);
  }
}
.btn:focus-visible {
  transform: translateY(-4px);
}
.btn:active {
  transform: translateY(-1px);
  transition-duration: var(--dur-fast);
}

.btn--primary {
  background-color: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn--ghost {
  background-color: var(--white);
  border-color: var(--ink);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white); /* the logo may only sit on white — manual p.7 */
}
/* The six-colour rule is the header's bottom edge, so it stays visible while
   the page scrolls instead of sitting once at the foot of the hero. */
.site-header .colourbar {
  height: 5px;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 88px;
  padding-block: 0.5rem;
}
/* The logo file carries its own clear space (manual p.5) */
.brand {
  flex: none;
  display: block;
  line-height: 0;
}
.brand img {
  width: clamp(112px, 13vw, 156px); /* never below the 25 mm minimum — manual p.4 */
  height: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
}
.nav__links a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  font-stretch: 105%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.75rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: border-color 0.15s ease;
}
.nav__links a[aria-current="page"] {
  border-bottom-color: var(--red);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover {
    border-bottom-color: var(--red);
  }
}
.nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav__toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 3px;
  background: var(--ink);
  transition: background-color 0.15s ease;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 3px;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.nav__toggle span::before {
  top: -7px;
}
.nav__toggle span::after {
  top: 7px;
}
.nav__toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav__toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
/* Without this a single long word (SPORTOVIŠTĚ) sets the track's min-content
   width and drags the whole column past the viewport, taking the lead
   paragraph and the anchor pills with it. */
.hero__grid > *,
.split > * {
  min-width: 0;
}
.hero h1 {
  margin-block: 0.75rem 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
}
.hero__media {
  position: relative;
}
/* Saturated block behind the photo — the poster device */
.hero__media::before {
  content: "";
  position: absolute;
  inset: -1.5rem -1.5rem 2.5rem 2.5rem;
  background: var(--blue);
  border-radius: var(--radius);
}
.hero__media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--ink);
}
/* ---------- Reason list (numbered, colour-cycled) ---------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem 2.5rem;
  counter-reset: r;
}
.reasons li {
  counter-increment: r;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.reasons li::before {
  content: counter(r, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1;
  color: var(--ink);
  background: var(--yellow);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  min-width: 2.6rem;
  text-align: center;
}
.reasons li:nth-child(6n + 2)::before { background: var(--lime); }
.reasons li:nth-child(6n + 3)::before { background: var(--blue); }
.reasons li:nth-child(6n + 4)::before { background: var(--orange); }
.reasons li:nth-child(6n + 5)::before { background: var(--red); color: var(--white); }
.reasons li:nth-child(6n + 6)::before { background: var(--magenta); color: var(--white); }

/* ---------- Tick list ---------- */
.ticks {
  display: grid;
  gap: 1rem;
}
.ticks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  font-size: var(--step-0);
}
.ticks li::before {
  content: "";
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.2rem;
  flex: none;
  background: var(--red);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
  border-radius: 0;
}
.ticks--split {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem 2.5rem;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  /* Longer travel on an ease-out-quint curve: the card leaves quickly and
     settles slowly, which reads far smoother than the old 0.18s linear-ish ease. */
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Card headings live in a ~204px column at desktop, where nine of the site's
   heading words (SPORTOVIŠTĚ, METODICKOU, PROPAGAČNÍ, ABSOLVOVAT …) overflow at
   the 112% width used for section headings. Archivo's width axis is the right
   lever: at 90% the longest word is 170px, and the cap height stays LARGER than
   shrinking the size alone would allow. hyphens is the safety net so a future
   long word breaks with a real hyphen instead of snapping in half. */
.card h3 {
  font-size: clamp(1.35rem, 1.2rem + 0.55vw, 1.6rem);
  font-stretch: 90%;
  line-height: 1.04;
  letter-spacing: -0.01em;
  hyphens: auto;
}
.card__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.card__topline {
  height: 8px;
  width: 3.5rem;
  background: var(--red);
  border-radius: 999px;
}
.card p {
  color: var(--ink-mute);
}
@media (hover: hover) and (pointer: fine) {
  /* PHASE 3.16 — compositor layer only where a hover can actually happen */
  .card--link {
    will-change: transform;
  }
  .card--link:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--ink);
  }
}
.card--link:focus-within {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--ink);
}
.card--link:active {
  transform: translate(-1px, -1px);
  box-shadow: 7px 7px 0 var(--ink);
  transition-duration: 0.1s;
}
.card--link a {
  text-decoration: none;
}
/* Whole card clickable, keyboard focus still lands on the real link */
.card--link a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card--link {
  position: relative;
}
.card__more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 105%;
  text-transform: uppercase;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.card__more::after {
  content: "→";
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .card--link:hover .card__more::after {
    transform: translateX(6px);
  }
}
.card--link:focus-within .card__more::after {
  transform: translateX(6px);
}
/* Per-card accent */
.card--red .card__topline { background: var(--red); }
.card--blue .card__topline { background: var(--blue); }
.card--orange .card__topline { background: var(--orange); }
.card--lime .card__topline { background: var(--lime); }
.card--magenta .card__topline { background: var(--magenta); }
.card--yellow .card__topline { background: var(--yellow); }

/* ---------- Discipline grid (photo + colour) ---------- */
.disciplines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
/* PHASE 1.4 — auto-fit resolves to 3 columns here, stranding the 4th item */
@media (min-width: 700px) and (max-width: 1000px) {
  .disciplines,
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.discipline {
  display: flex;
  flex-direction: column;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.discipline img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 3px solid var(--ink);
}
.discipline__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  /* fills the leftover height so every card's colour block reaches the border,
     even when one label wraps to three lines */
  flex: 1;
  min-height: 4.6rem;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 108%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--step-1);
}
.discipline--red .discipline__label { background: var(--red); color: var(--white); }
.discipline--blue .discipline__label { background: var(--blue); color: var(--ink); }
.discipline--orange .discipline__label { background: var(--orange); color: var(--ink); }
.discipline--lime .discipline__label { background: var(--lime); color: var(--ink); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
/* PHASE 2.7 — all three numerals share --ink so none reads as less important.
   The brand colour moves to the rule above each label, which is a non-text
   element and therefore not bound by the text contrast table in BRAND.md. */
.stat__label {
  display: block;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 4px solid var(--ink);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  font-stretch: 105%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stat:nth-child(1) .stat__label { border-top-color: var(--red); }
.stat:nth-child(2) .stat__label { border-top-color: var(--magenta); }
.stat:nth-child(3) .stat__label { border-top-color: var(--blue); }

/* ---------- Station rotation diagram ---------- */
.rotation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  position: relative;
  max-width: 640px;
}
.rotation__cell {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}
.rotation__cell:nth-child(1) { background: var(--red); color: var(--white); }
.rotation__cell:nth-child(2) { background: var(--blue); color: var(--ink); }
.rotation__cell:nth-child(3) { background: var(--lime); color: var(--ink); }
.rotation__cell:nth-child(4) { background: var(--orange); color: var(--ink); }
.rotation__n {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 1;
  opacity: 0.85;
}
.rotation__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 800;
  font-stretch: 108%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 800;
  background: var(--yellow);
  color: var(--ink);
}
.steps li:nth-child(2)::before { background: var(--blue); }
.steps li:nth-child(3)::before { background: var(--magenta); color: var(--white); }
.steps h3 {
  margin-bottom: 0.5rem;
}
.steps p {
  color: var(--ink-mute);
}

/* ---------- Split media block ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--flip .split__media {
  order: -1;
}
.split__media {
  position: relative;
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
}
.split__media::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  background: var(--lime);
  border-radius: var(--radius);
}
.split__media--magenta::before { background: var(--magenta); }
.split__media--yellow::before { background: var(--yellow); }
.split__media--blue::before { background: var(--blue); }
.split__media img {
  position: relative;
}

/* ---------- Quote ----------
   An editorial pull-quote panel rather than a bordered box. The six-colour rule
   frames it on all four sides: one hard-stop gradient per edge, running
   clockwise, so every side carries the full sequence at even width. A single
   conic gradient was tried first and rejected — on a wide box it crams four
   colours into the top edge and leaves one colour per side.

   The flat fill is clipped to padding-box and the four edge layers to
   border-box, which keeps the corner radius (border-image would drop it).
   Shared with the "Potrebujete poradit" panel on /zapojte-se. */
.quote {
  --quote-bg: var(--paper);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem)
    clamp(1.75rem, 4vw, 3rem);
  border: 6px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--quote-bg), var(--quote-bg)) padding-box,
    linear-gradient(
        to right,
        var(--red) 0 16.66%,
        var(--orange) 16.66% 33.33%,
        var(--yellow) 33.33% 50%,
        var(--lime) 50% 66.66%,
        var(--blue) 66.66% 83.33%,
        var(--magenta) 83.33% 100%
      ) top / 100% 6px no-repeat border-box,
    linear-gradient(
        to bottom,
        var(--red) 0 16.66%,
        var(--orange) 16.66% 33.33%,
        var(--yellow) 33.33% 50%,
        var(--lime) 50% 66.66%,
        var(--blue) 66.66% 83.33%,
        var(--magenta) 83.33% 100%
      ) right / 6px 100% no-repeat border-box,
    linear-gradient(
        to left,
        var(--red) 0 16.66%,
        var(--orange) 16.66% 33.33%,
        var(--yellow) 33.33% 50%,
        var(--lime) 50% 66.66%,
        var(--blue) 66.66% 83.33%,
        var(--magenta) 83.33% 100%
      ) bottom / 100% 6px no-repeat border-box,
    linear-gradient(
        to top,
        var(--red) 0 16.66%,
        var(--orange) 16.66% 33.33%,
        var(--yellow) 33.33% 50%,
        var(--lime) 50% 66.66%,
        var(--blue) 66.66% 83.33%,
        var(--magenta) 83.33% 100%
      ) left / 6px 100% no-repeat border-box;
}
/* on a paper section only the inner fill flips, so the frame is unaffected */
.section--paper .quote {
  --quote-bg: var(--white);
}
.quote__mark {
  font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 9rem);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 0.62;
  color: var(--red);
  user-select: none;
}
.quote p {
  font-size: var(--step-1);
  line-height: 1.55;
  max-width: 62ch;
}
.quote p + p {
  margin-top: 0.9em;
  font-size: var(--step-0);
  color: var(--ink-mute);
}
.quote h3 {
  margin-bottom: 0.25rem;
}
.quote footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 108%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--step-0);
}
/* role sits in a red tag beside the name */
.quote footer span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- Price panel ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
}
.price__label {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  font-stretch: 105%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.price__value {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ---------- Contact ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.person {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
}
/* Portrait: circular avatar with the same hard ink keyline as the cards */
.person__photo {
  width: clamp(88px, 12vw, 104px);
  height: clamp(88px, 12vw, 104px);
  margin-bottom: 1.25rem;
  border-radius: 50%;
  border: 3px solid var(--ink);
  object-fit: cover;
  object-position: center top;
}
.person__role {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  font-stretch: 105%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.35rem;
}
.person h3 {
  margin-bottom: 1rem;
}
.person ul {
  display: grid;
  gap: 0.4rem;
}
.person a {
  /* PHASE 1.2 — these are the primary conversion actions on /kontakt */
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  word-break: break-word;
}
.person a:hover {
  text-decoration-thickness: 4px;
}

.deflist {
  display: grid;
  gap: 0.6rem;
}
.deflist div {
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--hairline);
}
.deflist dt {
  font-weight: 700;
}
.deflist dd {
  color: var(--ink-mute);
  word-break: break-word;
}

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: 1.25rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  font-stretch: 105%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  font-size: 1rem; /* 16px min — stops iOS zooming on focus */
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
}
.field textarea {
  min-height: 160px;
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--white);
}
.form__note {
  font-size: var(--step--1);
  color: var(--ink-mute);
}
/* PHASE 3.14 — a glyph alongside the colour so the state does not depend on
   hue alone (WCAG 1.4.1). */
.form__status {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 0.85rem 1rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
}
.form__status::before {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1;
}
.form__status[data-state="ok"]::before {
  content: "\2713";
}
.form__status[data-state="err"]::before {
  content: "\0021";
  background: var(--white);
  color: var(--red);
}
.form__status[data-state="ok"] {
  background: var(--lime);
}
.form__status[data-state="err"] {
  background: var(--red);
  color: var(--white);
}

/* ---------- Anchor nav ---------- */
.anchornav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.anchornav a {
  padding: 0.6rem 1.2rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  font-stretch: 105%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--white);
  transition: background-color 0.15s ease, color 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .anchornav a:hover {
    background: var(--ink);
    color: var(--white);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}
.site-footer .container {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
/* Logo panel stays pure white even on the paper ground — manual p.7 */
.footer__brand {
  display: inline-block;
  background: var(--white);
  padding: 0.75rem;
  border-radius: var(--radius);
  line-height: 0;
}
.footer__brand img {
  width: clamp(140px, 16vw, 190px);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
}
/* PHASE 2.9 — was an <h2>, which put footer column labels at the same outline
   level as real page sections. Now a styled non-heading; each list is labelled
   via aria-labelledby so the grouping survives for screen readers. */
.footer__coltitle {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step--1);
  font-stretch: 105%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.footer__cols ul {
  display: grid;
  gap: var(--space-2xs);
}
.footer__cols a {
  /* PHASE 1.3 — 44px minimum target (WCAG 2.5.5) */
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-fast) ease;
}
.footer__cols a:hover {
  border-bottom-color: var(--red);
}
.footer__blurb {
  margin-top: 1.25rem;
  color: var(--ink-mute);
  font-size: var(--step--1);
  max-width: 46ch;
}
.footer__legal {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--ink-mute);
}

/* ---------- Reveal animation ----------
   Scoped to .js (set by an inline script in <head>) so that without
   JavaScript the content is simply visible instead of stuck at opacity 0. */
.js [data-animate] {
  opacity: 0;
  /* the independent `translate` property, NOT `transform` — components like
     .card use transform for their hover, and these reveal rules outrank them */
  translate: 0 18px;
  transition: opacity 0.55s ease, translate 0.55s ease;
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-animate].is-visible {
  opacity: 1;
  translate: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid,
  .split {
    grid-template-columns: 1fr;
  }
  .split--flip .split__media {
    order: 0;
  }
  .hero__media::before,
  .split__media::before {
    inset: -1rem -1rem 1.5rem 1.5rem;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .quote {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 620px) {
  /* SPORTOVIŠTĚ is 379px at the phone h1 size against ~320px of usable width.
     Condensing to 88% brings it to ~298px, which keeps the type large — a
     smaller font-size would cost more impact for the same fit. */
  h1 {
    font-stretch: 88%;
  }
}

@media (max-width: 760px) {
  .nav__toggle {
    display: inline-flex;
  }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 3px solid var(--ink);
    box-shadow: 0 12px 24px rgb(29 29 27 / 12%);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav__links[hidden] {
    display: none;
  }
  /* PHASE 1.6 — full-width rows so the dividers are even, and the current-page
     state moved to a left marker so it cannot be mistaken for a divider. */
  .nav__links a {
    display: block;
    padding-block: 0.9rem;
    padding-left: 0;
    border-bottom: 1px solid var(--hairline);
    border-left: 4px solid transparent;
    transition: padding-left var(--dur-fast) ease,
      border-left-color var(--dur-fast) ease;
  }
  .nav__links a[aria-current="page"] {
    /* the left marker is the whole signal here — a red bottom border would sit
       in the same slot as the dividers and read as one */
    border-bottom-color: var(--hairline);
    border-left-color: var(--red);
    padding-left: var(--space-sm);
  }
  .nav__links li:last-child a {
    border-bottom-color: transparent;
  }
  .rotation {
    grid-template-columns: 1fr;
  }
  .deflist div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-animate] {
    opacity: 1;
    translate: none;
  }
}

@media print {
  .site-header,
  .btn-row,
  .anchornav {
    display: none;
  }
}
