/* =========================================================
   Kosmetické studio Lucie – styl „Moderní minimal“
   ========================================================= */
:root {
  --bg: #faf8f5;
  --tint: #f1ebe5;
  --dark: #1a1817;
  --dark-2: #24201e;
  --text: #1a1817;
  --muted: #6e6761;
  --line: #ddd5cd;
  --accent: #b8603e;
  --accent-dark: #974a2d;
  --accent-light: #e9a585;
  --serif: "Bodoni Moda", Didot, Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 400; color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16.5px; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: var(--accent-dark); }
h1, h2 { font-weight: 500; margin: 0 0 .5em; }
h1 { font-family: var(--serif); line-height: 1.02; letter-spacing: -.015em; }
/* Nadpisy sekcí: Inter – Bodoni je v menších velikostech na světlém pozadí špatně čitelné */
h2 { font-family: var(--sans); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.08; letter-spacing: -.035em; }
h1 em, h2 em, .nav__logo em { font-style: italic; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(1200px, 100% - 3rem); margin-inline: auto; }

/* ---------- Tlačítka a odkazy ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 1.05em 2.1em; background: var(--accent); color: #fff; font: 600 .78rem/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; text-decoration: none; border: 1px solid var(--accent); cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: color .4s var(--ease), border-color .4s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--dark); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { border-color: var(--dark); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost::before { background: currentColor; }
.btn--ghost:hover { color: var(--bg); border-color: var(--bg); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { color: var(--dark); }
.section--dark .btn--ghost::before, .hero .btn--ghost::before { background: #fff; }
.section--dark .btn:not(.btn--ghost)::before, .hero .btn:not(.btn--ghost)::before { background: #fff; }
.section--dark .btn:not(.btn--ghost):hover, .hero .btn:not(.btn--ghost):hover { color: var(--dark); border-color: #fff; }
.btn__icon { width: 1.35em; height: 1.35em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-left: -.2em; }
.btn:hover .btn__icon { animation: ring .6s var(--ease); }
.btn--small { padding: .8em 1.3em; font-size: .7rem; }
.btn--text { background: none; border-color: transparent; color: var(--muted); padding-inline: .6em; text-decoration: underline; text-underline-offset: 3px; }
.btn--text::before { display: none; }
.btn--text:hover { color: var(--text); border-color: transparent; }

.link-arrow { display: inline-flex; align-items: center; gap: .6em; color: inherit; text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: .15em; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.4rem; }

/* ---------- Navigace ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .4s var(--ease), box-shadow .4s; }
.nav--scrolled { background: rgba(26, 24, 23, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav__inner { display: flex; align-items: center; gap: 2rem; height: var(--nav-h); }
.nav__logo { font-family: var(--serif); font-size: 1.45rem; color: inherit; text-decoration: none; letter-spacing: -.01em; position: relative; z-index: 2; }
.nav__links { display: flex; align-items: center; gap: 2.2rem; margin-left: auto; }
.nav__links a:not(.btn) { color: inherit; text-decoration: none; font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; position: relative; padding: .4em 0; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent-light); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; z-index: 2; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.menu-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Úvod ---------- */
.hero { position: relative; min-height: 100svh; background: var(--dark); color: #fff; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; }
.hero__text { align-self: center; padding: calc(var(--nav-h) + 2rem) 3rem 5rem max(1.5rem, calc((100vw - 1200px) / 2)); position: relative; z-index: 1; }
.hero__kicker { font-size: .74rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-light); margin: 0 0 2rem; }
.hero__title { font-size: clamp(3.2rem, min(7.6vw, 13vh), 7.4rem); margin: 0 0 1.8rem; }
.hero__title em { color: var(--accent-light); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 300; color: #cfc8c2; max-width: 30em; margin: 0 0 2.6rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__media { min-height: 100%; }
.hero__media::after { transform-origin: center; filter: brightness(.9) saturate(.92); }
.hero__media::before { color: rgba(233, 165, 133, .25); }
.hero__media.ph { background: linear-gradient(170deg, #3a3330, #26211f); }
.hero__media { -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.hero__scroll { position: absolute; left: 50%; bottom: 1.8rem; z-index: 2; width: 1px; height: 56px; background: rgba(255,255,255,.18); overflow: hidden; }
.hero__scroll span { position: absolute; inset: 0; background: var(--accent-light); animation: scrollLine 2.2s var(--ease) infinite; }

/* ---------- Pás ---------- */
.marquee { background: var(--accent); color: #fff; overflow: hidden; padding: 1.1rem 0; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; animation: marquee 32s linear infinite; font-family: var(--sans); font-weight: 500; font-size: clamp(.85rem, 1.3vw, 1rem); text-transform: uppercase; letter-spacing: .22em; }
.marquee i { font-style: normal; font-size: .7em; opacity: .7; }

/* ---------- Sekce ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section--tinted { background: var(--tint); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark a:not(.btn) { color: inherit; }
.section__head { margin-bottom: 3rem; }
.section__head--row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.note { color: var(--muted); font-style: italic; margin: -1.5rem 0 1rem; font-size: .9rem; }

/* Placeholder / obrázek: ::before = monogram (záloha), ::after = fotka */
.ph { position: relative; overflow: hidden; background: linear-gradient(165deg, #e9e1d9, #f6f2ee); --img: none; }
.ph::before { content: "L"; position: absolute; inset: 0; display: grid; place-items: center; font: italic 500 clamp(3rem, 8vw, 6rem) var(--serif); color: rgba(184, 96, 62, .22); }
.ph::after { content: ""; position: absolute; inset: 0; background: var(--img) center / cover no-repeat; transition: transform 1.4s var(--ease); }

/* O studiu */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.about__media { aspect-ratio: 4 / 5; }
.about__media::after { background-position: 42% center; }
.about__text p:not(.eyebrow) { color: var(--muted); font-size: 1.07rem; max-width: 32em; }
.about__text strong { color: var(--text); }

/* Služby */
.services { list-style: none; padding: 0; margin: 0 0 3rem; counter-reset: s; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 6vw, 6rem); }
.services li { counter-increment: s; position: relative; display: flex; gap: 1.6rem; align-items: baseline; padding: 1.6rem 0; border-top: 1px solid var(--line); font-family: var(--sans); font-weight: 400; font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -.01em; line-height: 1.3; transition: padding-left .45s var(--ease), color .3s; }
.services li::before { content: counter(s, decimal-leading-zero); font: 600 .72rem var(--sans); letter-spacing: .12em; color: var(--accent); min-width: 1.6rem; }
.services li::after { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.services li:hover { padding-left: .8rem; color: var(--accent-dark); }
.services li:hover::after { transform: scaleX(1); }
.services__cta { color: var(--muted); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.5rem, 1.2vw, 1rem); }
.gallery__item { aspect-ratio: 3 / 4; }
.gallery__item:nth-child(2) { margin-top: clamp(1.5rem, 5vw, 4rem); }
.gallery__item:hover::after { transform: scale(1.05); }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: end; margin-bottom: 4rem; }
.contact p { color: #cfc8c2; }
.contact strong { color: #fff; }
.phone { display: inline-block; font-family: var(--sans); font-weight: 300; letter-spacing: -.04em; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.05; text-decoration: none; color: #fff; position: relative; margin-top: .5rem; }
.phone::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: 2px; background: var(--accent); transform-origin: left; transition: transform .5s var(--ease), background .3s; }
.phone:hover::after { background: var(--accent-light); transform: scaleX(.6); }
.contact__info address { font-style: normal; font-size: 1.15rem; margin-bottom: .8rem; }
.contact__label { font-size: .72rem !important; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-light) !important; margin: 2rem 0 .6rem; }
.contact__label:first-child { margin-top: 0; }

.map { position: relative; height: 420px; background: var(--dark-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); }
.map__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.2rem; text-align: center; padding: 2rem; color: #a8a19b; }
.map__placeholder p { margin: 0; max-width: 28em; }

/* Patička */
.footer { background: var(--dark); color: #8f8882; border-top: 1px solid rgba(255,255,255,.08); padding: 2.5rem 0; font-size: .85rem; }
.footer__inner { display: grid; gap: .3rem; }
.footer p { margin: 0; }
.footer__legal { font-size: .75rem; line-height: 1.6; }
.footer__link { background: none; border: 0; padding: 0; margin-top: .6rem; font: inherit; color: #cfc8c2; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer__link:hover { color: #fff; }
.footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .6rem 2rem; margin-top: .6rem !important; }
.footer__meta .footer__link { margin-top: 0; }
.footer__meta a { color: #cfc8c2; text-underline-offset: 3px; }
.footer__meta a:hover { color: #fff; }

/* ---------- Cookie lišta ---------- */
.consent { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 100; width: min(440px, calc(100% - 2.5rem)); }
.consent[hidden] { display: none; }
.consent__box { background: var(--bg); color: var(--text); padding: 1.6rem 1.6rem 1.4rem; box-shadow: 0 20px 60px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.04); animation: consentIn .6s var(--ease) both; }
.consent__title { font: 600 1.15rem/1 var(--sans); letter-spacing: -.01em; margin: 0 0 .7rem; }
.consent__text { font-size: .88rem; color: var(--muted); line-height: 1.6; margin: 0 0 1.2rem; }
.consent__settings { display: grid; gap: .8rem; margin: 0 0 1.3rem; padding: 1rem 0; border-block: 1px solid var(--line); }
.consent__settings[hidden] { display: none; }
.consent__opt { display: flex; gap: .8rem; align-items: start; font-size: .85rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent__opt strong { color: var(--text); }
.consent__opt input { margin-top: .2rem; accent-color: var(--accent); width: 1rem; height: 1rem; flex: none; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent__actions [hidden] { display: none; }

/* ---------- Animace ---------- */
@keyframes ring { 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(-14deg); } 40%, 80% { transform: rotate(14deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes consentIn { from { opacity: 0; transform: translateY(24px); } }
@keyframes lineUp { from { transform: translateY(105%); } }
@keyframes heroZoom { from { transform: scale(1.12); } }

/* Animace úvodu po načtení */
.js .hero__title .line > span { animation: lineUp 1.1s var(--ease) both; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.js .hero__media::after { animation: heroZoom 2.4s var(--ease) both; }

/* Postupné odhalení při scrollu (jen se zapnutým JS) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Prvek sám zůstává viditelný (jinak ho IntersectionObserver v Chrome nikdy nezaznamená),
   odkrývá se jen fotka v ::after */
.js .reveal--clip { opacity: 1; transform: none; }
.js .reveal--clip::after { clip-path: inset(100% 0 0 0); transform: scale(1.15); transition: clip-path 1.2s var(--ease) var(--d, 0s), transform 1.6s var(--ease) var(--d, 0s); }
.js .reveal--clip.is-in::after { clip-path: inset(0 0 0 0); transform: scale(1); }
.js .reveal--clip.is-in:hover::after { transform: scale(1.05); }

.js .services li.reveal { transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), padding-left .45s var(--ease), color .3s; }

/* Úvodní prvky se odhalí hned (nejsou pod přehybem) */
.js .hero .reveal { transition-delay: calc(var(--d, .35s)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; clip-path: none; }
  .js .reveal--clip::after { transform: none; clip-path: none; }
  .marquee__track { transform: none; }
}

/* ---------- Responzivita ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { position: absolute; inset: 0; opacity: .45; -webkit-mask-image: linear-gradient(0deg, transparent 10%, #000 70%); mask-image: linear-gradient(0deg, transparent 10%, #000 70%); }
  .hero__text { padding: calc(var(--nav-h) + 3rem) 1.5rem 6.5rem; }
  .about, .contact { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
}

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.8rem; background: var(--dark); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
  .nav__links a:not(.btn) { font: 500 1.9rem var(--sans); text-transform: none; letter-spacing: -.03em; }
  .nav__cta { margin-top: 1rem; }
  .menu-open .nav__links { opacity: 1; visibility: visible; }
  /* backdrop-filter by uzavřel fixní menu do výšky lišty */
  .menu-open .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--dark); }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 2.5rem); }
  .services { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item:nth-child(2) { margin-top: 0; }
  .gallery__item:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .map { height: 320px; }
  .consent { left: .75rem; bottom: .75rem; width: calc(100% - 1.5rem); }
  .consent__actions .btn { flex: 1 1 auto; }
}
