/* Sběrné suroviny a autovrakoviště Karel Pliska
   Svět: grafit + beton, jediný akcent měď, Sofia Sans (Extra Condensed pro display).
   Tvar: tabule u brány + vážní lístek. Nula zaoblení, 1px pravítka, žádné stíny. */

/* ---------- písma ---------- */
@font-face {
  font-family: "Sofia Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/sofia-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sofia Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/sofia-text-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/sofia-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/sofia-display-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* náhradní písma s upravenou šířkou, ať swap nehne layoutem */
@font-face {
  font-family: "Sofia Sans Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 96%;
  ascent-override: 92%;
  descent-override: 22%;
}
@font-face {
  font-family: "Sofia XC Fallback";
  src: local("Arial Narrow"), local("Liberation Sans Narrow"), local("Arial");
  size-adjust: 88%;
  ascent-override: 90%;
  descent-override: 20%;
}

/* ---------- tokeny ---------- */
:root {
  --grafit: #1a1c1e;
  --grafit-2: #232629;
  --ocel: #3a3f44;
  --beton: #e7e6e2;
  --beton-2: #dcdbd6;
  --papir: #f4f3ef;
  --rule-light: #c4c3bd;
  --ink: #1a1c1e;
  --ink-2: #545960;
  --text: #f1f0ec;
  --text-2: #b4b7ba;
  --med: #d4813a;
  --med-hover: #c9742f;
  --med-on-light: #8c4d1a;

  --ff-text: "Sofia Sans", "Sofia Sans Fallback", Arial, sans-serif;
  --ff-display: "Sofia Sans Extra Condensed", "Sofia XC Fallback", "Arial Narrow", sans-serif;

  --obal: 1360px;
  --gutter: 24px;
  --nav: 64px;
  --sekce: 128px;
  --mezera-h2: 40px;

  --z-nav: 30;
  --z-menu: 40;
  --z-lista: 20;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 1023px) { :root { --sekce: 96px; } }
@media (max-width: 767px) { :root { --sekce: 64px; --gutter: 16px; --mezera-h2: 28px; } }

/* ---------- základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav) + 16px);
  scrollbar-color: var(--ocel) var(--grafit);
}
body {
  margin: 0;
  background: var(--beton);
  color: var(--ink);
  font-family: var(--ff-text);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 767px) { body { font-size: 16px; padding-bottom: calc(56px + env(safe-area-inset-bottom)); } }
::selection { background: var(--med); color: var(--grafit); }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--med-on-light); }
:focus-visible { outline: 2px solid var(--med); outline-offset: 3px; }
button { font: inherit; color: inherit; }
.tichy { color: var(--ink-2); font-weight: 400; }
.preskocit {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  background: var(--med); color: var(--grafit); padding: 12px 20px; font-weight: 600; text-decoration: none;
}
.preskocit:focus { top: 12px; }

.obal { width: 100%; max-width: var(--obal); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- typografie ---------- */
h1, .h1 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1;
  font-size: clamp(44px, 5.6vw, 84px);
}
h2 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.005em;
  margin-bottom: var(--mezera-h2);
}
h3 { font-size: 24px; font-weight: 600; line-height: 1.2; }
.perex { font-size: 20px; line-height: 1.45; max-width: 36em; }
.perex-tmavy { color: var(--text-2); }
.poznamka { color: var(--ink-2); }
.seznam li { padding: 8px 0 8px 22px; position: relative; border-top: 1px solid var(--rule-light); }
.seznam li:last-child { border-bottom: 1px solid var(--rule-light); }
.seznam li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 2px; background: var(--med-on-light); }
.odkaz { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.odkaz-tichy { font-weight: 400; color: var(--text-2); }
.odkaz-tichy:hover { color: var(--med); }

/* ---------- tlačítka ---------- */
.tlacitko {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--ff-text); font-weight: 600; font-size: 16px; line-height: 1; letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color 120ms linear, color 120ms linear, border-color 120ms linear;
}
.tlacitko-plne { background: var(--med); color: var(--grafit); border-color: var(--med); }
.tlacitko-plne:hover { background: var(--med-hover); border-color: var(--med-hover); color: var(--grafit); }
.tlacitko-obrys { background: transparent; color: var(--text); border-color: var(--text); }
.tlacitko-obrys:hover { color: var(--med); border-color: var(--med); }
.tlacitko-obrys-tmavy { background: transparent; color: var(--ink); border-color: var(--ink); }
.tlacitko-obrys-tmavy:hover { color: var(--med-on-light); border-color: var(--med-on-light); }
.tlacitko .ikona { flex: none; }
@media (max-width: 767px) { .tlacitko { min-height: 48px; padding: 0 22px; width: 100%; } }
.akce-radek { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- hlavička ---------- */
.hlavicka {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--grafit); color: var(--text);
  border-bottom: 1px solid var(--ocel);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav); gap: 24px; }
.znacka { display: flex; flex-direction: column; justify-content: center; text-decoration: none; color: var(--text); line-height: 1; }
.znacka:hover { color: var(--text); }
.znacka-jmeno { font-family: var(--ff-display); font-weight: 700; font-size: 30px; text-transform: uppercase; letter-spacing: 0.02em; }
.znacka-pod { font-size: 11px; color: var(--text-2); margin-top: 4px; display: none; }
@media (min-width: 1024px) { .znacka-pod { display: block; } }
.nav-panel { display: flex; align-items: center; gap: 32px; }
.nav-seznam { display: flex; gap: 28px; }
.nav-seznam a { font-size: 15px; font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-seznam a:hover { color: var(--med); }
.nav-seznam a[aria-current="page"] { border-bottom-color: var(--med); }
.nav-telefon { min-height: 40px; padding: 0 16px; font-size: 15px; }
.nav-tlacitko { display: none; }

@media (max-width: 1023px) {
  .nav-tlacitko {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 56px; height: 56px; margin-right: -12px; background: none; border: 0; cursor: pointer; color: var(--text);
  }
  .nav-linka { display: block; width: 26px; height: 2px; background: currentColor; transition: transform 200ms var(--ease-out); }
  .nav-popis { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-tlacitko[aria-expanded="true"] .nav-linka:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-tlacitko[aria-expanded="true"] .nav-linka:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-panel {
    position: fixed; inset: var(--nav) 0 0 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: var(--grafit); padding: 24px var(--gutter) 40px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    transform: translateX(100%); visibility: hidden;
    transition: transform 240ms var(--ease-out), visibility 0s linear 240ms;
    overflow-y: auto;
  }
  .nav-panel.otevreno { transform: none; visibility: visible; transition-delay: 0s; }
  .nav-seznam { flex-direction: column; gap: 0; }
  .nav-seznam a {
    display: block; font-family: var(--ff-display); font-weight: 600; font-size: 44px; line-height: 1.1;
    padding: 14px 0; border-bottom: 1px solid var(--ocel);
  }
  .nav-seznam a[aria-current="page"] { color: var(--med); border-bottom-color: var(--ocel); }
  .nav-telefon { margin-top: 32px; min-height: 52px; font-size: 18px; width: 100%; }
}
@media (max-width: 767px) { .nav-telefon { display: none; } }
body.menu-otevrene { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: calc(100svh - var(--nav)); min-height: calc(100vh - var(--nav));
  background: var(--grafit); color: var(--text); overflow: hidden;
  display: flex; align-items: stretch;
}
.hero-foto { position: absolute; inset: 0; }
.hero-foto img {
  width: 100%; height: 100%; object-fit: cover; object-position: 72% 45%;
  animation: hero-foto 1400ms var(--ease-out) both;
}
.hero-foto::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 28, 30, 0.92) 0%, rgba(26, 28, 30, 0.72) 50%, rgba(26, 28, 30, 0.3) 100%),
    linear-gradient(0deg, rgba(26, 28, 30, 0.85) 0%, rgba(26, 28, 30, 0) 50%);
}
.hero-mriz {
  position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px;
  padding-top: 88px; padding-bottom: 56px; align-content: end; align-items: end;
}
.hero-nadpis { grid-column: 1 / -1; font-size: clamp(52px, 6.2vw, 92px); line-height: 0.98; animation: vyjet 900ms var(--ease-out) 150ms both; }
.hero-text { grid-column: 1 / span 7; animation: vyjet 900ms var(--ease-out) 250ms both; }
.hero-veta { font-size: 20px; line-height: 1.45; max-width: 30em; color: var(--text); }
.hero-akce { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cedule {
  grid-column: 10 / span 3; justify-self: end; width: 100%; max-width: 360px;
  background: var(--grafit-2); border: 1px solid var(--ocel); padding: 0 24px;
  animation: vyjet 900ms var(--ease-out) 350ms both;
}
.cedule-radek { display: block; padding: 18px 0; border-top: 1px solid var(--ocel); line-height: 1.35; }
.cedule-radek:first-child { border-top: 0; }
.cedule-adresa { color: var(--text-2); }
.cedule-telefon { font-family: var(--ff-display); font-weight: 700; font-size: 40px; line-height: 1; text-decoration: none; color: var(--text); }
.cedule-telefon:hover { color: var(--med); }
.cedule-hodiny { color: var(--text-2); }
.cedule-hodiny strong { color: var(--text); font-weight: 600; }
@media (max-width: 1023px) {
  .hero-text { grid-column: 1 / -1; }
  .cedule { grid-column: 1 / span 7; justify-self: start; margin-top: 8px; max-width: none; }
}
@media (max-width: 767px) {
  .hero { min-height: calc(100svh - var(--nav)); }
  .hero-foto img { object-position: 60% 50%; }
  .hero-mriz { padding-top: 48px; padding-bottom: calc(28px + 56px); row-gap: 20px; }
  .hero-nadpis { font-size: clamp(48px, 13.5vw, 58px); }
  .hero-veta { font-size: 17px; }
  .hero-akce { margin-top: 24px; }
  .cedule { grid-column: 1 / -1; margin-top: 4px; padding: 0 18px; }
  .cedule-adresa { display: none; }
  .cedule-radek { padding: 14px 0; }
  .cedule-telefon { font-size: 36px; }
}
@keyframes hero-foto { from { transform: scale(1.04); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes vyjet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* hero A: cedule u brány. Fotka na výšku tvoří pravý sloupec, vlevo grafitový panel s textem.
   (hero B = fotka přes celou šířku, běží na výše uvedených pravidlech) */
.hero-a .hero-foto { inset: 0 0 0 auto; width: 50%; }   /* text končí vždy 12 px před středem (6 z 12 sloupců) */
.hero-a .hero-foto img { object-position: 50% 50%; }
.hero-a .hero-foto::after { background: linear-gradient(90deg, rgba(26, 28, 30, 0.72) 0%, rgba(26, 28, 30, 0) 24%); }
.hero-a .hero-nadpis { grid-column: 1 / span 6; font-size: clamp(48px, 5.4vw, 80px); }
.hero-a .hero-text { grid-column: 1 / span 6; }
.hero-a .cedule { grid-column: 1 / span 6; justify-self: stretch; max-width: none; padding: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); }
.hero-a .cedule-radek { border-top: 0; border-left: 1px solid var(--ocel); padding: 18px 24px; }
.hero-a .cedule-telefon { order: 1; border-left: 0; }
.hero-a .cedule-hodiny { order: 2; }
.hero-a .cedule-adresa { order: 3; grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ocel); padding: 12px 24px; font-size: 15px; }
.cedule-adresa span { display: block; }
.hero-a .cedule-adresa span { display: inline; }
.hero-a .cedule-adresa span:first-child::after { content: ","; }
/* tablet a mobil: fotka jako pruh nahoře (sloupec by cedulí ořízl), pod ní text */
@media (max-width: 1023px) {
  .hero-a { flex-direction: column; }
  .hero-a .hero-foto { position: relative; inset: auto; flex: 1 1 auto; width: 100%; height: auto; min-height: clamp(170px, 24svh, 300px); }
  .hero-a .hero-foto img { position: absolute; inset: 0; object-position: 50% 53%; }
  .hero-a .hero-foto::after { background: linear-gradient(0deg, rgba(26, 28, 30, 0.85) 0%, rgba(26, 28, 30, 0) 45%); }
  .hero-a .hero-mriz { flex: none; width: 100%; padding-top: 32px; padding-bottom: 40px; row-gap: 20px; }
  .hero-a .hero-nadpis { grid-column: 1 / -1; font-size: clamp(40px, 6.4vw, 60px); }
  .hero-a .hero-text { grid-column: 1 / -1; }
  .hero-a .cedule { grid-column: 1 / span 8; }
  .hero-a .cedule-telefon { font-size: 34px; }
}
@media (max-width: 767px) {
  .hero-a .hero-foto img { object-position: 50% 58%; }
  .hero-a .hero-mriz { padding-top: 24px; padding-bottom: calc(24px + 56px); row-gap: 16px; }
  .hero-a .hero-nadpis { font-size: clamp(38px, 10.6vw, 48px); }
  .hero-a .hero-veta { font-size: 16px; line-height: 1.4; }
  .hero-a .hero-akce { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  .hero-a .hero-akce .tlacitko { min-height: 52px; padding: 8px 10px; font-size: 14px; line-height: 1.15; text-align: center; }
  .hero-a .cedule { grid-column: 1 / -1; margin-top: 0; }
  .hero-a .cedule-radek { padding: 12px 14px; }
  .hero-a .cedule-telefon { font-size: 28px; }
  .hero-a .cedule-hodiny { font-size: 13px; line-height: 1.3; }
}

/* hero B: dvůr přes celou šířku (výchozí od 22. 10.). Fotka má zůstat poznat jako slunečný dvůr,
   ztmavuje se hlavně tam, kde leží text. */
.hero-b .hero-foto::after {
  background:
    linear-gradient(90deg, rgba(26, 28, 30, 0.84) 0%, rgba(26, 28, 30, 0.6) 48%, rgba(26, 28, 30, 0.12) 100%),
    linear-gradient(0deg, rgba(26, 28, 30, 0.72) 0%, rgba(26, 28, 30, 0) 55%);
}
@media (min-width: 1024px) {
  /* cedule zabírá oba řádky, takže odstavec drží pod nadpisem a nečeká na její výšku;
     86 px nadpisu se do 9 sloupců vejde na 2 řádky od 1024 do 1920 */
  .hero-b .hero-nadpis { grid-row: 1; grid-column: 1 / span 9; font-size: clamp(52px, 6vw, 86px); }
  .hero-b .hero-text { grid-row: 2; }
  .hero-b .cedule { grid-row: 1 / span 2; align-self: end; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-b .cedule { padding: 0 18px; }
  .hero-b .cedule-adresa { font-size: 15px; }
}
@media (max-width: 767px) {
  .hero-b .hero-foto::after {
    background: linear-gradient(180deg, rgba(26, 28, 30, 0.5) 0%, rgba(26, 28, 30, 0.72) 35%, rgba(26, 28, 30, 0.82) 100%);
  }
  .hero-b .hero-nadpis { font-size: clamp(40px, 11vw, 52px); }   /* 3 řádky místo 4, nad textem zbude víc dvora */
}

/* ---------- dvě brány ---------- */
.brany { display: grid; grid-template-columns: 1fr 1fr; background: var(--ocel); gap: 1px; }
.brana {
  position: relative; display: block; min-height: 72vh; color: var(--text); text-decoration: none; overflow: hidden; background: var(--grafit);
}
.brana img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.brana::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(26, 28, 30, 0.92) 0%, rgba(26, 28, 30, 0.35) 55%, rgba(26, 28, 30, 0) 100%);
}
.brana-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 var(--gutter) 48px; max-width: 640px; }
.brana-nazev { display: block; font-family: var(--ff-display); font-weight: 700; font-size: clamp(44px, 4.6vw, 64px); line-height: 1; }
.brana-popis { display: block; color: var(--text-2); margin-top: 16px; max-width: 30em; }
.brana-odkaz { display: inline-block; margin-top: 24px; font-weight: 600; border-bottom: 2px solid var(--med); padding-bottom: 2px; transition: color 120ms linear; }
.brana:hover .brana-odkaz { color: var(--med); }
.brana:hover img { transform: scale(1.03); }
.brana:focus-visible { outline-offset: -4px; }
@media (min-width: 1360px) { .brana:first-child .brana-text { padding-left: max(var(--gutter), calc((100vw - var(--obal)) / 2 + var(--gutter))); } }
@media (max-width: 899px) {
  .brany { grid-template-columns: 1fr; }
  .brana { min-height: 60vh; }
  .brana-text { padding-bottom: 32px; }
}

/* ---------- sekce ---------- */
.sekce { padding-block: var(--sekce); }
.sekce-svetla { background: var(--beton); color: var(--ink); }
.sekce-hranice { border-top: 1px solid var(--rule-light); }
.sekce-tmava { background: var(--grafit); color: var(--text); }
.sekce-med { background: var(--med); color: var(--grafit); }
.dvojsloupec { display: grid; grid-template-columns: 5fr 7fr; column-gap: 64px; align-items: start; }
.dvojsloupec-uvod { position: sticky; top: calc(var(--nav) + 40px); }
.dvojsloupec-uvod .perex { margin-bottom: 24px; }
@media (max-width: 1023px) {
  .dvojsloupec { grid-template-columns: 1fr; row-gap: 40px; }
  .dvojsloupec-uvod { position: static; }
}
.pripravit { margin-top: 40px; }
.pripravit h3 { margin-bottom: 16px; }

/* ---------- lístek (fakta, kontakt) ---------- */
.listek { background: var(--papir); border: 1px solid var(--rule-light); }
.listek-radek { padding: 24px; border-top: 1px solid var(--rule-light); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) minmax(0, 1.1fr); column-gap: 32px; align-items: start; counter-increment: fakt; }
.listek-radek:first-child { border-top: 0; }
.listek-nadpis { font-size: 20px; font-weight: 600; line-height: 1.25; }
.listek-text { color: var(--ink-2); }
.listek-zdroj { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.listek-zdroj a { color: var(--med-on-light); }
@media (max-width: 899px) {
  .listek-radek { grid-template-columns: 1fr; row-gap: 8px; padding: 20px; }
}

/* ---------- kroky ---------- */
.kroky { border-top: 1px solid var(--rule-light); }
.krok { display: grid; grid-template-columns: 96px 1fr; column-gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--rule-light); align-items: start; }
.krok-cislo { font-family: var(--ff-display); font-weight: 700; font-size: 84px; line-height: 0.85; color: var(--med-on-light); font-variant-numeric: tabular-nums; }
.krok-text h3 { margin-bottom: 8px; }
.krok-text p { color: var(--ink-2); max-width: 36em; }
@media (max-width: 599px) {
  .krok { grid-template-columns: 64px 1fr; column-gap: 16px; padding: 20px 0; }
  .krok-cislo { font-size: 56px; }
}

/* ---------- tabule surovin ---------- */
.tabule-sekce { padding-bottom: 0; }
.tabule-sekce .tabule-nadpis { margin-bottom: 24px; }
.tabule-sekce .perex { margin-bottom: 56px; }
.tabule { border-top: 1px solid var(--ocel); }
.tabule-radek {
  display: grid; grid-template-columns: 88px minmax(0, 3fr) minmax(0, 5fr) minmax(0, 2fr); column-gap: 32px; align-items: center;
  min-height: 128px; padding: 20px var(--gutter); border-bottom: 1px solid var(--ocel);
  transition: background-color 160ms linear;
  scroll-margin-top: calc(var(--nav) + 16px);
}
@media (min-width: 1408px) { .tabule-radek { padding-inline: calc((100vw - var(--obal)) / 2 + var(--gutter)); } }
.tabule-radek:hover { background: var(--grafit-2); }
.tabule-textura img { width: 88px; height: 88px; object-fit: cover; }
.tabule-nazev h3 { font-family: var(--ff-display); font-weight: 600; font-size: 44px; line-height: 1; transition: color 160ms linear; }
.tabule-radek:hover .tabule-nazev h3 { color: var(--med); }
.tabule-kod { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.tabule-popis { color: var(--text-2); max-width: 34em; }
.tabule-akce { display: flex; flex-direction: column; gap: 10px; justify-self: end; text-align: right; }
.tabule-akce .odkaz { text-decoration-color: var(--med); }
.tabule-akce .odkaz:hover { color: var(--med); }
.tabule-pata { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 40px 96px; }
.tabule-pata p { color: var(--text-2); max-width: 36em; }
@media (max-width: 1023px) { .tabule-pata { padding-bottom: var(--sekce); } }
@media (max-width: 899px) {
  .tabule-radek { grid-template-columns: 64px 1fr; grid-template-rows: auto auto auto; row-gap: 12px; padding-block: 24px; align-items: start; }
  .tabule-textura img { width: 64px; height: 64px; }
  .tabule-nazev h3 { font-size: 36px; }
  .tabule-popis, .tabule-akce { grid-column: 2; }
  .tabule-akce { justify-self: start; text-align: left; flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
  .tabule-pata { flex-direction: column; align-items: flex-start; }
}

/* ---------- praktické + mapa ---------- */
.prakticke { display: grid; grid-template-columns: 5fr 7fr; column-gap: 64px; align-items: start; }
.hodiny { margin: 32px 0 16px; border-top: 1px solid var(--rule-light); }
.hodiny-radek { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--rule-light); }
.hodiny dt { font-weight: 500; }
.hodiny dd { margin: 0; font-family: var(--ff-display); font-weight: 600; font-size: 26px; line-height: 1; }
.mapa { margin: 0; }
.mapa-odkaz { display: block; border: 1px solid var(--rule-light); }
.mapa img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.strana-kontakt .prakticke { align-items: stretch; }
.strana-kontakt .mapa { display: flex; flex-direction: column; }
.strana-kontakt .mapa-odkaz { flex: 1; min-height: 420px; }
.strana-kontakt .mapa img { height: 100%; aspect-ratio: auto; }
.strana-kontakt .kontakt-udaje dd.velke a { font-family: var(--ff-display); font-weight: 700; font-size: 34px; line-height: 1.05; }
.mapa figcaption { font-size: 13px; color: var(--ink-2); margin-top: 12px; }
@media (max-width: 1023px) { .prakticke { grid-template-columns: 1fr; row-gap: 40px; } .mapa img { aspect-ratio: 4 / 3; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule-light); }
.faq-polozka { border-bottom: 1px solid var(--rule-light); }
.faq-otazka {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 0; cursor: pointer; list-style: none; font-size: 20px; font-weight: 600; line-height: 1.3;
}
.faq-otazka::-webkit-details-marker { display: none; }
.faq-otazka:hover { color: var(--med-on-light); }
.faq-znak { position: relative; flex: none; width: 20px; height: 20px; }
.faq-znak::before, .faq-znak::after { content: ""; position: absolute; background: currentColor; left: 50%; top: 50%; transform: translate(-50%, -50%); transition: transform 200ms var(--ease-out); }
.faq-znak::before { width: 18px; height: 2px; }
.faq-znak::after { width: 2px; height: 18px; }
.faq-polozka[open] .faq-znak::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-odpoved { padding: 0 44px 24px 0; color: var(--ink-2); max-width: 68ch; }
.faq-odpoved p + p { margin-top: 0.8em; }
.faq-odpoved a { color: var(--med-on-light); }

/* ---------- kontaktní pás (měď) ---------- */
.kontakt-pas { display: grid; grid-template-columns: 5fr 7fr; column-gap: 64px; align-items: end; }
.kontakt-pas h2 { margin-bottom: 20px; }
.kontakt-pas-text p { max-width: 30em; }
.kontakt-pas-cisla { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.kontakt-cislo { font-family: var(--ff-display); font-weight: 700; font-size: clamp(56px, 7vw, 96px); line-height: 0.95; text-decoration: none; color: var(--grafit); }
.kontakt-cislo-mensi { font-size: clamp(36px, 4vw, 56px); }
.kontakt-cislo:hover, .kontakt-mail:hover { color: var(--grafit); text-decoration: underline; text-decoration-thickness: 3px; }
.kontakt-mail { font-size: 22px; font-weight: 600; margin-top: 12px; color: var(--grafit); }
@media (max-width: 1023px) { .kontakt-pas { grid-template-columns: 1fr; row-gap: 32px; } }

/* ---------- kontaktní lístek ---------- */
.kontakt-listek { padding: 32px; }
.kontakt-listek-nazev { font-family: var(--ff-display); font-weight: 700; font-size: 34px; line-height: 1.05; margin-bottom: 24px; }
.kontakt-udaje { margin: 0; border-top: 1px solid var(--rule-light); }
.kontakt-udaje > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-light); }
.kontakt-udaje dt { font-size: 14px; font-weight: 600; color: var(--ink-2); padding-top: 4px; }
.kontakt-udaje dd { margin: 0; font-size: 18px; line-height: 1.4; }
.kontakt-udaje dd a { text-decoration: none; font-weight: 600; }
.kontakt-udaje dd a:hover { text-decoration: underline; }
.kontakt-akce { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 599px) {
  .kontakt-listek { padding: 20px; }
  .kontakt-udaje > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- formulář ---------- */
.formular { background: var(--beton-2); padding: 32px; border: 1px solid var(--rule-light); }
.formular fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.formular legend { font-size: 15px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.prepinace { display: flex; border: 1px solid var(--ink); }
.prepinac { flex: 1; position: relative; }
.prepinac input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.prepinac span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 12px; text-align: center; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; border-left: 1px solid var(--ink); transition: background-color 120ms linear, color 120ms linear; }
.prepinac:first-child span { border-left: 0; }
.prepinac input:checked + span { background: var(--grafit); color: var(--text); }
.prepinac input:focus-visible + span { outline: 2px solid var(--med); outline-offset: -4px; }
.pole-mriz { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.pole { display: flex; flex-direction: column; }
.pole-cele { grid-column: 1 / -1; }
.pole label, .souhlas { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.pole input, .pole textarea {
  font: inherit; color: var(--ink); background: var(--papir); border: 1px solid var(--rule-light); border-radius: 0;
  min-height: 52px; padding: 12px 14px; width: 100%;
}
.pole textarea { min-height: 140px; resize: vertical; }
.pole input::placeholder, .pole textarea::placeholder { color: var(--ink-2); opacity: 1; }
.pole input:focus-visible, .pole textarea:focus-visible { outline: 2px solid var(--med); outline-offset: 0; border-color: var(--med); }
.pole input[type="file"] { padding: 10px 14px; min-height: 0; }
.pole input[type="file"]::file-selector-button { font: inherit; font-weight: 600; background: var(--grafit); color: var(--text); border: 0; padding: 8px 14px; margin-right: 12px; cursor: pointer; }
.pole-napoveda { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.pole-chyba { font-size: 14px; font-weight: 600; color: var(--med-on-light); margin-top: 6px; }
.pole.chybne input, .pole.chybne textarea { border: 2px solid var(--med-on-light); }
.souhlas { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-top: 24px; font-weight: 400; }
.souhlas input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--med-on-light); }
.souhlas a { color: var(--med-on-light); }
.formular-pata { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 24px; }
.formular-stav { font-weight: 600; }
.formular-stav:empty { display: none; }
.past { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 599px) {
  .formular { padding: 20px; }
  .pole-mriz { grid-template-columns: 1fr; }
  .prepinace { flex-direction: column; }
  .prepinac span { border-left: 0; border-top: 1px solid var(--ink); }
  .prepinac:first-child span { border-top: 0; }
}

/* ---------- podstránky ---------- */
.strana-hlava { position: relative; background: var(--grafit); color: var(--text); overflow: hidden; display: flex; flex-direction: column; }
.strana-hlava-foto { min-height: calc(100svh - var(--nav)); min-height: calc(100vh - var(--nav)); }
@supports (height: 100svh) { .strana-hlava-foto { min-height: calc(100svh - var(--nav)); } }
.uvod-plny { display: flex; flex-direction: column; min-height: calc(100svh - var(--nav)); }
@supports not (height: 100svh) { .uvod-plny { min-height: calc(100vh - var(--nav)); } }
.uvod-plny > .sekce { flex: 1; }
.strana-hlava .strana-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.strana-hlava::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(26, 28, 30, 0.9) 0%, rgba(26, 28, 30, 0.6) 55%, rgba(26, 28, 30, 0.3) 100%), linear-gradient(0deg, rgba(26, 28, 30, 0.8) 0%, rgba(26, 28, 30, 0) 60%);
}
.strana-hlava-obsah { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 96px; padding-bottom: 64px; }
.strana-hlava .perex { margin-top: 24px; color: var(--text); max-width: 32em; }
.strana-hlava .hero-akce { margin-top: 32px; }
.strana-hlava-bez { background: var(--grafit); }
.strana-hlava-bez .strana-hlava-obsah { padding-top: 72px; padding-bottom: 48px; }
.strana-prazdna { flex: 1; }
.strana-prazdna .strana-hlava-obsah { justify-content: center; }
@media (max-width: 767px) { .strana-hlava-obsah { padding-top: 56px; padding-bottom: calc(32px + 56px); } .strana-hlava-bez .strana-hlava-obsah { padding-bottom: 40px; } }

.text-blok { max-width: 68ch; }
.text-blok h2 { margin-top: 0; }
.text-blok h3 { margin: 32px 0 12px; }
.text-blok p + h3 { margin-top: 32px; }
.text-blok ul { margin: 16px 0; }
.text-blok p { color: var(--ink); }
.text-blok .tichy, .text-blok .poznamka { color: var(--ink-2); }
.text-blok a { color: var(--med-on-light); }

.foto-blok { margin: 0; }
.foto-blok img { width: 100%; height: auto; }
.foto-blok figcaption { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.sekce-tmava .foto-blok figcaption { color: var(--text-2); }
/* dotykové cíle na mobilu: odkazy a pole aspoň 44 px vysoké */
@media (max-width: 767px) {
  .paticka-adresa a, .paticka-spodek a, .tabule-akce .odkaz, .dvojsloupec-uvod > p > .odkaz,
  .kontakt-cislo, .kontakt-mail, .akce-radek .odkaz, .kontakt-udaje dd a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .znacka { min-height: 44px; min-width: 44px; }
  .listek-zdroj a { display: inline-block; padding-block: 14px; }
  .pole label { padding-block: 11px 10px; margin-bottom: 0; }
  .pole input[type="file"] { min-height: 44px; }
}
.foto-dvojice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.foto-dvojice img { display: block; width: 100%; height: auto; }
@media (max-width: 599px) { .foto-dvojice { grid-template-columns: 1fr; } }

.materialy { border-top: 1px solid var(--rule-light); }
.materialy li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 32px; padding: 16px 0; border-bottom: 1px solid var(--rule-light); }
.materialy li b { font-weight: 600; }
.materialy li span { color: var(--ink-2); }
@media (max-width: 599px) { .materialy li { grid-template-columns: 1fr; row-gap: 4px; } }

.cta-pas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-pas h2 { margin-bottom: 0; max-width: 14em; }

/* ---------- patička ---------- */
.paticka { background: var(--grafit); color: var(--text-2); padding-block: 64px 32px; border-top: 1px solid var(--ocel); }
.paticka-mriz { display: grid; grid-template-columns: 7fr 5fr; column-gap: 48px; row-gap: 24px; align-items: end; }
.paticka-nazev { color: var(--text); font-family: var(--ff-display); font-weight: 700; font-size: 28px; line-height: 1.05; margin-bottom: 16px; }
.paticka-adresa { line-height: 1.6; }
.paticka a { text-decoration: none; }
.paticka a:hover { color: var(--med); text-decoration: underline; }
.paticka-meta { font-size: 15px; line-height: 1.6; }
.paticka-spodek { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--ocel); font-size: 13px; }
.paticka-spodek p { max-width: none; }
.paticka-spodek p + p { margin-top: 8px; }
@media (max-width: 899px) { .paticka-mriz { grid-template-columns: 1fr; } }

/* ---------- sticky lišta (mobil) ---------- */
.lista {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-lista);
  grid-template-columns: 1fr 1fr; background: var(--grafit); border-top: 1px solid var(--ocel);
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform 240ms var(--ease-out);
}
.lista-skryta { transform: translateY(110%); }
.lista-tlacitko { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; font-weight: 600; text-decoration: none; }
.lista-volat { background: var(--med); color: var(--grafit); }
.lista-navigovat { background: var(--grafit-2); color: var(--text); }
@media (max-width: 767px) { .lista { display: grid; } }

/* ---------- odhalení při scrollu ---------- */
html.js [data-odhal] { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
html.js [data-odhal].odhaleno { opacity: 1; transform: none; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-foto img, .hero-text, .cedule { animation: none; }
  .brana img, .brana:hover img { transition: none; transform: none; }
  html.js [data-odhal] { opacity: 1; transform: none; transition: none; }
  .nav-panel, .lista, .nav-linka, .faq-znak::before, .faq-znak::after { transition: none; }
}

/* seznam na tmavé */
.seznam-tmavy li { border-color: var(--ocel); color: var(--text-2); }
.seznam-tmavy li::before { background: var(--med); }
