/* Layout: jedna stránka, mobil na prvním místě; každá sekce končí cestou k objednání,
   na mobilu je vždy vidět spodní lišta Zavolat / WhatsApp. */
:root {
  --pearl: #F7F2EA;      /* pozadí */
  --champagne: #EEE3D2;  /* tónované sekce */
  --ink: #1D2245;        /* text a tmavá tlačítka (navazuje na modrou z Instagramu) */
  --muted: #4C4859;      /* vedlejší text */
  --gold: #A07D4A;       /* jemný akcent */
  --line: #DCCDB6;       /* linky */
  --wa: #128C4A;         /* WhatsApp – dost tmavá pro bílý text */
  --white: #FFFDF9;

  --f-display: "Lora", Georgia, "Times New Roman", serif;
  --f-text: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --dock-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font: 500 16px/1.65 var(--f-text);
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding: 0 1.5em; border-radius: 999px;
  font: 600 1rem/1 var(--f-text); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--wa { background: var(--wa); color: var(--white); box-shadow: 0 8px 22px -10px rgb(18 140 74 / .7); }
.btn--wa:hover { background: #0F7A40; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--small { min-height: 42px; padding: 0 1.1em; font-size: .92rem; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hlavička ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--pearl);
}
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgb(247 242 234 / .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(220 205 182 / .6);
}
.top__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: grid; text-decoration: none; line-height: 1.05; }
.logo__name { font: 600 1.3rem/1 var(--f-display); }
.logo__sub { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.top__call { margin-left: 8px; }

/* ---------- Úvod ---------- */
/* Úvod: text a fotka v jedné mřížce se zbytkem stránky; fotka 4:5 se zlatým posunutým rámečkem */
.hero { background: linear-gradient(180deg, var(--pearl) 0%, var(--champagne) 100%); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center;
  gap: clamp(32px, 6vw, 88px); padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px);
}
.hero__in { display: grid; gap: 22px; min-width: 0; }
.hero__in > * { max-width: 560px; }
.hero__photo { position: relative; margin: 0 20px 0 0; width: 100%; max-width: 440px; justify-self: center; display: grid; gap: 34px; }
.hero__photo::before { /* zlatý rámeček posunutý za fotku */
  content: ""; position: absolute; top: 20px; left: 20px; right: -20px; aspect-ratio: 4 / 5;
  border: 1.5px solid var(--gold); border-radius: var(--radius);
}
.hero__photo img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; max-width: 100%; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--radius); box-shadow: 0 26px 50px -28px rgb(29 34 69 / .5);
}
.hero__photo figcaption {
  position: relative; padding-left: 2px; color: var(--muted);
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; }
.trust {
  list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: .88rem; color: var(--muted);
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Sekce ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tint { background: var(--champagne); }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 5vw, 52px); max-width: 640px; }
.sec-head__note { color: var(--muted); }

/* Služby */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc { display: grid; grid-template-rows: auto 1fr; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.svc img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.svc__body { display: grid; grid-template-rows: auto 1fr auto auto; gap: 10px; padding: 20px 20px 22px; }
.svc__body p { color: var(--muted); font-size: .95rem; }
.svc__body .svc__price { color: var(--ink); font-weight: 700; font-size: 1rem; }
.link-wa { font-weight: 700; color: var(--wa); text-decoration: none; }
.link-wa:hover { text-decoration: underline; }

/* Před / po */
.promena { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.promena__text { display: grid; gap: 18px; justify-items: start; }
.promena__text > p:not(.eyebrow):not(.hint) { color: var(--muted); font-size: 1.05rem; }
.hint { font-size: .88rem; color: var(--muted); }
.ba {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); overflow: hidden;
  background: var(--line); user-select: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--white); pointer-events: none;
}
.ba__line::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--ink); font-weight: 700; letter-spacing: .1em;
  box-shadow: 0 6px 20px -6px rgb(29 34 69 / .4);
}
.ba__tag {
  position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; background: rgb(255 253 249 / .9); color: var(--ink); pointer-events: none;
}
.ba__tag--l { left: 14px; } .ba__tag--r { right: 14px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* Ceník */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.price { background: var(--white); border-radius: var(--radius); padding: 26px 26px 18px; min-width: 0; }
.price h3 { margin-bottom: 14px; }
.price h3 small { font: 500 .8rem var(--f-text); color: var(--muted); letter-spacing: .02em; margin-left: 6px; }
.price dl { margin: 0; }
.price dl div {
  display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line);
}
.price dt { flex: 1 1 auto; min-width: 0; }
.price dd { margin: 0; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cta-band {
  margin-top: 30px; padding: 26px 28px; border-radius: var(--radius); background: var(--ink); color: var(--white);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.cta-band p { max-width: 520px; font-size: 1.05rem; }
.cta-band .btn--ink { background: var(--white); color: var(--ink); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g { font: inherit; padding: 0; border: 0; background: var(--line); border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.g img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; transition: transform .5s ease; }
.g:hover img { transform: scale(1.03); }
.more { margin-top: 26px; }
.more a { font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* Recenze */
.reviews { columns: 3 280px; column-gap: 22px; }
.review {
  margin: 0 0 22px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--white); break-inside: avoid; display: grid; gap: 14px;
}
.review blockquote { margin: 0; font: italic 500 1.08rem/1.55 var(--f-display); }
.review--featured { background: var(--ink); color: var(--white); border-color: var(--ink); padding: clamp(26px, 4vw, 44px); }
.review--featured blockquote { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.45; max-width: 900px; }
.review--featured figcaption { color: #C9C3D6; }
.reviews__cta { margin-top: 8px; }
@media (max-width: 760px) {
  .reviews {
    columns: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * max(18px, env(safe-area-inset-left, 0px))); padding-inline: max(18px, env(safe-area-inset-left, 0px));
    padding-bottom: 8px; scrollbar-width: none;
  }
  .reviews::-webkit-scrollbar { display: none; }
  .reviews .review { flex: 0 0 82%; margin: 0; scroll-snap-align: center; align-content: space-between; }
  .reviews__cta { margin-top: 22px; }
}
.review blockquote::before { content: "„"; color: var(--gold); }
.review blockquote::after { content: "“"; color: var(--gold); }
.review figcaption { font-size: .88rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: 12px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* Kontakt */
.contact__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.contact__text { display: grid; gap: 18px; align-content: start; }
.contact__big a { font: 600 clamp(2rem, 4vw, 2.7rem)/1 var(--f-display); text-decoration: none; font-variant-numeric: lining-nums tabular-nums; }
address { font-style: normal; color: var(--muted); }
.social { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.social a:hover { border-color: var(--gold); }
.social svg { width: 18px; height: 18px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 340px; background: var(--champagne); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* Patička */
.foot { border-top: 1px solid var(--line); padding-block: 26px; font-size: .86rem; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Spodní lišta (mobil) */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px;
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: rgb(247 242 234 / .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.dock__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.dock__btn svg { width: 20px; height: 20px; }
.dock__btn--call { background: var(--ink); color: var(--white); }
.dock__btn--wa { background: var(--wa); color: var(--white); }

/* Prohlížeč fotek */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92vh; }
.lightbox::backdrop { background: rgb(20 22 40 / .82); }
.lightbox img { max-height: 88vh; width: auto; margin: auto; border-radius: 10px; }
.lightbox__close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--white); color: var(--ink); font-size: 1.6rem; cursor: pointer;
}

/* Místo pro fotku, dokud není nahraná skutečná */
.ph {
  display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; max-width: 100%; padding: 16px;
  background: repeating-linear-gradient(135deg, var(--champagne) 0 14px, #E9DCC7 14px 28px);
  border: 1.5px dashed var(--gold); border-radius: inherit;
  color: var(--muted); font-size: .82rem; font-weight: 600; text-align: center; line-height: 1.4;
}
.ph--hero { display: none; }
.ba .ph { position: absolute; inset: 0; aspect-ratio: auto; }
.ba .ph.ba__before { text-align: left; padding-right: 55%; background: #E4D4BB; }
.ba .ph.ba__after { text-align: right; padding-left: 55%; }
[hidden] { display: none !important; }
.g .ph { cursor: default; }

/* ---------- Responzivita ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
}
@media (max-width: 1020px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  .nav { display: none; }
  .top__call { margin-left: auto; }
}
@media (max-width: 760px) {
  .top__in { min-height: 60px; }
  .logo__name { font-size: 1.2rem; }
  .hero__grid { grid-template-columns: 1fr; padding-block: 32px 48px; }
  .hero__in { gap: 18px; }
  .hero__photo { max-width: 340px; justify-self: start; margin-right: 14px; }
  .hero__photo::before { top: 12px; left: 12px; right: -12px; }
  .hero .cta-pair .btn { flex: 1 1 100%; }
  .promena, .contact__in { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cta-band .cta-pair { width: 100%; }
  .cta-band .btn { flex: 1 1 0; }
}
@media (max-width: 480px) {
  .services { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 38% 1fr; grid-template-rows: none; }
  .svc img { aspect-ratio: auto; height: 100%; }
  .svc__body { padding: 16px; gap: 6px; }
  .svc__body h3 { font-size: 1.15rem; }
  .top__call { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Mobil: klidnější první obrazovka, lišta až po odscrollování tlačítek */
.dock { transition: transform .25s ease, opacity .25s ease; }
.dock.is-off { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
  h1 { font-size: clamp(1.85rem, 8.2vw, 2.2rem); }
  .hero__grid { padding-block: 22px 44px; gap: 30px; }
  .hero__in { gap: 16px; }
  .hero__lead { font-size: 1.02rem; }
  .hero .cta-pair { flex-wrap: nowrap; gap: 10px; }
  .hero .cta-pair .btn { flex: 1 1 0; min-width: 0; padding: 0 1em; min-height: 52px; }
  .m-hide, .trust .m-hide, .hero .eyebrow.m-hide { display: none; }
  .trust { font-size: .88rem; }
}

/* ---------- Mobil v2: fotka jako první, text krátce, objednání ve spodní liště ---------- */
@media (max-width: 760px) {
  .hero { background: var(--pearl); }
  .hero__grid { display: flex; flex-direction: column; gap: 22px; padding-block: 14px 40px; }
  .hero__photo { order: -1; max-width: none; width: 100%; margin: 0; gap: 0; justify-self: stretch; }
  .hero__photo::before { display: none; }
  .hero__photo img { aspect-ratio: 1 / 1; object-position: 50% 40%; border-radius: 20px; box-shadow: none; }
  .hero__photo figcaption {
    position: absolute; left: 12px; bottom: 12px;
    padding: 7px 12px; border-radius: 999px;
    background: rgb(247 242 234 / .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: var(--ink); font-size: .64rem; letter-spacing: .14em;
  }
  .hero__in { gap: 12px; }
  .hero h1 { font-size: clamp(1.7rem, 7.6vw, 2.05rem); line-height: 1.14; }
  .hero__lead, .hero .cta-pair { display: none; }
  .trust { font-size: .86rem; gap: 6px 18px; }
}
@media (max-width: 760px) {
  /* Služby: vodorovné listování jako v Instagramu */
  .services {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * max(18px, env(safe-area-inset-left, 0px))); padding-inline: max(18px, env(safe-area-inset-left, 0px));
    padding-bottom: 6px; scrollbar-width: none;
  }
  .services::-webkit-scrollbar { display: none; }
  .services .svc { flex: 0 0 74%; display: grid; grid-template-columns: none; grid-template-rows: auto 1fr; scroll-snap-align: start; scroll-margin-left: max(18px, env(safe-area-inset-left, 0px)); }
  .services .svc img { aspect-ratio: 4 / 5; height: auto; }
  .services .svc__body { padding: 16px 16px 18px; gap: 8px; }
  .services .svc__body h3 { font-size: 1.15rem; }
  .services .svc__body p { font-size: .9rem; }
}
@media (max-width: 760px) {
  /* Výraznější nadpis: malý zlatý štítek + velký hlavní text */
  .hero h1 { font-size: 1rem; line-height: 1; }
  .hero h1 .h1-k {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
    font: 700 .74rem/1.2 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  }
  .hero h1 .h1-k::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: .45; }
  .hero h1 .h1-c { display: none; }
  .hero h1 .h1-m { display: block; font-size: clamp(2.3rem, 11vw, 2.8rem); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
  .hero h1 .h1-m em { font-size: 1.12em; }
}
@media (max-width: 760px) {
  /* v3: hlavní je „Kadeřnice v Olomouci“, pod tím menší dovětek */
  .hero h1 .h1-k {
    display: block; margin: 0 0 10px;
    font: 600 clamp(2.4rem, 11.4vw, 2.9rem)/1.02 var(--f-display); letter-spacing: -.02em; text-transform: none; color: var(--ink);
  }
  .hero h1 .h1-k::after { content: none; }
  .hero h1 .h1-m { font-size: 1.4rem; line-height: 1.25; letter-spacing: 0; font-weight: 500; color: var(--muted); }
  .hero h1 .h1-m em { font-size: 1.1em; color: var(--gold); }
}

/* Recenze – poznámka o původu (zákon o ochraně spotřebitele) */
.reviews__note { margin-top: 18px; max-width: 640px; font-size: .82rem; color: var(--muted); }

/* Mapa bez cookies: statický obrázek + odkazy */
.map { position: relative; display: grid; grid-template-rows: 1fr auto; margin: 0; min-height: 0; background: var(--white); }
.map__img { position: relative; display: block; min-height: 300px; overflow: hidden; }
.map__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map__pin { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, calc(-50% - 24px)) rotate(-45deg); border-radius: 50% 50% 50% 0; background: var(--ink); box-shadow: -4px 6px 14px -4px rgb(29 34 69 / .6); }
.map__pin::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--gold); }
.map__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 18px; font-weight: 600; }
.map__bar a { color: var(--ink); }
.map__bar small { margin-left: auto; font-weight: 500; font-size: .72rem; color: var(--muted); }
.map__bar small a { color: inherit; font-weight: inherit; }

/* Patička – údaje podle zákona */
.foot__legal { display: grid; gap: 6px; margin-top: 14px; font-size: .74rem; line-height: 1.55; color: var(--muted); }
.foot__legal a { color: inherit; }
