/* ==========================================================================
   AURA MICHAELL MASSAGE — stylový průvodce (redesign: teplé přírodní spa)

   01. Proměnné a reset
   02. Stránkové kostry (nav offset, sticky footer)
   03. Navigace (primary-nav)
   04. Tlačítka (sdílený systém)
   05. Hero + parallax sekce
   06. Domovská stránka (přivítání, galerie, věrnostní karta)
   07. Recenze a mapa
   08. Kniha návštěv
   09. Odznak/impressum (embossed) + patička
   10. O mně
   11. Obchod a poukazy
   12. Ceremonie
   13. Přehled masáží a služeb (svc2)
   14. Ochrana osobních údajů
   15. Administrace (ceník + kniha návštěv)
   16. Cookie lišta, scroll-to-top, modály, drobnosti
   ========================================================================== */

/* 01. Proměnné a reset ---------------------------------------------------- */

/* Fonty jsou uložené přímo na webu (složka fonts/), ne načítané z Google Fonts:
   prohlížeč tak kvůli písmu neposílá IP adresu návštěvníka Googlu.
   Každé písmo má dvě části - latin a latin-ext (česká diakritika). Prohlížeč
   stáhne jen tu, jejíž znaky na stránce opravdu jsou. Raleway a Cormorant
   Garamond jsou variabilní: jeden soubor pokrývá všechny řezy. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-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;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-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;
}

/* Kurzíva Cormorant Garamond: věnování na dárkových poukazech (administrace). */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-italic-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;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-italic-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: "Tenor Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/tenor-sans-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;
}

@font-face {
  font-family: "Tenor Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/tenor-sans-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: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/raleway-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;
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/raleway-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: "Lavishly Yours";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lavishly-yours-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;
}

@font-face {
  font-family: "Lavishly Yours";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lavishly-yours-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;
}

:root {
  --ink: #3b2a1e;
  --ink-soft: #5c4838;
  --cream: #f1e6d5;
  --cream-2: #e5d4bb;
  --surface: #faf2e5;
  --accent: #b4642e;
  --accent-dark: #8c4a22;
  --accent-soft: #dfc7a0;
  --accent-tint: #eddcc4;
  --gold: #c79a56;
  --line: #d3b997;
  --success: #3f6b45;
  --danger: #8b2e22;
  --danger-dark: #6b2016;
  --on-danger: #fff8f0;
  --focus-ring: var(--accent-dark);
  --overlay-dark: linear-gradient(180deg, rgba(43,28,18,.28), rgba(43,28,18,.58));

  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Tenor Sans", serif;
  --font-ui: "Raleway", sans-serif;
  --font-script: "Lavishly Yours", cursive;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(59,42,23,.12);
  --shadow-md: 0 10px 26px rgba(59,42,23,.16);
  --shadow-lg: 0 20px 46px rgba(59,42,23,.20);

  --nav-h: 60px;
  /* Zúžená lišta po odrolování stránky (třída .primary-nav--scrolled). */
  --nav-h-scrolled: 36px;
  --container-max: 1180px;

  --layer-ground: 0;
  --layer-content: 10;
  --layer-floating: 140;
  --layer-overlay: 260;
  --layer-scroll-button: 320;
  --layer-modal: 400;

  color-scheme: light;
}

/* Noční režim — tmavá paleta navazující na tóny sekce Ceremonie -------- */

:root[data-theme="dark"] {
  color-scheme: dark;

  --ink: #f1e4d2;
  --ink-soft: #cbb59c;
  --cream: #1c0f09;
  --cream-2: #140a06;
  --surface: #2b170e;
  --accent: #e3a463;
  --accent-dark: #f0b978;
  --accent-soft: #4a2f1c;
  --accent-tint: #3a2416;
  --gold: #e3bb74;
  --line: #4a3524;
  --success: #7cc088;
  --danger: #e2685a;
  --danger-dark: #ff8a75;
  /* Světle červená tlačítka nočního režimu potřebují tmavé písmo (kontrast 5,7:1) */
  --on-danger: #1c0f09;
  --focus-ring: var(--gold);
  --overlay-dark: linear-gradient(180deg, rgba(10,6,3,.45), rgba(10,6,3,.72));

  --shadow-sm: 0 2px 8px rgba(0,0,0,.35);
  --shadow-md: 0 10px 26px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 46px rgba(0,0,0,.5);
}

:root[data-theme="dark"] body::after {
  opacity: .07;
  mix-blend-mode: overlay;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Při skoku na kotvu nechat místo pro připevněnou navigaci nahoře
     (u cíle níž na stránce je lišta už zúžená). */
  scroll-padding-top: calc(var(--nav-h-scrolled) + 16px);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}

/* Papírová textura pod celým webem. Je to pevná vrstva přes celé okno,
   ne pozadí body - to by se při rolování posouvalo a na dlouhých
   stránkách opakovalo. Ztmavení dělá překryv, ne filtr brightness,
   který by papír vybělil do šeda. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(26, 14, 6, .15), rgba(26, 14, 6, .15)),
    url("galerie/papir_poz.webp") center / cover no-repeat;
  z-index: -2;
}

:root[data-theme="dark"] body::before {
  background:
    linear-gradient(rgba(12, 6, 3, .8), rgba(12, 6, 3, .8)),
    url("galerie/papir_poz.webp") center / cover no-repeat;
}

img, video, iframe {
  display: block;
  max-width: 100%;
  height: auto;
  content-visibility: auto;
}

a { color: var(--accent-dark); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

header {
  position: relative;
  min-height: 0;
  padding: 0;
  margin: 0;
}

/* Viditelný fokus pro ovládání z klávesnice (WCAG 2.4.7). Jednotný kroužek
   místo změny odstínu, která byla na některých prvcích skoro neviditelná.
   Myš ani dotyk ho nevyvolají - jen :focus-visible. */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Na tmavém podkladu náhledů obrázků a cookie lišty je potřeba světlý kroužek. */
.modal :focus-visible,
.lightbox-modal :focus-visible {
  outline-color: #fff;
}

/* Text jen pro čtečky obrazovky (nadpis sekce, která ho vizuálně nepotřebuje) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Odkaz "Přeskočit na obsah" - schovaný, dokud se na něj nepřejde klávesou Tab */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: calc(var(--layer-modal) + 10);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-ui);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(calc(-100% - 20px));
  transition: transform .15s ease;
}

.skip-link:focus {
  transform: none;
}

/* Obsah, na který skok vede, dostane fokus jen kvůli čtečkám - bez rámečku */
#obsah:focus {
  outline: none;
}

/* 02. Stránkové kostry ----------------------------------------------------- */

.page-home,
.page-about,
.page-services,
.page-shop,
.page-privacy,
.body_ceremonie {
  padding-top: var(--nav-h);
}

.page-about,
.page-services,
.page-privacy,
.body_ceremonie,
.page-shop {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-about main,
.page-services main,
.page-privacy main,
.body_ceremonie main,
.page-shop main {
  flex: 1 0 auto;
}

.page-about .site-footer,
.page-services .site-footer,
.page-privacy .site-footer,
.body_ceremonie .site-footer,
.page-shop .site-footer {
  margin-top: auto;
}

.body_ceremonie {
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Ceremonie má vlastní, tmavší a atmosférickější pozadí - teplé kakaové
   odstíny se zákmitem svíce místo světlé krémové plochy ostatních stránek. */
.body_ceremonie::before {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(199, 130, 66, .22), transparent 68%),
    linear-gradient(180deg, #2b170e 0%, #1c0f09 55%, #140a06 100%);
}

.body_ceremonie::after {
  opacity: .05;
  mix-blend-mode: soft-light;
}

/* 03. Navigace ------------------------------------------------------------- */

.primary-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--layer-floating);
  height: var(--nav-h);
  background: rgba(250, 242, 229, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px) saturate(1.1);
  transition: height .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.primary-nav--scrolled {
  height: var(--nav-h-scrolled);
  box-shadow: var(--shadow-md);
  background: rgba(250, 242, 229, .98);
}

/* Po odrolování se lišta zúží: menší logo, název bez podtitulu, nižší
   odkazy a přepínače. Odsazení obsahu pod lištou (--nav-h) zůstává, aby
   stránka při zúžení neposkočila. */
.primary-nav__brand img,
.primary-nav__toggle,
.theme-toggle {
  transition-property: width, height, padding, transform;
  transition-duration: .25s;
  transition-timing-function: ease;
}

.primary-nav--scrolled .primary-nav__brand img {
  width: 28px;
  height: 28px;
  padding: 2px;
}

.primary-nav--scrolled .primary-nav__brand-text {
  font-size: 1.05rem;
}

.primary-nav--scrolled .primary-nav__brand-text span {
  display: none;
}

.primary-nav--scrolled .primary-nav__link {
  padding-top: 5px;
  padding-bottom: 5px;
}

.primary-nav--scrolled .theme-toggle {
  transform: scale(.85);
}

.primary-nav--scrolled .primary-nav__toggle {
  height: 32px;
}

:root[data-theme="dark"] .primary-nav {
  background: rgba(43, 23, 14, .92);
}

:root[data-theme="dark"] .primary-nav--scrolled {
  background: rgba(43, 23, 14, .98);
}

.primary-nav__inner {
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.primary-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.primary-nav__brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--surface);
  object-fit: contain;
  padding: 3px;
  flex-shrink: 0;
}

/* Logo je tmavá kresba - na tmavém podkladu by zmizelo, proto mu kolečko zůstává světlé. */
:root[data-theme="dark"] .primary-nav__brand img {
  background: #fbf3e8;
}

.primary-nav__brand-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: .01em;
  white-space: nowrap;
}

.primary-nav__brand-text span {
  display: block;
  font-family: var(--font-ui);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.primary-nav__menu {
  display: flex;
  align-items: center;
  /* Lišta má pevnou výšku --nav-h, druhý řádek odkazů by z ní přetekl. */
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.primary-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, padding .25s ease;
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible {
  background: var(--accent-tint);
  color: var(--accent-dark);
}

.primary-nav__link[aria-current="page"] {
  color: var(--ink);
  background: var(--accent-soft);
  pointer-events: none;
}

/* Podstránka sekce (objednávka poukazu pod Obchodem) - zvýrazněná, ale klikací */
.primary-nav__link[aria-current="true"] {
  color: var(--ink);
  background: var(--accent-soft);
}

.primary-nav__link--cta {
  margin-left: 6px;
  background: var(--danger);
  color: var(--on-danger) !important;
  box-shadow: var(--shadow-sm);
}

.primary-nav__link--cta:hover,
.primary-nav__link--cta:focus-visible {
  background: var(--danger-dark);
  color: var(--on-danger) !important;
}

.primary-nav__link--cta[aria-current="page"] {
  background: var(--danger);
  color: var(--on-danger) !important;
}

.primary-nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.primary-nav__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.primary-nav__toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.primary-nav.is-open .primary-nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.primary-nav.is-open .primary-nav__toggle-bar:nth-child(2) { opacity: 0; }
.primary-nav.is-open .primary-nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Přepínač denní/noční obloha ---------------------------------------------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 2px;
  margin: 0;
  cursor: pointer;
  border-radius: var(--radius-pill);
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}

.theme-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.theme-toggle__track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 58px;
  height: 30px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--accent-tint), var(--accent-soft) 130%);
  overflow: hidden;
  transition: background .5s ease, border-color .5s ease;
}

.theme-toggle__stars {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 28%, #fff 100%, transparent 100%),
    radial-gradient(1.2px 1.2px at 36% 68%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 52% 22%, #fff 100%, transparent 100%),
    radial-gradient(1.4px 1.4px at 70% 60%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 83% 32%, #fff 100%, transparent 100%);
}

.theme-toggle__icon {
  position: relative;
  z-index: 1;
  display: flex;
  color: var(--accent-dark);
  transition: color .5s ease, opacity .4s ease, transform .5s ease;
}

.theme-toggle__icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-toggle__icon--moon {
  opacity: .5;
  color: var(--ink-soft);
  transform: scale(.8) rotate(-25deg);
}

.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8ea, var(--gold) 65%, var(--accent) 100%);
  box-shadow: var(--shadow-sm);
  transition: transform .45s cubic-bezier(.62,-0.08,.35,1.4), background .5s ease;
}

:root[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(28px);
  background: radial-gradient(circle at 65% 32%, #f5f0ff, #d3d9f5 60%, #9aa3d1 100%);
}

:root[data-theme="dark"] .theme-toggle__stars { opacity: 1; }

:root[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: .4;
  color: var(--ink-soft);
  transform: scale(.8) rotate(25deg);
}

:root[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 1;
  color: #eef0ff;
  transform: scale(1) rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle__thumb,
  .theme-toggle__track,
  .theme-toggle__stars,
  .theme-toggle__icon,
  .theme-toggle,
  .primary-nav,
  .primary-nav__brand img,
  .primary-nav__link,
  .primary-nav__toggle,
  body {
    transition-duration: .01ms !important;
  }
}

/* Kompaktní lišta mezi plnou verzí a hamburgerem (901-1160 px). */
@media (max-width: 1160px) {
  .primary-nav__brand-text {
    display: none;
  }

  .primary-nav__menu {
    gap: 2px;
  }

  .primary-nav__link {
    padding: 8px 9px;
    font-size: .8rem;
  }

  .primary-nav__link--cta {
    margin-left: 4px;
  }
}

@media (max-width: 900px) {
  .primary-nav__toggle {
    display: flex;
    order: 2;
  }

  .theme-toggle {
    order: 1;
  }

  .primary-nav__brand-text {
    display: none;
  }

  .primary-nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    padding: 14px 16px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }

  .primary-nav.is-open .primary-nav__menu {
    display: flex;
  }

  .primary-nav--scrolled .primary-nav__menu {
    top: var(--nav-h-scrolled);
    max-height: calc(100vh - var(--nav-h-scrolled));
  }

  .primary-nav__link {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    text-align: center;
  }

  .primary-nav__link--cta {
    margin-left: 0;
    margin-top: 6px;
  }
}

/* 04. Tlačítka -------------------------------------------------------------- */

.hero-action-button,
.btn-3d-premium,
.welcome-section__cta,
.guestbook-submit,
.newsletter__submit,
.admin-action,
.map-link,
.cookie-settings-btn,
.svc2-card__body a,
.shop-vouchers__cta,
.voucher-submit,
.voucher-pay__download,
.voucher-done__again,
.voucher-done__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  box-shadow: var(--shadow-sm);
}

.hero-action-button,
.voucher-pay__download,
.voucher-done__again,
.voucher-done__link {
  background: var(--surface);
  border-color: var(--line);
  color: var(--accent-dark);
}

.hero-action-button:hover,
.hero-action-button:focus-visible,
.voucher-pay__download:hover,
.voucher-pay__download:focus-visible,
.voucher-done__again:hover,
.voucher-done__again:focus-visible,
.voucher-done__link:hover,
.voucher-done__link:focus-visible {
  transform: translateY(-2px);
  background: var(--accent-tint);
  box-shadow: var(--shadow-md);
}

.welcome-section__cta,
.btn-3d-premium,
.guestbook-submit,
.newsletter__submit,
.admin-action,
.map-link,
.shop-vouchers__cta,
.voucher-submit {
  background: var(--danger);
  color: var(--on-danger) !important;
}

.welcome-section__cta:hover,
.welcome-section__cta:focus-visible,
.btn-3d-premium:hover,
.guestbook-submit:hover,
.newsletter__submit:hover,
.admin-action:hover,
.map-link:hover,
.map-link:focus-visible,
.shop-vouchers__cta:hover,
.shop-vouchers__cta:focus-visible,
.voucher-submit:hover,
.voucher-submit:focus-visible {
  transform: translateY(-2px);
  background: var(--danger-dark);
  box-shadow: var(--shadow-md);
}

.guestbook-submit:disabled,
.newsletter__submit:disabled,
.admin-action:disabled,
.voucher-submit:disabled {
  cursor: wait;
  opacity: .6;
  transform: none;
}

/* Barva musí být !important, protože ji sdílené pravidlo .admin-action výše
   nastavuje na světlou s !important kvůli plným tlačítkům. */
.admin-action--secondary {
  background: transparent;
  border-color: var(--ink-soft);
  color: var(--ink-soft) !important;
  box-shadow: none;
}

.admin-action--secondary:hover,
.admin-action--secondary:focus-visible {
  background: var(--cream-2);
  border-color: var(--ink);
  color: var(--ink) !important;
}

.admin-action--danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger) !important;
  box-shadow: none;
}

.admin-action--danger:hover,
.admin-action--danger:focus-visible {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--on-danger) !important;
}

.cookie-settings-btn {
  background: transparent;
  border-color: var(--gold);
  color: var(--ink);
}

.cookie-settings-btn:hover {
  background: var(--accent-tint);
}

/* 05. Hero + parallax ------------------------------------------------------- */

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 40px auto 60px;
  gap: 60px;
  padding: 0 20px;
}

.hero-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1.2;
  min-height: 340px;
}

.hero-logo-draw {
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: min(90%, 640px);
  pointer-events: none;
  z-index: 1;
  opacity: .5;
}

.hero-logo-draw__svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-logo-draw__svg path {
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 2;
}

.main-title-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(3rem, 5.6vw, 5.4rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  text-align: left;
}

.hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}

.hero-intro {
  flex: 1;
  background: var(--surface);
  padding: 40px 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.hero-intro h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  color: var(--ink);
  margin: 0 0 18px;
}

.hero-intro p {
  font-family: var(--font-ui);
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.rezervace {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-intro .welcome-section__cta {
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
}

/* Stejný styl nápisu jako tlačítko Objednat poukaz v obchodě. */
.hero-intro .hero-voucher-cta {
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Na úzkém telefonu se nápis musí vejít na jeden řádek. */
@media (max-width: 480px) {
  .hero-intro .hero-voucher-cta { padding-inline: 1.4rem; }
}

@media (max-width: 380px) {
  .hero-intro .hero-voucher-cta { font-size: 1rem; letter-spacing: .06em; }
}

.reservation-cta-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-wrapper {
    flex-direction: column;
    gap: 36px;
    padding-top: 20px;
  }

  .hero-brand {
    min-height: 260px;
    justify-content: center;
  }

  .hero-logo-draw {
    left: 50%;
    top: 50%;
    width: min(84vw, 520px);
    transform: translate(-50%, -50%);
  }

  .main-title-text {
    text-align: center;
    font-size: clamp(2.4rem, 9vw, 3.2rem);
  }

  .hero-intro {
    text-align: center;
    padding: 30px 24px;
  }

  .rezervace {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-wrapper { margin: 20px auto 28px; gap: 22px; padding: 0 10px; }
  .hero-brand { min-height: 220px; }
  .hero-action-button { flex: 1 1 140px; padding: 11px 14px; font-size: .9rem; }
  .hero-intro { padding: 20px 16px; }
}

.parallax-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  margin: 60px auto;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
  text-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  --parallax-image: none;
  --parallax-overlay: var(--overlay-dark);
}

.parallax-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--layer-ground);
  background-image: var(--parallax-overlay), var(--parallax-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: inherit;
  pointer-events: none;
  /* Jemné vinětové "vytrácení" do okolí místo tvrdé hrany. */
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 10%, #000 26%, #000 74%, rgba(0,0,0,.55) 90%, transparent 100%),
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 6%, #000 18%, #000 82%, rgba(0,0,0,.55) 94%, transparent 100%);
  mask-image:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 10%, #000 26%, #000 74%, rgba(0,0,0,.55) 90%, transparent 100%),
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 6%, #000 18%, #000 82%, rgba(0,0,0,.55) 94%, transparent 100%);
  -webkit-mask-composite: multiply;
  mask-composite: intersect;
}

@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
  .parallax-section::before {
    background-attachment: fixed, fixed;
  }
}

@media (max-width: 768px) {
  .parallax-section::before {
    background-attachment: scroll !important;
  }
}

.parallax-content {
  position: relative;
  z-index: var(--layer-content);
  max-width: 720px;
  padding: 32px 28px;
  font-family: var(--font-ui);
}

.parallax-content h1,
.parallax-content h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin: 0 0 12px;
}

.parallax-content p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.7;
  margin: 0;
}

.parallax-welcome-intro { --parallax-image: url("galerie/caj.webp"); }
.parallax-bonus { --parallax-overlay: linear-gradient(180deg, rgba(43,28,18,0), rgba(43,28,18,0)); --parallax-image: url("galerie/karty.webp"); }
.parallax-balance { --parallax-image: url("galerie/shop5.webp"); }
.parallax-aroma {
  --parallax-image: url("galerie/oleje.webp");
  /* Fotka olejů je barevná a členitá - výchozí překryv na ní text neudrží. */
  --parallax-overlay: linear-gradient(180deg, rgba(26, 14, 6, .84), rgba(26, 14, 6, .9));
}

/* Hero "fotografický pás" varianta (o mně / obchod / ceremonie) ------------ */

.parallax-balance,
.parallax-ceremony-hero {
  position: relative;
  left: 50%;
  width: 100vw;
  min-height: clamp(280px, 34vw, 390px);
  margin: 0 0 52px;
  transform: translateX(-50%);
  border-radius: 0;
}

/* Tyto úvodní fotografické pásy jedou přes celou šířku - vytrácení chceme
   jen dole, do stránky pod nimi, ne po stranách ani nahoře. */
.parallax-balance::before,
.parallax-ceremony-hero::before {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}

.about-hero__content,
.page-shop__hero-content,
.ceremonie-hero-content {
  position: relative;
  width: min(100%, 760px);
  min-height: inherit;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 42px 34px;
  text-align: center;
}

.about-hero__content .hero-logo-draw,
.page-shop .hero-logo-draw,
.ceremonie-hero-content .hero-logo-draw {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(46vw, 340px);
  opacity: .35;
  z-index: 1;
}

.about-hero__content h1,
.page-shop__hero-content h1,
.ceremonie-hero-title {
  position: relative;
  z-index: 2;
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  color: #fff;
}

.about-hero__intro,
.page-shop__hero-intro {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  color: #fff;
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .parallax-balance,
  .parallax-ceremony-hero {
    min-height: 280px;
    margin-bottom: 32px;
  }

  .about-hero__content,
  .page-shop__hero-content,
  .ceremonie-hero-content {
    padding: 30px 18px;
  }
}

/* 06. Domovská stránka ------------------------------------------------------ */

.page-home .welcome-section {
  margin-bottom: 60px;
}

.page-home .welcome-section.parallax-section {
  margin-left: calc(25% - 25vw);
  margin-right: calc(25% - 25vw);
  border-radius: 0;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.page-home .welcome-section .parallax-content {
  max-width: 100%;
  width: 100%;
  padding: 44px clamp(20px, 6vw, 60px);
  box-shadow: none;
  display: flex;
}

.page-home .welcome-section .parallax-content h2 {
  font-size: clamp(2rem, 6vw, 2.6rem);
}

.page-home .welcome-content {
  display: flex;
  align-items: stretch;
  gap: 32px;
  flex-wrap: nowrap;
  width: 100%;
}

.page-home .welcome-list {
  flex: 0 0 360px;
  margin: 0;
  padding-left: 1.2em;
  font-family: var(--font-ui);
  font-weight: 600;
  text-align: left;
  color: #fff;
}

.page-home .welcome-list li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.page-home .welcome-gallery {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 25%;
  max-width: 320px;
  perspective: 900px;
}

.page-home .welcome-gallery img {
  flex: 0 0 auto;
  width: 100%;
  border-radius: var(--radius-sm);
  border: 3px solid var(--surface);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
}

.page-home .welcome-gallery img:hover,
.page-home .welcome-gallery img:focus {
  border-color: var(--gold);
  transform: perspective(700px) rotateX(-4deg) rotateY(4deg) rotateZ(var(--hover-tilt, 0deg)) translateZ(34px) translateY(-10px) scale(1.05);
}

.page-home .home-ceremony-gallery {
  max-width: var(--container-max);
  margin: 0 auto 36px;
  padding: 20px 24px 32px;
  text-align: center;
}

.page-home .home-myths-gallery {
  max-width: var(--container-max);
  margin: 0 auto 60px;
  padding: 20px 24px 12px;
  text-align: center;
}

.page-home .home-myths-gallery__intro {
  max-width: 680px;
  margin: 8px auto 28px;
  font-family: var(--font-ui);
  color: var(--ink-soft);
  line-height: 1.6;
}

.page-home .home-myths-gallery__grid {
  display: grid;
  /* Grafiky nesou vlastní text - ve čtyřech sloupcích je nečitelný. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

/* Záměrně bez hover efektu - grafiky nesou text, který se má jen číst.
   Kliknutím se pořád otevřou ve zvětšenině (lightbox). */
.page-home .home-myths-gallery__grid img {
  width: 100%;
  height: auto;
  border: 3px solid var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

@media (max-width: 768px) {
  .page-home .welcome-content {
    flex-direction: column;
    gap: 24px;
  }

  .page-home .welcome-list {
    flex: none;
  }

  .page-home .welcome-gallery {
    align-self: center;
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 600px) {
  .page-home .welcome-section .parallax-content h2 { text-align: center; }

  /* Infografiky nesou hustý text - na mobilu je potřeba plná šířka, ne dva náhledy vedle sebe. */
  .page-home .welcome-gallery {
    flex-direction: column;
    max-width: 380px;
  }

  .page-home .welcome-gallery img { flex: 1 1 auto; }

  .page-home .home-myths-gallery__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    max-width: 380px;
  }
}

.page-home .bonus-card-section .parallax-content {
  max-width: min(920px, 100%);
  padding: 32px 36px;
  box-shadow: none;
  width: 100%;
  text-align: center;
}

.card-3d-scene {
  width: clamp(300px, 80%, 500px);
  min-width: 300px;
  min-height: 194px;
  aspect-ratio: 1.545 / 1;
  margin: 0 auto;
  touch-action: manipulation;
}

/* Zůstane vidět, pokud se 3D scéna nespustí (chybí WebGL nebo se nenačte knihovna). */
.card-3d-scene__fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.page-home .shop-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(100%, 980px);
  margin: 0 auto 24px;
  padding: 0 2vw;
  flex-wrap: nowrap;
  overflow: hidden;
}

.page-home .shop-gallery img {
  flex: 0 1 clamp(120px, calc((100% - 56px) / 5), 180px);
  width: clamp(120px, calc((100% - 56px) / 5), 180px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.page-home .shop-gallery img:hover,
.page-home .shop-gallery img:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 720px) {
  .page-home .shop-gallery {
    justify-content: flex-start;
    padding: 0 18px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .page-home .shop-gallery img {
    flex: 0 0 160px;
    width: 160px;
    scroll-snap-align: center;
  }
}

.home-ceremony-gallery,
.ceremony-carousel {
  content-visibility: auto;
}

/* 07. Recenze a mapa --------------------------------------------------------- */

.reviews-and-map-section {
  padding: 72px 20px 88px;
}

.reviews-and-map-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1240px;
  margin: 0 auto;
  align-items: stretch;
}

.reviews-panel,
.map-panel {
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.map-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.reviews-panel-head,
.map-panel-head {
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.map-panel-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reviews-label,
.map-label {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.reviews-title,
.map-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

.map-location {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  width: fit-content;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  width: 100%;
  height: 300px;
  position: relative;
  border: 1px solid var(--line);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Zástupný blok místo mapy a recenzí, dokud návštěvník nesouhlasí
   nebo si je sám nezobrazí (JS/cookie-consent.js). */
.consent-embed__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  min-height: 220px;
  padding: 24px 20px;
  text-align: center;
  background: var(--accent-tint);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: .92rem;
  line-height: 1.5;
}

.consent-embed__placeholder p { margin: 0; max-width: 36ch; }

.consent-embed__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
}

.consent-embed__settings {
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.consent-embed__settings:hover,
.consent-embed__settings:focus-visible { color: var(--accent); }

.reviews-embed .consent-embed__placeholder {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.map-address {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.map-address-line {
  font-size: 1.1rem;
  color: var(--accent-dark);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .reviews-and-map-container { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .reviews-and-map-section { padding: 48px 14px 60px; }
  .reviews-panel, .map-panel { padding: 22px 16px; border-radius: var(--radius-md); }
  .map-embed { height: 240px; }
  .map-link { width: 100%; justify-content: center; }
}

/* 08. Kniha návštěv ---------------------------------------------------------- */

.guestbook-section {
  padding: 24px 20px 88px;
}

.guestbook-container {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.guestbook-label {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.guestbook-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.25;
}

.guestbook-description {
  max-width: 38rem;
  margin: 16px 0 26px;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  line-height: 1.65;
}

.guestbook-form {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-ui);
}

.guestbook-form label:not(.guestbook-consent) {
  margin-top: 8px;
  font-size: .86rem;
  font-weight: 700;
}

.guestbook-form input:not([type="checkbox"]),
.guestbook-form select,
.guestbook-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
}

.guestbook-form textarea {
  min-height: 126px;
  resize: vertical;
}

.guestbook-form input:focus-visible,
.guestbook-form select:focus-visible,
.guestbook-form textarea:focus-visible {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}

.guestbook-consent,
.newsletter__consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.45;
}

.guestbook-consent input,
.newsletter__consent input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--accent);
}

.guestbook-status,
.newsletter__status,
.admin-status {
  min-height: 1.3em;
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: .82rem;
  font-family: var(--font-ui);
}

.guestbook-status[data-state="error"],
.newsletter__status[data-state="error"],
.admin-status[data-state="error"] { color: var(--danger); }
.guestbook-status[data-state="success"],
.newsletter__status[data-state="success"],
.admin-status[data-state="success"] { color: var(--success); }

.guestbook-list {
  display: grid;
  align-content: start;
  gap: 16px;
  max-height: 760px;
  overflow: auto;
  padding-right: 6px;
}

.guestbook-entry {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.guestbook-entry__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.guestbook-entry__author {
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
}

.guestbook-entry__date {
  color: var(--ink-soft);
  font-size: .72rem;
  white-space: nowrap;
}

.guestbook-entry__message {
  margin: 14px 0 12px;
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.65;
  white-space: pre-wrap;
}

.guestbook-entry__rating {
  color: var(--gold);
  letter-spacing: .12em;
  font-size: .8rem;
}

.guestbook-more {
  justify-self: center;
  margin: 4px 0 8px;
}

/* .hero-action-button nastavuje display, bez tohoto by [hidden] nezabral. */
.guestbook-more[hidden] {
  display: none;
}

.guestbook-empty {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  line-height: 1.6;
}

.guestbook-honeypot,
.newsletter__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
}

@media (max-width: 760px) {
  .guestbook-section { padding: 12px 14px 56px; }
  .guestbook-container { grid-template-columns: 1fr; gap: 36px; padding: 28px 18px; border-radius: var(--radius-md); }
  .guestbook-list { max-height: none; overflow: visible; padding: 0; }
  .guestbook-entry__header { align-items: flex-start; flex-direction: column; gap: 3px; }
}

/* 09. Odznak / impressum + patička ------------------------------------------ */

.embossed-impressum {
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.embossed-badge {
  padding: 6px 22px;
  margin-bottom: 18px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  border: 1px solid var(--line);
}

.embossed-badge-inner {
  padding: 6px 4px;
}

.embossed-title {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 1rem + 2.6vw, 2.4rem);
  margin: 0;
  color: var(--accent-dark);
  letter-spacing: .02em;
}

.embossed-details {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.embossed-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.embossed-label {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
}

.embossed-value {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-align: right;
}

.embossed-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
  text-decoration: none;
  transition: color .2s ease;
}

.embossed-link:hover,
.embossed-link:focus-visible {
  color: var(--accent-dark);
}

.ceremony-photo-heading {
  display: flex;
  justify-content: center;
  margin: 48px auto 12px;
}

.ceremony-photo-heading .embossed-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1rem + 1.4vw, 1.8rem);
}

@media (max-width: 600px) {
  .embossed-impressum { padding: 0 16px; }
  .embossed-row { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
  .embossed-value { text-align: center; }
}

.site-footer {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background: var(--cream-2);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: .9rem;
}

.site-footer__bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: .7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem .9rem;
  flex-wrap: wrap;
}

.site-footer__copy {
  order: 2;
  font-weight: 500;
}

.site-footer__links {
  order: 3;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem .85rem;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--accent-dark);
}

.site-footer__link img,
.site-footer__link svg {
  width: 16px;
  height: 16px;
  flex: none;
  object-fit: contain;
  opacity: .85;
}

@media (max-width: 700px) {
  .site-footer__bar { justify-content: center; text-align: center; }
  .site-footer__copy, .site-footer__links { flex-basis: 100%; justify-content: center; }
}

/* Odběr novinek (newsletter) nad lištou patičky. Tlačítko, souhlas a stavová
   hláška sdílí styly s knihou návštěv. */
.newsletter {
  border-bottom: 1px solid var(--line);
}

.newsletter__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.75rem 1.2rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1rem 3rem;
  align-items: center;
}

.newsletter__title {
  margin: 0 0 .35rem;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.15;
}

.newsletter__text {
  max-width: 34rem;
  margin: 0;
  line-height: 1.6;
}

.newsletter__form {
  display: grid;
  gap: 8px;
}

.newsletter__label {
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
}

.newsletter__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.newsletter__row input {
  flex: 1 1 15rem;
  min-width: 0;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.newsletter__row input::placeholder {
  color: var(--ink-soft);
  opacity: .75;
}

.newsletter__row input:focus-visible {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}

.newsletter__submit {
  flex: 0 0 auto;
}

/* Poděkování po kliknutí na potvrzovací odkaz v e-mailu (vkládá ho
   JS/newsletter.js). Drží se nahoře pod menu, mimo dosah lišty s cookies. */
.newsletter-notice {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  left: 50%;
  z-index: var(--layer-overlay);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(560px, calc(100% - 32px));
  padding: 14px 14px 14px 18px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-ui);
}

.newsletter-notice__text {
  flex: 1 1 auto;
  margin: 0;
  line-height: 1.5;
}

.newsletter-notice__text strong {
  color: var(--success);
}

.newsletter-notice__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: -10px -8px -10px 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.newsletter-notice__close:hover {
  background: var(--accent-tint);
  color: var(--ink);
}

/* Bublina s nabídkou odběru (vkládá JS/newsletter.js). Vlevo dole, aby se
   nepletla s tlačítkem "nahoru" vpravo; vyjede zespodu. */
.newsletter-bubble {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: var(--layer-overlay);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(340px, calc(100vw - 40px));
  padding: 16px 10px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-ui);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

.newsletter-bubble.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Formulář v patičce je na obrazovce - bublina ustoupí. */
.newsletter-bubble.is-visible.is-away {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
}

.newsletter-bubble__icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  color: var(--accent-dark);
}

.newsletter-bubble__body {
  flex: 1 1 auto;
  min-width: 0;
}

.newsletter-bubble__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.newsletter-bubble__text {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: .86rem;
  line-height: 1.5;
}

.newsletter-bubble__cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--danger);
  color: var(--on-danger);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background-color .15s ease, transform .15s ease;
}

.newsletter-bubble__cta:hover {
  background: var(--danger-dark);
  transform: translateY(-1px);
}

.newsletter-bubble__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: -10px -2px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.newsletter-bubble__close:hover {
  background: var(--accent-tint);
  color: var(--ink);
}

/* Na telefonu přes celou šířku, jen s místem pro tlačítko "nahoru" vpravo. */
@media (max-width: 600px) {
  .newsletter-bubble {
    left: 12px;
    right: 76px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-bubble,
  .newsletter-bubble.is-visible.is-away {
    transform: none;
    transition-duration: .01ms;
  }
}

@media print {
  .newsletter-bubble {
    display: none;
  }
}

@media (max-width: 700px) {
  .newsletter__inner { grid-template-columns: 1fr; padding-top: 1.4rem; }
  .newsletter__submit { flex-grow: 1; }
}

/* 10. O mně ------------------------------------------------------------------ */

.page-about main.container { max-width: 1240px; }

.about-hero__content .about-hero__title { white-space: nowrap; }

.about-stories {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  margin-bottom: 60px;
}

/* Kapitola: obrázek v rámečku telefonu + text, druhá kapitola zrcadlově */
.about-story {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.about-story--reverse { grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); }
.about-story--reverse .about-story__figure { order: 2; }

.about-story__figure { margin: 0; }

.about-story__figure img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 26px rgba(43, 28, 18, .22));
}

.about-story__text {
  min-width: 0;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-story__text h2 {
  margin: 0 0 .5em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem);
  line-height: 1.15;
  color: var(--ink);
}

.about-story__text p { margin: 0 0 1em; }

.about-story__closing {
  font-family: var(--font-heading);
  font-size: 1.35em;
  font-style: italic;
  line-height: 1.45;
  color: var(--accent-dark);
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 1.4em 0 0;
  padding: 0;
  list-style: none;
}

.about-facts li {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  font-size: .95rem;
}

.about-facts strong { color: var(--accent-dark); }

.about-school {
  margin: 0 0 1.5em;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.about-school span { font-weight: 500; color: var(--ink-soft); }

/* Časová osa studia: svislá linka s tečkou u každého ročníku */
.about-timeline {
  margin: 0;
  padding: 0 0 0 24px;
  list-style: none;
  border-left: 2px solid var(--line);
}

.about-timeline > li {
  position: relative;
  padding-bottom: 1.3em;
}

.about-timeline > li:last-child { padding-bottom: 0; }

.about-timeline > li::before {
  content: "";
  position: absolute;
  left: -33px;
  top: .45em;
  width: 12px;
  height: 12px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--line);
}

.about-timeline h3 {
  margin: 0 0 .3em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
}

.about-timeline ul { margin: 0; padding: 0; list-style: none; }

.about-timeline ul li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .98rem;
  line-height: 1.5;
}

.about-hours {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--accent-dark);
  white-space: nowrap;
}

.about-cta { text-align: center; }

.about-cta__title {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  color: var(--ink);
}

.about-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 760px) {
  .about-story,
  .about-story--reverse { grid-template-columns: 1fr; }
  .about-story--reverse .about-story__figure { order: 0; }
  .about-story__figure { width: min(220px, 62%); margin: 0 auto; }
}

/* 11. Obchod a poukazy ------------------------------------------------------- */

.page-shop main.container { max-width: 1240px; }

.page-shop #shop { margin-bottom: 54px; text-align: center; }

.shop-section-heading {
  max-width: 680px;
  margin: 0 auto 26px;
}

.shop-section-kicker {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.shop-section-heading h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.shop-section-heading p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  line-height: 1.6;
}

.shop-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  margin: 0 auto;
  perspective: 900px;
}

.shop-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  object-fit: cover;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.shop-gallery img:hover,
.shop-gallery img:focus-visible {
  border-color: var(--gold);
  transform: perspective(700px) rotateX(-4deg) rotateY(4deg) rotateZ(var(--hover-tilt, 0deg)) translateZ(34px) translateY(-10px) scale(1.08);
  box-shadow: var(--shadow-md);
}

.shop-vouchers {
  margin-top: 72px;
}

@media (max-width: 800px) {
  .shop-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .shop-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shop-vouchers { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-gallery img { transition: none; }
}

/* Tlačítko "Objednat poukaz" pod ukázkami poukazů */
.shop-vouchers__actions {
  margin-top: clamp(26px, 4vw, 38px);
  text-align: center;
}

.shop-vouchers__cta {
  padding: 16px 34px;
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* --- Objednávka dárkového poukazu (poukaz.html) --------------------------- */

.page-voucher main.voucher-order {
  max-width: 1180px;
  padding-bottom: 72px;
}

.voucher-order__intro {
  max-width: 720px;
  margin: 34px auto 30px;
  text-align: center;
}

.voucher-order__back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}

.voucher-order__back:hover,
.voucher-order__back:focus-visible { text-decoration: underline; }

.voucher-order__intro h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
}

.voucher-order__lead {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  line-height: 1.7;
}

.voucher-order__notice {
  max-width: 720px;
  margin: 0 auto 26px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.6;
  text-align: center;
}

.voucher-order__notice p { margin: 0; }
.voucher-order__notice a { color: var(--accent-dark); font-weight: 700; white-space: nowrap; }
.voucher-order__notice[hidden] { display: none; }

.voucher-order__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

/* display: grid by jinak přebil atribut hidden. */
.voucher-order__layout[hidden],
.voucher-done[hidden],
.voucher-step[hidden],
.voucher-pay[hidden],
.voucher-pay__qr[hidden],
.voucher-amounts[hidden],
.voucher-service-group__count[hidden] { display: none; }

.voucher-order__aside {
  position: sticky;
  top: calc(var(--nav-h-scrolled) + 20px);
  display: grid;
  gap: 14px;
}

.voucher-preview {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.voucher-preview img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  background: var(--cream-2);
}

.voucher-preview figcaption {
  margin: 10px 6px 2px;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: .8rem;
  line-height: 1.5;
  text-align: center;
}

.voucher-order__mini-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-ui);
}

.voucher-order__mini-total span {
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.voucher-order__mini-total strong {
  color: var(--accent-dark);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
}

.voucher-order__steps { display: grid; gap: 18px; min-width: 0; }

.voucher-step {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-family: var(--font-ui);
}

/* Legenda jako obyčejný nadpis karty, ne zářez v rámečku fieldsetu. */
.voucher-step > legend {
  float: left;
  width: 100%;
  padding: 0;
}

.voucher-step > legend + * { clear: both; }

.voucher-step__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}

.voucher-step__number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 700;
}

.voucher-step__hint {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: .86rem;
  line-height: 1.6;
}

.voucher-step__hint--privacy { margin: 16px 0 0; font-size: .8rem; }

.voucher-step a,
.voucher-done a:not([class]) { color: var(--accent-dark); font-weight: 700; }

/* Motivy */
.voucher-templates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
}

.voucher-template {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.voucher-template input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.voucher-template img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.voucher-template__name { font-size: .84rem; font-weight: 700; }

.voucher-template:hover { border-color: var(--accent-soft); }

.voucher-template:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
  box-shadow: var(--shadow-sm);
}

.voucher-template:has(input:focus-visible) {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Částka */
.voucher-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.voucher-amount {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.voucher-amount:hover { border-color: var(--accent); }

.voucher-amount[aria-pressed="true"] {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: var(--surface);
}

.voucher-field { display: grid; gap: 6px; align-content: start; }

.voucher-field > label {
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
}

.voucher-field__optional { color: var(--ink-soft); font-weight: 500; }

.voucher-field input,
.voucher-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
}

.voucher-field textarea { resize: vertical; }

.voucher-field input:focus-visible,
.voucher-field textarea:focus-visible,
.voucher-amount:focus-visible,
.voucher-service input:focus-visible,
.voucher-choice input:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 1px;
  border-color: var(--accent);
}

.voucher-field [aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 25%, transparent);
}

.voucher-field__hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.5;
}

.voucher-field__hint[data-state="error"] { color: var(--danger); font-weight: 700; }

.voucher-amount-input { position: relative; max-width: 260px; }
.voucher-amount-input input { padding-right: 46px; }

.voucher-amount-input span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--ink-soft);
  font-weight: 700;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Služby z ceníku */
.voucher-services { display: grid; gap: 10px; }

.voucher-service-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  overflow: hidden;
}

.voucher-service-group summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.voucher-service-group summary::-webkit-details-marker { display: none; }

.voucher-service-group summary::after {
  content: "+";
  color: var(--accent-dark);
  font-size: 1.25rem;
  line-height: 1;
}

.voucher-service-group[open] summary::after { content: "−"; }

.voucher-service-group summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: -3px;
}

.voucher-service-group__title { flex: 1 1 auto; }

.voucher-service-group__count {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-dark);
  color: var(--surface);
  font-size: .72rem;
}

.voucher-service-group__list {
  display: grid;
  gap: 2px;
  padding: 0 8px 10px;
}

.voucher-service {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.voucher-service:hover,
.voucher-service:has(input:checked) { background: var(--accent-tint); }

.voucher-service input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.voucher-service__name { font-size: .92rem; line-height: 1.4; }

.voucher-service__meta {
  color: var(--ink-soft);
  font-size: .82rem;
  white-space: nowrap;
}

/* Podoba poukazu a platba */
.voucher-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.voucher-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.voucher-choice input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.voucher-choice__body { display: grid; gap: 4px; }
.voucher-choice__body strong { font-size: .98rem; }

.voucher-choice__body span {
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.5;
}

.voucher-choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.voucher-choice.is-disabled { opacity: .55; cursor: not-allowed; }

/* Kontaktní údaje */
.voucher-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.voucher-field--full { grid-column: 1 / -1; }

/* Shrnutí a odeslání */
.voucher-summary {
  padding: clamp(20px, 3vw, 28px);
  border: 2px solid var(--accent-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-family: var(--font-ui);
}

.voucher-summary__title,
.voucher-done__summary h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
}

.voucher-summary__items,
.voucher-done__summary ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.voucher-summary__items li,
.voucher-done__summary li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .9rem;
  line-height: 1.5;
}

.voucher-summary__price { font-weight: 700; white-space: nowrap; }

.voucher-summary__items .voucher-summary__empty,
.voucher-summary__items .voucher-summary__details {
  color: var(--ink-soft);
  font-size: .82rem;
}

.voucher-summary__total,
.voucher-done__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.voucher-summary__total span,
.voucher-done__total span { font-weight: 700; }

.voucher-summary__total strong,
.voucher-done__total strong {
  color: var(--accent-dark);
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
}

.voucher-summary__note {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: .8rem;
}

.voucher-summary__terms {
  margin: -6px 0 16px;
  color: var(--ink-soft);
  font-size: .8rem;
  line-height: 1.55;
}

.voucher-summary__terms a { color: var(--accent-dark); font-weight: 700; }

.voucher-submit {
  width: 100%;
  padding: 15px 22px;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.voucher-status {
  min-height: 1.3em;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.5;
}

.voucher-status:empty { min-height: 0; margin: 0; }
.voucher-status[data-state="error"] { color: var(--danger); }

/* Potvrzení */
.voucher-done { max-width: 880px; margin: 0 auto; }

.voucher-done__card {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-family: var(--font-ui);
  text-align: center;
}

.voucher-done__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--success);
  font-size: 2rem;
  font-weight: 700;
}

.voucher-done h2 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 600;
}

.voucher-done h2:focus { outline: none; }

.voucher-done__lead {
  max-width: 640px;
  margin: 0 auto 26px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.voucher-pay {
  margin: 0 0 26px;
  padding: clamp(16px, 3vw, 24px);
  border: 2px solid var(--accent-soft);
  border-radius: var(--radius-md);
  background: var(--cream);
  text-align: left;
}

.voucher-pay__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
}

.voucher-pay__grid {
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.voucher-pay__qr {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0;
}

.voucher-pay__qr-code {
  width: 100%;
  max-width: 230px;
  min-height: 120px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.voucher-pay__qr-code svg { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }

.voucher-pay__qr figcaption {
  color: var(--ink-soft);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.voucher-pay__list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0 0 14px;
}

.voucher-pay__list dt { color: var(--ink-soft); font-size: .86rem; }
.voucher-pay__list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.voucher-pay__hint {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: .8rem;
  line-height: 1.55;
}

.voucher-pay__download[hidden] { display: none; }

.voucher-done__summary {
  max-width: 560px;
  margin: 0 auto 18px;
  text-align: left;
}

.voucher-done__summary > p:last-child {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.6;
}

.voucher-done__save {
  margin: 0 auto;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: .82rem;
}

.voucher-done__save[hidden] { display: none; }

.voucher-done__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* Odstoupení od smlouvy (odstoupeni.html) */
.voucher-withdrawal__form,
.voucher-withdrawal__alt,
.voucher-withdrawal__done { max-width: 720px; margin-inline: auto; }

.voucher-withdrawal__form .voucher-submit { margin-top: 18px; }

.voucher-withdrawal__alt {
  margin-top: 24px;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: .86rem;
  line-height: 1.65;
  text-align: center;
}

.voucher-withdrawal__alt a { color: var(--accent-dark); font-weight: 700; }
.voucher-withdrawal__alt[hidden],
.voucher-done__summary[hidden] { display: none; }

.voucher-done__summary > .voucher-withdrawal__statement {
  margin: 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent-soft);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .voucher-order__layout { grid-template-columns: 1fr; }

  .voucher-order__aside {
    position: static;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .voucher-order__intro { margin-top: 22px; }
  .voucher-choices,
  .voucher-contact { grid-template-columns: 1fr; }
  .voucher-pay__grid { grid-template-columns: 1fr; justify-items: center; }
  .voucher-pay__details { width: 100%; }
  .voucher-service { grid-template-columns: auto minmax(0, 1fr); }
  .voucher-service__meta { grid-column: 2; }
  .voucher-done__actions > * { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .voucher-template,
  .voucher-amount,
  .voucher-choice { transition: none; }
}

/* 12. Ceremonie -------------------------------------------------------------- */

.ceremony-content-box {
  font-size: clamp(1rem, 2.8vw, 1.15em);
  background: var(--surface);
  padding: clamp(18px, 4vw, 30px);
  border-radius: var(--radius-lg);
  margin-bottom: clamp(16px, 4vw, 32px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.ceremony-content-box p { line-height: 1.6; margin: clamp(8px, 2vw, 12px) 0; }
.ceremony-content-box ul { line-height: 1.7; margin: clamp(12px, 2vw, 18px) 0 clamp(16px, 3vw, 24px) 1.1em; padding-left: 1.1em; }
.ceremony-content-box li { margin-bottom: clamp(6px, 1.5vw, 8px); }
.ceremony-content-box h2,
.ceremony-content-box h3 { font-family: var(--font-heading); font-weight: 600; }

.ceremony-spacer { height: 42px; }
.ceremony-content-box--center { text-align: center; }
.ceremony-lead,
.ceremony-closing { font-weight: 700; }
.ceremony-closing { text-align: center; }
.ceremony-carousel-wrap { margin-top: 12px; }
.ceremony-details { max-width: 920px; margin: 0 auto; padding: 36px 0; }
.ceremony-content-box__title { margin-top: 0; text-align: center; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.ceremony-list { margin: 18px 0 24px 1.1em; }
.ceremony-list--spaced { margin-bottom: 40px; }
.ceremony-cta { margin-top: 40px; text-align: center; }

.ceremony-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 2vw, 16px);
  padding: clamp(16px, 3vw, 32px) clamp(4px, 2vw, 12px);
}

.ceremony-carousel__track {
  position: relative;
  flex: 1 1 auto;
  max-width: 900px;
  height: clamp(220px, 36vw, 380px);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.ceremony-carousel__slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(150px, 32vw, 300px);
  height: 100%;
  cursor: pointer;
  transition: transform .45s ease, opacity .45s ease;
}

.ceremony-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

.ceremony-carousel__slide.is-active img {
  box-shadow: var(--shadow-lg);
  outline: 3px solid var(--surface);
  outline-offset: 2px;
}

.ceremony-carousel__nav {
  flex-shrink: 0;
  width: clamp(36px, 6vw, 46px);
  height: clamp(36px, 6vw, 46px);
  border: none;
  border-radius: 50%;
  background: rgba(43,28,18,.5);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 20;
  transition: background .3s ease, transform .3s ease;
}

.ceremony-carousel__nav:hover,
.ceremony-carousel__nav:focus-visible {
  background: rgba(43,28,18,.75);
  transform: scale(1.08);
}

.ceremony-meta-text {
  font-style: italic;
  margin-bottom: clamp(16px, 3vw, 28px);
  text-align: center;
  background: var(--surface);
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(.85rem, 2.2vw, 1rem);
  color: var(--ink-soft);
}

.ceremony-gallery-img {
  cursor: pointer;
  transition: transform .3s ease, filter .3s ease;
}

.ceremony-gallery-img:hover,
.ceremony-gallery-img:focus {
  transform: scale(1.03);
  filter: brightness(1.05);
}

@media (max-width: 768px) {
  .ceremony-carousel__track { height: clamp(180px, 44vw, 260px); }
  .ceremony-carousel__slide { width: clamp(120px, 44vw, 200px); }
}

/* Lightbox se zoomem (ceremonie) --------------------------------------------- */

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: var(--layer-modal);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.lightbox-modal[aria-hidden="false"] { display: flex; opacity: 1; }

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,12,6,.85);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.lightbox-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 95vw;
  max-height: 95vh;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 16px;
  padding: 12px;
  background: rgba(0,0,0,.3);
  border-radius: 6px;
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 85vh;
  height: auto;
  width: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next,
.lightbox-zoom-in,
.lightbox-zoom-out,
.lightbox-zoom-reset {
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background .2s ease, transform .2s ease;
}

.lightbox-close { width: 44px; height: 44px; }
.lightbox-prev, .lightbox-next { width: 52px; height: 52px; }
.lightbox-zoom-in, .lightbox-zoom-out, .lightbox-zoom-reset { width: 40px; height: 40px; border-radius: 6px; }

.lightbox-close:hover, .lightbox-close:focus { background: rgba(255,255,255,.28); transform: rotate(90deg); }
.lightbox-prev:hover, .lightbox-prev:focus { background: rgba(255,255,255,.28); transform: translateX(-4px); }
.lightbox-next:hover, .lightbox-next:focus { background: rgba(255,255,255,.28); transform: translateX(4px); }
.lightbox-zoom-in:hover, .lightbox-zoom-in:focus,
.lightbox-zoom-out:hover, .lightbox-zoom-out:focus,
.lightbox-zoom-reset:hover, .lightbox-zoom-reset:focus { background: rgba(255,255,255,.28); transform: scale(1.08); }

.lightbox-caption {
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: .95rem;
  text-align: center;
  max-width: 80vw;
  z-index: 3;
}

.lightbox-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80vw;
  height: 70vh;
  max-width: 1200px;
  max-height: 700px;
  border-radius: 8px;
  background: rgba(0,0,0,.3);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.lightbox-image-wrapper img {
  transform-origin: center;
  transition: transform .15s ease;
  cursor: grab;
  user-select: none;
}

.lightbox-image-wrapper img:active { cursor: grabbing; }

.lightbox-controls {
  display: flex;
  gap: 8px;
  background: rgba(0,0,0,.4);
  padding: 8px;
  border-radius: 8px;
}

.lightbox-zoom-level {
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  padding: 4px 8px;
  min-width: 40px;
}

@media (max-width: 768px) {
  .lightbox-image-wrapper { width: 90vw; height: 60vh; }
  .lightbox-img { max-width: 90vw; max-height: 60vh; }
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; }
  .lightbox-close { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .lightbox-image-wrapper { width: 95vw; height: 50vh; }
  .lightbox-img { max-width: 95vw; max-height: 50vh; }
}

/* 13. Přehled masáží a služeb (svc2) ----------------------------------------- */

.svc2 {
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.svc2-filters {
  padding: clamp(16px, 2vw, 24px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.svc2-filters__header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.svc2-chip-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.svc2-chip {
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-weight: 700;
  font-family: var(--font-ui);
  font-size: .85rem;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.svc2-chip.is-active {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: var(--cream);
}

.svc2-results {
  margin: 12px 0 6px;
  color: var(--ink-soft);
  font-family: var(--font-ui);
}

.svc2-empty {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  background: var(--accent-tint);
  color: var(--accent-dark);
}

.svc2-groups {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.svc2-group {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(16px, 2vw, 24px);
}

.svc2-group__header h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.95vw, 1.7rem);
  color: var(--ink);
  text-align: center;
}

.svc2-group__header p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  text-align: center;
}

.svc2-info {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
}

.svc2-info summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
  font-family: var(--font-ui);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.svc2-info summary::-webkit-details-marker { display: none; }

.svc2-info summary::after {
  content: "Rozklikněte pro detail";
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

.svc2-info[open] summary::after { content: "Panel je otevřen"; }

.svc2-info__grid {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}

.svc2-info__grid > div {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 12px;
}

.svc2-info__grid h4 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  text-align: center;
  color: var(--ink);
}

.svc2-info__grid > div:first-child h4 { color: var(--success); }
.svc2-info__grid > div:last-child h4 { color: var(--danger); }

.svc2-info__grid ul {
  margin: 8px 0 0;
  padding-left: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.svc2-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  /* auto-fill místo auto-fit: při jedné kartě v kategorii se nerozlije
     přes celou šířku, ale zůstane v rozměru ostatních. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}

/* Karta je na šířku - obrázek vlevo, text vpravo. Na výšku zabere
   zhruba polovinu oproti dřívějšku, takže se jich na obrazovku vejde
   víc a katalog se tolik neroluje. */
.svc2-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.svc2-card.is-entering {
  animation: svc2CardEnter 380ms cubic-bezier(.22,1,.36,1) both;
  animation-delay: var(--stagger-delay, 0ms);
}

@keyframes svc2CardEnter {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.svc2-card:hover,
.svc2-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.svc2-card img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.svc2-card__body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.svc2-card__badge {
  display: inline-flex;
  width: fit-content;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold);
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.svc2-card__body h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--ink);
}

/* Popis na dva řádky, aby karty v řadě držely stejnou výšku. */
.svc2-card__body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: .85rem;
  line-height: 1.45;
}

/* Kde se popis do dvou řádků nevejde, přidá JS/katalog.js na konec druhého
   řádku odkaz „… více“. Ten otevře bublinu s celým textem (.svc2-bubble).
   Krátké popisy odkaz nedostanou. */
.svc2-desc {
  position: relative;
}

.svc2-desc__more {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0 0 0 26px;
  border: 0;
  /* Přechod do barvy karty schová konec zkráceného textu pod odkazem. */
  background: linear-gradient(90deg, transparent, var(--surface) 24px);
  color: var(--accent-dark);
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}

/* Větší plocha pro prst, než je samotné slovo. */
.svc2-desc__more::after {
  content: "";
  position: absolute;
  inset: -12px -10px -12px 4px;
}

.svc2-desc__more span {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Bublina s celým popisem. Je vložená do <body> (karta má overflow: hidden)
   a JS ji umístí pod odkaz, případně nad něj, když dole není místo. */
.svc2-bubble {
  position: absolute;
  /* Těsně pod navigační lištou, aby ji bublina při rolování nepřekryla. */
  z-index: calc(var(--layer-floating) - 1);
  width: min(320px, calc(100vw - 24px));
  padding: 14px 8px 16px 16px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-ui);
  opacity: 0;
  transform: translateY(var(--bubble-shift, -6px)) scale(.96);
  transform-origin: var(--arrow-x, 50%) var(--bubble-origin, 0%);
  transition: opacity .18s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
}

.svc2-bubble[data-side="top"] {
  --bubble-shift: 6px;
  --bubble-origin: 100%;
}

.svc2-bubble.is-open {
  opacity: 1;
  transform: none;
}

/* Šipka mířící na odkaz „více“: natočený čtverec, vidět jsou jen dvě hrany. */
.svc2-bubble::before {
  content: "";
  position: absolute;
  left: calc(var(--arrow-x, 50%) - 7px);
  width: 14px;
  height: 14px;
  background: inherit;
  border: inherit;
  transform: rotate(45deg);
}

.svc2-bubble[data-side="bottom"]::before {
  top: -8px;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.svc2-bubble[data-side="top"]::before {
  bottom: -8px;
  border-top-color: transparent;
  border-left-color: transparent;
}

.svc2-bubble__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.svc2-bubble__title {
  flex: 1 1 auto;
  margin: 2px 0 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
}

.svc2-bubble__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -8px -2px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.svc2-bubble__close:hover {
  background: var(--accent-tint);
  color: var(--ink);
}

.svc2-bubble__text {
  margin: 6px 8px 0 0;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.55;
}

/* Tlačítko „nahoru“ vpravo dole by bublině zakrylo roh textu - po dobu,
   kdy je bublina otevřená, ustoupí. */
.has-svc2-bubble #scrollTopBtn.show {
  opacity: 0;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .svc2-bubble {
    transition-duration: .01ms;
  }
}

@media print {
  .svc2-desc__more,
  .svc2-bubble {
    display: none;
  }
}

.svc2-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.svc2-meta span:first-child {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--ink-soft);
  font-weight: 600;
}

.svc2-meta span:last-child { margin-left: auto; font-size: .95rem; }

.svc2-card__body a {
  width: 100%;
  height: 36px;
  padding: 0 14px;
  font-size: .85rem;
}

.svc2-aroma.parallax-section {
  margin: 40px auto 0;
  min-height: 320px;
  padding: 48px 40px 56px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  text-align: left;
}

.svc2-aroma__lead,
.svc2-aroma__lists,
.svc2-aroma__fee {
  position: relative;
  z-index: var(--layer-content);
}

.svc2-aroma__kicker {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.svc2-aroma__lead h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
  color: #fff;
}

.svc2-aroma__lead p {
  max-width: 62ch;
  margin-top: 10px;
  color: rgba(255, 255, 255, .92);
  font-family: var(--font-ui);
  font-size: .95rem;
  line-height: 1.6;
}

.svc2-aroma__lead strong {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .04em;
}

.svc2-aroma__lists {
  margin-top: 22px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

/* Karty stojí na tmavém skle, aby text nad fotkou olejů zůstal čitelný.
   Značku nese jen barevný proužek vlevo, ne svítící text se stínem. */
.aroma-card {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-md);
  background: rgba(28, 16, 8, .62);
  backdrop-filter: blur(3px);
}

.aroma-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--aroma-brand, var(--gold));
}

.aroma-card--tomfit { --aroma-brand: #e07a2c; }
.aroma-card--verana { --aroma-brand: #5b86d6; }

.aroma-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.aroma-card__brand {
  color: var(--aroma-brand, var(--gold));
  font-family: var(--font-ui);
  font-size: .9em;
  font-weight: 700;
  letter-spacing: .08em;
}

.aroma-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aroma-card li {
  padding-left: 16px;
  color: rgba(255, 255, 255, .84);
  font-family: var(--font-ui);
  font-size: .88rem;
  line-height: 1.45;
  text-shadow: none;
}

/* Odrážka kreslená pseudoelementem, aby šla obarvit podle značky. */
.aroma-card li::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  margin: .55em 0 0 -16px;
  border-radius: 50%;
  background: var(--aroma-brand, var(--gold));
}

.aroma-card li strong { color: #fff; font-weight: 700; }

.svc2-aroma__fee {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  padding: 11px 20px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  background: rgba(28, 16, 8, .62);
  color: rgba(255, 255, 255, .92);
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 600;
}

.svc2-aroma__fee strong {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .svc2 { width: calc(100% - 12px); }
  .svc2-info summary { flex-direction: column; gap: 6px; }
  .svc2-info__grid { grid-template-columns: 1fr; }
  .svc2-card { grid-template-rows: 176px 1fr; }
}

/* 14. Ochrana osobních údajů -------------------------------------------------- */

.privacy-hero {
  text-align: center;
  padding: 24px 0 0;
}

.privacy-hero img {
  width: min(180px, 40%);
  margin: 0 auto;
}

.section {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  padding: 0 20px;
}

.section h1,
.section h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
}

.section h2 { font-size: 1.6rem; margin-bottom: 1rem; }

.section ul { padding-left: 1.25rem; }
.section li { margin-bottom: .5rem; line-height: 1.55; }
.section code { font-size: .9em; }
.privacy-policy__meta { font-size: .9rem; font-style: italic; }

/* Obchodní podmínky (obchodni-podminky.html) mají stejné rozvržení jako
   zásady ochrany osobních údajů, jen bez úvodního obrázku. */
.terms { padding-top: clamp(28px, 5vw, 56px); }
.terms .section[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }
.section ol { padding-left: 1.25rem; }

.terms__toc ol {
  columns: 2 220px;
  column-gap: 2rem;
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem 1rem 2.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.terms__toc li { break-inside: avoid; margin-bottom: .35rem; }

.terms-form {
  padding: 18px 22px;
  border: 1px dashed var(--ink-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
}

.terms-form__hint { margin: 0; font-size: .85rem; font-style: italic; color: var(--ink-soft); }
.terms-form__title { margin: 1rem 0 .5rem; font-weight: 700; }
.terms-form__list { list-style: none; margin: 0 0 1rem; padding-left: 0; }
.terms-form__list li { position: relative; padding-left: 1.2em; }
.terms-form__list li::before { content: "–"; position: absolute; left: 0; }

/* Prázdné místo k vyplnění ve vytištěném formuláři */
.terms-form__blank {
  display: inline-block;
  min-width: 12em;
  height: 1em;
  border-bottom: 1px dotted currentColor;
  vertical-align: baseline;
}

@media print {
  .page-terms { padding-top: 0; }

  .page-terms .primary-nav,
  .page-terms .skip-link,
  .page-terms .terms__toc,
  .page-terms .site-footer {
    display: none;
  }

  .page-terms .section,
  .page-terms .section h1,
  .page-terms .section h2,
  .page-terms .terms-form,
  .page-terms .terms-form__hint {
    color: #000;
    background: none;
  }

  .page-terms .section h2,
  .page-terms .section p:has(+ ul) { break-after: avoid-page; }
  .page-terms .section li { break-inside: avoid; }
  .page-terms #formular { break-inside: avoid; }
}

/* 15. Administrace (ceník, galerie, kniha návštěv, poukazy) --------------------- */

/* Administrace (admin.html) - samostatna mini-aplikace mimo hlavni layout webu.
   Pouziva stejne tokeny jako zbytek webu, takze funguje i nocni rezim. */

.admin-page {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 520px at 12% -8%, var(--accent-tint), transparent 62%),
    var(--cream-2);
  color: var(--ink);
  font-family: var(--font-ui);
}

.admin-page.admin-modal-open { overflow: hidden; }

.admin-shell {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 22px clamp(14px, 3vw, 30px) 60px;
}

.admin-page h1,
.admin-page h2,
.admin-page h3 {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* --- Prihlaseni ------------------------------------------------------ */

/* Přihlašovací obrazovka stojí na staré papírové textuře. Ztmavení
   překryvem drží papír teplý - filtr brightness by ho vybělil do šeda. */
/* Přihlašovací obrazovka má stejný papír jako zbytek webu, jen výrazněji
   ztmavený. Papír leží na body::before, ne na pozadí body - to je pod
   pevnou vrstvou neviditelné. */
.admin-page--login::before {
  background:
    linear-gradient(rgba(26, 14, 6, .38), rgba(26, 14, 6, .38)),
    url("galerie/papir_poz.webp") center / cover no-repeat;
}

:root[data-theme="dark"] .admin-page--login::before {
  background:
    linear-gradient(rgba(12, 6, 3, .78), rgba(12, 6, 3, .78)),
    url("galerie/papir_poz.webp") center / cover no-repeat;
}

.admin-login {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 30px 16px;
}

/* display: grid vyse by jinak prebilo atribut hidden z prohlizece. */
.admin-login[hidden] { display: none; }

/* Kreslící logo jako vodoznak uvnitř karty. Ořez přetékající kresby má
   vlastní vrstvu, aby se nemusel dávat na kartu samotnou. */
.admin-login__watermark {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

.admin-login__logo {
  position: absolute;
  /* Přebíjí umístění a šířku ze sdíleného .hero-logo-draw. */
  inset: 0;
  left: 0;
  top: 0;
  width: auto;
  transform: none;
  display: grid;
  place-items: center;
  opacity: .13;
}

.admin-login__logo .hero-logo-draw__svg {
  width: auto;
  height: 126%;
  max-width: none;
}

.admin-login__logo .hero-logo-draw__svg path {
  stroke: var(--admin-login-deep);
  stroke-width: 3;
}

:root[data-theme="dark"] .admin-login__logo { opacity: .2; }

/* Obsah karty musí být nad vodoznakem - ten je pozicovaný, takže by
   se jinak kreslil přes statický text. */
.admin-login__content { position: relative; }

/* Přepínač nočního režimu v rohu karty, aby nerozbíjel odsazení obsahu. */
.admin-login__theme {
  position: absolute;
  top: -12px;
  right: -10px;
  width: 34px;
  height: 34px;
  font-size: .9rem;
}

/* Rámeček přihlašovací karty pomalu obíhá světlo.
   Úhel je registrovaná vlastnost, aby ho šlo animovat - bez @property
   by prohlížeč custom property neuměl plynule dopočítat. */
@property --admin-login-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.admin-login__card {
  --admin-login-angle: 0deg;
  /* Rudá záře: z tmavé vínové přes žhavou červeň po světlé jádro. */
  --admin-login-deep: #6e1b12;
  --admin-login-bright: #e0361c;
  --admin-login-hot: #ff8a5c;
  --admin-login-base: #6d5a44;

  position: relative;
  width: min(440px, 100%);
  padding: clamp(26px, 5vw, 40px);
  border: 4px solid transparent;
  border-radius: var(--radius-lg);
  /* Výplň se kreslí po okraj obsahu, gradient jen do rámečku. */
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(
      from var(--admin-login-angle),
      var(--admin-login-base) 0deg,
      var(--admin-login-deep) 30deg,
      var(--admin-login-bright) 72deg,
      var(--admin-login-hot) 95deg,
      var(--admin-login-bright) 118deg,
      var(--admin-login-deep) 160deg,
      var(--admin-login-base) 215deg,
      var(--admin-login-base) 360deg
    ) border-box;
  /* Menší stín než dřív - velký tmavý halo soupeřil s obíhajícím světlem. */
  box-shadow: var(--shadow-md);
  text-align: center;
  animation: admin-login-glow 6s linear infinite;
}

:root[data-theme="dark"] .admin-login__card {
  --admin-login-deep: #a32a1c;
  --admin-login-bright: #ff5533;
  --admin-login-hot: #ffc4ad;
  --admin-login-base: #4a3524;
}

@keyframes admin-login-glow {
  to { --admin-login-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-login__card { animation: none; }
}

.admin-login__label {
  margin: 0;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.admin-login__card h1 {
  margin: 10px 0 6px;
  font-size: clamp(1.8rem, 5vw, 2.3rem);
}

.admin-login__lead {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: .88rem;
}

.admin-login__form {
  display: grid;
  gap: 16px;
  text-align: left;
}

.admin-login__back {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent-dark);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-login__back:hover { text-decoration: underline; }

.admin-password { position: relative; }

.admin-password input { padding-right: 84px; }

.admin-password__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-password__toggle:hover { border-color: var(--accent); color: var(--accent-dark); }

/* --- Horni lista ----------------------------------------------------- */

.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px clamp(16px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-topbar__brand { display: grid; gap: 2px; }

.admin-topbar__label {
  color: var(--accent);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.admin-topbar__brand strong {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
}

.admin-topbar__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-topbar__user {
  color: var(--ink-soft);
  font-size: .8rem;
}

.admin-icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}

.admin-icon-button:hover { border-color: var(--accent); transform: translateY(-1px); }

/* --- Navigacni panel (zalozky) --------------------------------------- */

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.admin-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.admin-tab.is-active {
  border-color: var(--accent);
  background: var(--accent-tint);
  box-shadow: var(--shadow-md);
}

.admin-tab__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  font-size: 1.3rem;
}

.admin-tab.is-active .admin-tab__icon { background: var(--surface); }

.admin-tab__text { display: grid; gap: 2px; min-width: 0; }

.admin-tab__text strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
}

.admin-tab__text small {
  color: var(--ink-soft);
  font-size: .76rem;
}

.admin-tab__text small[data-highlight="true"] {
  color: var(--danger);
  font-weight: 700;
}

/* --- Panely ---------------------------------------------------------- */

.admin-panel {
  padding: clamp(20px, 3.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-panel__header h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.admin-panel__header p { margin: 0; color: var(--ink-soft); font-size: .84rem; }

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-segmented {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--cream);
}

.admin-segmented__item {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.admin-segmented__item.is-active {
  background: var(--surface);
  color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
}

/* --- Formularove prvky ----------------------------------------------- */

.admin-field { display: grid; gap: 6px; }

.admin-field > label,
.admin-field__label {
  font-size: .8rem;
  font-weight: 700;
}

.admin-field input:not([type="checkbox"]),
.admin-field select,
.admin-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
}

.admin-field textarea { resize: vertical; }

.admin-field input:focus-visible,
.admin-field select:focus-visible,
.admin-field textarea:focus-visible {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}

.admin-field--inline { min-width: 180px; }
.admin-field--grow { flex: 1 1 220px; }
.admin-field--full { grid-column: 1 / -1; }

.admin-field__hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: .74rem;
  line-height: 1.5;
}

.admin-field__hint code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--cream);
  font-size: .72rem;
}

.admin-field--checks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-check input { accent-color: var(--accent); width: 17px; height: 17px; }

.admin-field--preview {
  align-content: start;
  justify-items: start;
}

.admin-image-preview {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.admin-image-preview__empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: .78rem;
}

.admin-action--block { width: 100%; }

.admin-action--small {
  padding: 8px 15px;
  font-size: .8rem;
}

/* --- Stavove hlasky a stitky ----------------------------------------- */

.admin-status {
  margin: 0 0 14px;
  min-height: 1.2em;
  font-size: .84rem;
  font-weight: 600;
}

.admin-status:empty { margin: 0; min-height: 0; }
.admin-status[data-state="error"] { color: var(--danger); }
.admin-status[data-state="success"] { color: var(--success); }

.admin-empty {
  margin: 0;
  padding: 34px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  font-size: .88rem;
  text-align: center;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-badge--ok { background: var(--accent-tint); color: var(--success); }
.admin-badge--wait { background: var(--accent-soft); color: var(--accent-dark); }
.admin-badge--gold { background: var(--accent-tint); color: var(--gold); }
.admin-badge--muted { background: var(--cream-2); color: var(--ink-soft); }
.admin-badge--alert { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* --- Cenik: seznam masazi -------------------------------------------- */

.admin-service-list { display: grid; gap: 26px; }

.admin-service-group { display: grid; gap: 10px; }

.admin-service-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
}

.admin-service-group__count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
}

.admin-service {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.admin-service:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.admin-service[data-active="false"] { opacity: .62; }

.admin-service__thumb {
  display: grid;
  place-items: center;
  width: 92px;
  height: 70px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  color: var(--ink-soft);
}

.admin-service__thumb img { width: 100%; height: 100%; object-fit: cover; }

.admin-service__body { min-width: 0; display: grid; gap: 5px; }

.admin-service__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-service__title strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.admin-service__description {
  margin: 0;
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.5;
}

.admin-service__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
}

.admin-service__meta span {
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

/* Cena je editovatelné pole, ale má vypadat jako zbytek štítků v řádku. */
.admin-service__price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 11px 2px 6px;
  color: var(--accent-dark);
  font-weight: 700;
}

.admin-service__price input {
  width: 6.5ch;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: right;
  -moz-appearance: textfield;
}

.admin-service__price input::-webkit-outer-spin-button,
.admin-service__price input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.admin-service__price input:hover { border-color: var(--line); }

.admin-service__price input:focus-visible {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
  background: var(--surface);
}

.admin-service__price input:disabled { opacity: .5; }

.admin-icon-button--small {
  width: 30px;
  height: 30px;
  font-size: .85rem;
}

.admin-icon-button:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

/* --- Galerie salonu -------------------------------------------------- */

.admin-gallery-list { display: grid; gap: 10px; }

.admin-gallery-item {
  display: grid;
  grid-template-columns: auto 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.admin-gallery-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.admin-gallery-item[data-active="false"] { opacity: .62; }

.admin-gallery-item__position {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: .75rem;
  font-weight: 700;
}

.admin-gallery-item__thumb {
  width: 92px;
  height: 66px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--cream-2);
}

.admin-gallery-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

.admin-gallery-item__body { min-width: 0; display: grid; gap: 3px; justify-items: start; }
.admin-gallery-item__body strong { font-size: .92rem; word-break: break-word; }

.admin-gallery-item__alt {
  margin: 0;
  color: var(--ink-soft);
  font-size: .8rem;
  line-height: 1.45;
}

.admin-gallery-item__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.admin-service__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* --- Kniha navstev --------------------------------------------------- */

.admin-entry-list { display: grid; gap: 14px; }

.admin-entry {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
}

.admin-entry[data-approved="false"] { border-left: 4px solid var(--accent); }

.admin-entry__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-entry__heading strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
}

.admin-entry__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-entry__meta time { color: var(--ink-soft); font-size: .75rem; }

.admin-entry__message {
  margin: 14px 0 8px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.admin-entry__rating { margin: 0; color: var(--gold); font-size: .9rem; letter-spacing: .08em; }
.admin-entry__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* --- Editor masaze (modal) ------------------------------------------- */

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: var(--layer-modal);
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-modal[hidden] { display: none; }

.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 15, 9, .6);
  backdrop-filter: blur(3px);
}

.admin-modal__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.admin-modal__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.admin-modal__header h3 { margin: 0; font-size: 1.4rem; }

.admin-form { padding: clamp(18px, 3vw, 28px); }

.admin-form--stacked { display: grid; gap: 16px; }

.admin-modal__dialog--narrow { width: min(460px, 100%); }

.admin-field__hint--lead {
  margin: 0;
  font-size: .82rem;
}

.admin-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.admin-modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* --- Darkove poukazy ------------------------------------------------- */

.admin-segmented--wrap { flex-wrap: wrap; }

.admin-segmented__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .7rem;
}

.admin-voucher-alerts {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-voucher-alerts[hidden] { display: none; }

.admin-voucher-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  font-size: .86rem;
  line-height: 1.5;
}

.admin-voucher-alert p { margin: 0; flex: 1 1 260px; }

.admin-voucher-alert[data-type="warn"] {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.admin-voucher-alert[data-type="ok"] p { color: var(--success); font-weight: 700; }

.admin-voucher-alert[data-type="ok"] p::before { content: "✓ "; }

.admin-voucher-orders,
.admin-voucher-templates { display: grid; gap: 12px; }

.admin-voucher-orders__hint { margin-bottom: 2px; }

.admin-voucher-order {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.admin-voucher-order:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.admin-voucher-order[data-status="new"] { border-left: 4px solid var(--accent); }
.admin-voucher-order[data-status="cancelled"] { opacity: .62; }

.admin-voucher-order__thumb {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  font-size: 1.6rem;
}

.admin-voucher-order__thumb img { width: 100%; height: 100%; object-fit: cover; }

.admin-voucher-order__body { min-width: 0; display: grid; gap: 4px; }

.admin-voucher-order__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.admin-voucher-order__title strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
}

.admin-voucher-order__name { font-weight: 700; font-size: .92rem; }

.admin-voucher-order__content,
.admin-voucher-order__meta,
.admin-voucher-order__dedication {
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-voucher-order__content { font-weight: 600; }
.admin-voucher-order__meta { color: var(--ink-soft); }
.admin-voucher-order__dedication { color: var(--ink-soft); font-style: italic; }

.admin-voucher-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-voucher-intro .admin-field__hint { flex: 1 1 320px; font-size: .8rem; }

.admin-voucher-templates { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }

.admin-voucher-template {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.admin-voucher-template:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.admin-voucher-template[data-available="true"] { border-color: var(--accent); }

.admin-voucher-template__image {
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
}

.admin-voucher-template__image img { width: 100%; height: 100%; object-fit: cover; }

.admin-voucher-template__missing {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  padding: 16px;
  color: var(--danger);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.admin-voucher-template[data-available="false"] .admin-voucher-template__image img { opacity: .55; }

.admin-voucher-template__body { display: grid; gap: 6px; padding: 12px 14px 4px; }

.admin-voucher-template__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}

.admin-voucher-template__title strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}

.admin-voucher-template__meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: .76rem;
  overflow-wrap: anywhere;
}

.admin-voucher-template__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 14px;
}

/* Okna s náhledem poukazu: vlevo obrázek, vpravo údaje. */
.admin-modal__dialog--wide { width: min(1120px, 100%); }

.admin-modal__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.admin-voucher-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px 28px;
}

/* Náhled zůstává při posouvání formuláře vidět, těsně pod hlavičkou okna. */
.admin-voucher-editor__preview {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 12px;
}

.admin-voucher-editor__body { display: grid; gap: 16px; min-width: 0; }

.admin-voucher-editor__download { display: grid; gap: 6px; justify-items: start; }

/* Stažení čeká na schválení, ne na načítání - kurzor "wait" by mátl. */
.admin-voucher-editor__download .admin-action:disabled { cursor: not-allowed; }

/* Tlačítka okna zůstávají vidět i při posouvání dlouhého formuláře. */
.admin-voucher-editor__footer {
  position: sticky;
  bottom: 0;
  z-index: 1;
  grid-column: 1 / -1;
  align-items: center;
  padding-bottom: 14px;
  background: var(--surface);
}

.admin-voucher-editor__footer-side,
.admin-voucher-editor__footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-voucher-editor__footer-side { margin-right: auto; }
.admin-voucher-editor__footer-main { justify-content: flex-end; }

/* Celý sloupec s náhledem se musí vejít mezi hlavičku okna a lištu
   s tlačítky i na nízké obrazovce (notebook 1366×768), jinak by tlačítko
   pro stažení zůstalo schované pod lištou. Poměr stran obrázku
   (--voucher-ratio) doplní skript podle motivu. */
.admin-voucher-canvas {
  position: relative;
  width: 100%;
  max-width: max(240px, calc((90vh - 300px) / var(--voucher-ratio, 0.001)));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream-2);
  box-shadow: var(--shadow-sm);
}

.admin-voucher-canvas canvas {
  display: block;
  width: 100%;
  height: auto;
}

.admin-voucher-canvas canvas[hidden] { display: none; }

.admin-voucher-canvas__empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  margin: 0;
  padding: 24px;
  color: var(--ink-soft);
  font-size: .86rem;
  line-height: 1.5;
  text-align: center;
}

.admin-voucher-canvas__empty[hidden] { display: none; }

/* Oblast pro text v editoru motivu. Okolí oblasti se ztmaví, aby bylo
   vidět, kam se text nakreslí. */
.admin-voucher-canvas--editable {
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.admin-voucher-area {
  position: absolute;
  border: 2px dashed var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 0 9999px rgba(28, 15, 9, .28);
  cursor: move;
}

.admin-voucher-area[hidden] { display: none; }

.admin-voucher-canvas--editable.is-dragging .admin-voucher-area { border-style: solid; }

.admin-voucher-area__handle {
  position: absolute;
  right: -9px;
  bottom: -9px;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--shadow-sm);
  cursor: nwse-resize;
}

.admin-voucher-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  font-size: .84rem;
}

.admin-voucher-facts dt { color: var(--ink-soft); }
.admin-voucher-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.admin-voucher-facts a { color: var(--accent-dark); }

.admin-voucher-items h4 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
}

.admin-voucher-items ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .86rem;
}

.admin-voucher-items li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.admin-voucher-items li strong { white-space: nowrap; }

.admin-voucher-items__total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.admin-voucher-items__total strong {
  color: var(--accent-dark);
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.admin-voucher-note {
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  font-size: .84rem;
}

.admin-voucher-note[hidden] { display: none; }
.admin-voucher-note p { margin: 4px 0 0; line-height: 1.55; white-space: pre-wrap; }

/* Odstoupení od smlouvy v okně objednávky */
.admin-voucher-withdrawal { border-left-color: var(--danger); }
.admin-voucher-withdrawal[data-handled="true"] { border-left-color: var(--line); background: var(--cream); }
.admin-voucher-withdrawal__meta { color: var(--ink-soft); }

.admin-voucher-note .admin-voucher-withdrawal__text {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.admin-voucher-withdrawal__todo { font-weight: 700; }
.admin-voucher-withdrawal .admin-action { margin-top: 10px; }

.admin-form__grid--tight { margin-bottom: 0; }

.admin-voucher-paid { align-self: center; }

.admin-field input[type="color"] {
  width: 72px;
  height: 44px;
  padding: 4px;
  cursor: pointer;
}

/* Nastavení poukazů */
.admin-voucher-settings {
  display: grid;
  gap: 18px;
  max-width: 780px;
}

.admin-voucher-fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
}

.admin-voucher-fieldset legend {
  padding: 0 6px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}

.admin-voucher-fieldset .admin-form__grid { margin-bottom: 0; }

.admin-voucher-fieldset--compact { padding: 12px 14px 14px; }
.admin-voucher-fieldset--compact legend { font-family: var(--font-ui); font-size: .8rem; font-weight: 700; }

.admin-voucher-area-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-field__hint[data-state="error"] { color: var(--danger); font-weight: 700; }

.admin-voucher-settings__footer { display: flex; justify-content: flex-end; }

/* --- Responzivita ---------------------------------------------------- */

@media (max-width: 1100px) {
  .admin-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .admin-voucher-editor { grid-template-columns: 1fr; }
  .admin-voucher-editor__preview { position: static; }
}

@media (max-width: 760px) {
  .admin-form__grid { grid-template-columns: 1fr; }

  .admin-voucher-order {
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: start;
  }

  .admin-voucher-order__thumb { width: 60px; height: 60px; }
  .admin-voucher-order__actions { grid-column: 1 / -1; }
  .admin-voucher-area-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .admin-gallery-item {
    grid-template-columns: auto 70px minmax(0, 1fr);
    align-items: start;
  }

  .admin-gallery-item__thumb { width: 70px; height: 54px; }
  .admin-gallery-item__actions { grid-column: 1 / -1; justify-content: flex-start; }

  .admin-service {
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: start;
  }

  .admin-service__thumb { width: 70px; height: 56px; }
  .admin-service__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .admin-tabs { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  /* Na telefonu by lepící lišta s tlačítky zabrala půl obrazovky. */
  .admin-voucher-editor__footer { position: static; padding-bottom: 0; }
}

@media (max-width: 560px) {
  .admin-shell { padding: 14px 12px 46px; }
  .admin-topbar { align-items: flex-start; }
  .admin-topbar__tools { width: 100%; }
  .admin-topbar__user { flex: 1 1 100%; order: 3; }
  .admin-panel__header { flex-direction: column; }
  .admin-panel__header .admin-action { width: 100%; }
  .admin-segmented { width: 100%; justify-content: space-between; }
  .admin-service__actions .admin-action { flex: 1 1 auto; }
}

/* --- Ceník: kategorie a nahrávání obrázků ---------------------------- */

/* Pravidla jsou schválně v samostatném bloku až za zbytkem administrace,
   ať přebijí obecnější pravidla výše bez zvyšování specificity. */

.admin-panel__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-notice {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  background: var(--accent-tint);
  color: var(--ink);
  font-size: .84rem;
  line-height: 1.5;
}

.admin-notice[hidden] { display: none; }

.admin-service-group__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.admin-service-group__header h3 {
  flex-wrap: wrap;
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-service-group__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.admin-service-group[data-active="false"] .admin-service-group__header h3,
.admin-service-group[data-active="false"] .admin-service { opacity: .62; }

.admin-service-group__empty {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  font-size: .82rem;
}

/* Textové tlačítko pod výběrem kategorie v editoru masáže */
.admin-link-button {
  justify-self: start;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--accent-dark);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.admin-link-button:hover { color: var(--accent); }
.admin-link-button[hidden] { display: none; }

/* Výběr obrázku: náhled vlevo, ovládání vpravo. Celé pole přijme
   i fotku přetaženou myší. */
.admin-image-picker {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  transition: border-color .15s ease, background-color .15s ease;
}

.admin-image-picker.is-dragover {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-tint);
}

.admin-image-picker__preview {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.admin-image-picker__preview .admin-image-preview {
  max-width: none;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.admin-image-picker__preview .admin-image-preview__empty { padding: 10px; text-align: center; }

.admin-image-picker__controls {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-image-picker__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-image-picker__or {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 600;
}

.admin-image-picker__info {
  margin: 0;
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.45;
}

.admin-image-picker__info:empty { display: none; }
.admin-image-picker__info[data-state="ready"] { color: var(--success); font-weight: 700; }
.admin-image-picker__info[data-state="warning"] { color: var(--accent-dark); font-weight: 700; }
.admin-image-picker__info[data-state="error"] { color: var(--danger); font-weight: 700; }

/* V úzkém okně (galerie) náhled nad ovládáním a přes celou šířku. */
.admin-image-picker--stacked { grid-template-columns: minmax(0, 1fr); }
.admin-image-picker--stacked .admin-image-picker__preview { aspect-ratio: 16 / 10; }
.admin-image-picker--stacked .admin-image-preview { object-fit: contain; }

/* Bez vlastního náhledu (motiv poukazu má náhled na plátně vedle). */
.admin-image-picker--compact {
  grid-template-columns: minmax(0, 1fr);
  padding: 12px;
}

.admin-modal__footer-start { margin-right: auto; }

/* .admin-action má display: inline-flex, které by atribut hidden přebilo. */
.admin-action[hidden] { display: none; }

/* Editor kategorie otevřený nad editorem masáže */
.admin-modal--stacked { z-index: calc(var(--layer-modal) + 1); }

@media (max-width: 560px) {
  .admin-panel__buttons { width: 100%; }
  .admin-panel__buttons .admin-action { flex: 1 1 auto; }
  .admin-image-picker { grid-template-columns: 1fr; }
  .admin-image-picker__preview { max-width: 260px; }
  .admin-service-group__actions .admin-action { flex: 1 1 auto; }
}

/* Indikace a kontraindikace na webu: když má kategorie vyplněný jen
   jeden ze seznamů, zabere celou šířku a drží svou barvu. */
.svc2-info__grid > div:only-child { grid-column: 1 / -1; }
.svc2-info__grid > div.svc2-info__col--ok h4 { color: var(--success); }
.svc2-info__grid > div.svc2-info__col--warn h4 { color: var(--danger); }

/* 16. Cookie lišta, scroll-to-top, modály, drobnosti -------------------------- */

.cookie-consent {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 -4px 20px rgba(0,0,0,.35);
  font-family: var(--font-ui);
}

.cookie-consent__body { flex: 1 1 420px; min-width: 0; }
.cookie-consent__title { margin: 0 0 .35rem; font-size: 1rem; font-weight: 700; }
.cookie-consent__text { margin: 0; font-size: .9rem; line-height: 1.5; }
.cookie-consent__text a { color: var(--gold); text-decoration: underline; }

.cookie-consent__options {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: .75rem;
}

.cookie-consent__option {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  cursor: pointer;
}

.cookie-consent__option input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: .75rem; flex-shrink: 0; }

.cookie-consent__btn {
  border-radius: var(--radius-pill);
  padding: .55rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--cream);
  transition: background-color .2s ease, color .2s ease;
}

/* Odmítnout i Přijmout vypadají stejně - odmítnutí nesmí být schované ani méně výrazné. */
.cookie-consent__btn--primary { background: var(--gold); color: var(--ink); }
.cookie-consent__btn:hover { background: var(--accent-soft); color: var(--ink); }
.cookie-consent__btn:focus-visible,
.cookie-consent__option input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 560px) {
  .cookie-consent { flex-direction: column; align-items: stretch; gap: .85rem; padding: 1rem 1.1rem; }
  /* Ve sloupci by se základ 420px z flex počítal jako výška. */
  .cookie-consent__body { flex: none; }
  .cookie-consent__text { font-size: .85rem; }
  .cookie-consent__options { flex-direction: column; gap: .45rem; margin-top: .6rem; }
  .cookie-consent__actions { justify-content: flex-end; gap: .5rem; }
  .cookie-consent__btn { flex: 1 1 auto; padding: .5rem 1rem; }
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--shadow-md);
  transition: opacity .3s, visibility .3s, transform .2s ease;
  z-index: var(--layer-scroll-button);
}

#scrollTopBtn.show { opacity: 1; visibility: visible; }
#scrollTopBtn:hover { transform: translateY(-2px); }

.modal {
  display: none;
  position: fixed;
  z-index: var(--layer-modal);
  inset: 0;
  background: rgba(20,12,6,.85);
  justify-content: center;
  align-items: center;
}

.modal.show { display: flex; }

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-trigger { cursor: pointer; }
.lightbox-trigger:focus { outline: 2px solid var(--accent-soft); outline-offset: 4px; }

.modal-close,
.modal-nav {
  position: absolute;
  border: none;
  background: rgba(0,0,0,.6);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  transition: background .2s ease, transform .2s ease;
}

.modal-close:hover, .modal-close:focus,
.modal-nav:hover, .modal-nav:focus {
  background: rgba(0,0,0,.82);
  transform: scale(1.05);
}

.modal-close { top: 16px; right: 16px; }
.modal-nav--prev, .modal-nav--next { top: 50%; transform: translateY(-50%); }
.modal-nav--prev { left: 28px; }
.modal-nav--next { right: 28px; }
.modal-nav.is-hidden { display: none; }

@media (max-width: 600px) {
  .modal-close, .modal-nav { width: 36px; height: 36px; font-size: 20px; }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   SPA přechody mezi stránkami (JS/router.js)
   Fallback pro prohlížeče bez View Transitions API + indikace načítání.
   ========================================================================== */
#spa-root {
  transition: opacity 220ms ease;
}

/* Stránky mají sloupcové rozvržení, ve kterém se <main> roztahuje a drží
   patičku dole. Obal se mezi ně vložil, takže musí tu roli převzít -
   jinak by se obsah posunul a patička vyskočila nahoru. */
.page-about #spa-root,
.page-services #spa-root,
.page-privacy #spa-root,
.body_ceremonie #spa-root,
.page-shop #spa-root {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

/* Záložní přechod pro prohlížeče bez View Transitions.
   Posun přes transform by z obalu udělal vztažný rámec a fixní navigace
   by se během přechodu utrhla od okna - proto jen průhlednost. */
#spa-root.spa-view--leaving {
  opacity: 0;
}

#spa-root.spa-view--entering {
  opacity: 0;
  transition: none;
}

/* Tenký ukazatel průběhu při načítání další stránky */
html.spa-busy::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2147483000;
  background: linear-gradient(90deg, rgba(137, 25, 21, 0) 0%, rgba(137, 25, 21, 0.95) 50%, rgba(137, 25, 21, 0) 100%);
  animation: spa-progress 900ms ease-in-out infinite;
}

html.spa-busy {
  cursor: progress;
}

@keyframes spa-progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Nadpis dostává po přepnutí fokus kvůli čtečkám - bez viditelného rámečku */
#spa-root > :focus:not(:focus-visible),
#spa-root h1:focus:not(:focus-visible) {
  outline: none;
}

/* Cross-fade přes View Transitions API (Chrome, Edge, Safari) */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: spa-fade-out 200ms ease both;
  }

  ::view-transition-new(root) {
    animation: spa-fade-in 260ms ease both;
  }
}

@keyframes spa-fade-out {
  to { opacity: 0; transform: translateY(-6px); }
}

@keyframes spa-fade-in {
  from { opacity: 0; transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  #spa-root,
  #spa-root.spa-view--leaving,
  #spa-root.spa-view--entering {
    transition: none;
    opacity: 1;
  }

  html.spa-busy::after {
    animation: none;
  }
}

/* --- Dřív inline styly v HTML -------------------------------------------- */

.hero-spacer { height: 20px; }
.main-title-text--spaced { padding-top: 20px; }
.shop-section-heading--tight { padding-top: 10px; }

.bonus-card-text { font-weight: 800; }
.bonus-card-text__price { color: #ffb199; font-size: 1.5em; }

.guestbook-description__lead { font-weight: 800; }
.guestbook-description__note { font-size: .875em; }

/* Info o elektronických poukazech. Papír má tmavé záhyby, proto přes něj
   leží průsvitná vrstva v barvě stránky - text je čitelný bez stínů. */
.voucher-info {
  --voucher-veil: rgba(250, 242, 229, .8);
  max-width: 900px;
  margin: 20px auto;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(var(--voucher-veil), var(--voucher-veil)),
    url("galerie/papirek.webp") center / cover;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

:root[data-theme="dark"] .voucher-info { --voucher-veil: rgba(43, 23, 14, .9); }

.voucher-info p { margin: 0 0 .8em; }
.voucher-info p:last-child { margin-bottom: 0; }
.voucher-info__lead { color: var(--danger); font-size: 1.3em; font-weight: 700; }
.voucher-info__highlight { color: var(--success); font-size: 1.1em; }
.voucher-info__link { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.voucher-info__link:hover,
.voucher-info__link:focus-visible { text-decoration: underline; }
