/* ==========================================================================
   Grey Tempo s.r.o. – hlavní styly
   Struktura:
   1. Písmo (self-hosted Inter)
   2. Design tokeny (barvy, typografie, rozestupy) + tmavý režim
   3. Základ (reset, typografie, přístupnost)
   4. Layout (kontejner, sekce, mřížky)
   5. Komponenty (tlačítka, hlavička, navigace, karty, časová osa, FAQ, formulář, patička)
   6. Stránkově specifické části (hero, výzva k akci, právní text)
   7. Animace a prefers-reduced-motion
   ========================================================================== */

/* 1. Písmo – Inter (variabilní, OFL licence), načítané z vlastní domény ---- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-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;
}

/* 2. Design tokeny ------------------------------------------------------- */
:root {
  /* Firemní paleta */
  --graphite: #16181d;
  --graphite-2: #2a2e35;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f4f5f7;
  --white: #ffffff;
  --blue: #3b5bfd;
  --blue-hover: #2a46e0;
  --lime: #c6f432;
  --lime-hover: #d4ff4f;
  --error: #b42318;

  /* Sémantické barvy (světlý režim) */
  --bg: var(--white);
  --bg-alt: var(--gray-100);
  --surface: var(--white);
  --text: var(--graphite);
  --text-muted: #555c68; /* AA i na #F4F5F7 */
  --border: var(--gray-200);
  --border-strong: #cfd3da;
  --accent: var(--blue);
  --accent-hover: var(--blue-hover);
  --accent-contrast: var(--white);
  --accent-soft: rgba(59, 91, 253, 0.08);
  --focus: var(--blue);
  --header-bg: rgba(255, 255, 255, 0.86);

  /* Tmavé sekce (stejné v obou režimech) */
  --dark-bg: var(--graphite);
  --dark-surface: #1e2127;
  --dark-text: #f4f5f7;
  --dark-muted: #b4bac4;
  --dark-border: #2f343c;

  /* Typografie */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: clamp(2.5rem, 1.55rem + 3.8vw, 4.5rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 1.7vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  /* Rozměry */
  --container: 1200px;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(22, 24, 29, 0.05), 0 1px 3px rgba(22, 24, 29, 0.06);
  --shadow: 0 2px 4px rgba(22, 24, 29, 0.04), 0 12px 32px -8px rgba(22, 24, 29, 0.12);
  --shadow-lg: 0 4px 8px rgba(22, 24, 29, 0.05), 0 24px 48px -12px rgba(22, 24, 29, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;

  color-scheme: light dark;
}

/* Tmavý režim podle nastavení systému – akcent se mění na limetkovou */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --bg-alt: #16181d;
    --surface: #1b1e24;
    --text: #f4f5f7;
    --text-muted: #b0b6c1;
    --border: #2a2e35;
    --border-strong: #3a3f48;
    --accent: var(--lime);
    --accent-hover: var(--lime-hover);
    --accent-contrast: var(--graphite);
    --accent-soft: rgba(198, 244, 50, 0.08);
    --focus: var(--lime);
    --header-bg: rgba(17, 19, 23, 0.85);
    --dark-bg: #0b0c0f;
    --dark-surface: #16181d;
    --error: #ff8a80;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  }
}

/* 3. Základ ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

strong { font-weight: 650; }

/* Viditelný focus pro klávesnici */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* Odkaz „Přeskočit na obsah“ */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--graphite);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* 4. Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
  max-width: none;
  display: grid;
  gap: 1.5rem;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .section-head--split p { margin-bottom: 0.4em; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 14px; height: 12px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 100% / 3px 7px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 5.5px 100% / 3px 12px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 11px 100% / 3px 9px no-repeat;
}

.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-muted); }
.muted { color: var(--text-muted); }

.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem); }
@media (min-width: 680px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 680px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* 5. Komponenty ----------------------------------------------------------- */

/* Tlačítka */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-contrast);
  --btn-border: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-border);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s var(--ease);
}
.btn:hover {
  color: var(--btn-fg);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px var(--accent);
}
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
}
.btn--secondary:hover {
  background: var(--surface);
  border-color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn--lg { min-height: 56px; padding: 0.95rem 1.75rem; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: 0.5rem 1.1rem; font-size: 0.9375rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; align-items: center; }

/* Textový odkaz se šipkou */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Hlavička ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -18px rgba(22, 24, 29, 0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height 0.3s var(--ease);
}
.site-header.is-scrolled .header-inner { height: 62px; }

.logo { display: inline-flex; flex: none; border-radius: 6px; }
.logo img { width: 150px; height: auto; transition: width 0.3s var(--ease); }
.site-header.is-scrolled .logo img { width: 136px; }

/* Navigace */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 20px; height: 14px; }
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  font-size: 0.975rem;
  font-weight: 550;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--bg-alt); }
.nav-link[aria-current="page"],
.nav-item--current .nav-sub-wrap > .nav-link { color: var(--accent); }

.nav-sub-wrap { display: inline-flex; align-items: center; }
.nav-sub-wrap .nav-link { padding-right: 0.2rem; }
.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.submenu-toggle:hover { background: var(--bg-alt); }
.submenu-toggle svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: -0.5rem;
  min-width: 330px;
  padding: 0.5rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
/* Neviditelný „můstek“, aby podmenu nezmizelo při přejezdu myší */
.submenu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-item.is-open > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (hover: hover) and (min-width: 1024px) {
  .nav-item--has-sub:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
}
.submenu a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.8rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.3;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}
.submenu a:hover { background: var(--bg-alt); color: var(--text); }
.submenu a[aria-current="page"] { color: var(--accent); }
.submenu .icon-badge { width: 36px; height: 36px; border-radius: 10px; }
.submenu .icon-badge svg { width: 18px; height: 18px; }
.submenu-all { border-top: 1px solid var(--border); margin-top: 0.35rem; padding-top: 0.35rem; }
.submenu-all a { color: var(--text-muted); font-size: 0.9rem; }

.nav-cta { margin-left: 0.75rem; }

/* Mobilní menu */
@media (max-width: 1023.98px) {
  /* backdrop-filter by vytvořil kontejner pro position:fixed – při otevřeném menu ho vypneme */
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: var(--nav-top, var(--header-h)) 0 0 0;
    z-index: 99;
    padding: 1rem var(--gutter) 2rem;
    overflow-y: auto;
    background: var(--bg);
    border-top: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-link { width: 100%; padding: 1rem 0.25rem; font-size: 1.125rem; border-radius: 0; }
  .nav-link:hover { background: transparent; }
  .nav-sub-wrap { display: flex; justify-content: space-between; }
  .nav-sub-wrap .nav-link { flex: 1; }
  .submenu-toggle { width: 44px; height: 44px; border: 1px solid var(--border); }
  .submenu {
    position: static;
    min-width: 0;
    display: none;
    padding: 0 0 0.75rem;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .submenu::before { display: none; }
  .nav-item.is-open > .submenu { display: block; }
  .nav-item--cta { border-bottom: 0; padding-top: 1.5rem; }
  .nav-cta { margin-left: 0; width: 100%; }
}
@media (min-width: 1024px) {
  .nav-item--cta .btn { min-height: 42px; padding: 0.55rem 1.2rem; font-size: 0.95rem; }
}

/* Ikona služby v „odznaku“ */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px; height: 52px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 14px;
  transition: background-color 0.25s, color 0.25s, transform 0.3s var(--ease);
}
.icon-badge svg { width: 24px; height: 24px; }

/* Karty */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.card h3 { margin-top: 1.5rem; }
.card p { color: var(--text-muted); }
.card .link-arrow { margin-top: auto; padding-top: 0.5rem; }
.card--link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.card--link:hover .icon-badge { background: var(--accent); color: var(--accent-contrast); }
/* Celá karta klikací, odkaz zůstává jediný focusovatelný prvek */
.card--link .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card--link .stretched:focus-visible { outline: none; }

.card-index {
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Principy („Proč Grey Tempo“) */
.principles { list-style: none; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principle { padding: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); background: var(--surface); transition: background-color 0.3s; }
.principle:hover { background: color-mix(in srgb, var(--accent) 3%, var(--surface)); }
.principle-num {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.principle h3 { margin-bottom: 0.6rem; }
.principle p { margin: 0; color: var(--text-muted); }

/* Časová osa – 5 kroků */
.timeline { list-style: none; position: relative; display: grid; gap: 0; counter-reset: step; }
.timeline-step { position: relative; padding: 0 0 2.25rem 4.25rem; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  /* svislá linka (mobil) */
  content: "";
  position: absolute;
  left: 1.375rem; top: 3rem; bottom: 0.25rem;
  width: 2px;
  background: linear-gradient(var(--border-strong), var(--border));
}
.timeline-step:last-child::before { display: none; }
.timeline-dot {
  position: absolute;
  left: 0; top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.timeline-step:hover .timeline-dot { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); transform: scale(1.06); }
.timeline-step h3 { font-size: 1.1875rem; margin: 0.45rem 0 0.4rem; }
.timeline-step p { margin: 0; color: var(--text-muted); font-size: var(--fs-small); }
@media (min-width: 1000px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .timeline-step { padding: 4.25rem 0 0; }
  .timeline-step::before { left: 3.25rem; right: -1.5rem; top: 1.375rem; bottom: auto; width: auto; height: 2px; background: var(--border-strong); }
}

/* Detailní kroky (stránka Jak pracujeme) */
.steps { list-style: none; display: grid; gap: 1.25rem; }
.step-card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, box-shadow 0.3s var(--ease);
}
.step-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
@media (min-width: 820px) { .step-card { grid-template-columns: 5.5rem 1fr 0.9fr; align-items: start; gap: 2.5rem; } }
.step-num {
  font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.step-card h2 { font-size: var(--fs-h3); margin-bottom: 0.6rem; letter-spacing: -0.02em; line-height: 1.25; }
.step-card p { margin: 0; color: var(--text-muted); }
.step-out {
  padding: 1.1rem 1.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: var(--fs-small);
}
.step-out strong { display: block; margin-bottom: 0.25rem; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.step-out p { color: var(--text); }

/* Seznamy s ikonou zaškrtnutí */
.check-list { list-style: none; display: grid; gap: 0.9rem; }
.check-list li { position: relative; padding-left: 2.1rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em;
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B5BFD' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
@media (prefers-color-scheme: dark) {
  .check-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6F432' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
}
.check-list--2 { gap: 0.9rem 2.5rem; }
@media (min-width: 760px) { .check-list--2 { grid-template-columns: repeat(2, 1fr); } }

.dash-list { list-style: none; display: grid; gap: 0.6rem; }
.dash-list li { position: relative; padding-left: 1.4rem; color: var(--text-muted); }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 0.7rem; height: 2px; background: var(--accent); }

/* Bloky obsahu na podstránkách služeb */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); }
@media (min-width: 960px) { .split { grid-template-columns: 0.8fr 1.2fr; } .split--even { grid-template-columns: 1fr 1fr; } }
.split-sticky { align-self: start; }
@media (min-width: 960px) { .split-sticky { position: sticky; top: calc(var(--header-h) + 2rem); } }

.panel {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.panel h3 { margin-bottom: 1.25rem; }
.panel--accent { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); background: linear-gradient(180deg, var(--accent-soft), transparent 60%), var(--surface); }

.deliverables { list-style: none; display: grid; gap: 1rem; counter-reset: deliv; }
@media (min-width: 680px) { .deliverables { grid-template-columns: repeat(2, 1fr); } }
.deliverables li {
  counter-increment: deliv;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 550;
  line-height: 1.45;
}
.deliverables li::before {
  content: counter(deliv, decimal-leading-zero);
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
}

/* Formy spolupráce */
.coop { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .coop { grid-template-columns: 1fr 1fr; } }
.coop-card { padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.coop-card h3 { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.coop-card h3 .icon-badge { width: 40px; height: 40px; border-radius: 11px; }
.coop-card h3 .icon-badge svg { width: 20px; height: 20px; }
.coop-card p { margin: 0; color: var(--text-muted); }
.note { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--text-muted); }

/* FAQ akordeon (nativní <details>, funguje bez JS) */
.faq { display: grid; gap: 0.75rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  transition: background-color 0.25s, transform 0.3s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--accent); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--accent-contrast); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer { padding: 0 1.4rem 1.3rem; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* Tmavé sekce (CTA, patička) – akcent vždy limetkový */
.dark {
  --text: var(--dark-text);
  --text-muted: var(--dark-muted);
  --border: var(--dark-border);
  --border-strong: #454b55;
  --surface: var(--dark-surface);
  --bg-alt: var(--dark-surface);
  --accent: var(--lime);
  --accent-hover: var(--lime-hover);
  --accent-contrast: var(--graphite);
  --accent-soft: rgba(198, 244, 50, 0.1);
  --focus: var(--lime);
  color: var(--text);
  background: var(--dark-bg);
}

/* Formulář ---------------------------------------------------------------- */
.form-wrap {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1.35rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.field label, .field .label {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.req { color: var(--error); font-weight: 700; }
.optional { font-weight: 450; color: var(--text-muted); }
.field-hint { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #6b7280; opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--gray-500); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  cursor: pointer;
}

/* Chybový stav: barva + ikona + text + silnější rámeček (nezávislé na barvě) */
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: var(--error);
  border-width: 2px;
  border-style: dashed;
  background-color: color-mix(in srgb, var(--error) 5%, var(--bg));
}
.field-error {
  display: none;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--error);
}
.field-error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.15rem; height: 1.15rem;
  margin-top: 0.05rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--white);
  background: var(--error);
  border-radius: 50%;
}
@media (prefers-color-scheme: dark) { .field-error::before { color: var(--graphite); } }
.field.has-error .field-error { display: flex; }

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  font-size: 0.95rem;
  font-weight: 450;
  line-height: 1.5;
}
.checkbox input {
  width: 22px; height: 22px;
  margin: 0.1rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.field.has-error .checkbox input { outline: 2px dashed var(--error); outline-offset: 2px; }

.form-summary {
  display: none;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  color: var(--text);
  background: color-mix(in srgb, var(--error) 7%, var(--surface));
  border: 2px solid var(--error);
  border-left-width: 6px;
  border-radius: 12px;
}
.form-summary.is-visible { display: block; }
.form-summary strong { display: block; margin-bottom: 0.35rem; }
.form-summary ul { padding-left: 1.2rem; font-size: 0.95rem; }
.form-summary a { color: inherit; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.5rem; }
.form-footer p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }

/* Honeypot – skryté pole proti spamu */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Firemní údaje */
.company { font-style: normal; line-height: 1.7; }
.company dl { display: grid; gap: 0.9rem; margin: 0; }
.company dt { font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.company dd { margin: 0.1rem 0 0; }
.company-name { margin-bottom: 1rem; font-size: 1.125rem; font-weight: 700; }
.company p { margin: 0 0 0.7rem; }
.company p:last-child { margin-bottom: 0; }
.company .k { font-weight: 650; }

.contact-aside { display: grid; gap: 1.25rem; align-content: start; }
.map-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; }
.map-link svg { width: 18px; height: 18px; }

/* Patička ------------------------------------------------------------------ */
.site-footer { padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); font-size: var(--fs-small); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr 0.7fr 1fr 1.4fr; gap: 3rem; } }
.footer-brand img { width: 150px; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 34ch; color: var(--text-muted); }
.footer-title { margin-bottom: 1rem; font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.footer-links { list-style: none; display: grid; gap: 0.6rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .company dd { color: var(--text); }
.site-footer .company dl { gap: 0.7rem; }
.site-footer .company-name { font-size: 1rem; margin-bottom: 0.75rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.footer-bottom p { margin: 0; }

/* 6. Stránkově specifické části ------------------------------------------- */

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem) clamp(4rem, 2.5rem + 6vw, 8rem);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-bg::before {
  /* jemná mřížka */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  opacity: 0.8;
}
.hero-bg::after {
  /* barevný gradient */
  content: "";
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 820px; max-height: 820px;
  top: -22%; right: -12%;
  background:
    radial-gradient(circle at 35% 40%, rgba(59, 91, 253, 0.2), transparent 58%),
    radial-gradient(circle at 70% 70%, rgba(198, 244, 50, 0.22), transparent 55%);
  filter: blur(20px);
}
.hero-grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 4rem); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.25fr 0.75fr; } }
.hero h1 { max-width: 13ch; margin-bottom: 1.5rem; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { max-width: 58ch; margin-bottom: 2.25rem; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  list-style: none;
}
.hero-tags li {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Abstraktní vizuál „tempo“ v hero */
.tempo-visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  aspect-ratio: 1 / 1.02;
  padding: 2rem;
  background: var(--graphite);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.tempo-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.tempo-visual::after {
  content: "";
  position: absolute;
  width: 70%; height: 70%;
  top: -20%; right: -20%;
  background: radial-gradient(circle, rgba(59, 91, 253, 0.55), transparent 65%);
}
.tempo-visual svg { position: relative; z-index: 1; width: 100%; height: 100%; }
.tempo-bar { transform-box: fill-box; transform-origin: 50% 100%; }
@media (max-width: 1023.98px) { .tempo-visual { max-width: 380px; } }
@media (max-width: 520px) { .tempo-visual { display: none; } }

/* Úvod podstránek */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}
.page-hero .hero-bg::before { -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 15%, transparent 70%); }
.page-hero .hero-bg::after { top: -55%; right: -18%; opacity: 0.8; }
.page-hero h1 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 4rem); max-width: 18ch; margin-bottom: 1.25rem; }
.page-hero .lead { max-width: 64ch; margin-bottom: 0; }
.page-hero .btn-row { margin-top: 2rem; }
.page-hero-icon { margin-bottom: 1.5rem; }
.page-hero-icon .icon-badge { width: 60px; height: 60px; border-radius: 16px; }
.page-hero-icon .icon-badge svg { width: 28px; height: 28px; }

/* Drobečková navigace */
.breadcrumbs { margin-bottom: 1.75rem; font-size: 0.875rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; color: var(--text-muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.4rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 550; }

/* Výzva k akci (tmavý blok) */
.cta-block {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);
  border-radius: clamp(20px, 1rem + 1vw, 32px);
  isolation: isolate;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(105deg, transparent 30%, #000);
  mask-image: linear-gradient(105deg, transparent 30%, #000);
}
.cta-block::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 620px; height: 620px;
  right: -180px; bottom: -320px;
  background: radial-gradient(circle, rgba(59, 91, 253, 0.5), transparent 65%);
}
.cta-inner { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr auto; gap: 4rem; } }
.cta-block h2 { max-width: 18ch; margin-bottom: 0.9rem; }
.cta-block p { max-width: 54ch; margin: 0; color: var(--text-muted); font-size: var(--fs-lead); }
.cta-actions { display: grid; gap: 1rem; justify-items: start; }
@media (min-width: 900px) { .cta-actions { justify-items: end; } }
.cta-actions .email-link { color: var(--text-muted); font-size: var(--fs-small); }
.cta-actions .email-link a { color: var(--text); }

/* Další služby (karty na konci podstránek) */
.mini-cards { display: grid; gap: 1rem; }
@media (min-width: 760px) { .mini-cards { grid-template-columns: repeat(3, 1fr); } }
.mini-card { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.mini-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow); }
.mini-card a { color: var(--text); font-weight: 600; text-decoration: none; line-height: 1.35; }
.mini-card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mini-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.mini-card a:focus-visible { outline: none; }
.mini-card .icon-badge { width: 44px; height: 44px; border-radius: 12px; }
.mini-card .icon-badge svg { width: 20px; height: 20px; }

/* Přehled služeb – velké karty */
.service-rows { display: grid; gap: 1.5rem; }
.service-row {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.service-row:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow-lg); }
@media (min-width: 960px) { .service-row { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.service-row h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); margin: 1.25rem 0 0.75rem; }
.service-row p { color: var(--text-muted); }
.service-row .output { margin-top: 1.5rem; padding: 1rem 1.2rem; font-size: var(--fs-small); background: var(--bg-alt); border-radius: var(--radius); }
.service-row .output strong { color: var(--text); }
.service-row h3 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1rem; }

/* Propojení služeb (cyklus) */
.loop { list-style: none; display: grid; gap: 1rem; counter-reset: loop; }
@media (min-width: 760px) { .loop { grid-template-columns: repeat(4, 1fr); } }
.loop li { position: relative; padding: 1.5rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.loop li strong { display: block; margin-bottom: 0.35rem; font-size: 1.0625rem; }
.loop li span { color: var(--text-muted); font-size: var(--fs-small); }

/* Hodnoty (O nás) */
.values { list-style: none; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(2, 1fr); } }
.value { padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value h3 { margin: 1.25rem 0 0.5rem; }
.value p { margin: 0; color: var(--text-muted); }

.prose { max-width: 70ch; }
.prose p { font-size: 1.125rem; }
.prose p.lead { font-size: var(--fs-lead); }

/* Právní text (zásady) */
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); margin: 2.75rem 0 0.9rem; padding-top: 2.25rem; border-top: 1px solid var(--border); }
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal ul { padding-left: 1.25rem; margin-bottom: 1em; display: grid; gap: 0.45rem; }
.legal .meta { padding: 1.25rem 1.5rem; background: var(--bg-alt); border-radius: var(--radius); margin-bottom: 2.5rem; }
.legal .meta p { margin: 0; }
.legal-toc { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: var(--fs-small); }
.legal-toc ol { padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.legal-toc a { color: var(--text-muted); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); text-decoration: underline; }
.legal-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 1fr 260px; gap: 4rem; } .legal-toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }

/* Děkovná a 404 stránka */
.status-page { padding-block: clamp(4rem, 3rem + 8vw, 10rem); text-align: center; }
.status-page h1 { margin-inline: auto; max-width: 16ch; font-size: clamp(2.25rem, 1.6rem + 2.8vw, 4rem); }
.status-page .lead { margin-inline: auto; max-width: 54ch; }
.status-page .btn-row { justify-content: center; margin-top: 2.25rem; }
.status-icon { display: inline-flex; margin-bottom: 2rem; }
.status-icon .icon-badge { width: 76px; height: 76px; border-radius: 22px; }
.status-icon .icon-badge svg { width: 36px; height: 36px; }
.status-code { display: block; margin-bottom: 1rem; font-size: clamp(4.5rem, 3rem + 7vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -0.06em; color: var(--accent); }

/* 7. Animace ------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--delay, 0s);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  .tempo-bar { animation: tempo 3.6s var(--ease) infinite alternate; }
  .tempo-bar:nth-child(2) { animation-delay: -0.6s; }
  .tempo-bar:nth-child(3) { animation-delay: -1.2s; }
  .tempo-bar:nth-child(4) { animation-delay: -1.8s; }
  .tempo-bar:nth-child(5) { animation-delay: -2.4s; }
  .tempo-bar:nth-child(6) { animation-delay: -3s; }
  .tempo-line { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 2.2s 0.3s var(--ease) forwards; }
}
@keyframes tempo { from { transform: scaleY(0.72); } to { transform: scaleY(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Tisk */
@media print {
  .site-header, .site-footer, .cta-block, .hero-bg, .tempo-visual { display: none !important; }
  body { color: #000; background: #fff; }
}

/* Kontakt – rozvržení formuláře a firemních údajů */
.contact-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: 1.55fr 1fr; gap: 3rem; align-items: start; }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.status-page { position: relative; overflow: hidden; isolation: isolate; }
main:focus { outline: none; }
