/* ==========================================================================
   X-GRILL – styly webu (čisté CSS bez build kroku, mobile-first)
   Barvy a rozměry jsou v proměnných v :root.
   ========================================================================== */

/* ---------- Fonty (lokálně, latin + latin-ext, SIL OFL – viz assets/fonts/LICENSE.txt) ---------- */
/* Nápis X-GRILL (H1). Výměna fontu = přepsat názvy souborů v těchto dvou blocích
   (kandidáti: caveat-brush / sedgwick-ave-display; test: /web/_font-test.html). */
@font-face {
  font-family: 'XG Brush'; font-display: swap;
  src: url(../fonts/caveat-brush-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: 'XG Brush'; font-display: swap;
  src: url(../fonts/caveat-brush-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;
}
/* Nadpisy */
@font-face {
  font-family: 'Inter Tight'; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-tight-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: 'Inter Tight'; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-tight-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;
}
/* Text */
@font-face {
  font-family: 'Inter'; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-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: 'Inter'; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-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;
}

/* ---------- Proměnné ---------- */
:root {
  --black: #000;
  --ink: #0b0b0b;            /* tmavá sekce (nabídka) */
  --card: #070707;           /* karta jídla */
  --card-2: #111;            /* karta výhody */
  --line-dark: #232323;
  --light: #efede8;          /* světlá sekce – teplá off-white */
  --light-2: #e4e2dc;
  --text-dark: #141414;      /* text na světlé */
  --muted-dark: #5c5a55;     /* šedý text na světlé (kontrast 5,9 : 1) */
  --text-light: #fff;
  --muted-light: #b5b1aa;    /* šedý text na tmavé (kontrast > 8 : 1) */
  --orange: #e0622a;         /* akcent – linky, ikony, rámečky */
  --orange-btn: #c94e1b;     /* tlačítka s bílým textem (kontrast 4,6 : 1) */
  --orange-btn-hover: #b3441a;
  --orange-ink: #b9461a;     /* oranžový text na světlém pozadí */
  --gold: #dcba94;           /* cena */
  --foodora: #d70f64;
  --wolt: #009de0;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-brush: 'XG Brush', 'Comic Sans MS', cursive;

  --container: 1240px;
  --gutter: 20px;
  --header-h: 64px;
  --radius: 8px;
  --section-y: 72px;
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --header-h: 80px; --section-y: 112px; }
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);   /* kotvy se zastaví pod přilepenou hlavičkou */
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-light);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); }
button { font: inherit; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--orange-btn); color: #fff; padding: 12px 18px; font-weight: 700; text-decoration: none;
  border-radius: 4px; transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ---------- Typografie ---------- */
.brush {
  font-family: var(--font-brush);
  font-weight: 400;
  line-height: .9;
  letter-spacing: .01em;
  -webkit-text-stroke: .035em currentColor;   /* zesílení tahu, ať je nápis výraznější */
  paint-order: stroke fill;
}
.h1, .h2 {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -.01em;
}
.h1 { font-size: clamp(34px, 6vw, 60px); }
.h2 { font-size: clamp(30px, 4.6vw, 52px); }
.bar::before {          /* oranžová linka nad nadpisem */
  content: ''; display: block; width: 48px; height: 4px; background: var(--orange); margin-bottom: 24px;
}
.kicker {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 14px;
}
.lead { font-size: 17px; }
.lead p { margin-bottom: .9em; }

/* ---------- Tlačítka ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font-family: var(--font-head); font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 3px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { flex: none; }
.btn--primary { background: var(--orange-btn); color: #fff; }
.btn--primary:hover { background: var(--orange-btn-hover); }
.btn--outline { border-color: #fff; color: #fff; background: transparent; }
.btn--outline:hover { background: #fff; color: var(--black); }
.btn--dark { background: var(--text-dark); color: #fff; }
.btn--dark:hover { background: #333; }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--line:hover { background: rgba(127, 127, 127, .15); }
.btn--foodora, .btn--wolt {
  font-family: var(--font); font-size: 22px; letter-spacing: 0; text-transform: none; font-weight: 800;
  min-height: 58px; padding: 12px 28px; border-radius: 4px; color: #fff;
}
.btn--foodora { background: var(--foodora); }
.btn--wolt { background: var(--wolt); }
.btn--foodora:hover, .btn--wolt:hover { filter: brightness(1.08); }
.link-btn {
  background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(0, 0, 0, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: #1c1c1c; }
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(0, 0, 0, .82); backdrop-filter: blur(10px); }
}
.site-header__in { height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.site-header__back {
  margin-right: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.site-header__back .flip { transform: scaleX(-1); }
.site-header__back:hover { color: var(--orange); }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 36px; flex-wrap: wrap; justify-content: flex-end; }
.nav__link {
  display: inline-block; padding: 8px 0;
  font-family: var(--font-head); font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; position: relative;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.menu-toggle {
  display: none; width: 48px; height: 48px; margin-right: -10px; padding: 0;
  align-items: center; justify-content: center;
  background: none; border: 0; color: #fff; cursor: pointer;
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

/* Mobil: hamburger + rozbalovací panel (jen s JS; bez JS zůstane menu vidět) */
@media (max-width: 899px) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--black); border-bottom: 1px solid #222;
    padding: 8px var(--gutter) 24px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .nav:not(.is-open) { display: none; }
  .js .nav__list { flex-direction: column; gap: 0; }
  .js .nav__link { display: block; padding: 16px 0; font-size: 18px; border-bottom: 1px solid #1c1c1c; }
  .js .nav__link::after { display: none; }
  .nav__list { gap: 0 20px; }
  .nav__link { font-size: 12px; }
}

/* ---------- Sekce ---------- */
.section { padding-block: var(--section-y); }
.section--light { background: var(--light); color: var(--text-dark); }
.section--dark { background: var(--ink); color: var(--text-light); }
.section--black { background: var(--black); color: var(--text-light); }
.section--light .lead, .section--light .kicker { color: var(--muted-dark); }
.section--light .kicker { color: var(--text-dark); }
.section--dark .lead, .section--black .lead { color: var(--muted-light); }
.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head__text { margin-top: 18px; color: var(--muted-light); }

/* Fotky jídel na černém pozadí (jen v černých sekcích): okraje se jemně prolnou s pozadím
   a černý obrys přes krajní pixely schová tenké čáry, které prohlížeč kreslí na hraně zmenšené fotky */
.fade-edges picture { position: relative; outline: 3px solid var(--black); outline-offset: -2px; }
.fade-edges img {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}

/* Zástupný obrázek „Foto doplníme“ */
.ph {
  width: 100%; height: 100%; min-height: 160px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: 1px dashed #3a3a3a; border-radius: 6px; color: #8a8780;
  font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; text-align: center;
  padding: 16px;
}
.ph--light { border-color: #c9c5bc; color: var(--muted-dark); background: var(--light-2); aspect-ratio: 3 / 2; border-radius: var(--radius); }

/* ---------- Hero ---------- */
.hero { background: var(--black); overflow: hidden; }
.hero__in {
  display: grid; gap: 32px; align-items: center;
  padding-top: 40px; padding-bottom: 56px;
}
.hero__title { margin: 0 0 28px; color: #fff; font-weight: 400; }
.hero__title .brush {
  display: inline-block;
  white-space: nowrap;                       /* „X-GRILL“ se nikdy nerozdělí */
  font-size: clamp(76px, 22vw, 168px);
  transform: rotate(-3deg) skewX(-8deg);
  transform-origin: left bottom;
  padding: .06em .08em .04em 0;
}
.hero__logo { width: min(100%, 620px); height: auto; }
.hero__sub {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 3.2vw, 36px); line-height: 1.12; margin-bottom: 36px; max-width: 18em;
}
.hero__media { justify-self: center; width: min(100%, 520px); }
.hero__media img { width: 100%; height: auto; }
@media (min-width: 900px) {
  .hero__title .brush { font-size: clamp(96px, 12.5vw, 168px); }
  .hero__in { grid-template-columns: 1.15fr 1fr; gap: 48px; padding-top: 48px; padding-bottom: 72px; min-height: calc(88vh - var(--header-h)); }
  .hero__media { justify-self: end; width: 100%; max-width: 560px; }
}

/* ---------- O nás ---------- */
.about__in { display: grid; gap: 40px; align-items: center; }
.about__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.about__text .h2 { margin-bottom: 24px; }
@media (min-width: 900px) {
  .about__in { grid-template-columns: 1fr 1fr; gap: 80px; }
}

/* ---------- Nabídka jídel ---------- */
.menu-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px)  { .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1000px) { .menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .menu-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; } }

.dish {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line-dark); border-radius: 6px; overflow: hidden;
}
.dish__img { aspect-ratio: 1 / 1; background: #000; }
.dish__img picture, .dish__img img { width: 100%; height: 100%; }
.dish__img img { object-fit: cover; }
.dish__img .ph { border-radius: 4px; width: calc(100% - 24px); height: calc(100% - 24px); margin: 12px; min-height: 0; }
.dish__body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 16px; }
.dish__name {
  font-size: 13px; font-weight: 800; letter-spacing: .02em; line-height: 1.3; text-transform: uppercase;
  overflow-wrap: break-word;
}
.dish__meta { margin: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dish__price { font-family: var(--font-head); font-size: 19px; font-weight: 800; color: var(--gold); }
.dish__weight {
  font-size: 12px; font-weight: 600; color: var(--muted-light);
  border: 1px solid #4a4a4a; border-radius: 999px; padding: 2px 10px; margin-left: auto;
}
@media (min-width: 700px) {
  .dish__body { padding: 16px 16px 18px; }
  .dish__name { font-size: 14px; }
}

.cta-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 28px 18px;
  background: var(--orange-btn); color: #fff; border-radius: 6px;
  grid-column: span 2;
}
@media (min-width: 700px) { .cta-card { grid-column: auto; } }
.cta-card__icon { display: inline-flex; }
.cta-card__title { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: 22px; line-height: 1.1; margin: 4px 0 0; }
.cta-card__text { font-size: 14px; line-height: 1.5; margin: 0; }
.cta-card__phone { font-family: var(--font-head); font-size: 21px; font-weight: 800; text-decoration: none; margin-top: 6px; white-space: nowrap; }
.cta-card__phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta-card :focus-visible { outline-color: #fff; }

/* ---------- Proč se u nás zastavit (přepracováno: fotka v plném jasu + karty 2×2) ---------- */
.why__in { display: grid; gap: 40px; align-items: center; }
.why__media { margin-top: 32px; max-width: 520px; }
.why__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 55%; }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.why-card {
  background: var(--card-2); border: 1px solid var(--line-dark); border-top: 3px solid var(--orange);
  border-radius: var(--radius); padding: 28px 24px;
}
.why-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(224, 98, 42, .14); color: var(--orange); margin-bottom: 18px;
}
.why-card__title { font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1.2; margin-bottom: 10px; }
.why-card p { color: var(--muted-light); font-size: 16px; line-height: 1.55; }
@media (min-width: 600px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .why__in { grid-template-columns: 5fr 7fr; gap: 64px; }
  .why-card { padding: 28px 24px; }
}

/* ---------- Kde nás najdete ---------- */
.where__in { display: grid; gap: 40px; }
.where__text .h2 { margin-bottom: 22px; }
.where__text .lead { margin-bottom: 28px; }
.hours { margin: 0; display: grid; gap: 18px; }
.hours dt { font-family: var(--font-head); font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--muted-dark); margin-bottom: 2px; }
.hours dd {
  margin: 0; font-family: var(--font-head); font-size: clamp(24px, 2.1vw, 30px); font-weight: 800;
  letter-spacing: -.01em; line-height: 1.1;
  white-space: nowrap;            /* „8:00 – 17:00 h“ vždy na jednom řádku */
}
.hours__note { margin-top: 16px; color: var(--muted-dark); font-size: 15px; }

/* Mapa: iframe Mapy.com (bez nastavené mapy ilustrace s odkazem) */
.map-card {
  position: relative; overflow: hidden; border-radius: 10px;
  aspect-ratio: 380 / 230; background: var(--light-2); color: var(--text-dark);
}
.map-card--embed { aspect-ratio: 4 / 3; }
.map-card__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card__cover { position: absolute; inset: 0; }
.map-card__art { width: 100%; height: 100%; transition: transform .4s; }
.map-card__link { position: absolute; inset: 0; }
.map-card__link:hover ~ .map-card__label, .map-card__link:focus-visible ~ .map-card__label { text-decoration: underline; }
.map-card:hover .map-card__art { transform: scale(1.03); }
.map-card__label {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  display: inline-flex; align-items: center; gap: 6px; pointer-events: none;
  background: #fff; border-radius: 999px; padding: 6px 14px 6px 10px;
  font-size: 13px; font-weight: 600; line-height: 1.3; box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.map-card__label svg { flex: none; }
@media (min-width: 700px) {
  .where__in { grid-template-columns: 1fr 1.4fr; column-gap: 40px; }
  .where__text { grid-column: 1 / -1; max-width: 640px; }
}
@media (min-width: 1200px) {
  .where__in { grid-template-columns: 1.1fr .9fr 1.25fr; gap: 0; align-items: start; }
  .where__text { grid-column: auto; max-width: none; }
  .where__text .h2 { font-size: clamp(30px, 2.9vw, 40px); }
  .where__in > * { padding-inline: 32px; }
  .where__in > *:first-child { padding-left: 0; }
  .where__in > *:last-child { padding-right: 0; }
  .where__hours { border-left: 1px solid #cfcbc2; border-right: 1px solid #cfcbc2; align-self: stretch; padding-top: 4px; }
}

/* ---------- Objednávka ---------- */
.order__in { display: grid; gap: 32px; align-items: center; }
.order__media { max-width: 560px; justify-self: center; width: 100%; }
.order__media img {   /* jako v úvodu: talíř na černém pozadí, bez rámečku; ořez odstraní prázdné černé plochy */
  width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 55%;
}
.order__text .h2 { margin-bottom: 20px; }
.order__text .lead { margin-bottom: 26px; max-width: 34em; }
.order__label { color: var(--muted-light); margin-bottom: 4px; }
.order__phone { font-family: var(--font-head); font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 26px; }
.order__phone a { text-decoration: none; }
.order__phone a:hover { color: var(--orange); }
@media (min-width: 900px) {
  .order__in { grid-template-columns: 1fr 1fr; gap: 80px; }
}

/* ---------- Dovážka ---------- */
.delivery { border-top: 1px solid #1c1c1c; }
.delivery__in { display: grid; gap: 32px; align-items: center; }
.delivery__in .h2 { margin-bottom: 18px; }
@media (min-width: 900px) { .delivery__in { grid-template-columns: 1.2fr 1fr; gap: 80px; } }

/* ---------- Podstránky ---------- */
.page-head { background: var(--black); padding: 56px 0 48px; border-bottom: 1px solid #1c1c1c; }
.page-head__sub { margin-top: 16px; color: var(--muted-light); }
.text-section { padding-top: 56px; }
.prose { color: var(--text-dark); font-size: 17px; }
.prose h2 { font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; text-transform: uppercase; line-height: 1.2; margin: 2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; font-weight: 800; margin: 1.6em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--orange-ink); }
.prose a { color: var(--orange-ink); text-underline-offset: 3px; }
.prose a:hover { color: var(--text-dark); }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 4px solid var(--orange); }

/* ---------- 404 ---------- */
.notfound { background: var(--black); padding: 64px 0 96px; min-height: 60vh; }
.notfound__code { font-size: clamp(110px, 22vw, 200px); margin: 0 0 8px; color: var(--orange); transform: rotate(-3deg) skewX(-8deg); transform-origin: left bottom; }
.notfound__title { font-family: var(--font-head); font-size: clamp(30px, 5vw, 48px); font-weight: 800; text-transform: uppercase; line-height: 1.05; margin-bottom: 18px; }
.notfound p { color: var(--muted-light); max-width: 34em; }
.notfound .notfound__code { color: var(--orange); max-width: none; }
.notfound__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Patička ---------- */
.site-footer { background: var(--black); border-top: 1px solid #1c1c1c; padding: 64px 0 28px; color: var(--muted-light); font-size: 15px; line-height: 1.6; }
.site-footer__in { display: grid; gap: 36px; }
.site-footer__logo { color: #fff; font-size: 64px; margin: 0 0 18px; transform: rotate(-3deg) skewX(-8deg); transform-origin: left bottom; display: inline-block; }
.site-footer__title { font-family: var(--font-head); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer .link-btn:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer__links .link-btn { text-decoration: none; }
.site-footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #1c1c1c; font-size: 13px; color: #8f8b84; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid #333; border-radius: 50%; color: #fff;
}
.social a:hover { background: var(--orange-btn); border-color: var(--orange-btn); text-decoration: none; }
@media (min-width: 900px) {
  .site-footer__in { grid-template-columns: 1fr 1.2fr 1fr; align-items: start; }
  .site-footer__links { align-items: flex-end; text-align: right; }
}

/* ---------- Cookies (lišta, okno, panel na stránce Cookies) ---------- */
.cc-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 250;
  max-width: 1100px; margin: 0 auto;
  background: #141414; color: #fff; border: 1px solid #2c2c2c; border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.cc-bar__in { display: flex; flex-direction: column; gap: 18px; padding: 20px; }
.cc-bar__title { font-family: var(--font-head); font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.cc-bar__text p { font-size: 14px; line-height: 1.6; color: #d4d0c9; margin: 0; }
.cc-bar__text p.cc-bar__title { color: #fff; }
.cc-bar__text a { color: #fff; }
.cc-bar__btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cc-bar__btns .btn { min-height: 46px; padding: 10px 18px; font-size: 13px; }
.cc-link { background: none; border: 0; color: #fff; padding: 10px 8px; cursor: pointer; font-family: var(--font-head); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) {
  .cc-bar { left: 24px; right: 24px; bottom: 24px; }
  .cc-bar__in { flex-direction: row; align-items: center; gap: 32px; padding: 24px 28px; }
  .cc-bar__text { flex: 1; }
  .cc-bar__btns { flex: none; }
}

.cc-modal { position: fixed; inset: 0; z-index: 310; background: rgba(0, 0, 0, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cc-modal[hidden], .cc-bar[hidden] { display: none; }
.cc-dialog {
  position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; color: var(--text-dark); border-radius: 10px; padding: 36px 28px 28px;
}
.cc-dialog__title { font-family: var(--font-head); font-size: 26px; font-weight: 800; text-transform: uppercase; }
.cc-x { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--text-dark); cursor: pointer; }
.cc-intro { font-size: 15px; margin: 12px 0 18px; color: var(--muted-dark); }
.cc-intro a { color: var(--orange-ink); }
.cc-row { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; padding: 16px 0; border-top: 1px solid #e3e0d9; }
.cc-row__title { font-weight: 700; font-size: 16px; margin: 0 0 4px; }
.cc-row__desc { font-size: 14px; line-height: 1.55; color: var(--muted-dark); margin: 0; }
.cc-switch { position: relative; flex: none; width: 52px; height: 30px; margin-top: 2px; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch span[aria-hidden] { position: absolute; inset: 0; background: #c9c5bc; border-radius: 99px; transition: background-color .2s; }
.cc-switch span[aria-hidden]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.cc-switch input:checked + span { background: var(--orange-btn); }
.cc-switch input:checked + span::after { transform: translateX(22px); }
.cc-switch input:disabled + span { opacity: .55; }
.cc-switch input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 3px; }
.cc-btns { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid #e3e0d9; }
.cc-btns .btn { min-height: 46px; padding: 10px 18px; font-size: 13px; }
.cc-dialog .btn--line, .cc-panel .btn--line { color: var(--text-dark); }
.cc-panel { background: #fff; border-radius: 10px; padding: 24px; margin: 2em 0 0; color: var(--text-dark); }
.cc-panel__title { margin-top: 0 !important; }
.cc-panel .cc-row:first-of-type { border-top: 0; }
.cc-saved { margin: 14px 0 0; font-weight: 700; color: #2c6b2f; }

/* ---------- Lišta pro přihlášeného správce ---------- */
.admin-bar {
  position: fixed; left: 12px; bottom: 12px; z-index: 200;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: #fff; color: #111; border-radius: 999px; padding: 6px 6px 6px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4); font-size: 13px;
}
.admin-bar__who { font-weight: 700; margin-right: 4px; }
.admin-bar__link { background: var(--orange-btn); color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.admin-bar__link--ghost { background: #eee; color: #111; }

/* ---------- Omezený pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
