/* =========================================================
   Malířství Jan Engler – styly
   Barvy a písma se mění na jednom místě: v :root níže.
   ========================================================= */

:root {
  --papir: #f7f3ec;          /* hlavní pozadí */
  --papir-2: #efe7da;        /* tmavší pozadí sekcí */
  --bila: #fffdf9;           /* karty, formulář */
  --inkoust: #1d2b2a;        /* hlavní text */
  --text-2: #50605d;         /* vedlejší text */
  --hlavni: #1f5f58;         /* hlavní barva – tmavá petrolejová */
  --hlavni-tmava: #15433e;
  --hlavni-svetla: #dcebe7;
  --okr: #e2a63b;            /* akcent – okrová */
  --okr-svetla: rgba(226, 166, 59, .45);
  --cara: #ddd2c2;
  --chyba: #b3261e;
  --uspech: #1f7a4a;

  --patkove: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --bezpatkove: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --zaobleni: 20px;
  --stin: 0 1px 2px rgba(29, 43, 42, .06), 0 12px 32px -12px rgba(29, 43, 42, .18);
  --vyska-hlavicky: 76px;
}

/* ---------- základ ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--vyska-hlavicky) + 12px);
  -webkit-text-size-adjust: 100%;
  /* pojistka: stránka se nikdy nesmí posouvat do strany */
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html { overflow-x: clip; }
}

body {
  margin: 0;
  font-family: var(--bezpatkove);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--inkoust);
  background: var(--papir);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--patkove);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--hlavni); text-underline-offset: .18em; }
a:hover { color: var(--hlavni-tmava); }

:focus-visible { outline: 3px solid var(--okr); outline-offset: 3px; border-radius: 6px; }

.kontejner { width: min(1160px, 100% - 32px); margin-inline: auto; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.preskocit {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--hlavni); color: #fff; padding: .6em 1em; border-radius: 8px;
}
.preskocit:focus { left: 8px; }

/* Zvýraznění míst, která je potřeba doplnit. Po doplnění údajů třídu smažte. */
.doplnit {
  background: #fff1a8;
  outline: 1px dashed #b89300;
  border-radius: 4px;
  padding: 0 .3em;
  color: #5a4700;
}

.nadpis-maly {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hlavni);
  margin-bottom: .9em;
}

/* tah štětcem pod textem */
.tah {
  background: linear-gradient(transparent 58%, var(--okr-svetla) 58%, var(--okr-svetla) 90%, transparent 90%);
  padding: 0 .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- tlačítka ---------- */
.tlacitko {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .9em 1.5em;
  border-radius: 999px;
  border: 2px solid var(--hlavni);
  background: var(--hlavni);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.tlacitko:hover {
  background: var(--hlavni-tmava);
  border-color: var(--hlavni-tmava);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(21, 67, 62, .55);
}
.tlacitko--obrys { background: transparent; color: var(--hlavni); }
.tlacitko--obrys:hover { background: var(--hlavni); color: #fff; }
.tlacitko--male { padding: .6em 1.1em; font-size: .95rem; }
.tlacitko--plne { width: 100%; }
.tlacitko[disabled] { opacity: .7; cursor: progress; transform: none; }

.odkaz {
  background: none; border: 0; padding: 0; font: inherit; color: var(--hlavni);
  text-decoration: underline; text-underline-offset: .18em; cursor: pointer;
}

/* ---------- hlavička ---------- */
.hlavicka {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.hlavicka.je-posunuta { border-color: var(--cara); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }

.hlavicka__obsah {
  height: var(--vyska-hlavicky);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--inkoust); }
.logo:hover { color: var(--inkoust); }
.logo__znak {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 14px 14px 14px 4px;
  background: var(--hlavni); color: var(--okr);
  font-family: var(--patkove); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
}
.logo__text { display: flex; flex-direction: column; font-family: var(--patkove); font-weight: 600; font-size: 1.2rem; line-height: 1.1; }
.logo__text small {
  font-family: var(--bezpatkove); font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-2);
}

.navigace { display: flex; align-items: center; gap: 28px; }
.navigace a:not(.tlacitko) {
  color: var(--inkoust); text-decoration: none; font-weight: 500; position: relative;
}
.navigace a:not(.tlacitko)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--okr); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.navigace a:not(.tlacitko):hover::after { transform: scaleX(1); }

.menu-tlacitko {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  border-radius: 12px; cursor: pointer; position: relative;
}
.menu-tlacitko__cara,
.menu-tlacitko__cara::before,
.menu-tlacitko__cara::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--inkoust);
  border-radius: 2px; transition: transform .25s, opacity .2s; content: "";
}
.menu-tlacitko__cara { top: 21px; }
.menu-tlacitko__cara::before { left: 0; top: -7px; }
.menu-tlacitko__cara::after { left: 0; top: 7px; }
.menu-tlacitko[aria-expanded="true"] .menu-tlacitko__cara { background: transparent; }
.menu-tlacitko[aria-expanded="true"] .menu-tlacitko__cara::before { transform: translateY(7px) rotate(45deg); }
.menu-tlacitko[aria-expanded="true"] .menu-tlacitko__cara::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-tlacitko { display: block; }
  .navigace {
    position: absolute; top: var(--vyska-hlavicky); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px;
    background: var(--papir); border-bottom: 1px solid var(--cara);
    box-shadow: 0 20px 30px -24px rgba(0,0,0,.45);
    display: none;
  }
  .navigace.je-otevrena { display: flex; }
  .navigace a:not(.tlacitko) { padding: 14px 4px; border-bottom: 1px solid var(--cara); }
  .navigace a:not(.tlacitko)::after { display: none; }
  .navigace .tlacitko { margin-top: 16px; }
}

/* ---------- úvod ---------- */
.uvod {
  padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px);
  position: relative;
  /* ozdobné skvrny za úvodem nesmí přesahovat šířku obrazovky */
  overflow: hidden;
  overflow: clip;
}
.uvod::before {
  /* jemná „barevná skvrna“ v pozadí */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 620px; height: 620px; right: -180px; top: -120px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31, 95, 88, .10), transparent);
}
.uvod__mrizka {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 88px); align-items: center;
}
.uvod__perex { font-size: 1.15rem; color: var(--text-2); max-width: 34em; }
.uvod__akce { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.uvod__body {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--text-2); font-size: .97rem;
}
.uvod__body li { display: flex; align-items: center; gap: 8px; }
.uvod__body li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--hlavni-svetla) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5f58' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* portrét */
.portret { margin: 0; position: relative; isolation: isolate; max-width: 440px; justify-self: end; width: 100%; }
.portret::before {
  content: ""; position: absolute; z-index: -1;
  inset: 9% -7% -5% 12%;
  background: var(--okr); border-radius: 999px 999px 28px 28px; transform: rotate(5deg); opacity: .9;
}
.portret::after {
  content: ""; position: absolute; z-index: -1; width: 92px; height: 92px; left: -26px; top: 18%;
  border-radius: 50%; background: var(--hlavni-svetla);
}
.portret__ram {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 28px 28px; background: var(--papir-2); box-shadow: var(--stin);
}
.portret__ram img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portret__nahrada { display: none; }
.portret--bez-fotky .portret__nahrada {
  display: grid; place-items: center; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.14), transparent 45%),
    linear-gradient(160deg, var(--hlavni) 0%, var(--hlavni-tmava) 100%);
}
.portret__nahrada span {
  font-family: var(--patkove); font-size: clamp(5rem, 12vw, 8rem); font-weight: 600;
  color: var(--okr); letter-spacing: .02em; line-height: 1;
}
.portret__popisek {
  position: absolute; left: -24px; bottom: 28px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bila); padding: 14px 20px; border-radius: 16px; box-shadow: var(--stin);
}
.portret__popisek strong { font-family: var(--patkove); font-size: 1.1rem; }
.portret__popisek span { font-size: .85rem; color: var(--text-2); }

@media (max-width: 860px) {
  .uvod__mrizka { grid-template-columns: 1fr; }
  .portret { justify-self: center; max-width: 360px; margin-top: 8px; }
  .portret__popisek { left: 0; }
}

/* ---------- sekce obecně ---------- */
.sekce { padding-block: clamp(64px, 10vw, 128px); }
.sekce--svetla { background: var(--papir-2); }
.sekce__hlavicka { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.sekce__hlavicka p:last-child { color: var(--text-2); font-size: 1.08rem; }

/* ---------- o mně ---------- */
.o-mne { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.o-mne__foto {
  margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 28px; background: var(--papir-2); box-shadow: var(--stin);
}
.o-mne__foto img { width: 100%; height: 100%; object-fit: cover; }
.o-mne__nahrada { display: none; }
.o-mne__foto--bez-fotky .o-mne__nahrada {
  display: grid; place-items: center; position: absolute; inset: 0; color: var(--hlavni);
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(31,95,88,.05) 22px 44px),
    var(--hlavni-svetla);
}
.o-mne__text > p { color: var(--text-2); }

.citat {
  margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--okr);
  font-family: var(--patkove); font-size: 1.25rem; font-style: italic; line-height: 1.45; color: var(--inkoust);
}
.citat cite { display: block; margin-top: 10px; font-family: var(--bezpatkove); font-style: normal; font-size: .9rem; color: var(--text-2); }
.citat cite::before { content: "— "; }

.hodnoty { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hodnoty li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px; border-radius: 16px; background: var(--bila); border: 1px solid var(--cara);
}
.hodnoty strong { font-family: var(--patkove); font-size: 1.05rem; }
.hodnoty span { font-size: .9rem; color: var(--text-2); line-height: 1.45; }

@media (max-width: 860px) {
  .o-mne { grid-template-columns: 1fr; }
  .o-mne__foto { max-width: 420px; aspect-ratio: 5 / 4; width: 100%; }
}
@media (max-width: 560px) {
  .hodnoty { grid-template-columns: 1fr; }
}

/* ---------- služby ---------- */
.sluzby { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.karta {
  background: var(--bila); border-radius: var(--zaobleni); padding: 28px 24px;
  border: 1px solid var(--cara); transition: transform .25s, box-shadow .25s;
}
.karta:hover { transform: translateY(-3px); box-shadow: var(--stin); }
.karta__ikona {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--hlavni-svetla); color: var(--hlavni); margin-bottom: 18px;
}
.karta p { color: var(--text-2); font-size: .98rem; margin: 0; }

.postup {
  list-style: none; counter-reset: krok; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.postup li { counter-increment: krok; position: relative; padding-top: 56px; }
.postup li::before {
  content: counter(krok); position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hlavni); color: #fff; font-weight: 700;
}
.postup li:not(:last-child)::after {
  content: ""; position: absolute; top: 20px; left: 52px; right: 8px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--cara) 0 8px, transparent 8px 14px);
}
.postup strong { display: block; font-family: var(--patkove); font-size: 1.15rem; }
.postup span { color: var(--text-2); font-size: .95rem; }

@media (max-width: 860px) {
  .postup { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .postup li:nth-child(2)::after { display: none; }
}
@media (max-width: 480px) {
  .postup { grid-template-columns: 1fr; }
  .postup li { padding: 6px 0 0 56px; min-height: 44px; }
  .postup li::after { display: none; }
}

/* ---------- galerie ---------- */
.filtr { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 28px; }
.filtr[hidden] { display: none; }
.filtr__tlacitko {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: .5em 1.1em; border-radius: 999px; border: 1px solid var(--cara);
  background: var(--bila); color: var(--inkoust); transition: background .2s, color .2s, border-color .2s;
}
.filtr__tlacitko:hover { border-color: var(--hlavni); }
.filtr__tlacitko.je-aktivni { background: var(--hlavni); border-color: var(--hlavni); color: #fff; }

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.galerie__polozka {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: var(--papir-2);
  text-align: left; font: inherit; color: #fff;
}
.galerie__polozka img,
.galerie__polozka video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.galerie__polozka:hover img,
.galerie__polozka:hover video { transform: scale(1.05); }
.galerie__polozka::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%); opacity: 0; transition: opacity .3s;
}
.galerie__polozka:hover::after,
.galerie__polozka:focus-visible::after { opacity: 1; }
.galerie__popisek {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1;
  font-weight: 600; font-size: .95rem; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.galerie__polozka:hover .galerie__popisek,
.galerie__polozka:focus-visible .galerie__popisek { opacity: 1; transform: none; }
.galerie__prehrat {
  position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; z-index: 1;
  border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.galerie__prehrat::before {
  content: ""; margin-left: 5px;
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--hlavni);
}

/* prázdná galerie – připravená místa */
.galerie__misto {
  aspect-ratio: 4 / 3; border-radius: 18px; border: 2px dashed var(--cara);
  display: grid; place-items: center; text-align: center; padding: 20px; color: var(--text-2);
  background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(31,95,88,.035) 18px 36px);
}
.galerie__misto svg { margin: 0 auto 10px; color: var(--hlavni); opacity: .55; }
.galerie__misto span { font-size: .92rem; }

/* ---------- kontakt ---------- */
.sekce--kontakt { background: var(--papir-2); }
.kontakt { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.kontakt__info > p { color: var(--text-2); font-size: 1.08rem; }

.kontakty { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 14px; }
.kontakty li { display: flex; align-items: center; gap: 14px; }
.kontakty__ikona {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: var(--bila); color: var(--hlavni); border: 1px solid var(--cara);
}
.kontakty small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); font-weight: 700; }
.kontakty a { font-weight: 600; color: var(--inkoust); text-decoration: none; word-break: break-word; }
.kontakty a:hover { color: var(--hlavni); text-decoration: underline; }

.fakturace { background: var(--bila); border: 1px solid var(--cara); border-radius: var(--zaobleni); padding: 24px; }
.fakturace h3 { font-size: 1.1rem; margin-bottom: 14px; }
.fakturace dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; }
.fakturace dt { color: var(--text-2); font-size: .92rem; }
.fakturace dd { margin: 0; font-weight: 600; }
.fakturace__pozn { margin: 16px 0 0; font-size: .85rem; color: var(--text-2); }

/* formulář */
.formular-obal { position: relative; }
.formular {
  background: var(--bila); border-radius: 24px; padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--stin); border: 1px solid var(--cara);
}
.formular h3 { font-size: 1.6rem; margin-bottom: .2em; }
.formular__uvod { color: var(--text-2); font-size: .9rem; margin-bottom: 22px; }
.formular__past { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.pole-radek { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pole { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.pole label { font-weight: 600; font-size: .92rem; }
.pole input,
.pole select,
.pole textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--inkoust);
  padding: .75em .9em; border-radius: 12px; border: 1.5px solid var(--cara); background: var(--papir);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.pole select {
  appearance: none; padding-right: 2.4em; cursor: pointer;
  background: var(--papir) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2350605d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .9em center / 16px no-repeat;
}
.pole textarea { resize: vertical; min-height: 130px; }
.pole input::placeholder, .pole textarea::placeholder { color: #95a09d; }
.pole input:focus, .pole select:focus, .pole textarea:focus {
  outline: none; border-color: var(--hlavni); background-color: #fff; box-shadow: 0 0 0 4px rgba(31, 95, 88, .14);
}
.pole.je-chybne input, .pole.je-chybne textarea { border-color: var(--chyba); }
.pole__chyba { color: var(--chyba); font-size: .85rem; }

.formular__gdpr { font-size: .85rem; color: var(--text-2); margin: 4px 0 20px; }

.formular__stav:empty { display: none; }
.formular__stav { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: .95rem; }
.formular__stav.je-uspech { background: #e3f3ea; color: var(--uspech); }
.formular__stav.je-chyba { background: #fbe9e7; color: var(--chyba); }

.formular--odeslano { text-align: center; padding-block: clamp(40px, 6vw, 64px); }
.formular--odeslano .ikona-ok {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: var(--hlavni-svetla); color: var(--hlavni);
}

@media (max-width: 860px) {
  .kontakt { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pole-radek { grid-template-columns: 1fr; }
}

/* ---------- patička ---------- */
.paticka { background: var(--hlavni-tmava); color: rgba(255,255,255,.82); padding-block: 40px; font-size: .95rem; }
.paticka__obsah { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.paticka__znacka { display: flex; align-items: center; gap: 12px; }
.paticka__znacka div { display: flex; flex-direction: column; line-height: 1.3; }
.paticka__znacka strong { color: #fff; font-family: var(--patkove); font-size: 1.05rem; }
.paticka .logo__znak { background: rgba(255,255,255,.1); }
.paticka__odkazy { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.paticka__odkazy a, .paticka .odkaz { color: rgba(255,255,255,.82); text-decoration: none; }
.paticka__odkazy a:hover, .paticka .odkaz:hover { color: #fff; text-decoration: underline; }
.paticka__copy { width: 100%; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- dialog (osobní údaje) ---------- */
.dialog {
  border: 0; padding: 0; border-radius: 24px; width: min(620px, 100% - 32px); max-height: calc(100% - 32px);
  background: var(--bila); color: var(--inkoust); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45);
}
.dialog::backdrop { background: rgba(21, 33, 32, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog__obsah { padding: clamp(24px, 4vw, 36px); }
.dialog h2 { font-size: 1.6rem; }
.dialog p { color: var(--text-2); font-size: .97rem; }

/* ---------- lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  background: rgba(12, 18, 17, .94); color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__media { display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 72px 8px; min-height: 0; }
.lightbox__media img,
.lightbox__media video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lightbox__media iframe { width: min(1100px, 100%); aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.lightbox__popisek { margin: 0; padding: 12px 16px 24px; text-align: center; color: rgba(255,255,255,.85); min-height: 1.6em; }
.lightbox__zavrit,
.lightbox__sipka {
  position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.1);
  width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; display: grid; place-items: center;
  transition: background .2s;
}
.lightbox__zavrit:hover, .lightbox__sipka:hover { background: rgba(255,255,255,.22); }
.lightbox__zavrit { top: 14px; right: 14px; }
.lightbox__sipka { top: 50%; margin-top: -24px; }
.lightbox__sipka--predchozi { left: 14px; }
.lightbox__sipka--dalsi { right: 14px; }
.lightbox__sipka[hidden] { display: none; }

@media (max-width: 600px) {
  .lightbox__media { padding: 64px 8px 8px; }
  .lightbox__sipka { top: auto; bottom: 14px; margin: 0; }
}

/* ---------- animace při posouvání ---------- */
.js .odhalit { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .odhalit.je-videt { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .odhalit { opacity: 1; transform: none; }
}
