/* ==========================================================================
   AMALFI BUTIK — styly v2 „Zážitek"
   Design systém „Editorial italiano". Tokeny níže jsou jediný zdroj pravdy;
   nikde v souboru nepoužívej natvrdo zapsanou barvu ani velikost písma.

   Dramaturgie stránky: filmové hero (video-ready) → manifest → diptych
   Itálie → celoplošný butik → pozvání → citace → Daniela → inkoustové finále.
   Vzory ověřené na The Row / Toteme / Jacquemus / Khaite: fotografie nese
   význam, typ je buď velký, nebo drobný, žádné boxy, žádné stíny.
   ========================================================================== */

/* --- Fonty ---------------------------------------------------------------
   Bodoni Moda = pouze display ≥ 40px (pod tím se rozpadá).
   Cinzel = POUZE logo/wordmark (naměřená shoda s původním logem Daniely).
   Inter = všechen ostatní text.
   Subsety latin + latin-ext kvůli české diakritice (ě š č ř ž ů).           */

@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/bodonimoda-normal-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: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/bodonimoda-normal-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: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/bodonimoda-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: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/bodonimoda-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;
}
/* Cinzel nese jen wordmark a nápis AMALFI v heru — obojí verzálkami.
   Řez je proto ořezaný na A–Z a pár interpunkčních znaků: 6 kB místo 26 kB.
   Kdyby se Cinzel měl použít na běžnou větu (nemá — viz pravidla nahoře),
   je nutné rozsah rozšířit, jinak znaky spadnou na náhradní písmo. */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cinzel-wordmark.woff2') format('woff2');
  unicode-range: U+0020, U+0026, U+002D, U+002E, U+0041-005A, U+00A0;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-normal-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: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-normal-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;
}

/* --- Azbuka (ruská verze) -------------------------------------------------
   Inter azbuku umí, Bodoni Moda ne — v ruštině by nadpisy spadly na systémový
   Times. Proto se pod jméno 'Bodoni Moda' přidává Playfair Display omezený
   na cyrilický rozsah: taky didone, stejný charakter, latinky se nedotkne.  */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}


/* --- Tokeny -------------------------------------------------------------- */

:root {
  /* Barvy — terrakotta je JEDINÝ akcent, --star jen na hvězdičky hodnocení */
  --paper:    #FBF8F3;
  --paper-2:  #F1E9DE;
  --ink:      #17130F;
  --ink-soft: #2A241E;
  --muted:    #6C6259;
  --rule:     #E4DACB;
  /* Bordó — kód prémiové dámské módy; rýmuje se s vínovou ve fotografii.
     (Terrakotta #A84E32 zavržena: na plochách táhla do oranžova a četla se
     spíš „rustikální Středomoří" než móda. Kontrast bordó 9,1:1.) */
  --accent:   #722F37;
  --accent-d: #5E262D;
  --star:     #C8971C;

  /* Písma */
  --font-display: 'Bodoni Moda', 'Times New Roman', serif;
  --font-logo: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --font-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Typografická škála — fluidní, base 8px */
  --t-display: clamp(3rem, 9vw, 8.5rem);
  --t-h2:      clamp(2.25rem, 5.5vw, 4.5rem);
  --t-h3:      clamp(1.375rem, 2.2vw, 1.75rem);
  --t-lead:    clamp(1.125rem, 1.6vw, 1.375rem);
  --t-body:    clamp(1.0625rem, 1.1vw, 1.1875rem);
  --t-small:   0.9375rem;
  --t-label:   0.75rem;

  /* Rytmus */
  --space-section: clamp(96px, 13vw, 200px);
  --space-block:   clamp(40px, 6vw, 80px);
  --gutter:        clamp(20px, 5vw, 64px);
  --measure:       62ch;
  --content-max:   1180px;

  /* Pohyb */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}


/* --- Reset --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* nativní plynulý scroll je záloha pro případ bez JS; s JS ho přebírá
     vlastní doběh v main.js, který je delší a měkčí */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.7;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* pojistka proti přetoku; clip (ne hidden!) — hidden by z body udělal
     scroll container a rozbíjel scroll-driven logiku */
  overflow-x: clip;
}

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

h1, h2, h3, p, figure, blockquote { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--paper); }


/* --- Typografie ---------------------------------------------------------- */

.display,
h2 {
  font-family: var(--font-display);
  /* opsz níž + váha výš = pevnější tahy; plné opsz 96 bylo moc tenké */
  font-variation-settings: 'opsz' 28;
  font-weight: 460;
  font-size: var(--t-h2);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Kurzíva Bodoni přetéká přes pravý okraj — kompenzace paddingem */
em, .italic {
  font-style: italic;
  padding: 0 .06em;
  margin: 0 -.06em;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--muted);
  max-width: var(--measure);
}

.text { max-width: var(--measure); }
.text + .text { margin-top: 1.25em; }
.small { font-size: var(--t-small); }

/* Wordmark značky — živý text místo obrázku. Prostrkání .27em je naměřené
   z původního loga; bez něj to není totéž logo. */
.wordmark {
  font-family: var(--font-logo);
  font-weight: 500;
  letter-spacing: .27em;
  text-indent: .27em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

/* Drobný štítek — magazínové malé verzálky */
.label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--t-label);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.label--short::after { flex: 0 0 64px; }
.label--bare::after { display: none; }


/* --- Layout -------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section--alt { background: var(--paper-2); }


/* --- Tlačítka a odkazy --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 28px;
  font-family: var(--font-text);
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.btn--primary { background: var(--accent); color: var(--paper); }
.btn--primary:hover { background: var(--accent-d); }

.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* inverzní varianty na inkoustové pozadí */
.btn--ghost-inv { border-color: rgba(251,248,243,.5); color: var(--paper); }
.btn--ghost-inv:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.link {
  display: inline-block;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 12px);
  background-size: 0% 1px;
  transition: background-size .35s var(--ease);
  /* tap target ≥ 44 px bez vlivu na layout */
  padding-block: 12px;
  margin-block: -12px;
}

.link:hover { background-size: 100% 1px; }

/* Drobné podtržené verzálky — luxury CTA vzor (Khaite, Toteme) */
.link-caps {
  display: inline-block;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  /* tap target ≥ 44 px bez vlivu na layout */
  padding-top: 18px;
  margin-top: -18px;
}

.link-caps { transition: opacity .25s var(--ease), letter-spacing .35s var(--ease); }
.link-caps:hover { opacity: .55; letter-spacing: .22em; }


/* --- Pohyb --------------------------------------------------------------- */

/* Odhalování je záměrně pomalé. Rychlý náběh působí „webově"; luxus se
   pozná podle toho, že obsah dorazí beze spěchu a bez doskoku. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s var(--ease-slow), transform 1.1s var(--ease-slow);
}

.reveal.is-in { opacity: 1; transform: none; }

.reveal[data-delay="1"] { transition-delay: .14s; }
.reveal[data-delay="2"] { transition-delay: .28s; }
.reveal[data-delay="3"] { transition-delay: .42s; }

/* Odhalení řádku zpod masky — manifest, citace */
.mask-line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em; /* prostor pro dotahy kurzívy */
}

.mask-line > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.25s var(--ease-slow);
}

.reveal.is-in .mask-line > span { transform: none; }

.reveal.is-in .mask-line:nth-child(2) > span { transition-delay: .16s; }
.reveal.is-in .mask-line:nth-child(3) > span { transition-delay: .32s; }
.reveal.is-in .mask-line:nth-child(4) > span { transition-delay: .48s; }

/* Pomalé přiblížení fotky při odhalení */
.img-reveal { overflow: hidden; }
.img-reveal img {
  transform: scale(1.07);
  transition: transform 2s var(--ease-slow);
}
.reveal.is-in .img-reveal img,
.img-reveal.reveal.is-in img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .mask-line > span { transform: none; }
  .img-reveal img { transform: none; }
}

.no-js .reveal { opacity: 1; transform: none; }
.no-js .mask-line > span { transform: none; }
.no-js .img-reveal img { transform: none; }


/* --- Hlavička ------------------------------------------------------------ */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  transition: padding .35s var(--ease);
}

.header .wordmark { font-size: 1.0625rem; color: var(--paper); transition: color .35s var(--ease); padding-block: 14px; margin-block: -14px; }

.header nav { display: flex; gap: 26px; font-size: .8125rem; }
.header nav a { color: rgba(251,248,243,.85); transition: color .35s var(--ease); }

.header .link-caps { color: var(--paper); font-size: .6875rem; transition: color .35s var(--ease); }

/* po odscrollování z hera: papír + inkoust */
.header.is-solid { background: rgba(251,248,243,.94); backdrop-filter: blur(8px); }
.header.is-solid .wrap { padding-block: 14px; }
.header.is-solid .wordmark,
.header.is-solid nav a,
.header.is-solid .link-caps { color: var(--ink); }

/* --- Přepínač jazyka ------------------------------------------------------
   Dvě instance: v liště (desktop) a v mobilním overlay. Obě obsluhuje
   i18n.js podle třídy, stav drží atribut aria-current.                     */

.lang {
  display: inline-flex;
  align-items: baseline;
  gap: 0;                       /* kódy jako jedna těsná skupina, ne rozházené */
  font-size: .6875rem;
  letter-spacing: .06em;        /* dřív .14em — hlavní příčina „roztažení" */
  text-transform: uppercase;
}

.lang button {
  position: relative;
  padding: 6px 6px;
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  color: rgba(251,248,243,.5);
  cursor: pointer;
  transition: color .3s var(--ease);
}

.lang button:hover { color: var(--paper); }
.lang button[aria-current="true"] { color: var(--paper); }

/* aktivní jazyk značí tenké podtržení, ne barva navíc — čistší než tečky */
.lang button[aria-current="true"]::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 1px;
  height: 1px;
  background: currentColor;
}

.header.is-solid .lang button { color: rgba(23,19,15,.4); }
.header.is-solid .lang button:hover,
.header.is-solid .lang button[aria-current="true"] { color: var(--ink); }

/* tečkové oddělovače nahradilo podtržení aktivního */
.lang-sep { display: none; }

.menu-extra .lang { margin-top: 26px; margin-left: -6px; }
.menu-extra .lang button { color: rgba(251,248,243,.5); }
.menu-extra .lang button:hover,
.menu-extra .lang button[aria-current="true"] { color: var(--paper); }

@media (max-width: 900px) {
  .header > .wrap > .lang { display: none; } /* stěhuje se do menu */
}

/* extra položky menu — jen v mobilním overlay */
.menu-extra { display: none; }

/* přepínač menu — dvě linky → ✕ */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin: -6px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--paper);
  transition: transform .35s var(--ease), top .35s var(--ease), background-color .35s var(--ease);
}

.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }

.header.is-solid .menu-toggle span { background: var(--ink); }

.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.menu-open .menu-toggle span { background: var(--paper); }

@media (max-width: 900px) {
  .header .header-wa { display: none; } /* WhatsApp se stěhuje do menu */
  .menu-toggle { display: block; }

  /* navigace = celoplošný inkoustový overlay */
  .header nav {
    position: fixed;
    inset: 0;
    z-index: -1; /* pod lištou hlavičky (wordmark + ✕ zůstávají nahoře) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 96px var(--gutter) 48px;
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility 0s linear .4s;
  }

  .menu-open .header nav {
    opacity: 1;
    visibility: visible;
    transition: opacity .4s var(--ease);
  }

  .header nav > a {
    font-family: var(--font-display);
    font-variation-settings: 'opsz' 26;
    font-weight: 460;
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.3;
    color: var(--paper);
    background: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }

  .menu-open .header nav > a { opacity: 1; transform: none; }
  .menu-open .header nav > a:nth-child(1) { transition-delay: .10s; }
  .menu-open .header nav > a:nth-child(2) { transition-delay: .17s; }
  .menu-open .header nav > a:nth-child(3) { transition-delay: .24s; }
  .menu-open .header nav > a:nth-child(4) { transition-delay: .31s; }

  .menu-extra {
    display: block;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease) .40s, transform .5s var(--ease) .40s;
  }

  .menu-open .menu-extra { opacity: 1; transform: none; }

  .menu-meta {
    margin-top: 22px;
    font-size: var(--t-small);
    line-height: 1.7;
    color: rgba(251,248,243,.55);
  }

  /* při otevřeném menu je lišta vždy „na inkoustu" */
  .menu-open .header { background: transparent; backdrop-filter: none; }
  .menu-open .header .wordmark { color: var(--paper); }

  /* zámek scrollu */
  .menu-open { overflow: hidden; }
}


/* --- Hero — filmová scéna (video-ready) ---------------------------------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}

/* Fotka leží pod videem a nese první vykreslení. Video se navrch objeví,
   až se rozjede — bez videa (nebo při Data Saveru) zůstane vidět fotka. */
.hero-media .hero-poster { position: absolute; inset: 0; }

.hero-media video {
  position: relative;
  opacity: 0;
  transition: opacity .6s var(--ease);
}

.hero-media video.is-playing { opacity: 1; }

/* inkoustový gradient odspodu — čitelnost wordmarku a zápatí hera */
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(23,19,15,.42) 0%, rgba(23,19,15,.08) 18%, rgba(23,19,15,0) 30%),
    linear-gradient(to top, rgba(23,19,15,.68) 0%, rgba(23,19,15,.18) 38%, rgba(23,19,15,0) 62%);
}

/* jemné filmové zrno přes celou scénu */
.hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(48px, 8vh, 96px);
  text-align: center;
}

.hero-eyebrow {
  justify-content: center;
  color: rgba(251,248,243,.75);
  margin-bottom: clamp(20px, 3vh, 36px);
}

.hero-word {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: clamp(3.25rem, 12vw, 10rem);
  letter-spacing: .22em;
  text-indent: .22em;
  line-height: 1;
  color: var(--paper);
  margin-bottom: clamp(20px, 3vh, 32px);
  text-wrap: nowrap;
}

/* nástup hera po načtení: písmena wordmarku stoupají postupně */
.hero-word span {
  display: inline-block;
  animation: hero-rise .9s var(--ease-slow) both;
}
.hero-word span:nth-child(1) { animation-delay: .15s; }
.hero-word span:nth-child(2) { animation-delay: .22s; }
.hero-word span:nth-child(3) { animation-delay: .29s; }
.hero-word span:nth-child(4) { animation-delay: .36s; }
.hero-word span:nth-child(5) { animation-delay: .43s; }
.hero-word span:nth-child(6) { animation-delay: .50s; }

.hero-eyebrow { animation: hero-rise .9s var(--ease-slow) both; }
.hero-line { animation: hero-rise .9s var(--ease-slow) .62s both; }
.hero-actions { animation: hero-rise .9s var(--ease-slow) .76s both; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}


/* Fotka pod videem drží stejný výřez jako video, aby při náběhu videa
   obraz nepodskočil. Filmový drift (Ken Burns) se pustí jen tehdy, když
   se video nenačítá (reduced-motion, Data Saver, chybějící soubor) —
   třídu v tom případě nasadí main.js. */
.hero-media .hero-poster {
  /* poster je přesně první snímek videa, takže výřez sedí bez dalších úprav */
  transform: none;
}

.hero-media--photo .hero-poster {
  animation: hero-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-drift {
  0%   { transform: scale(1.08) translate(1.2%, 0.6%); }
  100% { transform: scale(1.0)  translate(-0.8%, -0.4%); }
}

.hero-line {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 24;
  font-weight: 470;
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  line-height: 1.4;
  color: rgba(251,248,243,.92);
  margin-bottom: clamp(32px, 5vh, 56px);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px 40px;
  flex-wrap: wrap;
}

/* svislá linka — pobídka ke scrollu */
.hero-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: clamp(40px, 7vh, 72px);
  background: rgba(251,248,243,.45);
  transform-origin: top;
  animation: cue 2.2s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 760px) {
  .hero { min-height: 520px; }
  .hero-cue { display: none; }
  /* na výškovém ořezu posunout výřez doprava — ať je vidět postava,
     ne jen ruce (žena stojí v pravé části záběru) */
  .hero-media img,
  .hero-media video { object-position: 82% 35%; }
}


/* --- Manifest ------------------------------------------------------------ */

.manifest { text-align: center; }

.manifest-line {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 28;
  font-weight: 460;
  font-size: clamp(1.875rem, 4.6vw, 3.875rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.manifest-sig {
  margin-top: clamp(32px, 5vw, 56px);
  font-size: var(--t-small);
  color: var(--muted);
}

.manifest-sig .name { font-family: var(--font-display); font-variation-settings: 'opsz' 20; font-weight: 470; font-style: italic; font-size: 1.375rem; color: var(--ink); }


/* --- Diptych Itálie ------------------------------------------------------ */

.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.5vw, 20px);
  align-items: start;
}

.diptych figure { position: relative; }
.diptych .ph-a { aspect-ratio: 3 / 4; }
.diptych .ph-b { aspect-ratio: 3 / 4; margin-top: clamp(48px, 8vw, 120px); } /* asymetrie */
.diptych img { width: 100%; height: 100%; object-fit: cover; }

.diptych figcaption {
  margin-top: 14px;
  font-size: var(--t-label);
  letter-spacing: .18em; /* jednotné s .label */
  text-transform: uppercase;
  color: var(--muted);
}

.diptych-note {
  max-width: 34ch;
  margin-top: clamp(24px, 4vw, 48px);
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--muted);
}

/* Foto kredit — hned pod trojicí fotek (bez .reveal — jinak zůstane opacity:0) */
.foto-kredit {
  margin-top: 16px;
  margin-bottom: 4px;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(108, 98, 89, .85);
}
.foto-kredit-link {
  color: inherit;
  text-decoration: none;
  transition: color .3s var(--ease);
}
.foto-kredit-link:hover {
  color: #B87333;
}

@media (max-width: 760px) {
  .diptych { grid-template-columns: 1fr; }
  .diptych .ph-b { margin-top: 0; }
}


/* --- Trojice siluet z výběru ---------------------------------------------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.5vw, 20px);
  align-items: start;
}

.trio figure { position: relative; }
.trio figure:nth-child(2) { margin-top: clamp(28px, 5vw, 72px); } /* asymetrie */
.trio .img-reveal { aspect-ratio: 2 / 3; } /* nativní poměr ateliérových záběrů */
.trio img { width: 100%; height: 100%; object-fit: cover; }

.trio figcaption {
  margin-top: 14px;
  font-size: var(--t-label);
  letter-spacing: .18em; /* jednotné s .label */
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 760px) {
  /* na mobilu radši pruh k posunu než tři drobné sloupce pod sebou */
  .trio {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 68vw;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
  }
  .trio figure { scroll-snap-align: start; }
  .trio figure:nth-child(2) { margin-top: 0; }
}


/* --- Celoplošná fotka butiku --------------------------------------------- */

.fullbleed {
  position: relative;
  height: clamp(420px, 82vh, 780px);
  overflow: hidden;
  background: var(--ink);
}

.fullbleed img, .fullbleed video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fullbleed-caption {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  z-index: 2;
  font-size: var(--t-label);
  letter-spacing: .18em; /* jednotné s .label */
  text-transform: uppercase;
  color: var(--paper);
}

.fullbleed::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to top, rgba(23,19,15,.42), transparent);
}


/* --- Pozvánka v akcentu ---------------------------------------------------
   Dřív tudy jel nekonečný běžící pruh s adresou. Zrušen: pohyb, který se
   nikdy nezastaví, si říká o pozornost, kterou zpráva nepotřebuje, a proti
   pravidlu „prémium = zdrženlivost" hraje nejvíc ze všeho na stránce.
   Zůstala stejná plocha, stejná věta — jen stojí.                          */

.pozvanka {
  background: var(--accent);
  color: var(--paper);
  padding: clamp(30px, 5vw, 56px) var(--gutter);
  text-align: center;
}

.pozvanka p {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 24;
  font-weight: 460;
  font-style: italic;
  font-size: clamp(1.375rem, 2.8vw, 2.25rem);
  line-height: 1.25;
  text-wrap: balance;
}

.pozvanka .kdy {
  display: block;
  margin-top: 14px;
  font-family: var(--font-text);
  font-style: normal;
  font-size: var(--t-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(251,248,243,.72);
}


/* --- Pozvání ------------------------------------------------------------- */

.invite-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
  margin-top: var(--space-block);
}

.invite-divider { background: var(--rule); }

.invite-cell .label { margin-bottom: 24px; }

h3.invite-big,
.invite-big {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 26;
  font-weight: 470;
  letter-spacing: -0.01em;
  font-size: clamp(1.75rem, 3.4vw, 2.875rem);
  line-height: 1.15;
  margin-bottom: 18px;
  text-wrap: balance;
}

.invite-cell p { color: var(--muted); max-width: 44ch; }

.invite-cell .btn, .invite-cell .link-caps { margin-top: 28px; }

@media (max-width: 760px) {
  .invite-grid { grid-template-columns: 1fr; }
  .invite-divider { height: 1px; width: 100%; }
}


/* --- Citace -------------------------------------------------------------- */

.quote { text-align: center; }

.quote blockquote {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 26;
  font-weight: 460;
  font-style: italic;
  font-size: clamp(1.625rem, 3.8vw, 3.25rem);
  line-height: 1.28;
  max-width: 24em;
  margin-inline: auto;
  text-wrap: balance;
}

.quote .attribution {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: var(--t-small);
  color: var(--muted);
}

.quote .stars { color: var(--star); letter-spacing: .14em; }

/* Dvě podpůrné recenze pod hlavní citací — víc hlasů = víc důvěry, ale
   drobněji, aby nepřebily velkou pull-quote. Text v Interu, ne v Bodoni:
   delší věty by v display kurzívě přerostly. */
.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  max-width: 960px;
  margin: clamp(56px, 8vw, 104px) auto 0;
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule);
  text-align: left;
}

.testimonials figure { display: flex; flex-direction: column; gap: 18px; }

.testimonials blockquote {
  /* Inter, ne zděděné display Bodoni — to se pod 40px rozpadá a delší
     recenze by se v něm špatně četla. Velká pull-quote nad tím zůstává Bodoni. */
  font-family: var(--font-text);
  font-style: normal;
  font-variation-settings: normal;
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-soft);
}

.testimonials blockquote::before { content: '\201E'; }
.testimonials blockquote::after { content: '\201C'; }

.testimonials figcaption { font-size: var(--t-small); color: var(--muted); }
.testimonials .name { color: var(--ink); }
.testimonials .stars { color: var(--star); letter-spacing: .14em; margin-left: 8px; }

@media (max-width: 760px) {
  .testimonials { grid-template-columns: 1fr; gap: 36px; }
}


/* --- Daniela ------------------------------------------------------------- */

.daniela {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.daniela-photo { aspect-ratio: 3 / 4; overflow: hidden; }
.daniela-photo img { width: 100%; height: 100%; object-fit: cover; }

.daniela .label { margin-bottom: 26px; }
.daniela h2 { margin-bottom: 30px; }

.signature { margin-top: 32px; }
.signature .name { font-family: var(--font-display); font-variation-settings: 'opsz' 20; font-weight: 470; font-style: italic; font-size: 1.5rem; }
.signature .role { font-size: var(--t-small); color: var(--muted); margin-top: 4px; }

@media (max-width: 760px) {
  .daniela { grid-template-columns: 1fr; }
  .daniela-photo { order: -1; }
}


/* --- Finále + patička (inkoust) ------------------------------------------ */

.finale {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--space-section) 0;
}

.finale .label { color: rgba(251,248,243,.6); }

/* fokus na inkoustu: bordó by zanikla, obrys musí být papírový */
.finale :focus-visible { outline-color: var(--paper); }
.finale .label::after { background: rgba(251,248,243,.18); }

.finale-address {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 28;
  font-weight: 460;
  font-size: clamp(2.125rem, 5.8vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 30px 0 14px;
  text-wrap: balance;
}

.finale-hours {
  font-size: var(--t-lead);
  color: rgba(251,248,243,.72);
  margin-bottom: 40px;
}

.finale-actions { display: flex; flex-wrap: wrap; gap: 16px 20px; }

.finale-phone { margin-top: 26px; font-size: var(--t-small); color: rgba(251,248,243,.55); }
.finale-phone a { color: rgba(251,248,243,.8); }

/* Statická mapa — obrázek, ne iframe: žádné cookies, žádný cizí skript.
   Kliknutí otevře navigaci v Google Maps. Atribuce Carto/OSM je povinná. */
.finale-map {
  display: block;
  position: relative;
  margin-top: clamp(40px, 6vw, 64px);
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 1px solid rgba(251,248,243,.14);
  filter: saturate(.92);
  transition: filter .4s var(--ease);
}

.finale-map img { width: 100%; height: 100%; object-fit: cover; }
.finale-map:hover { filter: saturate(1); }

/* jemný inkoustový nádech u okrajů, ať mapa nevystřelí z tmavé sekce */
.finale-map::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(23,19,15,.04),
              inset 0 -40px 60px -40px rgba(23,19,15,.22);
  pointer-events: none;
}

.finale-map-pin {
  position: absolute;
  left: 16px;
  bottom: 12px;
  padding: 6px 12px;
  background: rgba(23,19,15,.72);
  color: var(--paper);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.finale-map-attr {
  margin-top: 8px;
  font-size: .625rem;
  color: rgba(251,248,243,.4);
  text-align: right;
}

.finale-map-attr a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }

.finale-lockup {
  margin-top: var(--space-section);
  padding-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid rgba(251,248,243,.14);
  text-align: center;
}

/* Původní logo je široký blok 3,78:1 — potřebuje víc šířky než dřívější
   vertikální lockup, jinak se wordmark uvnitř slije. */
.finale-lockup img { width: min(380px, 82vw); margin-inline: auto; }

.footer-meta {
  margin-top: clamp(40px, 6vw, 64px);
  padding-block: 26px 34px;
  font-size: .8125rem;
  line-height: 1.5;
  color: rgba(251,248,243,.5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
}

.footer-meta a { color: inherit; }
.footer-meta .link { padding-block: 12px; margin-block: -12px; } /* tap target, zarovnání drží align-items */

/* Kredit NORD — klidný podpis, ne reklama: roman, bez podtržení. */
.footer-meta .kredit {
  flex-basis: 100%;
  margin: 14px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(251,248,243,.1);
  text-align: center;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 .45em;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: rgba(251,248,243,.48);
}

.footer-meta .kredit-label {
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
}

.footer-meta .kredit-jmeno {
  font-family: var(--font-text);
  font-size: .9375rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: .06em;
  line-height: 1.2;
  color: #C98A46;
  text-decoration: none;
  border: none;
  padding: 0;
  transition: color .3s var(--ease);
}

.footer-meta .kredit-jmeno:hover {
  color: #E0A365;
}


/* --- Pomocné ------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[id] { scroll-margin-top: 76px; }


/* --- Ze života butiku (IG-ready galerie) ---------------------------------- */

.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.5vw, 20px);
  margin-top: var(--space-block);
}

.ig-item { display: block; aspect-ratio: 1; overflow: hidden; }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-slow); }
.ig-item:hover img { transform: scale(1.04); }

.gallery-note { margin-top: 24px; font-size: var(--t-small); color: var(--muted); }

@media (max-width: 760px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
}


/* --- „Vstup do butiku" — scrollem se okno otevře přes celou obrazovku ----
   Výchozí stav = statická celoplošná fotka (fallback bez JS / reduced
   motion). Jízdu řídí JS scrub v main.js přes třídu .enter-ready. */

.enter-stage {
  position: relative;
  height: clamp(420px, 82vh, 780px);
  overflow: clip;
  background: var(--ink);
}

.enter-media {
  position: absolute;
  inset: 0;
  overflow: clip; /* scale fotky nesmí rozšiřovat scroll oblast */
}

.enter-media img { width: 100%; height: 100%; object-fit: cover; }

.enter-invite { display: none; }

.enter-stage .fullbleed-caption { position: absolute; }

.enter-ready { height: 240vh; }

.enter-ready .enter-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  background: var(--paper); /* okno pluje na papíru stránky */
}

.enter-ready .enter-media { will-change: clip-path; }
.enter-ready .enter-media img { will-change: transform; }

.enter-ready .enter-invite {
  display: block;
  position: absolute;
  left: 50%;
  top: calc(34% - 1.5em);
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 24;
  font-weight: 460;
  font-style: italic;
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  color: var(--ink);
}

.enter-ready .enter-caption { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .enter, .enter-ready { height: auto; }
  .enter-ready .enter-stage { position: relative; height: clamp(420px, 82vh, 780px); background: var(--ink); }
  .enter-media { clip-path: none !important; }
  .enter-media img { transform: none !important; }
  .enter-invite { display: none !important; }
  .enter-caption { opacity: 1 !important; }
}

/* --- Cookie lišta (GA4 souhlas, CZ/EU opt-in) -----------------------------
   Světlý panel na spodku = čitelnost i přes tmavé finále stránky.
   Obě volby stejně velké a stejně snadné (Souhlasím / Nesouhlasím). */
.cookie-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 200;
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.cookie-bar[hidden] { display: none !important; }
.cookie-bar__panel {
  pointer-events: auto;
  max-width: min(720px, 100%);
  margin-inline: auto;
  padding: 22px 24px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(23, 19, 15, 0.12);
  box-shadow: 0 18px 48px rgba(23, 19, 15, 0.22);
  display: grid;
  gap: 18px;
}
.cookie-bar__title {
  margin: 0 0 6px;
  font-family: var(--font-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.cookie-bar__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.cookie-bar__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.cookie-bar__link:hover { color: var(--accent); }
.cookie-bar__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cookie-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  font-family: var(--font-text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.cookie-bar__btn--reject {
  background: transparent;
  color: var(--ink);
}
.cookie-bar__btn--reject:hover {
  background: var(--ink);
  color: var(--paper);
}
.cookie-bar__btn--accept {
  background: var(--ink);
  color: var(--paper);
}
.cookie-bar__btn--accept:hover {
  background: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 520px) {
  .cookie-bar__panel { padding: 20px 18px; }
  .cookie-bar__actions { grid-template-columns: 1fr; }
  .cookie-bar__btn--accept { order: -1; } /* na mobilu Souhlasím nahoře, Nesouhlasím stejně dostupné */
}

/* Footer / legal: tlačítko vypadá jako odkaz */
button.cookie-settings {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}
