/* ==========================================================================
   TABLETOVASUL.CZ — GLOBAL STYLES (BEM)
   Scandi / apothecary aesthetic
   ========================================================================== */

:root {
  --bg: #f4f1ea;
  --bg-alt: #ecead9;
  --ink: #0e1116;
  --ink-2: #3a3f47;
  --muted: #7a7f86;
  --line: #d9d3c2;
  --line-2: #ccc7b5;
  --accent: #1d3a5f;
  --accent-light: #dde7f1;
  --accent-hover: #0e2340;
  --success: #2f5d3b;
  --error: #a04141;
  --card-bg: #ffffff;
  --input-bg: #f4f1ea;
  --hero-visual-dark: #0e2340;
  /* Invariantní "band" tokeny — vždy tmavý pruh se světlým textem (topbar, marquee, primary btn) */
  --band-bg: #0e1116;
  --band-text: #f4f1ea;
  --band-muted: #c3d2e4;
}

:root[data-theme="dark"] {
  --bg: #0e1116;
  --bg-alt: #151a1f;
  --ink: #eeeae0;
  --ink-2: #c3bfb5;
  --muted: #8a8e93;
  --line: #2a2f35;
  --line-2: #3a3f47;
  --accent: #9fbadf;
  --accent-light: #1d3a5f;
  --accent-hover: #c3d2e4;
  --success: #7ec08e;
  --error: #d97070;
  --card-bg: #1a1f25;
  --input-bg: #1a1f25;
  --hero-visual-dark: #050810;
  /* V dark mode jsou bandy o krok tmavší, aby kontrastovaly od pozadí */
  --band-bg: #050810;
  --band-text: #eeeae0;
  --band-muted: #9fbadf;
}

html { color-scheme: light dark; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body { transition: background-color 0.35s ease, color 0.35s ease; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.body--nav-open { overflow: hidden; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 3vw, 32px); }
h4 { font-size: 20px; }

em { color: var(--accent); font-style: italic; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.container--narrow { max-width: 960px; }
@media (max-width: 1024px) { .container { padding: 0 32px; } }
@media (max-width: 768px) { .container { padding: 0 24px; } }
@media (max-width: 480px) { .container { padding: 0 20px; } }

.muted { color: var(--muted); }
.text-center { text-align: center; }
.lede, .hero__lede, .section__lede { font-size: 18px; color: var(--ink-2); max-width: 640px; line-height: 1.6; }
.page-wrap { position: relative; z-index: 2; }

/* --- SKIP LINK --- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  padding: 10px 16px; background: var(--band-bg); color: var(--band-text);
  font-size: 14px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; outline: 2px solid var(--accent-light); outline-offset: 2px; }

/* --- TOP BAR (animated ticker) — vždy tmavý pruh, bez ohledu na theme --- */
.topbar {
  background: var(--band-bg); color: var(--band-text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ticker { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker-item { padding: 12px 24px; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; opacity: 0.9; }
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--band-text); opacity: 0.5; }
.ticker a { color: var(--band-muted); border-bottom: 1px solid rgba(195,210,228,0.3); }
.ticker a:hover { color: var(--band-text); border-color: var(--band-text); }

/* --- HEADER --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}

/* --- THEME TOGGLE --- */
.theme-toggle {
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  padding: 0;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle__icon { pointer-events: none; }
.theme-toggle__icon--moon { display: none; }
html[data-theme="dark"] .theme-toggle__icon--sun { display: none; }
html[data-theme="dark"] .theme-toggle__icon--moon { display: inline; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: 'Instrument Serif', serif; font-size: 26px; letter-spacing: -0.02em; line-height: 1; }
.logo__img { width: 32px; height: 32px; flex-shrink: 0; display: block; }
.logo__img--dark { display: none; }
html[data-theme="dark"] .logo__img--light { display: none; }
html[data-theme="dark"] .logo__img--dark { display: block; }
.logo__text { font-weight: 400; line-height: 1; display: inline-flex; align-items: baseline; }
.logo__tld { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin-left: 2px; align-self: baseline; }

.nav { display: flex; gap: 26px; align-items: center; }
.nav a { font-size: 16px; font-weight: 500; color: var(--ink); transition: color 0.2s, opacity 0.2s; white-space: nowrap; opacity: 0.82; }
.nav a:hover { color: var(--ink); opacity: 1; }

.site-header__actions { display: flex; gap: 8px; align-items: center; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: none; border: 1px solid var(--line); border-radius: 100px;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle__bar { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.2s; }
.nav-toggle--open .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle--open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle--open .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .site-header__actions { order: 2; gap: 6px; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 16px; gap: 2px;
    max-height: calc(100vh - 100px); overflow-y: auto;
  }
  .nav.nav--open { display: flex; }
  .nav a { padding: 14px 12px; border-radius: 6px; font-size: 16px; }
  .nav a:hover { background: var(--bg-alt); }
  /* Theme toggle přenesen do menu jako item */
  .site-header__actions .theme-toggle { display: none; }
  .nav-theme-toggle {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 12px; padding: 14px 12px;
    border-top: 1px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted);
    background: none; border-left: none; border-right: none; border-bottom: none;
    cursor: pointer; width: 100%;
  }
  .nav-theme-toggle__icon { font-size: 18px; color: var(--ink); }
}
@media (min-width: 1025px) {
  .nav-theme-toggle { display: none; }
}
@media (max-width: 520px) {
  .btn__label-desktop { display: none; }
  /* Na malém telefonu header actions zmenšíme na ikony + badge */
  .site-header__inner { gap: 8px; padding-top: 12px; padding-bottom: 12px; }
  .logo { font-size: 22px; }
  .site-header__actions .btn { padding: 0; width: 42px; height: 42px; border-radius: 50%; justify-content: center; }
  .site-header__actions .btn.cart-btn { position: relative; padding: 0; }
  .site-header__actions .btn.cart-btn .cart-count {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 4px;
    font-size: 10px;
  }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  border: none; cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--pill { border-radius: 100px; }
.btn--sm { padding: 10px 16px; font-size: 13px; }
.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--primary { background: var(--band-bg); color: var(--band-text); }
.btn--primary:hover { background: var(--accent); color: var(--band-text); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(29, 58, 95, 0.4); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(255,255,255,0.4); }
.btn--block { width: 100%; justify-content: center; }
.btn__icon { flex-shrink: 0; display: inline-block; }

.cart-count {
  background: var(--band-text); color: var(--band-bg);
  border-radius: 50%;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-btn .cart-count { background: var(--band-text); color: var(--band-bg); }

/* --- EYEBROW --- */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--ink-2); display: inline-block; }

/* --- BREADCRUMBS --- */
.breadcrumbs { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 24px 0 28px; }
@media (max-width: 768px) { .breadcrumbs { padding: 16px 0 20px; } }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span { margin: 0 8px; opacity: 0.6; }

/* --- HERO --- */
.hero { padding: 80px 0 112px; position: relative; z-index: 2; }
@media (max-width: 1024px) { .hero { padding: 64px 0 96px; } }
@media (max-width: 768px) { .hero { padding: 48px 0 72px; } }
.hero__grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 56px; align-items: end; }
.hero__copy { display: flex; flex-direction: column; }
.hero__title { margin: 0; font-size: clamp(42px, 7.5vw, 104px); }
.hero__lede { margin: 28px 0 36px; max-width: 500px; font-size: clamp(16px, 1.6vw, 18px); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stat { font-size: 13px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.4; }
.hero-stat strong { display: block; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(28px, 3.4vw, 38px); color: var(--ink); line-height: 1; letter-spacing: -0.01em; text-transform: none; margin-bottom: 8px; }
@media (max-width: 640px) { .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

.hero__visual {
  position: relative; aspect-ratio: 3/4;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
html[data-theme="dark"] .hero__visual {
  background: #151a22;
  border-color: #2a2f35;
}
.hero__visual .salt-scene { width: 100%; height: 100%; position: relative; z-index: 1; }
.salt-pile { filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35)); }

/* --- HERO USP STACK — „Od pytle po kamion" --- */
.hero__usps {
  display: flex; flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  align-self: stretch;
  max-height: 100%;
}
html[data-theme="dark"] .hero__usps { background: #151a22; border-color: #2a2f35; }
.hero__usps-head {
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.hero__usps-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
}
.hero__usps-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15; letter-spacing: -0.02em;
}
.hero__usps-title em { color: var(--accent); font-style: italic; }
.hero-usp {
  display: grid;
  grid-template-columns: 22px 40px 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  flex: 1;
}
.hero-usp:last-child { border-bottom: none; }
.hero-usp__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; color: var(--accent);
  margin-top: 4px; min-width: 20px;
}
.hero-usp__icon {
  width: 36px; height: 36px; flex-shrink: 0;
  color: var(--ink); opacity: 0.85;
}
.hero-usp__text strong {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-weight: 400; font-size: 18px;
  line-height: 1.15; margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.hero-usp__text span { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.hero-usp__text span b { color: var(--ink); font-weight: 600; }
@media (max-width: 768px) {
  .hero-usp { padding: 16px 18px; gap: 12px; }
  .hero-usp__text strong { font-size: 17px; }
  .hero__usps-head { padding: 18px 18px 14px; }
}

/* Padající zrnka — každé má vlastní delay, duration + jemný horizontální wobble */
@keyframes salt-fall {
  0%   { transform: translate(0, -30px) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.95; }
  50%  { transform: translate(2px, 130px) rotate(45deg); }
  78%  { opacity: 1; }
  100% { transform: translate(0, 268px) rotate(90deg); opacity: 0; }
}
@keyframes salt-fall-alt {
  0%   { transform: translate(0, -30px) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.95; }
  50%  { transform: translate(-2px, 130px) rotate(-45deg); }
  78%  { opacity: 1; }
  100% { transform: translate(0, 268px) rotate(-90deg); opacity: 0; }
}
.salt-grain { animation: salt-fall 2.4s linear infinite; transform-origin: center; transform-box: fill-box; }
.salt-grain--1  { animation: salt-fall     2.2s linear infinite; animation-delay: 0s; }
.salt-grain--2  { animation: salt-fall-alt 2.6s linear infinite; animation-delay: 0.3s; }
.salt-grain--3  { animation: salt-fall     2.4s linear infinite; animation-delay: 0.6s; }
.salt-grain--4  { animation: salt-fall-alt 2.8s linear infinite; animation-delay: 0.9s; }
.salt-grain--5  { animation: salt-fall     2.2s linear infinite; animation-delay: 1.2s; }
.salt-grain--6  { animation: salt-fall-alt 2.5s linear infinite; animation-delay: 1.5s; }
.salt-grain--7  { animation: salt-fall     2.3s linear infinite; animation-delay: 1.8s; }
.salt-grain--8  { animation: salt-fall-alt 2.7s linear infinite; animation-delay: 0.15s; }
.salt-grain--9  { animation: salt-fall     2.4s linear infinite; animation-delay: 0.45s; }
.salt-grain--10 { animation: salt-fall-alt 2.6s linear infinite; animation-delay: 0.75s; }
.salt-grain--11 { animation: salt-fall     2.3s linear infinite; animation-delay: 1.05s; }
.salt-grain--12 { animation: salt-fall-alt 2.5s linear infinite; animation-delay: 1.35s; }
.salt-grain--13 { animation: salt-fall     2.7s linear infinite; animation-delay: 1.65s; }
.salt-grain--14 { animation: salt-fall-alt 2.3s linear infinite; animation-delay: 1.95s; }
.salt-grain--15 { animation: salt-fall     2.5s linear infinite; animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .salt-grain { animation: none; opacity: 0; }
}

.big-num { position: relative; text-align: center; padding: 24px; }
.big-num__label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; display: block; margin-bottom: 10px; }
.big-num__value, .big-num__pct { font-family: 'Instrument Serif', serif; font-size: clamp(72px, 10vw, 128px); line-height: 0.9; color: var(--accent); letter-spacing: -0.04em; font-style: italic; font-weight: 500; }
.big-num__hint { font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); display: block; margin-top: 12px; }
html[data-theme="dark"] .big-num__value,
html[data-theme="dark"] .big-num__pct { color: #9fbadf; }

/* Crystal polygons v pozadí — tlumené, jen jako vzor */
.hero__visual .crystal-bg { position: absolute; inset: 0; pointer-events: none; }
.hero__visual .crystal-bg g:first-of-type polygon { fill: var(--accent); opacity: 0.08; stroke: var(--accent); stroke-opacity: 0.25; }
.hero__visual .crystal-bg g:last-of-type line { stroke: var(--accent); stroke-opacity: 0.2; }
html[data-theme="dark"] .hero__visual .crystal-bg g:first-of-type polygon { fill: #7da3c9; opacity: 0.12; stroke: #7da3c9; }
html[data-theme="dark"] .hero__visual .crystal-bg g:last-of-type line { stroke: #7da3c9; stroke-opacity: 0.25; }

.hero-badge {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em;
  color: #c3d2e4; text-transform: uppercase;
  pointer-events: none;
}
.hero-badge strong { display: block; color: var(--band-text); font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; margin-top: 3px; }
.hero-badge--tl { top: 24px; left: 24px; }
.hero-badge--tr { top: 24px; right: 24px; text-align: right; }
.hero-badge--bl { bottom: 24px; left: 24px; }
.hero-badge--br { bottom: 24px; right: 24px; text-align: right; }
@media (max-width: 480px) {
  .hero-badge { font-size: 10px; }
  .hero-badge--tl, .hero-badge--tr { top: 16px; }
  .hero-badge--bl, .hero-badge--br { bottom: 16px; }
  .hero-badge--tl, .hero-badge--bl { left: 16px; }
  .hero-badge--tr, .hero-badge--br { right: 16px; }
}

@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 50px 0 70px; } }

/* --- MARQUEE (legacy ticker animation) — zachováno pro topbar --- */
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- BRAND STRIP — statický oddělovač mezi sekcemi --- */
.brand-strip {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative; z-index: 2;
}
.brand-strip__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.brand-strip__label,
.brand-strip__purity {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  flex-shrink: 0;
}
.brand-strip__list {
  display: flex; flex-wrap: wrap; gap: 28px;
  list-style: none; padding: 0; margin: 0;
  flex: 1; justify-content: center;
}
.brand-strip__list li {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(16px, 1.7vw, 20px);
  color: var(--ink); letter-spacing: -0.01em;
  position: relative;
}
.brand-strip__list li + li::before {
  content: '·';
  position: absolute; left: -17px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent); opacity: 0.5;
}
@media (max-width: 768px) {
  .brand-strip__inner { flex-direction: column; gap: 10px; text-align: center; }
  .brand-strip__list { gap: 18px; justify-content: center; }
  .brand-strip__list li + li::before { left: -11px; }
  .brand-strip__list li { font-size: 15px; }
}

/* --- SECTION --- */
.section { padding: 112px 0; position: relative; z-index: 2; }
.section--alt { background: var(--bg-alt); }
@media (max-width: 1024px) { .section { padding: 88px 0; } }
@media (max-width: 768px) { .section { padding: 72px 0; } }
@media (max-width: 480px) { .section { padding: 56px 0; } }
.section__head { margin-bottom: 64px; max-width: 760px; }
@media (max-width: 768px) { .section__head { margin-bottom: 40px; } }
.section__title { margin-bottom: 18px; }
.section__lede { margin-top: 12px; }

.section__head--grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: end;
  max-width: none;
}
.section__head--grid .eyebrow { margin-bottom: 18px; }
.section__head--grid .eyebrow__num { font-family: 'JetBrains Mono', monospace; color: var(--accent); margin-right: 10px; }
.section__head--grid .section__title { margin-bottom: 0; }
.section__head--grid .section__lede { margin: 0 0 4px auto; max-width: 420px; font-size: 16px; color: var(--ink-2); }
@media (max-width: 768px) {
  .section__head--grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; align-items: start; }
  .section__head--grid .section__lede { margin-left: 0; max-width: none; }
}

/* --- PRODUCT LIST --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* 6-col grid for homepage: first 2 feature cards span 3, rest span 2 → 2+2+2 row */
.product-grid--home { grid-template-columns: repeat(6, 1fr); }
.product-grid--home .product-card { grid-column: span 2; }
.product-grid--home .product-card--feature { grid-column: span 3; }
@media (max-width: 960px) {
  .product-grid--home { grid-template-columns: repeat(2, 1fr); }
  .product-grid--home .product-card,
  .product-grid--home .product-card--feature { grid-column: span 1; }
}
@media (max-width: 560px) {
  .product-grid--home { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  position: relative;
}
.product-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 12px 32px -12px rgba(14, 17, 22, 0.18); }
.product-card__media {
  position: relative; aspect-ratio: 1;
  background: #ffffff;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 6%;
}
html[data-theme="dark"] .product-card__media { background: #ffffff; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; display: block; }
.product-card--feature .product-card__media { padding: 5%; aspect-ratio: 1; }
.product-card:hover .product-card__media img { transform: scale(1.02); }
.product-card--feature .product-card__media { aspect-ratio: 16/10; }
.product-card--feature .product-card__title { font-size: clamp(24px, 2.6vw, 30px); }

.product-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-card__category, .product-card__origin { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.product-card__title { font-family: 'Instrument Serif', serif; font-size: 22px; margin-bottom: 8px; line-height: 1.15; }
.product-card__desc { color: var(--ink-2); font-size: 14px; margin-bottom: 16px; flex: 1; }
.product-card__meta, .product-card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.product-card__foot { border-top: 1px solid var(--line); padding-top: 20px; align-items: center; }
.product-card__price, .price-main { font-family: 'Instrument Serif', serif; font-size: 26px; line-height: 1; letter-spacing: -0.01em; }
.price-sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted); letter-spacing: 0.05em; display: block; margin-top: 4px; }
.brand-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Stock dot overlay (upper right of image) */
.product-card__stock {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.92);
  padding: 5px 10px; border-radius: 100px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  font-weight: 600; color: var(--success); letter-spacing: 0.04em;
  z-index: 1;
}
.product-card__stock::before {
  content: ''; width: 6px; height: 6px;
  background: var(--success); border-radius: 50%;
  animation: pulse-stock 2s infinite;
}
.product-card__stock--out { color: var(--error); }
.product-card__stock--out::before { background: var(--error); animation: none; }

/* Round + button for adding to cart from product cards */
.add-btn-round {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink); color: var(--bg);
  border: none; cursor: pointer;
  font-family: 'Instrument Serif', serif; font-size: 28px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.25s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0; padding: 0;
}
.add-btn-round:hover:not(:disabled) { background: var(--accent); }
.add-btn-round.is-added {
  background: var(--success);
  color: transparent;
  cursor: default;
  pointer-events: none;
}
.add-btn-round.is-added::after {
  content: '✓';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--band-text);
  font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 700;
}
.add-btn-round { position: relative; }

.stock-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--success); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.stock-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse-stock 2s infinite; }
.stock-badge--out { color: var(--error); }
.stock-badge--out::before { background: var(--error); animation: none; }
@keyframes pulse-stock { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* --- BENEFITS --- */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--card-bg); }
.benefit { padding: 40px 32px; border-right: 1px solid var(--line); transition: background 0.3s; }
.benefit:hover { background: var(--bg); }
.benefit:last-child { border-right: none; }
.benefit__num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 24px; }
.benefit h4 { font-family: 'Instrument Serif', serif; font-size: 24px; margin-bottom: 10px; line-height: 1.1; }
.benefit p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
@media (max-width: 900px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } .benefit:nth-child(2n) { border-right: none; } .benefit:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 500px) { .benefits-grid { grid-template-columns: 1fr; } .benefit { border-right: none; border-bottom: 1px solid var(--line); } .benefit:last-child { border-bottom: none; } }

/* --- GUIDE CARDS --- */
.guide-wrap { background: var(--bg-alt); padding: 100px 0; position: relative; z-index: 2; }
@media (max-width: 768px) { .guide-wrap { padding: 70px 0; } }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 840px) { .guide-grid { grid-template-columns: 1fr; } }

.guide-card {
  padding: 48px 40px; border-radius: 6px;
  position: relative; overflow: hidden;
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.3s, box-shadow 0.3s; color: inherit;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -12px rgba(14,17,22,0.18); }
.guide-card--light { background: linear-gradient(160deg, #dde7f1 0%, #c5d6e6 100%); color: #0e1116; }
.guide-card--dark { background: linear-gradient(160deg, #1d3a5f 0%, #0e2340 100%); color: #f4f1ea; }

/* V dark mode tlumíme světlou guide kartu, aby nebyla jak bílý banner */
html[data-theme="dark"] .guide-card--light {
  background: linear-gradient(160deg, #2a3f5a 0%, #1a2a40 100%);
  color: #dde7f1;
}
html[data-theme="dark"] .guide-card--light .guide-card__tag,
html[data-theme="dark"] .guide-card--light .guide-chip { border-color: #7da3c9; color: #dde7f1; }

.guide-card__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.guide-card__letter { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.1em; }
.guide-card__tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid currentColor;
  border-radius: 100px; opacity: 0.75;
}

.guide-card__body { margin-top: auto; }
.guide-card h3 { font-family: 'Instrument Serif', serif; font-size: clamp(32px, 4.5vw, 52px); line-height: 1; letter-spacing: -0.02em; margin: 56px 0 18px; color: inherit; }
.guide-card h3 em { font-style: italic; }
.guide-card--light h3 em { color: var(--accent); }
.guide-card--dark h3 em { color: #9fbadf; }
.guide-card p { font-size: 15px; opacity: 0.85; max-width: 380px; margin-bottom: 24px; line-height: 1.55; }
.guide-card--dark p { color: var(--bg); opacity: 0.8; }

.guide-card__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.guide-chip {
  padding: 8px 14px;
  border: 1px solid currentColor; border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  opacity: 0.85; color: inherit;
  background: transparent;
}

/* --- REVEAL ON SCROLL (jemnější) --- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- PRODUCT DETAIL --- */
.product-detail { padding: 24px 0 120px; }
.pd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; padding: 16px 0 72px; }
@media (max-width: 840px) { .pd__grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 48px; } }
.pd__media { aspect-ratio: 1; background: #ffffff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 10%; }
html[data-theme="dark"] .pd__media { background: #ffffff; border-color: var(--line); }
.pd__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd__info { padding-top: 8px; }
.pd__title { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.pd__short { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
.pd__price { padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 24px 0; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.pd__price-main { font-family: 'Instrument Serif', serif; font-size: 48px; line-height: 1; }
.pd__price-sub { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.pd__specs { list-style: none; margin: 0 0 24px; padding: 0; }
.pd__specs li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pd__specs li strong { font-weight: 500; color: var(--ink-2); }
.pd__specs li span { font-family: 'JetBrains Mono', monospace; font-size: 12px; text-align: right; }
.pd__buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0; }
.pd__qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.pd__qty button { background: none; border: none; padding: 10px 14px; cursor: pointer; font-size: 18px; color: var(--ink); }
.pd__qty button:hover { background: var(--bg-alt); }
.pd__qty input { border: none; text-align: center; width: 50px; font-family: 'JetBrains Mono', monospace; background: none; font-size: 15px; padding: 10px 0; }
.pd__delivery {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-alt); border-left: 3px solid var(--accent);
  padding: 16px 20px; font-size: 14px; color: var(--ink-2);
  border-radius: 0 6px 6px 0; margin: 24px 0 0;
}
html[data-theme="dark"] .pd__delivery { background: #1a1f25; }
.pd__delivery strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.pd__delivery span { font-size: 13px; line-height: 1.55; }
.pd__delivery svg { color: var(--accent); }

/* Mode selector */
.pd__mode-select {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 20px 0 20px;
}
@media (max-width: 600px) { .pd__mode-select { grid-template-columns: 1fr; } }
.pd__mode {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 6px;
  cursor: pointer; transition: border 0.2s, background 0.2s;
  background: var(--card-bg);
}
.pd__mode input { margin: 3px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.pd__mode strong { display: block; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 17px; line-height: 1.1; margin-bottom: 3px; }
.pd__mode span { font-size: 11px; line-height: 1.4; color: var(--ink-2); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em; }
.pd__mode:has(input:checked) {
  border-color: var(--accent); background: var(--accent-light);
}
html[data-theme="dark"] .pd__mode:has(input:checked) { background: #1d3a5f; border-color: #7da3c9; }

/* Buy sections — switch by mode */
.pd__buy {
  display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap;
  padding: 20px; background: var(--bg-alt); border-radius: 8px;
}
html[data-theme="dark"] .pd__buy { background: #1a1f25; }
.pd__buy--hidden { display: none; }
.pd__buy-btn { flex: 1; min-width: 180px; white-space: nowrap; }
.pd__buy-info { flex: 1; min-width: 180px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.pd__buy-info strong { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 20px; }
.pd__buy-info span { font-size: 13px; color: var(--ink-2); }

/* Label vedle qty pill (jen na detail page) */
.pd__qty { gap: 12px; border: none; border-radius: 0; overflow: visible; display: inline-flex; align-items: center; }
.pd__qty-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.pd__qty-input {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 100px;
  background: var(--card-bg); overflow: hidden;
}
.pd__qty-input button { background: none; border: none; padding: 0; width: 44px; height: 44px; cursor: pointer; font-size: 20px; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.pd__qty-input button:hover { background: var(--bg-alt); }
.pd__qty-input input {
  border: none; text-align: center; width: 48px;
  font-family: 'JetBrains Mono', monospace; background: none;
  font-size: 16px; padding: 0; color: var(--ink);
  -moz-appearance: textfield; appearance: textfield;
  height: 44px;
}
.pd__qty-input input:focus { outline: none; }
.pd__qty-input input::-webkit-outer-spin-button,
.pd__qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Stock inline v eyebrow — ne v obrázku */
.pd__stock { color: var(--success); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.pd__stock::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); display: inline-block; animation: pulse-stock 2s infinite; }
.pd__stock--out { color: var(--error); }
.pd__stock--out::before { background: var(--error); animation: none; }

/* Rich content sections */
.pd__content {
  display: flex; flex-direction: column; gap: 56px;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.pd__section header { margin-bottom: 24px; }
.pd__section-title { font-family: 'Instrument Serif', serif; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 6px 0 0; }
.pd__section-title em { color: var(--accent); font-style: italic; }
.pd__lede { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 720px; margin-bottom: 28px; }

.pd__usps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--bg-alt); border-radius: 8px; padding: 28px 24px;
}
html[data-theme="dark"] .pd__usps { background: #1a1f25; }
@media (max-width: 640px) { .pd__usps { grid-template-columns: repeat(2, 1fr); } }
.pd__usp strong { display: block; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.02em; }
.pd__usp span { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.pd__usecases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px) { .pd__usecases { grid-template-columns: 1fr; } }
.pd__usecases li {
  padding: 18px 22px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--card-bg);
}
.pd__usecases strong { display: block; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 20px; margin-bottom: 4px; }
.pd__usecases span { font-size: 13px; line-height: 1.55; color: var(--ink-2); }

.pd__shipping-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .pd__shipping-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pd__shipping-grid { grid-template-columns: 1fr; } }
.pd__shipping-card {
  padding: 18px 18px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg-alt);
}
html[data-theme="dark"] .pd__shipping-card { background: #1a1f25; }
.pd__shipping-card strong { display: block; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 18px; margin-bottom: 4px; }
.pd__shipping-card span { font-size: 12px; line-height: 1.55; color: var(--ink-2); }
.pd__shipping-note { margin-top: 18px; font-size: 14px; }
.pd__shipping-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table td:first-child { color: var(--ink-2); font-weight: 500; }
.spec-table td:last-child { font-family: 'JetBrains Mono', monospace; font-size: 12px; text-align: right; }

/* --- STICKY MOBILE CTA --- */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--ink); color: var(--bg);
  padding: 12px 16px;
  box-shadow: 0 -10px 30px -10px rgba(14, 17, 22, 0.3);
  align-items: center; justify-content: space-between; gap: 12px;
}
.sticky-cta__summary { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.sticky-cta__icon { flex-shrink: 0; opacity: 0.9; }
.sticky-cta__count { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; opacity: 0.75; white-space: nowrap; }
.sticky-cta__sep { opacity: 0.4; }
.sticky-cta__total { font-family: 'Instrument Serif', serif; font-size: 22px; line-height: 1; white-space: nowrap; }
.sticky-cta .btn { flex-shrink: 0; }
@media (max-width: 840px) { .sticky-cta:not([hidden]) { display: flex; } body.has-sticky-cta { padding-bottom: 80px; } }
/* Na stránkách, kde už uživatel je v košíku / objednávce / po objednávce, sticky bar nedává smysl */
body.page-cart .sticky-cta,
body.page-checkout .sticky-cta,
body.page-thanks .sticky-cta { display: none !important; }
body.page-cart.has-sticky-cta,
body.page-checkout.has-sticky-cta,
body.page-thanks.has-sticky-cta { padding-bottom: 0; }

/* --- ADD-TO-CART LOADING STATE --- */
.js-add-to-cart { position: relative; }
.js-add-to-cart.is-loading { color: transparent !important; cursor: wait; pointer-events: none; }
.js-add-to-cart.is-loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid var(--bg);
  border-top-color: transparent;
  opacity: 0.9;
  transform-origin: center;
  animation: cart-spin 0.7s linear infinite;
}
.js-add-to-cart.is-loading > * { visibility: hidden; }
@keyframes cart-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- CART POPUP --- */
.cart-popup { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cart-popup[hidden] { display: none; }
.cart-popup__backdrop { position: absolute; inset: 0; background: rgba(14, 17, 22, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: cart-popup-fade 0.2s ease-out; }
.cart-popup__panel {
  position: relative;
  background: var(--bg); color: var(--ink);
  border-radius: 24px;
  padding: 32px 28px 24px;
  max-width: 420px; width: 100%;
  box-shadow: 0 30px 80px -20px rgba(14, 17, 22, 0.35);
  text-align: center;
  animation: cart-popup-pop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cart-popup__close {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  background: none; border: none; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--muted);
}
.cart-popup__close:hover { color: var(--ink); }
.cart-popup__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--success, #2f9e61); color: var(--band-text, #fff);
  margin-bottom: 14px;
}
.cart-popup__title { font-family: 'Instrument Serif', serif; font-size: 28px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.01em; }
.cart-popup__item { font-size: 14px; color: var(--ink-2); margin: 0 0 20px; }
.cart-popup__item:empty { display: none; }
.cart-popup__actions { display: flex; flex-direction: column; gap: 10px; }
.cart-popup__actions .btn { width: 100%; }
@media (min-width: 520px) {
  .cart-popup__actions { flex-direction: row-reverse; justify-content: center; }
  .cart-popup__actions .btn { width: auto; flex: 1; }
}
body.body--popup-open { overflow: hidden; }
@keyframes cart-popup-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cart-popup-pop { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* --- CATEGORY HEAD --- */
.category-head { padding: 48px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.category-head__title { font-size: clamp(40px, 6vw, 72px); margin-bottom: 18px; }
.category-head__intro { font-size: 17px; color: var(--ink-2); line-height: 1.7; max-width: 720px; }
.category-head__intro + .category-head__intro, .category-head__intro p + p { margin-top: 14px; }

/* --- FAQ --- */
.faq { margin: 32px 0; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-family: 'Instrument Serif', serif; font-size: 20px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: 'JetBrains Mono', monospace; font-size: 22px; color: var(--accent); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div, .faq details > p { padding: 14px 0 4px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.faq details > div p + p { margin-top: 10px; }
.faq--expanded details { border-bottom: 1px solid var(--line); }

/* --- BLOG --- */
.blog-head { padding: 64px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 48px; max-width: 760px; }
.blog-head h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 18px; }

.blog-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-bottom: 80px; }
.blog-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 4px; padding: 32px 28px; transition: all 0.25s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 20px 50px -20px rgba(14, 17, 22, 0.2); }
.blog-card__meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.blog-card__title { font-family: 'Instrument Serif', serif; font-size: 26px; line-height: 1.15; margin-bottom: 12px; }
.blog-card__excerpt { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin-bottom: 20px; flex: 1; }
.blog-card__link { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; align-self: flex-start; }
.blog-card__link::after { content: ' →'; }

.blog-post { padding: 24px 0 80px; }
.blog-post__head { max-width: 780px; margin: 0 auto 48px; padding-top: 32px; }
.blog-post__meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; display: flex; gap: 14px; flex-wrap: wrap; }
.blog-post__head h1 { font-size: clamp(36px, 5.5vw, 64px); line-height: 1.05; }
.blog-post__foot { padding: 32px 0; margin-top: 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

.related-posts { background: var(--bg-alt); padding: 80px 0; }
.related-posts h2 { margin-bottom: 32px; }
.related-posts > .container > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.related-post { display: block; background: var(--card-bg); border: 1px solid var(--line); border-radius: 4px; padding: 24px; transition: all 0.25s; }
.related-post:hover { border-color: var(--ink); transform: translateY(-4px); }
.related-post h3 { font-family: 'Instrument Serif', serif; font-size: 20px; line-height: 1.2; margin-bottom: 10px; }
.related-post__date { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* --- FORMS --- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.page-checkout h1 { margin: 0 0 12px; }
.page-checkout .lede { margin-bottom: 36px; max-width: 680px; }
.order-form {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 80px;
}

/* Sekce oddělené jemnou linkou */
.order-form__section {
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 36px 40px;
  margin: 0;
  display: flex; flex-direction: column; gap: 20px;
  /* Safari má na <fieldset> default min-inline-size: min-content, což vytváří
     přerostlý padding / overflow na mobilu. Tohle to srovná. */
  min-width: 0;
  max-width: 100%;
}
.order-form__section:last-of-type { border-bottom: none; }
.order-form__section--optional { padding: 24px 40px; background: var(--bg-alt); }
html[data-theme="dark"] .order-form__section--optional { background: #1a1f25; }

.order-form__section legend {
  font-family: 'Instrument Serif', serif;
  font-size: 24px; line-height: 1.1; letter-spacing: -0.01em;
  color: var(--ink);
  padding: 0; padding-inline: 0; margin: 0 0 10px;
  display: flex; align-items: center; gap: 14px;
  font-weight: 400;
  float: left; width: 100%;
}
.order-form__step {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--accent);
  padding: 4px 8px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  opacity: 0.9;
}

/* Fields — label nad inputem, jeden blok */
.order-form__field {
  display: flex; flex-direction: column; gap: 6px;
  margin: 0;
  cursor: default;
}
.order-form__field > span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.order-form input:not([type=radio]):not([type=checkbox]),
.order-form textarea,
.order-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 6px;
  font-family: 'Manrope', sans-serif; font-size: 16px;
  background: var(--input-bg); color: var(--ink);
  transition: border 0.2s, box-shadow 0.2s;
  margin: 0;
  /* Safari/iOS: vypnout default appearance (jinak inputy mají vnitřní padding a kulaté rohy) */
  -webkit-appearance: none;
  appearance: none;
  max-width: 100%;
}
.order-form input:focus,
.order-form textarea:focus,
.order-form select:focus {
  border-color: var(--ink); outline: none;
  box-shadow: 0 0 0 3px rgba(29, 58, 95, 0.12);
}
html[data-theme="dark"] .order-form input:focus,
html[data-theme="dark"] .order-form textarea:focus { box-shadow: 0 0 0 3px rgba(159, 186, 223, 0.18); }

/* Radio / checkbox karty */
.order-form .radio,
.order-form .checkbox {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  font-size: 15px; color: var(--ink);
  font-family: 'Manrope', sans-serif; font-weight: 400;
  cursor: pointer; margin: 0;
  text-transform: none; letter-spacing: 0;
  border: 1px solid var(--line); border-radius: 6px;
  transition: border 0.2s, background 0.2s;
  background: var(--input-bg);
}
.order-form .radio:hover,
.order-form .checkbox:hover { border-color: var(--ink-2); }
.order-form .radio:has(input:checked),
.order-form .checkbox:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
}
html[data-theme="dark"] .order-form .radio:has(input:checked),
html[data-theme="dark"] .order-form .checkbox:has(input:checked) {
  border-color: #9fbadf; background: #1d3a5f;
}
.order-form .radio input,
.order-form .checkbox input { width: auto; margin: 4px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.order-form .radio span strong,
.order-form .checkbox span strong { display: block; font-weight: 600; line-height: 1.35; }
.order-form .radio span small,
.order-form .checkbox span small { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.order-form .checkbox--consent {
  margin: 28px 40px 0;
  border: none; background: transparent; padding: 0;
  font-size: 13px; color: var(--ink-2); line-height: 1.55;
  border-radius: 0;
}
.order-form .checkbox--consent:hover { border: none; background: transparent; }
.order-form .checkbox--consent:has(input:checked) { border: none; background: transparent; }
.order-form .checkbox--consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Company fields show/hide */
.order-form__company { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.order-form__company[hidden] { display: none; }

/* Submit button — container padding */
.order-form__submit { display: block; width: calc(100% - 80px); max-width: 420px; margin: 24px auto 40px; }
@media (max-width: 600px) {
  .order-form__section { padding: 26px 22px; }
  .order-form__section--optional { padding: 20px 22px; }
  .order-form .checkbox--consent { margin: 24px 22px 0; }
  .order-form__submit { width: calc(100% - 44px); margin: 20px auto 32px; }
  .page-checkout .lede { margin-bottom: 28px; }
}

.order-summary {
  background: var(--bg-alt); border-top: 1px solid var(--line);
  padding: 32px 36px; margin: 0;
}
html[data-theme="dark"] .order-summary { background: #1a1f25; border-top-color: #2a2f35; }
.order-summary h3 {
  margin-bottom: 20px;
  font-size: 22px; line-height: 1.1;
  display: flex; align-items: center; gap: 12px;
}
.order-summary h3::before {
  content: '05';
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--accent);
  padding: 4px 8px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  opacity: 0.9; font-weight: 500;
}
.order-items { list-style: none; margin: 0 0 20px; padding: 0; }
.order-items li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2); gap: 12px;
}
.order-items li strong { color: var(--ink); font-weight: 500; font-size: 15px; }
.order-totals { margin-top: 16px; }
.order-totals > div {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; font-size: 14px; color: var(--ink-2);
}
.order-totals > div strong { color: var(--ink); font-weight: 500; font-size: 15px; }
.order-totals__total {
  margin-top: 14px; padding-top: 18px !important;
  border-top: 2px solid var(--ink);
  font-size: 16px !important;
}
.order-totals__total span { font-size: 14px; }
.order-totals__total strong { font-family: 'Instrument Serif', serif; font-size: clamp(28px, 3vw, 36px) !important; font-weight: 400 !important; line-height: 1; }
.empty-cart-note { padding: 20px 0; color: var(--ink-2); }
@media (max-width: 600px) { .order-summary { padding: 22px 20px; } }

/* --- CART TABLE --- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.cart-table th { text-align: left; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; white-space: nowrap; }
.cart-table th small { display: block; font-size: 9px; letter-spacing: 0.06em; opacity: 0.7; margin-top: 2px; font-weight: 400; text-transform: none; }
.cart-table td { padding: 20px 12px 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; word-break: break-word; }
.cart-table td:last-child, .cart-table th:last-child { padding-right: 0; }
.cart-cell-name { font-size: 15px; width: 40%; }
.cart-cell-name a { color: var(--ink); font-family: 'Instrument Serif', serif; font-size: 17px; line-height: 1.25; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color 0.2s, color 0.2s; }
.cart-cell-name a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.cart-cell-price, .cart-cell-total { font-family: 'JetBrains Mono', monospace; font-size: 13px; white-space: nowrap; }
.cart-cell-price { width: 100px; }
.cart-cell-qty { width: 160px; padding-right: 24px !important; }
.cart-cell-total { width: 110px; text-align: right; }
.cart-cell-remove { width: 40px; text-align: right; }

/* Mobile: stack do karet — žádné table layout, obsah pod sebou */
@media (max-width: 640px) {
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table thead { display: none; }
  .cart-table tr { border-bottom: 1px solid var(--line); padding: 16px 0; position: relative; }
  .cart-table td { padding: 4px 0; border-bottom: none; }
  .cart-cell-name { padding-right: 40px; }
  .cart-cell-name a { font-size: 16px; }
  .cart-cell-price { color: var(--muted); font-size: 12px; }
  .cart-cell-price::before { content: "Cena / ks: "; }
  .cart-cell-total { font-family: 'Instrument Serif', serif; font-size: 22px; margin-top: 4px; }
  .cart-cell-total::before { content: "Celkem "; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
  .cart-cell-qty { width: auto; margin: 8px 0; }
  .cart-cell-remove { position: absolute; top: 14px; right: 0; width: auto; padding: 0; }
}
.cart-row-img { width: 72px; }
.cart-row-img img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.cart-row-name { font-family: 'Instrument Serif', serif; font-size: 18px; }
.cart-row-price { font-family: 'Instrument Serif', serif; font-size: 22px; }
.cart-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 20px; padding: 4px 8px; }
.cart-remove:hover { color: var(--ink); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 24px 0; border-top: 2px solid var(--ink); }
.cart-total-label { font-size: 14px; color: var(--ink-2); }
.cart-total-price { font-family: 'Instrument Serif', serif; font-size: 40px; line-height: 1; }
.cart-total-vat { display: block; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); margin-top: 4px; }
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty h2 { margin-bottom: 16px; }
.cart-empty p { color: var(--ink-2); margin-bottom: 24px; }

/* --- CART PSČ INPUT --- */
.cart-psc {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 20px 24px; margin-top: 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center;
}
.cart-psc__label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cart-psc__input {
  width: 140px; padding: 10px 14px;
  font-family: 'Manrope', sans-serif; font-size: 15px;
  background: var(--input-bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px;
  justify-self: end;
}
.cart-psc__input:focus { outline: none; border-color: var(--ink); }
.cart-psc__hint { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); line-height: 1.5; margin: 0; }
@media (max-width: 480px) { .cart-psc { padding: 16px 18px; grid-template-columns: 1fr; } .cart-psc__input { justify-self: start; width: 100%; } }

/* --- CART SUMMARY (new structured totals) --- */
.cart-summary { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 28px 32px; margin-top: 32px; }
.cart-summary__row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; gap: 16px; }
.cart-summary__row--delivery { align-items: flex-start; }
.cart-summary__label { display: flex; flex-direction: column; gap: 3px; }
.cart-summary__label > span:first-child { color: var(--ink-2); }
.cart-summary__label small { font-size: 13px; color: var(--muted); font-family: 'Manrope', sans-serif; }
.cart-summary__label small strong { color: var(--ink); font-weight: 600; }
.cart-upsell {
  display: inline-block; margin-top: 4px;
  padding: 4px 10px; border-radius: 100px;
  background: var(--accent-light); color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.04em;
  width: fit-content;
}
html[data-theme="dark"] .cart-upsell { background: #1d3a5f; color: #9fbadf; }
.cart-summary__row:last-of-type { border-bottom: none; }
.cart-summary__row span { color: var(--ink-2); }
.cart-summary__row strong { color: var(--ink); font-weight: 600; }
.cart-summary__row--note strong { font-weight: 500; font-size: 13px; color: var(--ink-2); text-align: right; }
.cart-summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 20px; margin-top: 14px; border-top: 2px solid var(--ink); gap: 16px; }
.cart-summary__total span { font-size: 14px; color: var(--ink-2); }
.cart-summary__total strong { font-family: 'Instrument Serif', serif; font-size: clamp(32px, 4vw, 42px); line-height: 1; font-weight: 400; }
.cart-summary__note { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.cart-actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 32px; padding-bottom: 80px; }
.cart-actions .btn--primary { width: 100%; max-width: 420px; }
.cart-actions__continue {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 4px 2px;
  transition: color 0.2s, border 0.2s;
}
.cart-actions__continue:hover { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 480px) { .cart-actions { padding-bottom: 64px; } }
@media (max-width: 480px) { .cart-summary { padding: 20px 22px; } }

/* --- CART PROGRESS BAR --- */
.cart-progress { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 20px 24px; margin: 0 0 24px; }
.cart-progress__msg { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.cart-progress__msg strong { color: var(--ink); }
.cart-progress__msg--done { color: var(--success); }
.cart-progress__bar { height: 8px; background: var(--card-bg); border-radius: 100px; overflow: hidden; border: 1px solid var(--line); }
.cart-progress__fill { height: 100%; background: linear-gradient(90deg, var(--accent) 0%, #2f5d8a 100%); border-radius: 100px; transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cart-progress__fill--done { background: linear-gradient(90deg, var(--success) 0%, #3d7a4c 100%); }

/* --- THANK YOU PAGE --- */
.thanks { padding: 80px 0 120px; text-align: center; max-width: 720px; }
.thanks__icon {
  width: 96px; height: 96px;
  margin: 0 auto 32px;
  background: var(--accent-light); color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: thanks-pop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html[data-theme="dark"] .thanks__icon { background: #1d3a5f; color: #9fbadf; }
@keyframes thanks-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.thanks__title { font-size: clamp(44px, 7vw, 72px); line-height: 1; margin-bottom: 20px; }
.thanks__title em { color: var(--accent); font-style: italic; }
.thanks__lede { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-2); line-height: 1.6; max-width: 520px; margin: 0 auto 56px; }

.thanks__steps {
  display: flex; flex-direction: column; gap: 0;
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
  margin-bottom: 48px;
  text-align: left;
}
.thanks__step {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}
.thanks__step:last-child { border-bottom: none; }
.thanks__step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; color: var(--accent);
  padding: 4px 8px; border: 1px solid var(--accent);
  border-radius: 100px; flex-shrink: 0;
  margin-top: 2px;
}
.thanks__step strong { display: block; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 20px; margin-bottom: 4px; }
.thanks__step span { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

.thanks__cta {
  display: flex; flex-direction: column; align-items: center;
  gap: 18px; margin-bottom: 48px;
}
.thanks__cta .btn--primary { min-width: 240px; }
.thanks__continue {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 4px 2px;
  transition: color 0.2s, border 0.2s;
}
.thanks__continue:hover { color: var(--ink); border-bottom-color: var(--ink); }

.thanks__contact { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.thanks__contact a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) {
  .thanks { padding: 48px 0 80px; }
  .thanks__step { padding: 18px 20px; gap: 14px; }
  .thanks__steps { margin-bottom: 32px; }
}

/* --- CONFETTI BURST --- */
.confetti-root {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -20px;
  left: var(--x);
  width: var(--w); height: var(--h);
  background: var(--c);
  transform: rotate(var(--r));
  animation: confetti-fall var(--t) cubic-bezier(0.2, 0.6, 0.4, 1) var(--d) forwards;
  border-radius: 2px;
  opacity: 0;
}
@keyframes confetti-fall {
  0% { transform: translate(0, -20px) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--sx), 110vh) rotate(var(--r)); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .confetti-root { display: none; }
  .thanks__icon { animation: none; }
}

/* --- CONTACT --- */
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-list > div,
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; font-size: 15px; align-items: baseline; }
.contact-list > div:last-child,
.contact-list li:last-child { border-bottom: none; }
.contact-list dt { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); min-width: 120px; font-weight: 500; }
.contact-list dd { margin: 0; font-size: 16px; color: var(--ink); text-align: right; flex: 1; }
.contact-list dd a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border 0.2s; }
.contact-list dd a:hover { border-bottom-color: var(--accent); }

.contact-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 6px; padding: 32px; margin: 24px 0 40px; }
.contact-card h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 4px; }
.contact-card h3 { margin-bottom: 12px; }
.contact-card .brand-tag { margin-bottom: 12px; color: var(--accent); }
@media (max-width: 480px) {
  .contact-card { padding: 24px 20px; }
  .contact-list dt { min-width: auto; font-size: 10px; }
  .contact-list dd { text-align: left; width: 100%; }
  .contact-list > div { flex-direction: column; gap: 4px; }
}

/* --- FOOTER --- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 80px 0 30px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: 'Instrument Serif', serif; font-size: 28px; letter-spacing: -0.02em; margin-bottom: 16px; }
.footer-brand em { color: var(--accent); }
.footer-desc { color: var(--ink-2); font-size: 14px; max-width: 320px; }
.footer-col h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--ink); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding-top: 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 12px; } }

/* --- PROSE (legal / blog post body) --- */
.prose { max-width: 780px; padding: 0 0 80px; margin: 0 auto; }
.prose h1 { margin-bottom: 32px; }
.prose h2 { font-size: clamp(28px, 4vw, 36px); margin: 44px 0 18px; }
.prose h3 { font-size: 22px; margin: 28px 0 12px; }
.prose p, .prose li { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin-bottom: 16px; }
.prose .lead { font-size: 20px; line-height: 1.6; color: var(--ink); font-family: 'Instrument Serif', serif; font-weight: 400; margin-bottom: 32px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-hover); }
.prose a.btn { text-decoration: none; color: var(--band-text); }
.prose a.btn:hover { text-decoration: none; color: var(--band-text); }
.prose a.btn--ghost { color: var(--ink); }
.prose a.btn--ghost:hover { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }

/* --- MESSAGES --- */
.msg { padding: 16px 20px; border-radius: 4px; margin: 16px 0; font-size: 14px; }
.msg-success { background: #e8f0e7; color: #2f5d3b; border: 1px solid #c8dec5; }
.msg-info { background: var(--accent-light); color: var(--accent); border: 1px solid #b5c8dc; }

/* --- COOKIE CONSENT BANNER --- */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; background: var(--band-bg, #0e1116); color: #f4f1ea; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); padding: 20px 22px; animation: consent-in 0.35s ease-out both; max-width: 1100px; margin: 0 auto; }
.consent-banner[hidden] { display: none; }
.consent-banner__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.consent-banner__text { margin: 0; font-size: 14px; line-height: 1.55; max-width: 720px; color: #e8e6df; }
.consent-banner__text a { color: #ffe29a; text-decoration: underline; }
.consent-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-banner .btn--ghost { background: transparent; border: 1px solid rgba(244,241,234,0.35); color: #f4f1ea; }
.consent-banner .btn--ghost:hover { background: rgba(244,241,234,0.08); border-color: rgba(244,241,234,0.6); }
@keyframes consent-in { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 640px) {
  .consent-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px 18px; }
  .consent-banner__inner { flex-direction: column; align-items: stretch; }
  .consent-banner__actions { justify-content: stretch; }
  .consent-banner__actions .btn { flex: 1; }
}
