/* Salog – tokeny z brand identity */
:root {
  --sand: #EBDDC9;
  --paper: #F6EEE2;
  --alpine: #183A32;
  --alpine-2: #2D5A4E;
  --bark: #6B4632;
  --kraft: #D9BC8E;
  --ink: #183A32;
  --ink-soft: #46574F;

  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --text: "Outfit", system-ui, sans-serif;

  --r-pill: 999px;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.02; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--bark); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--alpine); color: var(--sand); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 16px; }

/* Oznámení */
.announce {
  background: var(--alpine); color: var(--sand);
  text-align: center; font-size: .9rem; padding: 9px 16px;
}
.announce a { color: var(--kraft); text-underline-offset: 3px; }

/* Navigace – lepkavá, po scrollu se zmenší */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 18px var(--gutter);
  background: rgba(246, 238, 226, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: padding .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled { padding-top: 10px; padding-bottom: 10px; box-shadow: 0 1px 0 rgba(24, 58, 50, .12); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; fill: var(--alpine); }
.brand-mark { width: 30px; height: 37px; transition: transform .3s var(--ease); }
.brand-word { width: 74px; height: 39px; margin-top: 6px; }
.nav.scrolled .brand-mark { transform: scale(.88); }
.brand-light { fill: var(--sand); }
.pill { list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; background: var(--sand); border-radius: var(--r-pill); }
.pill a {
  display: block; padding: 7px 14px; border-radius: var(--r-pill);
  font-size: .92rem; text-decoration: none; color: var(--ink); white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.pill a:hover { background: rgba(24, 58, 50, .08); }
.pill a[aria-current="true"] { background: var(--alpine); color: var(--sand); }
.nav > .btn { justify-self: end; }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px; border: 0;
  font: 500 1rem/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s ease;
}
.btn svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-dark { background: var(--alpine); color: var(--sand); }
.btn-dark:hover { background: #0f2a24; }
.btn-light { background: var(--paper); color: var(--alpine); }
.btn-light:hover { background: #fff; }
.btn-brown { background: var(--bark); color: var(--paper); }
.btn-brown:hover { background: #573827; }
.link { font-weight: 500; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--kraft); }
.link:hover { text-decoration-color: var(--bark); }

/* Vrstevnicová mapa s Lysou horou – v závěru stránky */
.signup { position: relative; isolation: isolate; overflow: hidden; }
.topo-map {
  position: absolute; z-index: -1; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.topo-summit text { paint-order: stroke; stroke: var(--sand); stroke-width: 5px; }
.topo-map rect { fill: var(--sand); }
@media (prefers-reduced-motion: no-preference) {
  .topo-trail { stroke-dashoffset: 400; opacity: 0; }
  .topo-summit { opacity: 0; }
  .topo-map.walk .topo-trail { animation: trail-walk 3s .2s ease-out forwards; }
  .topo-map.walk .topo-summit { animation: fade .8s 2.4s ease-out forwards; }
}
@keyframes trail-walk { from { stroke-dashoffset: 400; opacity: 0; } to { stroke-dashoffset: 0; opacity: .55; } }

/* Úvod na fotce Lysé hory */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 640px); align-items: center;
  min-height: min(86vh, 820px);
  padding: clamp(36px, 6vw, 88px) max(var(--gutter), calc((100% - var(--max)) / 2)) clamp(56px, 7vw, 96px);
  color: var(--paper);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--alpine); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; will-change: transform; transform: scale(1.05); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 38, 33, .9) 0%, rgba(16, 38, 33, .72) 42%, rgba(16, 38, 33, .25) 75%, rgba(16, 38, 33, .1) 100%),
    linear-gradient(0deg, rgba(16, 38, 33, .55) 0%, rgba(16, 38, 33, 0) 35%);
}
.hero-credit {
  position: absolute; right: 16px; bottom: 10px; z-index: 1;
  font-size: .72rem; color: rgba(246, 238, 226, .7);
}
.hero-credit a { color: inherit; }
.hero-title {
  font-weight: 800; font-variation-settings: "wdth" 78;
  font-size: clamp(3.2rem, 8.6vw, 7.6rem); letter-spacing: -.03em; line-height: .9;
}
.hero-title span { display: block; will-change: transform; }
.l1 { color: var(--paper); }
.l2 { color: var(--kraft); }
.hero-lede { margin-top: 26px; font-size: 1.15rem; color: rgba(246, 238, 226, .88); max-width: 36ch; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero .link { color: var(--paper); }
.facts { margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 20px 44px; }
.facts dt { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; font-variation-settings: "wdth" 85; }
.facts dd { margin: 6px 0 0; color: rgba(246, 238, 226, .78); font-size: .92rem; max-width: 22ch; }
.hero-art { margin: 0; align-self: end; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .3)); }

/* Úvodní animace: texty, nalití kávy, pára */
@media (prefers-reduced-motion: no-preference) {
  .hero-title span, .hero-lede, .hero-cta, .facts { animation: rise .9s var(--ease) both; }
  .hero-title .l2 { animation-delay: .08s; }
  .hero-lede { animation-delay: .18s; }
  .hero-cta { animation-delay: .26s; }
  .facts { animation-delay: .34s; }

  .pour { stroke-dasharray: 160; stroke-dashoffset: 160; animation: pour 1.4s .5s ease-out forwards; }
  .steam path { opacity: 0; animation: fade 1s 1.6s ease-out forwards; }
  .hero-art .pour { animation: pour-once 2.6s .8s ease-in-out forwards; }
  .hero-art .coffee { opacity: 0; animation: fade 1.2s 1.4s ease-out forwards; }
  .hero-art .steam path { animation-delay: 2.8s; }
  .hero-art .steam path + path { animation-delay: 3.1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes fade { to { opacity: 1; } }
@keyframes pour { to { stroke-dashoffset: 0; } }
@keyframes pour-once {
  0% { stroke-dashoffset: 160; }
  35%, 70% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -160; }
}

/* Odhalování při scrollu (jen s JS) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="wipe"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round 28px); transition: clip-path 1.1s var(--ease); }
.js [data-reveal="wipe"].in { clip-path: inset(0 0 0 0 round 28px); }
.value-list li:nth-child(2) { transition-delay: .08s; }
.value-list li:nth-child(3) { transition-delay: .16s; }
.value-list li:nth-child(4) { transition-delay: .24s; }

/* Pás rozcestníků – rychlost řídí scroll */
.ticker {
  background: var(--alpine); color: var(--sand);
  display: flex; align-items: center; gap: 0;
  padding: 22px 0; overflow: hidden;
}
.ticker-lead {
  flex: none; position: relative; z-index: 1;
  padding: 0 28px 0 max(var(--gutter), calc((100% - var(--max)) / 2));
  font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-variation-settings: "wdth" 80; white-space: nowrap;
  background: var(--alpine); box-shadow: 24px 0 24px var(--alpine);
}
.ticker-window { overflow: hidden; flex: 1; }
.ticker-track { display: flex; align-items: center; gap: 14px; width: max-content; will-change: transform; }
/* cedule jako na turistickém rozcestníku */
.sign {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 30px 9px 12px;
  background: var(--sand); color: var(--alpine);
  font-weight: 600; font-size: 1rem; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  border-radius: 4px 0 0 4px;
}
.sign em { font-style: normal; font-weight: 400; font-size: .85rem; color: var(--bark); }
/* turistická značka: pruh – barva – pruh */
.tm {
  flex: none; width: 18px; height: 18px; border-radius: 2px;
  background: linear-gradient(to bottom, var(--paper) 0 33%, var(--bark) 33% 67%, var(--paper) 67%);
  box-shadow: inset 0 0 0 1px rgba(24, 58, 50, .25);
}

/* Sekce */
.section-head { max-width: 660px; }
.section-head h2, .steps h2, .signup h2, .faq h2 {
  font-weight: 800; font-variation-settings: "wdth" 80;
  font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.025em;
}
.section-head p { margin-top: 18px; color: var(--ink-soft); max-width: 58ch; }
.section-head p + p { margin-top: 14px; }
.on-dark p { color: rgba(235, 221, 201, .82); }

.products, .steps, .faq, .signup, .values {
  padding-left: max(var(--gutter), calc((100% - var(--max)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--max)) / 2));
}

/* Produkty */
.products { padding-top: clamp(64px, 9vw, 130px); padding-bottom: clamp(64px, 9vw, 120px); }
/* Produkt jako velký panel s fotkou – stejně jako úvod */
.product {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); align-items: end;
  min-height: clamp(560px, 52vw, 700px);
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 28px; background: var(--alpine);
  color: var(--paper);
}
.product::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(270deg, rgba(16, 38, 33, .92) 0%, rgba(16, 38, 33, .78) 38%, rgba(16, 38, 33, .2) 70%, rgba(16, 38, 33, 0) 100%),
    linear-gradient(0deg, rgba(16, 38, 33, .45) 0%, rgba(16, 38, 33, 0) 40%);
}
.product-photo { position: absolute; inset: 0; z-index: -2; margin: 0; }
.product-photo .photo-frame { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.product-body { grid-column: 2; }
.family { margin: 0; }
.photo-frame { position: relative; overflow: hidden; border-radius: 28px; aspect-ratio: 6 / 5; background: var(--alpine); }
.photo-frame img {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%;
  object-fit: cover; will-change: transform;
}
.photo-note {
  position: absolute; left: 18px; top: 18px; padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(16, 38, 33, .55); color: rgba(246, 238, 226, .9); font-size: .75rem;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.product-photo figcaption {
  position: absolute; left: 18px; bottom: 14px; z-index: 1;
  font-size: .72rem; color: rgba(246, 238, 226, .75);
}
.product-photo figcaption a { color: inherit; }
.family figcaption { margin-top: 10px; font-size: .78rem; color: var(--ink-soft); text-align: center; }
.px { transform-box: view-box; will-change: transform; }
.status { display: inline-block; padding: 5px 12px; border-radius: var(--r-pill); background: var(--kraft); color: var(--alpine); font-size: .85rem; font-weight: 500; }
.product h3 { margin-top: 14px; font-size: clamp(2.3rem, 4vw, 3.4rem); font-weight: 800; font-variation-settings: "wdth" 80; letter-spacing: -.02em; color: var(--paper); }
.product-lead { margin-top: 8px; font-size: 1.25rem; font-weight: 500; color: var(--kraft); }
.product-body > p:not(.product-lead) { margin-top: 16px; color: rgba(246, 238, 226, .86); max-width: 56ch; }
.spec-grid { margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid rgba(246, 238, 226, .6); }
.spec-grid div { padding: 12px 0; border-bottom: 1px solid rgba(246, 238, 226, .2); }
.spec-grid div:nth-child(odd) { padding-right: 16px; }
.spec-grid dt { font-size: .85rem; color: rgba(246, 238, 226, .7); }
.spec-grid dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.3rem; font-variation-settings: "wdth" 88; }

/* Salog Filtr do detailu – inspirace Coffeebrewer stránkou */
.filtr-detail { margin-top: clamp(56px, 8vw, 110px); display: grid; gap: clamp(56px, 8vw, 110px); }
.filtr-detail h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; font-variation-settings: "wdth" 80; letter-spacing: -.02em;
}
.equation { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.equation svg { width: 100%; height: auto; }
.equation-text p { margin-top: 16px; color: var(--ink-soft); max-width: 46ch; }

.anatomy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.anatomy-art { margin: 0; }
.anatomy-art svg { width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
.parts { list-style: none; counter-reset: part; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.parts li { counter-increment: part; position: relative; padding-left: 48px; color: var(--ink-soft); max-width: 48ch; }
.parts li::before {
  content: counter(part); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--alpine); color: var(--paper); font-family: var(--display); font-weight: 700;
}
.parts strong { color: var(--ink); font-weight: 600; }

.strength {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center;
  background: var(--sand); border-radius: 28px; padding: clamp(28px, 4vw, 56px);
}
.strength-text p { margin-top: 14px; color: var(--ink-soft); max-width: 48ch; }
.strength-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 26px; font-weight: 500; max-width: 420px; }
.strength-label output { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--bark); }
.strength input[type="range"] { width: 100%; max-width: 420px; margin-top: 10px; accent-color: var(--alpine); height: 28px; cursor: pointer; }
.strength-scale { display: flex; justify-content: space-between; max-width: 420px; font-size: .8rem; color: var(--ink-soft); }
.strength-text .strength-result { margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--alpine); }
.strength-art { width: 100%; max-width: 220px; height: auto; justify-self: center; }
#strength-fill { transition: y .6s var(--ease), fill .6s ease; }

/* Znovupoužití Filtru */
.reuse { margin-top: 20px; padding: 18px 20px; background: var(--paper); border-radius: 16px; max-width: 520px; }
.reuse h4 { margin: 0; font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.reuse ol { margin: 10px 0 0; padding-left: 20px; color: var(--ink-soft); display: grid; gap: 4px; }
.step-list .reuse p { margin-top: 10px; font-size: .92rem; color: var(--bark); }
.compare-wrap { margin-top: clamp(64px, 8vw, 110px); }
.compare-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; font-variation-settings: "wdth" 82; }
.compare { width: 100%; margin-top: 22px; border-collapse: collapse; }
.compare th, .compare td { text-align: left; padding: 14px 16px 14px 0; vertical-align: top; }
.compare thead th { font-family: var(--display); font-weight: 700; font-size: 1.2rem; border-bottom: 2px solid var(--alpine); }
.compare thead td { border-bottom: 2px solid var(--alpine); }
.compare tbody th { font-weight: 500; color: var(--bark); width: 22%; }
.compare tbody td { color: var(--ink-soft); width: 39%; }
.compare tbody tr { border-bottom: 1px solid rgba(24, 58, 50, .2); transition: background-color .2s ease; }
.compare tbody tr:hover { background: rgba(235, 221, 201, .45); }

/* Postup jako značená stezka */
.steps { background: var(--sand); padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }
.steps-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.tabs { display: inline-flex; padding: 4px; gap: 2px; background: var(--paper); border-radius: var(--r-pill); }
.tabs button { font: 500 .95rem/1 var(--text); color: var(--ink); padding: 11px 18px; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; }
.tabs button:hover { background: rgba(24, 58, 50, .08); }
.tabs button[aria-selected="true"] { background: var(--alpine); color: var(--sand); }
.trail { position: relative; margin-top: 52px; --trail: 0; }
.trail-line {
  position: absolute; left: 27px; top: 10px; bottom: 30px; width: 4px;
  background: repeating-linear-gradient(to bottom, rgba(107, 70, 50, .3) 0 10px, transparent 10px 18px);
}
.trail-fill {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, var(--bark) 0 10px, transparent 10px 18px);
  transform-origin: top; transform: scaleY(var(--trail));
}
.step-list { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: clamp(36px, 5vw, 64px); }
.step-list[hidden] { display: none; }
.step-list li { counter-increment: step; position: relative; padding-left: 92px; max-width: 640px; }
.step-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: -6px; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.6rem;
  background: var(--paper); color: var(--bark); border: 3px solid rgba(107, 70, 50, .3);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.step-list li.active::before { background: var(--alpine); color: var(--sand); border-color: var(--alpine); transform: scale(1.06); }
.step-list h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; font-variation-settings: "wdth" 85; }
.step-list p { margin-top: 8px; color: var(--ink-soft); max-width: 50ch; }
.step-list .step-tip {
  margin-top: 18px; padding: 12px 16px; background: var(--paper);
  border-left: 4px solid var(--bark); border-radius: 0 12px 12px 0; font-size: .95rem;
}

/* O nás */
.why { background: var(--alpine); color: var(--sand); padding: clamp(72px, 10vw, 140px) max(var(--gutter), calc((100% - var(--max)) / 2)); }
.story { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story-text .section-head { margin-top: 28px; }
.family .photo-frame { aspect-ratio: 3 / 4; }
.family figcaption { color: var(--kraft); font-size: .9rem; }

/* Golas → salog: spustí se, až je sekce dobře vidět */
.anagram { display: grid; justify-items: start; gap: 4px; color: var(--kraft); }
.anagram-from {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-variation-settings: "wdth" 80; color: transparent; -webkit-text-stroke: 1.5px var(--kraft);
}
.anagram-arrow { width: clamp(90px, 10vw, 140px); margin-left: 4px; }
.anagram-arrow path { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset .9s var(--ease); }
.anagram-arrow path + path { transition-delay: .7s; transition-duration: .3s; }
.anagram.flip .anagram-arrow path { stroke-dashoffset: 0; }
.anagram-word {
  display: inline-flex; position: relative; margin-top: -8px;
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 80;
  font-size: clamp(5rem, 13vw, 10.5rem); line-height: .9; letter-spacing: -.02em;
}
.anagram-word span {
  display: inline-block; color: transparent; -webkit-text-stroke: 2px rgba(235, 221, 201, .6);
  transform: translateX(0);
  transition: transform 1.1s cubic-bezier(.65, 0, .25, 1), color .5s ease 1s, -webkit-text-stroke-color .5s ease 1s;
}
.anagram-word span:nth-child(2) { transition-delay: .08s, 1s, 1s; }
.anagram-word span:nth-child(3) { transition-delay: .16s, 1s, 1s; }
.anagram-word span:nth-child(4) { transition-delay: .24s, 1s, 1s; }
.anagram-word span:nth-child(5) { transition-delay: .32s, 1s, 1s; }
.anagram.flip .anagram-word span { transform: translateX(var(--dx, 0)); color: var(--sand); -webkit-text-stroke-color: var(--sand); }
/* nahoru-dolů oblouk, ať je vidět, že se písmena přehazují */
@media (prefers-reduced-motion: no-preference) {
  .anagram.flip .anagram-word span:nth-child(odd) { animation: hop 1.1s cubic-bezier(.65, 0, .25, 1) both; }
  .anagram.flip .anagram-word span:nth-child(even) { animation: dip 1.1s cubic-bezier(.65, 0, .25, 1) both; }
}
.anagram.flip .anagram-word span:nth-child(2) { animation-delay: .08s; }
.anagram.flip .anagram-word span:nth-child(3) { animation-delay: .16s; }
.anagram.flip .anagram-word span:nth-child(4) { animation-delay: .24s; }
.anagram.flip .anagram-word span:nth-child(5) { animation-delay: .32s; }
@keyframes hop { 50% { translate: 0 -.18em; } }
@keyframes dip { 50% { translate: 0 .14em; } }

/* Hodnoty */
.values { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(32px, 4vw, 48px); }
.value-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.value-list li { padding-top: 20px; border-top: 2px solid var(--alpine); }
.value-list svg { width: 40px; height: 40px; color: var(--bark); margin-bottom: 16px; }
.value-list h3 { font-size: 1.35rem; font-weight: 700; font-variation-settings: "wdth" 85; }
.value-list p { margin-top: 8px; color: var(--ink-soft); font-size: .98rem; }

/* FAQ */
.faq { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq-list { border-top: 2px solid var(--alpine); }
.faq details { border-bottom: 1px solid rgba(24, 58, 50, .2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem; font-variation-settings: "wdth" 88;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 2.5px solid var(--bark); border-bottom: 2.5px solid var(--bark);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-soft); max-width: 60ch; }

/* Zápis */
.signup {
  background: var(--sand);
  padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start;
}
.signup-copy p { margin-top: 18px; color: var(--ink-soft); max-width: 46ch; }
.signup-form { display: grid; gap: 12px; background: var(--paper); padding: clamp(22px, 3vw, 36px); border-radius: 22px; }
.signup-form > label { font-weight: 500; }
.signup-form input[type="email"] { font: inherit; padding: 14px 16px; border-radius: 10px; border: 2px solid var(--alpine); background: #fff; color: var(--ink); }
.signup-form input[aria-invalid="true"] { border-color: #A3341F; }
fieldset { border: 0; padding: 0; margin: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
legend { font-weight: 500; margin-bottom: 10px; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: var(--r-pill); border: 2px solid var(--alpine); font-size: .92rem; transition: background-color .15s ease, color .15s ease; }
.chip input:checked + span { background: var(--alpine); color: var(--sand); }
.chip input:focus-visible + span { outline: 3px solid var(--bark); outline-offset: 2px; }
.signup-form .btn { justify-self: start; margin-top: 6px; }
.form-msg { min-height: 1.6em; font-size: .95rem; }
.form-msg.error { color: #A3341F; }

/* Patička */
.footer {
  background: var(--bark); color: var(--sand);
  padding: 44px max(var(--gutter), calc((100% - var(--max)) / 2)) 90px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; align-items: start;
}
.footer-logo { display: inline-block; }
.footer-logo img { width: 190px; height: auto; }
.footer-contact { font-style: normal; display: grid; gap: 4px; justify-self: end; text-align: right; }
.footer-contact a { text-decoration-color: rgba(235, 221, 201, .5); text-underline-offset: 3px; }
.footer-legal { grid-column: 1 / -1; font-size: .85rem; opacity: .7; border-top: 1px solid rgba(235, 221, 201, .25); padding-top: 18px; }

/* Výškoměr */
.alti {
  position: fixed; left: 16px; bottom: 16px; z-index: 25;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 12px; border-radius: 16px;
  background: var(--alpine); color: var(--sand);
  border: 1px solid rgba(235, 221, 201, .3);
  box-shadow: 0 8px 24px rgba(24, 58, 50, .25);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.alti.show { transform: none; }
.alti-icon { width: 24px; height: 24px; color: var(--kraft); flex: none; }
.alti-body { display: grid; gap: 2px; min-width: 132px; }
.alti-m { font-size: .8rem; }
.alti-m strong { font-family: var(--display); font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.alti-place { font-size: .78rem; color: var(--kraft); }
.alti-bar { height: 3px; background: rgba(235, 221, 201, .2); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.alti-fill { display: block; height: 100%; width: 100%; background: var(--kraft); transform-origin: left; transform: scaleX(0); }
.alti.summit { background: var(--bark); }

/* Responzivita */
@media (max-width: 960px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; max-width: 100%; overflow-x: auto; }
  .nav.scrolled nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; }
  .product, .story, .faq, .signup, .equation, .anatomy, .strength { grid-template-columns: 1fr; }
  .product { padding: 0; min-height: 0; align-items: start; }
  .product::after { display: none; }
  .product-photo { position: relative; inset: auto; height: clamp(260px, 60vw, 420px); z-index: 0; }
  .product-body { grid-column: 1; padding: 28px clamp(20px, 5vw, 40px) 34px; }
  .value-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pill a { padding: 7px 10px; font-size: .85rem; }
  .value-list { grid-template-columns: 1fr; }
  .step-list li { padding-left: 74px; }
  .step-list li::before { width: 50px; height: 50px; font-size: 1.35rem; }
  .trail-line { left: 23px; }
  .compare { font-size: .92rem; }
  .compare th, .compare td { padding-right: 10px; }
  .compare tbody th { width: 26%; }
  .tabs button { padding: 10px 12px; font-size: .9rem; }
  .ticker-lead { display: none; }
  .family { max-width: 420px; }
  .footer { grid-template-columns: 1fr; }
  .footer-contact { justify-self: start; text-align: left; }
  .alti { left: 10px; bottom: 10px; padding: 8px 12px 8px 10px; }
  .alti-body { min-width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal="wipe"] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .anagram-word span, .anagram-arrow path { transition: none; }
}

/* ============ Redesign: méně béžové, víc kontrastu ============ */
:root { --bg: #FCFBF8; --mist: #EEF2EC; --line: rgba(24, 58, 50, .14); }
body { background: var(--bg); }
.nav { background: rgba(252, 251, 248, .9); }
.nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(24, 58, 50, .06); }
.pill { background: #EFECE5; }

/* Káva: čistá světlá plocha, béžová jen jako akcent */
.strength { background: var(--mist); }
.compare tbody tr:hover { background: var(--mist); }
.compare thead th, .compare thead td { border-bottom-color: var(--alpine); }

/* Jak na to: tmavá sekce */
.steps { background: var(--alpine); color: var(--paper); }
.steps h2 { color: var(--paper); }
.tabs { background: rgba(246, 238, 226, .1); }
.tabs button { color: var(--paper); }
.tabs button:hover { background: rgba(246, 238, 226, .12); }
.tabs button[aria-selected="true"] { background: var(--kraft); color: var(--alpine); }
.trail-line { background: repeating-linear-gradient(to bottom, rgba(217, 188, 142, .3) 0 10px, transparent 10px 18px); }
.trail-fill { background: repeating-linear-gradient(to bottom, var(--kraft) 0 10px, transparent 10px 18px); }
.step-list li::before { background: var(--alpine); color: var(--kraft); border-color: rgba(217, 188, 142, .45); }
.step-list li.active::before { background: var(--kraft); color: var(--alpine); border-color: var(--kraft); }
.step-list h3 { color: var(--paper); }
.step-list p { color: rgba(246, 238, 226, .78); }
.step-list .step-tip { background: rgba(246, 238, 226, .08); border-left-color: var(--kraft); color: rgba(246, 238, 226, .85); }

/* O nás: světlá sekce */
.why { background: var(--bg); color: var(--ink); }
.why .section-head p { color: var(--ink-soft); }
.anagram { color: var(--bark); }
.anagram-from { -webkit-text-stroke-color: var(--bark); }
.anagram-word span { -webkit-text-stroke-color: rgba(24, 58, 50, .45); }
.anagram.flip .anagram-word span { color: var(--alpine); -webkit-text-stroke-color: var(--alpine); }
.family figcaption { color: var(--ink-soft); }

/* Hodnoty: oddělené jemnou linkou */
.values { border-top: 1px solid var(--line); }
.value-list li { border-top-color: var(--line); }

/* Zápis: tmavé finále s vrstevnicemi Lysé hory */
.signup { background: var(--alpine); color: var(--paper); }
.signup h2 { color: var(--paper); }
.signup-copy p { color: rgba(246, 238, 226, .8); }
.signup-form { background: var(--bg); color: var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.topo-map path { stroke: var(--kraft); }
.topo-map .topo-trail { stroke: var(--paper); }
.topo-map rect { fill: var(--alpine); }
.topo-map text { fill: var(--kraft); }
.topo-summit path { fill: var(--kraft); }
.topo-summit text { fill: var(--paper); stroke: var(--alpine); }
.topo-summit text + text { fill: var(--kraft); }

/* Drip bag: text vlevo, fotka vpravo */
.product-flip { grid-template-columns: minmax(0, 540px) minmax(0, 1fr); }
.product-flip .product-body { grid-column: 1; }
.product-flip::after {
  background:
    linear-gradient(90deg, rgba(16, 38, 33, .92) 0%, rgba(16, 38, 33, .78) 38%, rgba(16, 38, 33, .2) 70%, rgba(16, 38, 33, 0) 100%),
    linear-gradient(0deg, rgba(16, 38, 33, .45) 0%, rgba(16, 38, 33, 0) 40%);
}
.product-flip .product-photo img { object-position: 50% 40%; }
.product-flip .product-photo figcaption { left: auto; right: 18px; }
@media (max-width: 960px) {
  .product-flip { grid-template-columns: 1fr; }
}
.product-flip .product-photo { inset: 0 0 0 36%; }
.product-flip::after {
  background:
    linear-gradient(90deg, var(--alpine) 0%, var(--alpine) 36%, rgba(24, 58, 50, .55) 46%, rgba(24, 58, 50, 0) 62%),
    linear-gradient(0deg, rgba(16, 38, 33, .35) 0%, rgba(16, 38, 33, 0) 35%);
}
.product-flip .product-photo img { object-position: 50% 45%; }
@media (max-width: 960px) {
  .product-flip .product-photo { inset: auto; }
}

/* Jemný pruh „Brew anywhere“ s prosvítající fotkou */
.band { position: relative; overflow: hidden; background: var(--alpine); padding: 14px 0; color: var(--paper); }
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; opacity: .32; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--alpine), rgba(24, 58, 50, 0) 18%, rgba(24, 58, 50, 0) 82%, var(--alpine)); }
.band-track { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; width: max-content; }
.band-track span { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em; white-space: nowrap; }
.band-track svg { width: 18px; height: 12px; color: var(--kraft); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .band-track { animation: band 60s linear infinite; }
}
@keyframes band { to { transform: translateX(-50%); } }

/* Rodinná firma hned na začátku */
.why { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.why .section-head h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.name-story {
  margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; max-width: 620px;
}
.name-story h3 { font-size: 1.4rem; font-weight: 700; font-variation-settings: "wdth" 85; }
.name-story p { margin-top: 6px; color: var(--ink-soft); font-size: .98rem; }
.name-story .anagram-from { font-size: 1.1rem; -webkit-text-stroke-width: 1px; }
.name-story .anagram-arrow { width: 70px; margin: -2px 0 -4px; }
.name-story .anagram-word { font-size: clamp(2.6rem, 5vw, 3.6rem); margin-top: 0; }
.name-story .anagram-word span { -webkit-text-stroke-width: 1.5px; }
@media (max-width: 600px) {
  .name-story { grid-template-columns: 1fr; }
}

/* Logo v hlavičce i se sloganem Brew anywhere */
.brand-full img { height: 54px; width: auto; transition: height .3s var(--ease); }
.nav.scrolled .brand-full img { height: 44px; }
@media (max-width: 600px) { .brand-full img { height: 46px; } }

/* ============ Produkty s ilustracemi místo fotek ============ */
.product-row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px); align-items: center;
  margin-top: clamp(48px, 7vw, 96px);
}
.product-row-flip .product-art { order: 2; }
.product-art { margin: 0; }
.product-art svg { width: 100%; height: auto; display: block; }
.product-art figcaption { margin-top: 14px; font-size: .92rem; color: var(--ink-soft); max-width: 52ch; }
.product-art figcaption strong { color: var(--ink); font-weight: 600; }
.product-row .product-body { grid-column: auto; }
.product-row h3 {
  margin-top: 14px; color: var(--alpine);
  font-size: clamp(2.3rem, 4vw, 3.4rem); font-weight: 800; font-variation-settings: "wdth" 80; letter-spacing: -.02em;
}
.product-row .product-lead { margin-top: 6px; font-size: 1.3rem; font-weight: 500; color: var(--bark); }
.product-row .product-body > p:not(.product-lead) { margin-top: 14px; color: var(--ink-soft); max-width: 52ch; }
.product-row .status { background: var(--mist); color: var(--alpine); }

/* Tři údaje v jedné vyvážené řadě */
.specs-row {
  margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--alpine); border-bottom: 1px solid var(--line);
}
.specs-row div { padding: 14px 12px 14px 0; }
.specs-row div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.specs-row dt { font-size: .82rem; color: var(--ink-soft); }
.specs-row dd {
  margin: 4px 0 0; font-family: var(--display); font-weight: 700; color: var(--alpine);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-variation-settings: "wdth" 85; white-space: nowrap;
}
.anatomy { margin-top: clamp(48px, 7vw, 96px); }

/* O nás: text a fotka zarovnané nahoru, menší mezera pod úvodem */
.why { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 88px); }
.story { align-items: start; }
.family .photo-frame { aspect-ratio: 4 / 5; }

@media (max-width: 960px) {
  .product-row { grid-template-columns: 1fr; }
  .product-row-flip .product-art { order: 0; }
}
@media (max-width: 420px) {
  .specs-row div + div { padding-left: 10px; }
}
.story { align-items: stretch; }
.family { display: flex; flex-direction: column; }
.family .photo-frame { flex: 1; aspect-ratio: auto; min-height: 380px; }
.family .photo-frame img { object-position: 50% 40%; }
@media (max-width: 960px) {
  .family .photo-frame { flex: none; aspect-ratio: 4 / 5; min-height: 0; }
}

/* Nadpis v úvodu s barevným přechodem, který se ztrácí do fotky */
.hero-title span {
  background: linear-gradient(180deg, #FFFFFF 0%, #F6EEE2 55%, rgba(246, 238, 226, .72) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-title .l2 {
  background-image: linear-gradient(180deg, #F1DDB8 0%, #D9BC8E 55%, rgba(201, 164, 122, .7) 100%);
}

/* Těsnější mezery mezi sekcemi, nadpisy a texty */
.section-head p { margin-top: 12px; }
.section-head p + p { margin-top: 10px; }
.why { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.products { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(32px, 4vw, 56px); }
.product-row { margin-top: clamp(32px, 4.5vw, 64px); }
.anatomy { margin-top: clamp(32px, 4.5vw, 64px); }
.product-row h3 { margin-top: 10px; }
.product-row .product-body > p:not(.product-lead) { margin-top: 10px; }
.specs-row { margin-top: 20px; }
.values { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px); }
.signup { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.signup-copy p { margin-top: 12px; }
.name-story { margin-top: clamp(24px, 3vw, 36px); padding-top: 20px; }

/* Nadpis se nebarví, jen se směrem dolů ztrácí do fotky */
.hero-title span {
  background-image: linear-gradient(180deg, rgba(246, 238, 226, 1) 0%, rgba(246, 238, 226, .95) 45%, rgba(246, 238, 226, .25) 100%);
}
.hero-title .l2 {
  background-image: linear-gradient(180deg, rgba(217, 188, 142, 1) 0%, rgba(217, 188, 142, .95) 45%, rgba(217, 188, 142, .2) 100%);
}

/* Fade text: písmena nadpisu se postupně vynoří z rozmazání */
.hero-title.split .l1, .hero-title.split .l2 { animation: none; }
.hero-title .ch {
  display: inline-block;
  background-image: inherit;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-title .ch { opacity: 0; animation: fade-letter .9s cubic-bezier(.2, .7, .2, 1) forwards; }
}
@keyframes fade-letter {
  from { opacity: 0; filter: blur(10px); transform: translateY(14px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
.hero-title.split .l1, .hero-title.split .l2 { background: none; -webkit-text-fill-color: initial; }
.hero-title.split .l1 .ch {
  background-image: linear-gradient(180deg, rgba(246, 238, 226, 1) 0%, rgba(246, 238, 226, .95) 45%, rgba(246, 238, 226, .25) 100%);
}
.hero-title.split .l2 .ch {
  background-image: linear-gradient(180deg, rgba(217, 188, 142, 1) 0%, rgba(217, 188, 142, .95) 45%, rgba(217, 188, 142, .2) 100%);
}

/* Nadpis zpět v plných barvách (bez přechodu) */
.hero-title span, .hero-title .ch,
.hero-title.split .l1 .ch, .hero-title.split .l2 .ch {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}
.hero-title .l1 { color: var(--paper); }
.hero-title .l2 { color: var(--kraft); }
.hero-title .l1, .hero-title .l1 .ch { color: var(--paper); }
.hero-title .l2, .hero-title .l2 .ch { color: var(--kraft); }

/* Rodinná fotka ve stejném ladění jako úvodní fotka */
.family { position: relative; }
.family .photo-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(16, 38, 33, .78) 0%, rgba(16, 38, 33, .25) 38%, rgba(16, 38, 33, .08) 70%),
    rgba(16, 38, 33, .12);
}
.family .photo-frame img { filter: saturate(.85) contrast(1.04); }
.family figcaption {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; margin: 0; padding: 0 20px;
  text-align: center; color: rgba(246, 238, 226, .92); font-size: .9rem;
}

/* Bez dělicí čáry nad hodnotami */
.values { border-top: 0; }

/* Nadpis sekce s produkty na střed */
.products > .section-head { margin-left: auto; margin-right: auto; text-align: center; max-width: 760px; }
.products > .section-head p { margin-left: auto; margin-right: auto; }

/* Co je uvnitř: menší obrázek blíž k textu */
.anatomy {
  grid-template-columns: minmax(0, 340px) minmax(0, 520px);
  justify-content: center; gap: clamp(24px, 4vw, 56px);
}
.anatomy-art svg { max-width: 340px; }
@media (max-width: 960px) {
  .anatomy { grid-template-columns: 1fr; justify-items: center; }
  .anatomy-art svg { max-width: 300px; }
}

/* Vyvážené řádky bez osamocených slov */
.section-head h2, .section-head p, .hero-lede { text-wrap: balance; }

/* Tenká čára mezi O nás a kávou – stejná jako nad dlaždicemi Výběrová káva atd. */
.why { padding-bottom: 0; }
.why::after { content: ""; display: block; border-top: 2px solid var(--line); margin-top: clamp(40px, 5vw, 64px); }

/* Patička: dva kontakty vedle sebe s vlaječkami jazyků */
.footer-contact { display: flex; flex-wrap: wrap; gap: 20px clamp(28px, 4vw, 56px); justify-content: flex-end; text-align: left; }
.footer-contact .person { font-style: normal; display: grid; gap: 4px; align-content: start; }
.footer-contact .langs { display: flex; gap: 6px; margin: 2px 0 4px; }
.footer-contact .flag { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(235, 221, 201, .55); }
@media (max-width: 760px) { .footer-contact { justify-content: flex-start; } }

/* Přepínač jazyka vpravo vedle Zapsat se: zkratka a pod ní kulatá vlaječka */
.nav-end { justify-self: end; display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 6px; border-radius: 10px; text-decoration: none; color: var(--ink);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; line-height: 1;
  transition: background-color .2s ease;
}
.lang-switch:hover { background: rgba(24, 58, 50, .08); }
.lang-switch .flag { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(24, 58, 50, .18); }

/* Vlaječka na stejné ose jako tlačítko, zkratka pod ní (nevychyluje zarovnání) */
.lang-switch { position: relative; padding: 4px; }
.lang-switch .flag { display: block; width: 24px; height: 24px; }
.lang-switch span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: -1px; font-size: .64rem; }

/* Vlaječka + zkratka jako jeden celek, vystředěný s tlačítkem */
.lang-switch { flex-direction: column; gap: 2px; padding: 3px 4px; }
.lang-switch span { position: static; transform: none; margin: 0; font-size: .64rem; }
