/* Kosmetika v souvislostech – editorial styl */

/* ---------- Tokeny ---------- */
:root {
  --bg: #F5EFE8;
  --surface: #FBF8F4;
  --ink: #2B2420;
  --ink-2: #6E625A;
  --accent: #8A4B3A;
  --accent-dark: #6F3A2C;
  --sage: #6B735C;
  --line: #DDD2C6;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* 8px mřížka */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  --s6: 48px; --s7: 56px; --s8: 64px; --s10: 80px; --s12: 96px;
  --s15: 120px; --s18: 144px; --s20: 160px;

  --fs-display: clamp(44px, 3.2rem + 3.2vw, 88px);
  --fs-h2: clamp(30px, 1.5rem + 1.9vw, 48px);
  --fs-h3: clamp(22px, 1.25rem + 0.4vw, 26px);
  --fs-body: clamp(17px, 1rem + 0.1vw, 18px);
  --fs-small: 15px;
  --fs-label: 12px;

  --gutter: var(--s3);
  --pad-x: var(--s3);
  --section: var(--s8);
  --header-h: var(--s10);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) {
  :root { --pad-x: var(--s6); --gutter: var(--s4); --section: var(--s12); }
}
@media (min-width: 1100px) {
  :root { --section: var(--s18); --header-h: var(--s12); }
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s3); }
body {
  margin: 0;
  background-color: var(--bg);
  /* zrnitost papíru */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
p { margin: 0 0 var(--s3); max-width: 62ch; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--surface); }

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 300;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1, .display { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); line-height: 1.12; }
h3 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.25; letter-spacing: 0; }
h1 em, h2 em, h3 em, .display em { font-style: italic; color: var(--accent); }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }

.skip {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  background: var(--ink); color: var(--surface); padding: var(--s1) var(--s2);
}
.skip:focus { top: var(--s2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1344px; margin-inline: auto; padding-inline: var(--pad-x); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s6); }
.grid > * { grid-column: 1 / -1; }

.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section--flush { border-top: 0; }
.section--tight { padding-block: var(--s8); }
.container > .section:first-child { border-top: 0; }

@media (min-width: 900px) {
  .col-text { grid-column: 1 / span 5; }
  .col-media { grid-column: 7 / span 6; }
  .is-flipped .col-text { grid-column: 8 / span 5; grid-row: 1; }
  .is-flipped .col-media { grid-column: 1 / span 6; grid-row: 1; }
  .col-media--offset { margin-top: var(--s12); }
  .align-center { align-items: center; }
  .align-end { align-items: end; }
}

/* ---------- Typografické drobnosti ---------- */
.eyebrow {
  display: flex; align-items: baseline; gap: var(--s2);
  margin: 0 0 var(--s3);
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage);
}
.num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink-2);
  font-variant-numeric: lining-nums;
}
.eyebrow .num::after { content: ""; display: inline-block; width: var(--s4); height: 1px; background: var(--line); vertical-align: middle; margin-left: var(--s2); }
.lead { font-size: clamp(19px, 1.1rem + 0.3vw, 21px); line-height: 1.55; color: var(--ink); max-width: 46ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.label {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sage);
}
.stack > * + * { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-6 { margin-top: var(--s6); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 0 var(--s4);
  background: var(--accent); color: var(--surface);
  border: 1px solid var(--accent); border-radius: var(--radius);
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--surface); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--surface); }
.btn--small { min-height: 40px; padding: 0 var(--s2); font-size: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--accent);
  padding-bottom: 4px; border-bottom: 1px solid currentColor;
}
.link-arrow .arrow { transition: transform .3s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hlavička ---------- */
.site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: var(--header-h); }
.brand {
  font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.brand em { font-style: italic; font-weight: 300; color: var(--accent); }
.brand:hover { color: var(--ink); }
@media (max-width: 479px) {
  .site-header .brand { font-size: 19px; }
  .hero-meta { font-size: 14px; gap: var(--s1); }
  .hero-meta span + span::before { margin-right: var(--s1); }
}

.site-nav { display: flex; align-items: center; gap: var(--s5); }
.site-nav ul { display: flex; gap: var(--s4); }
.site-nav ul a {
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
  padding-block: var(--s1); border-bottom: 1px solid transparent;
}
.site-nav ul a:hover { color: var(--accent); }
.site-nav ul a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.nav-meta { display: none; }
.menu-toggle { display: none; }

@media (max-width: 899px) {
  .header-inner { gap: var(--s2); }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: var(--s1);
    min-height: 44px; padding: 0 0 0 var(--s2);
    background: none; border: 0; color: var(--ink); cursor: pointer;
    font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
    position: relative; z-index: 60;
  }
  .menu-toggle .bars { display: grid; gap: 5px; width: 20px; }
  .menu-toggle .bars i { display: block; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
  .menu-open .menu-toggle .bars i:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-open .menu-toggle .bars i:last-child { transform: translateY(-3px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 0; z-index: 50;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--s5);
    padding: calc(var(--header-h) + var(--s5)) var(--pad-x) var(--s5);
    background: var(--bg);
    visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s .3s;
    overflow-y: auto;
  }
  .menu-open .site-nav { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
  .site-nav ul { flex-direction: column; gap: 0; width: 100%; border-top: 1px solid var(--line); }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav ul a {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: var(--s2) 0; border: 0;
    font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 1.2;
  }
  .site-nav ul a[aria-current="page"] { font-style: italic; }
  .site-nav ul a::after { content: attr(data-n); font: italic 400 16px var(--serif); color: var(--ink-2); }
  .site-nav .btn { width: 100%; min-height: 52px; }
  .nav-meta { display: block; font-size: var(--fs-small); color: var(--ink-2); }
  .menu-open { overflow: hidden; }
  .menu-open .brand { position: relative; z-index: 60; }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--s8) var(--section); }
.hero h1 { margin-bottom: var(--s4); }
.hero .lead { margin-bottom: var(--s5); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2);
  margin-top: var(--s3); font-size: var(--fs-small); color: var(--ink-2);
}
.hero-meta span + span::before { content: "·"; margin-right: var(--s2); color: var(--line); }
.star { color: var(--accent); }
@media (min-width: 900px) {
  .hero { padding-top: var(--s12); }
  .hero .col-text { grid-column: 1 / span 6; align-self: center; }
  .hero .col-media { grid-column: 8 / span 5; }
}

/* ---------- Fotky a placeholdery ---------- */
.ph {
  position: relative; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 0;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph span {
  padding: var(--s1) var(--s2);
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); text-align: center;
}
.r-45 { aspect-ratio: 4 / 5; }
.r-32 { aspect-ratio: 3 / 2; }
.arch { border-radius: 999px 999px var(--radius) var(--radius); }
.caption { margin-top: var(--s2); font-size: 13px; color: var(--ink-2); display: flex; gap: var(--s2); }
.caption .num { font-size: 14px; }

/* ---------- Podpis: 35 let ---------- */
.years { align-items: end; }
.years-num {
  font-family: var(--serif); font-weight: 300; font-style: normal;
  font-variation-settings: "opsz" 144;
  font-size: clamp(176px, 14rem + 10vw, 400px);
  line-height: 0.78; letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--accent) 52%, var(--bg));
  font-variant-numeric: lining-nums tabular-nums;
  margin: 0; display: block;
}
.years-text { padding-bottom: var(--s2); border-top: 1px solid var(--line); padding-top: var(--s3); }

.years-line { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 1.2rem + 1vw, 32px); line-height: 1.3; max-width: 22ch; }
.years-line em { color: var(--accent); }
@media (min-width: 900px) {
  .years-num { grid-column: 1 / span 7; }
  .years-text { grid-column: 8 / span 5; }
}

/* ---------- Rozcestník ---------- */
.paths { row-gap: var(--s8); }
.path-main h3 { font-size: var(--fs-h2); font-weight: 300; line-height: 1.12; margin: var(--s4) 0 var(--s2); }
.path-side { display: grid; align-content: start; }
.path-item { padding-block: var(--s4); border-top: 1px solid var(--line); }
.path-item:last-child { border-bottom: 1px solid var(--line); }
.path-item h3 { margin-bottom: var(--s2); }
.path-item p, .path-main p { color: var(--ink-2); }
.path-item .link-arrow, .path-main .link-arrow { margin-top: var(--s3); }
.price-inline { font-family: var(--serif); font-size: var(--fs-h3); color: var(--ink); white-space: nowrap; }
@media (min-width: 900px) {
  .path-main { grid-column: 1 / span 7; }
  .path-side { grid-column: 9 / span 4; padding-top: var(--s12); }
}

/* ---------- Recenze ---------- */
.reviews-head .score {
  font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 3rem + 3vw, 104px); line-height: 1;
  display: flex; align-items: baseline; gap: var(--s2); margin: var(--s2) 0 var(--s3);
}
.reviews-head .score small { font-family: var(--sans); font-size: var(--fs-small); color: var(--ink-2); letter-spacing: 0.02em; }
.review-list { border-top: 1px solid var(--line); }
.review-slot {
  display: grid; grid-template-columns: var(--s6) 1fr; gap: var(--s2);
  padding-block: var(--s4); border-bottom: 1px solid var(--line);
}
.review-slot .num { font-size: 18px; }
.review-slot p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 20px; color: var(--ink-2); }
@media (min-width: 900px) {
  .reviews-head { grid-column: 1 / span 4; }
  .review-list { grid-column: 6 / span 7; }
}

/* ---------- CTA blok ---------- */
.cta h2 { margin-bottom: var(--s3); }
.phone-big {
  display: inline-block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 2rem + 3vw, 72px); line-height: 1.05; letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink); white-space: nowrap;
  border-bottom: 1px solid var(--line); padding-bottom: var(--s1);
  transition: color .2s, border-color .2s;
}
.phone-big:hover { color: var(--accent); border-color: var(--accent); }
@media (min-width: 900px) {
  .cta .col-text { grid-column: 1 / span 6; }
  .cta .cta-side { grid-column: 8 / span 5; align-self: end; }
}

/* ---------- Hlavička podstránky ---------- */
.page-head { padding-block: var(--s8) var(--s10); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: var(--s4); }
@media (min-width: 900px) {
  .page-head { padding-block: var(--s12) var(--s15); }
  .page-head .col-text { grid-column: 1 / span 8; }
  .page-head .page-aside { grid-column: 10 / span 3; align-self: end; }
}
@media (min-width: 900px) {
  .page-head--split .col-text { grid-column: 1 / span 6; align-self: center; }
  .page-head--split .col-media { grid-column: 8 / span 5; }
}
.toc { border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: flex; gap: var(--s2); align-items: baseline; padding: var(--s1) 0; color: var(--ink); text-decoration: none; font-size: var(--fs-small); }
.toc a:hover { color: var(--accent); }

/* ---------- Ošetření ---------- */
.treat h2 { margin-bottom: var(--s3); }
.facts { margin: var(--s5) 0 0; border-top: 1px solid var(--line); }
.facts div { padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.facts dt { margin-bottom: var(--s1); }
.facts dd { margin: 0; color: var(--ink-2); max-width: 62ch; }

/* ---------- Ceník ---------- */
.price-band { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3); padding-block: var(--s4); border-block: 1px solid var(--line); margin-top: var(--s5); }
.price-band .amount { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 1.6rem + 2.4vw, 64px); line-height: 1.05; white-space: nowrap; }
.steps { counter-reset: step; }
.step { border-top: 1px solid var(--ink); padding-top: var(--s3); }
.step .step-n { font-family: var(--serif); font-weight: 300; font-size: 56px; line-height: 1; color: color-mix(in srgb, var(--accent) 60%, var(--bg)); display: block; margin-bottom: var(--s3); }
.step h3 { margin-bottom: var(--s1); }
.step p { color: var(--ink-2); font-size: var(--fs-small); }
@media (min-width: 640px) { .steps .step { grid-column: span 6; } }
@media (min-width: 1100px) { .steps .step { grid-column: span 3; } }
.included li { display: grid; grid-template-columns: var(--s5) 1fr; padding-block: var(--s2); border-bottom: 1px solid var(--line); }
.included li:first-child { border-top: 1px solid var(--line); }
.ph-note {
  border: 1px dashed var(--line); background: var(--surface); border-radius: var(--radius);
  padding: var(--s6) var(--s4); text-align: center;
}
.ph-note .label { color: var(--ink-2); }

/* ---------- O mně ---------- */
.timeline { border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: var(--s12) 1fr; gap: var(--s3); padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.timeline .year { font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 1.1; color: var(--accent); }
.pull {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(28px, 1.4rem + 1.8vw, 48px); line-height: 1.2; margin: 0; max-width: 24ch;
}
.pull::before { content: "„"; color: var(--accent); }
.pull::after { content: "“"; color: var(--accent); }
@media (min-width: 900px) {
  .pull-wrap { grid-column: 3 / span 9; }
}

/* ---------- Kontakt ---------- */
.contact-list { border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: var(--s4) 1fr; gap: var(--s2); padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.contact-list .icon { color: var(--sage); margin-top: 4px; }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--accent); }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: var(--s2) 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { width: 50%; }
.hours tr:first-child th, .hours tr:first-child td { border-top: 1px solid var(--line); }
.hours .closed { color: var(--ink-2); }
.map { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s1); background: var(--surface); }
.map iframe { width: 100%; aspect-ratio: 4 / 5; border: 0; filter: grayscale(1) contrast(.9) sepia(.12); }
@media (min-width: 900px) {
  .contact-main { grid-column: 1 / span 6; }
  .contact-side { grid-column: 8 / span 5; }
  .map-wrap { grid-column: 1 / span 12; }
  .map iframe { aspect-ratio: 2 / 1; }
  .col-wide { grid-column: 1 / span 8; }
}

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; align-content: center; }
.nf .big { font-family: var(--serif); font-weight: 300; font-size: clamp(120px, 6rem + 10vw, 240px); line-height: .8; color: color-mix(in srgb, var(--accent) 52%, var(--bg)); margin-bottom: var(--s4); }

/* ---------- Patička ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s10) var(--s4); font-size: var(--fs-small); color: var(--ink-2); }
.site-footer .brand { font-size: 26px; display: inline-block; margin-bottom: var(--s2); }
.site-footer h2 { font-family: var(--sans); font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: var(--s2); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer li + li { margin-top: var(--s1); }
.site-footer p { margin-bottom: var(--s1); }
.footer-grid { row-gap: var(--s5); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3);
  margin-top: var(--s8); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 13px;
}
@media (min-width: 640px) {
  .footer-grid > * { grid-column: span 6; }
}
@media (min-width: 1100px) {
  .footer-grid > :nth-child(1) { grid-column: 1 / span 4; }
  .footer-grid > :nth-child(2) { grid-column: 6 / span 2; }
  .footer-grid > :nth-child(3) { grid-column: 8 / span 3; }
  .footer-grid > :nth-child(4) { grid-column: 11 / span 2; }
}

/* ---------- Mobilní lišta ---------- */
.callbar { display: none; }
@media (max-width: 899px) {
  .callbar {
    display: flex; align-items: center; justify-content: center; gap: var(--s2);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    min-height: var(--s7); padding-bottom: env(safe-area-inset-bottom);
    background: var(--accent); color: var(--surface); text-decoration: none;
    font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    border-top: 1px solid var(--accent-dark);
  }
  .callbar:hover { color: var(--surface); background: var(--accent-dark); }
  body { padding-bottom: var(--s7); }
}

/* ---------- Animace ---------- */
.js .reveal { opacity: 0; transform: translateY(var(--s2)); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
