/*
  vojtechpechac.cz
  Systém tokenů: struktura (pojmenované stupně písma, 8px mřížka rozestupů,
  stavy komponent) vychází z DESIGN.md. Barvy, písmo a tvary jsou vlastní.
  Pravidla: neutrální plochy, jeden akcent (modrá) jen na tlačítkách a linkách,
  jedno zaoblení (8 px), jen světlý vzhled.
*/

/* Písmo: Geist a Geist Mono (SIL OFL 1.1), hostováno lokálně */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-latin-ext-wght-normal.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: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-latin-wght-normal.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: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-mono-latin-ext-wght-normal.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: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-mono-latin-wght-normal.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;
}

:root {
  color-scheme: light;

  /* Barvy */
  --bg: #F5F6F7;
  --bg-tint: #ECEEF1;
  --surface: #FCFCFD;
  --text: #15171B;
  --muted: #555B66;
  --line: #D9DDE2;
  --line-strong: #8A919C;
  --accent: #2F54E6;
  --accent-strong: #2444C8;
  --on-accent: #FDFDFE;
  --accent-wash: #E4E9FC;
  --error: #A8261C;
  --logo-plate: #FFFFFF;
  --logo-plate-text: #15171B;
  --contrast-bg: #1B1E23;
  --contrast-text: #ECEEF1;

  /* Písmo */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --text-display-xl: clamp(2.5rem, 1rem + 6.4vw, 6rem);
  --text-display-lg: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  --text-display-md: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --text-heading: 1.25rem;
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-mono: 0.8125rem;

  /* Rozestupy, základ 8 px */
  --space-xxs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-3xl: 48px;
  --space-huge: 64px;
  --section-pad: clamp(64px, 8vw, 96px);
  --gutter: clamp(20px, 4vw, 40px);

  /* Tvar a vrstvy */
  --radius: 8px;
  --header-height: 64px;
  --z-header: 10;
  --z-skip: 20;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-padding-top: calc(var(--header-height) + var(--space-lg));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { text-wrap: balance; font-weight: 600; }
h1 { font-size: var(--text-display-xl); line-height: 0.98; letter-spacing: -0.04em; }
h2 { font-size: var(--text-display-lg); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: var(--text-heading); line-height: 1.3; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a, button, input, select, textarea, label { touch-action: manipulation; }
.nb { white-space: nowrap; }
a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: var(--z-skip);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: translateY(0); color: var(--bg); }

.lead { font-size: var(--text-body-lg); line-height: 1.55; }


/* Tlačítko: výchozí, hover, stisk, focus, vypnuté */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-xl);
  background-color: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 100ms ease;
}
.btn:hover { background-color: var(--accent-strong); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hlavička */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--space-xl);
  min-height: var(--header-height);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: var(--text-body-lg);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-nav ul { display: flex; align-items: center; gap: var(--space-xs) var(--space-xl); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.menu-toggle {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-lg);
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.menu-toggle:hover { background-color: var(--bg-tint); }

/* Úvod: titulek přes celou šířku, pod ním text s tlačítkem a portrét, pak čísla */
.hero { padding-block: clamp(40px, 5vw, 72px) var(--section-pad); }
.hero h1 { max-width: 12em; margin-bottom: clamp(32px, 4vw, 56px); }
.strike { position: relative; white-space: nowrap; }
.strike::after {
  content: "";
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  top: 56%;
  height: 0.09em;
  background-color: var(--accent);
  transform-origin: left center;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-huge);
  align-items: start;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xl); }
.hero-copy .lead { max-width: 30em; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); }
.portrait {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  justify-self: end;
  background-color: var(--contrast-bg);
  border-radius: var(--radius);
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-person { display: none; align-items: center; gap: var(--space-lg); }
.hero-person img { flex: none; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.hero-person p { display: flex; flex-direction: column; gap: 2px; font-size: var(--text-body-lg); line-height: 1.3; }
.hero-person span { color: var(--muted); font-size: var(--text-small); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-xl) var(--space-xxl);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--line);
}
.stats li { display: flex; flex-direction: column; gap: var(--space-sm); }
.stats strong { font-size: var(--text-display-lg); line-height: 1; letter-spacing: -0.03em; font-weight: 600; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); }

/* Sekce */
.section { padding-block: var(--section-pad); }
.section-tint { background-color: var(--bg-tint); }
section[id] { scroll-margin-top: calc(var(--header-height) + var(--space-lg)); }
.section-head { display: flex; flex-direction: column; gap: var(--space-lg); margin-bottom: var(--space-3xl); }
.section-head p { max-width: 56em; font-size: var(--text-body-lg); line-height: 1.55; color: var(--muted); }

/* Služby: čtyři názvy systémů v jedné řadě */
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); }
.platform {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  text-align: center;
  padding: var(--space-xl);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* Odstíny od tmavé po světlou */
.platform { flex-direction: column; gap: var(--space-sm); }
.platform-desc { max-width: 16em; font-size: var(--text-small); line-height: 1.4; letter-spacing: 0; font-weight: 400; opacity: 0.7; }
.platform-a { background-color: var(--contrast-bg); border-color: transparent; color: var(--contrast-text); }
.platform-b { background-color: var(--line); border-color: transparent; }
.platform-c { background-color: var(--bg-tint); }

/* Jak spolupráce probíhá: očíslované kroky */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); counter-reset: krok; }
.steps li { display: flex; flex-direction: column; gap: var(--space-sm); padding-top: var(--space-lg); border-top: 2px solid var(--line); counter-increment: krok; }
.steps li::before { content: counter(krok, decimal-leading-zero); color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--text-body-lg); line-height: 1.3; }
.steps p { color: var(--muted); }

/* Ikony u kroků a karet, loga reklamních systémů */
.item-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background-color: var(--accent-wash); color: var(--accent); }
.platform-logo { position: relative; width: 36px; height: 36px; margin-bottom: var(--space-xs); }
.logo-mask, .logo-full { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 200ms ease; }
.logo-mask { background-color: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.logo-mask { display: none; }
/* Loga reklamních systémů barevně, ale poloprůhledně; plná barva po najetí / klepnutí */
.logo-full { object-fit: contain; opacity: 0.6; }
.platform.is-active .logo-full { opacity: 1; }
@media (hover: hover) {
  .platform:hover .logo-full { opacity: 1; }
}
/* Ikona v řádku s nadpisem, text pod nimi přes celou šířku */
.item-icon { width: 36px; height: 36px; }
.item-icon svg { width: 20px; height: 20px; }
.steps li, .values li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--space-md); row-gap: var(--space-sm); align-content: start; }
/* Velké světlé číslo kroku v pozadí, ikona ho částečně překrývá */
.steps li { position: relative; padding-top: calc(var(--space-lg) + 8px); }
.steps li::before {
  content: counter(krok);
  position: absolute;
  top: calc(var(--space-lg) - 2px);
  left: -1px;
  z-index: 2;
  -webkit-text-stroke: 5px var(--bg);
  paint-order: stroke fill;
  color: #6B727D;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.steps .item-icon { position: relative; z-index: 1; margin: 22px 0 0 14px; background-color: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(21, 23, 27, 0.06); }
.steps li > h3 { position: relative; z-index: 1; align-self: end; }
.steps li > p { position: relative; z-index: 1; }
.steps li > p, .values li > p { grid-column: 1 / -1; }

/* Osobní přístup: tři karty */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.values li { padding: var(--space-xl); background-color: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.values h3 { font-size: var(--text-body-lg); line-height: 1.3; }
.values p { color: var(--muted); }

/* Patička */
.site-footer { padding-block: var(--space-xl) calc(var(--space-xl) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: var(--text-small); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); }
.site-footer a { color: inherit; }

/* Přepínač jazyka */
.site-nav { order: 1; margin-left: auto; }
.lang-switch { order: 2; display: flex; align-items: center; }
.lang-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: var(--text-small); font-weight: 600; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Spolupráce: věta s přepínatelnými slovy (se skriptem), statické seznamy (bez skriptu) */
.pitch { display: none; }
.js .pitch { display: block; }
.js .fit { display: none; }
.pitch-sentence {
  max-width: 24em;
  font-size: clamp(1.75rem, 0.9rem + 3vw, 2.875rem);
  line-height: 1.34;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.swap {
  display: inline-block;
  margin: -0.14em -0.12em;
  padding: 0.14em 0.12em;
  background-color: transparent;
  border: 0;
  border-radius: var(--radius);
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.16em;
  cursor: pointer;
}
@media (min-width: 768px) { .pair { white-space: nowrap; } }
.swap:hover { background-color: var(--accent-wash); }
.swap[aria-pressed="true"] { color: var(--muted); text-decoration-line: line-through; }
.pitch-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg) var(--space-xxl);
  margin-top: var(--space-3xl);
  padding: var(--space-xl) var(--space-xxl);
  border: 1px solid transparent;
  border-radius: var(--radius);
}
.pitch-result-text { display: flex; flex-direction: column; gap: var(--space-sm); }
.pitch-result p { font-size: var(--text-display-md); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.pitch-result .pitch-result-sub { font-size: var(--text-body-lg); line-height: 1.45; letter-spacing: 0; font-weight: 400; opacity: 0.75; }
/* Kladný výsledek je tmavý pruh, tlačítko v něm používá světlejší modrou z tmavého režimu */
.pitch-result[data-state="ano"] {
  --accent: #6C8AFF;
  --accent-strong: #8AA2FF;
  --on-accent: #0E1118;
  background-color: var(--contrast-bg);
  color: var(--contrast-text);
}
.pitch-result[data-state="ne"] { border: 1px dashed var(--line-strong); }

.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.fit-panel { padding: var(--space-xxl); border-radius: var(--radius); }
.fit-yes { background-color: var(--surface); border: 1px solid var(--line); }
.fit-no { border: 1px dashed var(--line-strong); color: var(--muted); }
.fit-panel h3 { margin-bottom: var(--space-lg); }
.fit-panel ul { display: flex; flex-direction: column; gap: var(--space-md); }
.fit-panel li { padding-left: var(--space-xl); position: relative; }
.fit-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: var(--space-md);
  height: 1px;
  background-color: currentColor;
}

/* O mně: velká úvodní věta, tři sloupce textu, certifikáty */
.about { display: flex; flex-direction: column; gap: var(--space-xxl); }
.about-lead { max-width: 26em; font-size: var(--text-display-md); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.about-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xxl) var(--space-3xl); margin-top: var(--space-lg); padding-top: var(--space-xxl); border-top: 1px solid var(--line); }
.about-cols > div { display: flex; flex-direction: column; gap: var(--space-md); }
.about-cols p { color: var(--muted); }
.certs-block { display: flex; flex-direction: column; gap: var(--space-lg); margin-top: var(--space-lg); }
.certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg) var(--space-3xl); }
.certs li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  min-width: 0;
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--logo-plate);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--logo-plate-text);
  text-align: center;
}
.cert-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  max-width: 100%;
  height: 124px;
}
.cert-badge img { width: auto; max-width: 100%; max-height: 100%; }
.cert-badge-wide img { width: 100%; height: auto; }
.cert-name { min-width: 0; font-size: var(--text-body-lg); line-height: 1.3; font-weight: 600; }

/* Reference: jednobarevná loga v mřížce s tenkými linkami */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background-color: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.logo-cell { position: relative; display: grid; place-items: center; min-height: 148px; padding: var(--space-xl); background-color: var(--bg-tint); }
/* Podklad pod barevným logem: světlý, nebo tmavý u log s bílým textem */
.logo-cell::before { content: ""; position: absolute; inset: 0; background-color: var(--logo-plate); opacity: 0; }
.logo-cell[data-plate="dark"]::before { background-color: #1B1E23; }
.logo-cell img { position: relative; grid-area: 1 / 1; width: auto; max-width: min(190px, 70%); max-height: 48px; }
.logo-cell.logo-mid img { max-height: 64px; }
.logo-cell.logo-tall img { max-height: 84px; }
/* Jednobarevná loga, barva po najetí / klepnutí */
.logo-mono { opacity: 0.88; }
.logo-color { opacity: 0; }
.logo-cell.is-active::before { opacity: 1; }
.logo-cell.is-active .logo-mono { opacity: 0; }
.logo-cell.is-active .logo-color { opacity: 1; }
@media (hover: hover) {
  .logo-cell:hover::before { opacity: 1; }
  .logo-cell:hover .logo-mono { opacity: 0; }
  .logo-cell:hover .logo-color { opacity: 1; }
}

/* Kontakt: nadpis vlevo zůstává při rolování, formulář vpravo */
#kontakt { padding-bottom: var(--section-pad); }
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-huge); align-items: start; }
.contact .section-head { position: sticky; top: calc(var(--header-height) + var(--space-xxl)); margin-bottom: 0; }
.contact-mail a { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Formulář: label nad polem, nápověda a chyba pod polem */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); max-width: 800px; }
.field { display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: var(--text-small); font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-md) 14px;
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field-hint { font-size: var(--text-small); color: var(--muted); }
.field-error { font-size: var(--text-small); color: var(--error); }
.field-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg) var(--space-xl); }
.form-status { font-size: var(--text-small); color: var(--muted); }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="success"] { color: var(--text); font-weight: 500; }

/* Tablet: pod 1024 px */
@media (max-width: 1023.98px) {
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 44em; gap: var(--space-lg); }
  .values { grid-template-columns: minmax(0, 1fr); max-width: 44em; }
  .hero-grid { gap: var(--space-3xl); }
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform { min-height: 136px; }
  .certs { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); max-width: 560px; }
  .certs li { flex-direction: row; align-items: center; gap: var(--space-lg); padding: var(--space-md) var(--space-lg); text-align: left; }
  .cert-badge { flex: none; width: 64px; height: 64px; }
  .cert-badge-wide { width: 200px; max-width: 100%; }
  .cert-name-dup { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-cols { grid-template-columns: minmax(0, 1fr); max-width: 44em; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact .section-head { position: static; margin-bottom: var(--space-3xl); }
}

/* Mobil: pod 768 px, vše do jednoho sloupce, navigace pod tlačítkem Menu */
@media (max-width: 767.98px) {
  .js .menu-toggle { display: inline-flex; }
  .header-inner { column-gap: var(--space-sm); }
  .lang-switch { order: 1; margin-left: auto; }
  .lang-switch a { padding: 0 4px; }
  .menu-toggle { padding: 0 var(--space-md); }
  .menu-toggle { order: 2; }
  .site-nav { order: 3; margin-left: 0; }
  .js .site-nav { display: none; flex-basis: 100%; padding-bottom: var(--space-md); }
  .js .site-nav.is-open { display: block; }
  .site-nav { flex-basis: 100%; padding-bottom: var(--space-md); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { width: 100%; min-height: 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { display: none; }
  .hero-person { display: flex; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .stats li { flex-direction: row; align-items: baseline; gap: var(--space-md); }
  .platforms { gap: var(--space-md); }
  .platform { min-height: 112px; padding: var(--space-lg); }
  .platform-logo { width: 30px; height: 30px; }
  .pitch-result { padding: var(--space-xl); }
  .fit { grid-template-columns: minmax(0, 1fr); }
  .fit-panel { padding: var(--space-xl); }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-cell { min-height: 112px; padding: var(--space-lg); }
  .logo-desktop-only { display: none; }
  .logo-cell img { max-width: min(150px, 78%); max-height: 40px; }
  .logo-cell.logo-mid img { max-height: 52px; }
  .logo-cell.logo-tall img { max-height: 68px; }
  .form { grid-template-columns: minmax(0, 1fr); }
}

/* Pohyb: jen transform a opacity, jen pokud ho uživatel nemá vypnutý */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--reveal-index, 0) * 80ms);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js .strike::after { transform: scaleX(0); transition: transform 500ms cubic-bezier(0.6, 0, 0.2, 1) 500ms; }
  .js .is-visible .strike::after { transform: scaleX(1); }
  .platform { transition: opacity 600ms ease, transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .platform.is-visible:hover { transform: translateY(-6px); transition-delay: 0ms; }
  .logo-cell::before, .logo-cell img { transition: opacity 250ms ease, filter 250ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}
