/* Max Medico · "Meridian"
   Porcelanasto ozadje, žadasta pisava, en medeninast poudarek.
   Naslovi: Old Standard TT (znanstveni tisk), besedilo: Atkinson Hyperlegible (čitljivost). */

:root {
  --bg: #F2F4F1;
  --surface: #FAFBF9;
  --raised: #FFFFFF;
  --ink: #18211F;
  --muted: #56635F;
  --line: #D5DDD8;
  --accent: #0E3A35;
  --accent-hover: #17524A;
  --on-accent: #F2F4F1;
  --accent-soft: #DCE8E1;
  --band: #0E3A35;
  --on-band: #F2F4F1;
  --on-band-muted: #B6CBC2;
  --band-line: #2B5751;
  --brass: #A8834A;
  --brass-ink: #8A6630;
  --fig: #CCDDD3;
  --ok: #2F9E6E;
  --error: #A23B2C;

  --display: 'Old Standard TT', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Atkinson Hyperlegible Mono', ui-monospace, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Stran je vedno svetla, ne glede na nastavitev naprave */
:root { color-scheme: only light; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 6vw, 74px); line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3, .h3 { font-size: 25px; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius); z-index: 100; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.lead { font-size: clamp(19px, 1.6vw, 21px); color: var(--muted); max-width: 60ch; }
.eyebrow, .mono-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brass-ink);
  font-weight: 500;
}
.mono-label { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.eyebrow.on-band { color: var(--brass); }
.on-band-muted { color: var(--on-band-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent); border-radius: 40px;
  font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.btn-light { background: var(--on-band); color: var(--band); border-color: var(--on-band); }
.btn-light:hover { background: transparent; color: var(--on-band); border-color: var(--on-band); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn svg, .link-arrow svg { transition: none; } }

/* Status */
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; white-space: nowrap; color: var(--muted); }
.status .led { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.status.open { color: var(--ink); }
.status.open .led { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.band .status, .status-band { color: var(--on-band-muted); }
.band .status.open { color: var(--on-band); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); }
.logo-mark svg { width: 16px; height: 30px; color: var(--accent); }
.logo-word { font-family: var(--display); font-size: 26px; letter-spacing: -.01em; line-height: 1; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 16px; padding-block: 6px; position: relative; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); }
.menu-btn > span:first-child, .menu-btn > span:first-child::before { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s; }
.menu-btn > span:first-child::before { content: ''; position: absolute; top: 6px; left: 0; }
.menu-btn > span:first-child { transform: translateY(-3px); }
.menu-btn[aria-expanded="true"] > span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] > span:first-child::before { transform: translateY(-6px) rotate(-90deg); }
.only-mobile { display: none; }
.mobile-menu { background: var(--band); color: var(--on-band); padding: 24px var(--gutter) 32px; border-top: 1px solid var(--band-line); max-height: calc(100vh - 76px); overflow-y: auto; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-family: var(--display); font-size: 32px; color: var(--on-band); text-decoration: none; padding-block: 10px; border-bottom: 1px solid var(--band-line); }
.mobile-menu-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; font-family: var(--mono); }
.mobile-menu-foot a { color: var(--on-band); font-size: 22px; text-decoration: none; }
.mobile-menu-foot span { color: var(--on-band-muted); font-size: 14px; }

@media (max-width: 1080px) {
  .main-nav, .status-header { display: none; }
  .header-actions { margin-left: auto; }
  .only-mobile { display: inline-grid; }
}
@media (max-width: 520px) {
  .header-actions .btn-sm { display: none; }
  .logo-word { font-size: 23px; }
}

/* Meridian rail: scroll progress on wide screens */
.meridian-rail { position: fixed; left: 22px; top: 110px; bottom: 40px; width: 1px; background: var(--line); z-index: 40; display: none; }
.meridian-rail .fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--brass); transform-origin: top; transform: scaleY(0); }
.rail-dot { position: absolute; left: -5px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); padding: 0; cursor: pointer; transform: translateY(-50%); transition: background .25s, border-color .25s; }
.rail-dot.passed { background: var(--brass); border-color: var(--brass); }
.rail-dot span { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg); padding: 2px 6px; border-radius: 3px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.rail-dot:hover span, .rail-dot:focus-visible span { opacity: 1; }
@media (min-width: 1400px) { .js .meridian-rail { display: block; } }

/* Hero */
.hero { padding-block: clamp(32px, 5vw, 64px) var(--section); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(36px, 5.2vw, 68px); max-width: 15ch; }
.hero h1 em { display: block; font-style: italic; color: var(--accent); margin-top: .12em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hitri izbor predela: obiskovalec takoj vidi odgovor zase */
.hero-picker { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); }
.hero-picker-q { font-family: var(--display); font-size: 23px; line-height: 1.2; }
.hero-picker .chip { min-height: 42px; }
.chip-quiet { border-style: dashed; color: var(--muted); }
.hero-answer { font-size: 16px; color: var(--muted); min-height: 1.65em; }
.hero-answer strong { color: var(--ink); font-weight: 600; }
.hero-answer a { white-space: nowrap; }
.hero-answer .sep { color: var(--brass); margin-inline: 6px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-phone span { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; }
.btn-phone svg { width: 18px; height: 18px; }
.btn-phone:hover svg { transform: none; }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14.5px; color: var(--muted); margin-top: -8px; }
.hero-doc { display: flex; align-items: center; gap: 12px; }
.hero-doc img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; filter: saturate(.8); border: 2px solid var(--raised); box-shadow: 0 0 0 1px var(--line); }
.hero-doc > span { display: flex; flex-direction: column; line-height: 1.3; font-size: 15px; }
.hero-doc > span span { color: var(--muted); font-size: 14px; }
.only-narrow { display: none; }
.hero-card { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; background: color-mix(in srgb, #F2F4F1 94%, transparent); color: #18211F; border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-card .mono-label { color: #56635F; }
.hero-card strong { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.2; }
.hero-card > span:not(.mono-label) { font-size: 14.5px; color: #3D4845; }
.hero-card .hero-card-stat { margin-top: 6px; padding-top: 8px; border-top: 1px solid #D5DDD8; }
.hero-card b { font-family: var(--mono); font-weight: 500; color: #0E3A35; }
.hero-media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--accent-soft); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.85) contrast(1.02); }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, #0E3A35 70%, transparent)); pointer-events: none; }
.hero-line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-line path { fill: none; stroke: var(--brass); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 900; stroke-dashoffset: 0; }
.hero-line circle { fill: #F2F4F1; stroke: var(--brass); stroke-width: 2; vector-effect: non-scaling-stroke; }
.js .hero-line path { animation: draw 1.4s .3s var(--ease) both; }
.js .hero-line circle { animation: pop .4s var(--ease) both; }
.js .hero-line circle:nth-of-type(1) { animation-delay: .7s; }
.js .hero-line circle:nth-of-type(2) { animation-delay: 1s; }
.js .hero-line circle:nth-of-type(3) { animation-delay: 1.3s; }
@keyframes draw { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.3); transform-origin: center; transform-box: fill-box; } to { opacity: 1; transform: scale(1); transform-box: fill-box; transform-origin: center; } }
@media (prefers-reduced-motion: reduce) { .js .hero-line path, .js .hero-line circle { animation: none; } }
@media (max-width: 860px) {
  .hero { padding-top: 20px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .only-narrow { display: flex; }
  .hero-copy { gap: 20px; }
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-media img { object-position: 50% 35%; }
  .hero-card, .hero-line, .hero-copy > .eyebrow { display: none; }
}
@media (max-width: 520px) {
  .hero-picker { padding: 16px; margin-inline: -4px; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* Proof */
.proof { border-block: 1px solid var(--line); background: var(--surface); }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-grid > div { padding: 30px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); }
.proof-grid > div:first-child { border-left: 0; padding-left: 0; }
.proof strong { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 4vw, 54px); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums lining-nums; }
.proof span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid > div { padding: 22px 16px; }
  .proof-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(40px, 5vw, 64px) var(--section); }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.section-head.split { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-head.split > p { max-width: 46ch; }
@media (max-width: 760px) { .section-head.split { flex-direction: column; align-items: flex-start; } }

/* Body figure */
.figure .meridian { stroke: var(--line); stroke-width: 1; fill: none; stroke-dasharray: 3 4; }
.figure .fig { fill: var(--fig); }
.figure .limb { stroke: var(--fig); stroke-width: 17; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.figure .pt { cursor: pointer; outline: none; }
.figure .pt .core { fill: var(--raised); stroke: var(--brass); stroke-width: 2; }
.figure .pt .halo { fill: var(--brass); opacity: 0; transition: opacity .2s; transform-box: fill-box; transform-origin: center; }
.figure .pt:hover .halo, .figure .pt:focus-visible .halo { opacity: .25; }
.figure .pt:focus-visible .core { stroke-width: 3; }
.figure .pt.on .core { fill: var(--brass); }
.figure .pt.on .halo { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { opacity: .45; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .figure .pt.on .halo { animation: none; opacity: .3; } }

/* Body map */
.bodymap { display: grid; grid-template-columns: minmax(220px, 4fr) minmax(0, 7fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); overflow: hidden; }
.bodymap-figure { background: var(--surface); border-right: 1px solid var(--line); padding: 32px 20px; display: grid; place-items: center; }
.bodymap-figure .figure { width: 100%; max-width: 230px; }
.bodymap-panel { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.bodymap-result { display: flex; flex-direction: column; gap: 14px; }
.bodymap-result h3 { font-size: clamp(30px, 3vw, 40px); }
.therapy-mini { list-style: none; border-top: 1px solid var(--line); }
.therapy-mini a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.therapy-mini a span:first-child { font-family: var(--display); font-size: 21px; }
.therapy-mini a:hover span:first-child { color: var(--accent); }
.bodymap-result .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 760px) {
  .bodymap { grid-template-columns: minmax(0, 1fr); }
  .bodymap-figure { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; }
  .bodymap-figure .figure { max-width: 150px; }
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 15px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 40px; padding: 8px 15px; min-height: 40px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.radio-chips .chip { position: relative; }
.radio-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-chips .chip:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.radio-chips .chip:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 3px; }

/* Therapy families (tabs) */
.tablist { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 40px; overflow-x: auto; }
.tablist [role="tab"] { flex: none; display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px 16px 0; margin-right: 28px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font: 500 18px var(--body); color: var(--muted); cursor: pointer; }
.tablist [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brass); }
.tab-icon svg { width: 28px; height: 28px; color: var(--accent); }
.js .tabpanel[data-inactive] { display: none; }
.tabpanel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); }
.tabpanel + .tabpanel { margin-top: 56px; }
.js .tabpanel + .tabpanel { margin-top: 0; }
.family-intro { display: flex; flex-direction: column; gap: 14px; }
.family-icon svg { width: 96px; height: 96px; color: var(--accent); }
.therapy-rows { list-style: none; border-top: 1px solid var(--line); }
.therapy-rows a { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 24px; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: padding .3s var(--ease); }
.therapy-rows a::before { content: ''; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: var(--brass); transition: width .3s var(--ease); }
.therapy-rows a:hover { padding-left: 32px; }
.therapy-rows a:hover::before { width: 20px; }
.tr-name { font-family: var(--display); font-size: 24px; line-height: 1.2; }
.tr-short { color: var(--muted); font-size: 16px; }
.tr-arrow svg { width: 20px; height: 20px; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .therapy-rows a, .therapy-rows a::before { transition: none; } }
.badge { display: inline-block; vertical-align: middle; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brass-ink); border: 1px solid currentColor; border-radius: 40px; padding: 3px 9px; margin-left: 6px; }
@media (max-width: 860px) {
  .tabpanel { grid-template-columns: minmax(0, 1fr); }
  .family-icon svg { width: 64px; height: 64px; }
  .therapy-rows a { grid-template-columns: minmax(0, 1fr) 24px; gap: 4px 12px; }
  .tr-short { grid-column: 1; grid-row: 2; }
  .tr-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* Bands */
.band { background: var(--band); color: var(--on-band); padding-block: var(--section); }
.band h2 { color: var(--on-band); }
.shock-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.shock-grid > div:first-child { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.shock-data { display: flex; flex-direction: column; gap: 22px; }
.shock-detail .wrap { display: flex; flex-direction: column; gap: 24px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); }
.band .facts { border-color: var(--band-line); }
.facts > div { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--line); }
.band .facts > div { border-color: var(--band-line); }
.facts > div:last-child { border-right: 0; }
.band .mono-label { color: var(--on-band-muted); }
.facts strong { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.facts small { font-family: var(--mono); font-size: 13px; margin-left: 4px; color: var(--muted); }
.band .facts small { color: var(--on-band-muted); }
.shock-data .facts > div { padding: 16px 14px 18px; }
.shock-data .facts strong { font-size: clamp(26px, 2.4vw, 32px); }
.shock-data .facts small { display: block; margin: 8px 0 0; }
.therapy-photo { margin: 12px 0 0; border-radius: var(--radius); overflow: hidden; }
.therapy-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 75%; }
.therapy-photo figcaption { font-size: 14px; color: var(--muted); padding-top: 10px; }
.course { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.course li { border-top: 3px solid var(--accent); padding-top: 10px; font-size: 15px; display: flex; flex-direction: column; gap: 2px; }
.band .course li { border-top-color: var(--on-band); }
.course li.opt { border-top-style: dashed; border-top-color: var(--brass); }
@media (max-width: 960px) { .shock-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .facts > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .band .facts > div { border-color: var(--band-line); }
  .course { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
}

/* Doctor */
.doctor-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.doctor-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--accent-soft); }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; }
.doctor-copy { display: flex; flex-direction: column; gap: 18px; max-width: 60ch; }
.role { font-family: var(--display); font-style: italic; font-size: 21px; color: var(--accent); }
.mini-timeline { list-style: none; border-left: 1px solid var(--line); margin-block: 6px; }
.mini-timeline li { position: relative; padding: 6px 0 6px 24px; display: flex; gap: 14px; }
.mini-timeline li::before { content: ''; position: absolute; left: -5px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); transform: translateY(-50%); }
.mini-timeline span { font-family: var(--mono); font-weight: 500; color: var(--muted); min-width: 3.2em; }
@media (max-width: 860px) {
  .doctor-grid { grid-template-columns: minmax(0, 1fr); }
  .doctor-photo { aspect-ratio: 4 / 3; max-height: 460px; }
  .doctor-photo img { object-position: 50% 25%; }
}

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 21px; height: 1px; background: var(--brass); }
.steps li { position: relative; display: flex; flex-direction: column; gap: 10px; }
.step-n { width: 43px; height: 43px; border-radius: 50%; border: 1px solid var(--brass); background: var(--bg); display: grid; place-items: center; font: 500 16px var(--mono); color: var(--brass-ink); margin-bottom: 8px; }
.steps h3 { font-size: 22px; }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before { left: 21px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps li { padding-left: 68px; padding-bottom: 28px; }
  .step-n { position: absolute; left: 0; top: -6px; }
}

/* Exercise cards */
.ex-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ex-grid-lg { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 40px; }
.ex-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); color: var(--ink); text-decoration: none; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.ex-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.ex-figure { display: grid; place-items: center; background: var(--surface); border-radius: 4px; padding: 16px 0; margin-bottom: 6px; }
.ex-figure .figure { height: 150px; width: auto; }
.ex-title { font-family: var(--display); font-size: 22px; line-height: 1.2; }
@media (max-width: 860px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) {
  .ex-grid { grid-template-columns: minmax(0, 1fr); }
  .ex-card { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ex-figure { padding: 10px 14px; margin: 0; }
  .ex-figure .figure { height: 90px; }
  .ex-card .ex-title { flex: 1; min-width: 0; }
  .ex-grid-lg .ex-card > :not(.ex-figure):not(.ex-title) { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ex-card, .tcard { transition: none; } .ex-card:hover, .tcard:hover { transform: none; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-family: var(--display); font-size: 23px; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.plus { flex: none; position: relative; width: 16px; height: 16px; }
.plus::before, .plus::after { content: ''; position: absolute; left: 0; top: 50%; width: 16px; height: 1.5px; background: var(--brass); transition: transform .25s; }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0); }
.faq p { padding-bottom: 24px; color: var(--muted); max-width: 62ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* Contact band */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); }
.contact-grid h2 { margin-block: 14px 32px; max-width: 18ch; }
.phones { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.phones a { display: flex; flex-direction: column; gap: 4px; color: var(--on-band); text-decoration: none; }
.phones .num { font-family: var(--mono); font-size: clamp(28px, 3vw, 38px); font-weight: 500; letter-spacing: -.01em; }
.phones a:hover .num { color: var(--brass); }
.contact-list { margin: 0; display: flex; flex-direction: column; }
.contact-list > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--band-line); }
.contact-list > div:first-child { border-top: 1px solid var(--band-line); }
.contact-list dt { font: 500 12px/2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-band-muted); }
.contact-list dd { margin: 0; }
.contact-list a:not(.btn) { color: var(--on-band); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Footer */
.site-footer { background: var(--band); color: var(--on-band-muted); border-top: 1px solid var(--band-line); padding-block: 56px 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.site-footer .logo, .site-footer .logo-mark svg { color: var(--on-band); }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }
.site-footer nav a { color: var(--on-band); text-decoration: none; }
.site-footer nav a:hover { color: var(--brass); }
.footer-legal { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--band-line); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* Mobile call bar */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 8px; padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: var(--raised); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgb(0 0 0 / .08); transform: translateY(110%); transition: transform .3s var(--ease); }
.call-bar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 40px; border: 1px solid var(--accent); color: var(--accent); font-weight: 600; text-decoration: none; }
.call-bar a svg { width: 18px; height: 18px; }
.call-bar a.primary { background: var(--accent); color: var(--on-accent); }
.call-bar.show { transform: none; }
@media (max-width: 760px) { .js .call-bar { display: flex; } body { padding-bottom: 0; } }

/* Inner pages */
.page-hero { padding-block: clamp(36px, 5vw, 72px) clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); max-width: 20ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs > *:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--line); }
.therapy-hero-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.therapy-hero-grid > div { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.therapy-icon svg { width: clamp(90px, 12vw, 160px); height: auto; color: var(--accent); opacity: .9; }
.badge:only-child, .therapy-hero .badge { margin-left: 0; }
@media (max-width: 640px) { .therapy-icon { display: none; } .therapy-hero-grid { grid-template-columns: minmax(0, 1fr); } }

.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 66ch; }
.prose .h3 { margin-top: 18px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.check-list, .dash-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.check-list li, .dash-list li { position: relative; padding-left: 22px; }
.check-list li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.dash-list li::before { content: ''; position: absolute; left: 0; top: .82em; width: 10px; height: 1.5px; background: var(--error); }
.two-col .mono-label { margin-top: 18px; margin-bottom: 8px; }
.two-col > div > .h3 + .mono-label { margin-top: 18px; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--error); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--raised); }
.notice-soft { border-left-color: var(--brass); margin-top: 16px; }
.disclaimer { color: var(--muted); font-size: 15px; padding-bottom: 48px; }

.filter { margin-bottom: 48px; }
.family-block { margin-bottom: 56px; }
.family-block .family-intro { flex-direction: row; align-items: center; gap: 20px; margin-bottom: 24px; }
.family-block .family-icon svg { width: 64px; height: 64px; }
.family-block h2 { font-size: 34px; }
.tcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tcard { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); color: var(--ink); text-decoration: none; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.tcard:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.tcard h3 { font-size: 25px; }
.tcard p { color: var(--muted); font-size: 16px; }
.tcard .badge { margin-left: 0; }
.more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.more::after { content: '→'; transition: transform .25s var(--ease); }
.tcard:hover .more::after, .ex-card:hover .more::after, .map-tile:hover .more::after { transform: translateX(4px); }
.related { border-top: 1px solid var(--line); padding-top: var(--section) !important; }
.related .h3 { margin-bottom: 24px; }

.search { display: flex; flex-direction: column; gap: 8px; max-width: 520px; margin-bottom: 40px; }
input, textarea, select { font: inherit; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-height: 48px; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: transparent; }
.cond-grid { columns: 3 300px; column-gap: 20px; }
.cond { break-inside: avoid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); padding: 22px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 12px; }
.cond h2 { font-size: 25px; }
.cond ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 16px; }
.cond li:not(:last-child)::after { content: '·'; margin-inline: 8px; color: var(--brass); }
.cond li.hit { background: var(--accent-soft); border-radius: 3px; }
.cond-therapies { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; font-size: 15px; }
.cond-therapies .mono-label { width: 100%; }

.timeline { list-style: none; border-left: 1px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 14px 0 14px 32px; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 23px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--brass); }
.timeline li:nth-last-child(-n+2)::before { background: var(--brass); }
.tl-year { font: 500 16px/1.65 var(--mono); color: var(--brass-ink); white-space: nowrap; }
.timeline p { max-width: 62ch; }
@media (max-width: 560px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Booking */
.booking-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .booking-grid { grid-template-columns: minmax(0, 1fr); } }
.booking { display: flex; flex-direction: column; gap: 28px; }
.stepper { display: none; list-style: none; gap: 8px; counter-reset: s; }
.js .stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stepper li { counter-increment: s; border-top: 3px solid var(--line); padding-top: 8px; font: 500 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stepper li::before { content: counter(s) '. '; }
.stepper li.on { border-top-color: var(--accent); color: var(--ink); }
.stepper li.done-step { border-top-color: var(--brass); }
.step { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.step + .step { border-top: 1px solid var(--line); padding-top: 28px; }
.js .step + .step { border-top: 0; padding-top: 0; }
.js .step:not(.current) { display: none; }
.step legend { font-family: var(--display); font-size: clamp(28px, 3vw, 36px); line-height: 1.15; padding: 0; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
.hint { font-size: 14px; color: var(--muted); }
.error { display: none; font-size: 14px; color: var(--error); }
.error.show { display: block; }
.invalid { border-color: var(--error); }
.at::before { content: "@"; }   /* znak @ ni zapisan v HTML */
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.human-check { display: block; margin: 4px 0 16px; max-width: 100%;
  --altcha-max-width: 100%; --altcha-border-radius: var(--radius); --altcha-border-width: 1px;
  --altcha-color-border: var(--line); --altcha-color-base: var(--raised); --altcha-color-text: var(--ink);
  --altcha-color-border-focus: var(--accent); --altcha-color-error-text: var(--error); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--accent); }
.step-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.done { border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: var(--radius); background: var(--raised); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.big-phone { display: flex; flex-direction: column; text-decoration: none; font: 500 clamp(26px, 2.6vw, 32px)/1.2 var(--mono); color: var(--accent); }

/* Contact page */
.contact-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 960px) { .contact-page-grid { grid-template-columns: minmax(0, 1fr); } }
.hours { border-collapse: collapse; width: 100%; font-size: 16px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { font-weight: 700; color: var(--accent); }
.map-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 300px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.map-tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-bg { fill: var(--accent-soft); }
.map-streets path { fill: none; stroke: var(--raised); stroke-width: 14; }
.map-streets path.minor { stroke-width: 6; }
.map-halo { fill: var(--brass); opacity: .25; }
.map-pin { fill: var(--brass); }
.map-label { position: absolute; left: 16px; right: 16px; bottom: 16px; background: var(--raised); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.map-label strong { font-family: var(--display); font-weight: 400; font-size: 22px; }
.map-label .more { margin-top: 6px; }

/* Print: just content */
@media print {
  .site-header, .call-bar, .meridian-rail, .contact-band, .site-footer nav { display: none !important; }
  body { background: #fff; color: #000; }
}
