/* Tišina – kosmetický salon (smyšlená ukázka ProWeb Procházka)
   Identita: identita/BRAND.md (barvy, písma, logo).
   Gramatika „Ztišování“: stránka řazená od nejhustší k nejtišší. */

@font-face {
  font-family: "Jost";
  src: url("fonts/Jost-VF.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree-VF.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
  /* identita */
  --mleko: #F7F5F1;  --para: #DCE6E3;  --jil: #E6C3AE;
  --tisina: #1F3A3D; --bridlice: #52676A;
  --radius: 6px;     --linka: rgba(31, 58, 61, .14);

  /* role enginu */
  --sc-canvas: var(--mleko);
  --sc-surface: var(--para);
  --sc-ink: var(--tisina);
  --sc-ink-soft: var(--bridlice);
  --sc-accent: var(--tisina);
  --sc-accent-ink: var(--mleko);
  --sc-font-display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --sc-font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-shadow-color: 186 40% 16%;

  --bar-h: 72px;
  --g: clamp(16px, 4.4vw, 64px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

html { scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  background: var(--mleko);
  color: var(--tisina);
  font-size: 1.0625rem;          /* 17 px */
  line-height: 1.6;
  letter-spacing: 0;
}
p { margin: 0; }
h1, h2, h3 { font-family: var(--sc-font-display); color: var(--tisina); margin: 0; text-wrap: balance; }
h1 { font-weight: 300; font-size: clamp(2.55rem, 1.55rem + 3.1vw, 4.6rem); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-weight: 300; font-size: clamp(2rem, 1.35rem + 1.65vw, 2.9rem); line-height: 1.1; letter-spacing: -0.005em; }
h3 { font-weight: 500; font-size: clamp(1.3rem, 1.12rem + 0.45vw, 1.6rem); line-height: 1.25; }
p, li { text-wrap: pretty; }
.perex { font-size: clamp(1.125rem, 1.06rem + 0.25vw, 1.25rem); line-height: 1.55; }
figure { margin: 0; }
img { height: auto; }
::selection { background: var(--tisina); color: var(--mleko); }
:focus-visible { outline: 2px solid var(--tisina); outline-offset: 3px; border-radius: var(--radius); }

.nowrap { white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--tisina); color: var(--mleko); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--g); }

/* tlačítka a odkazy -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px;
  background: var(--tisina); color: var(--mleko);
  font: 600 1rem/1 var(--sc-font-text);
  text-decoration: none; white-space: nowrap;
  transition: transform 120ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.link {
  color: var(--tisina); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--jil);
  text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #2C4E52; }
  .link:hover { text-decoration-color: var(--tisina); }
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* lišta: ztišuje se spolu se stránkou -------------------------------------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--bar-h); }
.bar::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(247, 245, 241, 0.94);
  border-bottom: 1px solid var(--linka);
  transition: opacity 420ms var(--ease);
}
.bar[data-top="true"]::before { border-bottom-color: transparent; }
.bar__in { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; padding-inline: var(--g); }
.bar__brand { display: flex; align-items: center; gap: 18px; }
.bar__logo { display: block; padding: 6px 0; border-radius: var(--radius); }
.bar__logo img { height: 28px; width: auto; }
.bar__tag {
  display: inline-block; white-space: nowrap;
  background: var(--jil); color: var(--tisina);
  font: 600 0.78rem/1 var(--sc-font-text); letter-spacing: 0.01em;
  padding: 6px 11px 6px; border-radius: 999px;
}
.bar__nav { margin-left: auto; display: flex; gap: 30px; }
.bar__nav a { color: var(--tisina); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 8px 0;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover { text-decoration-color: var(--jil); } }
.bar__cta { min-height: 42px; padding: 0 20px; font-size: 0.94rem; }

.bar__logo, .bar__nav, .bar__cta, .bar__tag {
  transition: opacity 420ms var(--ease), transform 520ms var(--ease), visibility 0s linear 0s;
}
.bar[data-top="true"] .bar__logo { opacity: 0; visibility: hidden; transition-delay: 0s, 0s, 420ms; }
.bar[data-state="calm"] .bar__nav,
.bar[data-state="tag"] .bar__nav,
.bar[data-state="tag"] .bar__logo,
.bar[data-state="tag"] .bar__cta { opacity: 0; visibility: hidden; transform: translateY(-6px); transition-delay: 0s, 0s, 420ms; }
.bar[data-state="tag"]::before { opacity: 0; border-bottom-color: transparent; }
.bar[data-state="tag"] .bar__tag,
.bar[data-top="true"] .bar__tag { transform: translateX(calc(-1 * (var(--logo-w, 142px) + 18px))); }

/* 1 · hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: clip;
  display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
  align-items: center; column-gap: clamp(32px, 4.6vw, 76px);
  padding: calc(var(--bar-h) + clamp(20px, 3.4vh, 40px)) var(--g) clamp(96px, 13vh, 132px) 0;
}
.hero__arc { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; z-index: 0; pointer-events: none; }
.hero__arc path { stroke: var(--jil); stroke-width: 1.6px; }
.hero__visual { position: relative; z-index: 1; }
.hero__photo { aspect-ratio: 3 / 2; border-radius: 0 var(--radius) var(--radius) 0; overflow: hidden; box-shadow: var(--sc-e2); background: var(--para); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__card {
  position: absolute; z-index: 2; right: clamp(-64px, -3.6vw, -24px); bottom: -64px;
  width: min(300px, 44%);
  background: var(--para); border-radius: var(--radius);
  padding: 20px 24px 14px;
  box-shadow: var(--sc-e3);
}
.hero__card-h { font: 500 0.78rem/1.3 var(--sc-font-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--bridlice); }
.hero__card ul { list-style: none; margin: 10px 0 0; padding: 0; }
.hero__card li + li { border-top: 1px solid var(--linka); }
.hero__card a { display: block; padding: 8px 0; color: var(--tisina); text-decoration: none; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) { .hero__card a:hover { text-decoration: underline; text-decoration-color: var(--jil); text-decoration-thickness: 2px; text-underline-offset: .3em; } }
.hero__copy { position: relative; z-index: 1; max-width: 520px; }
.hero__logo { width: clamp(150px, 12.4vw, 196px); height: auto; margin-bottom: clamp(26px, 4.6vh, 48px); }
.hero__copy h1 { margin-bottom: 22px; }
.hero__copy .perex { max-width: 34ch; }
.hero__copy .actions { margin-top: 32px; }

/* 2 · služby --------------------------------------------------------------- */
.sluzby { padding: clamp(48px, 7vh, 88px) 0 clamp(56px, 8vh, 96px); }
.sluzby > .wrap {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: clamp(32px, 5.5vw, 96px); align-items: start;
}
.sluzby__head { position: sticky; top: calc(var(--bar-h) + 36px); padding-top: 22px; }
.sluzby__head p { max-width: 34ch; margin-top: 20px; color: var(--bridlice); }
.menu { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--linka); }
.menu__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.82fr);
  grid-template-areas: "name photo" "text photo";
  grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 3.4vw, 56px); row-gap: 10px;
  padding: 24px 0; border-top: 1px solid var(--linka);
  scroll-margin-top: calc(var(--bar-h) + 12px);
}
.menu__item h3 { grid-area: name; align-self: end; padding-top: 6px; }
.menu__item p { grid-area: text; align-self: start; max-width: 40ch; }
.menu__photo { grid-area: photo; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--para); }
.menu__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  /* statický výřez (bez animace): u depilace drží rozmazanou postavu v pozadí mimo záběr */
  transform: scale(var(--zoom, 1)); transform-origin: var(--pos, 50% 50%); }

/* 3 · jak to probíhá ------------------------------------------------------- */
.postup { padding: clamp(40px, 6vh, 72px) 0 clamp(24px, 4vh, 48px); }
.postup__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 6.5vw, 110px); align-items: center; }
.postup__photo { position: relative; aspect-ratio: 3 / 4; max-height: 82vh; max-height: 82svh; border-radius: var(--radius); overflow: hidden; background: var(--para); }
/* „pootevřené dveře“: panel v barvě stránky se při scrollu odsouvá doprava jen přes transform (tisina.js) */
.postup__dvere { position: absolute; inset: -1px; background: var(--mleko); transform-origin: 100% 50%; will-change: transform; pointer-events: none; }
.postup__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.postup__copy { max-width: 560px; }
.postup__copy .perex { margin-top: 20px; color: var(--tisina); }
.kroky { list-style: none; margin: 34px 0 0; padding: 0; border-bottom: 1px solid var(--linka); }
.kroky li { padding: 18px 0 20px; border-top: 1px solid var(--linka); }
.kroky h3 { font-size: clamp(1.2rem, 1.08rem + 0.35vw, 1.45rem); margin-bottom: 4px; }

/* 4 · ztišení (vrchol) ----------------------------------------------------- */
.ticho__stage {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center; column-gap: clamp(24px, 4vw, 64px);
  padding: calc(var(--bar-h) + 8px) var(--g) 4vh;
  background: var(--mleko);
}
.ticho__copy { display: grid; align-content: center; max-width: 470px; }
.ticho__line {
  grid-area: 1 / 1;
  font: 300 clamp(1.95rem, 1.2rem + 2vw, 3.05rem)/1.14 var(--sc-font-display);
  letter-spacing: -0.005em; text-wrap: balance;
}
.ticho__znak { grid-area: 2 / 1; width: 92px; height: auto; margin-top: 34px; opacity: 0; }
.ticho__cluster { position: relative; height: min(78vh, 760px); height: min(78svh, 760px); }
.ticho__main {
  position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 4 / 5;
  translate: -50% 0;
  border-radius: var(--radius); overflow: hidden; background: var(--para);
  box-shadow: var(--sc-e2);
  transform: scale(0.74); transform-origin: 50% 50%;
  will-change: transform;
}
.ticho__main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.ticho__t { position: absolute; z-index: 2; height: 38%; aspect-ratio: 3 / 4; will-change: opacity, transform; }
.ticho__t img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--sc-e3); }
.ticho__t figcaption { margin-top: 8px; font-size: 0.92rem; color: var(--bridlice); }
.ticho__t--para { left: 1%; top: 5%; }
.ticho__t--para img { object-position: 30% 60%; }
.ticho__t--krem { right: 0; top: 31%; }
.ticho__t--krem img { object-position: 60% 70%; }
.ticho__t--maska { left: 9%; bottom: 0; height: 34%; }
.ticho__t--maska img { object-position: 50% 34%; }
.ticho__t--maska figcaption { position: absolute; left: calc(100% + 12px); bottom: 0; margin: 0; }

/* 5 · konec ---------------------------------------------------------------- */
.kontakt { padding: clamp(80px, 12vh, 140px) 0 0; }
.kontakt__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 6.5vw, 110px); align-items: center; }
.kontakt__photo { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 5; max-height: 66vh; max-height: 66svh; justify-self: end; border-radius: var(--radius); overflow: hidden; background: var(--para); }
.kontakt__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.kontakt__copy { grid-column: 1; grid-row: 1; max-width: 560px; }
.kontakt__znak { width: 84px; height: auto; margin-bottom: 30px; }
.kontakt__copy h2 { margin-bottom: 18px; }
.kontakt__copy > p { max-width: 42ch; }
.kontakt__tel {
  display: inline-block; margin: 30px 0 10px;
  font: 300 clamp(2.15rem, 1.3rem + 2.7vw, 4rem)/1.08 var(--sc-font-display);
  letter-spacing: -0.01em; color: var(--tisina); text-decoration: none; white-space: nowrap;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.16em;
}
@media (hover: hover) and (pointer: fine) { .kontakt__tel:hover { text-decoration-color: var(--jil); } }
.kontakt__more { line-height: 1.8; }
.kontakt__copy .actions { margin-top: 28px; }
.pata { margin-top: clamp(48px, 8vh, 120px); border-top: 1px solid var(--linka); padding: 26px 0 34px; }
.pata__in { display: flex; align-items: center; gap: 28px; }
.pata__in img { height: 24px; width: auto; flex: none; }
.pata p { font-size: 0.875rem; line-height: 1.55; color: var(--bridlice); max-width: 80ch; }
.pata strong { color: var(--tisina); font-weight: 600; }

/* telefon ------------------------------------------------------------------ */
@media (max-width: 860px) {
  :root { --bar-h: 64px; }
  .bar__in { gap: 12px; }
  .bar__brand { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bar__logo { padding: 0; }
  .bar__logo img { height: 22px; }
  .bar__tag { font-size: 0.69rem; padding: 4px 8px; }
  .bar__nav { display: none; }
  .bar__cta { margin-left: auto; min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
  .bar[data-top="true"] .bar__brand { justify-content: center; }
  .bar[data-state="tag"] .bar__tag,
  .bar[data-top="true"] .bar__tag { transform: translateY(-13px); }

  .hero { display: flex; flex-direction: column; align-items: stretch; padding: calc(var(--bar-h) + 22px) 0 56px; min-height: 0; }
  .hero__copy { order: 1; padding-inline: var(--g); max-width: none; }
  .hero__logo { width: 140px; margin-bottom: 22px; }
  .hero__copy h1 { margin-bottom: 14px; }
  .hero__copy .actions { margin-top: 22px; }
  .hero__visual { order: 2; margin: 30px var(--g) 0; }
  .hero__photo { border-radius: var(--radius); }
  .hero__photo img { object-position: 46% 70%; }
  .hero__card { position: relative; right: auto; bottom: auto; width: 78%; margin: -18px 0 0 auto; padding: 16px 18px 10px; }
  .hero__card a { padding: 7px 0; }
  .hero__arc { display: none; }

  .sluzby { padding: 64px 0 64px; }
  .sluzby > .wrap { grid-template-columns: 1fr; }
  .sluzby__head { position: static; padding-top: 0; margin-bottom: 28px; }
  .sluzby__head p { margin-top: 14px; }
  .menu__item {
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    grid-template-areas: "photo name" "text text";
    grid-template-rows: auto auto;
    column-gap: 16px; row-gap: 12px; padding: 20px 0;
  }
  .menu__item h3 { align-self: center; padding-top: 0; }

  .postup { padding: 56px 0 32px; }
  .postup__grid { grid-template-columns: 1fr; row-gap: 32px; }
  .postup__photo { max-height: none; aspect-ratio: 4 / 5; }

  .ticho__stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; row-gap: 14px; padding: calc(var(--bar-h) + 14px) var(--g) 24px; }
  .ticho__copy { min-height: 7.4em; align-content: start; }
  .ticho__line { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2rem); }
  .ticho__znak { width: 64px; margin-top: 14px; }
  .ticho__cluster { height: min(100%, 460px); min-height: 0; align-self: center; }
  .ticho__main { height: auto; width: 100%; max-width: 440px; top: 3%; translate: -50% 0; transform-origin: 50% 0; }
  .ticho__t { height: auto; width: 30%; }
  .ticho__t--para { left: 0; top: 0; }
  .ticho__t--krem { right: 0; top: 54%; }
  .ticho__t--maska { left: 4%; top: 52%; width: 27%; }
  .ticho__t figcaption { font-size: 0.82rem; margin-top: 4px; }

  .kontakt { padding-top: 64px; }
  .kontakt__grid { grid-template-columns: 1fr; row-gap: 36px; }
  .kontakt__photo { grid-column: 1; grid-row: 2; max-height: none; }
  .kontakt__copy { grid-column: 1; grid-row: 1; }
  .pata__in { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 380px) {
  .bar__cta { padding: 0 13px; }
}

/* omezený pohyb: méně a jemněji, ne nic --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .bar__logo, .bar__nav, .bar__cta, .bar__tag, .bar::before { transition-duration: 1ms !important; }
  .bar[data-state] .bar__tag { transform: none !important; }
  /* hlavní fotka zůstává zmenšená (bez pohybu), miniatury ji tak nezakrývají */
  .ticho__t { transform: none !important; }
  .postup__dvere { display: none; }
}

/* atributy style="" z původní stránky (politika CSP webu inline styly nepovoluje), doplnil tools/ukazky.mjs */
[data-st="1"] { --pos: 62% 40% !important; }
[data-st="2"] { --pos: 50% 46% !important; }
[data-st="3"] { --pos: 50% 50% !important; }
[data-st="4"] { --pos: 55% 30% !important; }
[data-st="5"] { --zoom: 1.61 !important; --pos: 79% 84% !important; }

/* ===== doplněno pro web ProWeb Procházka (tools/ukazky.mjs): odkaz z ukázkového webu zpět na celou ukázku ===== */
.ukazka-zpet { grid-column: -2 / -1; flex-basis: 100%; margin: 0; }
.ukazka-zpet a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: inherit; text-decoration: none; }
.ukazka-zpet__t { text-decoration: underline; text-underline-offset: 4px; }
.pata__in .ukazka-zpet { flex: none; }   /* v řádku za textem, na telefonu pod ním */

/* ===== doplněno pro web ProWeb Procházka (tools/ukazky.mjs): „smyšlená firma“ ve štítku ukázky v liště ===== */
.ukazka-smysl { white-space: nowrap; }
/* tady se doplněk do lišty nevejde (měřeno 320–1920 px), zůstane povinný štítek „Ukázka – ProWeb Procházka“ */
@media (max-width: 389px) { .ukazka-smysl { display: none; } }
