/* Terapeutická klinika Libeř — styl webu
   Inspirace: Paracelsus Recovery, THE BALANCE, Privatklinik Wyss (viz ../RESERSE_DESIGN.md) */

:root {
  --paper: #F6F3EC;
  --sand: #ECE6D9;
  --sage: #DDE4DC;
  --ink: #1E2925;
  --text: #4B5853;
  --muted: #7A847F;
  --forest: #2C4A40;
  --forest-2: #243D35;
  --brass: #A0683F;
  --line: #D9D2C3;
  --white: #FBFAF6;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brass); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 300; }
h2 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 300; }
/* velké nadpisy: nižší optická velikost = vyrovnanější tahy (display střih má příliš tenké vlásečnice) */
h1, h2, .fact b { font-variation-settings: 'opsz' 24; }
h3 { font-size: clamp(24px, 2.4vw, 30px); }
h4 { font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 27px); line-height: 1.45; color: var(--ink); font-weight: 300; }
.eyebrow {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--forest);
  margin-bottom: 22px;
}
.eyebrow .no { font-family: var(--serif); font-size: 22px; letter-spacing: 0; color: var(--brass); font-weight: 400; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* --- hlavička --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 236, .92); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.brand i { font-style: normal; font-family: var(--serif); font-size: 20px; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-size: 14px; letter-spacing: .02em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass); }
.nav a.btn, .nav a.btn:hover { color: var(--white); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  background: var(--forest); color: var(--white); text-decoration: none; border: 0; cursor: pointer;
  font: 600 14px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 24px; border-radius: 999px; transition: background .2s;
}
.btn:hover { background: var(--forest-2); color: var(--white); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.btn.light { background: var(--white); color: var(--forest); }
.btn.light:hover { background: var(--sand); color: var(--forest); }
.link-arrow { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

/* --- hero --- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,32,28,.15) 0%, rgba(20,32,28,.25) 40%, rgba(20,32,28,.82) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(48px, 8vw, 96px); width: 100%; }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: #E9E3D6; }
.hero p { max-width: 560px; font-size: 19px; color: #EFEBE2; margin: 26px 0 34px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn.ghost { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.hero .btn.ghost:hover { background: var(--white); color: var(--forest); }
.hero-note { position: absolute; right: var(--gutter); bottom: clamp(48px, 8vw, 96px); z-index: 1; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #E9E3D6; writing-mode: vertical-rl; }

.page-head { padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(42px, 6vw, 80px); max-width: 16ch; }
.page-head .lede { max-width: 760px; margin-top: 28px; }

/* --- sekce --- */
section { padding: clamp(72px, 10vw, 128px) 0; }
section + section { border-top: 1px solid var(--line); }
.sec-sand { background: var(--sand); border-top: 0 !important; }
.sec-sage { background: var(--sage); border-top: 0 !important; }
.sec-forest { background: var(--forest); color: #D7DED9; border-top: 0 !important; }
.sec-forest h2, .sec-forest h3 { color: var(--white); }
.sec-forest .eyebrow { color: #C9D4CD; }
.sec-forest a { color: var(--white); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
.split.rule > :first-child { padding-right: clamp(0px, 3vw, 48px); }
.statement h2 { max-width: 18ch; }
.stack > * + * { margin-top: 20px; }

/* služby */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 56px; }
.service { padding: 36px 32px 40px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.service + .service { padding-left: 32px; border-left: 1px solid var(--line); }
.services .service:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.service h3 { font-size: 27px; }
.service p { margin: 0; font-size: 16px; }
.service .meta > div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.service .meta { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.price { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: .06em; font-weight: 600; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--sage); color: var(--forest); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.soon { background: #F1E4D6; color: var(--brass); }
.pill.now { background: #D9E8DE; color: #2E6B4F; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* detail služby */
.svc-row { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: clamp(24px, 4vw, 56px); padding: 48px 0; border-top: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row h3 { font-size: clamp(28px, 3vw, 38px); }
.svc-row .who { margin-top: 14px; font-size: 14px; color: var(--muted); }
.svc-row ul { margin: 0; padding-left: 1.1em; }
.svc-row li { margin: 0 0 6px; }
.price-box { display: flex; flex-direction: column; gap: 10px; }
.price-box .price { font-size: 30px; }
.price-box small { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* tým */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); margin-top: 56px; }
.person { display: flex; flex-direction: column; gap: 14px; }
.person .ph { aspect-ratio: 4/5; background: var(--sand); overflow: hidden; border-radius: 4px; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; }
.person .ph.anon { display: flex; align-items: center; justify-content: center; }
.person .ph.anon svg { width: 38%; opacity: .45; }
.person .role { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--brass); }
.person h3 { font-size: 28px; }
.person p { font-size: 16px; margin: 0; }
.bio { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 5vw, 80px); padding: 64px 0; border-top: 1px solid var(--line); }
.bio .ph { aspect-ratio: 4/5; border-radius: 4px; overflow: hidden; background: var(--sand); }
.bio .ph img { width: 100%; height: 100%; object-fit: cover; }
.cv { display: grid; grid-template-columns: 11rem 1fr; gap: 14px 24px; margin: 8px 0 28px; font-size: 16px; }
.cv dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--forest); padding-top: 4px; }
.cv dd { margin: 0; }
.cv ul { margin: 0; padding-left: 1.1em; }
.cv li + li { margin-top: 3px; }
@media (max-width: 640px) { .cv { grid-template-columns: 1fr; gap: 4px; } .cv dd { margin-bottom: 12px; } }

/* fotky */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 56px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(251,250,246,.94); color: var(--ink); font-size: 13px; padding: 6px 12px; border-radius: 3px; }
.g-a { grid-column: span 7; aspect-ratio: 7/5; }
.g-b { grid-column: span 5; }
.g-c { grid-column: span 4; aspect-ratio: 4/5; }
.g-d { grid-column: span 4; aspect-ratio: 4/5; }
.g-e { grid-column: span 4; aspect-ratio: 4/5; }
.wide-img { aspect-ratio: 21/9; overflow: hidden; }
.wide-img img { width: 100%; height: 100%; object-fit: cover; }
/* rozostřené okraje: fotka plynule přechází do pozadí stránky */
.gallery img, .wide-img img, .hero2-photo img {
  --feather: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: var(--feather); -webkit-mask-composite: source-in;
  mask-image: var(--feather); mask-composite: intersect;
}

/* čísla */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 48px; }
.fact { padding: 28px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.6vw, 60px); color: var(--ink); line-height: 1; }
.fact span { display: block; margin-top: 10px; font-size: 14px; }
.sec-forest .facts, .sec-forest .fact + .fact { border-color: rgba(255,255,255,.18); }
.sec-forest .fact b { color: var(--white); }

/* časová osa */
.timeline { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 200px 1fr 140px; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline .when { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.timeline h4 { margin-bottom: 6px; }
.timeline p { margin: 0; font-size: 16px; }
.timeline .state { justify-self: end; }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--sans); font-weight: 300; font-size: 28px; color: var(--brass); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 24px; max-width: 760px; }

/* rezervace */
.booking { margin-top: 48px; }
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; cursor: pointer; padding: 18px 22px 16px; font: 500 15px/1.3 var(--sans); color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; text-align: left; }
.tab small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--forest); }
.panel { padding: 36px 0 0; }
.panel[hidden] { display: none; }
.panel-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 28px; }
.panel-head h3 { margin-bottom: 8px; }
.cal-box { min-height: 560px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cal-box .loading { padding: 40px; color: var(--muted); }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink); font-weight: 500; }
.form input, .form select, .form textarea { font: 16px/1.4 var(--sans); padding: 13px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--forest); outline-offset: 1px; border-color: transparent; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--text); }
.form .check input { margin-top: 4px; }
.form .note { font-size: 13px; color: var(--muted); margin: 0; }
.hp { display: none; }

/* kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 16px; }
.contact-list .k { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--forest); padding-top: 4px; }
.map { aspect-ratio: 4/3; border: 0; width: 100%; border-radius: 4px; background: var(--sand); }

.callout { border-left: 2px solid var(--brass); padding: 4px 0 4px 22px; margin: 28px 0; }
.crisis { font-size: 14px; color: var(--muted); }

/* CTA pás */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin: 0 auto 22px; }
.cta-band p { max-width: 560px; margin: 0 auto 34px; }

/* patička */
.site-footer { background: var(--ink); color: #B9C2BD; padding: 72px 0 40px; font-size: 15px; }
.site-footer a { color: #E6EAE7; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.foot-grid h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #8E9A94; font-weight: 600; margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.site-footer .brand { color: var(--white); margin-bottom: 18px; }
.foot-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: #8E9A94; }

/* mobilní lišta */
.mobile-bar { display: none; }

/* Úvod: text vlevo, fotka domu přes polovinu, malé náhledy */
.hero2 { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); border-top: 0; }
.hero2-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero2 h1 { font-size: clamp(40px, 5.2vw, 72px); }
.hero2 .lede { font-size: 19px; max-width: 520px; margin: 22px 0 30px; }
.hero2 .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero2-grid > * { min-width: 0; }
.hero2-thumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; text-decoration: none; color: var(--forest); font-size: 14px; }
.hero2-thumbs img { width: 84px; height: 64px; object-fit: cover; border-radius: 4px; }
.hero2-thumbs span { margin-left: 6px; }
.hero2-photo { margin: 0; }
.hero2-photo img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .hero2-grid { grid-template-columns: minmax(0, 1fr); }
  .hero2-photo { order: -1; }
  .hero2-photo img { width: 100%; }
  .hero2-thumbs img { width: 64px; height: 50px; }
}

@media (max-width: 1000px) {
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--paper); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 18px; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 18px; width: auto; border: 0; font-size: 14px; padding: 15px 24px; }
  .menu-toggle { display: block; }
  .split, .split.even, .contact-grid, .bio { grid-template-columns: 1fr; }
  .services, .team { grid-template-columns: 1fr 1fr; }
  .services .service, .services .service:nth-child(3n+1) { padding: 32px 24px 32px 0; border-left: 0; }
  .services .service:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .svc-row { grid-template-columns: 1fr; gap: 18px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .timeline .state { justify-self: start; }
  .hero-note { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .services, .team { grid-template-columns: 1fr; }
  .services .service, .services .service:nth-child(2n) { padding: 28px 0; border-left: 0; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-a { grid-column: span 2; } .g-b { grid-column: span 2; aspect-ratio: 4/3; }
  .g-c, .g-d, .g-e { grid-column: span 1; }
  .g-e { grid-column: span 2; aspect-ratio: 4/3; }
  .form { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand i { font-size: 18px; }
  .site-header .wrap > .btn { display: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); }
  .mobile-bar a { color: var(--white); text-decoration: none; text-align: center; padding: 18px 8px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  .mobile-bar a + a { background: var(--forest); }
  .tab { padding: 14px 14px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
