/* ==========================================================================
   COMPLEXA — design systém veřejného webu
   --------------------------------------------------------------------------
   Vizuální identita: brand manuál COMPLEXA (2501-00030) — žlutá #FEDC00,
   černá #0A0B09, šedá #555960; motiv dvojitého lomítka „//“ a přerušeného
   kruhu; zaoblená geometrická písma.

   Barvy NEJSOU v tomto souboru natvrdo: přicházejí z /theme.css (Nastavení →
   Vzhled webu). Hodnoty níže jsou jen záloha, kdyby theme.css chyběl.
   Logo se tématem nemění (viz templates/partials/logo.php).

   Struktura: 1. písma a tokeny  2. základ  3. layout  4. komponenty
              5. sekce  6. formuláře  7. utility  8. tisk
   Bez inline stylů — CSP webu je nepovoluje.
   ========================================================================== */

/* 1. PÍSMA A TOKENY ---------------------------------------------------------
   Brand písma All Round Gothic (nadpisy) a Sofia Pro (text) jsou komerční.
   Do zakoupení webových licencí se používají volné náhrady stejného charakteru:
   Quicksand (zaoblený geometrický) a Outfit (geometrický). Po zakoupení stačí
   přidat @font-face pro brand písma — mají v zásobníku přednost. */

@font-face { font-family: "Quicksand"; src: url("../fonts/quicksand-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 300 700; font-display: swap;
  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: "Quicksand"; src: url("../fonts/quicksand-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 300 700; font-display: swap;
  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: "Outfit"; src: url("../fonts/outfit-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap;
  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: "Outfit"; src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap;
  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 {
  /* Záložní hodnoty tématu „COMPLEXA — černá a žlutá“ (přepisuje /theme.css) */
  --c-accent: #FEDC00; --c-accent-hover: #EBCB01; --c-on-accent: #0A0B09; --c-accent-soft: #FFF8CC; --c-accent-line: #FEEC8C;
  --c-ink: #0A0B09; --c-ink-2: #52534F; --c-ink-3: #7F807C;
  --c-paper: #F5F4EF; --c-surface: #FFFFFF; --c-line: #E1E0DB; --c-line-strong: #C8C7C2;
  --c-bold: #0A0B09; --c-bold-2: #1B1C1A; --c-on-bold: #FFFFFF; --c-on-bold-2: #C2C2C1; --c-on-bold-3: #919290; --c-bold-line: #2E2F2D;
  --c-bold-accent: #FEDC00; --c-bold-btn: #FEDC00; --c-on-bold-btn: #0A0B09;

  /* Technologie — rozlišení v čipech, mapách a grafech (mimo brand paletu, tlumené) */
  --tech-vte: #2F6FD0;  --tech-vte-soft: #E5EEFA;
  --tech-fve: #D9730D;  --tech-fve-soft: #FCEEDF;
  --tech-pve: #0B8C96;  --tech-pve-soft: #DFF3F4;
  --tech-bess: #6B4FD8; --tech-bess-soft: #ECE8FB;

  --ok: #1E8449; --warn: #A36A00; --danger: #C0392B;

  --font-head: "All Round Gothic", "Quicksand", ui-rounded, system-ui, sans-serif;
  --font-body: "Sofia Pro", "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .875rem);
  --step-0:  clamp(1rem, .97rem + .15vw, 1.075rem);
  --step-1:  clamp(1.18rem, 1.1rem + .4vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.25rem + .9vw, 2rem);
  --step-3:  clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem);
  --step-4:  clamp(2.5rem, 1.8rem + 3.4vw, 4.6rem);

  --radius-s: 10px; --radius: 16px; --radius-l: 26px; --radius-xl: clamp(36px, 6vw, 120px);
  --shadow: 0 18px 40px -18px rgb(10 11 9 / .28);
  --container: 1260px;
  --gutter: clamp(1rem, 3.5vw, 2rem);
  --section: clamp(3.5rem, 7vw, 6.5rem);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Zpětně kompatibilní názvy (administrace) */
  --brand-ink: var(--c-ink); --brand-ink-2: var(--c-ink-2); --brand: var(--c-ink); --brand-strong: #000;
  --brand-soft: var(--c-accent-soft); --accent: var(--c-accent);
  --paper: var(--c-paper); --surface: var(--c-surface); --line: var(--c-line); --line-strong: var(--c-line-strong);
  --text: var(--c-ink); --text-2: var(--c-ink-2); --text-3: var(--c-ink-3);
}

/* 2. ZÁKLAD ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--c-paper); color: var(--c-ink); font: 400 var(--step-0)/1.65 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: .16em; text-underline-offset: .22em; transition: text-decoration-color .15s, background-color .15s; }
a:hover { color: var(--c-ink); text-decoration-color: var(--c-ink); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .55em; color: var(--c-ink); font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.005em; }
h4 { font-size: var(--step-0); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.5rem 0; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px var(--c-accent); }
::selection { background: var(--c-accent); color: var(--c-on-accent); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--c-accent); color: var(--c-on-accent); padding: .7rem 1rem; border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. LAYOUT ------------------------------------------------------------------ */

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--white { background: var(--c-surface); }
.section--dark { background: var(--c-bold); color: var(--c-on-bold-2); position: relative; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: var(--c-on-bold); }
.section--dark a:not(.btn):not(.audience) { color: var(--c-on-bold); text-decoration-color: var(--c-bold-accent); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); flex-wrap: wrap; }
.section__head > div { max-width: 760px; }
.section__head p { color: var(--c-ink-2); font-size: var(--step-1); margin: 0; line-height: 1.5; }
.section--dark .section__head p { color: var(--c-on-bold-2); }

/* Štítek nad nadpisem — žlutá „pilulka“ s dvojitým lomítkem (motiv z manuálu) */
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .85rem .38rem .7rem; margin-bottom: 1.1rem; border-radius: 999px;
  background: var(--c-accent); color: var(--c-on-accent); font: 600 var(--step--1)/1 var(--font-head); letter-spacing: .02em; }
.eyebrow::before { content: "//"; font-weight: 700; letter-spacing: -.12em; margin-right: .1rem; }
.section--dark .eyebrow, .hero .eyebrow, .page-head .eyebrow, .project-hero .eyebrow { background: var(--c-bold-btn); color: var(--c-on-bold-btn); }

.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1.1fr .9fr; }
  .split--aside { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* Grafický prvek: přerušený kruh + dvojité lomítko (barvy z tématu) */
.brand-graphic { position: absolute; pointer-events: none; z-index: 0; }
.brand-graphic .g-ring { fill: var(--c-on-bold); opacity: .09; }
.brand-graphic .g-slash { fill: var(--c-bold-accent); }

/* 4. KOMPONENTY -------------------------------------------------------------- */

/* Hlavička */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center;
  background: rgb(255 255 255 / .94); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.is-scrolled { border-bottom-color: var(--c-line); }
.site-header--overlay { position: fixed; inset: 0 0 auto; background: transparent; backdrop-filter: none; }
.site-header--overlay .nav__link, .site-header--overlay .nav-toggle { color: var(--c-on-bold); }
.site-header--overlay.is-scrolled { background: var(--c-bold); border-bottom-color: var(--c-bold-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand .logo { height: 34px; width: auto; }
.logo-swap .logo--bold { display: none; }
.site-header--overlay:not(.is-scrolled) .logo-swap .logo--light, .site-header--overlay.is-scrolled .logo-swap .logo--light { display: none; }
.site-header--overlay .logo-swap .logo--bold { display: block; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: .3rem; padding: .6rem .8rem; border-radius: 999px; color: var(--c-ink); text-decoration: none;
  font: 600 .96rem/1 var(--font-head); background: none; border: 0; cursor: pointer; transition: background .15s; }
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--c-accent-soft); color: var(--c-ink); }
.site-header--overlay .nav__link:hover, .site-header--overlay .nav__link[aria-expanded="true"] { background: rgb(255 255 255 / .1); color: var(--c-on-bold); }
.nav__link.is-active { background: var(--c-accent); color: var(--c-on-accent); }
.site-header--overlay .nav__link.is-active { background: var(--c-bold-btn); color: var(--c-on-bold-btn); }
.nav__link .icon { width: 1rem; height: 1rem; transition: transform .2s; }
.nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__item { position: relative; }
.nav__dropdown { position: absolute; top: calc(100% + 12px); left: -.5rem; min-width: 340px; padding: .5rem; list-style: none; margin: 0;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s var(--ease), visibility .15s; }
.nav__dropdown.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown a { display: flex; gap: .85rem; align-items: center; padding: .65rem .75rem; border-radius: var(--radius-s); text-decoration: none; color: var(--c-ink); }
.nav__dropdown a:hover { background: var(--c-paper); }
.nav__dropdown strong { display: block; font: 700 .97rem/1.3 var(--font-head); }
.nav__dropdown small { display: block; color: var(--c-ink-3); font-size: .84rem; line-height: 1.4; margin-top: .1rem; }
.nav__dropdown .tech-tile__icon, .nav__dropdown .audience__icon { width: 42px; height: 42px; flex: none; }
.nav__dropdown .tech-tile__icon .icon, .nav__dropdown .audience__icon .icon { width: 22px; height: 22px; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; background: none; color: var(--c-ink); border-radius: 999px; cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }
.site-header .header-cta { display: none; }
@media (min-width: 640px) { .site-header .header-cta { display: inline-flex; } }
@media (min-width: 1200px) { .nav { display: block; } .nav-toggle { display: none; } }

/* Mobilní menu */
.mobile-nav { position: fixed; inset: 0; z-index: 60; background: var(--c-bold); color: var(--c-on-bold); padding: 1rem var(--gutter) 2rem; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s var(--ease); visibility: hidden; }
.mobile-nav.is-open { transform: none; visibility: visible; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; height: calc(var(--header-h) - 1rem); margin-bottom: 1rem; }
.mobile-nav .nav-toggle { color: var(--c-on-bold); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav__group { border-top: 1px solid var(--c-bold-line); padding: 1rem 0; }
.mobile-nav__group > span { display: block; font: 700 .75rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--c-on-bold-3); margin-bottom: .5rem; }
.mobile-nav a { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; color: var(--c-on-bold); text-decoration: none; font: 700 1.2rem/1.3 var(--font-head); }
.mobile-nav a .icon { color: var(--c-bold-accent); }
body.has-menu-open { overflow: hidden; }

/* Tlačítka — zaoblené pilulky jako v manuálu */
.btn { --btn-bg: var(--c-accent); --btn-fg: var(--c-on-accent); --btn-bd: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .8rem 1.45rem;
  border-radius: 999px; border: 2px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font: 700 1rem/1.1 var(--font-head); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease), box-shadow .15s; }
.btn:hover { --btn-bg: var(--c-accent-hover); color: var(--btn-fg); box-shadow: 0 8px 20px -10px rgb(10 11 9 / .45); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.1rem; height: 1.1rem; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--accent { --btn-bg: var(--c-bold-btn); --btn-fg: var(--c-on-bold-btn); }
.btn--accent:hover { --btn-bg: var(--c-bold-btn); filter: brightness(.95); }
.btn--dark { --btn-bg: var(--c-ink); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: #000; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: var(--c-ink); }
.btn--ghost:hover { --btn-bg: var(--c-ink); --btn-fg: #fff; }
.btn--light { --btn-bg: transparent; --btn-fg: var(--c-on-bold); --btn-bd: var(--c-on-bold-3); }
.btn--light:hover { --btn-bg: var(--c-on-bold); --btn-fg: var(--c-bold); --btn-bd: var(--c-on-bold); }
.btn--small { min-height: 40px; padding: .5rem 1.05rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font: 700 .98rem/1.2 var(--font-head); color: var(--c-ink); text-decoration: none; padding-bottom: 2px; border-bottom: 3px solid var(--c-accent); }
.link-arrow .icon { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Čipy technologií */
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .7rem .32rem .55rem; border-radius: 999px;
  font: 700 .78rem/1 var(--font-head); background: var(--c-paper); color: var(--c-ink-2); text-decoration: none; }
.chip .icon { width: .95rem; height: .95rem; }
.chip--VTE  { background: var(--tech-vte-soft);  color: var(--tech-vte); }
.chip--FVE  { background: var(--tech-fve-soft);  color: #A85607; }
.chip--PVE  { background: var(--tech-pve-soft);  color: #08707A; }
.chip--BESS { background: var(--tech-bess-soft); color: var(--tech-bess); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Filtrovací lišta */
.filter-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; padding: .6rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 999px; margin-bottom: 2rem; }
@media (max-width: 720px) { .filter-bar { border-radius: var(--radius); } }
.segmented { display: flex; flex-wrap: wrap; gap: .25rem; }
.segmented a { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1rem; border-radius: 999px; text-decoration: none; color: var(--c-ink-2); font: 700 .92rem/1 var(--font-head); }
.segmented a .icon { width: 1rem; height: 1rem; }
.segmented a:hover { background: var(--c-paper); color: var(--c-ink); }
.segmented a.is-active { background: var(--c-ink); color: #fff; }
.filter-bar__fields { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-bar select, .filter-bar input[type="search"] { min-height: 42px; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--c-line-strong); background: var(--c-surface); font: inherit; font-size: .92rem; color: var(--c-ink); }

/* Karty */
.card { position: relative; display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-l); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .25s var(--ease); }
.card:hover { border-color: var(--c-ink); box-shadow: var(--shadow); }
.card--link:hover { transform: translateY(-3px); }
.card__body { padding: clamp(1.25rem, 2.5vw, 1.75rem); display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.card__body > :last-child { margin-bottom: 0; }
.card__title { font-size: var(--step-1); margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--c-ink-2); margin: 0; }
.card__foot { margin-top: auto; padding-top: .5rem; }

/* Karta projektu */
.project-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--c-bold); overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__media .chips { position: absolute; left: 1rem; top: 1rem; z-index: 1; }
.project-card__media .chip { background: rgb(255 255 255 / .95); }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; position: relative; background: var(--c-bold); color: var(--c-bold-accent); }
.placeholder::before { content: "//"; position: absolute; right: -.05em; bottom: -.32em; font: 700 11rem/1 var(--font-head); letter-spacing: -.12em; color: var(--c-on-bold); opacity: .06; }
.placeholder .icon { width: 58px; height: 58px; position: relative; }
.project-card__region { display: flex; align-items: center; gap: .35rem; color: var(--c-ink-3); font-size: .9rem; }
.project-card__region .icon { width: 1rem; height: 1rem; }

/* Klíčová čísla na kartě */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: .75rem 1.25rem; margin: .25rem 0; padding: .9rem 0; border-block: 1px solid var(--c-line); }
.fact__value { display: block; font: 700 1.12rem/1.15 var(--font-head); color: var(--c-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fact__label { display: block; font-size: .8rem; color: var(--c-ink-3); margin-top: .25rem; }

/* Fáze projektu */
.phase { display: grid; gap: .45rem; }
.phase__label { display: flex; justify-content: space-between; gap: 1rem; font-size: .86rem; color: var(--c-ink-2); }
.phase__label strong { color: var(--c-ink); font-family: var(--font-head); }
.phase__track { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.phase__seg { height: 7px; border-radius: 4px; background: var(--c-line); }
.phase__seg.is-done { background: var(--c-ink); }
.phase__seg.is-current { background: var(--c-accent); }

/* Statistiky */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1px; background: var(--c-bold-line); border-radius: var(--radius-l); overflow: hidden; position: relative; z-index: 1; }
.stat { background: var(--c-bold-2); padding: clamp(1.25rem, 3vw, 2rem); }
.stat__value { display: block; font: 700 var(--step-3)/1 var(--font-head); color: var(--c-on-bold); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: .45em; color: var(--c-bold-accent); margin-left: .15em; letter-spacing: 0; }
.stat__label { display: block; margin-top: .6rem; color: var(--c-on-bold); font-weight: 600; }
.stat__note { display: block; margin-top: .25rem; color: var(--c-on-bold-3); font-size: .86rem; line-height: 1.4; }
.data-stamp { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; font-size: .82rem; color: var(--c-on-bold-3); position: relative; }
.data-stamp .icon { width: .95rem; height: .95rem; color: var(--c-bold-accent); }
.data-stamp--light { color: var(--c-ink-3); }
.data-stamp--light .icon { color: var(--c-ink); }

/* Kroky procesu */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.step { counter-increment: step; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-l); padding: clamp(1.5rem, 3vw, 2rem); position: relative; }
.step::before { content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center; min-width: 52px; height: 36px; padding: 0 .7rem; margin-bottom: 1.25rem; border-radius: 999px;
  background: var(--c-accent); color: var(--c-on-accent); font: 700 1rem/1 var(--font-head); }
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--c-ink-2); margin: 0; }

/* Dlaždice technologií */
.tech-tile { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 3vw, 2rem); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-l);
  text-decoration: none; color: var(--c-ink); overflow: hidden; transition: border-color .2s, transform .25s var(--ease), box-shadow .2s; }
a.tech-tile:hover { border-color: var(--c-ink); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--c-ink); }
.tech-tile__icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); color: var(--c-on-accent); }
.tech-tile__icon .icon { width: 30px; height: 30px; }
.tech-tile h3 { margin: 0; }
.tech-tile p { color: var(--c-ink-2); margin: 0; font-size: .97rem; }
.tech-tile__meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--c-line); font: 700 .9rem/1.2 var(--font-head); color: var(--c-ink); }
.tech-tile__meta .icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--c-ink); color: #fff; transition: transform .2s var(--ease), background .2s; }
a.tech-tile:hover .tech-tile__meta .icon { transform: translateX(3px); background: var(--c-accent); color: var(--c-on-accent); }

/* Cesty podle publika */
.audience { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; border-radius: var(--radius-l); background: var(--c-surface); border: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink); transition: border-color .2s, transform .25s var(--ease); }
a.audience:hover { border-color: var(--c-ink); color: var(--c-ink); transform: translateY(-2px); }
.audience__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); color: var(--c-on-accent); }
.audience__icon .icon { width: 24px; height: 24px; }
.audience h3 { font-size: 1.12rem; margin: .1rem 0 .35rem; }
.audience p { margin: 0; color: var(--c-ink-2); font-size: .95rem; line-height: 1.5; }
.section--dark .audience { background: var(--c-bold-2); border-color: var(--c-bold-line); color: var(--c-on-bold); }
.section--dark .audience h3 { color: var(--c-on-bold); }
.section--dark .audience p { color: var(--c-on-bold-2); }
.section--dark a.audience:hover { border-color: var(--c-bold-accent); color: var(--c-on-bold); }
.section--dark .audience__icon { background: var(--c-bold-btn); color: var(--c-on-bold-btn); }

/* Novinky */
.news-card time { font: 700 .82rem/1 var(--font-head); color: var(--c-ink-3); letter-spacing: .02em; }
.news-card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* FAQ */
.faq-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .faq-layout { grid-template-columns: 270px minmax(0, 1fr); } }
.faq-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
.faq-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.faq-nav a { display: block; padding: .55rem .85rem; border-radius: 999px; text-decoration: none; color: var(--c-ink-2); font: 600 .94rem/1.35 var(--font-head); }
.faq-nav a:hover { background: var(--c-accent-soft); color: var(--c-ink); }
.faq-search { position: relative; margin-bottom: 1.25rem; }
.faq-search input { width: 100%; min-height: 52px; padding: .6rem 1rem .6rem 3rem; border-radius: 999px; border: 2px solid var(--c-ink); background: var(--c-surface); font: inherit; }
.faq-search input:focus { outline: none; box-shadow: 0 0 0 4px var(--c-accent); }
.faq-search .icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--c-ink); }
.faq-group { margin-bottom: 3rem; }
.faq-group__head { margin-bottom: 1.25rem; }
.faq-group__head h2 { font-size: var(--step-2); margin: 0; }
.faq-group__head p { margin: .3rem 0 0; color: var(--c-ink-2); }
.faq-item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); margin-bottom: .6rem; transition: border-color .2s; }
.faq-item[open] { border-color: var(--c-ink); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.25rem; font: 700 1.04rem/1.4 var(--font-head); color: var(--c-ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--c-paper); flex: none; transition: transform .2s, background .2s; }
.faq-item[open] summary .icon { transform: rotate(180deg); background: var(--c-accent); }
.faq-item__body { padding: 0 1.25rem 1.25rem; color: var(--c-ink-2); }
.faq-item__body .chips { margin-bottom: .9rem; }
.faq-item.is-hidden { display: none; }
.faq-empty { display: none; padding: 2rem; text-align: center; color: var(--c-ink-3); border: 2px dashed var(--c-line-strong); border-radius: var(--radius); }
.faq-empty.is-visible { display: block; }

/* Upozornění */
.notice { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--c-accent-soft); color: var(--c-ink); border: 1px solid var(--c-accent-line); }
.notice .icon { color: var(--c-ink); margin-top: .15rem; }
.notice p { margin: 0; }
.notice .prose p + p { margin-top: .75em; }
.notice--warn { background: #FFF1DB; border-color: #F3D19B; }
.notice--warn .icon { color: var(--warn); }
.notice--danger { background: #FBECEB; border-color: #F0C9C5; }
.notice--danger .icon { color: var(--danger); }
.notice--muted { background: var(--c-surface); border-color: var(--c-line); }
.notice--muted .icon { color: var(--c-ink-3); }

/* Tabulky */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); color: var(--c-ink); position: relative; z-index: 1; }
.section--dark .table-wrap { border-color: transparent; }
.table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table th, .table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.table thead th { font: 700 .76rem/1.2 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink); background: var(--c-accent); border-bottom: 0; }
.table tbody th[scope="row"] { font-weight: 600; color: var(--c-ink); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tfoot td { font-weight: 700; background: var(--c-paper); }
.spec { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; }
.spec dt, .spec dd { padding: .72rem 0; border-bottom: 1px solid var(--c-line); margin: 0; }
.spec dt { color: var(--c-ink-2); }
.spec dd { font-weight: 600; text-align: right; color: var(--c-ink); font-variant-numeric: tabular-nums; }

/* Časová osa */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--c-line-strong); }
.timeline li { position: relative; padding: 0 0 1.4rem 2.6rem; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-surface); border: 2px solid var(--c-line-strong); }
.timeline li.is-done::before { background: var(--c-ink); border-color: var(--c-ink); }
.timeline li.is-current::before { background: var(--c-accent); border-color: var(--c-ink); box-shadow: 0 0 0 5px var(--c-accent-soft); }
.timeline__when { display: block; font: 700 .8rem/1 var(--font-head); color: var(--c-ink-3); letter-spacing: .03em; margin-bottom: .35rem; }
.timeline__what { font-weight: 600; color: var(--c-ink); }
.timeline li.is-plan .timeline__what { color: var(--c-ink-2); font-weight: 400; }

/* Povolování */
.permits { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.permits li { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: start; padding: .85rem 1rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.permits small { display: block; color: var(--c-ink-3); margin-top: .15rem; }
.permits a { text-decoration: none; }
.status { display: inline-flex; align-items: center; font: 700 .75rem/1 var(--font-head); padding: .4rem .65rem; border-radius: 999px; white-space: nowrap; }
.status--HOTOVO { background: var(--c-ink); color: #fff; }
.status--PROBIHA { background: var(--c-accent); color: var(--c-on-accent); }
.status--CEKA, .status--NEPOTREBA { background: var(--c-paper); color: var(--c-ink-3); }
.permits__dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .5rem; background: var(--c-line-strong); }
.permits__dot--HOTOVO { background: var(--c-ink); }
.permits__dot--PROBIHA { background: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }

/* Mapa */
.map { height: clamp(320px, 50vw, 520px); border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--c-line); background: #E9E8E2; }
.map--small { height: 340px; }
.map__note { font-size: .84rem; color: var(--c-ink-3); margin-top: .6rem; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-container a { text-decoration: none; }
.map-marker { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 3px solid #fff; box-shadow: 0 4px 12px rgb(0 0 0 / .3); }
.map-marker svg { width: 16px; height: 16px; }
.map-marker--VTE { background: var(--tech-vte); } .map-marker--FVE { background: var(--tech-fve); }
.map-marker--PVE { background: var(--tech-pve); } .map-marker--BESS { background: var(--tech-bess); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.gallery figure { margin: 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.gallery figcaption { padding: .8rem 1rem; font-size: .86rem; color: var(--c-ink-2); }
.gallery figcaption strong { display: block; color: var(--c-ink); font-family: var(--font-head); }
.gallery figcaption small { display: block; color: var(--c-ink-3); margin-top: .25rem; }

/* Kód domácnosti */
.code-box { position: relative; overflow: hidden; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-l); background: var(--c-bold); color: var(--c-on-bold-2); }
.code-box h2, .code-box h3 { color: var(--c-on-bold); }
.code-box a { color: var(--c-on-bold); text-decoration-color: var(--c-bold-accent); }
.code-box__form { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; position: relative; }
.code-box__form input { flex: 1 1 220px; min-height: 54px; padding: .6rem 1.2rem; border-radius: 999px; border: 2px solid var(--c-bold-line); background: var(--c-bold-2); color: var(--c-on-bold);
  font: 700 1.15rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.code-box__form input:focus { outline: none; border-color: var(--c-bold-accent); }
.code-box__form input::placeholder { color: var(--c-on-bold-3); }
.code-box small { display: block; margin-top: .9rem; color: var(--c-on-bold-3); font-size: .84rem; position: relative; }

/* Nabídka akcií */
.offer { border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-surface); overflow: hidden; }
.offer__head { padding: 1.5rem 1.75rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--c-line); }
.offer__head h3 { margin: 0; }
.offer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--c-line); }
.offer__cell { background: var(--c-surface); padding: 1rem 1.25rem; }
.offer__cell span { display: block; font-size: .8rem; color: var(--c-ink-3); }
.offer__cell strong { display: block; font: 700 1.18rem/1.3 var(--font-head); color: var(--c-ink); margin-top: .2rem; font-variant-numeric: tabular-nums; }
.offer__body { padding: 1.5rem 1.75rem; }
.offer progress { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 5px; background: var(--c-line); overflow: hidden; }
.offer progress::-webkit-progress-bar { background: var(--c-line); border-radius: 5px; }
.offer progress::-webkit-progress-value { background: var(--c-accent); border-radius: 5px; }
.offer progress::-moz-progress-bar { background: var(--c-accent); border-radius: 5px; }
.offer__legal { font-size: .86rem; color: var(--c-ink-2); background: var(--c-paper); padding: 1rem 1.25rem; border-radius: var(--radius); border-left: 4px solid var(--c-accent); }

/* Redakční texty */
.prose { font-size: var(--step-0); color: var(--c-ink); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--step-2); margin-top: 2.1em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.7em; }
.prose p, .prose li { color: var(--c-ink-2); }
.prose strong { color: var(--c-ink); }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.6rem; }
.prose ul li + li { margin-top: .4em; }
.prose ul li::before { content: "//"; position: absolute; left: 0; top: 0; font: 700 1em/1.65 var(--font-head); letter-spacing: -.12em; color: var(--c-ink); }
.prose ol li::marker { font-weight: 700; }
.prose blockquote { margin: 1.5em 0; padding: 1.1rem 1.5rem; border-left: 4px solid var(--c-accent); background: var(--c-surface); border-radius: 0 var(--radius) var(--radius) 0; }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; background: var(--c-surface); border-radius: var(--radius); overflow: hidden; }
.prose th { background: var(--c-accent); color: var(--c-on-accent); font-family: var(--font-head); text-align: left; padding: .7rem .8rem; }
.prose td { border-bottom: 1px solid var(--c-line); padding: .65rem .8rem; text-align: left; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--c-ink-2); }

/* Drobečková navigace */
.breadcrumbs { font-size: .86rem; margin-bottom: 1.5rem; position: relative; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.breadcrumbs li + li::before { content: "//"; margin-right: .45rem; color: var(--c-bold-accent); font-weight: 700; letter-spacing: -.1em; }
.breadcrumbs a { text-decoration: none; color: inherit; }
.breadcrumbs a:hover { text-decoration: underline; text-decoration-color: var(--c-bold-accent); }

/* Stránkování */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--c-line); text-decoration: none; font-weight: 700; color: var(--c-ink); background: var(--c-surface); }
.pagination .is-current { background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-accent); }

/* 5. SEKCE ------------------------------------------------------------------- */

/* Úvodní hero */
.hero { position: relative; isolation: isolate; min-height: min(94vh, 880px); display: flex; align-items: flex-end; color: var(--c-on-bold); padding: calc(var(--header-h) + 3rem) 0 clamp(2rem, 5vw, 3.5rem); overflow: hidden; background: var(--c-bold); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media:not(.hero__media--pattern)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 11 9 / .45) 0%, rgb(10 11 9 / .2) 40%, rgb(10 11 9 / .85) 100%); }
.hero .brand-graphic { width: min(62vw, 820px); right: -14%; top: 42%; transform: translateY(-50%) rotate(-8deg); z-index: -1; }
.hero-stats { background: linear-gradient(90deg, var(--c-bold) 55%, transparent); }
@media (max-width: 899px) { .hero .brand-graphic { width: 120vw; right: -60%; top: 30%; opacity: .35; } }
.hero .brand-graphic .g-slash { opacity: .95; }
.hero__content { max-width: 900px; position: relative; }
.hero h1 { color: var(--c-on-bold); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--c-bold-accent); }
.hero__lead { font-size: var(--step-1); line-height: 1.55; color: var(--c-on-bold-2); max-width: 680px; margin-bottom: 2rem; }
.hero__techs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.25rem; }
.hero__techs a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem .55rem .65rem; border-radius: 999px; background: var(--c-bold-2); border: 1px solid var(--c-bold-line);
  color: var(--c-on-bold); text-decoration: none; font: 700 .92rem/1 var(--font-head); transition: border-color .2s, background .2s; }
.hero__techs a:hover { border-color: var(--c-bold-accent); color: var(--c-on-bold); }
.hero__techs .icon { width: 1.2rem; height: 1.2rem; color: var(--c-bold-accent); }
.hero-stats { margin-top: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; padding-top: 1.75rem; border-top: 1px solid var(--c-bold-line); position: relative; }
.hero-stats strong { display: block; font: 700 clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem)/1 var(--font-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--c-on-bold); }
.hero-stats strong small { font-size: .5em; color: var(--c-bold-accent); margin-left: .12em; letter-spacing: 0; }
.hero-stats span { display: block; color: var(--c-on-bold-3); font-size: .9rem; margin-top: .45rem; }

/* Záhlaví podstránky — výrazná plocha s velkým oblým rohem (motiv „pilulky“ z manuálu) */
.page-head { position: relative; overflow: hidden; padding: calc(var(--section) * .7) 0 calc(var(--section) * .6); background: var(--c-bold); color: var(--c-on-bold-2);
  border-bottom-right-radius: var(--radius-xl); margin-right: clamp(0px, 3vw, 48px); }
.page-head .brand-graphic { width: clamp(280px, 40vw, 560px); right: -6%; top: -30%; transform: rotate(-8deg); }
.page-head .container { position: relative; }
.page-head h1 { color: var(--c-on-bold); max-width: 920px; font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem); }
.page-head .lead { color: var(--c-on-bold-2); max-width: 760px; }
.page-head .breadcrumbs { color: var(--c-on-bold-3); }
.page-head__tech { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; margin-bottom: 1.5rem; background: var(--c-bold-btn); color: var(--c-on-bold-btn); }
.page-head__tech .icon { width: 34px; height: 34px; }

/* Detail projektu */
.project-hero { position: relative; isolation: isolate; color: var(--c-on-bold); padding: calc(var(--section) * .7) 0 3.5rem; background: var(--c-bold); overflow: hidden; }
.project-hero__media { position: absolute; inset: 0; z-index: -2; }
.project-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 11 9 / .92) 0%, rgb(10 11 9 / .72) 55%, rgb(10 11 9 / .3) 100%); }
.project-hero h1 { color: #fff; font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); max-width: 920px; }
.project-hero .breadcrumbs { color: #B9BAB5; }
.project-hero .breadcrumbs li + li::before { color: var(--c-accent); }
.project-hero .lead { color: #D6D6D3; max-width: 760px; }
.project-hero .phase { max-width: 560px; margin-top: 1.75rem; }
.project-hero .phase__label { color: #B9BAB5; }
.project-hero .phase__label strong { color: #fff; }
.project-hero .phase__seg { background: rgb(255 255 255 / .2); }
.project-hero .phase__seg.is-done { background: #fff; }
.project-hero .phase__seg.is-current { background: var(--c-accent); }
.keyfigures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--radius-l); overflow: hidden; margin-top: -2.5rem; position: relative; z-index: 2; box-shadow: var(--shadow); }
.keyfigure { background: var(--c-surface); padding: 1.25rem 1.4rem; }
.keyfigure:first-child { background: var(--c-accent); }
.keyfigure:first-child strong, .keyfigure:first-child strong small, .keyfigure:first-child span { color: var(--c-on-accent); }
.keyfigure strong { display: block; font: 700 1.65rem/1.05 var(--font-head); color: var(--c-ink); letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.keyfigure strong small { font-size: .55em; color: var(--c-ink-2); margin-left: .1em; letter-spacing: 0; }
.keyfigure span { display: block; font-size: .82rem; color: var(--c-ink-3); margin-top: .35rem; }
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: rgb(245 244 239 / .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); margin-top: 2rem; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 1rem .9rem; white-space: nowrap; text-decoration: none; color: var(--c-ink-2); font: 700 .92rem/1 var(--font-head); border-bottom: 3px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--c-ink); border-bottom-color: var(--c-accent); }
.block { padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--c-line); }
.block:last-child { border-bottom: 0; }
.block > h2 { font-size: var(--step-2); }
.sidebar-card { position: sticky; top: calc(var(--header-h) + 5rem); display: grid; gap: 1rem; }
.municipalities { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.municipalities li { padding: .38rem .8rem; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-line); font-size: .9rem; }
.municipalities li.is-direct { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); font-weight: 600; }

/* Výsledek kódu domácnosti */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.benefit { padding: 1.35rem; border-radius: var(--radius-l); background: var(--c-accent); color: var(--c-on-accent); }
.benefit strong { display: block; font: 700 2rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.benefit span { display: block; margin-top: .45rem; font-size: .92rem; }
.vote { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1rem; }
.vote button { min-height: 66px; border-radius: 999px; border: 2px solid var(--c-ink); background: var(--c-accent); color: var(--c-on-accent); font: 700 1.05rem/1.2 var(--font-head); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .6rem; }
.vote button:hover { background: var(--c-accent-hover); }
.vote button.vote--no { background: var(--c-surface); color: var(--c-ink); }
.vote button.vote--no:hover { background: var(--c-paper); }

/* Patička */
.site-footer { position: relative; overflow: hidden; background: var(--c-bold); color: var(--c-on-bold-2); padding: clamp(3rem, 6vw, 5rem) 0 2rem; font-size: .96rem; border-top-left-radius: var(--radius-xl); margin-left: clamp(0px, 3vw, 48px); }
.site-footer a { color: var(--c-on-bold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--c-bold-accent); }
.site-footer .brand .logo { height: 40px; }
.site-footer .container { position: relative; }
.footer-claim { font: 700 clamp(1.4rem, 1rem + 1.6vw, 2.2rem)/1.15 var(--font-head); color: var(--c-on-bold); margin: 1.5rem 0 0; max-width: 18ch; }
.footer-claim em { font-style: normal; color: var(--c-bold-accent); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-grid h4 { color: var(--c-on-bold); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid h4::before { content: "// "; color: var(--c-bold-accent); letter-spacing: -.1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-contact { display: grid; gap: .5rem; margin-top: 1.25rem; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: .55rem; }
.footer-contact .icon { color: var(--c-bold-accent); width: 1.05rem; height: 1.05rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--c-bold-line); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .86rem; color: var(--c-on-bold-3); }
.site-footer .brand-graphic { width: 440px; right: -150px; top: -120px; transform: rotate(-8deg); }
.site-footer .brand-graphic .g-slash { opacity: .22; }
.site-footer .container { z-index: 1; }

/* CTA pás — žlutá plocha s černým tlačítkem */
.cta-band { position: relative; overflow: hidden; display: grid; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-l); background: var(--c-accent); color: var(--c-on-accent); }
.cta-band::after { content: "//"; position: absolute; right: 2%; bottom: -.38em; font: 700 clamp(9rem, 16vw, 15rem)/1 var(--font-head); letter-spacing: -.12em; color: var(--c-on-accent); opacity: .08; pointer-events: none; }
.cta-band h2 { color: var(--c-on-accent); margin-bottom: .35em; }
.cta-band p { margin: 0; max-width: 640px; }
.cta-band .btn, .cta-band .btn--accent { --btn-bg: var(--c-ink); --btn-fg: #fff; --btn-bd: var(--c-ink); position: relative; z-index: 1; }
.cta-band .btn:hover { --btn-bg: #000; filter: none; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* 6. FORMULÁŘE --------------------------------------------------------------- */

.form { display: grid; gap: 1.1rem; }
.form-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-l); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.form-card > h2, .form > h2 { font-size: var(--step-2); }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font: 700 .92rem/1.3 var(--font-head); color: var(--c-ink); }
.field .hint { font-size: .84rem; color: var(--c-ink-3); line-height: 1.45; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"], .field input[type="search"], .field input[type="password"], .field input[type="datetime-local"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem 1rem; border-radius: var(--radius-s); border: 1.5px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-ink); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-ink); box-shadow: 0 0 0 4px var(--c-accent); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .86rem; font-weight: 600; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.choice { display: flex; align-items: center; gap: .65rem; padding: .8rem 1rem; border: 1.5px solid var(--c-line-strong); border-radius: var(--radius-s); cursor: pointer; background: var(--c-surface); font-size: .96rem; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--c-ink); }
.choice input { accent-color: var(--c-ink); width: 1.15rem; height: 1.15rem; margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--c-ink); background: var(--c-accent-soft); }
.choice .icon { color: var(--c-ink-3); }
.choice:has(input:checked) .icon { color: var(--c-ink); }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; color: var(--c-ink-2); line-height: 1.5; }
.consent input { margin-top: .2rem; accent-color: var(--c-ink); width: 1.15rem; height: 1.15rem; flex: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: .86rem; color: var(--c-ink-3); display: flex; align-items: center; gap: .5rem; }
.form__status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c-line-strong); }
.form__status.is-ready::before { background: var(--ok); }
.map-picker__coords { font-size: .88rem; color: var(--c-ink-2); margin-top: .5rem; font-variant-numeric: tabular-nums; }
.or-divider { display: flex; align-items: center; gap: 1rem; color: var(--c-ink-3); font: 700 .82rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }

/* Stav nabídky pozemku */
.status-steps { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: .75rem; }
.status-steps li { display: flex; gap: .85rem; align-items: center; padding: 1rem 1.2rem; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink-3); font-weight: 600; }
.status-steps li .icon { width: 22px; height: 22px; }
.status-steps li.is-done { color: var(--c-ink); }
.status-steps li.is-done .icon { color: var(--ok); }
.status-steps li.is-active { border-color: var(--c-ink); background: var(--c-accent-soft); color: var(--c-ink); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--c-accent-soft); border-top-color: var(--c-ink); animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 7. UTILITY ----------------------------------------------------------------- */

.muted { color: var(--c-ink-3); }
.small { font-size: .88rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.stack > * + * { margin-top: 1rem; }
@media (max-width: 599px) {
  .keyfigure strong { font-size: 1.3rem; }
  .keyfigure { padding: 1rem; }
  .page-head, .site-footer { margin-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 8. TISK -------------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .mobile-nav, .subnav, .btn, .code-box, form, .brand-graphic { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-head, .project-hero, .section--dark { background: none !important; color: #000; }
  .page-head h1, .project-hero h1, .section--dark h2 { color: #000; }
}
.page-head:has(+ .section--dark) { margin-right: 0; border-bottom-right-radius: 0; }
