@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  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;
}

/* Světlý motiv, záměrně bez tmavého režimu (přání 2026-11-08) */
:root {
  --bg: #FBFCFA;
  --surface: #EFF3ED;
  --ink: #15211A;
  --ink-2: #4D5A52;
  --line: #D6DED4;
  --accent: #2F6E3B;
  --on-accent: #FBFCFA;
  --deep: #1E4427;
  --on-deep: #F1F5EF;
  --tint: #A8D5B0;
  --radius: 4px;
  --header: 68px;
  --sekce: clamp(72px, 9vw, 120px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
/* Na mobilu nikdy posun do strany: co přečuhuje, se ořízne (clip nezakládá posuvník, sticky karty fungují dál) */
html, body { overflow-x: clip; overscroll-behavior-x: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-stretch: 112%; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1rem + 3vw, 3.5rem); font-weight: 780; letter-spacing: -0.02em; margin-bottom: clamp(32px, 4.5vw, 56px); max-width: 18ch; }
h3 { font-size: 1.25rem; font-weight: 720; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.obal { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .obal { padding-inline: 40px; } }
.sekce { padding-block: var(--sekce); }
.preskocit { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--ink); color: var(--bg); z-index: 30; border-radius: var(--radius); }
.preskocit:focus { top: 12px; }

/* Tlačítka */
.tlacitko {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 52px; padding: 0 22px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font: inherit; font-weight: 650; font-stretch: 108%; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), transform .16s var(--ease-out);
}
.tlacitko:active { transform: scale(0.97); }
.tlacitko-hlavni { background: var(--accent); color: var(--on-accent); }
.tlacitko-hlavni:hover { background: color-mix(in oklab, var(--accent) 86%, var(--ink)); }
.tlacitko-vedlejsi { border-color: var(--ink); color: var(--ink); background: transparent; }
.tlacitko-vedlejsi:hover { background: color-mix(in oklab, var(--ink) 7%, transparent); }
.tlacitko-svetla { border-color: rgb(241 245 239 / .85); color: var(--on-deep); background: rgb(12 20 14 / .2); }
.tlacitko-svetla:hover { background: rgb(241 245 239 / .14); }

/* Hlavička: s JS nad fotkou průhledná, po odjetí z fotky světlá s rozostřením. Bez JS vždy plná. */
.hlavicka {
  position: sticky; top: 0; z-index: 20;
  color: var(--ink); background: rgb(251 252 250 / .9); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .hlavicka { background: var(--bg); } }
.js body:not(.bez-hero) .hlavicka:not(.plna) {
  color: var(--on-deep); background: rgb(12 20 14 / 0); border-color: rgb(241 245 239 / .18);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.js body:not(.bez-hero) .hlavicka:has(.menu.otevrene) { color: var(--ink); background: var(--bg); border-color: var(--line); }
.hlavicka-radek { display: flex; align-items: center; gap: 20px; height: var(--header); }
.ikona { width: 1.25em; height: 1.25em; flex: none; }
.znacka { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.znacka-mark { width: 34px; height: 34px; flex: none; }
.znacka-text { display: flex; flex-direction: column; line-height: 1.1; }
.znacka-jmeno { font-size: 1.3125rem; font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; }
.znacka-obor { font-size: .78rem; opacity: .75; }
.menu { display: flex; gap: 6px; }
.menu a { position: relative; text-decoration: none; font-weight: 600; font-stretch: 106%; padding: 8px 12px; }
.menu a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .menu a:hover::after { transform: scaleX(1); } }
.hlavicka-volat { min-height: 44px; padding: 0 16px; gap: 8px; }
.hlavicka-volat .cislo { padding-left: 10px; border-left: 1px solid rgb(251 252 250 / .35); font-variant-numeric: tabular-nums; }
.menu-prepinac { display: none; }
@media (max-width: 899px) {
  .menu-prepinac {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
    background: transparent; color: inherit; border: 1.5px solid color-mix(in oklab, currentColor 32%, transparent); border-radius: var(--radius);
    font: inherit; font-weight: 600; cursor: pointer; transition: transform .16s var(--ease-out);
  }
  .menu-prepinac:active { transform: scale(0.97); }
  .hlavicka-volat .cislo { display: none; }
  .menu {
    display: none; position: absolute; inset: var(--header) 0 auto 0;
    flex-direction: column; gap: 0; padding: 8px 20px 20px;
    color: var(--ink); background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), display .2s allow-discrete;
  }
  .menu.otevrene { display: flex; opacity: 1; transform: none; }
  @starting-style { .menu.otevrene { opacity: 0; transform: translateY(-8px); } }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu a::after { display: none; }
}
/* Mobil: hlavička se musí vejít i na 320 px (logo 158 px, Zavolat 128 nebo 44 px, Menu 98 nebo 47 px).
   Dřív na 360 až 460 px přečuhovala a stránka šla posunout do strany. */
@media (max-width: 459px) { .menu-text { display: none; } .hlavicka-radek { gap: 12px; } }
@media (max-width: 399px) { .hlavicka-volat span { display: none; } .hlavicka-volat { padding: 0 12px; } }
@media (max-width: 380px) { .znacka-obor { display: none; } .hlavicka-radek { gap: 8px; } }

/* Hero: fotka přes celou šířku, text dole vlevo */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  margin-top: calc(-1 * var(--header));
  min-height: max(560px, 100svh);
  color: var(--on-deep); background: var(--deep);
}
/* Hranice končí na horním okraji textu hero: jakmile text dojede k hlavičce, hlavička se zaplní */
.hero-obsah { position: relative; }
.hero-hranice { position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; pointer-events: none; }
.hero-foto, .hero-foto img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-foto { z-index: -2; }
.hero-foto img { object-fit: cover; object-position: 62% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgb(12 20 14 / .55) 0, rgb(12 20 14 / 0) 150px),
    linear-gradient(to top, rgb(12 20 14 / .9) 0%, rgb(12 20 14 / .74) 42%, rgb(12 20 14 / .38) 70%, rgb(12 20 14 / .12) 100%);
}
@media (max-width: 599px) { .hero-stitek { display: none; } }
.hero-obsah { padding-block: 40px 32px; }
.hero-stitek { font-size: .8125rem; font-weight: 600; font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase; color: var(--tint); }
.hero h1 { margin-top: 14px; font-size: clamp(2.3rem, 1.2rem + 3.4vw, 4.25rem); font-weight: 800; font-stretch: 104%; line-height: 1.02; letter-spacing: -0.03em; max-width: 17ch; }
@media (min-width: 900px) { .hero h1 { max-width: 22ch; } }
/* Mobil: nadpis na 3 řádky (od 320 px), víc fotky nad textem */
@media (max-width: 599px) { .hero h1 { font-size: clamp(1.75rem, 8.8vw, 2.5rem); max-width: none; } }
.hero-veta { margin-top: 18px; font-size: 1.1875rem; color: rgb(241 245 239 / .88); max-width: 44ch; }
.akce { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 900px) {
  .hero { min-height: min(100svh, 960px); }
  .hero::before {
    background:
      linear-gradient(to bottom, rgb(12 20 14 / .5) 0, rgb(12 20 14 / 0) 150px),
      linear-gradient(to right, rgb(12 20 14 / .62) 0%, rgb(12 20 14 / .2) 48%, rgb(12 20 14 / 0) 70%),
      linear-gradient(to top, rgb(12 20 14 / .7) 0%, rgb(12 20 14 / 0) 55%);
  }
  .hero-foto img { object-position: 50% 50%; }
  .hero-obsah { padding-block: 64px 72px; }
}

/* Vstup hero: jednou při načtení, fotka se usadí, text vyjede po řádcích */
@media (prefers-reduced-motion: no-preference) {
  .hero-foto img { animation: usadit 1.6s var(--ease-out) both; }
  .hero-obsah > * { animation: vyjet .9s var(--ease-out) both; }
  .hero-obsah > :nth-child(1) { animation-delay: .12s; }
  .hero-obsah > :nth-child(2) { animation-delay: .2s; }
  .hero-obsah > :nth-child(3) { animation-delay: .3s; }
  .hero-obsah > :nth-child(4) { animation-delay: .4s; }
}
@keyframes usadit { from { transform: scale(1.08); } }
@keyframes vyjet { from { opacity: 0; transform: translateY(28px); } }
/* Klidná verze pro vypnuté animace v systému: text se jen prolne, nic se nehýbe */
@media (prefers-reduced-motion: reduce) {
  .hero-obsah > * { animation: prolnout .6s ease-out both; }
  .hero-obsah > :nth-child(2) { animation-delay: .08s; }
  .hero-obsah > :nth-child(3) { animation-delay: .16s; }
  .hero-obsah > :nth-child(4) { animation-delay: .24s; }
}
@keyframes prolnout { from { opacity: 0; } }

/* Odhalení při scrollu (třída .js z js-trida.js, bez JS je vše vidět) */
.js .odhal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .odhal.videt { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .odhal { transform: none; transition: opacity .3s linear; transition-delay: 0s; }
}

/* Úvod pod hero: věta vlevo, fakta vpravo, na mobilu pod sebou */
.veta { display: grid; gap: clamp(32px, 5vw, 56px); padding-top: var(--sekce); }
.veta-text { font-size: clamp(1.6rem, 0.95rem + 2.1vw, 2.75rem); font-weight: 700; font-stretch: 104%; line-height: 1.2; letter-spacing: -0.02em; max-width: 21ch; text-wrap: balance; }
.veta-text em { font-style: normal; color: var(--accent); }

/* Fakta: zelený čtvereček jako v logu, mezi řádky linka */
.fakta { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fakta li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.fakta li::before { content: ""; grid-row: span 2; width: 10px; height: 10px; margin-top: 9px; background: var(--accent); border-radius: 2px; }
.fakta strong { font-size: 1.1875rem; font-weight: 750; font-stretch: 115%; }
.fakta span { color: var(--ink-2); }
@media (min-width: 900px) {
  .veta { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: clamp(48px, 7vw, 120px); align-items: start; }
}

/* Služby */
.bento { display: grid; gap: 24px; }
.sluzba { display: flex; flex-direction: column; gap: 16px; }
.sluzba figure { overflow: hidden; border-radius: var(--radius); }
.sluzba img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sluzba-text { display: flex; flex-direction: column; gap: 8px; }
.sluzba-text p { color: var(--ink-2); max-width: 46ch; }
@media (max-width: 899px) { .sluzba:not(.sluzba-hlavni) img { aspect-ratio: 16 / 10; } }
/* Poptat u služby: zaškrtne službu ve formuláři a sjede na něj (main.js) */
.sluzba-poptat { align-self: flex-start; min-height: 44px; margin-top: 8px; padding: 0 16px; }
.sluzba-poptat .ikona { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .sluzba-poptat:hover .ikona { transform: translateX(3px); }
}
.sluzba-zahrady { background: var(--surface); border-radius: var(--radius); overflow: hidden; gap: 0; }
.sluzba-zahrady figure { border-radius: 0; }
.sluzba-zahrady .sluzba-text { padding: 24px 24px 28px; }
.sluzba-zahrady h3 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.1rem); }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, 1fr); gap: 36px 28px; }
  .sluzba-hlavni { grid-column: 1 / 5; grid-row: 1 / 3; }
  .sluzba-hlavni figure { position: relative; flex: 1; min-height: 420px; }
  .sluzba-hlavni img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 50% 62%; }
  .sluzba-hlavni h3 { font-size: 1.875rem; }
  .sluzba-kaceni { grid-column: 5 / 7; grid-row: 1; }
  .sluzba-demolice { grid-column: 5 / 7; grid-row: 2; }
  .sluzba-kaceni img, .sluzba-demolice img { aspect-ratio: 16 / 10; }
  .sluzba-zarostle { grid-column: 1 / 4; flex-direction: row; align-items: stretch; }
  .sluzba-zarostle figure { flex: 0 0 46%; }
  .sluzba-zarostle img { height: 100%; aspect-ratio: 3 / 4; }
  .sluzba-zarostle .sluzba-text { justify-content: flex-end; }
  .sluzba-zahrady { grid-column: 4 / 7; flex-direction: row-reverse; align-items: stretch; }
  .sluzba-zahrady figure { flex: 0 0 46%; }
  .sluzba-zahrady img { height: 100%; aspect-ratio: auto; }
  .sluzba-zahrady .sluzba-text { justify-content: flex-end; padding: 32px; }
}
.sluzby-dovetek { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); max-width: 70ch; }

/* Fotky reagují na myš jen tam, kde je myš (klik otevře velkou fotku) */
@media (hover: hover) and (pointer: fine) {
  .sluzba img, .foto img { transition: transform .5s var(--ease-out), opacity .2s; }
  .sluzba:hover img, .foto:hover img { transform: scale(1.04); }
}

/* Realizace */
.zakazka { display: grid; gap: 20px; }
.zakazka + .zakazka { margin-top: 64px; }
.zakazka-text h3 { font-size: 1.5rem; }
.zakazka-text p { margin-top: 8px; color: var(--ink-2); }
.mozaika {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px;
}
.foto { display: block; overflow: hidden; border-radius: var(--radius); scroll-snap-align: start; background: var(--surface); cursor: zoom-in; }
.foto img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 768px) { .mozaika { margin-inline: -40px; padding-inline: 40px; scroll-padding-inline: 40px; grid-auto-columns: 40%; } }
@media (min-width: 900px) {
  .zakazka { grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: start; }
  .zakazka-text { grid-column: 1 / 4; position: sticky; top: calc(var(--header) + 32px); }
  .mozaika {
    grid-column: 4 / 13; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr);
    overflow: visible; margin: 0; padding: 0; gap: 16px;
  }
  .mozaika .foto:first-child { grid-column: span 2; grid-row: span 2; }
  .mozaika-dve { grid-template-columns: 1fr 1fr; }
  .mozaika-dve .foto:first-child { grid-column: auto; grid-row: auto; }
}

/* Akordeon průběhu: proužky fotek, ten pod myší (nebo s fokusem) se rozbalí */
.harmonika {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px;
}
.dil { position: relative; }
.dil img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.dil-popis {
  position: absolute; inset: auto 0 0 0; padding: 48px 16px 14px;
  color: var(--on-deep); font-weight: 650; font-stretch: 108%; white-space: nowrap;
  background: linear-gradient(to top, rgb(12 20 14 / .82), rgb(12 20 14 / 0));
}
@media (min-width: 768px) { .harmonika { margin-inline: -40px; padding-inline: 40px; scroll-padding-inline: 40px; grid-auto-columns: 40%; } }
@media (min-width: 900px) {
  .harmonika { grid-column: 4 / 13; display: flex; gap: 10px; height: clamp(440px, 62vh, 640px); overflow: visible; margin: 0; padding: 0; }
  .dil { flex: 1 1 0; min-width: 0; transition: flex-grow .6s var(--ease-out); }
  .dil.aktivni { flex-grow: 5; }
  .dil img { aspect-ratio: auto; }
  .dil-popis { opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
  .dil.aktivni .dil-popis { opacity: 1; transform: none; transition-delay: .15s; }
}
@media (prefers-reduced-motion: reduce) { .dil { transition-duration: .25s; } .dil-popis { transform: none; } }

/* Postup: karty se při scrollu skládají na sebe (sticky), GSAP zmenší tu spodní */
.postup { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(72px, 16vh, 180px); counter-reset: krok; }
.postup li {
  counter-increment: krok; position: sticky; top: calc(var(--header) + 20px + var(--n, 0) * 16px);
  display: grid; gap: 10px 40px; align-content: start; isolation: isolate; overflow: hidden;
  min-height: clamp(220px, 36vh, 340px); padding: clamp(24px, 4vw, 52px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transform-origin: 50% 0; box-shadow: 0 -10px 30px rgb(21 33 26 / .06);
}
.postup li:nth-child(2) { --n: 1; background: #E7EEE5; }
.postup li:nth-child(3) { --n: 2; background: #DFE8DD; }
.postup li:nth-child(4) { --n: 3; background: #D6E2D4; }
.postup li::before {
  content: counter(krok); font-size: clamp(3.5rem, 2rem + 5vw, 7.5rem); font-weight: 800; font-stretch: 125%;
  line-height: .82; letter-spacing: -0.04em; color: var(--accent);
}
.postup li::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--ink); opacity: .07;
  -webkit-mask: url("img/vrstevnice.svg") center / cover no-repeat; mask: url("img/vrstevnice.svg") center / cover no-repeat;
}
.postup h3 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem); }
.postup p { color: var(--ink-2); font-size: 1.125rem; max-width: 40ch; }
@media (min-width: 900px) {
  .postup li { grid-template-columns: minmax(200px, 3fr) 9fr; grid-template-rows: auto 1fr; align-items: end; }
  .postup li::before { grid-row: 1 / 3; align-self: end; }
  .postup h3 { align-self: end; }
  .postup p { align-self: start; }
}
/* Mobil: nízké karty, číslo vlevo a text vpravo, menší mezery (jinak prázdná místa přes celou obrazovku) */
@media (max-width: 899px) {
  .postup { gap: 40px; }
  .postup li { min-height: 0; grid-template-columns: auto 1fr; gap: 4px 18px; padding: 22px 22px 24px; }
  .postup li::before { grid-row: 1 / 3; font-size: 3.25rem; }
  .postup h3 { font-size: 1.375rem; }
  .postup p { font-size: 1rem; }
}

/* Kdo: jediný barevný pás na stránce */
.kdo-pas { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: var(--on-deep); }
.kdo-pas::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--tint); opacity: .16;
  -webkit-mask: url("img/vrstevnice.svg") center / cover no-repeat; mask: url("img/vrstevnice.svg") center / cover no-repeat;
}
.kdo { display: grid; gap: 36px; padding-block: var(--sekce); }
.kdo-citat blockquote { margin: 0; }
.kdo-citat blockquote p { font-size: clamp(1.75rem, 1rem + 2.8vw, 3.25rem); font-weight: 700; font-stretch: 106%; line-height: 1.12; letter-spacing: -0.02em; max-width: 22ch; text-wrap: balance; }
.kdo-citat blockquote p::first-letter { color: var(--tint); }
.kdo-citat figcaption { margin-top: 28px; color: rgb(241 245 239 / .8); max-width: 46ch; }
.kdo-foto { overflow: hidden; border-radius: var(--radius); }
.kdo-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .kdo { grid-template-columns: repeat(12, 1fr); align-items: center; }
  .kdo-citat { grid-column: 1 / 8; }
  .kdo-foto { grid-column: 9 / 13; }
  .kdo-foto img { aspect-ratio: 3 / 4; }
}

/* Kontakt */
.kontakt { background: var(--surface); padding-block: var(--sekce); }
.kontakt-mrizka { display: grid; gap: 40px; }
.kontakt-udaje > p:first-of-type { color: var(--ink-2); max-width: 36ch; }
.kontakt-telefon { display: inline-block; margin-top: 28px; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.75rem); font-weight: 800; font-stretch: 118%; letter-spacing: -0.02em; text-decoration: none; line-height: 1.1; color: var(--accent); }
.kontakt-telefon:hover, .kontakt-email:hover { color: var(--ink); }
.kontakt-email { display: block; margin-top: 10px; font-size: 1.125rem; overflow-wrap: anywhere; }
.kontakt-oblast { margin-top: 18px; color: var(--ink-2); }
.formular { display: grid; gap: 18px; background: var(--bg); padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); }
.pole { display: flex; flex-direction: column; gap: 8px; }
.pole-radek { display: grid; gap: 18px; }
.pole label { font-weight: 600; }
.nepovinne { font-weight: 400; color: var(--ink-2); }
.pole input, .pole textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid color-mix(in oklab, var(--ink) 45%, var(--line)); border-radius: var(--radius);
  transition: border-color .15s var(--ease-out);
}
.pole textarea { resize: vertical; min-height: 120px; }
.pole input:focus-visible, .pole textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.formular .tlacitko { justify-self: start; }
.formular-info { font-size: .9375rem; color: var(--ink-2); }
/* Pole pro roboty: neviditelné, ale bez odsunutí o 9999 px mimo stránku */
.skryte { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 640px) { .pole-radek { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .kontakt-mrizka { grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: start; }
  .kontakt-udaje { grid-column: 1 / 6; }
  .formular { grid-column: 7 / 13; }
}

/* Patička */
.paticka { padding-block: 32px 40px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); }
.paticka-radek { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.paticka strong { color: var(--ink); font-weight: 650; }

/* Mobilní lišta: plovoucí, ukáže se až po odjetí tlačítek v hero (s JS) */
.lista {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 6px; padding: 6px;
  background: rgb(30 68 39 / .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 10px; /* soustředné rohy: 4 px tlačítka + 6 px odsazení */
  box-shadow: 0 12px 32px rgb(12 20 14 / .28);
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.js .lista:not(.ukazat) { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
.lista a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 10px;
  border-radius: var(--radius); text-decoration: none; font-weight: 650; font-stretch: 106%; white-space: nowrap;
  transition: transform .16s var(--ease-out), background-color .2s var(--ease-out);
}
.lista a:active { transform: scale(0.97); }
.lista-volat { background: var(--tint); color: var(--deep); }
.lista-poptavka { color: var(--on-deep); background: rgb(241 245 239 / .08); }
@media (max-width: 360px) { .lista a { font-size: .9375rem; gap: 6px; padding: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .lista { transition: opacity .2s linear; } .js .lista:not(.ukazat) { transform: none; } }
body { padding-bottom: 84px; }
@media (min-width: 900px) { .lista { display: none; } body { padding-bottom: 0; } }

/* Lightbox: otevře se z mírného zmenšení, zavře stejnou cestou */
.lightbox {
  width: min(96vw, 1100px); max-height: 94dvh; padding: 0; border: 0; border-radius: var(--radius); background: var(--ink); overflow: hidden;
  opacity: 0; transform: scale(0.96);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), overlay .25s allow-discrete, display .25s allow-discrete;
}
.lightbox[open] { opacity: 1; transform: none; }
@starting-style { .lightbox[open] { opacity: 0; transform: scale(0.96); } }
.lightbox::backdrop { background: rgb(11 17 13 / 0); transition: background-color .25s var(--ease-out), overlay .25s allow-discrete, display .25s allow-discrete; }
.lightbox[open]::backdrop { background: rgb(11 17 13 / .82); }
@starting-style { .lightbox[open]::backdrop { background: rgb(11 17 13 / 0); } }
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox[open] { transform: none; } }
.lightbox img { width: 100%; max-height: 94dvh; object-fit: contain; }
.lightbox-zavrit {
  position: absolute; top: 10px; right: 10px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: var(--radius); background: var(--bg); color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer;
}

/* Děkovná stránka */
.dekujeme-nadpis { font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); font-weight: 790; max-width: 18ch; }
.dekujeme-text { margin-block: 20px 32px; font-size: 1.1875rem; color: var(--ink-2); max-width: 46ch; }

/* Formulář s volbami: většina se jen naklikne, vstupy jsou skutečné checkboxy a přepínače */
.volby { margin: 0; padding: 0; border: 0; min-width: 0; }
.volby legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.volby-seznam { display: flex; flex-wrap: wrap; gap: 8px; }
.volba { position: relative; display: inline-flex; }
.volba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.volba span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid color-mix(in oklab, var(--ink) 28%, var(--line)); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); font-weight: 550; line-height: 1.2;
  transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out), color .15s var(--ease-out), transform .16s var(--ease-out);
}
.volba-vice span::before {
  content: ""; width: 14px; height: 14px; flex: none; background: currentColor; opacity: .55;
  -webkit-mask: url("img/ikona-plus.svg") center / contain no-repeat; mask: url("img/ikona-plus.svg") center / contain no-repeat;
}
.volba-vice input:checked + span::before { -webkit-mask-image: url("img/ikona-check.svg"); mask-image: url("img/ikona-check.svg"); opacity: 1; }
.volba input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.volba input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.volba input:active + span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .volba input:not(:checked):hover + span { border-color: var(--ink); } }
/* Služba vybraná tlačítkem Poptat: kroužek kolem volby po dojetí pomalu zhasne (bez pohybu) */
.volba.predvybrano span { animation: predvybrat 1.6s var(--ease-out) .4s both; }
@keyframes predvybrat { from { box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 40%, transparent); } }
.formular-stav { padding: 12px 14px; border-radius: var(--radius); background: #F6E3DF; color: #7A2318; font-weight: 550; }
.formular-stav:empty { display: none; }
.formular .tlacitko[disabled] { opacity: .72; cursor: progress; }
.formular-hotovo { align-self: start; background: var(--bg); padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); }
.formular-hotovo h3 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2rem); }
.formular-hotovo h3:focus { outline: none; }
.formular-hotovo p { margin-top: 10px; color: var(--ink-2); }
@media (min-width: 900px) { .formular-hotovo { grid-column: 7 / 13; } }

/* Stránka se zásadami */
.zasady h2 { font-size: 1.375rem; max-width: none; margin: 44px 0 12px; }
.zasady p, .zasady li { max-width: 72ch; color: var(--ink-2); }
.zasady p + p { margin-top: 12px; }
.zasady ul { margin: 0; padding-left: 1.2em; }
.zasady li + li { margin-top: 10px; }
.zasady strong { color: var(--ink); }

/* Prohlížečové plochy v barvách webu */
::selection { background: var(--tint); color: var(--deep); }
input, textarea { caret-color: var(--accent); }
