/* Packman – komunitní lyofilizace. Mobile-first, bez frameworku. */

:root {
  --paper: #fdfcfa;       /* skoro bílá */
  --kraft: #f4f1ec;       /* jemný teplý odstín pro odlišení sekcí */
  --kraft-dark: #ddd6cb;  /* linky a rámečky */
  --wood: #7a5a3c;
  --ink: #1f1b17;
  --ink-soft: #1f1b17;  /* veškerý text černý kvůli čitelnosti */
  --accent: #d92b35;      /* sytá červená jako lyofilizátor Amaru */
  --accent-dark: #b01f28;
  --radius: 14px;
  --gap: clamp(1rem, 3vw, 2rem);
  --font-head: "Outfit", system-ui, sans-serif;   /* stejné písmo jako Meditovna */
  --font-body: "Outfit", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--accent-dark); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 620px; }

/* Tlačítka */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font: 600 1.05rem/1 var(--font-body);
  text-decoration: none;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--wood); outline-offset: 3px;
}
.btn--small { padding: .65rem 1rem; font-size: .9rem; }
.btn--light { width: 100%; }

/* Horní lišta */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--kraft);
}
.topbar__in { display: flex; align-items: center; justify-content: flex-end; height: 64px; }

/* Úvod */
.hero { padding: 2rem 0 3rem; }
.hero__head h1 { margin: 0; }
.hero__sub { font: 600 clamp(1.2rem, 4.2vw, 1.55rem)/1.3 var(--font-head); color: var(--ink); margin: .4rem 0 0; }
/* Pruh fotek v úvodu (vodorovně posuvný, jako u Meditovny) */
.strip { margin: 1.5rem 0; }
.strip__scroll {
  display: flex;
  overflow-x: auto; overflow-y: hidden;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: ew-resize;
}
.strip__scroll::-webkit-scrollbar { display: none; }
.strip__scroll img {
  height: clamp(240px, 62vw, 440px); width: auto; max-width: none;
  flex: 0 0 auto; display: block;
  user-select: none; -webkit-user-drag: none;
}
.kicker {
  font-family: var(--font-head); font-weight: 600;
  color: var(--ink); font-size: 1.05rem;
}
.kicker { display: flex; align-items: center; gap: .55rem; margin-bottom: .75rem; }
.kicker__logo { width: 76px; height: auto; flex: none; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.hero .btn { margin-top: .5rem; }
.hero__note { margin: 1rem 0 0; }

/* Úvod přes celou obrazovku: fotka, logo vlevo nahoře, velký nadpis vlevo dole (jako u Meditovny) */
/* Horní lišta: zůstává na místě vpravo nahoře, hamburger a pod ním tlačítko čekací listiny */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: transparent; border: 0; backdrop-filter: none; pointer-events: none; }
/* Hlavička je průhledná. Hamburger dostane po sjetí z fotky bílý čtverec, aby byl čitelný nad textem. */
.menu-btn {
  position: absolute; top: 14px; right: 12px; z-index: 3; pointer-events: auto;
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: #fff;
}
/* Tlačítko čekací listiny: zůstane, jak je, a od určitého místa jede s návštěvníkem dolů */
.hero .dock-slot { margin-top: .5rem; height: calc(1.05rem + 2rem); }
.hero .dock-slot .btn { margin-top: 0; transition: background .15s, transform .15s, opacity .2s; }
.btn.is-docked {
  position: fixed; top: 12px; z-index: 31;
  left: max(16px, calc((100vw - 1080px) / 2 + 16px));
}
.btn.is-docked.is-away { opacity: 0; pointer-events: none; }
body.menu-open .btn.is-docked { visibility: hidden; }
.menu-btn { transition: background .2s; border-radius: 12px; }
.topbar.is-light .menu-btn, .topbar.is-open .menu-btn { color: var(--ink); background: var(--paper); }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 26px; height: 2.5px; background: currentColor; border-radius: 2px;
  transition: transform .2s, background .2s;
}
.menu-btn__bars { position: relative; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -8px; }
.menu-btn__bars::after { top: 8px; }
.topbar.is-light .menu-btn__bars, .topbar.is-open .menu-btn__bars { filter: none; }
.topbar.is-open .menu-btn__bars { background: transparent; }
.topbar.is-open .menu-btn__bars::before { transform: translateY(8px) rotate(45deg); }
.topbar.is-open .menu-btn__bars::after { transform: translateY(-8px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 1; pointer-events: auto;
  background: var(--paper); padding: 6rem 16px 2rem; overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; }
.menu li { border-bottom: 1px solid var(--kraft-dark); }
.menu a { display: block; padding: 1rem 5.5rem 1rem 0; color: var(--ink); text-decoration: none; font: 600 1.35rem/1.2 var(--font-head); }
.menu a:hover { color: var(--accent); }
body.menu-open { overflow: hidden; }
section[id] { scroll-margin-top: 16px; }
.cover { position: relative; height: 100svh; min-height: 520px; overflow: hidden; color: #fff; }
.cover__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.cover__shade { position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 45%, rgba(0,0,0,.65) 100%); }
.cover__top { position: absolute; top: 14px; left: 16px; right: 80px; }
.cover__top .kicker { color: #fff; margin: 0; }
.cover__top .kicker__logo { width: 52px; }
.cover__title { position: absolute; left: 16px; right: 16px; bottom: clamp(28px, 7vh, 64px); }
.cover__title h1 { color: #fff; font-size: clamp(2.6rem, 11vw, 5.5rem); line-height: 1.02; margin: 0; letter-spacing: -.02em; }
.cover__title .hero__sub { color: #fff; font-weight: 500; margin-top: .6rem; }
.hero--after { padding-top: 2.5rem; }
@media (min-width: 900px) {
  .cover__top { left: max(16px, calc((100vw - 1080px) / 2 + 16px)); top: 18px; }
  .cover__title { left: max(16px, calc((100vw - 1080px) / 2 + 16px)); }
}

/* Sekce */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--kraft { background: var(--kraft); }
.section--dark { background: var(--kraft); }

.split { display: grid; gap: var(--gap); align-items: start; }

/* Kroky */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.4rem 3.4rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.15rem;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  font: 700 1.1rem/1 var(--font-head);
  background: var(--ink); color: var(--paper);
  border-radius: 50%;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.17rem; top: 2.5rem; bottom: .3rem;
  border-left: 2px dashed var(--kraft-dark);
}
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--ink-soft); }

.photo { margin: 0; }
.photo img { width: 100%; }
.photo figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; font-style: italic; }

/* Uklidnění */
.calm {
  margin-top: clamp(2rem, 6vw, 3.5rem);
  background: #fff;
  border: 2px dashed var(--kraft-dark);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2.25rem);
}
.calm h3 { font-size: clamp(1.35rem, 4vw, 1.7rem); }
.calm p { color: var(--ink-soft); }
.calm__promise {
  font: 700 1.3rem/1.3 var(--font-head);
  color: var(--ink) !important;
  margin: 1.25rem 0 0;
}

/* Časté otázky */
.faq details { border-bottom: 1px solid var(--kraft-dark); }
.faq details:first-child { border-top: 1px solid var(--kraft-dark); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1rem 2.5rem 1rem 0; font: 600 1.15rem/1.3 var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font: 500 1.6rem/1 var(--font-head); color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.1rem; padding-right: 1rem; }

/* Otázka na závěr FAQ: světlé tlačítko, aby nesoupeřilo s červeným tlačítkem čekací listiny */
.ask { margin-top: clamp(2rem, 6vw, 3rem); }
.ask h3 { font-size: clamp(1.35rem, 4vw, 1.7rem); }
.btn--soft { background: var(--kraft); color: var(--ink); width: 100%; }
.btn--soft:hover { background: var(--kraft-dark); }

/* Co se dá */
.can { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding-left: 1.7rem; position: relative; margin-bottom: .35rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--wood); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.gallery figure { margin: 0; position: relative; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: .5rem; bottom: .5rem;
  background: var(--paper); color: var(--ink);
  font-size: .8rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px;
}

/* Ceny */
.prices { display: grid; gap: 1rem; margin-bottom: 1rem; }
.price {
  background: #fff;
  border: 1px solid var(--kraft-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.price p { margin: 0; }
.price__label { font-weight: 600; color: var(--ink-soft); }
.price__value { font: 700 2rem/1.2 var(--font-head); margin: .3rem 0 !important; }
.price__note { font-size: .95rem; color: var(--ink-soft); }
.small { font-size: .9rem; color: var(--ink-soft); }
.costs { margin-top: 2.5rem; max-width: 40em; }
.costs p { color: var(--ink-soft); }
.costs .ticks { margin-bottom: 1rem; }

/* Příběh */
.story { display: grid; gap: var(--gap); }
.story__text { max-width: 38em; }
.story__art { max-width: 340px; margin: 1.5rem auto 0; }
.story__art img { width: 100%; height: auto; }
.signoff {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 3rem;
}
.motto {
  font: 700 clamp(1.5rem, 5vw, 2.4rem)/1.2 var(--font-head);
  margin: 0;
}
.motto::before, .motto::after { content: "„"; }
.motto::after { content: "“"; }

/* Zástupné údaje: musí být vidět, dokud je někdo nevyplní */
.placeholder {
  display: inline-block;
  background: #fff3a8; color: #5a4a00;
  border: 1px dashed #b39b00; border-radius: 6px;
  padding: .1rem .45rem; font-size: .95rem;
}

/* Formulář */
.form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; }
.form em { font-weight: 400; font-style: normal; color: var(--ink-soft); }
.form input, .form textarea {
  font: inherit; color: var(--ink);
  background: #fff;
  border: 2px solid var(--kraft-dark); border-radius: 10px;
  padding: .8rem .9rem; width: 100%;
}
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form textarea { resize: vertical; }
.form__status { margin: 0; font-weight: 600; font-size: 1.1rem; }
.form__status--error { color: var(--accent-dark); }
.form [hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Patička */
.footer { border-top: 1px solid var(--kraft-dark); padding: 2.5rem 0; font-size: .95rem; }
.footer__in { display: grid; gap: 1rem; justify-items: start; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }

/* Tablet a desktop */
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .prices { grid-template-columns: repeat(3, 1fr); }
  .can { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero { padding: 4rem 0 5rem; }
  .strip { margin: 2.5rem 0; }
  .split { grid-template-columns: 1fr 440px; gap: 3.5rem; }
  .split--reverse { align-items: center; }
  .story { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .story__art { max-width: 400px; margin: 0; align-self: center; }
  .footer__in { grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Loga vedou na Facebook */
.fb-logo { display: inline-flex; flex: none; border-radius: 50%; transition: transform .15s; }
.fb-logo:hover { transform: rotate(-6deg) scale(1.05); }
@media (prefers-reduced-motion: reduce) { .fb-logo { transition: none; } .fb-logo:hover { transform: none; } }

/* Mobil: kompaktní cenové kartičky (popis vlevo, částka vpravo) */
@media (max-width: 699px) {
  .price {
    display: grid; grid-template-columns: 1fr auto; column-gap: 1rem;
    grid-template-areas: "label value" "note value";
    align-items: center; padding: 1rem 1.15rem;
  }
  .price__label { grid-area: label; }
  .price__note { grid-area: note; font-size: .88rem; }
  .price__value { grid-area: value; font-size: 1.5rem; margin: 0 !important; white-space: nowrap; }
  .prices { gap: .65rem; }
}
