/* =========================================================
   U Tří oříšků – hlavní styly
   ========================================================= */

/* ---------- Fonty (lokálně, latin + latin-ext) ---------- */
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/sourcesans.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/sourcesans-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

/* ---------- Tokeny ---------- */
:root {
  --pink: #ffc2d0;
  --pink-50: #fff3f6;
  --pink-100: #ffe3ea;
  --pink-200: #f9d0dc;
  --pink-300: #efaac4;
  --berry: #ce3c74;
  --berry-dark: #a92a5c;
  --ink: #392a1e;
  --ink-soft: #5c4a3c;
  --cream: #fffaf7;
  --white: #fff;

  --accent: var(--berry);
  --accent-dark: var(--berry-dark);
  --accent-soft: var(--pink-300);
  --mark: rgba(206, 60, 116, .28);

  --ff-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(57, 42, 30, .35);
  --shadow-sm: 0 4px 14px -6px rgba(57, 42, 30, .3);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: clamp(1.02rem, .97rem + .25vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--pink);
  background-image:
    radial-gradient(at 11% 77%, #e7cbdd 0, transparent 50%),
    radial-gradient(at 65% 32%, #ffe8e0 0, transparent 50%),
    radial-gradient(at 2% 6%, #e6d1d9 0, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.6rem + 5.2vw, 5.4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); font-weight: 600; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 130px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 60px); text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08em; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .9em; }
.eyebrow .icon { width: 1.3em; height: 1.3em; }

/* zvýraznění slov „fixou“ */
.mark { background: linear-gradient(transparent 62%, var(--mark) 62%, var(--mark) 92%, transparent 92%); padding-inline: .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.light { font-weight: 400; }

/* ---------- Tlačítka ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .75em 1.5em;
  font: 700 1.02rem/1.2 var(--ff-body); letter-spacing: .01em;
  color: #fff; background: var(--b); border: 2px solid var(--b); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px -10px var(--b);
  transition: transform .2s, background-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 24px -10px var(--b); }
.btn .icon { width: 1.25em; height: 1.25em; }
.btn--ghost { color: var(--ink); background: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .9); box-shadow: none; backdrop-filter: blur(6px); }
.btn--ghost:hover { color: var(--ink); background: #fff; border-color: #fff; }
.btn--small { min-height: 42px; padding: .5em 1.1em; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sezónní lišta ---------- */
.season-bar { display: none; position: relative; z-index: 60; text-align: center; font-weight: 600; font-size: .98rem; padding: 9px var(--gutter); color: #fff; background: var(--ink); }
.season-bar a { color: inherit; display: inline-flex; align-items: center; gap: .55em; text-decoration: none; }
.season-bar a:hover { text-decoration: underline; color: inherit; }
.season-bar .icon { width: 1.45em; height: 1.45em; }

/* ---------- Hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
/* pozadí v pseudo-elementu: backdrop-filter přímo na hlavičce by „uvěznil“ fixní mobilní menu */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: rgba(255, 228, 236, .86); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 6px 24px -16px rgba(57, 42, 30, .5); }
.site-header.is-scrolled::before { opacity: 1; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { width: clamp(160px, 22vw, 210px); height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 8px 12px; font-weight: 600; font-size: .98rem; text-decoration: none; border-radius: 999px; transition: background-color .2s; }
.nav__list a:hover, .nav__list a[aria-current="page"] { background: rgba(255, 255, 255, .6); color: var(--ink); }
.nav__social { display: flex; gap: 4px; margin-left: 10px; }
.nav__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); transition: background-color .2s, color .2s; }
.nav__social a:hover { background: var(--accent); color: #fff; }
.nav__social .icon { width: 20px; height: 20px; }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .7); color: var(--ink); cursor: pointer; position: relative; z-index: 70;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; display: block; width: 22px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .3s, opacity .2s; }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before { position: absolute; top: -7px; }
  .nav-toggle__bars::after { position: absolute; top: 7px; }
  .nav-open .nav-toggle__bars { background: transparent; }
  .nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 65; flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(255, 214, 225, .97); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .3s, visibility 0s .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s; }
  .nav__list { flex-direction: column; align-items: center; gap: 4px; }
  .nav__list a { font-family: var(--ff-head); font-size: 1.7rem; font-weight: 600; padding: 8px 22px; }
  .nav__social { margin: 0; }
  .nav__social a { width: 52px; height: 52px; background: rgba(255, 255, 255, .7); }
  .nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 80px); position: relative; display: grid; align-items: center; }
/* na vysokých obrazovkách vyplní hero výšku okna a obsah se vystředí */
@media (min-width: 900px) and (min-height: 720px) { .hero { min-height: min(calc(100svh - var(--header-h)), 1000px); } }
.hero .wrap { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__text p { max-width: 36em; font-size: 1.08em; }
.hero__text h1 { margin-bottom: .35em; }
.hero .btn-row { margin-top: 28px; }
.hero__media { position: relative; justify-self: center; width: min(100%, 440px); }
.hero__media img { width: 100%; filter: drop-shadow(0 30px 40px rgba(120, 40, 70, .22)); }
.badge-round {
  position: absolute; left: -2%; top: 6%; width: clamp(104px, 15vw, 136px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4b3828, var(--ink) 70%); color: #fff;
  transform: rotate(-8deg); box-shadow: 0 0 0 4px rgba(255, 255, 255, .55), var(--shadow);
}
/* vnitřní tečkovaný prstenec jako u pečeti */
.badge-round::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .35); }
/* obsah je ve vnitřním prvku – sezónní pravidla přepínají display vnějšího prvku */
.badge-round__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.badge-round__in span { font: 700 clamp(.58rem, .5rem + .25vw, .7rem)/1 var(--ff-body); letter-spacing: .18em; text-transform: uppercase; opacity: .88; padding-left: .18em; }
.badge-round__in strong { font: 700 clamp(1.7rem, 1.3rem + 1.2vw, 2.25rem)/.95 var(--ff-head); font-variant-numeric: lining-nums; color: var(--accent-soft); }
.badge-round[data-for] .badge-round__in strong { font-size: clamp(1rem, .85rem + .6vw, 1.3rem); font-style: italic; line-height: 1.05; max-width: 82%; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; padding: 0; list-style: none; font-weight: 600; color: var(--ink-soft); }
.hero__stats li { display: flex; align-items: center; gap: 8px; }
.hero__stats .icon { color: var(--accent); width: 1.3em; height: 1.3em; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.08fr .92fr; }
}

/* ---------- Karty nabídky (polaroid) ---------- */
.offer-grid { display: grid; gap: clamp(22px, 3vw, 36px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.polaroid { background: #fff; padding: 12px 12px 0; border-radius: 6px; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2, .8, .3, 1.2), box-shadow .35s; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.offer-card { display: flex; flex-direction: column; }
.offer-card .polaroid { transform: rotate(var(--r, -1.5deg)); }
.offer-card:nth-child(2n) .polaroid { --r: 1.6deg; }
.offer-card:nth-child(3n) .polaroid { --r: -.8deg; }
.offer-card:hover .polaroid { transform: rotate(0) translateY(-6px); box-shadow: 0 22px 40px -18px rgba(57, 42, 30, .45); }
.polaroid__caption { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 6px 16px; font-family: var(--ff-head); font-size: 1.32rem; font-weight: 600; text-align: center; }
.polaroid__caption .icon { color: var(--accent); width: 1.15em; height: 1.15em; }
.offer-card p { margin: 18px 6px 0; color: var(--ink-soft); }

/* ---------- Dvousloupcové bloky ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__media { position: relative; justify-self: center; width: min(100%, 520px); }
.split__media--cut { width: min(100%, 440px); }
.split__media > img { width: 100%; }
.split__media--cut img { filter: drop-shadow(0 26px 34px rgba(120, 40, 70, .2)); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--rev .split__media { order: -1; }
}
.deco { position: absolute; pointer-events: none; z-index: -1; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.tag-list li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .65); font-weight: 600; font-size: .92rem; }

/* ---------- Benefity ---------- */
.benefits { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); counter-reset: b; }
.benefit { position: relative; padding: 34px 28px 28px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius); box-shadow: var(--shadow-sm); backdrop-filter: blur(4px); }
.benefit__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px var(--accent); }
.benefit__icon .icon { width: 32px; height: 32px; }
.benefit::after { counter-increment: b; content: "0" counter(b); position: absolute; right: 22px; top: 14px; font: italic 700 2.8rem/1 var(--ff-head); color: var(--pink-300); opacity: .7; }
.benefit p { margin: 0; color: var(--ink-soft); }

/* ---------- O nás ---------- */
.photo-frame { background: #fff; padding: 14px 14px 64px; border-radius: 6px; box-shadow: var(--shadow); transform: rotate(-2.5deg); position: relative; }
.photo-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-frame figcaption { position: absolute; left: 10px; right: 10px; bottom: 16px; text-align: center; font: italic 500 clamp(1rem, .9rem + .5vw, 1.25rem)/1.25 var(--ff-head); color: var(--ink-soft); }
.photo-frame figcaption span { color: var(--accent-dark); font-weight: 700; white-space: nowrap; }
.royal-portrait { position: relative; margin: 0 auto; width: min(100%, 460px); padding: 16px; border-radius: 50% / 46%; background: linear-gradient(135deg, #f3e3b4, #c9a14a 40%, #f6e7bd 60%, #b98d34); box-shadow: var(--shadow); }
.royal-portrait img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 50% / 46%; border: 4px solid #fff8ea; }
.royal-portrait figcaption {
  position: absolute; left: 50%; bottom: -20px; translate: -50% 0; white-space: nowrap;
  padding: 9px 44px; font: italic 600 clamp(.95rem, .85rem + .4vw, 1.1rem) var(--ff-head); color: #fff; background: var(--berry);
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); box-shadow: var(--shadow-sm);
}
.since { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 8px; font-family: var(--ff-head); }
.since strong { font-size: 3rem; line-height: 1; color: var(--accent); }

/* ---------- Recenze ---------- */
.reviews { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.review { display: flex; flex-direction: column; margin: 0; padding: 26px 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; }
.review::before { content: "“"; position: absolute; right: 18px; top: -6px; font: 700 5rem/1 var(--ff-head); color: var(--pink-300); }
.stars { display: flex; gap: 2px; color: #f2b01e; margin-bottom: 12px; }
.stars .icon { width: 18px; height: 18px; }
.review blockquote { margin: 0 0 16px; flex: 1; }
.review figcaption { font-weight: 700; }
.reviews-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; margin-top: 36px; }
.reviews-cta img { width: 180px; }

/* ---------- Prodejny ---------- */
.map-box { position: relative; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .55); box-shadow: var(--shadow); border: 6px solid #fff; min-height: 360px; display: grid; }
.map-box iframe { width: 100%; height: 100%; min-height: clamp(360px, 40vw, 460px); border: 0; display: block; }
.map-consent { display: grid; place-items: center; align-content: center; gap: 14px; padding: 36px 24px; text-align: center; background:
  radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .7), transparent 60%),
  repeating-linear-gradient(45deg, rgba(255, 255, 255, .25) 0 12px, transparent 12px 24px); }
.map-consent p { max-width: 32em; margin: 0; font-size: .95rem; color: var(--ink-soft); }
.map-consent .icon { width: 44px; height: 44px; color: var(--accent); }
.map-consent .btn-row { justify-content: center; gap: 8px; }
.tag-list a { text-decoration: none; }
.tag-list a:hover { color: var(--accent-dark); }

.stores { display: grid; gap: clamp(22px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: clamp(40px, 5vw, 64px); }
.store { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.store__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.store__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.store:hover .store__photo img { transform: scale(1.04); }
.open-badge { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-weight: 700; font-size: .86rem; box-shadow: var(--shadow-sm); }
.open-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9a9a9a; }
.open-badge[data-state="open"]::before { background: #23a55a; box-shadow: 0 0 0 4px rgba(35, 165, 90, .2); }
.open-badge[data-state="closed"]::before { background: #d9534f; }
.open-badge:empty { display: none; }
.store__body { padding: 22px clamp(18px, 2vw, 24px) 26px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.store__title small { display: block; font: 700 .78rem var(--ff-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 4px; }
.store__title h3 { margin: 0; }
.store__notice { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: #fff4d6; border: 1px solid #f2d27a; font-weight: 600; font-size: .95rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .98rem; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--accent); margin-top: .22em; width: 1.1em; height: 1.1em; }
.contact-list a { word-break: break-word; }
.contact-list small { color: var(--ink-soft); }
.hours { width: 100%; border-collapse: collapse; font-size: .96rem; }
.hours caption { text-align: left; font-weight: 700; margin-bottom: 6px; white-space: nowrap; }
.hours caption .icon { color: var(--accent); display: inline-block; vertical-align: -.2em; margin-right: 8px; }
.hours th, .hours td { padding: 5px 8px; text-align: left; border-bottom: 1px dashed var(--pink-200); }
.hours th { font-weight: 600; width: 40%; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today { background: var(--pink-100); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 800; }
.hours .closed { color: var(--ink-soft); }
details.assort summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
details.assort summary::-webkit-details-marker { display: none; }
details.assort summary::after { content: "+"; margin-left: auto; font-size: 1.4em; line-height: 1; color: var(--accent); transition: transform .2s; }
details.assort[open] summary::after { transform: rotate(45deg); }
details.assort ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--ink-soft); }
.store__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.store__actions .btn { flex: 1 1 140px; }
.note { margin-top: 26px; text-align: center; color: var(--ink-soft); font-size: .95rem; }
.store.is-nearest { outline: 4px solid var(--accent); outline-offset: 4px; }
.store__dist { font-size: .9rem; font-weight: 700; color: var(--accent-dark); }
.store__dist:empty { display: none; }

/* nejbližší prodejna */
.nearest {
  display: grid; gap: 16px 28px; align-items: center;
  margin-top: clamp(32px, 4vw, 48px); padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 32px);
  border-radius: var(--radius); background: rgba(255, 255, 255, .62); border: 1px solid #fff; box-shadow: var(--shadow-sm);
}
.nearest__intro { display: flex; align-items: center; gap: 16px; }
.nearest__icon { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px var(--accent); }
.nearest__icon .icon { width: 30px; height: 30px; }
.nearest h3 { margin: 0 0 .15em; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.nearest__hint { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.nearest__result:empty { display: none; }
.nearest__result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; border-top: 1px dashed var(--pink-300); }
.nearest__store h3 { margin-bottom: .1em; }
.nearest__store p { margin: 0; }
.nearest__result .btn-row { gap: 8px; }
.nearest__note { font-size: .88rem; color: var(--ink-soft); max-width: 46em; margin-top: 6px !important; }
.nearest__err { color: #9b2a2a; font-weight: 600; margin: 0; }
@media (min-width: 760px) {
  .nearest { grid-template-columns: 1fr auto; }
  .nearest__result { grid-column: 1 / -1; }
}
@media (min-width: 900px) { .split--map { align-items: start; } }

/* ---------- Galerie – úvodní karty kategorií ---------- */
.gal-cards { --cols: 2; --gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: calc(var(--gap) + 8px) var(--gap); }
.gal-cards > .gal-card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
@media (min-width: 640px) { .gal-cards { --cols: 3; --gap: 22px; } .gal-cards[data-cols="1"] { --cols: 1; } .gal-cards[data-cols="2"] { --cols: 2; } }
@media (min-width: 900px) { .gal-cards { --gap: 28px; } .gal-cards[data-cols="4"] { --cols: 4; } }
.gal-card { display: flex; flex-direction: column; background: #fff; padding: 10px 10px 14px; border-radius: 6px; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.gal-card:nth-child(odd) { transform: rotate(-1.2deg); }
.gal-card:nth-child(even) { transform: rotate(1.2deg); }
.gal-card:hover { transform: rotate(0) translateY(-5px); box-shadow: var(--shadow); color: var(--ink); }
.gal-card__img { aspect-ratio: 1; overflow: hidden; border-radius: 2px; }
.gal-card__img img { width: 100%; height: 100%; object-fit: cover; }
.gal-card__name { font: 600 1.15rem var(--ff-head); margin-top: 12px; text-align: center; }
.gal-card__count { font-size: .88rem; color: var(--ink-soft); text-align: center; }

/* ---------- Galerie – stránka ---------- */
.page-hero { padding-block: clamp(24px, 5vw, 60px) clamp(20px, 3vw, 36px); text-align: center; }
.page-hero p { max-width: 640px; margin-inline: auto; color: var(--ink-soft); }
.g-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 8px; padding: 10px 0 14px; margin-bottom: 18px; }
@media (max-width: 640px) {
  .g-filter { gap: 6px; }
  .g-filter .chip { padding: 6px 11px; font-size: .84rem; gap: 6px; border-width: 1px; }
  .g-filter .chip span { padding: 0 6px; }
}
/* na počítači zůstanou kategorie při posouvání pod hlavičkou */
@media (min-width: 900px) {
  .g-filter { position: sticky; top: var(--header-h); z-index: 20; margin-inline: -12px; padding-inline: 12px; border-radius: 0 0 var(--radius) var(--radius); }
  .g-filter.is-stuck { background: rgba(255, 228, 236, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 20px -18px rgba(57, 42, 30, .6); }
}
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; background: rgba(255, 255, 255, .75); border: 2px solid #fff; box-shadow: var(--shadow-sm); transition: background-color .2s, color .2s; }
.chip span { font-size: .8em; padding: 1px 7px; border-radius: 999px; background: var(--pink-100); color: var(--ink-soft); }
.chip:hover { color: var(--ink); background: #fff; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }
.g-cat { padding-block: 18px 40px; }
.g-cat[hidden] { display: none; }
.g-cat__head { margin-bottom: 18px; }
.g-cat__head h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); margin-bottom: .2em; }
.g-cat__head p { margin: 0; color: var(--ink-soft); }
/* pravidelná mřížka čtvercových náhledů; celá fotka se ukáže v lightboxu */
.g-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .g-grid { gap: 18px; grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .g-grid { grid-template-columns: repeat(4, 1fr); } }
.g-item { display: flex; flex-direction: column; margin: 0; background: #fff; padding: 8px 8px 0; border-radius: 6px; box-shadow: var(--shadow-sm); }
.g-link { display: block; overflow: hidden; border-radius: 2px; cursor: zoom-in; }
.g-link img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; transition: transform .5s; }
.g-link:hover img { transform: scale(1.04); }
.g-item figcaption { padding: 8px 4px 10px; font-size: .9rem; line-height: 1.35; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.35em + 18px); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: rgba(36, 22, 14, .94); color: #fff; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; touch-action: pan-y; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .25s; }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 60px 12px 8px; min-height: 0; overflow: hidden; }
/* pevné maximum podle okna: nahoře místo pro zavírací tlačítko, dole pro popisek (≈ 150 px), po stranách pro šipky */
.lightbox__img { display: block; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
@media (min-width: 641px) { .lightbox__stage { padding-inline: 76px; } }
.lightbox__bar { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); text-align: center; }
.lightbox__caption { font-size: 1rem; }
.lightbox__count { opacity: .7; font-size: .9rem; font-variant-numeric: tabular-nums; }
.lb-btn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .14); color: #fff; transition: background-color .2s; }
.lb-btn:hover { background: var(--accent); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-close { position: absolute; top: 10px; right: 10px; z-index: 2; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .contact { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.contact__info .contact-list { font-size: 1.05rem; gap: 12px; margin-top: 22px; }
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 2px solid var(--pink-200); border-radius: 12px; background: var(--pink-50);
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d9534f; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-foot p { margin: 0; font-size: .85rem; color: var(--ink-soft); max-width: 30em; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-weight: 600; display: none; }
.form-status.is-ok { display: block; background: #e3f6ea; color: #1d6b3b; }
.form-status.is-err { display: block; background: #fde6e6; color: #9b2a2a; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Patička ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); background: var(--ink); color: #f5e9e4; padding-block: 56px 28px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 30px; background: radial-gradient(circle at 15px 30px, var(--ink) 15px, transparent 16px) 0 0 / 30px 30px repeat-x; }
.site-footer a { color: #fff; text-decoration-color: var(--accent-soft); }
.site-footer a:hover { color: var(--accent-soft); }
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-logo img { width: 200px; filter: brightness(0) invert(1); opacity: .95; }
.site-footer h2 { font-size: 1.2rem; color: #fff; margin-bottom: .8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-social .icon { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; color: #cdbdb4; }
.footer-bottom button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }

/* ---------- Cookie lišta ---------- */
.cookie-bar { position: fixed; z-index: 250; left: 12px; right: 12px; bottom: 12px; max-width: 460px; margin-left: auto; padding: 22px 22px 18px; background: #fff; border-radius: var(--radius); box-shadow: 0 20px 60px -15px rgba(57, 42, 30, .55); transform: translateY(130%); transition: transform .45s cubic-bezier(.2, .9, .3, 1.1); }
.cookie-bar.is-visible { transform: none; }
.cookie-bar h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: .4em; }
.cookie-bar h2 .icon { color: #b07a4a; width: 28px; height: 28px; }
.cookie-bar p { font-size: .93rem; color: var(--ink-soft); margin-bottom: 14px; }
.cookie-bar .btn-row { gap: 8px; }
.cookie-bar .btn { flex: 1 1 auto; min-height: 46px; padding: .55em 1em; font-size: .95rem; }
.cookie-bar .btn--ghost { background: var(--pink-100); border-color: var(--pink-100); }
.cookie-prefs { display: none; margin: 4px 0 14px; padding: 0; border: 0; }
.cookie-bar.show-prefs .cookie-prefs { display: grid; gap: 10px; }
.cookie-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--pink-50); font-size: .92rem; }
.cookie-opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.cookie-opt strong { display: block; }
.cookie-opt span { color: var(--ink-soft); }
.cookie-bar .link { font-size: .85rem; display: inline-block; margin-top: 10px; }

/* ---------- Animace při scrollu ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Textová stránka ---------- */
.prose { max-width: 760px; margin-inline: auto; background: rgba(255, 255, 255, .7); padding: clamp(24px, 5vw, 56px); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 1em; }
.prose th, .prose td { text-align: left; padding: 8px; border-bottom: 1px solid var(--pink-200); vertical-align: top; }

/* ---------- děkovací stránka ---------- */
.thanks__inner { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.thanks__img { width: min(100%, 340px); justify-self: center; filter: drop-shadow(0 24px 30px rgba(120, 40, 70, .22)); }
.thanks h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.8rem); }
.thanks .btn-row { margin-top: 26px; }
@media (min-width: 860px) { .thanks__inner { grid-template-columns: .8fr 1.2fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font: 800 clamp(6rem, 20vw, 12rem)/1 var(--ff-head); color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
