/* LORIAS Invest a.s. – návrh v5 (24. 11. 2026, Wextra)
   Civilnější verze návrhu v4 (ORYZO): stejné barvy teplé tmy a krému, ale běžná typografie
   (věty místo verzálek, plné tenké linky), méně efektů a úvod s motivem stavby.
   Pozadí se střídá tmavé / světlé: každá sekce má data-tema a při posunu se barvy celé stránky
   plynule prolnou (proměnné registrované přes @property, přechod řídí web.js). */

@property --bg      { syntax: "<color>"; inherits: true; initial-value: #100904; }
@property --fg      { syntax: "<color>"; inherits: true; initial-value: #ffedd7; }
@property --muted   { syntax: "<color>"; inherits: true; initial-value: #b9a891; }
@property --line    { syntax: "<color>"; inherits: true; initial-value: #3a2e24; }
@property --plocha  { syntax: "<color>"; inherits: true; initial-value: #1b120b; }
@property --akcent  { syntax: "<color>"; inherits: true; initial-value: #ff7a33; }

:root {
  /* tmavé téma (výchozí) */
  --bg: #100904;
  --fg: #ffedd7;
  --muted: #b9a891;
  --line: #3a2e24;
  --plocha: #1b120b;
  --akcent: #ff7a33;        /* oranžová na malý text, kontrast 6,9 : 1 na tmavé */

  --walnut: #100904;
  --cream: #ffedd7;
  --ember: #dc5000;

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(18px, 4vw, 56px);
  --r: 12px;
  --ease: cubic-bezier(.2, .75, .1, 1);
  --prechod: .85s;

  transition: --bg var(--prechod) var(--ease), --fg var(--prechod) var(--ease), --muted var(--prechod) var(--ease),
              --line var(--prechod) var(--ease), --plocha var(--prechod) var(--ease), --akcent var(--prechod) var(--ease);
}
/* světlé téma: teplý papír */
:root.svetle {
  --bg: #f3ebe0;
  --fg: #1c130b;
  --muted: #6b5b4b;
  --line: #d9ccbb;
  --plocha: #ebe1d3;
  --akcent: #b04500;        /* kontrast 5,7 : 1 na papíru */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-feature-settings: "ss01" on, "cv11" on;
  font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--akcent); outline-offset: 3px; }
::selection { background: var(--ember); color: #fff; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 36px; }
.skip:focus { left: 8px; }

/* ---------- Typografie ---------- */

.stitek {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 12px; line-height: 1.2; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.stitek::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); flex: none; }
.nadpis { font-size: clamp(32px, 4vw, 56px); line-height: 1.06; font-weight: 500; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.vetsi { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; }
.tlumene { color: var(--muted); }
.todo { background: #FFF1A8; color: #4A3B00; padding: 1px 6px; font-size: 12px; border-radius: 3px; font-weight: 500; }
figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- Tlačítka a odkazy ---------- */

.akce { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.tlacitko {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 40px;
  border: 1px solid var(--fg); color: var(--fg); background: transparent; text-decoration: none;
  font-size: 15px; font-weight: 500; line-height: 1;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.tlacitko:hover { background: var(--fg); color: var(--bg); }
.tlacitko--plne { background: var(--fg); color: var(--bg); }
.tlacitko--plne:hover { background: transparent; color: var(--fg); }
.tlacitko svg { width: 12px; height: 12px; transition: transform .4s var(--ease); }
.tlacitko:hover svg { transform: translateX(3px); }
.podtrzeni { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .45s var(--ease); }
.podtrzeni:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Navigace ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gut); font-size: 14px; color: var(--fg);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), transform .45s var(--ease);
}
.nav--plna {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav__znacka { text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: .04em; display: flex; align-items: baseline; gap: 10px; }
.nav__znacka span { font-weight: 400; letter-spacing: 0; color: var(--muted); font-size: 14px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav__odkazy { display: flex; gap: clamp(14px, 2.2vw, 32px); }
.nav__odkazy a { text-decoration: none; padding: 4px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.nav__odkazy a:hover, .nav__odkazy a.aktivni { background-size: 100% 1px; }
.nav__odkazy { align-items: center; }
.nav__odkazy a.nav__tlacitko {
  padding: 8px 18px; border: 1px solid var(--fg); border-radius: 40px; background-image: none; font-weight: 500;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.nav__odkazy a.nav__tlacitko:hover, .nav__odkazy a.nav__tlacitko.aktivni { background-color: var(--fg); color: var(--bg); }
.nav__odkazy .kratke { display: none; }
@media (max-width: 720px) {
  .nav__odkazy .volitelne { display: none; } .nav__znacka span { display: none; }
  .nav__odkazy .dlouhe { display: none; } .nav__odkazy .kratke { display: inline; }
  .nav__odkazy a.nav__tlacitko { padding: 7px 14px; }
}

/* ---------- Úvod ---------- */

.hero {
  position: relative; min-height: max(100svh, 680px); display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--cream); overflow: hidden; isolation: isolate;
}
.hero__foto { position: absolute; inset: 0; z-index: -2; }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.06); transition: transform 2.6s var(--ease); }
.nacteno .hero__foto img { transform: none; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(16,9,4,.82) 0%, rgba(16,9,4,.55) 38%, rgba(16,9,4,.08) 72%),
    linear-gradient(180deg, rgba(16,9,4,.5) 0%, rgba(16,9,4,0) 22%, rgba(16,9,4,0) 55%, rgba(16,9,4,.75) 100%);
}
.hero__obsah { padding: 140px var(--gut) clamp(40px, 7vh, 80px); max-width: 1120px; }
.hero .stitek { color: rgba(255, 237, 215, .78); }
.hero__nadpis { font-size: clamp(40px, 6vw, 88px); line-height: 1.02; font-weight: 500; letter-spacing: -.025em; margin: 0; }
.hero__nadpis span { display: block; }
@media (max-width: 700px) { .hero__nadpis span { display: inline; } }
.hero__text { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: rgba(255, 237, 215, .86); }
.hero .tlacitko { border-color: var(--cream); color: var(--cream); }
.hero .tlacitko:hover { background: var(--cream); color: var(--walnut); }
.hero .tlacitko--plne { background: var(--cream); color: var(--walnut); }
.hero .tlacitko--plne:hover { background: transparent; color: var(--cream); }
.hero__popisek { position: absolute; right: var(--gut); bottom: calc(var(--fakta-v, 104px) + 14px); font-size: 12px; color: rgba(255, 237, 215, .72); text-align: right; max-width: 40ch; }
.hero__fakta {
  margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 237, 215, .22);
  background: rgba(16, 9, 4, .5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hero__fakta div { padding: 18px var(--gut) 22px; border-left: 1px solid rgba(255, 237, 215, .14); }
.hero__fakta div:first-child { border-left: 0; }
.hero__fakta dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 237, 215, .7); }
.hero__fakta dd { margin: 6px 0 0; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hero__fakta dd.ico { font-size: clamp(20px, 1.9vw, 28px); padding-top: .25em; }

/* Načtení úvodu: jen jemné vynoření */
.js .hero__obsah > * { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero__obsah > :nth-child(2) { transition-delay: .08s; }
.js .hero__obsah > :nth-child(3) { transition-delay: .16s; }
.js .hero__obsah > :nth-child(4) { transition-delay: .24s; }
.nacteno .hero__obsah > * { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero__fakta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__fakta div:nth-child(3) { border-left: 0; }
  .hero__fakta div:nth-child(n+3) { border-top: 1px solid rgba(255, 237, 215, .14); }
  .hero__popisek { display: none; }
  .hero::before { background: linear-gradient(180deg, rgba(16,9,4,.5) 0%, rgba(16,9,4,.5) 25%, rgba(16,9,4,.9) 85%); }
}

/* ---------- Sekce ---------- */

.sekce { position: relative; padding: clamp(88px, 13vh, 160px) var(--gut); }
.mrizka { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38%) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.mrizka__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.mrizka__text { align-self: end; }
.mrizka__hlava .vetsi, .projekty__hlava .vetsi { margin-top: 22px; }
.projekty__hlava .vetsi { margin-top: 0; }
.mrizka__text p + p { margin-top: 1em; }
.mrizka--overeni, .mrizka--info { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
@media (max-width: 960px) {
  .mrizka, .mrizka--overeni, .mrizka--info { grid-template-columns: 1fr; gap: 36px; }
  .mrizka__foto img { aspect-ratio: 4 / 3; }
}

.cinnosti { list-style: none; margin: 32px 0 0; padding: 0; }
.cinnosti li { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.cinnosti li:last-child { border-bottom: 1px solid var(--line); }
.cinnosti b { font-weight: 500; }
.cinnosti span { color: var(--muted); }

/* Odhalování: krátké a nenápadné */
.js [data-odhal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-odhal].videt { opacity: 1; transform: none; }

/* Záznam z rejstříku */
.zaznam { border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 2.6vw, 36px); background: var(--plocha); }
.zaznam__hlava { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.zaznam__firma { margin: 26px 0 8px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.01em; }
.zaznam dl { margin: 18px 0 0; }
.zaznam dl div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 30px; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.zaznam dt { font-size: 14px; color: var(--muted); }
.zaznam dd { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 500; font-variant-numeric: tabular-nums; }
.kop {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer;
  display: grid; place-items: center; transition: background-color .3s, color .3s, border-color .3s;
}
.kop:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.kop.hotovo { background: var(--ember); border-color: var(--ember); color: #fff; }
.kop svg { width: 12px; height: 12px; }

.hlaska {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; background: var(--fg); color: var(--bg); padding: 12px 20px; border-radius: 36px; font-size: 14px;
  visibility: hidden; transform: translate(-50%, calc(100% + 40px)); transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.hlaska.videt { visibility: visible; transform: translate(-50%, 0); transition: transform .45s var(--ease), visibility 0s; }

/* ---------- O společnosti: statement, text, lidé, základní údaje ---------- */

.onas__statement {
  max-width: 21ch; margin: 0; font-size: clamp(36px, 5.2vw, 76px); line-height: 1.04; font-weight: 500; letter-spacing: -.028em; text-wrap: balance;
}
.onas__mrizka { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); margin-top: clamp(48px, 8vh, 96px); align-items: start; }
.onas__text p + p { margin-top: 1.1em; color: var(--muted); }
.lide { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.lide__nadpis { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.lide__seznam { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.lide__seznam li { display: flex; align-items: center; gap: 14px; }
.lide__monogram {
  width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 600; letter-spacing: .04em;
}
.lide__seznam b { display: block; font-weight: 500; }
.lide__seznam small { display: block; font-size: 14px; color: var(--muted); }
.zakladni { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: clamp(56px, 9vh, 104px) 0 0; border-top: 1px solid var(--fg); }
.zakladni div { padding: 16px 18px 0 0; }
.zakladni div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.zakladni dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.zakladni dd { margin: 8px 0 0; font-size: clamp(18px, 1.7vw, 26px); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
@media (max-width: 900px) {
  .onas__mrizka { grid-template-columns: 1fr; }
  .lide { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .zakladni { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .zakladni div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .zakladni div:last-child { grid-column: 1 / -1; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .zakladni { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zakladni div:nth-child(odd) { border-left: 1px solid var(--line); padding-left: 18px; }
  .zakladni div:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .zakladni div:last-child { grid-column: auto; }
}

/* Nadpisy po slovech: slova vyjedou zespodu, když nadpis vjede do okna */
.js [data-slova] .slovo { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-slova] .slovo > i { display: inline-block; font-style: normal; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.js [data-slova].videt .slovo > i { transform: none; }

/* ---------- Projekty ---------- */

/* Kdo jsme i Projekty jsou světlé: oddělí je tenká linka */
.sekce.projekty::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); border-top: 1px solid var(--line); }
.projekty__hlava { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(44px, 7vh, 80px); }
@media (max-width: 900px) { .projekty__hlava { grid-template-columns: 1fr; } }

/* Dlaždice s parametry a štítky (společné pro aktuální i dokončené projekty) */
.dlazdice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 24px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.dlazdice div { background: var(--bg); padding: 14px 16px 16px; }
.dlazdice dt { font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.dlazdice dd { margin: 6px 0 0; font-size: clamp(24px, 2.2vw, 34px); line-height: 1; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dlazdice dd.rozsah { font-size: clamp(20px, 1.75vw, 28px); padding-top: .12em; }
.dlazdice--siroka { grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr) minmax(0, 1fr); }
.dlazdice dd small { font-size: .5em; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.stitky { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; }
.stitky li { font-size: 13px; padding: 6px 12px; border-radius: 30px; border: 1px solid var(--line); color: var(--muted); }

/* Aktuální projekt: oddělený panel nad seznamem */
.aktualni {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(14px, 1.6vw, 22px); border: 1px solid var(--line); border-radius: calc(var(--r) + 8px); background: var(--plocha);
}
.aktualni__foto { position: relative; }
.aktualni__foto img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }
.aktualni__foto figcaption { position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 6px 12px; border-radius: 30px; background: rgba(16, 9, 4, .6); color: var(--cream); font-size: 12px; }
.aktualni__text { padding: clamp(6px, 1.5vw, 20px) clamp(6px, 1.5vw, 24px) clamp(6px, 1.5vw, 20px) 0; }
.aktualni__nazev { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; margin: 14px 0 14px; }
.aktualni .dlazdice div { background: var(--plocha); }
.odznak { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px; border-radius: 30px; background: rgba(58, 154, 91, .14); color: #7fd19b; font-size: 13px; font-weight: 500; }
:root.svetle .odznak { color: #23703f; }
.odznak i { width: 7px; height: 7px; border-radius: 50%; background: #3a9a5b; box-shadow: 0 0 0 0 rgba(58, 154, 91, .6); animation: dech 2.4s infinite; }
@keyframes dech { 0% { box-shadow: 0 0 0 0 rgba(58, 154, 91, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(58, 154, 91, 0); } }
@media (max-width: 900px) {
  .aktualni { grid-template-columns: 1fr; }
  .aktualni__text { padding: 4px 6px 10px; }
}

/* Seznam dokončených projektů: stejný grid pro všechny */
.seznam { position: relative; margin-top: clamp(72px, 11vh, 128px); }
.seznam__hlava { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--fg); }
.seznam__hlava h3 { margin: 0; font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.015em; }
.seznam__hlava span { font-size: 14px; }
.seznam__kolej { position: absolute; left: 0; top: 74px; bottom: 0; width: 1px; background: var(--line); }
.seznam__kolej i { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--akcent); transform-origin: top; transform: scaleY(var(--postup, 0)); }

.pr {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 3.5vw, 56px); align-items: start;
  padding: clamp(36px, 6vh, 64px) 0 clamp(36px, 6vh, 64px) clamp(18px, 2vw, 28px); border-bottom: 1px solid var(--line);
}
.pr__cislo > span { display: block; font-size: clamp(34px, 3.4vw, 52px); line-height: 1; font-weight: 500; letter-spacing: -.03em; color: var(--muted); transition: color .5s var(--ease); font-variant-numeric: tabular-nums; }
.pr.aktivni .pr__cislo > span { color: var(--fg); }
.pr__cislo small { display: block; margin-top: 10px; font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--akcent); }
.pr__nazev { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; font-weight: 500; letter-spacing: -.018em; margin: 0 0 6px; }
.pr__misto { font-size: 15px; color: var(--muted); }
.pr__popis { margin-top: 16px; max-width: 36em; }
.pr__foto { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--plocha); }
.pr__foto img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); transform: translateY(var(--posun, 0)); will-change: transform; }
.pr__foto img.aktivni { opacity: 1; }
.stavy {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; gap: 2px; padding: 3px; border-radius: 30px;
  background: rgba(16, 9, 4, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.stavy button { border: 0; background: transparent; color: var(--cream); font: 500 13px/1 var(--font); padding: 9px 14px; border-radius: 30px; cursor: pointer; transition: background-color .3s, color .3s; }
.stavy button:hover { background: rgba(255, 237, 215, .14); }
.stavy button[aria-pressed="true"] { background: var(--cream); color: var(--walnut); }
.pr .podtrzeni { white-space: nowrap; }

/* Fotky se při vjetí do okna odkryjí zespodu */
.js [data-zjev] { clip-path: inset(14% 0 0 0 round var(--r)); transition: clip-path 1.2s var(--ease); }
.js [data-zjev] img { scale: 1.08; transition: opacity .6s var(--ease), scale 1.4s var(--ease); }
.js [data-zjev].videt { clip-path: inset(0 0 0 0 round var(--r)); }
.js [data-zjev].videt img { scale: 1; }

/* Tablet na šířku a menší notebooky: číslo nad textem, fotka vpravo přes celou výšku */
@media (min-width: 961px) and (max-width: 1240px) {
  .pr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: auto 1fr; row-gap: 14px; }
  .pr__cislo { grid-column: 1; grid-row: 1; display: flex; align-items: baseline; gap: 14px; }
  .pr__cislo small { margin: 0; }
  .pr__text { grid-column: 1; grid-row: 2; }
  .pr__foto { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .zakladni dd { font-size: 19px; }
}
@media (max-width: 960px) {
  .pr { grid-template-columns: 64px minmax(0, 1fr); }
  .pr__foto { grid-column: 1 / -1; grid-row: 1; }
  .pr__cislo > span { font-size: 32px; }
  .stavy button { padding: 8px 11px; font-size: 12px; }
}
@media (max-width: 560px) {
  .pr { grid-template-columns: 1fr; padding-left: 16px; gap: 18px; }
  .dlazdice dd.rozsah { font-size: 18px; padding-top: .2em; }
  .dlazdice--siroka { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dlazdice--siroka div:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .stavy button { min-height: 38px; padding: 0 14px; }
  .nav__odkazy a { padding: 8px 0; }
  .nav__odkazy a.nav__tlacitko { padding: 8px 14px; }
  .paticka__radek nav a { display: inline-block; padding: 6px 0; }
  .dlazdice dt { font-size: 11px; }
  .pr__cislo { display: flex; align-items: baseline; gap: 12px; }
  .pr__cislo small { margin: 0; }
  .dlazdice div { padding: 12px 10px 13px; }
  .dlazdice dd { font-size: 22px; }
}

/* ---------- Údaje o společnosti (rejstřík) ---------- */

.udaje-sekce { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.udaje-sekce .vetsi { margin-top: 22px; }
@media (max-width: 960px) { .udaje-sekce { grid-template-columns: 1fr; } }
.odkazy-dlazdice { list-style: none; margin: clamp(48px, 8vh, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.odkazy-dlazdice a {
  position: relative; display: block; height: 100%; padding: 20px 48px 22px 20px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.odkazy-dlazdice a:hover { background: var(--plocha); border-color: var(--fg); transform: translateY(-2px); }
.odkazy-dlazdice b { display: block; font-weight: 500; font-size: 17px; }
.odkazy-dlazdice small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.odkazy-dlazdice svg { position: absolute; right: 20px; top: 24px; width: 13px; height: 13px; transition: transform .35s var(--ease); }
.odkazy-dlazdice a:hover svg { transform: translateX(3px); }
@media (max-width: 960px) { .odkazy-dlazdice { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .odkazy-dlazdice { grid-template-columns: 1fr; } }

/* Informace a kontakt */
.seznam-odkazu { list-style: none; margin: 0; padding: 0; }
.seznam-odkazu a { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; transition: color .3s, padding-left .45s var(--ease); }
.seznam-odkazu li:last-child a { border-bottom: 1px solid var(--line); }
.seznam-odkazu a:hover { color: var(--akcent); padding-left: 8px; }
.seznam-odkazu small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: auto; }
.seznam-odkazu svg { width: 14px; height: 14px; flex: none; }
.stav { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; font-size: 16px; }
.stav small { display: block; margin-top: 4px; font-size: 13px; }
.stav i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3a9a5b; margin-top: .55em; }

.sekce--kontakt { padding-bottom: clamp(64px, 10vh, 120px); }
.kontakt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 48px); margin: 40px 0 0; }
.kontakt div { border-top: 1px solid var(--line); padding-top: 14px; }
.kontakt dt { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.kontakt dd { margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.35; font-weight: 500; }
@media (max-width: 760px) { .kontakt { grid-template-columns: 1fr; } }

/* Patička */
.paticka { padding: 0 var(--gut) var(--gut); }
.paticka__znacka { font-size: clamp(80px, 22vw, 380px); line-height: .8; font-weight: 500; letter-spacing: -.02em; margin: 0 0 0 -.04em; white-space: nowrap; overflow: hidden; }
.paticka__radek { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.paticka__radek nav { display: flex; gap: 20px; flex-wrap: wrap; }
.paticka__radek a { text-decoration: none; }
.paticka__radek a:hover { color: var(--akcent); }
.pravni { font-size: 12px; line-height: 1.5; color: var(--muted); max-width: 70em; margin-top: 14px; }

/* ---------- Podstránka ---------- */

.hlava-podstranky { padding: 150px var(--gut) clamp(56px, 9vh, 96px); }
.hlava-podstranky h1 { font-size: clamp(44px, 7vw, 104px); line-height: 1; font-weight: 500; letter-spacing: -.025em; margin: 0; }
.hlava-podstranky .vetsi { max-width: 36em; margin-top: 24px; color: var(--muted); }

.obsah { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 18px clamp(24px, 6vw, 96px); padding: clamp(72px, 10vh, 120px) var(--gut) clamp(88px, 13vh, 160px); }
.obsah__nav { position: sticky; top: 96px; align-self: start; font-size: 15px; }
.obsah__nav ol { list-style: none; margin: 0; padding: 0; }
.obsah__nav a { display: block; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--muted); transition: color .3s, padding-left .4s var(--ease); }
.obsah__nav li:last-child a { border-bottom: 1px solid var(--line); }
.obsah__nav a:hover { color: var(--fg); }
.obsah__nav a.aktivni { color: var(--fg); padding-left: 16px; position: relative; font-weight: 500; }
.obsah__nav a.aktivni::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ember); }
.obsah section { scroll-margin-top: 90px; }
.obsah section + section { margin-top: clamp(72px, 11vh, 128px); }
.obsah h2 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; font-weight: 500; letter-spacing: -.015em; margin: 0 0 22px; }
.obsah .vetsi { max-width: 34em; margin-bottom: 24px; }
@media (max-width: 900px) { .obsah { grid-template-columns: 1fr; } .obsah__nav { display: none; } }

.tabulka { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabulka th, .tabulka td { text-align: left; vertical-align: top; padding: 14px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.tabulka tr:last-child th, .tabulka tr:last-child td { border-bottom: 1px solid var(--line); }
.tabulka th { width: 36%; font-weight: 400; color: var(--muted); padding-right: 18px; }
.tabulka td { font-weight: 500; font-variant-numeric: tabular-nums; }
.tabulka td.akce { width: 36px; text-align: right; padding: 9px 0; margin: 0; display: table-cell; }
@media (max-width: 560px) {
  .tabulka, .tabulka tbody { display: block; width: 100%; }
  .tabulka tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-top: 1px solid var(--line); }
  .tabulka tr:last-child { border-bottom: 1px solid var(--line); }
  .tabulka th, .tabulka td { display: block; width: auto; border: 0 !important; padding: 0; }
  .tabulka tr { column-gap: 12px; }
  .tabulka th { grid-column: 1; grid-row: 1; margin-bottom: 4px; font-size: 14px; }
  .tabulka td { grid-column: 1; }
  .tabulka td.akce { display: block; grid-row: 1 / 3; grid-column: 2; align-self: center; }
}

.panel { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; background: var(--plocha); }
.panel .stav { margin-top: 0; }

/* ---------- Omezený pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root { transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js [data-odhal], .js .hero__obsah > * { opacity: 1; transform: none; }
  .js [data-slova] .slovo > i { transform: none; }
  .js [data-zjev] { clip-path: none; }
  .js [data-zjev] img { scale: 1; }
  .pr__foto img { transform: none; }
  .hero__foto img { transform: none; }
}
