/* Šablona strihani-mazlicku – vzhled C · Sousedský salon. Převzato z náhledu (nahled/styly/zaklad.css + c-soused.css),
   úpravy pro WordPress jsou v wp.css. Tmavý režim: html[data-theme="dark"] (nastaví hlavička podle systému). */
/* Základ sdílený všemi návrhy: reset, přístupnost, tlačítka, dotazy, štítek „Doplní salon“, šipka nahoru.
   Barvy a písma si nastavuje každý návrh ve svém stylopisu přes tyto proměnné (světlý i tmavý režim: html[data-theme="dark"]). */
:root {
  --bg: #fff; --surface: #fff; --text: #1d1d1f; --muted: #625e56; --border: #e3dfd6; --primary: #2e2340; --akcent: #6b2fb3; --na-akcentu: #fff;
  --tl: var(--akcent); --na-tl: #fff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --font-nadpis: var(--font);
  --radius: 12px; --mezera: clamp(16px, 4vw, 32px); --sirka: 1200px;
  color-scheme: light;
}
html[data-theme="dark"] { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html[data-pismo="m"] { font-size: 93.75%; }
html[data-pismo="v"] { font-size: 112.5%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--font); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-nadpis); line-height: 1.2; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--akcent); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
ul.bez { list-style: none; margin: 0; padding: 0; }
[class*="mrizka"] > *, [class*="grid"] > * { min-width: 0; }
[hidden] { display: none !important; }
.ik { flex: none; vertical-align: middle; }
.ik-ven { vertical-align: -2px; margin-left: 3px; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.preskocit { position: absolute; left: 8px; top: -60px; z-index: 1000; padding: 10px 14px; background: var(--tl); color: var(--na-tl); border-radius: 8px; }
.preskocit:focus { top: 8px; }

/* Tlačítka: max. tři varianty */
.tl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: max(1rem, 16px); text-decoration: none; cursor: pointer; white-space: nowrap; }
.tl--plne { border: 2px solid var(--tl); background: var(--tl); color: var(--na-tl); }
.tl--obrys { border: 2px solid currentColor; background: transparent; color: var(--primary); }
.tl--text { border: 0; background: none; color: var(--akcent); padding: 0; min-height: 0; text-decoration: underline; text-underline-offset: 3px; }

/* Časté dotazy (details/summary) */
.dotazy details { border-bottom: 1px solid var(--border); }
.dotazy summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 700; cursor: pointer; list-style: none; }
.dotazy summary::-webkit-details-marker { display: none; }
.dotazy summary::after { content: "+"; flex: none; font-size: 1.4em; line-height: 1; color: var(--akcent); }
.dotazy details[open] summary::after { content: "–"; }
.dotazy details p { margin: 0 0 16px; color: var(--muted); }

/* Ceník */
.cenik { width: 100%; border-collapse: collapse; }
.cenik th, .cenik td { padding: 14px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.cenik th small { display: block; font-weight: 400; color: var(--muted); }
.cenik td { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 16px; }
.cenik__pozn { color: var(--muted); font-size: .92rem; }

/* Kontaktní údaje */
.udaje { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.udaje li { display: flex; gap: 12px; align-items: flex-start; }
.udaje .ik { margin-top: 1px; color: var(--akcent); }
.udaje a { text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.udaje a:hover { text-decoration: underline; }

/* Šipka nahoru (vpravo dole, nad lištou náhledu) */
.nahoru { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--bg); box-shadow: 0 6px 18px rgba(0,0,0,.2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.nahoru.videt { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* C · Sousedský salon – fialová a světle levandulová, Bitter + Figtree. Mobil první, větší obrazovky přes min-width. */
:root {
  --bg: #faf8fc; --surface: #fff; --tonovana: #efe8f6; --text: #251d33; --muted: #625a70; --border: #e4dcef;
  --primary: #2e2340; --akcent: #6b2fb3; --tl: #6b2fb3; --na-tl: #fff; --mapa-zem: #efeaf3; --mapa-park: #cfdcc4; --mapa-silnice: #fff;
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --font-nadpis: "Bitter", Georgia, serif;
  --radius: 14px;
}
html[data-theme="dark"] {
  --bg: #000; --surface: #13101a; --tonovana: #1a1522; --text: #f1ecf8; --muted: #b9b0c9; --border: #332b40;
  --primary: #e8e0f3; --akcent: #c4a1ff; --tl: #c4a1ff; --na-tl: #1c0b33; --mapa-zem: #1c1922; --mapa-park: #2a3527; --mapa-silnice: #3a3346;
}

.c-sirka { width: 100%; max-width: var(--sirka); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .c-sirka { padding: 0 var(--mezera); } }

/* Pruh s adresou (jen tablet a víc – na mobilu je telefon ve spodní liště) */
.c-pruh { display: none; background: var(--primary); color: var(--bg); font-size: .9rem; }
.c-pruh .c-sirka { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.c-pruh span, .c-pruh a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.c-pruh .ik { width: 16px; height: 16px; }
@media (min-width: 700px) { .c-pruh { display: block; } }

/* Hlavička */
.c-hlava { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.c-hlava__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.c-znacka { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.c-znacka__ik { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--akcent); color: var(--na-tl); }
.c-znacka b { display: block; font: 700 1.15rem/1.1 var(--font-nadpis); }
.c-znacka small { display: block; color: var(--muted); font-size: .82rem; }
.c-menu-tl { min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 600; cursor: pointer; }
.c-menu { display: none; flex-basis: 100%; padding-bottom: 12px; }
body[data-otevreno] .c-menu { display: block; }
.c-menu ul { list-style: none; margin: 0; padding: 0; display: grid; }
.c-menu a { display: block; padding: 12px 4px; border-top: 1px solid var(--border); text-decoration: none; font-weight: 600; }
.c-menu a[aria-current="page"] { color: var(--akcent); }
@media (min-width: 960px) {
  .c-menu-tl { display: none; }
  .c-menu { display: block; flex-basis: auto; padding: 0; }
  .c-menu ul { display: flex; gap: 4px; }
  .c-menu a { border: 0; padding: 8px 12px; border-radius: 999px; }
  .c-menu a:hover { background: var(--tonovana); }
  .c-menu a[aria-current="page"] { background: var(--tonovana); }
}

/* Úvod */
.c-uvod { padding: 32px 0 40px; }
.c-uvod__in { display: grid; gap: 28px; align-items: center; }
.c-stitek { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: var(--tonovana); color: var(--akcent); font-weight: 700; font-size: .9rem; }
.c-stitek .ik { width: 16px; height: 16px; }
.c-uvod h1 { margin: 0 0 14px; font-size: clamp(2rem, 7vw, 3.4rem); color: var(--primary); }
.c-uvod__perex { margin: 0 0 22px; font-size: 1.12rem; color: var(--muted); max-width: 34rem; }
.c-uvod__tl { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.c-uvod__vzkaz { margin: 0; padding-left: 14px; border-left: 3px solid var(--akcent); font-style: italic; color: var(--muted); }
.c-uvod__vzkaz span { font-style: normal; white-space: nowrap; }
@media (min-width: 900px) { .c-uvod { padding: 64px 0 72px; } .c-uvod__in { grid-template-columns: 1.1fr .9fr; gap: 56px; } }

/* Ilustrovaná mapa */
.c-mapa { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.c-mapa__svg { display: block; width: 100%; height: auto; }
.c-m-zem { fill: var(--mapa-zem); }
.c-m-park { fill: var(--mapa-park); }
.c-m-silnice { fill: none; stroke: var(--mapa-silnice); stroke-width: 9; stroke-linecap: round; }
.c-m-silnice--hl { stroke-width: 15; }
.c-m-silnice--m { stroke-width: 5; }
.c-m-pin path { fill: var(--akcent); }
.c-m-pin circle { fill: var(--surface); }
.c-m-popis { font: 700 15px var(--font); fill: var(--text); paint-order: stroke; stroke: var(--mapa-zem); stroke-width: 4px; }
.c-m-popis--park { font-weight: 600; fill: var(--muted); }
.c-mapa figcaption { display: grid; gap: 2px; padding: 14px 18px 16px; }
.c-mapa figcaption span { color: var(--muted); }
.mapa-odkazy { margin: 6px 0 0; font-size: .95rem; }
.mapa-odkazy a { color: var(--akcent); font-weight: 600; }

/* Sekce */
.c-sekce { padding: 44px 0; }
.c-sekce--tonovana { background: var(--tonovana); }
.c-sekce h2, .c-text h2, .c-kontakt h2 { margin: 0 0 18px; font-size: clamp(1.4rem, 4vw, 1.9rem); color: var(--primary); }
.c-dve { display: grid; gap: 40px; }
@media (min-width: 900px) { .c-sekce { padding: 72px 0; } .c-dve { grid-template-columns: 1fr 1fr; gap: 64px; } }
.c-dale { margin: 18px 0 0; }

/* Služby jako řádky */
.c-sluzby { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.c-sluzby a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; }
.c-sluzby a:hover { border-color: var(--akcent); }
.c-sluzby a > .ik { color: var(--akcent); }
.c-sluzby b { display: block; font-size: 1.08rem; }
.c-sluzby a span span { display: block; color: var(--muted); font-size: .95rem; }
.c-sluzby__ik { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--tonovana); color: var(--akcent); }
@media (min-width: 900px) { .c-sluzby { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } }

/* Kroky */
.c-kroky { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: krok; }
.c-kroky li { position: relative; padding: 20px 20px 20px 72px; background: var(--surface); border-radius: var(--radius); counter-increment: krok; }
.c-kroky li::before { content: counter(krok); position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--akcent); color: var(--na-tl); font: 700 1.1rem var(--font-nadpis); }
.c-kroky h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.c-kroky p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .c-kroky { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Vzkazy */
.c-vzkazy figure { margin: 0 0 16px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.c-vzkazy blockquote { margin: 0; }
.c-vzkazy blockquote p { margin: 0 0 10px; font: 600 1.1rem/1.5 var(--font-nadpis); }
.c-vzkazy figcaption { color: var(--muted); font-size: .92rem; }
.c-foto { display: grid; place-items: center; min-height: 220px; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px; text-align: center; }

/* Podstránky: text + boční karta */
.c-podstranka { display: grid; gap: 32px; padding-top: 24px; padding-bottom: 56px; }
@media (min-width: 960px) { .c-podstranka { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 40px; padding-bottom: 80px; } }
.c-text { max-width: 44rem; }
.c-text h1, .c-vypis h1, .c-kontakt h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 6vw, 2.6rem); color: var(--primary); }
.c-text h2 { margin-top: 36px; }
.c-perex { margin: 0 0 24px; font-size: 1.12rem; color: var(--muted); }
.c-bok__karta { position: sticky; top: 96px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.c-bok h2 { margin: 0 0 8px; font-size: 1.25rem; }
.c-bok p { margin: 0 0 16px; color: var(--muted); }
.c-bok .tl { width: 100%; margin-bottom: 20px; }
.c-bok__udaje { font-size: .95rem; }
.c-drobky ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; color: var(--muted); font-size: .9rem; }
.c-drobky li + li::before { content: "›"; margin-right: 6px; }
.c-drobky a { text-decoration: none; }
.c-drobky a:hover { text-decoration: underline; }
.c-sluzba-blok { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.c-sluzba-blok h2 { margin: 6px 0 6px !important; font-size: 1.3rem !important; }
.c-sluzba-blok p { margin: 0 0 8px; }
.c-pro { color: var(--muted); }
.c-fajfky { list-style: none; padding: 0; display: grid; gap: 8px; }
.c-fajfky li { position: relative; padding-left: 30px; }
.c-fajfky li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--akcent); font-weight: 700; }
.c-dalsi { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.c-dalsi a { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; background: var(--surface); }
.c-dalsi a:hover { border-color: var(--akcent); }
.kroky { padding-left: 1.2rem; }
.kroky h2 { font-size: 1.15rem !important; margin: 20px 0 4px !important; }
.c-vyzva { display: grid; gap: 14px; justify-items: start; margin: 40px 0 0; padding: 22px 24px; background: var(--tonovana); border-radius: var(--radius); }
.c-vyzva p { margin: 0; }
@media (min-width: 700px) { .c-vyzva { grid-template-columns: 1fr auto; align-items: center; } }

/* Výpis rad */
.c-vypis { padding-top: 24px; padding-bottom: 64px; }
.c-karty { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.c-karta { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.c-karta:hover { border-color: var(--akcent); }
.c-karta img, .c-karta__bez { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--tonovana); }
.c-karta__bez { display: grid; place-items: center; color: var(--akcent); }
.c-karta__bez .ik { width: 48px; height: 48px; }
.c-karta__text { display: grid; gap: 6px; padding: 16px 18px 20px; }
.c-karta__text b { font: 700 1.08rem/1.3 var(--font-nadpis); }
.c-karta__text span { color: var(--muted); font-size: .93rem; }
.c-karty--male { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.c-karty--male .c-karta__text span { display: none; }

/* Článek */
.c-datum { margin: 0 0 20px; color: var(--muted); }
.c-clanek__obr { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }
.c-clanek__text { font-size: 1.08rem; }
.c-clanek__text h2, .c-clanek__text h3 { margin: 32px 0 10px; color: var(--primary); }

/* Kontakt */
.c-kontakt { padding-top: 24px; padding-bottom: 72px; }
.c-kontakt .c-dve { margin-bottom: 48px; }
.c-kontakt .c-uvod__tl { margin-top: 24px; }
.c-sekce-vzkazy { max-width: 44rem; }
.c-formular { display: grid; gap: 14px; margin-top: 28px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.c-formular h3 { margin: 0; }
.c-formular label { display: grid; gap: 6px; font-weight: 600; }
.c-formular input, .c-formular textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); font-size: max(1rem, 16px); }
.c-formular .tl { justify-self: start; }
.c-pozn { margin: 0; color: var(--muted); font-size: .9rem; }

/* Patička */
.c-pata { padding: 48px 0 110px; background: var(--primary); color: var(--bg); }
.c-pata__in { display: grid; gap: 28px; }
.c-pata p { margin: 0 0 12px; }
.c-pata__nazev { font: 700 1.15rem var(--font-nadpis); }
.c-pata a { color: inherit; }
.c-pata li { margin-bottom: 6px; }
.c-pata .mapa-odkazy a { color: inherit; }
@media (min-width: 900px) { .c-pata { padding-bottom: 48px; } .c-pata__in { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Spodní lišta na mobilu: Zavolat / Mapa */
.c-volat { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: 2fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.c-volat a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.c-volat__tl { background: var(--tl); color: var(--na-tl); }
.c-volat__mapa { border: 2px solid var(--border); }
@media (max-width: 899px) { body { padding-bottom: 72px; } .nahoru { bottom: 84px; } }
@media (min-width: 900px) { .c-volat { display: none; } }
