/*
Theme Name: Stavomág
Theme URI: https://stavomag.cz
Author: Stavomág
Description: Téma pro Stavomág — kompletní rekonstrukce bytů v Praze. Fotografie napřed, bez page builderu, WCAG 2.2 AA.
Version: 2.2.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: stavomag
*/

/* ===================== 1. TOKENY ===================== *
 * Barvy z firemní dodávky a fotek: černá, bílá, beton a jedna fialová (ruka mága).
 * Písmo: Roboto nese titulky i text, Roboto Mono drobné popisky a čísla.
 * ----------------------------------------------------- */
:root {
  /* plochy */
  --paper:   #FFFFFF;
  --bone:    #F3F3F2;
  --sand:    #E5E5E3;
  --ink:     #111111;
  --ink-2:   #55565A;
  --line:    #E2E2E0;
  --line-2:  #C9C9C6;
  --brand:   #7C3CCF;   /* fialová z dodávky */
  --accent:  #6A2EC0;   /* o kousek tmavší kvůli kontrastu textu na bílé */
  --accent-2:#53229A;
  --on-accent:#FFFFFF;
  --focus:   #6A2EC0;
  --foot:    #111111;
  --on-foot: #F3F3F2;

  /* písmo */
  --f-display: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --f-text: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --f-mono: 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --t-xs:   clamp(0.80rem, 0.78rem + 0.10vw, 0.86rem);
  --t-sm:   clamp(0.90rem, 0.87rem + 0.14vw, 0.97rem);
  --t-base: clamp(1.02rem, 0.99rem + 0.16vw, 1.12rem);
  --t-md:   clamp(1.14rem, 1.07rem + 0.34vw, 1.34rem);
  --t-lg:   clamp(1.40rem, 1.20rem + 0.90vw, 2.00rem);
  --t-xl:   clamp(1.85rem, 1.45rem + 1.90vw, 2.95rem);
  --t-2xl:  clamp(2.45rem, 1.75rem + 3.10vw, 4.40rem);

  /* prostor */
  --sp-1: 0.5rem;  --sp-2: 0.75rem; --sp-3: 1rem;    --sp-4: 1.5rem;
  --sp-5: 2rem;    --sp-6: 3rem;    --sp-7: 4.5rem;  --sp-8: 6rem;
  --band: clamp(4.5rem, 9vw, 8.5rem);

  --w-page: 1280px;
  --w-mid:  920px;
  --w-text: 68ch;
  --gut: clamp(1.25rem, 5vw, 3rem);

  --r: 6px;          /* pole formuláře */
  --r-btn: 999px;    /* tlačítka: plně kulatá */
  --r-img: 0;        /* fotky: rovné hrany */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgba(20,22,26,.04), 0 12px 32px -12px rgba(20,22,26,.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #101010;
    --bone:    #171717;
    --sand:    #222222;
    --ink:     #EDEDEB;
    --ink-2:   #A5A5A2;
    --line:    #2A2A2A;
    --line-2:  #3B3B3B;
    --accent:  #B391F2;
    --accent-2:#C9B0F7;
    --on-accent:#16082E;
    --focus:   #B391F2;
    --foot:    #000000;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -14px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

/* ===================== 2. ZÁKLAD ===================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  caret-color: var(--accent);
  scrollbar-color: var(--line-2) transparent;
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--paper); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-2); }
::selection { background: var(--accent); color: var(--on-accent); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-base);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg, picture { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--t-2xl); letter-spacing: -0.03em; }
h2 { font-size: var(--t-xl); letter-spacing: -0.026em; }
h3 { font-size: var(--t-lg); letter-spacing: -0.018em; line-height: 1.15; }
h4 { font-size: var(--t-md); letter-spacing: -0.012em; font-weight: 700; }
p, ul, ol, figure, blockquote { margin: 0; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: from-font; text-underline-offset: 0.2em; text-decoration-color: color-mix(in oklab, var(--accent) 55%, transparent); transition: text-decoration-color .18s var(--ease), color .18s var(--ease); }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
strong, b { font-weight: 600; }
.num { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: 'tnum' 1; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--on-accent);
  padding: 0.9rem 1.4rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ===================== 3. LAYOUT ===================== */
.wrap { width: 100%; max-width: var(--w-page); margin-inline: auto; padding-inline: var(--gut); }
.wrap--mid { max-width: var(--w-mid); }
.band { padding-block: var(--band); }
.band--bone { background: var(--bone); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.prose { max-width: none; }  /* stejná šířka jako homepage */
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); }
.prose h2 + *, .prose h3 + * { margin-top: var(--sp-3); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose figure { margin-block: var(--sp-7); }
.prose figcaption { font-size: var(--t-sm); color: var(--ink-2); margin-top: 0.7rem; }
.prose img { border-radius: var(--r-img); }
.prose blockquote {
  font-family: var(--f-display); font-size: var(--t-md); line-height: 1.35;
  padding-left: var(--sp-4); border-left: 1px solid var(--line-2);
}

/* nadpis sekce + volitelný doprovodný text */
.sec-head { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-7); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-7); align-items: end; }
}
.sec-head p { color: var(--ink-2); max-width: 46ch; font-size: var(--t-md); line-height: 1.5; }

/* ===================== 4. TLAČÍTKA ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.8rem 1.6rem;
  font: inherit; font-weight: 600; font-size: var(--t-sm); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent); border-radius: var(--r-btn);
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
/* Obecné a:hover barví text fialově — u tlačítek ho musíme přebít, jinak text splyne s pozadím. */
.btn:hover, .btn:focus-visible { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.btn-icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* textový odkaz se šipkou */
.link-more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: var(--t-sm); text-decoration: none;
  min-height: 44px;
  border-bottom: 1px solid var(--line-2);
}
.link-more:hover { border-bottom-color: var(--ink); }
.link-more svg { transition: transform .22s var(--ease); }
.link-more:hover svg { transform: translateX(3px); }

/* ===================== 5. HLAVIČKA ===================== */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 80px; }
.brand {
  text-decoration: none;
  display: inline-flex; align-items: center; min-height: 48px;
}
.brand img { display: block; height: 44px; width: auto; }
@media (max-width: 600px) { .brand img { height: 36px; } }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 46px; padding: 0.5rem 0.95rem;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-btn);
  font: inherit; font-size: var(--t-sm); font-weight: 600; color: var(--ink); cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--sand); border-color: var(--line-2); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-5); align-items: center; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 46px;
  text-decoration: none; font-size: var(--t-sm); font-weight: 500; color: var(--ink);
  position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list .current-menu-item > a::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); background: var(--accent); }
.nav-list .nav-cta a {
  background: var(--accent); color: var(--on-accent);
  padding: 0 1.3rem; border-radius: var(--r-btn); font-weight: 600;
}
.nav-list .nav-cta a::after { display: none; }
.nav-list .nav-lang a {
  font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.04em;
  padding: 0 0.8rem; border: 1px solid var(--line-2); border-radius: var(--r-btn); min-height: 36px;
}
.nav-list .nav-lang a::after { display: none; }
.nav-list .nav-lang a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 900px) { .nav-list .nav-lang { border-top: 0; margin-top: var(--sp-2); } .nav-list .nav-lang a { min-height: 44px; justify-content: center; } }
.nav-list .nav-cta a:hover { background: var(--accent-2); color: var(--on-accent); }

@media (max-width: 900px) {
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--sp-2) var(--gut) var(--sp-5); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li + li { border-top: 1px solid var(--line); }
  .nav-list a { min-height: 56px; font-size: var(--t-base); }
  .nav-list a::after { display: none; }
  .nav-list .nav-cta { border-top: 0; margin-top: var(--sp-3); }
  .nav-list .nav-cta a { justify-content: center; min-height: 52px; }
}
@media (min-width: 901px) { .nav-toggle { display: none; } .site-nav { display: block !important; } }

/* ===================== 6. HERO ===================== */
.hero { padding-block: clamp(3.5rem, 8vw, 7rem) 0; }
.hero h1 { max-width: 16ch; }
.hero .lead {
  margin-top: var(--sp-5); max-width: 48ch;
  font-size: var(--t-md); line-height: 1.5; color: var(--ink-2);
}
.hero .btn-row { margin-top: var(--sp-6); }
.hero-meta {
  margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6);
  font-size: var(--t-sm); color: var(--ink-2);
}
.hero-eyebrow {
  font-family: var(--f-mono); font-size: var(--t-sm); font-weight: 500; color: var(--accent);
  margin-bottom: var(--sp-4);
}
.hero-figure { margin-top: var(--sp-7); }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 40%; border-radius: var(--r-img); }
.hero-figure figcaption { margin-top: var(--sp-3); font-size: var(--t-sm); color: var(--ink-2); max-width: 60ch; }

/* ===================== 7. ROZSAH PRACÍ ===================== */
.scope { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); border-top: 1px solid var(--line); }
.scope li {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 1.1rem 0.25rem; border-bottom: 1px solid var(--line);
  font-size: var(--t-base); font-weight: 500;
}
.scope-icon { width: 28px; height: 28px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.6; }
@media (min-width: 900px) { .scope li { padding-right: var(--sp-5); } }

/* ===================== 8. POSTUP ===================== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); } }
.steps li { padding-block: var(--sp-4); border-top: 1px solid var(--line-2); }
.steps .n {
  display: block; font-family: var(--f-mono); font-size: var(--t-sm); font-weight: 500; color: var(--accent);
  font-variant-numeric: tabular-nums; margin-bottom: var(--sp-3);
}
.steps h3 { font-size: var(--t-md); margin-bottom: 0.5rem; }
.steps p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }

/* ===================== 9. FOTOMŘÍŽKA ===================== */
.work { display: grid; gap: var(--sp-3); }
@media (min-width: 820px) {
  .work {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 12vw;
    gap: var(--sp-4);
  }
  .work > *:nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .work > *:nth-child(2) { grid-column: span 2; grid-row: span 1; }
  .work > *:nth-child(3) { grid-column: span 2; grid-row: span 1; }
  .work > *:nth-child(4) { grid-column: span 2; grid-row: span 2; }
  .work > *:nth-child(5) { grid-column: span 4; grid-row: span 2; }
}
.work figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-img); background: var(--sand); }
.work img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 819px) { .work img { aspect-ratio: 3 / 2; } }

/* ===================== 10. REFERENCE ===================== */
.refs { display: grid; gap: var(--sp-7) var(--sp-5); }
@media (min-width: 760px) { .refs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .refs { grid-template-columns: repeat(3, 1fr); gap: var(--sp-8) var(--sp-5); } }
.ref { display: grid; gap: var(--sp-3); position: relative; }
.ref-media { overflow: hidden; border-radius: var(--r-img); background: var(--sand); aspect-ratio: 4 / 3; }
.ref-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ref:hover .ref-media img, .ref:focus-within .ref-media img { transform: scale(1.03); }
.ref h3 { font-size: var(--t-md); }
.ref .where { font-size: var(--t-sm); color: var(--accent); font-weight: 600; }
.ref p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }

/* ===================== 10b. NAŠE REALIZACE ===================== */
.real-toc { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
.real-toc a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem;
  border: 1px solid var(--line-2); border-radius: var(--r-btn);
  font-size: var(--t-sm); font-weight: 500; text-decoration: none;
}
.real-toc a:hover { border-color: var(--accent); }
.reals { display: grid; gap: 0; }
.real { display: grid; gap: var(--sp-5); padding-block: var(--sp-7); border-top: 1px solid var(--line); scroll-margin-top: var(--sp-4); }
@media (min-width: 960px) { .real { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--sp-7); align-items: start; } }
.real > * { min-width: 0; }
.video, .video-play { width: 100%; max-width: 100%; }
.real-text { display: grid; gap: var(--sp-3); align-content: start; }
.real-text .where { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.real-text h2 { font-size: var(--t-lg); }
.real-text > p:not(.where) { color: var(--ink-2); max-width: 46ch; }
.real-proud { font-weight: 600; color: var(--ink) !important; padding-left: var(--sp-3); border-left: 3px solid var(--brand); }
.real-did { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.real-did li { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--t-sm); font-weight: 500; }
.real-did .scope-icon { width: 22px; height: 22px; }
.real-media { display: grid; gap: var(--sp-2); }
.real-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }
.real-photos figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.real-photos figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.real-photos img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 600px) { .real-photos { grid-template-columns: repeat(3, 1fr); } }
.real-cta { display: grid; gap: var(--sp-3); padding: var(--sp-5); margin-block: var(--sp-2) var(--sp-5); background: var(--bone); }
@media (min-width: 900px) { .real-cta { grid-template-columns: 1fr auto; align-items: center; } }
.real-cta p { font-size: var(--t-md); }

/* video až na kliknutí */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; padding: 0; border: 0; background: #000; cursor: pointer; display: block; width: 100%; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 99px; background: var(--brand); display: grid; place-items: center; transition: transform .18s var(--ease), background .18s var(--ease); }
.video-btn svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
.video-play:hover .video-btn { transform: translate(-50%, -50%) scale(1.06); background: var(--accent-2); }
.video-label { position: absolute; left: var(--sp-3); bottom: var(--sp-3); color: #fff; font-family: var(--f-mono); font-size: var(--t-xs); background: rgba(0,0,0,.55); padding: .25rem .6rem; border-radius: 99px; }

/* lightbox */
a.lb { display: block; width: 100%; height: 100%; cursor: zoom-in; }
a.lb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .18s var(--ease); }
a.lb:hover img { opacity: .88; }
.prose a.lb img { height: auto; }
html.lb-open { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10,10,10,.96); color: #fff;
}
.lightbox::backdrop { background: rgba(10,10,10,.96); }
.lb-fig { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 64px 16px; gap: 10px; }
.lb-img { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; }
.lb-cap { font-size: var(--t-sm); color: #cfcfcf; text-align: center; min-height: 1.4em; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 99px; background: rgba(0,0,0,.4);
  color: #fff; font: 400 28px/1 var(--f-text); cursor: pointer;
}
.lb-btn:hover { background: var(--brand); border-color: var(--brand); }
.lb-btn:focus-visible { outline: 2px solid #C9B0F7; outline-offset: 2px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }
.lb-count { position: absolute; top: 22px; left: 20px; margin: 0; font-family: var(--f-mono); font-size: var(--t-xs); color: #cfcfcf; }
@media (max-width: 600px) { .lb-fig { padding: 56px 8px 12px; } .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; } }

/* mozaika na homepage odkazuje na realizace */
.work a { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.work a img { width: 100%; height: 100%; object-fit: cover; }
.work .work-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-5) var(--sp-3) var(--sp-3);
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  font-weight: 700; font-size: var(--t-sm); line-height: 1.3;
}
.work a:hover .work-cap { text-decoration: underline; }
@media (max-width: 819px) { .work figure { aspect-ratio: 3 / 2; } }

/* ===================== 11. RECENZE ===================== */
.says { display: grid; gap: var(--sp-7); }
@media (min-width: 900px) {
  .says { grid-template-columns: repeat(2, 1fr); gap: var(--sp-8) var(--sp-7); }
  .says > :first-child { grid-column: 1 / -1; }
}
.say { display: grid; gap: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line-2); }
.say blockquote {
  font-family: var(--f-display); font-weight: 500;
  font-size: var(--t-md); line-height: 1.38; letter-spacing: -0.01em;
  text-wrap: pretty;
}
.says > :first-child blockquote { font-size: var(--t-lg); line-height: 1.26; max-width: 30ch; }
.say footer { display: grid; gap: 0.15rem; }
.say .who { font-weight: 600; font-size: var(--t-sm); }
.say .meta { font-size: var(--t-sm); color: var(--ink-2); }
.say .job { font-size: var(--t-xs); color: var(--ink-2); }
.says-note { margin-top: var(--sp-7); font-size: var(--t-sm); color: var(--ink-2); }

/* hodnocení na portálech */
.ratings { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.rating {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-4);
  padding: var(--sp-5); background: var(--paper); border: 1px solid var(--line-2);
  text-decoration: none; color: var(--ink);
}
.rating:hover { border-color: var(--accent); color: var(--ink); }
.rating-score { font-size: var(--t-xl); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rating-score small { font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.rating-body { display: grid; gap: 0.2rem; }
.rating-src { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.rating-txt { font-size: var(--t-sm); color: var(--ink-2); }
.rating .btn-icon { color: var(--accent); }
.stars { display: inline-flex; gap: 2px; color: var(--brand); }
.stars svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }

/* tým (O nás) */
.people { display: grid; gap: var(--sp-6) var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.person { margin: 0; display: grid; gap: var(--sp-3); align-content: start; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-img); background: var(--sand); }
.person figcaption { display: grid; gap: 0.2rem; font-size: var(--t-sm); }
.person strong { font-size: var(--t-md); font-weight: 700; }
.person-role { color: var(--ink-2); }
.person a { justify-self: start; }

/* autor a datum */
.byline { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-2); margin-top: var(--sp-2); }
.entry-header .byline { margin-top: var(--sp-4); }

/* časté dotazy */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--sp-4) 2.5rem var(--sp-4) 0; font-weight: 700; font-size: var(--t-md); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 1.6rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq-a { padding: 0 0 var(--sp-5); color: var(--ink-2); max-width: 70ch; }
.faq-a p + p { margin-top: var(--sp-3); }

/* ===================== 12. Z BLOGU ===================== */
.reads { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) {
  .reads { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-5); }
}
.read { display: grid; gap: var(--sp-3); position: relative; align-content: start; }
.read-media { overflow: hidden; border-radius: var(--r-img); background: var(--sand); aspect-ratio: 3 / 2; }
.reads > :first-child .read-media { aspect-ratio: 4 / 3; }
.read-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.read:hover .read-media img, .read:focus-within .read-media img { transform: scale(1.03); }
.read .topic { font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.read h3 { font-size: var(--t-md); }
.reads > :first-child h3 { font-size: var(--t-lg); }
.read h3 a { text-decoration: none; }
.read h3 a::after { content: ""; position: absolute; inset: 0; }
.read p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }

/* ===================== 13. FORMULÁŘ ===================== */
.form-shell { background: var(--bone); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 4vw, 3rem); }
.form-shell > h2 { max-width: 20ch; }
.form-intro { color: var(--ink-2); margin-top: var(--sp-3); margin-bottom: var(--sp-6); max-width: 52ch; }
.field { display: grid; gap: 0.4rem; margin-bottom: var(--sp-4); }
.field label { font-weight: 600; font-size: var(--t-sm); }
.field .req { color: var(--ink-2); font-weight: 400; }
.field .hint { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.45; }
.field input, .field textarea {
  font: inherit; font-size: var(--t-base); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 0.75rem 0.9rem; min-height: 52px; width: 100%;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 9.5rem; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--focus); }
.field .err { font-size: var(--t-sm); color: var(--focus); font-weight: 600; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0 var(--sp-4); }

.notice { padding: var(--sp-4); border-radius: var(--r); margin-bottom: var(--sp-5); border: 1px solid; }
.notice--ok  { background: color-mix(in oklab, var(--accent) 10%, var(--paper)); border-color: var(--accent); }
.notice--err { background: color-mix(in oklab, var(--focus) 10%, var(--paper)); border-color: var(--focus); }
.notice h3 { font-size: var(--t-md); margin-bottom: 0.5rem; }
.notice ul { margin: 0; padding-left: 1.2em; }
.notice li + li { margin-top: 0.3em; }

/* dropzone */
.dropzone {
  position: relative; display: block;
  border: 1px dashed var(--line-2); border-radius: var(--r);
  background: var(--paper); padding: var(--sp-6) var(--sp-4);
  text-align: center;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.dropzone:hover { border-color: var(--accent); }
.dropzone.is-over { border-color: var(--accent); border-style: solid; background: color-mix(in oklab, var(--accent) 7%, var(--paper)); }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.dz-face { display: grid; gap: 0.3rem; pointer-events: none; }
.dz-face strong { font-size: var(--t-base); font-weight: 600; }
.dz-face span { color: var(--ink-2); font-size: var(--t-sm); }
.dz-tap { display: none; }
@media (hover: none), (pointer: coarse) { .dz-drag { display: none; } .dz-tap { display: block; } }
.dropzone:not([data-enhanced]) .dz-drag { display: none; }
.dropzone:not([data-enhanced]) .dz-tap { display: block; }

.upload-state { font-size: var(--t-sm); color: var(--ink-2); margin-top: 0.5rem; }
.upload-state[data-over="1"] { color: var(--focus); font-weight: 600; }
.file-list { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.file-list:empty { display: none; border: 0; }
.file-item { display: flex; align-items: center; gap: var(--sp-3); background: var(--paper); padding: 0.65rem 0.85rem; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-sm); }
.file-size { font-size: var(--t-sm); color: var(--ink-2); flex: none; font-variant-numeric: tabular-nums; }
.file-remove { flex: none; min-height: 40px; padding: 0.35rem 0.8rem; background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-btn); font: inherit; font-size: var(--t-sm); color: var(--ink); cursor: pointer; }
.file-remove:hover { border-color: var(--focus); color: var(--focus); }
.file-errors { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: 0.4rem; }
.file-errors:empty { display: none; }
.file-errors li { font-size: var(--t-sm); color: var(--focus); font-weight: 600; }

/* ===================== 14. BLOG ===================== */
.post-list { display: grid; gap: 0; }
.post-list article { position: relative; padding-block: var(--sp-7); border-top: 1px solid var(--line); display: grid; gap: var(--sp-4); }
@media (min-width: 760px) { .post-list article { grid-template-columns: 20rem minmax(0, 1fr); gap: var(--sp-6); align-items: start; } }
.post-list .read-media { aspect-ratio: 3 / 2; }
.post-list h2 { font-size: var(--t-lg); }
.post-list h2 a { text-decoration: none; }
.post-list h2 a::after { content: ""; position: absolute; inset: 0; }
.post-list .topic { font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.post-list p { color: var(--ink-2); margin-top: 0.7rem; max-width: 60ch; }

.entry-header { padding-block: var(--band) var(--sp-6); }
.entry-header h1 { max-width: 20ch; }
.entry-lead { font-size: var(--t-md); color: var(--ink-2); max-width: 52ch; margin-top: var(--sp-4); line-height: 1.5; }
.entry-hero { margin-bottom: var(--sp-8); }
.entry-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-img); }

.navigation.pagination { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.navigation.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; min-height: 48px; padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-2); border-radius: var(--r-btn); text-decoration: none;
  font-size: var(--t-sm); font-variant-numeric: tabular-nums;
}
.navigation.pagination .page-numbers:hover { border-color: var(--accent); }
.navigation.pagination .page-numbers.current:hover { color: var(--on-accent); }
.navigation.pagination .page-numbers.current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }

/* ===================== 15. PATIČKA ===================== */
.site-footer { background: var(--foot); color: var(--on-foot); padding-block: var(--sp-8) var(--sp-5); margin-top: var(--band); }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.site-footer h2 { font-size: var(--t-xs); font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: #B391F2; margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 38px; color: var(--on-foot); text-decoration-color: rgba(255,255,255,.3); }
.site-footer a:hover { color: #C9B0F7; text-decoration-color: #C9B0F7; }
.site-footer :focus-visible { outline-color: #C9B0F7; }
.footer-lede { font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); line-height: 1.15; max-width: 16ch; letter-spacing: -0.02em; }
.footer-muted { color: #A5A5A2; }
.contact-line { font-size: var(--t-md); }
.footer-logo { margin-top: var(--sp-8); }
.footer-logo img { display: block; width: 100%; height: auto; }
.footer-legal { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,.14); font-size: var(--t-sm); color: #A5A5A2; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }

/* ===================== 16. VOLACÍ LIŠTA ===================== */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; gap: 1px; background: var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--line);
}
.callbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 58px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--t-sm); }
.callbar a.primary { background: var(--accent); color: var(--on-accent); }
.callbar a:hover { color: var(--ink); }
.callbar a.primary:hover { background: var(--accent-2); color: var(--on-accent); }
@media (min-width: 901px) { .callbar { display: none; } }
@media (max-width: 900px) { body { padding-bottom: 58px; } }

/* ===================== 17. POHYB ===================== *
 * Žádné animace při nájezdu. Obsah stojí, jak je.
 * ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ===================== 18. PLACEHOLDER ===================== */
.img-placeholder {
  width: 100%; height: 100%; min-height: 10rem; background: var(--sand);
  border-radius: var(--r-img); position: relative; overflow: hidden;
}
.ref-media .img-placeholder, .read-media .img-placeholder { min-height: 0; aspect-ratio: auto; }
.img-placeholder::after {
  content: "fotku doplní Martin"; position: absolute; inset: 0;
  display: grid; place-items: center; padding: 1rem; text-align: center;
  font-size: var(--t-xs); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2);
}
