/* Catalog layout fix — keep static katalog.css untouched.
 * Loaded AFTER katalog.css in layouts/app.blade.php.
 *
 * Issue: in stuck state, .toolbar-inner uses grid-template-areas with a "secondary" row,
 * but when .toolbar-row--secondary is hidden (display:none), the grid still reserves
 * row-gap below the first row → ~8px dead space at the bottom of the toolbar,
 * making the content look visually shifted up.
 *
 * Fix: when secondary row is NOT visible, remove its track from the template entirely.
 */

/* Stuck state — single row when secondary hidden.
   POZOR: jen desktop. Na mobilu (≤700) je secondary řada taky skrytá, takže bez
   media query by tohle `:has` pravidlo přebilo mobilní jednosloupcové rozložení
   a primární tlačítka by spadla do pravého sloupce mimo obrazovku. */
@media (min-width: 701px) {
  body[data-toolbar-stuck="true"] .toolbar-inner:not(:has(.toolbar-row--secondary:not([hidden]))) {
    grid-template-areas: "search primary";
    grid-template-rows: auto;
  }
}

/* Mobil: ve stuck liště ať se dlouhé labely tlačítek zalomí místo přetečení. */
@media (max-width: 700px) {
  body[data-toolbar-stuck="true"] .badge-primary {
    white-space: normal;
    text-align: center;
  }
}

/* Stuck toolbar — top padding tweak for better optical balance under navbar */
body[data-toolbar-stuck="true"] .toolbar {
  padding-top: 10px;
}

/* Non-stuck state — only two visible rows when secondary hidden */
.toolbar-inner:not(:has(.toolbar-row--secondary:not([hidden]))) {
  grid-template-areas:
    "search"
    "primary";
  grid-template-rows: auto auto;
}

/* Inter font + normal line-height in input/buttons creates extra leading that pushes
   text visually down inside the box. Setting an explicit line-height eliminates this. */
.search-box,
.clear-btn,
.badge-primary,
.badge-primary-label {
  line-height: 1.2;
}

/* Card "Detail" button renders as <a> when product has detail page. Remove default
   underline so it visually matches the <button> variant used for products without detail. */
a.card-btn {
  text-decoration: none;
}

/* =====================================================================
 * Readability — better line-height & whitespace for longer body copy.
 * Targets paragraph-style text everywhere; intentionally NOT applied to
 * headings, buttons, badges, labels (those need tight leading).
 * Override values are nudges, not redesigns — keep within site aesthetic.
 * ===================================================================== */

/* Body baseline — affects general paragraph text */
body {
  line-height: 1.7;
}

/* Paragraph text in long-form sections gets explicit comfortable line-height + bottom spacing */
.detail-hero-lead,
.detail-stats-lead,
.detail-about-text p,
.benefits-lead,
.related-lead,
.detail-mockup-label,
.section-block-lead,
.detail-final-cta p,
.audience-header + .detail-audience-grid .detail-audience-card p,
.detail-benefit-card p,
.detail-audience-card p,
.detail-related .card-desc,
.card-desc {
  line-height: 1.7;
}

/* Hero leads need a touch more vertical breathing */
.detail-hero-lead,
.section-block-lead,
.hero p,
.hero-inner p {
  line-height: 1.7;
  max-width: 65ch;
}
.hero p,
.hero-inner p {
  margin-left: auto;
  margin-right: auto;
}

/* About section paragraphs (typically multi-paragraph copy) */
.detail-about-text p {
  line-height: 1.75;
  margin-bottom: 14px;
}
.detail-about-text p:last-child {
  margin-bottom: 0;
}

/* Bullet list features under About — robustní zarovnání ✓ ikony s textem.
   Místo absolutního pozicování (z katalog.css) řešíme řádek flexem: ikona a text
   jsou vedle sebe, zarovnané nahoru, takže sedí i u víceřádkových odrážek. */
.detail-features li {
  line-height: 1.65;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.detail-features li::before {
  position: static;
  flex: none;
  margin-top: 2px;
}

/* About — odrážky na plnou šířku pod blokem text+vizuál, mřížka (3 na řádek) */
.detail-features.detail-features--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px 32px;
  margin-top: 44px;
}

/* Audience — sjednoceno se "3 kroky" na homepage: velké číslo v pozadí, bez karet/linek */
.detail-audience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.detail-audience-row {
  position: relative;
  padding: 30px 12px 0 16px;
}
.detail-audience-num {
  position: absolute;
  top: -28px;
  left: -8px;
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  font-variant-numeric: tabular-nums;
  z-index: 0;
  pointer-events: none;
}
.detail-audience-content {
  position: relative;
  z-index: 1;
}
.detail-audience-content h4 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.detail-audience-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}
@media (max-width: 760px) {
  .detail-audience-list { grid-template-columns: 1fr; gap: 28px; }
  .detail-audience-num { font-size: 5.5rem; }
}

/* Section block (homepage) lead text */
.section-block-lead {
  margin-top: 12px;
}

/* FAQ — answer text */
.detail-faq-section .faq-item p {
  line-height: 1.7;
  margin-top: 6px;
}

/* Benefit & audience cards — tighter inside, but text itself breathable */
.detail-benefit-card h4,
.detail-audience-card h4 {
  margin-bottom: 8px;
}

/* Jednotná šířka všech sekcí detailu (~1320) — statistiky byly užší (1100). */
.detail-stats-section {
  max-width: 1320px;
}

/* More vertical air between detail page sections (so they don't crash into each other).
   Pozn.: .detail-hero ZÁMĚRNĚ není v seznamu — má sedět hned pod drobečkovou navigací. */
.detail-stats-section,
.detail-benefits-section,
.detail-about-section,
.detail-audience-section,
.detail-related-section,
.detail-vs-section,
.detail-faq-section,
.detail-how-section,
.detail-gallery-section,
.detail-final-cta-section {
  margin-top: 140px;
}
@media (max-width: 720px) {
  .detail-stats-section,
  .detail-benefits-section,
  .detail-about-section,
  .detail-audience-section,
  .detail-related-section,
  .detail-vs-section,
  .detail-faq-section,
  .detail-how-section,
  .detail-gallery-section,
  .detail-final-cta-section {
    margin-top: 96px;
  }
}

/* Long catalog card descriptions */
.card .card-desc {
  font-size: 0.95rem;
}

/* Footer text */
.footer-tag {
  line-height: 1.7;
}

/* Final CTA paragraph */
.detail-final-cta p {
  margin: 12px auto 22px;
  max-width: 60ch;
}

/* ===== GALLERY sekce — 3 obrázky v řadě, zvětšitelné v lightboxu ===== */
.detail-gallery-section {
  max-width: 1320px;
  margin-inline: auto;
  padding: 0 32px;
}
.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}
.gallery-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.2;
}
.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.detail-gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-strong);
  cursor: zoom-in;
  transition: transform 0.22s, border-color 0.22s;
}
.detail-gallery-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.detail-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 760px) {
  .detail-gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .detail-gallery-grid { grid-template-columns: 1fr; }
}

/* ===== Lightbox ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
@media (max-width: 560px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ===== Víc vzduchu mezi sekcemi napříč webem (override katalog.css, backend-only) =====
   Homepage .section-block i katalog .section mají mezery v sdíleném katalog.css; tady je
   jen zvětšujeme pro backend, prototyp zůstává nedotčen. */
.section-block { margin-top: 120px; }   /* homepage sekce (bylo 96) */
.section { margin-bottom: 104px; }      /* katalog kategorie (bylo 72) */
@media (max-width: 720px) {
  .section-block { margin-top: 96px; }  /* mobil (bylo 64) */
  .section { margin-bottom: 64px; }     /* mobil (bylo 48) */
}

/* ===== HOMEPAGE: Naše služby (problem-led karty) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: var(--radius-card);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  transition: transform 0.22s, background 0.22s, border-color 0.22s;
}
.service-card:hover {
  transform: translateY(-3px);
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(55, 191, 181, 0.35);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 18px;
}
.service-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: gap 0.18s;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.service-link:hover { color: var(--accent-hover); }
.service-link span { transition: margin-left 0.18s; display: inline-block; }
.service-link:hover span { margin-left: 4px; }

/* ===== HOMEPAGE: Řešíte tohle? (produkty, SyncBridge featured) ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  align-items: stretch;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-strong);
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(55, 191, 181, 0.35);
  background: rgba(0, 0, 0, 0.55);
}
.product-card--featured {
  background:
    radial-gradient(540px 260px at 50% 0%, rgba(55, 191, 181, 0.16), transparent 70%),
    rgba(0, 0, 0, 0.45);
  border-color: rgba(55, 191, 181, 0.45);
}
.product-badge {
  align-self: flex-start;
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.product-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}
.product-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 24px;
}
.product-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.product-actions .cta-btn { min-width: 0; }

/* ===== HERO obrázek nad nadpisy ===== */
.hero-screenshot.hero-screenshot--top {
  margin: 8px auto 32px;
  max-width: 820px;
}

/* ===== Loga klientů — automatický nekonečný slider ===== */
.logo-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: max-content;
  animation: logo-scroll 45s linear infinite;
}
/* loga se na hover nezastavují (záměrně bez pause) */
.logo-track .logo-strip-item {
  flex: 0 0 auto;
  min-width: 160px;
}
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ===== Kontaktní dláždice — značka + role ===== */
.contact-brand {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  margin-bottom: 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.contact-role {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: -4px;
}

/* ===== HERO infografika — Raynet hub (napojení + rozšíření) ===== */
.hero-graphic {
  max-width: 940px;
  margin: 8px auto 40px;
  padding: 0 24px;
}
.hero-graphic-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
.hg-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hg-col--in { align-items: flex-end; }
.hg-col--ext { align-items: flex-start; }
.hg-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-strong);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hg-chip-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1;
}
.hg-chip--in .hg-chip-ic { background: var(--accent-dim); color: var(--accent); }
.hg-chip--ext .hg-chip-ic { background: var(--purple-dim); color: var(--purple); }
.hg-chip--in { border-color: rgba(55, 191, 181, 0.28); }
.hg-chip--ext { border-color: rgba(167, 139, 250, 0.28); }
.hg-chip--in::after,
.hg-chip--ext::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 2px;
  transform: translateY(-50%);
  background-size: 200% 100%;
  animation: hg-flow 1.8s linear infinite;
}
.hg-chip--in::after {
  left: 100%;
  background-image: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.hg-chip--ext::before {
  right: 100%;
  background-image: linear-gradient(90deg, transparent, var(--purple), transparent);
}
@keyframes hg-flow {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.hg-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 156px;
  height: 156px;
  border-radius: 28px;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(55, 191, 181, 0.28), rgba(0, 0, 0, 0.55));
  border: 1px solid rgba(55, 191, 181, 0.5);
  animation: hg-pulse 3.2s ease-in-out infinite;
}
.hg-center-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.hg-center-label {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.1;
}
@keyframes hg-pulse {
  0%, 100% { box-shadow: var(--shadow-strong), 0 0 36px rgba(55, 191, 181, 0.18); }
  50%      { box-shadow: var(--shadow-strong), 0 0 60px rgba(55, 191, 181, 0.32); }
}
.hero-graphic-legend {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.hg-leg { display: inline-flex; align-items: center; gap: 8px; }
.hg-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.hg-dot--in { background: var(--accent); }
.hg-dot--ext { background: var(--purple); }
@media (max-width: 700px) {
  .hero-graphic-stage { grid-template-columns: 1fr; gap: 14px; justify-items: center; }
  .hg-center { order: 1; }
  .hg-col--in { order: 2; }
  .hg-col--ext { order: 3; }
  .hg-col { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; }
  .hg-chip--in::after, .hg-chip--ext::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hg-chip--in::after, .hg-chip--ext::before { animation: none; }
  .hg-center { animation: none; }
}

/* ===== Proč my — řádek statistik (sjednoceno s detailem produktu: bez karet) ===== */
.why-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.why-stat {
  text-align: center;
}
.why-stat-value {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1.1;
}
.why-stat-label {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
@media (max-width: 760px) {
  .why-stats { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ===== Produkt — feature odrážky ===== */
.product-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-features li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ===== HERO 100vh + pás log uvnitř hero ===== */
.hero--full {
  /* sticky navbar zabírá místo nad hero → odečteme jeho výšku (+ rezerva), ať se vejde i pás log */
  min-height: calc(100vh - var(--nav-height, 68px) - 16px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 0;
  position: relative;
  overflow: hidden; /* ořízne background mřížku dlaždic */
}
.hero--full .hero-inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1; /* nad background mřížkou */
}
/* Animovaná particle-wave vrstva v pozadí hero (viz scripts/hero-waves.js) */
.hero-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;            /* pod .hero-inner (z-index:1), nad .hero::before gradientem */
  pointer-events: none;
  display: block;
}
.hero-logos {
  flex: 0 0 auto;
  padding: 0 0 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-logos-label {
  font-size: 0.74rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 22px;
}
/* „Důvěřují nám" eyebrow nad logy — obecné `.hero p` (1.1rem) ho zvětšovalo,
   přebíjíme vyšší specificitou (jen velikost; casing řeší pravidlo níž). */
.hero .hero-logos-label { font-size: 0.78rem; }
.hg-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  height: 40px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.hg-logo img {
  max-height: 34px;
  max-width: 150px;
  width: auto;
  filter: grayscale(1) brightness(1.7) opacity(0.65);
}
@media (max-width: 700px) {
  .hero--full { min-height: auto; padding-top: 32px; }
  .hero--full .hero-inner { padding-top: 24px; }
}

/* ===== Jak to funguje — bez karet, dominantní číslo v pozadí ===== */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.how-step {
  position: relative;
  padding: 30px 12px 0 16px;
}
.how-num {
  position: absolute;
  top: -28px;
  left: -8px;
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  z-index: 0;
  pointer-events: none;
}
.how-step-body { position: relative; z-index: 1; }
.how-step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0 0 10px;
}
.how-step p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 760px) {
  .how-steps { grid-template-columns: 1fr; gap: 28px; }
  .how-num { font-size: 5.5rem; }
}

/* ===== Reference — slidující citace bez karet ===== */
.testi-section { text-align: center; }
.testi-eyebrow { display: block; margin-bottom: 28px; }
.testi-slider {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  min-height: 200px;
}
.testi-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.testi-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.testi-quote {
  position: relative;
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.4px;
  color: var(--text);
}
.testi-quote::before {
  content: "“";
  display: block;
  font-size: 3.5rem;
  line-height: 0.4;
  color: var(--accent);
  margin-bottom: 18px;
}
.testi-author { display: flex; flex-direction: column; gap: 2px; }
.testi-name { font-weight: 700; }
.testi-role { font-size: 0.88rem; color: var(--text-dim); }
.trust-badges { margin-top: 44px; }

/* ===== Žádné uppercase u labelů / eyebrows / badge (přání: nikde) ===== */
.hero-eyebrow,
.section-eyebrow,
.section-block-head .section-eyebrow,
.cta-eyebrow,
.final-cta-eyebrow,
.hero-logos-label,
.contact-brand,
.product-badge,
.audience-tag,
.hg-center-eyebrow,
.testi-eyebrow {
  text-transform: none;
  letter-spacing: 0.2px;
}

/* ===== Plynulé skrolování na kotvy (+ offset pod sticky navbar) ===== */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--nav-height, 68px) + 20px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ===== Vysouvací kontaktní FAB — kompaktnější (bez QR, menší) ===== */
.contact-fab {
  bottom: 20px;
  border-radius: 14px 0 0 14px;
  transform: translateX(calc(100% - 38px));
}
.contact-fab-tab {
  flex-basis: 38px;
  padding: 14px 0;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: none;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
.contact-fab-card {
  width: auto;
  max-width: 278px;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 13px 16px 13px 14px;
}
.contact-fab-qr { display: none; }
.contact-fab-avatar { width: 42px; height: 42px; font-size: 0.95rem; }
.contact-fab-name { font-size: 0.92rem; }
.contact-fab-role { font-size: 0.72rem; margin-bottom: 6px; }
.contact-fab-line { font-size: 0.8rem; }

/* ===== Kontaktní dláždice (spodek homepage) — čistší, kompaktnější ===== */
.contact-grid { gap: 20px; max-width: 880px; }
.contact-info-card {
  padding: 26px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-strong);
  gap: 0;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.contact-info-card:hover {
  border-color: rgba(55, 191, 181, 0.32);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}
.contact-info-card h3 { font-size: 1.15rem; margin: 0 0 2px; }
.contact-role { color: var(--text-dim); font-size: 0.9rem; margin: 0 0 16px; }
.contact-address {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0 0 16px;
}
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  margin-bottom: 20px;
  border-top: 1px solid var(--border);
}
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s;
}
.contact-line:hover { color: var(--accent); }
.contact-line-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-dim);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.contact-info-card .cta-btn {
  align-self: stretch;
  margin-top: auto;
}

/* Samostatná podstránka „O nás" — odsazení pod sticky navbarem. */
.page-about { padding-top: 40px; }
@media (max-width: 700px) { .page-about { padding-top: 16px; } }

/* Fixní vyjížděcí kontaktní karta (FAB) — na mobilu úplně skrýt. */
@media (max-width: 992px) {
  .contact-fab { display: none !important; }
}

/* Kurzor pointer na všech interaktivních tlačítkách.
   <button> defaultně pointer NEMÁ (na rozdíl od <a>), proto ho přidáváme. */
button:not(:disabled),
[role="button"],
.cta-btn,
.nav-cta,
[data-open-contact-modal] { cursor: pointer; }
button:disabled { cursor: default; }

/* =====================================================
   MOBILNÍ NAVIGACE — offcanvas drawer
   ===================================================== */

/* Nikdy nedovolit vodorovný přetok (drawer mimo obrazovku, marquee apod.).
   `clip` (ne hidden) zachová sticky navbar. */
html, body { overflow-x: clip; }

/* Desktop: wrapper je „průhledný" — děti se chovají jako přímé flex položky navbaru. */
.nav-drawer { display: contents; }
.nav-drawer-close,
.nav-drawer-head,
.nav-backdrop { display: none; }

/* Hezčí hamburger — tři linky kreslené přes span (místo znaku ☰). */
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
/* Otevřeno → „X" */
.site-nav[data-open="true"] .nav-toggle-bars { background: transparent; }
.site-nav[data-open="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.site-nav[data-open="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 992px) {
  /* Navbar se přepíná na mobilní (offcanvas) už od 992 px. */
  /* Blur na navbaru vytváří containing-block pro fixed potomky a uvěznil by
     drawer do výšky lišty → na mobilu blur vypnout (drawer pak vyplní viewport). */
  .site-nav { backdrop-filter: none; -webkit-backdrop-filter: none; }

  .site-nav-inner { padding: 12px 16px; gap: 12px; }
  .nav-toggle { display: inline-flex; margin-left: auto; z-index: 1310; }
  /* Otevřeno → hamburger schovat, zavírá se křížkem v draweru. */
  .site-nav[data-open="true"] .nav-toggle { display: none; }

  /* Drawer = panel zprava */
  .nav-drawer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 340px);
    padding: 18px 18px calc(22px + env(safe-area-inset-bottom));
    /* Tmavý gradient + jemný teal nádech v rohu. */
    background:
      radial-gradient(130% 60% at 100% 0%, rgba(55, 191, 181, 0.10), transparent 58%),
      linear-gradient(180deg, #171717 0%, #0d0d0d 100%);
    border-left: 1px solid var(--border-strong);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.6);
    transform: translateX(105%);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 1300;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav[data-open="true"] .nav-drawer { transform: translateX(0); }

  /* Hlavička draweru — značka + zavírací křížek */
  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 4px 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border);
  }
  .nav-drawer-brand {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
    color: var(--text);
    white-space: nowrap;
  }
  .nav-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
  }
  .nav-drawer-close:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(90deg);
  }

  /* Menu odkazy ve sloupci (přepisuje starý dropdown z katalog.css) */
  .nav-menu {
    display: flex;
    position: static;
    flex-direction: column;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    gap: 2px;
  }
  .site-nav[data-open="true"] .nav-menu { display: flex; }
  .nav-menu li { list-style: none; }
  .nav-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 12px;
    border-left: 2px solid transparent;
    transition: background 0.18s, color 0.18s, border-color 0.18s, padding-left 0.18s;
  }
  .nav-menu a::after {
    content: "\203A"; /* › — náznak proklikatelnosti */
    font-size: 1.25rem;
    line-height: 1;
    color: var(--text-dim);
    opacity: 0.7;
    transition: transform 0.18s, color 0.18s;
  }
  .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    padding-left: 18px;
  }
  .nav-menu a:hover::after { transform: translateX(3px); color: var(--text-muted); }
  .nav-menu a.is-active {
    color: var(--accent);
    background: var(--accent-soft);
    border-left-color: var(--accent);
  }
  .nav-menu a.is-active::after { color: var(--accent); opacity: 1; }

  /* Postupné naskočení položek při otevření (stagger). */
  .nav-drawer-head,
  .nav-menu li,
  .nav-actions {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .site-nav[data-open="true"] .nav-drawer-head,
  .site-nav[data-open="true"] .nav-menu li,
  .site-nav[data-open="true"] .nav-actions {
    opacity: 1;
    transform: none;
  }
  .site-nav[data-open="true"] .nav-drawer-head   { transition-delay: 0.05s; }
  .site-nav[data-open="true"] .nav-menu li:nth-child(1) { transition-delay: 0.10s; }
  .site-nav[data-open="true"] .nav-menu li:nth-child(2) { transition-delay: 0.14s; }
  .site-nav[data-open="true"] .nav-menu li:nth-child(3) { transition-delay: 0.18s; }
  .site-nav[data-open="true"] .nav-menu li:nth-child(4) { transition-delay: 0.22s; }
  .site-nav[data-open="true"] .nav-menu li:nth-child(5) { transition-delay: 0.26s; }
  .site-nav[data-open="true"] .nav-menu li:nth-child(6) { transition-delay: 0.30s; }
  .site-nav[data-open="true"] .nav-actions { transition-delay: 0.32s; }

  /* Akce (jazyk + CTA) ve sloupci, na celou šířku */
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);
  }
  .nav-actions .lang-switch { margin: 0; align-self: center; }
  .nav-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    font-size: 0.98rem;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(55, 191, 181, 0.25);
  }
  .nav-cta:hover { transform: translateY(-1px); }

  /* Backdrop ztmavující stránku */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 8, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
    z-index: 1290;
  }
  .nav-backdrop[hidden] { display: block; } /* CSS řídí viditelnost, ne atribut */
  .site-nav[data-open="true"] .nav-backdrop { opacity: 1; visibility: visible; }

  /* Zámek scrollu těla, když je drawer otevřený */
  body.nav-lock { overflow: hidden; }

  /* Respekt k prefers-reduced-motion — bez staggeru/animací. */
  @media (prefers-reduced-motion: reduce) {
    .nav-drawer { transition: none; }
    .nav-drawer-head,
    .nav-menu li,
    .nav-actions { transition: none; opacity: 1; transform: none; }
  }
}
