/* ==========================================================================
   Kadeřnictví u Markéty — hlavní styl
   Ručně psané CSS, bez build kroku. Barvy a typografie jsou nahoře v :root.
   ========================================================================== */

/* ---- Designové proměnné ------------------------------------------------- */
:root {
  --cream:      #F7F3EB;
  --cream-2:    #EFE8D9;
  --paper:      #FBF9F4;
  --green-900:  #2B3526;
  --green-800:  #38462F;
  --green-700:  #46583B;
  --sage:       #75876B;
  --sage-400:   #8C9D80;
  --sage-300:   #A8B79A;
  --sage-100:   #DCE3D1;
  --clay:       #C08B6A;
  --brass:      #B08D57;
  --ink:        #2B2620;
  --muted:      #6B6258;
  --line:       #E6DECF;

  --glass:        rgba(255,255,255,0.62);
  --glass-strong: rgba(255,255,255,0.80);
  --glass-border: rgba(255,255,255,0.75);

  --font-serif:  'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:   'Hanken Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-script: 'Great Vibes', cursive;

  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 28px;

  --maxw: 1180px;
  --gut:  clamp(20px, 5vw, 64px);

  --shadow-soft: 0 18px 50px -22px rgba(43,53,38,0.30);
  --shadow-card: 0 12px 36px -20px rgba(43,53,38,0.28);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---- Typografie --------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.08; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h2 em, h1 em, h3 em { font-style: italic; color: var(--sage); font-weight: 400; }
p { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }

.script { font-family: var(--font-script); font-style: normal; color: var(--brass); line-height: 0.9; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brass); display: inline-block; }
.eyebrow.is-centered::after { content: ""; width: 26px; height: 1px; background: var(--brass); display: inline-block; }

/* ---- Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }
.stack-sm > * + * { margin-top: 14px; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Tlačítka ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.96rem; letter-spacing: 0.01em;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
/* Liquid glass: matně tmavě zelená výplň (drží se palety) */
.btn-primary {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--cream); border-color: rgba(255,255,255,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0) 46%),
    linear-gradient(160deg, rgba(72,90,61,0.96), rgba(43,53,38,0.99));
  box-shadow:
    inset 1.5px 1.5px 0.5px -1.5px rgba(255,255,255,0.8),
    inset -1.5px -1.5px 0.5px -1.5px rgba(255,255,255,0.42),
    inset 0 0 5px 3px rgba(255,255,255,0.06),
    0 6px 18px -8px rgba(43,53,38,0.55),
    0 1px 2px rgba(0,0,0,0.14);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -65%; width: 48%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease); pointer-events: none; z-index: 2;
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:hover::after { left: 125%; }
.btn-primary:active { filter: brightness(0.95); }
.btn-primary:hover svg { transform: translateX(4px); }

/* Liquid glass: čiré sklo (sekundární tlačítka) */
.btn-ghost {
  color: var(--ink); border-color: var(--glass-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.46));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow:
    inset 1.5px 1.5px 0.5px -1.5px rgba(255,255,255,0.95),
    inset -1px -1px 1px -1px rgba(43,53,38,0.26),
    inset 0 0 3px 2px rgba(255,255,255,0.18),
    0 5px 16px -9px rgba(43,53,38,0.4);
}
.btn-ghost:hover { background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.62)); border-color: var(--sage-300); }
.btn-light { background: var(--cream); color: var(--green-900); }
.btn-light:hover { background: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--sage); color: var(--green-800); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green-700); outline-offset: 3px;
}

/* ---- Navigace ----------------------------------------------------------- */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 14px var(--gut) 0; }
.nav {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px 14px 12px 22px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  backdrop-filter: blur(11px); -webkit-backdrop-filter: blur(11px);
  box-shadow: var(--shadow-soft);
  transition: padding .3s var(--ease), box-shadow .3s var(--ease);
}
.brand { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-serif); font-size: 1.18rem; white-space: nowrap; }
.brand b { font-weight: 500; }
.brand .script { font-size: 1.7rem; color: var(--brass); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: 999px; font-size: 0.93rem; font-weight: 500; color: var(--ink); white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease); }
.nav-links a:hover { background: var(--sage-100); color: var(--green-800); }
.nav-links a.active { color: var(--green-800); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { padding: 11px 20px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 940px) {
  .nav-links, .nav-cta .btn-text { display: none; }
  /* blur na .nav vytváří containing block pro fixed prvky, na mobilu ho vypneme,
     aby se vysouvací menu a tmavé pozadí roztáhly přes celou obrazovku */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--glass-strong); }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); z-index: 60;
    background: var(--paper); box-shadow: -20px 0 60px -20px rgba(43,53,38,.4);
    transform: translateX(100%); transition: transform .4s var(--ease);
    display: flex; flex-direction: column; gap: 6px; padding: 90px 26px 30px;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 1.1rem; font-family: var(--font-serif); }
  .nav-menu a:hover { background: var(--sage-100); }
  .nav-menu .btn { margin-top: 14px; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(43,53,38,.35); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 55; }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }
  .nav-close { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream); display: inline-flex; align-items: center; justify-content: center; }
}
@media (min-width: 941px) { .nav-menu { display: contents; } .nav-close { display: none; } .nav-menu-cta { display: none; } }

/* ---- Obrázkové rámečky (placeholder, fotky doplníš později) ------------- */
.frame {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(176,141,87,.10), transparent 55%),
    linear-gradient(155deg, var(--sage-100), var(--cream-2));
  border: 1px solid var(--line);
  display: grid; place-items: center; isolation: isolate;
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame--portrait { aspect-ratio: 3 / 4; }
.frame--tall     { aspect-ratio: 4 / 5; }
.frame--square   { aspect-ratio: 1 / 1; }
.frame--wide     { aspect-ratio: 16 / 10; }
.frame--hero     { aspect-ratio: 4 / 5; }
.frame__ph { text-align: center; color: var(--sage); padding: 20px; z-index: 1; }
.frame__ph svg { width: 34px; height: 34px; margin: 0 auto 10px; opacity: .7; }
.frame__ph span { display: block; font-size: 0.82rem; letter-spacing: .04em; color: var(--muted); }
.frame__ph small { display:block; font-size: 0.72rem; color: var(--sage); margin-top: 2px; }
.frame.has-photo .frame__ph { display: none; }
/* jemný zoom při najetí, beze změny layoutu */
.zoom img, .zoom .frame__inner { transition: transform .7s var(--ease); }
.zoom:hover img, .zoom:hover .frame__inner { transform: scale(1.05); }

/* ---- Karty -------------------------------------------------------------- */
.card {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 26px; box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card-solid { background: var(--paper); }
.card:hover { box-shadow: 0 22px 48px -22px rgba(43,53,38,.36); border-color: var(--sage-300); }
.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sage-100); color: var(--green-700); margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.97rem; }

/* ---- Tmavá zelená sekce ------------------------------------------------- */
.section-dark { background: var(--green-900); color: var(--cream); border-radius: var(--radius-lg); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark h2 em { color: var(--sage-300); }
.section-dark p { color: rgba(247,243,235,.74); }
.section-dark .eyebrow { color: var(--sage-300); }
.feature { text-align: center; padding: 18px 10px; }
.feature .ic { width: 50px; height: 50px; margin: 0 auto 14px; color: var(--sage-300); }
.feature .ic svg { width: 100%; height: 100%; }
.feature h3 { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 600; color: var(--cream); }
.feature p { font-size: 0.9rem; margin-top: 6px; }
.divider-leaf { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--brass); }
.divider-leaf::before, .divider-leaf::after { content: ""; height: 1px; width: clamp(40px, 12vw, 130px); background: linear-gradient(90deg, transparent, var(--brass)); }
.divider-leaf::after { background: linear-gradient(90deg, var(--brass), transparent); }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(30px, 5vw, 56px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero__title { margin: 18px 0 0; }
.hero__title .script { display: block; font-size: clamp(3.4rem, 8vw, 6rem); margin-top: -6px; }
.hero__lead { margin: 24px 0 32px; max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { margin-top: 34px; display: flex; gap: 26px; flex-wrap: wrap; }
.hero__trust .num { font-family: var(--font-serif); font-size: 1.8rem; color: var(--green-800); display: block; line-height: 1; }
.hero__trust small { color: var(--muted); font-size: 0.84rem; }
.hero__media { position: relative; }
.hero__media .frame { box-shadow: var(--shadow-soft); }
.chip-loc {
  position: absolute; left: -10px; bottom: 26px; z-index: 3; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.58));
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(11px); backdrop-filter: blur(11px);
  border-radius: 16px; padding: 12px 16px; max-width: 230px;
  box-shadow:
    inset 1.5px 1.5px 0.5px -1.5px rgba(255,255,255,0.95),
    inset -1px -1px 1px -1px rgba(43,53,38,0.2),
    0 10px 30px -14px rgba(43,53,38,0.42);
}
.chip-loc > * { position: relative; z-index: 1; }
.chip-loc b { font-size: 0.9rem; }
.chip-loc span { display: block; font-size: 0.8rem; color: var(--muted); }
.chip-loc .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); display: inline-block; margin-right: 7px; }

/* ---- Botanické dekorace ------------------------------------------------- */
.botanic { position: absolute; z-index: 0; pointer-events: none; color: var(--sage); opacity: .85; transform-origin: top center; }
.botanic svg { width: 100%; height: 100%; }
.sway { animation: sway 7s ease-in-out infinite; transform-origin: top center; }
.sway-2 { animation: sway 9s ease-in-out infinite; animation-delay: -3s; }
.sway-slow { animation: sway 12s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
.shake { animation: shake .9s var(--ease); }
@keyframes shake { 0%{transform:rotate(0)} 20%{transform:rotate(5deg)} 40%{transform:rotate(-4deg)} 60%{transform:rotate(2.5deg)} 80%{transform:rotate(-1.5deg)} 100%{transform:rotate(0)} }
.float { animation: floaty 9s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* ---- Pobočky / rozvrh --------------------------------------------------- */
.loc-card { display: flex; flex-direction: column; gap: 4px; }
.loc-card.is-today { border-color: var(--sage); box-shadow: 0 0 0 1px var(--sage), var(--shadow-card); }
.badge-today { align-self: flex-start; background: var(--green-800); color: var(--cream); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 8px; }
.loc-day { font-family: var(--font-serif); font-size: 1.5rem; color: var(--green-800); }
.loc-card .addr { font-size: 0.92rem; color: var(--muted); }
.loc-card .hours { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.loc-card .hours svg { width: 16px; height: 16px; color: var(--sage); }
.maplink { margin-top: 12px; font-size: 0.86rem; font-weight: 600; color: var(--green-700); display: inline-flex; align-items: center; gap: 6px; }
.maplink svg { width: 15px; height: 15px; }

/* ---- Mapy (načtené po souhlasu s cookies) ------------------------------ */
.map-box { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(155deg, var(--sage-100), var(--cream-2)); }
.map-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 20px; gap: 12px; }
.map-ph svg { width: 30px; height: 30px; color: var(--sage); }
.map-ph p { font-size: 0.86rem; max-width: 26ch; }

/* ---- Recenze ------------------------------------------------------------ */
.stars { display: inline-flex; gap: 3px; color: var(--brass); margin-bottom: 12px; }
.stars svg { width: 17px; height: 17px; fill: var(--brass); }
.review p { color: var(--ink); font-family: var(--font-serif); font-size: 1.08rem; font-style: italic; line-height: 1.55; }
.review .who { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.review .av { width: 40px; height: 40px; border-radius: 50%; background: var(--sage-100); color: var(--green-700); display: grid; place-items: center; font-weight: 600; font-family: var(--font-sans); }
.review .who b { font-style: normal; font-size: 0.95rem; }
.review .who span { display: block; font-size: 0.8rem; color: var(--muted); }

/* ---- Galerie ------------------------------------------------------------ */
.gallery { columns: 3; column-gap: clamp(14px, 2vw, 24px); }
.gallery > * { break-inside: avoid; margin-bottom: clamp(14px, 2vw, 24px); }
.tag-pill { display:inline-block; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .85rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .2s var(--ease); }
.tag-pill:hover, .tag-pill.active { background: var(--green-800); color: var(--cream); border-color: var(--green-800); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }

/* ---- Formulář ----------------------------------------------------------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-card); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field .req { color: var(--clay); }
.input, .select, .textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: #fff; font-family: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(117,135,107,.18); outline: none; }
.textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green-800); flex-shrink: 0; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success svg { width: 56px; height: 56px; color: var(--green-700); margin: 0 auto 16px; }
.form-success.show { display: block; }
.form-success.show ~ * { display: none; }

/* ---- Patička ------------------------------------------------------------ */
.footer { background: var(--green-900); color: rgba(247,243,235,.78); border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: 40px; }
.footer h4 { color: var(--cream); font-family: var(--font-sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.footer a { color: rgba(247,243,235,.78); transition: color .2s; }
.footer a:hover { color: var(--cream); }
.footer .brand { color: var(--cream); margin-bottom: 14px; }
.footer .brand .script { color: var(--brass); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(48px, 6vw, 76px); }
.footer-links li { margin-bottom: 11px; font-size: 0.94rem; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(247,243,235,.2); display: grid; place-items: center; }
.socials a:hover { background: rgba(247,243,235,.1); border-color: var(--sage-300); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(247,243,235,.14); padding-block: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.84rem; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Cookie lišta ------------------------------------------------------- */
.cookiebar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin-inline: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-soft); transform: translateY(140%); transition: transform .5s var(--ease);
}
.cookiebar.show { transform: translateY(0); }
.cookiebar p { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }
.cookiebar p a { color: var(--green-700); text-decoration: underline; }
.cookiebar .row { display: flex; gap: 10px; flex-wrap: wrap; }
.cookiebar .btn { padding: 11px 20px; font-size: 0.9rem; }

/* ---- Lightbox ----------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(43,53,38,.82); display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox figure { max-width: 880px; width: 100%; }
.lightbox .frame { aspect-ratio: 4/5; max-height: 82vh; }
.lightbox figcaption { color: var(--cream); text-align: center; margin-top: 14px; font-family: var(--font-serif); font-style: italic; }
.lightbox .lb-close { position: absolute; top: 22px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--cream); border: none; display: grid; place-items: center; }

/* ---- Reveal animace ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ---- Stránkové záhlaví (podstránky) ------------------------------------- */
.page-hero { position: relative; text-align: center; padding-block: clamp(50px, 8vw, 96px) clamp(30px, 4vw, 50px); overflow: hidden; }
.page-hero .lead { margin: 18px auto 0; max-width: 56ch; }
.page-hero .crumbs { font-size: 0.82rem; color: var(--muted); letter-spacing: .04em; margin-bottom: 18px; }
.page-hero .crumbs a:hover { color: var(--green-700); }

/* ---- Prose (právní stránky) --------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 40px 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 10px; font-family: var(--font-sans); font-weight: 600; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--ink); }
.prose .ph { background: #FBEFD8; color: #8a5a12; padding: 1px 7px; border-radius: 6px; font-size: .92em; }

/* ---- Pomocné ------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-l { margin-top: clamp(34px, 5vw, 56px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.relative { position: relative; }
.hide-mobile { display: initial; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2; }
  .hero__grid, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .hero__media { order: -1; max-width: 440px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .chip-loc { left: auto; right: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
  .section { padding-block: 56px; }
}

/* ---- Respekt k vypnutým animacím --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .sway, .sway-2, .sway-slow, .float { animation: none !important; }
  .btn-primary::after { display: none; }
}

/* ---- Fallback bez backdrop-filter (starší prohlížeče) ------------------ */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .btn-ghost { background: var(--paper); }
  .chip-loc { background: var(--paper); }
  .nav { background: var(--paper); }
  .card { background: var(--paper); }
}
