/* =====================================================================
   Tinnitus Tone – web (alfa1.eu/tinnitusTone/), sdileny styl vsech stranek
   krome pravnich (ty maji vlastni inline styl a zustavaji beze zmeny).

   Barvy = barvy aplikace (app/src/main/res/values/themes.xml):
     bg #0B1220, card #141D30, accent #8FC1E3, accent_dark #2E5A7A,
     text_primary #E8EEF6, text_secondary #9AA7BA; vybrany chip #474258.
   Vychozi je tmave tema (jako aplikace). Svetle: data-theme="light" na <html>
   (prepinac v liste, ?theme=light v odkazu, ulozi se do localStorage 'tt-theme').
   Podpisovy motiv = krivka spektra se zarezem (jako graf v aplikaci).
   Zadne blikani ani samovolny pohyb; prefers-reduced-motion vypne i fade-in.
   ===================================================================== */

:root {
  --bg: #0B1220;
  --bg-raise: #0F1829;
  --card: #141D30;
  --card-2: #182339;
  --line: rgba(232, 238, 246, .11);
  --line-strong: rgba(232, 238, 246, .22);
  --ink: #E8EEF6;
  --dim: #9AA7BA;
  --head: #F5F8FC;
  --accent: #8FC1E3;
  --accent-ink: #0B1220;          /* text na tlacitku s accentem */
  --accent-deep: #2E5A7A;
  --accent-soft: rgba(143, 193, 227, .10);
  --chip-on: #474258;             /* vybrany chip v aplikaci */
  --chip-on-ink: #EDE7FA;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --sans: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1080px;
  --r: 20px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F3F6FA;
  --bg-raise: #EAF0F6;
  --card: #FFFFFF;
  --card-2: #F6F9FC;
  --line: rgba(20, 32, 51, .12);
  --line-strong: rgba(20, 32, 51, .25);
  --ink: #17212F;
  --dim: #4C5A6D;
  --head: #0D1624;
  --accent: #2E5A7A;
  --accent-ink: #FFFFFF;
  --accent-deep: #234862;
  --accent-soft: rgba(46, 90, 122, .08);
  --chip-on: #E2DDEC;
  --chip-on-ink: #2A2438;
  --shadow: 0 20px 50px rgba(20, 32, 51, .16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 78% -120px, rgba(143, 193, 227, .10), transparent 65%),
    linear-gradient(180deg, var(--bg-raise) 0%, var(--bg) 640px);
  background-repeat: no-repeat;
}
:root[data-theme="light"] body {
  background:
    radial-gradient(900px 520px at 78% -120px, rgba(46, 90, 122, .08), transparent 65%),
    linear-gradient(180deg, var(--bg-raise) 0%, var(--bg) 640px);
  background-repeat: no-repeat;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

h1, h2, h3, h4 { color: var(--head); margin: 0; line-height: 1.18; font-weight: 700; letter-spacing: -.018em; }
h1 { font-size: clamp(2.15rem, 5.4vw, 3.55rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
b, strong { color: var(--head); font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); color: var(--ink); padding: .6rem 1rem; border-radius: 10px; z-index: 20; }
.skip:focus { left: 12px; }

/* ---------- horni lista ---------- */
.topbar { display: flex; align-items: center; gap: .5rem 1.2rem; padding: 18px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--head); text-decoration: none; font-weight: 700; font-size: 1.02rem; margin-right: auto; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.topbar nav { display: flex; gap: 1.3rem; font-size: .95rem; }
.topbar nav a { color: var(--dim); text-decoration: none; font-weight: 500; }
.topbar nav a:hover { color: var(--head); }
@media (max-width: 720px) { .topbar nav { display: none; } }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle svg { width: 18px; height: 18px; stroke: var(--dim); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle:hover svg { stroke: var(--accent); }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: block; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: none; }

/* ---------- tlacitka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 1.06rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 1.02rem 2rem; min-height: 56px; border: 0;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn-main { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px rgba(143, 193, 227, .22); }
:root[data-theme="light"] .btn-main { box-shadow: 0 10px 26px rgba(46, 90, 122, .25); }
.btn-main:hover { transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-line:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.microcopy { font-size: .93rem; color: var(--dim); margin: 1rem 0 0; }
.gp-badge { display: inline-block; margin-top: 1.1rem; }
.gp-badge img { height: 60px; width: auto; display: block; margin-left: -9px; }

/* ---------- sekce ---------- */
section.wrap { padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 680px; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); text-align: center; }
.section-head p { color: var(--dim); margin: .9rem 0 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.divider { border: 0; height: 1px; background: var(--line); margin: 0; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
/* bez JS se nic neschova */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(1.8rem, 5vw, 3.6rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 500; color: var(--accent);
  border: 1px solid var(--line-strong); background: var(--accent-soft); padding: .38rem .95rem; border-radius: 999px; margin-bottom: 1.3rem;
}
.hero h1 { margin-bottom: 1.15rem; }
.hero .lead { font-size: clamp(1.06rem, 2.1vw, 1.2rem); color: var(--dim); max-width: 34em; margin-bottom: 1.9rem; }
.hero .lead strong { color: var(--ink); }

.phone {
  width: min(300px, 76vw); margin: 0 auto; border-radius: 40px; padding: 11px;
  background: linear-gradient(160deg, #1C2740, #0B1220); border: 1px solid rgba(232, 238, 246, .14);
  box-shadow: var(--shadow);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 30px; }
.caption { text-align: center; color: var(--dim); font-size: .9rem; margin: 1rem auto 0; max-width: 30em; }

/* krivka spektra se zarezem — podpis webu (jako graf v aplikaci) */
.spectrum-band { margin-top: clamp(2rem, 5vw, 3.2rem); }
.spectrum-band svg { display: block; width: 100%; height: clamp(64px, 9vw, 100px); }
.spectrum-band .base { fill: var(--card); }
.spectrum-band .curve { fill: none; stroke: var(--accent); stroke-width: 2.2; vector-effect: non-scaling-stroke; }

/* popisky os jako HTML text pod grafem: SVG s viewBoxem by text na mobilu zmensilo na necitelnych ~5 px */
.ticks { position: relative; height: 1.6em; font-size: .8rem; font-weight: 500; color: var(--dim); margin-top: 6px; }
.ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ticks .l { transform: none; }
.ticks .r { transform: translateX(-100%); }
.tone-mark { position: relative; height: 1.6em; font-size: .85rem; font-weight: 600; color: var(--accent); }
.tone-mark span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }

/* ---------- kroky ---------- */
.step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(1.6rem, 4vw, 2.8rem) 0; }
.step.flip .step-visual { order: -1; }
@media (max-width: 780px) { .step { grid-template-columns: 1fr; } .step .step-visual { order: 0 !important; } }
.step-num { display: inline-flex; align-items: center; gap: .8rem; color: var(--accent); font-weight: 600; font-size: .95rem; margin-bottom: .9rem; }
.step-num::after { content: ""; width: 44px; height: 1.5px; background: linear-gradient(90deg, var(--accent), transparent); }
.step h3 { font-size: clamp(1.4rem, 2.8vw, 1.8rem); margin-bottom: .9rem; }
.step p { color: var(--dim); max-width: 36em; }
.more-link { font-weight: 600; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.step-visual { display: flex; justify-content: center; }
.shot { width: min(280px, 74vw); border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #1C2740, #0B1220); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; border-radius: 25px; }

/* zvuky jako chipy v aplikaci */
.sound-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 430px; padding: clamp(1.4rem, 3vw, 2rem); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.sound-cloud .lbl { width: 100%; text-align: center; font-size: .85rem; color: var(--dim); margin-bottom: 4px; }
.sound-cloud > span { display: inline-block; padding: .55rem 1rem; border-radius: 12px; border: 1.5px solid var(--line-strong); font-size: .98rem; font-weight: 500; color: var(--ink); }
.sound-cloud > span.on { background: var(--chip-on); color: var(--chip-on-ink); border-color: transparent; }
.sound-cloud > span.on::before { content: "✓ "; font-weight: 400; }
.sound-cloud .mini-spec { width: 100%; margin-top: 10px; }
.sound-cloud .mini-spec svg { width: 100%; height: auto; display: block; }
.sound-cloud .ticks { font-size: .75rem; }

/* casovac s dozvukem */
.fade-card { width: min(430px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.3rem, 3vw, 1.8rem); box-shadow: var(--shadow); }
.fade-card .t { font-weight: 700; color: var(--head); font-size: 1.15rem; margin-bottom: .2rem; }
.fade-card .s { color: var(--dim); font-size: .92rem; margin-bottom: 1rem; }
.fade-card .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.2rem; }
.fade-card .chips span { padding: .45rem .85rem; border-radius: 10px; border: 1.5px solid var(--line-strong); font-size: .92rem; font-weight: 500; }
.fade-card .chips span.on { background: var(--chip-on); color: var(--chip-on-ink); border-color: transparent; }
.fade-card svg { width: 100%; height: auto; display: block; }
.fade-card .area { fill: var(--accent-soft); }
.fade-card .line { fill: none; stroke: var(--accent); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.fade-card .ticks { font-size: .78rem; }

/* ---------- ukazka (Web Audio) ---------- */
.demo { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); padding: clamp(1.3rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.demo .row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-bottom: 1.3rem; }
.demo .row-label { font-weight: 600; color: var(--head); margin-right: .3rem; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1.5px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.seg button { font: 600 1rem var(--sans); color: var(--ink); background: transparent; border: 0; padding: .7rem 1.1rem; min-height: 48px; cursor: pointer; border-right: 1.5px solid var(--line-strong); }
.seg button:last-child { border-right: 0; }
.seg button[aria-checked="true"] { background: var(--chip-on); color: var(--chip-on-ink); }
@media (max-width: 560px) {
  .demo .row-label { width: 100%; }
  .seg { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
  .seg button { padding: .7rem .2rem; }
  .demo .controls .btn, .demo .controls .switch { width: 100%; justify-content: center; }
}
.demo .controls { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }
.switch { display: inline-flex; align-items: center; gap: .8rem; font: 600 1.02rem var(--sans); color: var(--ink); background: transparent; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: .6rem 1.2rem .6rem .7rem; min-height: 56px; cursor: pointer; }
.switch .knob { width: 52px; height: 30px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none; transition: background-color .2s; }
.switch .knob::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); transition: transform .2s; }
.switch[aria-checked="true"] .knob { background: var(--accent); }
.switch[aria-checked="true"] .knob::after { transform: translateX(22px); }
@media (prefers-reduced-motion: reduce) { .switch .knob, .switch .knob::after { transition: none; } }
.demo-spec { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 6px; }
.demo-spec svg { display: block; width: 100%; height: clamp(96px, 16vw, 130px); }
.demo-spec .base { fill: var(--card-2); }
.demo-spec .curve { fill: none; stroke: var(--accent); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.demo-status { margin: .9rem 0 0; color: var(--dim); font-size: .95rem; min-height: 1.6em; }
.demo-status b { color: var(--head); }
.demo-note { margin-top: 1.2rem; font-size: .92rem; color: var(--dim); border-top: 1px solid var(--line); padding-top: 1rem; }
.demo-note p { margin: 0 0 .5rem; }
.demo-fallback { display: none; }
.no-audio .demo-live { display: none; }
.no-audio .demo-fallback { display: block; }

/* ---------- dalsi funkce ---------- */
.extras { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .extras { grid-template-columns: 1fr; } }
.extras .shots { display: flex; gap: 18px; justify-content: center; }
.extras .shots .shot { width: min(220px, 42vw); border-radius: 28px; padding: 8px; }
.extras .shots .shot img { border-radius: 21px; }
.extras .shots .shot:nth-child(2) { margin-top: 48px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.feature-list li { padding-left: 1.6rem; position: relative; color: var(--dim); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.feature-list li b { display: block; color: var(--head); font-size: 1.08rem; margin-bottom: .15rem; }

.quiet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.6rem); }
@media (max-width: 860px) { .quiet-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .quiet-grid { grid-template-columns: 1fr; } }
.quiet-grid .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.quiet-grid .ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quiet-grid h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.quiet-grid p { color: var(--dim); margin: 0; font-size: 1rem; }

/* ---------- co aplikace je a neni ---------- */
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
@media (max-width: 760px) { .honest { grid-template-columns: 1fr; } }
.honest > div { padding: clamp(1.4rem, 3.5vw, 2.2rem); }
.honest > div + div { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .honest > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.honest h3 { margin-bottom: .9rem; }
.honest ul { margin: 0; padding-left: 1.2rem; color: var(--dim); }
.honest li { margin: .45rem 0; }
.doctor { margin: 1.6rem auto 0; max-width: 820px; padding: 1.1rem 1.3rem; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--line); font-size: 1rem; }
.doctor b { color: var(--head); }

/* ---------- cena ---------- */
.price-card { max-width: 560px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--line-strong); border-radius: calc(var(--r) + 4px); padding: clamp(1.8rem, 5vw, 2.8rem); box-shadow: var(--shadow); }
.price-card .big { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 700; color: var(--head); letter-spacing: -.03em; line-height: 1.1; margin: 0; }
.price-card .big small { display: block; font-size: 1.05rem; font-weight: 500; color: var(--dim); letter-spacing: 0; margin-top: .4rem; }
.price-card .then { margin: 1.1rem 0 1.4rem; font-size: 1.12rem; color: var(--ink); }
.price-card .then span { display: block; font-size: .9rem; color: var(--dim); }
.price-list { list-style: none; padding: 0; margin: 0 auto 1.8rem; display: inline-grid; gap: .5rem; text-align: left; }
.price-list li { padding-left: 1.8rem; position: relative; }
.price-list li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.price-note { font-size: .92rem; color: var(--dim); margin: 1.1rem 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 3.2rem 1.15rem 1.3rem; font-weight: 600; color: var(--head); position: relative; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 1.3rem 1.25rem; color: var(--dim); }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- clanky ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.5rem 1.4rem; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card-link:hover { transform: none; } }
.card-link .k { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.card-link h3 { margin-bottom: .55rem; }
.card-link p { color: var(--dim); font-size: 1rem; margin: 0 0 1rem; }
.card-link .go { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .98rem; }

/* ---------- zaver ---------- */
.finale { text-align: center; }
.finale h2 { margin-bottom: .9rem; }
.finale p { color: var(--dim); max-width: 34em; margin: 0 auto 1.8rem; }
.finale .gp-badge img { margin: 0 auto; }

/* ---------- paticka ---------- */
footer { border-top: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 3.6rem) 0 calc(2rem + env(safe-area-inset-bottom)); font-size: .97rem; background: var(--bg); }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } }
footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: .8rem; font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { color: var(--accent); text-decoration: underline; }
footer .disclaimer { color: var(--dim); font-size: .93rem; margin: 0; }
.footer-bottom { margin: 2.2rem 0 0; color: var(--dim); font-size: .88rem; }

/* ---------- sticky CTA (mobil) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; align-items: center; gap: 1rem; justify-content: space-between;
  padding: .75rem clamp(16px, 4vw, 24px) calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(11, 18, 32, .94); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
  transform: translateY(110%); transition: transform .3s ease;
}
:root[data-theme="light"] .sticky-cta { background: rgba(243, 246, 250, .95); }
.sticky-cta.show { transform: none; }
.sticky-cta .t { font-size: .86rem; color: var(--dim); line-height: 1.35; }
.sticky-cta .t b { display: block; font-size: .98rem; }
.sticky-cta .btn { padding: .7rem 1.3rem; min-height: 48px; font-size: .98rem; white-space: nowrap; }
@media (max-width: 820px) { .sticky-cta { display: flex; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* =====================================================================
   CLANKY (en/*.html krome description a pravnich stranek)
   ===================================================================== */
.article { max-width: 720px; margin: 0 auto; padding-top: clamp(1.6rem, 5vw, 3rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.crumbs { font-size: .92rem; color: var(--dim); margin-bottom: 1.6rem; }
.crumbs a { color: var(--dim); }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.article .lede { font-size: clamp(1.1rem, 2.4vw, 1.25rem); color: var(--dim); margin-bottom: 1rem; }
.article .meta { font-size: .9rem; color: var(--dim); margin-bottom: 2.2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.article h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); margin: 2.6rem 0 1rem; }
.article h3 { margin: 1.8rem 0 .6rem; }
.article p, .article li { color: var(--ink); }
.article ul, .article ol { padding-left: 1.4rem; margin: 0 0 1.2rem; }
.article li { margin: .5rem 0; }
.article blockquote { margin: 1.4rem 0; padding: .4rem 0 .4rem 1.3rem; border-left: 3px solid var(--accent); color: var(--ink); font-size: 1.08rem; }
.article blockquote cite { display: block; font-style: normal; color: var(--dim); font-size: .92rem; margin-top: .4rem; }
.article figure { margin: 2rem 0; }
.article figure svg { width: 100%; height: auto; display: block; }
.article figure svg.stretch { height: clamp(90px, 18vw, 140px); }

/* smycka obav (clanek o noci): ctyri kroky v rade, na mobilu pod sebou */
.cycle { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: c; }
.cycle li { counter-increment: c; position: relative; margin: 0 !important; background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; padding: .9rem .9rem .8rem; font-weight: 600; color: var(--head); font-size: .98rem; line-height: 1.35; }
.cycle li::before { content: counter(c); display: block; font-size: .78rem; color: var(--accent); margin-bottom: .3rem; }
.cycle li + li::after { content: "\2192"; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 700; }
.cycle-back { margin: .9rem 0 0; color: var(--accent); font-weight: 600; font-size: .95rem; text-align: center; }
@media (max-width: 640px) {
  .cycle { grid-template-columns: 1fr; gap: 26px; }
  .cycle li + li::after { content: "\2193"; left: 50%; top: -24px; transform: translateX(-50%); }
}

/* hledani tonu vyssi/nizsi (clanek o frekvenci) */
.search-rows { display: grid; gap: .55rem; margin: 0; padding: 1.1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.search-rows .sr { display: grid; grid-template-columns: 4.6rem 1fr 8.6rem; gap: .8rem; align-items: center; font-size: .95rem; }
.search-rows .hz { font-weight: 600; color: var(--head); font-variant-numeric: tabular-nums; }
.search-rows .trk { position: relative; height: 4px; border-radius: 2px; background: var(--line-strong); }
.search-rows .trk i { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); }
.search-rows .sr.last .trk i { box-shadow: 0 0 0 5px var(--accent-soft); }
.search-rows .ans { color: var(--dim); }
.search-rows .sr.last .ans { color: var(--head); font-weight: 600; }
.search-rows .ticks { margin-left: 5.4rem; margin-right: 9.4rem; }
@media (max-width: 520px) {
  .search-rows .sr { grid-template-columns: 4rem 1fr; row-gap: .1rem; }
  .search-rows .ans { grid-column: 2; font-size: .88rem; }
  .search-rows .ticks { margin-left: 4.8rem; margin-right: 0; }
}
.article figcaption { color: var(--dim); font-size: .92rem; margin-top: .7rem; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.4rem; margin: 1.8rem 0; }
.note .k { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.doctor-box { background: var(--accent-soft); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.4rem; margin: 2rem 0; }
.doctor-box p:last-child { margin-bottom: 0; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding-left: 3rem; margin: 1.1rem 0; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: .05em; width: 2rem; height: 2rem; border-radius: 50%; background: var(--chip-on); color: var(--chip-on-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.sources { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .93rem; color: var(--dim); }
.sources h2 { font-size: 1.05rem; margin: 0 0 .8rem; color: var(--head); }
.sources ol { padding-left: 1.2rem; }
.sources li { color: var(--dim); }
.article-cta { margin-top: 2.8rem; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r); padding: clamp(1.4rem, 4vw, 2rem); }
.article-cta h2 { margin: 0 0 .6rem; font-size: 1.4rem; }
.article-cta p { color: var(--dim); }
.related { margin-top: 2.6rem; }
.related h2 { font-size: 1.15rem; margin: 0 0 1rem; }
.related ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.related a { font-weight: 600; }
