:root{
  --bg:#ffffff; --fg:#0f172a; --muted:#5b6475; --line:#e8eaf2; --card:#f6f7fb;
  --primary:#e1322f; --primary-600:#c42825; --accent:#1491d6;
  --radius:16px; --shadow:0 10px 30px rgba(15,23,42,.06);
}

body.light-mode{
  --bg:#ffffff; --fg:#0f172a; --muted:#5b6475; --line:#e8eaf2; --card:#f6f7fb;
  --primary:#e1322f; --primary-600:#c42825; --accent:#1491d6;
  --shadow:0 10px 30px rgba(15,23,42,.06);
}

body.dark-mode{
  --bg:#070d1a; --fg:#edf2ff; --muted:#9eb0d6; --line:#2b3a5a; --card:#111b32;
  --primary:#ff665f; --primary-600:#ef4f48; --accent:#63d7ff;
  --shadow:0 14px 40px rgba(0,0,0,.35);
}

/* Base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Plus Jakarta Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--fg); background:var(--bg); line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
.container{width:min(1120px,92%);margin-inline:auto}
.section{padding:56px 0}
html, body, main { overflow-x: hidden; }

/* Header */
.site-header{
  position:sticky; top:0; z-index:1000;
  background:color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter:saturate(1.2) blur(8px);
  border-bottom:1px solid var(--line);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:12px 0; position:relative;
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--fg); font-weight:800}
.brand-logo{height:36px}
.brand-text{font-size:18px}

/* Desktop nav hidden by default (mobile-first) */
.nav-desktop{display:none; gap:22px; margin-left:auto}
.nav-desktop a{color:var(--muted); text-decoration:none; font-weight:600}
.nav-desktop a:hover{color:var(--fg)}

.theme-toggle{
  width:auto;
  height:46px;
  border-radius:999px;
  padding:0 1rem;
  border:1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background:linear-gradient(180deg, color-mix(in srgb, var(--card) 88%, #fff), var(--card));
  color:var(--fg);
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  cursor:pointer;
  transition:.2s ease, box-shadow .2s ease, border-color .2s ease;
  margin-right:56px;
  font-weight:800;
  font-size:.9rem;
  z-index:1650;
  box-shadow:0 8px 22px color-mix(in srgb, var(--accent) 14%, transparent);
}

.theme-toggle:hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow:0 12px 26px color-mix(in srgb, var(--accent) 24%, transparent);
}

.theme-toggle__icon{
  font-size:1rem;
}

.theme-toggle__label{
  white-space:nowrap;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  text-decoration:none; font-weight:800; padding:12px 16px;
  border-radius:14px; border:1px solid transparent; transition:.2s;
}
.btn:hover{transform:translateY(-1px)} .btn:active{transform:translateY(0)}
.btn-primary{background:var(--primary); color:#fff}
.btn-primary:hover{background:var(--primary-600)}
.btn-ghost{background:var(--card); border-color:var(--line); color:var(--fg)}
.btn-light{background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow)}
.btn-lg{padding:14px 20px; border-radius:16px}

/* Nav CTA – menší na mobilu */
.nav-cta{ display:inline-flex; padding:8px 12px; border-radius:12px; font-size:14px }

/* Burger (mobile only) – vpravo nahoře, výraznější */
.burger{
  position:absolute; right:8px; top:8px;
  width:44px; height:44px; border:0; cursor:pointer;
  display:grid; place-content:center; gap:5px;
  background:var(--primary); border-radius:14px; box-shadow:var(--shadow);
  z-index:1600;
}
.burger span{ width:22px; height:2px; background:#fff; border-radius:2px; transition:.3s }
.burger.is-open span:nth-child(2){opacity:0}
.burger.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.nav-cta{ margin-right:56px; }

/* Mobile nav (overlay + animace) */
.nav-mobile{
  position: fixed !important;
  left: 0; right: 0;
  top: var(--header-h, 56px);
  background:linear-gradient(180deg,var(--bg),var(--card));
  border-top:1px solid var(--line);
  padding:12px 4%;
  display:flex; flex-direction:column; gap:10px;
  box-shadow: 0 20px 40px rgba(15,23,42,.14);
  z-index: 1500;
  height:auto; max-height:calc(100vh - var(--header-h,56px));
  overflow:auto;
  opacity:0; transform:translateY(-8px);
  transition:opacity .22s ease, transform .22s ease;
  border-bottom-left-radius:16px; border-bottom-right-radius:16px;
}
.nav-mobile.is-open{ opacity:1; transform:translateY(0); }
.nav-mobile[hidden]{ display:none !important; }
.nav-mobile a{
  display:block; width:100%;
  padding:14px; border-radius:12px; text-decoration:none;
  color:var(--fg); background:var(--card); font-weight:700; border:1px solid var(--line);
}
.nav-mobile a:active{ transform:translateY(1px); }

/* backdrop při otevřeném menu */
.menu-open::before{
  content:""; position: fixed; left:0; right:0;
  top: var(--header-h, 56px); bottom: 0;
  background: rgba(15,23,42,.28); z-index: 1400;
}

/* Hero */
.hero{padding:28px 0 12px}
.hero-grid{display:grid; gap:20px; align-items:center}
.hero-text h1{font-size:clamp(28px,6vw,48px); line-height:1.1; margin:0 0 12px}
.hero-text .accent{color:var(--accent)}
.hero-text p{color:var(--muted); margin:0 0 18px}
.hero-ctas{display:flex; gap:10px; flex-wrap:wrap}
.badges{display:flex; gap:12px; padding:0; margin:18px 0 0; list-style:none; flex-wrap:wrap; color:var(--muted)}
.hero-media img{width:100%; border-radius:var(--radius); box-shadow:var(--shadow)}

/* Cards */
.cards-grid{display:grid; gap:14px; grid-template-columns:repeat(2,minmax(0,1fr))}
.card{
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); padding:16px; box-shadow:var(--shadow);
  display:grid; gap:8px; min-height:160px
}
.card h3{margin:0} .card p{margin:0; color:var(--muted)} .card-icon{font-size:22px}

/* Promo scroller */
.promos .promo-scroller{display:flex; gap:12px; overflow:auto; scroll-snap-type:x mandatory; padding-bottom:6px}
.promos .promo{
  flex:0 0 78%; scroll-snap-align:center; background:linear-gradient(180deg,var(--bg),var(--card));
  border:1px solid var(--line); border-radius:18px; padding:16px; text-decoration:none; color:var(--fg);
  box-shadow:var(--shadow)
}
.promos .promo strong{display:block; font-size:18px; margin-bottom:4px}
.promos .promo span{color:var(--muted)}

/* CTA strip */
.cta-strip{background:linear-gradient(90deg,var(--card),var(--bg)); border-block:1px solid var(--line); padding:26px 0}
.cta-row{display:grid; gap:12px; align-items:center}
.cta-row h3{margin:0}

/* FAQ */
.faq details{border:1px solid var(--line); border-radius:14px; padding:12px 16px; background:var(--card); box-shadow:var(--shadow); margin-bottom:10px}
.faq summary{cursor:pointer; font-weight:700}

/* Footer */
.site-footer{border-top:1px solid var(--line); background:var(--bg); margin-bottom:70px}
.footer-grid{display:grid; gap:16px; padding:24px 0}
.footer-grid a{color:var(--muted); text-decoration:none}
.legal{color:var(--muted); text-align:center; font-size:12px; margin:10px 0 0}

/* ==== BOTTOM BAR — UNIFIED (Objednat stejné jako ostatní) ==== */
.bottom-bar{
  position: fixed; left:0; right:0; bottom:0;
  height: 76px; z-index: 9999;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}

.bb-item{
  position:relative;
  display:grid; grid-template-rows:auto 1fr;
  justify-items:center; align-items:center;
  gap:6px;
  text-decoration:none; color:var(--muted);
  font-size:13px; line-height:1;
  border-radius:14px; padding:6px 6px;
  transition:transform .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease;
}
.bb-item:hover{ transform:translateY(-2px); color:var(--fg); }

/* ikony – funguje pro IMG, SVG i ikonfonty */
.bb-item img,
.bb-item svg,
.bb-item i{
  width:32px; height:32px;
  font-size:32px; display:block;
  object-fit:contain;
}

/* „Objednat“ má na webu class .bb-primary – sjednotíme vzhled */
.bottom-bar .bb-primary{
  background:transparent; color:var(--muted);
  height:auto; margin:0; box-shadow:none; padding:6px 6px;
  border-radius:14px;
}
.bottom-bar .bb-primary .label{ color:inherit; }

/* decentní ACTIVE (ručně přidej .active nebo aria-current="page") */
.bb-item.active,
.bb-item[aria-current="page"]{
  color:var(--fg);
  background:var(--card);
  box-shadow:0 6px 16px rgba(15,23,42,.06);
}
.bb-item.active::after,
.bb-item[aria-current="page"]::after{
  content:""; position:absolute; bottom:6px;
  width:6px; height:6px; border-radius:50%;
  opacity:.95;
}

/* klik (krátké zatlačení) – jen vizuál při stisku */
.bb-item:active{ transform:translateY(0); }

/* Loader */
#preloader-active{position:fixed; inset:0; background:var(--bg); display:none; place-items:center; z-index:100}
#preloader-active.active{display:grid}

/* -------- Desktop (>=920px) -------- */
@media (min-width:920px){
  .nav-desktop{display:flex !important}
  .theme-toggle{margin-right:0}
  .nav-cta{display:inline-flex; padding:12px 16px; border-radius:14px; font-size:16px}
  .burger{display:none}
  .nav-mobile{display:none !important}

  .hero{padding:56px 0 24px}
  .hero-grid{grid-template-columns:1.1fr .9fr; gap:36px}
  .cards-grid{grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px}
  .promo-scroller{overflow:visible}
  .promos .promo{flex:1}
  .cta-row{grid-template-columns:1fr auto; align-items:center}
  .site-footer{margin-bottom:0}
  .bottom-bar{display:none}
  .footer-grid{grid-template-columns:1.4fr .6fr}
}

@media (max-width:919px){
  .theme-toggle{
    width:46px;
    padding:0;
  }

  .theme-toggle__label{
    display:none;
  }
}

/* -------- Mobile padding for bottom bar -------- */
@media (max-width:919px){
  main, body{ padding-bottom:calc(112px + env(safe-area-inset-bottom)); }
  .site-footer{ margin-bottom:0; padding-bottom:32px; }
}

/* --- Mobile menu drobnosti pro vrstvy --- */
.site-header{ position: sticky; top:0; z-index: 1400; }
/* lišta */
.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 76px;
  z-index: 9999;

  /* změna pozadí */
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);

  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}

/* pro kontrast ikonek */
.bb-item {
  color: var(--muted);
  transition: transform .15s ease, color .15s ease, background .15s ease;
}
.bb-item:hover {
  transform: translateY(-2px);
  color: var(--fg);
}
.bb-item.active,
.bb-item[aria-current="page"] {
  color: var(--fg);
  font-weight: 700;
}

/* ===== CTA: Objednat ===== */
.cta-strip{
  background:linear-gradient(90deg,var(--card),var(--bg));
  border-block:1px solid var(--line);
  padding:28px 0;
}
.cta-row.cta-order{
  display:grid;
  gap:16px;
}
.cta-copy h3{ margin:0 0 10px }
.cta-note{ margin:10px 0 0; color:var(--muted) }

/* odznak otevírací doby */
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px; font-weight:700;
  font-size:14px; border:1px solid var(--line); background:var(--card);
  box-shadow:var(--shadow);
}
.pill-open::before{
  content:""; width:8px; height:8px; border-radius:50%;
  background: #22c55e; box-shadow:0 0 0 4px rgba(34,197,94,.15);
}

/* seznam poboček */
.cta-locations{
  list-style:none; padding:0; margin:0;
  display:grid; gap:12px;
}
.loc{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow);
  display:grid; gap:10px;
}
.loc-head{ display:flex; align-items:center; justify-content:space-between }
.loc-city{ font-weight:800; font-size:18px }

.loc-call{
  width:100%;
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  text-decoration:none; font-weight:800;
  border-radius:14px;
}
.loc-call .ico{
  width:20px; height:20px; fill:currentColor; display:block;
}

/* hover stavy – sjednocené s tvými btn */
.loc:hover{ transform:translateY(-1px); transition:transform .15s ease }

/* Desktop rozvržení */
@media (min-width:920px){
  .cta-row.cta-order{
    grid-template-columns:1fr .9fr;
    align-items:center;
  }
  .cta-locations{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
  }
}

/* ===== Formuláře – moderní styl ===== */
.form-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:18px; display:grid; gap:14px;
}
.form-grid{ display:grid; gap:12px; }
@media (min-width:920px){ .form-grid.cols-2{ grid-template-columns:1fr 1fr; } }

.label{
  font-weight:700; font-size:14px; margin-bottom:6px; display:block;
}
.help{ color:var(--muted); font-size:13px; margin-top:6px; }
.error{ color:#dc2626; font-size:13px; margin-top:6px; }

/* Základní pole */
.input, .select, .textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--line);
  background:var(--bg);
  border-radius:14px;
  font-size:16px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.textarea{ min-height:110px; resize:vertical; }

/* Hover/Focus/Disabled */
.input:hover, .select:hover, .textarea:hover{ border-color:#d7dbe8; }
.input:focus, .select:focus, .textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(20,145,214,.12);
}
.input:disabled, .select:disabled, .textarea:disabled{
  background:#f3f5fb; color:#94a3b8; cursor:not-allowed;
}

/* Stav chyby/úspěchu */
.is-invalid{ border-color:#dc2626 !important; box-shadow:0 0 0 4px rgba(220,38,38,.10) !important; }
.is-valid{ border-color:#22c55e !important; box-shadow:0 0 0 4px rgba(34,197,94,.10) !important; }

/* Ikony v poli */
.input-wrap{ position:relative; }
.input-wrap .in-icon{
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  width:18px; height:18px; opacity:.7; pointer-events:none;
}
.input.input-with-icon{ padding-left:38px; }

/* Skupina + prepend/append (telefon, cena apod.) */
.input-group{ display:flex; align-items:stretch; }
.input-pre, .input-post{
  background:var(--card); border:1px solid var(--line); border-radius:14px;
  padding:12px 14px; font-weight:700; white-space:nowrap;
}
.input-pre{ border-right:0; border-top-right-radius:0; border-bottom-right-radius:0; }
.input-post{ border-left:0; border-top-left-radius:0; border-bottom-left-radius:0; }
.input-group .input{ border-radius:0; border-left:0; border-right:0; }
.input-group .input:first-child{ border-left:1px solid var(--line); border-top-left-radius:14px; border-bottom-left-radius:14px; }
.input-group .input:last-child{ border-right:1px solid var(--line); border-top-right-radius:14px; border-bottom-right-radius:14px; }

/* Checkbox / Radio – čisté */
.control{
  display:flex; align-items:flex-start; gap:10px;
  padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--card);
  transition:box-shadow .15s ease, border-color .15s ease;
}
.control:hover{ border-color:#d7dbe8; }
.control input{ appearance:none; width:18px; height:18px; margin-top:2px;
  border:2px solid #cbd5e1; border-radius:6px; display:grid; place-items:center;
  transition:border-color .15s ease, background .15s ease;
}
.control input:checked{
  border-color:var(--accent); background:var(--accent);
}
.control input:checked::after{
  content:""; width:8px; height:8px; background:#fff; border-radius:2px;
}
.control.radio input{ border-radius:50%; }
.control.radio input:checked::after{ width:8px; height:8px; border-radius:50%; }

/* Switch (toggle) */
.switch{
  display:inline-flex; align-items:center; gap:10px; cursor:pointer;
}
.switch input{ appearance:none; width:42px; height:24px; background:#e5eaf5;
  border-radius:999px; position:relative; transition:background .15s ease;
  border:1px solid var(--line);
}
.switch input::after{
  content:""; position:absolute; top:50%; left:3px; transform:translateY(-50%);
  width:18px; height:18px; background:#fff; border-radius:50%; box-shadow:var(--shadow);
  transition:left .15s ease;
}
.switch input:checked{ background:var(--accent); }
.switch input:checked::after{ left:21px; }

/* Select – hezčí šipka */
.select{
  appearance:none;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%),
                    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right:40px;
}

/* Floating label (volitelné) */
.floating{ position:relative; }
.floating .input, .floating .textarea{ padding-top:20px; }
.floating label{
  position:absolute; left:14px; top:12px; color:var(--muted);
  pointer-events:none; transition: all .15s ease; background:#fff; padding:0 6px;
}
.floating .input:focus + label,
.floating .input:not(:placeholder-shown) + label,
.floating .textarea:focus + label,
.floating .textarea:not(:placeholder-shown) + label{
  top:-8px; font-size:12px; color:var(--accent);
}

/* Odesílací řádek */
.form-actions{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:flex-end;
}

/* Telefonní tlačítko v headeru - jen na mobilu */
.header-phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(225, 50, 47, 0.3);
  margin-left: auto;
  margin-right: 12px;
}

.header-phone-btn:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 50, 47, 0.4);
}

.header-phone-btn:active {
  transform: translateY(0);
}

/* Na desktopu skrýt telefonní tlačítko */
@media (min-width: 920px) {
  .header-phone-btn {
    display: none;
  }
}

/* Modal pro výběr pobočky */
.phone-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}

.phone-modal.active {
  opacity: 1;
  pointer-events: all;
}

.phone-modal-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  width: min(400px, 90%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.phone-modal.active .phone-modal-content {
  transform: scale(1);
}

.phone-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--card);
  border-radius: 8px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
}

.phone-modal-close:hover {
  background: var(--line);
  color: var(--fg);
}

.phone-modal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-modal-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--fg);
  transition: all 0.2s;
}

.phone-modal-option:hover {
  background: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 50, 47, 0.2);
}

.phone-modal-icon {
  font-size: 32px;
  line-height: 1;
}

.phone-modal-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-modal-info strong {
  font-size: 18px;
  font-weight: 700;
}

.phone-modal-info span {
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
}

/* Social links v headeru */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.social-links a {
  color: #1877f2;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
  justify-content: flex-start;
  min-width: 150px;
}

.social-links a i {
  flex-shrink: 0;
  width: 20px;
  display: inline-flex;
  justify-content: center;
  font-size: 20px;
}

.social-links a:hover {
  color: var(--accent);
}

/* na desktopu vedle sebe vpravo */
@media (min-width:920px) {
  .social-links {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin: 0 16px 0 auto;  /* posune na pravou stranu */
  }
}

/* Social links ve footeru - vždy pod sebou */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}

.footer-social a {
  color: #1877f2;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color .2s;
  justify-content: flex-start;
  min-width: 170px;
}

.footer-social a i {
  flex-shrink: 0;
  width: 24px;
  display: inline-flex;
  justify-content: center;
  font-size: 24px;
}

.footer-social a:hover {
  color: var(--accent);
}

/* === Bottom bar jen na mobilech === */
.bottom-bar{ display:none !important; } /* výchozí: schovat všude */

@media (max-width:919px){
  .bottom-bar{
    display:grid !important;           /* zapnout jen na mobilech */
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 76px; z-index: 9999;
    background: rgba(240,243,248,.96);
    backdrop-filter: saturate(1.2) blur(10px);
    border-top: 1px solid var(--line);
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }

  /* mobilní odsazení kvůli liště */
  main, body{ padding-bottom:calc(112px + env(safe-area-inset-bottom)); }
}

/* === Cookie consent lišta === */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 247, 251, 0.98) 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 10001;
  padding: 1rem;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 250px;
}

.cookie-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.cookie-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-actions {
  flex-shrink: 0;
}

.cookie-actions .btn {
  white-space: nowrap;
}

/* Na mobilu pod sebe */
@media (max-width: 640px) {
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    width: 100%;
  }
}

/* Odsazení kvůli bottom baru na mobilu */
@media (max-width: 919px) {
  .cookie-consent {
    bottom: 76px;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}

/* === Blog články === */
.blog-article h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.blog-article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--fg);
}

.blog-article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.blog-article p {
  margin-bottom: 1rem;
  color: var(--fg);
}

.blog-article ul, .blog-article ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.blog-article ul li, .blog-article ol li {
  margin-bottom: 0.5rem;
}

.blog-article a {
  color: var(--accent);
  text-decoration: underline;
}

.blog-article a:hover {
  color: var(--primary);
}

.blog-article strong {
  font-weight: 700;
}

.blog-article table {
  font-size: 0.95rem;
}

/* Speciální tlačítka pro blog články */
.blog-article .btn-primary,
.blog-article .btn-light {
  position: relative;
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--line);
  font-weight: 700;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.blog-article .btn-primary::before,
.blog-article .btn-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 1;
  animation: borderRotate 3s linear infinite;
}

.blog-article .btn-primary:hover,
.blog-article .btn-light:hover {
  color: var(--primary);
  border-color: transparent;
  transform: translateY(-2px);
}

/* Na desktopu skrýt animaci dokud není hover */
@media (min-width: 920px) {
  .blog-article .btn-primary::before,
  .blog-article .btn-light::before {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .blog-article .btn-primary:hover::before,
  .blog-article .btn-light:hover::before {
    opacity: 1;
  }
}

@keyframes borderRotate {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* Responzivní nadpisy na mobilu */
@media (max-width: 640px) {
  .blog-article h1 {
    font-size: 1.75rem;
  }

  .blog-article h2 {
    font-size: 1.35rem;
  }

  .blog-article h3 {
    font-size: 1.1rem;
  }

  .blog-article table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* === Modální okno pro zprávy z formuláře === */
.message-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10002 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
}

.message-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.message-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.3s ease-out;
  z-index: 1;
  text-align: center;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
