/* ==========================================================================
   BERNI – homepage
   Bootstrap 5.3 (pouze CSS) + vlastní vrstva. Žádný JavaScript.
   Prefix vlastních tříd: .bn-
   ========================================================================== */

/* ---------- 1) Design tokeny + přemapování Bootstrap proměnných ---------- */
:root {
  /* Hlavní barva = modrá z loga BERNI */
  --bn-blue: #75abdf;        /* logo – akcenty, ikony, čísla na tmavém */
  --bn-blue-rgb: 117, 171, 223;
  --bn-blue-600: #4a82b8;    /* hover, přechody */
  --bn-blue-700: #3f76ab;    /* plochy s bílým textem (kontrast 4.8:1) */
  --bn-blue-800: #2f5b85;

  --bn-ink: #121a22;
  --bn-black: #0b1117;
  --bn-dark: #15222f;        /* tmavé karty */
  --bn-deep: #1d3347;        /* hero / kontakty */
  --bn-deep-2: #24405a;
  --bn-slate: #4f6272;
  --bn-sand: #c79a6b;
  --bn-bg: #f2f4f6;
  --bn-line: #d5dde5;
  --bn-soft: rgba(255, 255, 255, .8);
  --bn-radius: 1.25rem;

  --bs-body-font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-bg: var(--bn-bg);
  --bs-body-color: var(--bn-ink);
  --bs-link-color-rgb: 47, 91, 133;
  --bs-link-hover-color-rgb: 18, 26, 34;
  --bs-border-radius: .6rem;
  --bs-focus-ring-color: rgba(var(--bn-blue-rgb), .5);
}

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

.text-brand { color: var(--bn-blue-700) !important; }
.text-brand-light { color: var(--bn-blue) !important; }
.bn-text-soft { color: var(--bn-soft); }
.bn-text-muted { color: #3b4855; }

.bn-skip { position: absolute; z-index: 1100; top: .5rem; left: .5rem; padding: .5rem 1rem; background: #fff; border-radius: .5rem; }

/* ---------- 2) Typografie ---------- */
.bn-title {
  font-weight: 600;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -.01em;
}
.bn-hero-title {
  font-weight: 600;
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -.015em;
}

/* ---------- 3) Tlačítka ---------- */
.bn-btn-dark {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bn-black);
  --bs-btn-border-color: var(--bn-black);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #000;
  --bs-btn-hover-border-color: #000;
  --bs-btn-active-bg: #000;
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: var(--bn-blue-rgb);
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: .7rem;
  --bs-btn-font-weight: 500;
}
.bn-btn-lg { --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: 1rem; --bs-btn-font-size: 1.1rem; box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
.bn-btn-brand {
  --bs-btn-color: var(--bn-ink);
  --bs-btn-bg: var(--bn-blue);
  --bs-btn-border-color: var(--bn-blue);
  --bs-btn-hover-color: var(--bn-ink);
  --bs-btn-hover-bg: #8fbde8;
  --bs-btn-hover-border-color: #8fbde8;
  --bs-btn-active-bg: var(--bn-blue-600);
  --bs-btn-focus-shadow-rgb: var(--bn-blue-rgb);
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: .75rem;
}
.bn-btn-icon {
  --bs-btn-color: #fff;
  --bs-btn-bg: rgba(255,255,255,.16);
  --bs-btn-border-color: rgba(255,255,255,.28);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255,255,255,.28);
  --bs-btn-hover-border-color: rgba(255,255,255,.4);
  width: 3rem; height: 3rem;
  display: inline-grid; place-items: center; padding: 0;
}
.bn-link-light { color: #fff; text-decoration: none; font-weight: 500; line-height: 1.2; }
.bn-link-light:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- 4) Ikony / čipy ---------- */
.bn-ico {
  width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  display: inline-grid; place-items: center;
  border-radius: .6rem;
  background: var(--bn-dark); color: #fff; font-size: 1.15rem;
}
.bn-ico--brand { background: var(--bn-blue); color: var(--bn-ink); }
.bn-ico--lg { width: 3.5rem; height: auto; min-height: 3.5rem; }

.bn-chip-icons, .bn-ico-pair {
  display: inline-flex; padding: .25rem; gap: .25rem;
  border-radius: .75rem;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
}
.bn-chip-icons > span, .bn-ico-pair > span {
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  border-radius: .55rem; font-size: 1.1rem;
}
.bn-chip-icons > span:first-child { color: var(--bn-blue); }
.bn-chip-icons > span + span { background: var(--bn-blue); color: var(--bn-ink); }
.bn-ico-pair { border-color: transparent; background: var(--bn-blue); color: var(--bn-ink); }
.bn-ico-pair > span + span { background: var(--bn-dark); color: var(--bn-blue); }

/* ---------- 5) Hlavička (leží přes hero) ---------- */
.bn-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.bn-header .nav-link { color: rgba(255,255,255,.86); font-weight: 500; font-size: 1.05rem; white-space: nowrap; }
.bn-header .nav-link:hover,
.bn-header .nav-link:focus-visible { color: #fff; }

.bn-logo { display: inline-flex; align-items: center; padding: 0; }
.bn-logo img { display: block; width: auto; height: 2.5rem; }
@media (max-width: 575.98px) { .bn-logo img { height: 2.1rem; } }

/* Mobilní menu bez JS */
.bn-header .navbar-toggler { cursor: pointer; }
.bn-nav-toggle:focus-visible + .navbar-toggler { box-shadow: 0 0 0 .2rem rgba(255,255,255,.5); }
@media (max-width: 1199.98px) {
  .bn-header .navbar-collapse {
    display: none;
    margin-top: .75rem; padding: 0 1rem;
    border-radius: 1rem; background: var(--bn-dark);
  }
  .bn-nav-toggle:checked ~ .navbar-collapse { display: block; }
  .bn-header:has(.bn-nav-toggle:checked) { background: var(--bn-deep); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
  .bn-header .navbar-collapse { margin-bottom: .5rem; }
}

/* ---------- 6) SEKCE 1 – Slideshow (CSS only) ---------- */
.bn-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  padding: clamp(7.5rem, 12vw, 10rem) 0 2.5rem;
  border-radius: 0 0 2rem 2rem;
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(var(--bn-blue-rgb), .28), transparent 65%),
    linear-gradient(165deg, #24405a 0%, #1d3347 55%, #172a3b 100%);
}
/* tmavší „podlaha“ jako v návrhu */
.bn-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 48%; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.28));
  clip-path: polygon(0 78%, 52% 8%, 100% 30%, 100% 100%, 0 100%);
}

.bn-slides { display: grid; }
.bn-slides > .bn-slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s;
}
.bn-hero-radio[value="1"]:checked ~ .bn-slides > .bn-slide:nth-child(1),
.bn-hero-radio[value="2"]:checked ~ .bn-slides > .bn-slide:nth-child(2),
.bn-hero-radio[value="3"]:checked ~ .bn-slides > .bn-slide:nth-child(3),
.bn-hero-radio[value="4"]:checked ~ .bn-slides > .bn-slide:nth-child(4),
.bn-hero-radio[value="5"]:checked ~ .bn-slides > .bn-slide:nth-child(5),
.bn-hero-radio[value="6"]:checked ~ .bn-slides > .bn-slide:nth-child(6) {
  opacity: 1; visibility: visible; transform: none;
  transition-delay: 0s;
}

.bn-hero-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.bn-hero-tabs label {
  cursor: pointer; user-select: none;
  padding: .55rem 1rem; border-radius: 2rem;
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.75); font-size: .95rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.bn-hero-tabs label span { opacity: .6; margin-right: .35rem; font-variant-numeric: tabular-nums; }
.bn-hero-tabs label:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.bn-hero-radio[value="1"]:checked ~ .bn-hero-tabs label[data-slide="1"],
.bn-hero-radio[value="2"]:checked ~ .bn-hero-tabs label[data-slide="2"],
.bn-hero-radio[value="3"]:checked ~ .bn-hero-tabs label[data-slide="3"],
.bn-hero-radio[value="4"]:checked ~ .bn-hero-tabs label[data-slide="4"],
.bn-hero-radio[value="5"]:checked ~ .bn-hero-tabs label[data-slide="5"],
.bn-hero-radio[value="6"]:checked ~ .bn-hero-tabs label[data-slide="6"] { background: var(--bn-blue); color: var(--bn-ink); border-color: var(--bn-blue); }
.bn-hero-radio[value="1"]:focus-visible ~ .bn-hero-tabs label[data-slide="1"],
.bn-hero-radio[value="2"]:focus-visible ~ .bn-hero-tabs label[data-slide="2"],
.bn-hero-radio[value="3"]:focus-visible ~ .bn-hero-tabs label[data-slide="3"],
.bn-hero-radio[value="4"]:focus-visible ~ .bn-hero-tabs label[data-slide="4"],
.bn-hero-radio[value="5"]:focus-visible ~ .bn-hero-tabs label[data-slide="5"],
.bn-hero-radio[value="6"]:focus-visible ~ .bn-hero-tabs label[data-slide="6"] { outline: 2px solid #fff; outline-offset: 3px; }

.bn-hero .bi-check2 { color: var(--bn-blue); }
.bn-hero .bn-ico { color: var(--bn-blue); }

.bn-glass {
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 1rem;
  background: rgba(10, 18, 26, .25);
}
.bn-spark { width: 8.5rem; height: auto; color: var(--bn-blue); }

.bn-hero-figure { position: relative; }
.bn-hero-figure img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.bn-hero-figure .bn-hero-img--burst { filter: none; transform: scale(1.12); }

.bn-callout {
  position: absolute;
  padding: .45rem .85rem; border-radius: .5rem;
  background: rgba(15, 27, 39, .85);
  border: 1px solid rgba(var(--bn-blue-rgb), .9);
  font-size: .95rem; white-space: nowrap;
}
.bn-callout::before, .bn-callout::after { content: ""; position: absolute; top: 50%; }
.bn-callout::before { right: 100%; width: 2rem; height: 1px; background: var(--bn-blue); }
.bn-callout::after  { right: calc(100% + 2rem); width: .75rem; height: .75rem; margin-top: -.375rem; border-radius: 50%; background: var(--bn-blue); box-shadow: 0 0 0 4px rgba(var(--bn-blue-rgb), .25); }
.bn-callout--top    { top: 16%; right: 2%; }
.bn-callout--bottom { bottom: 12%; right: 6%; }

.bn-badge-round {
  position: absolute; left: 2%; top: 50%;
  width: clamp(6rem, 12vw, 8.5rem); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
}
.bn-badge-round > span {
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: var(--bn-blue); color: var(--bn-ink); font-size: .8rem; line-height: 1;
}
.bn-badge-round strong { display: block; font-size: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  .bn-slides > .bn-slide { transition: none; transform: none; }
}

/* ---------- 7) Obecné sekce a karty ---------- */
.bn-section { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }

.bn-card-dark  { background: var(--bn-dark); color: #fff; border-radius: 1rem; }
.bn-card-light { background: #fff; border: 1px solid var(--bn-line); border-radius: 1rem; }

.bn-thumb { width: 5.5rem; height: auto; flex-shrink: 0; }
.bn-thumb--light { width: 4.5rem; }

/* SEKCE 2 – karty přesahují přes centrální obrázek */
.bn-center-figure img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.18)); }
@media (min-width: 992px) {
  .bn-overlap-end   { position: relative; z-index: 2; margin-right: -3.5rem; }
  .bn-overlap-start { position: relative; z-index: 2; margin-left: -3.5rem; }
}

/* ---------- 8) SEKCE 3 – tři karty oborů ---------- */
.bn-feature-card {
  position: relative; height: 100%;
  padding: 1.75rem 1.75rem 1.25rem;
  border-radius: var(--bn-radius);
  color: #fff;
  background: linear-gradient(160deg, #213a52 0%, var(--bn-dark) 100%);
  transition: transform .25s ease, box-shadow .25s ease;
}
.bn-feature-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0,0,0,.55); }
.bn-feature-card--accent { background: linear-gradient(160deg, var(--bn-blue-600) 0%, var(--bn-blue-800) 100%); }
@media (min-width: 992px) {
  .bn-feature-card--accent { padding: 2rem 2rem 1.5rem; }
}
.bn-card-img { max-height: 13rem; object-fit: contain; }
.bn-feature-card--accent .bn-card-img { max-height: 17rem; max-width: 68%; }

.bn-float-list {
  position: absolute; right: 0; top: 8%;
  display: flex; flex-direction: column; align-items: flex-end; gap: .4rem;
  font-size: .85rem; color: rgba(255,255,255,.85);
}
.bn-float-list li { padding-right: .5rem; }
.bn-float-list strong { margin-left: .35rem; color: #fff; }
.bn-float-tag {
  padding: .45rem .75rem !important;
  border-radius: .5rem;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  color: #fff;
}

.bn-swatches li {
  flex: 1; display: flex; align-items: flex-end;
  min-height: 5.5rem; padding: .5rem .6rem;
  border-radius: .6rem; font-size: .75rem;
  border: 1px solid rgba(255,255,255,.25);
  background: var(--c);
}
.bn-swatch--buk   { --c: #d9ab7c; color: #1c1c1c; }
.bn-swatch--orech { --c: #5b3a25; }
.bn-swatch--cerny { --c: #151515; }

.bn-feature-card .stretched-link:focus-visible::after { outline: 3px solid #fff; outline-offset: -6px; border-radius: var(--bn-radius); }

/* ---------- 9) SEKCE 4 – bento dlaždice ---------- */
.bn-tile {
  display: flex; flex-direction: column;
  padding: 1.75rem; border-radius: 1rem; color: #fff;
  min-height: 12rem;
}
.bn-tile--dark { background: var(--bn-dark); }
.bn-tile--brand { background: linear-gradient(160deg, var(--bn-blue-600), var(--bn-blue-700)); }
.bn-tile-title { font-size: 1.45rem; font-weight: 500; line-height: 1.2; margin-bottom: .9rem; }
.bn-tile img { max-height: 11rem; object-fit: contain; }
.bn-tile-hero { max-height: 18rem !important; }
.bn-tile-arrow { font-size: 2.5rem; opacity: .85; transition: transform .2s; }
.bn-tile:hover .bn-tile-arrow { transform: translate(4px, -4px); }
.bn-pill {
  padding: .3rem .7rem; border-radius: 2rem;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
}

.bn-neon {
  width: 3.25rem; aspect-ratio: 1; border-radius: .5rem;
  background: var(--c);
  border: 2px solid rgba(255,255,255,.7);
  box-shadow: 0 0 22px -2px var(--c);
}
.bn-neon--lg { width: 4.5rem; }
.bn-neon--yellow { --c: #e4ff3a; }
.bn-neon--orange { --c: #ff7a1a; }
.bn-neon--pink   { --c: #ff4f9a; }

.bn-wood {
  height: 6.5rem; border-radius: .6rem;
  border: 3px solid #0c1110;
  background:
    repeating-linear-gradient(100deg, rgba(0,0,0,.08) 0 2px, transparent 2px 14px),
    repeating-radial-gradient(ellipse at 30% 120%, #c98e57 0 6px, #b67a45 6px 11px, #d59c63 11px 17px);
}

/* ---------- 10) SEKCE 5 – čísla + kroky ---------- */
.bn-stat {
  display: flex; justify-content: space-between; gap: .75rem;
  height: 100%; min-height: 8.5rem; overflow: hidden;
  padding: 1rem 1.25rem 0 0;
  border-radius: .75rem; background: linear-gradient(160deg, var(--bn-blue-600), var(--bn-blue-700)); color: #fff;
}
.bn-stat-num {
  font-weight: 300; line-height: .8; letter-spacing: -.05em;
  font-size: clamp(4rem, 2.5rem + 5vw, 7rem);
  margin-left: -.06em; align-self: flex-end;
}
.bn-stat-text { font-size: .85rem; line-height: 1.3; max-width: 9rem; text-align: left; }

.bn-photo { position: relative; border-radius: 1rem; overflow: hidden; }
.bn-photo img { aspect-ratio: 5 / 6; object-fit: cover; }
.bn-photo-btn { position: absolute; left: 1.5rem; bottom: 1.5rem; }

.bn-steps { display: grid; gap: 1rem; }
.bn-step {
  background: #fff;
  border: 1px solid var(--bn-line);
  border-radius: .9rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 30px -24px rgba(0,0,0,.35);
}
@media (min-width: 768px) {
  /* „schody“ jako v návrhu */
  .bn-steps { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(5.5rem, auto); gap: .75rem; }
  .bn-step:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  .bn-step:nth-child(2) { grid-column: 2; grid-row: 2 / 4; }
  .bn-step:nth-child(3) { grid-column: 1; grid-row: 3 / 5; }
}

/* ---------- 10b) Videa (YouTube) ---------- */
.bn-video-card {
  height: 100%;
  padding: .75rem .75rem 1.5rem;
  border-radius: var(--bn-radius);
  background: var(--bn-dark); color: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.bn-video-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0,0,0,.55); }
.bn-video {
  border-radius: .9rem; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, var(--bn-deep-2), #0f1a24 75%);
}
/* ikona „play“ pod iframem – vidět jen do načtení videa */
.bn-video::after {
  content: "\f4f2"; font-family: "bootstrap-icons";
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 3.5rem; color: var(--bn-blue);
}
.bn-video > iframe { z-index: 1; border: 0; }

/* ---------- 11) Kontakty + mapa ---------- */
.bn-contact {
  color: #fff;
  padding: clamp(4rem, 3rem + 4vw, 6rem) 0 calc(clamp(4rem, 3rem + 4vw, 6rem) + 2rem);
  background: linear-gradient(180deg, var(--bn-deep) 0%, #172a3b 100%);
}
.bn-map { position: relative; border-radius: var(--bn-radius); overflow: hidden; background: #cfd8e1; }
.bn-map-card {
  position: relative; z-index: 1;
  padding: 2rem;
  background: #0f1a24; color: #fff;
}
.bn-map-card address { font-style: normal; }
.bn-map-frame { aspect-ratio: 4 / 3; }
.bn-map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.45) contrast(1.05); }
@media (min-width: 992px) {
  .bn-map { min-height: 34rem; }
  .bn-map-frame { position: absolute; inset: 0; aspect-ratio: auto; }
  .bn-map-card {
    width: min(26rem, 45%);
    margin: 1.5rem;
    border-radius: var(--bn-radius);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
  }
}

.bn-social {
  width: 2.5rem; height: 2.5rem; display: inline-grid; place-items: center;
  border-radius: .5rem; color: #fff; text-decoration: none;
  transition: filter .2s, transform .2s;
}
.bn-social:hover { color: #fff; filter: brightness(1.12); transform: translateY(-2px); }
.bn-social--slate { background: var(--bn-slate); }
.bn-social--brand { background: var(--bn-blue); color: var(--bn-ink); }
.bn-social--brand:hover { color: var(--bn-ink); }
.bn-social--sand  { background: #fff; }   /* tlačítko e-shopu (vozík) – bílé podle klienta */
.bn-social--sand:hover { background: #e4ecf5; filter: none; }

/* ---------- 12) Patička ---------- */
.bn-footer {
  position: relative; margin-top: -2rem;
  padding: 3rem 0 2.5rem;
  background: var(--bn-black); color: #fff;
  border-radius: 2rem 2rem 0 0;
}
.bn-footer-title {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 1.25rem; color: #fff;
}
.bn-footer-list { font-style: normal; color: var(--bn-soft); line-height: 1.7; }
.bn-footer-list p { margin-bottom: .6rem; }
.bn-footer-list a, .bn-footer-bottom a, .bn-footer-menu a { color: var(--bn-blue); text-decoration: none; }
.bn-footer-list a:hover, .bn-footer-bottom a:hover, .bn-footer-menu a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.bn-legal { margin-bottom: .6rem !important; }
.bn-legal > div { display: flex; gap: .35rem; }
.bn-legal dt { font-weight: 400; }
.bn-legal dd { margin: 0; }
.bn-footer-menu li + li { margin-top: .45rem; }
.bn-footer-menu a { color: var(--bn-soft); }
.bn-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }

/* ==========================================================================
   13) Joomla – navigace, obsah komponenty, moduly
   ========================================================================== */

/* Rozbalovací úroveň menu bez JavaScriptu */
.bn-submenu {
  margin: 0;
  padding: .5rem 0 .5rem 1rem;
}
.bn-submenu .nav-link { font-size: .98rem; opacity: .9; }

@media (min-width: 1200px) {
  .bn-header .bn-has-sub { position: relative; }
  .bn-header .bn-submenu {
    position: absolute; z-index: 30; top: 100%; left: 0;
    min-width: 15rem; padding: .5rem;
    border-radius: .75rem;
    background: var(--bn-dark);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .8);
    opacity: 0; visibility: hidden; transform: translateY(.35rem);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .bn-header .bn-has-sub:hover > .bn-submenu,
  .bn-header .bn-has-sub:focus-within > .bn-submenu {
    opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
  }
  .bn-header .bn-submenu .nav-link { padding: .5rem .75rem; border-radius: .5rem; }
  .bn-header .bn-submenu .nav-link:hover { background: rgba(255, 255, 255, .08); }
}

.bn-header .mod-menu .current > .nav-link,
.bn-header .mod-menu .active > .nav-link { color: var(--bn-blue); }

.bn-footer-menu .current > a,
.bn-footer-menu .active > a { color: #fff; }

/* Obsah komponenty (články, kontakty, …) */
.bn-content { color: var(--bn-ink); }
.bn-content h1, .bn-content h2, .bn-content h3 { font-weight: 600; letter-spacing: -.01em; }
.bn-content h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem); margin-bottom: 1.25rem; }
.bn-content h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); margin-top: 2rem; }
.bn-content a { color: var(--bn-blue-800); }
.bn-content img { max-width: 100%; height: auto; border-radius: .75rem; }
.bn-content table { width: 100%; }

/* Modul v kartě (chrome „card“) */
.card { border: 1px solid var(--bn-line); border-radius: var(--bn-radius); }
.card .card-header { background: #fff; border-bottom: 1px solid var(--bn-line); font-weight: 600; }

/* Drobečková navigace */
.mod-breadcrumbs { --bs-breadcrumb-divider-color: #7c8894; font-size: .9rem; }
.mod-breadcrumbs__item a { color: var(--bn-blue-800); text-decoration: none; }

/* Chybová a offline stránka */
.bn-error-page .bn-hero,
.bn-offline-page .bn-hero { min-height: 100vh; display: grid; align-items: center; border-radius: 0; }

/* Vzorník odstínů – popisek musí být čitelný na libovolné barvě */
.bn-swatches li { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }

/* ==========================================================================
   14) Podstránky – page hero, obsah převzatý z původního webu
   ========================================================================== */

/* Page hero – stejný vizuál jako hero na úvodu, jen nižší */
.bn-page-hero { padding: clamp(7rem, 10vw, 8.5rem) 0 clamp(2.5rem, 4vw, 3.5rem); }
.bn-page-hero::after { height: 70%; }
.bn-page-title {
  max-width: 52rem; margin: 0;
  font-weight: 600; line-height: 1.12; letter-spacing: -.015em;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
}
body:not(.bn-home) .bn-content { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }

/* Drobečková navigace v obsahu */
.bn-crumbs { margin-bottom: 1.75rem; }
.bn-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.bn-crumbs li { display: inline-flex; align-items: center; gap: .5rem; color: #5b6774; }
.bn-crumbs li + li::before { content: "\f285"; font-family: "bootstrap-icons"; font-size: .7rem; opacity: .6; }
.bn-crumbs a { color: var(--bn-blue-800); text-decoration: none; padding: .2rem .6rem; border-radius: 2rem; background: #fff; border: 1px solid var(--bn-line); }
.bn-crumbs a:hover { border-color: var(--bn-blue); color: var(--bn-ink); }

/* Typografie obsahu */
.bn-content { font-size: 1.05rem; line-height: 1.65; }
.bn-content .bn-lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.5; color: var(--bn-blue-800); font-weight: 500; max-width: 60rem; }
.bn-content .bn-h2, .bn-content h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 600; margin: 0 0 1rem; }
.bn-content .bn-h3, .bn-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.25rem 0 .6rem; }
.bn-content .bn-block > h3:first-child, .bn-content [class*="col-"] > h3:first-child { margin-top: 0; }
.bn-content p { margin-bottom: .9rem; }
.bn-content strong { font-weight: 600; }
.bn-content ul:not([class]) { padding-left: 0; list-style: none; }
.bn-content ul:not([class]) > li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.bn-content ul:not([class]) > li::before {
  content: ""; position: absolute; left: .2rem; top: .62em;
  width: .5rem; height: .5rem; border-radius: 2px; background: var(--bn-blue);
}
.bn-content a:not(.btn):not(.bn-pcard-more):not(.bn-zoom):not(.bn-img-link) { text-underline-offset: .18em; }

/* Bloky = vizuální sekce na bílé kartě */
.bn-block + .bn-block, .bn-gallery + .bn-block, .bn-block + .bn-gallery, .bn-gallery + .bn-gallery { margin-top: 1.75rem; }
.bn-content > .item-page > .bn-block:not(.row),
.bn-article > .bn-block:not(.row) {
  background: #fff; border: 1px solid var(--bn-line); border-radius: var(--bn-radius);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
}
.bn-article > .bn-block.row { --bs-gutter-x: 1.5rem; }
.bn-article > .bn-block.row > [class*="col-"] > :not(.bn-pcard):not(.bn-figure):not(.bn-video):not(.bn-actions):not(.bn-note):first-child { margin-top: 0; }
.bn-article > .bn-block.row:not(:has(.bn-pcard)):not(.bn-plain) {
  margin-left: 0; margin-right: 0; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem) calc(clamp(1.25rem, 1rem + 1.5vw, 2.25rem) - .75rem);
  background: #fff; border: 1px solid var(--bn-line); border-radius: var(--bn-radius);
}
.bn-article > .bn-block:empty { display: none; }

/* Obrázky */
.bn-content img { border-radius: .75rem; }
.bn-figure img, .bn-zoom img { display: block; width: 100%; height: auto; }
.bn-figure { background: #fff; border-radius: 1rem; }
.bn-zoom { display: block; cursor: zoom-in; border-radius: .9rem; overflow: hidden; background: #fff; }
.bn-zoom img { transition: transform .35s ease; }
.bn-zoom:hover img { transform: scale(1.03); }
.bn-img-link { display: block; }

/* Galerie */
.bn-gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
}
.bn-gallery > a, .bn-gallery > img {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  padding: .75rem; background: #fff; border: 1px solid var(--bn-line); border-radius: 1rem;
}
.bn-gallery img { width: 100%; height: 100%; object-fit: contain; border-radius: .5rem; }
/* obrázek s popiskem (který míchací element je který apod.) */
.bn-gallery > .bn-gallery-fig { margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.bn-gallery > .bn-gallery-fig > a { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: .75rem; overflow: hidden;
  background: #fff; border: 1px solid var(--bn-line); border-radius: 1rem; }
.bn-gallery > .bn-gallery-fig > a:hover { border-color: var(--bn-blue); }
/* obrázek celý v rámečku bez ořezu a bez zvětšování malých fotek (procentní výška v gridu nefunguje) */
.bn-gallery > .bn-gallery-fig > a { position: relative; }
.bn-gallery > .bn-gallery-fig > a > img { position: absolute; inset: .75rem; width: calc(100% - 1.5rem) !important;
  height: calc(100% - 1.5rem) !important; max-width: none; max-height: none; object-fit: scale-down; }
.bn-gallery-fig figcaption { font-size: .92rem; font-weight: 600; line-height: 1.3; text-align: center; color: var(--bn-ink); }

/* Produktové karty (rozcestníky) */
.bn-pcard {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--bn-line); border-radius: var(--bn-radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.bn-pcard:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 24px 40px -24px rgba(18, 26, 34, .45); }
.bn-pcard-img {
  display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 1.25rem;
  background: radial-gradient(circle at 50% 60%, #fff 0%, #eef2f6 100%);
}
.bn-pcard-img img { width: 100%; height: 100%; object-fit: contain; border-radius: .5rem; }
.bn-pcard-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.5rem 1.5rem; }
.bn-pcard-title { font-size: 1.2rem !important; font-weight: 600; line-height: 1.25; margin: 0 0 .6rem !important; }
.bn-pcard-text { font-size: .95rem; color: #3b4855; }
.bn-pcard-text p:last-child { margin-bottom: 0; }
.bn-pcard-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: 1rem; position: relative; z-index: 2; }
.bn-pcard-more { font-weight: 600; text-decoration: none; color: var(--bn-blue-800) !important; position: static; }
.bn-pcard-more::after { z-index: 1; }
.bn-pcard:hover .bn-pcard-more i { transform: translateX(3px); }
.bn-pcard-more i { display: inline-block; transition: transform .2s; }

/* Tlačítka v obsahu */
.bn-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.bn-content .btn { border-radius: .6rem; }
.bn-content .btn-sm { --bs-btn-padding-x: .9rem; --bs-btn-padding-y: .45rem; --bs-btn-font-size: .9rem; }
.bn-btn-outline {
  --bs-btn-color: var(--bn-ink); --bs-btn-bg: #fff; --bs-btn-border-color: var(--bn-line);
  --bs-btn-hover-color: var(--bn-ink); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: var(--bn-blue);
  --bs-btn-padding-x: 1.1rem; --bs-btn-padding-y: .65rem; --bs-btn-font-weight: 500;
}
.bn-content a.btn { text-decoration: none; }

/* Odkaz na PDF */
.bn-content a.bn-doc-link { font-weight: 500; }
.bn-content a.bn-doc-link::before { content: "\f63e"; font-family: "bootstrap-icons"; margin-right: .35rem; color: #c0392b; font-weight: 400; }

/* Poznámka / zvýrazněný blok */
.bn-note {
  height: 100%;
  padding: 1.25rem 1.5rem; border-radius: 1rem;
  background: linear-gradient(160deg, #213a52 0%, var(--bn-dark) 100%); color: #fff;
}
.bn-note h3 { color: var(--bn-blue); margin-top: 0 !important; }
.bn-note a { color: var(--bn-blue) !important; }
.bn-note p:last-child { margin-bottom: 0; }

/* Video */
.bn-content .bn-video { position: relative; }
.bn-local-video { display: block; width: 100%; border-radius: 1rem; background: #000; }
/* videa z telefonu jsou na výšku – nesmí přerůst obrazovku */
.bn-local-video { width: auto; max-width: 100%; max-height: 80vh; margin-inline: auto; }

/* Tabulky (technické parametry) */
.bn-content table {
  width: 100%; margin: 1rem 0; border-collapse: separate; border-spacing: 0;
  font-size: .95rem; background: #fff; border: 1px solid var(--bn-line); border-radius: .9rem; overflow: hidden;
}
.bn-content td, .bn-content th { padding: .6rem .9rem; border-bottom: 1px solid var(--bn-line); vertical-align: top; }
.bn-content tr:last-child td { border-bottom: 0; }
.bn-content tr:nth-child(even) td { background: #f7f9fb; }
.bn-content table p { margin: 0; }
.bn-table-wrap { overflow-x: auto; }

/* Výzva ke kontaktu */
.bn-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin-top: 2rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--bn-radius); color: #fff;
  background:
    radial-gradient(600px 300px at 85% 30%, rgba(var(--bn-blue-rgb), .3), transparent 65%),
    linear-gradient(165deg, #24405a 0%, #1d3347 100%);
}
.bn-cta .bn-h2 { color: #fff; }

/* Rozbalovací menu – podpoložky na mobilu */
@media (max-width: 1199.98px) {
  .bn-header .bn-submenu { list-style: none; }
}

/* Page hero – obsah z článku (drobečky, perex, obrázek) */
.bn-page-hero .bn-crumbs { margin-bottom: 1rem; }
.bn-page-hero .bn-crumbs li { color: rgba(255,255,255,.7); }
.bn-page-hero .bn-crumbs a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.9); }
.bn-page-hero .bn-crumbs a:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.4); }
.bn-hero-lead { max-width: 46rem; margin: 1rem 0 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.5; color: var(--bn-soft); }
.bn-page-hero-figure {
  display: grid; place-items: center; height: clamp(9rem, 14vw, 13rem);
  padding: 1rem; border-radius: 1.25rem;
  background: rgba(255,255,255,.92); box-shadow: 0 30px 50px -30px rgba(0,0,0,.6);
}
.bn-page-hero-figure img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: .5rem; }
/* záložní zobrazení, kdyby šablona blok nepřesunula */
.bn-content .bn-hero-data { margin-bottom: 1.5rem; }
.bn-content .bn-hero-data img { display: none; }

/* Opravy: tlačítka v obsahu si drží barvu Bootstrap proměnných */
.bn-content a.btn, .bn-content a.btn:hover { color: var(--bs-btn-color); }
.bn-content a.btn:hover { color: var(--bs-btn-hover-color); }
.bn-section-head { margin: 2.5rem 0 1.25rem !important; }
.bn-page-hero-figure { height: 13rem; display: block; }
.bn-page-hero-figure img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bn-video-more { color: var(--bn-blue) !important; text-decoration: none; }
.bn-video-more:hover { color: #fff !important; }

/* Obrázky v textu – rozumná maximální výška (např. portrétní fotky) */
.bn-article .bn-block p img, .bn-article .bn-figure img, .bn-article .bn-zoom img { max-height: 26rem; object-fit: contain; }
.bn-article .bn-block p img { width: auto; display: block; }

/* Mobil: z drobečků jen odkaz na nadřazenou sekci */
@media (max-width: 575.98px) {
  .bn-page-hero .bn-crumbs li { display: none; }
  .bn-page-hero .bn-crumbs li:last-child { display: inline-flex; }
  .bn-page-hero .bn-crumbs li:last-child::before { content: "\f284"; font-family: "bootstrap-icons"; font-size: .8rem; opacity: .8; }
  .bn-article > .bn-block.row:not(:has(.bn-pcard)):not(.bn-plain) { padding-top: 1.25rem; padding-bottom: 1.25rem; }
}

/* ---------- 15) Kontakt ---------- */
.bn-ccard {
  position: relative; display: flex; flex-direction: column; gap: .25rem; height: 100%;
  padding: 1.5rem 1.75rem; border-radius: var(--bn-radius);
  background: linear-gradient(160deg, #213a52 0%, var(--bn-dark) 100%); color: #fff !important;
  text-decoration: none; transition: transform .25s ease, box-shadow .25s ease;
}
.bn-ccard:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0,0,0,.55); color: #fff; }
.bn-ccard--brand { background: linear-gradient(160deg, var(--bn-blue-600) 0%, var(--bn-blue-800) 100%); }
.bn-ccard-ico {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center; margin-bottom: .75rem;
  border-radius: .6rem; background: var(--bn-blue); color: var(--bn-ink); font-size: 1.2rem;
}
.bn-ccard--brand .bn-ccard-ico { background: #fff; }
.bn-ccard-label { font-size: .9rem; color: var(--bn-soft); }
.bn-ccard-value { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); font-weight: 600; letter-spacing: -.01em; }
.bn-ccard-note { font-size: .85rem; color: var(--bn-soft); }

.bn-person {
  display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 1.75rem; height: 100%;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--bn-radius);
  background: #fff; border: 1px solid var(--bn-line);
}
.bn-person-photo { margin: 0; border-radius: 1rem; overflow: hidden; background: #e9eef3; align-self: start; }
.bn-person-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 0 !important; max-height: none !important; }
.bn-eyebrow { margin: 0 0 .35rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bn-blue-700); }
.bn-person .bn-h2 { margin-bottom: .9rem; }
.bn-person-body p { color: #3b4855; }
.bn-person-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1rem 0 0; padding: 0; list-style: none; font-weight: 600; }
.bn-person-links li { display: inline-flex; align-items: center; gap: .5rem; }
.bn-person-links i { color: var(--bn-blue-700); }
.bn-person-links a { text-decoration: none; }
@media (max-width: 575.98px) { .bn-person { grid-template-columns: 1fr; } .bn-person-photo { max-width: 14rem; } }

.bn-addr {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 1.5rem; border-radius: var(--bn-radius); background: #fff; border: 1px solid var(--bn-line);
}
.bn-addr-title { font-size: 1.05rem !important; font-weight: 600; margin: 0 0 .35rem !important; }
.bn-addr address { margin: 0; color: #3b4855; line-height: 1.55; }
.bn-addr-link { display: inline-block; margin-top: .5rem; font-weight: 600; text-decoration: none; }
.bn-addr-photo { flex: 1; min-height: 9rem; border-radius: var(--bn-radius); overflow: hidden; }
.bn-addr-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; max-height: none !important; }

.bn-infocard { height: 100%; padding: 1.5rem 1.75rem; border-radius: var(--bn-radius); background: #fff; border: 1px solid var(--bn-line); }
.bn-infocard-title { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem !important; margin: 0 0 1rem !important; }
.bn-infocard-title i { color: var(--bn-blue-700); }
.bn-dl { margin: 0; }
.bn-dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--bn-line); font-size: .95rem; }
.bn-dl > div:last-child { border-bottom: 0; }
.bn-dl dt { font-weight: 400; color: #5b6774; }
.bn-dl dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bn-infocard-note { margin: 1rem 0 .75rem; font-size: .85rem; color: #5b6774; }
.bn-docs { margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.bn-docs li + li { margin-top: .35rem; }
.bn-quick { margin-bottom: .5rem; }
.bn-person { align-content: start; }

/* ---------- 16) Lightbox (nativní <dialog>) ---------- */
.bn-lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 13, 19, .94); color: #fff; overflow: hidden;
}
.bn-lb::backdrop { background: rgba(8, 13, 19, .6); }
.bn-lb[open] { display: grid; place-items: center; animation: bn-lb-in .2s ease; }
@keyframes bn-lb-in { from { opacity: 0; } to { opacity: 1; } }
.bn-lb-fig { margin: 0; display: grid; place-items: center; gap: .75rem; width: 100%; height: 100%; padding: 4.5rem 4.5rem 3.5rem; }
.bn-lb-img { max-width: 100%; max-height: calc(100dvh - 9rem); object-fit: contain; border-radius: .75rem; background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.bn-lb-cap { font-size: .95rem; color: var(--bn-soft); text-align: center; }
.bn-lb-btn {
  position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0;
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.1);
  color: #fff; font-size: 1.25rem; cursor: pointer; transition: background-color .2s;
}
.bn-lb-btn:hover, .bn-lb-btn:focus-visible { background: var(--bn-blue); color: var(--bn-ink); outline: none; }
.bn-lb-close { top: 1rem; right: 1rem; }
.bn-lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.bn-lb-next { right: 1rem; top: 50%; translate: 0 -50%; }
.bn-lb-single .bn-lb-prev, .bn-lb-single .bn-lb-next { display: none; }
.bn-lb-count { position: absolute; top: 1.6rem; left: 1.25rem; font-size: .9rem; color: var(--bn-soft); font-variant-numeric: tabular-nums; }
.bn-lb-open { overflow: hidden; }
@media (max-width: 575.98px) {
  .bn-lb-fig { padding: 4rem .75rem 4.5rem; }
  .bn-lb-prev, .bn-lb-next { top: auto; bottom: 1rem; translate: none; }
}
@media (prefers-reduced-motion: reduce) { .bn-lb[open] { animation: none; } }

/* Řádky s obrázky a krátkým spojovacím textem („NEBO“) */
.bn-row-media .bn-figure { display: grid; place-items: center; background: transparent; }
.bn-row-media .bn-figure img, .bn-row-media .bn-zoom img { max-height: 22rem; width: auto; max-width: 100%; margin-inline: auto; }
.bn-col-or { display: flex; justify-content: center; }
.bn-or {
  display: inline-grid; place-items: center; min-width: 4rem; height: 4rem; padding: 0 1rem;
  border-radius: 2rem; background: var(--bn-dark); color: #fff; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem;
}
@media (min-width: 768px) { .bn-row-media > .bn-col-or { flex: 0 0 auto; width: auto; } .bn-row-media { justify-content: center; } }

/* Obrázky se nikdy nezvětšují nad svou velikost (malé a staré fotky by se rozmazaly) */
.bn-figure img, .bn-zoom img { width: auto !important; max-width: 100%; height: auto; margin-inline: auto; }
.bn-zoom { display: flex; justify-content: center; background: transparent; }
.bn-pcard-img img, .bn-gallery img { width: auto !important; height: auto !important; max-width: 100%; max-height: 100%; }
.bn-gallery > a { overflow: hidden; }
.bn-figure { display: flex; justify-content: center; }

/* ---------- 17) Přístupnost – kontrast odkazů a textu podle podkladu (WCAG 2.2 AA) ---------- */
/* Modré plochy začínají tmavším odstínem: bílý text ≥ 4.78 : 1 */
.bn-tile--brand, .bn-stat { background: linear-gradient(160deg, var(--bn-blue-700), var(--bn-blue-800)); }
.bn-feature-card--accent, .bn-ccard--brand { background: linear-gradient(160deg, var(--bn-blue-700) 0%, #264c70 100%); }
.bn-tile--brand .bn-text-soft, .bn-feature-card--accent .bn-text-soft, .bn-ccard--brand .bn-ccard-label,
.bn-ccard--brand .bn-ccard-note, .bn-stat .bn-stat-text { color: #fff; }

/* Odkazy na tmavých plochách: světle modrá (≥ 4.8 : 1), na modrých plochách bílá */
.bn-content .bn-note a:not(.btn), .bn-content .bn-cta a:not(.btn), .bn-content .bn-ccard a:not(.btn),
.bn-content .bn-video-card a:not(.btn), .bn-content .bn-feature-card a:not(.btn),
.bn-tile--dark a:not(.btn), .bn-card-dark a:not(.btn), .bn-map-card a:not(.btn):not(.bn-social):not(.link-light), .bn-hero a:not(.btn):not(.bn-crumbs a) { color: var(--bn-blue); }
.bn-content .bn-ccard--brand a:not(.btn), .bn-content .bn-feature-card--accent a:not(.btn),
.bn-tile--brand a:not(.btn), .bn-stat a:not(.btn) { color: #fff; }
.bn-content .bn-ccard, .bn-content .bn-ccard:hover { color: #fff; }
/* Odkazy jsou rozpoznatelné nejen barvou */
.bn-content .bn-block a:not(.btn):not(.bn-pcard-more):not(.bn-zoom):not(.bn-img-link):not(.bn-addr-link) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
/* Viditelný fokus pro klávesnici */
.bn-content a:focus-visible, .bn-ccard:focus-visible, .bn-zoom:focus-visible { outline: 3px solid var(--bn-blue-700); outline-offset: 3px; border-radius: .4rem; }

/* Page hero – obrázek v těsném rámečku podle své velikosti (bez prázdného boxu) */
.bn-page-hero-figure {
  height: auto !important; display: flex !important; justify-content: flex-end; align-items: center;
  padding: 0 !important; background: none !important; box-shadow: none !important;
}
.bn-page-hero-figure img {
  width: auto !important; height: auto !important; max-width: 100%; max-height: 12.5rem !important;
  padding: .6rem; border-radius: 1rem !important; background: #fff;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .65); transform: rotate(-1.5deg);
}

/* ---------- 18) O firmě ---------- */
.bn-story { height: 100%; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--bn-radius); background: #fff; border: 1px solid var(--bn-line); }
.bn-story p { color: #3b4855; }
.bn-quote {
  position: relative; margin: 1.5rem 0 0; padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  border-radius: 1rem; background: var(--bn-bg); font-size: 1.15rem; font-weight: 600; color: var(--bn-ink);
}
.bn-quote::before { content: "\201E"; position: absolute; left: 1rem; top: -.4rem; font-size: 4rem; line-height: 1; color: var(--bn-blue-700); font-family: Georgia, serif; }
.bn-quote p { margin: 0; color: var(--bn-ink) !important; }
.bn-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; height: 100%; margin: 0; padding: 0; list-style: none; }
.bn-fact {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; min-height: 10rem;
  padding: 1.25rem 1.4rem; border-radius: var(--bn-radius); background: #fff; border: 1px solid var(--bn-line);
}
.bn-fact--brand { background: linear-gradient(160deg, var(--bn-blue-700), #264c70); color: #fff; border: 0; }
.bn-fact--dark { background: linear-gradient(160deg, #213a52 0%, var(--bn-dark) 100%); color: #fff; border: 0; }
.bn-fact-num { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); font-weight: 300; line-height: .9; letter-spacing: -.04em; }
.bn-fact-num small { font-size: .55em; vertical-align: super; margin: 0 .05em; }
.bn-fact-text { font-size: .95rem; line-height: 1.35; }
.bn-fact:not(.bn-fact--brand):not(.bn-fact--dark) .bn-fact-num { color: var(--bn-blue-700); }

.bn-offer {
  display: flex; flex-direction: column; gap: .75rem; height: 100%;
  padding: 1.5rem; border-radius: var(--bn-radius); background: #fff; border: 1px solid var(--bn-line);
  color: var(--bn-ink) !important; text-decoration: none !important; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.bn-offer:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 24px 40px -24px rgba(18, 26, 34, .45); }
.bn-offer-title { font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.bn-offer-text { font-size: .95rem; color: #3b4855; }
.bn-offer-more { margin-top: auto; font-weight: 600; color: var(--bn-blue-800); }

.bn-range { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--bn-radius); background: #fff; border: 1px solid var(--bn-line); }
.bn-checklist { columns: 2 22rem; column-gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.bn-checklist li { break-inside: avoid; position: relative; padding: .55rem 0 .55rem 2rem; border-bottom: 1px dashed var(--bn-line); font-size: .98rem; }
.bn-checklist li::before {
  content: "\f26e"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .5rem;
  width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--bn-blue); color: var(--bn-ink); font-size: .8rem;
}
.bn-checklist a { font-weight: 600; }
.bn-content .bn-checklist li::before { content: "\f26e"; }
.bn-cta--about { margin-top: 2.5rem; }
.bn-cta .bn-eyebrow { color: rgba(255, 255, 255, .85); }
/* Ikonová tlačítka (telefon / e-mail / e-shop) si drží vlastní barvy */
a.bn-social, a.bn-social:hover { color: #fff; }
a.bn-social--brand, a.bn-social--brand:hover { color: var(--bn-ink); }
/* Kontrast ikon a hranic ovládacích prvků (WCAG 1.4.11 ≥ 3 : 1) */
a.bn-social--sand, a.bn-social--sand:hover { color: var(--bn-ink); }
.bn-btn-outline { --bs-btn-border-color: #7c8894; --bs-btn-hover-border-color: var(--bn-blue-700); }
.bn-actions--bar { margin-top: 1.25rem; }
.bn-article > .bn-gallery + .bn-actions--bar { margin-top: 1rem; }

/* ---------- 19) Jednotné akce v hero, Ke stažení, seznamy ---------- */
.bn-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.bn-btn-outline-light {
  --bs-btn-color: #fff; --bs-btn-bg: transparent; --bs-btn-border-color: rgba(255,255,255,.55);
  --bs-btn-hover-color: var(--bn-ink); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff;
  --bs-btn-active-bg: #fff; --bs-btn-active-color: var(--bn-ink);
  --bs-btn-padding-x: 1.25rem; --bs-btn-padding-y: .7rem; --bs-btn-font-weight: 500;
}
.bn-hero-actions .btn { border-radius: .6rem; }
.bn-hero a.btn.bn-btn-brand { color: var(--bn-ink); }
.bn-hero a.btn.bn-btn-outline-light { color: #fff; }
.bn-hero a.btn.bn-btn-outline-light:hover { color: var(--bn-ink); }

.bn-downloads { margin-top: 2.5rem; padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); border-radius: var(--bn-radius); background: #fff; border: 1px solid var(--bn-line); }
.bn-downloads ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.bn-downloads li { padding: 0 !important; margin: 0 !important; }
.bn-downloads li::before { display: none !important; }
.bn-dl-item {
  display: flex; align-items: center; gap: .85rem; height: 100%; padding: .9rem 1rem;
  border-radius: .9rem; border: 1px solid var(--bn-line); background: var(--bn-bg);
  color: var(--bn-ink) !important; text-decoration: none !important; font-weight: 500; line-height: 1.3;
  transition: border-color .2s, background-color .2s;
}
.bn-dl-item:hover { border-color: var(--bn-blue-700); background: #fff; }
.bn-dl-item .bi { flex-shrink: 0; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .6rem; background: #fde8e6; color: #b03224; font-size: 1.15rem; }

/* Seznamy v obsahu – jednotný vzhled (ikona, oddělovače, 2 sloupce u delších) */
.bn-content .bn-article ul:not([class]) { margin: 1rem 0; padding: 0; list-style: none; }
.bn-content .bn-article ul:not([class]) > li {
  position: relative; margin: 0; padding: .6rem 0 .6rem 2.1rem;
  border-bottom: 1px dashed var(--bn-line); break-inside: avoid;
}
.bn-content .bn-article ul:not([class]) > li:last-child { border-bottom: 0; }
.bn-content .bn-article ul:not([class]) > li::before {
  content: "\f26e"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .6rem;
  width: 1.4rem; height: 1.4rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--bn-blue); color: var(--bn-ink); font-size: .85rem; line-height: 1;
}
@media (min-width: 992px) {
  .bn-content .bn-article ul:not([class]):has(> li:nth-child(6)) { columns: 2; column-gap: 2.5rem; }
  .bn-content .bn-article ul:not([class]):has(> li:nth-child(6)) > li:nth-last-child(2) { border-bottom: 0; }
}
.bn-content .bn-note ul:not([class]) > li { border-color: rgba(255,255,255,.15); }
.bn-content .bn-pcard ul:not([class]) > li { padding-top: .35rem; padding-bottom: .35rem; font-size: .92rem; }
.bn-content .bn-pcard ul:not([class]) > li::before { top: .4rem; width: 1.15rem; height: 1.15rem; font-size: .7rem; }

/* ---------- 20) Proklikávací karty v modulu Lakovna ---------- */
.bn-card-link { transition: transform .2s ease, box-shadow .2s ease; }
.bn-card-link:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -22px rgba(0,0,0,.6); }
.bn-card-link .stretched-link:focus-visible::after { outline: 3px solid var(--bn-blue-700); outline-offset: 3px; border-radius: 1rem; }
.bn-more-link, .bn-title-link { font-weight: 600; color: var(--bn-blue-800); text-decoration: underline; text-underline-offset: .18em; }
.bn-title-link { color: inherit; text-decoration: none; }
.bn-title-link:hover { color: var(--bn-blue-800); text-decoration: underline; }
.bn-center-figure .stretched-link:focus-visible::after { outline: 3px solid var(--bn-blue-700); border-radius: 1rem; }

/* ---------- 21) Seznam produktů (název + e-shop), odstíny, Související ---------- */
.bn-shoplist { margin: 0; padding: .5rem clamp(1rem, .75rem + 1.5vw, 2rem) !important; list-style: none; background: #fff; border: 1px solid var(--bn-line); border-radius: var(--bn-radius); }
.bn-shoplist > li { padding: 0 !important; margin: 0 !important; border: 0 !important; }
.bn-shoplist > li::before { display: none !important; }
.bn-shoprow {
  display: grid !important; grid-template-columns: 1fr auto; align-items: center; gap: .75rem 1.5rem;
  padding: 1rem 0 !important; border-bottom: 1px solid var(--bn-line) !important;
}
.bn-shoprow--img { grid-template-columns: 6.5rem 1fr auto; }
.bn-shoprow:last-of-type { border-bottom: 0 !important; }
.bn-shoprow-text p { margin: 0 0 .2rem; }
.bn-shoprow-text p:last-child { margin-bottom: 0; }
.bn-shoprow-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.bn-shoprow-thumb { display: grid; place-items: center; width: 6.5rem; height: 5rem; padding: .3rem; border: 1px solid var(--bn-line); border-radius: .7rem; background: #fff; }
.bn-shoprow-thumb img { max-width: 100%; max-height: 100%; width: auto !important; height: auto; object-fit: contain; border-radius: .4rem; }
.bn-shoplist-foot { padding: 1rem 0 .75rem !important; border-top: 1px solid var(--bn-line) !important; text-align: right; }
@media (max-width: 575.98px) {
  .bn-shoprow, .bn-shoprow--img { grid-template-columns: 1fr; }
  .bn-shoprow--img { grid-template-columns: 5rem 1fr; }
  .bn-shoprow--img .bn-shoprow-actions { grid-column: 1 / -1; }
  .bn-shoprow-thumb { width: 5rem; height: 4rem; }
  .bn-shoprow-actions { justify-content: flex-start; }
  .bn-shoplist-foot { text-align: left; }
}

.bn-variants { margin-top: 1.75rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--bn-radius); background: #fff; border: 1px solid var(--bn-line); }
.bn-variants-title { margin: 0 0 1rem; font-weight: 600; }
.bn-variants-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .75rem; }
.bn-variant {
  display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: .8rem;
  border: 1px solid #7c8894; background: #fff; color: var(--bn-ink) !important; text-decoration: none !important; font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
}
.bn-variant:hover { border-color: var(--bn-blue-700); box-shadow: 0 10px 24px -16px rgba(18,26,34,.5); }
.bn-variant .bi { color: var(--bn-blue-800); }
.bn-variant-dot { width: 1.6rem; height: 1.6rem; flex-shrink: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }

.bn-related { margin-top: 2.5rem; }
.bn-related ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.bn-related li { padding: 0 !important; margin: 0 !important; border: 0 !important; }
.bn-related li::before { display: none !important; }
.bn-related-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%;
  padding: 1rem 1.25rem; border-radius: 1rem; background: var(--bn-dark); color: #fff !important; text-decoration: none !important; font-weight: 600;
  transition: transform .2s, background-color .2s;
}
.bn-related-item:hover { transform: translateY(-2px); background: #213a52; }
.bn-related-item .bi { color: var(--bn-blue); transition: transform .2s; }
.bn-related-item:hover .bi { transform: translateX(3px); }
.bn-related-item:focus-visible, .bn-variant:focus-visible, .bn-dl-item:focus-visible { outline: 3px solid var(--bn-blue-700); outline-offset: 3px; }

/* lišta tlačítek pod textem ve sloupci */
.bn-article [class*="col-"] > .bn-actions { margin-top: 1rem; }

/* ---------- 22) Karty v řádku mají vždy stejnou výšku, akce dole ---------- */
.bn-article .row:has(> [class*="col-"] > .bn-pcard) { align-items: stretch !important; }
.bn-article .row > [class*="col-"]:has(> .bn-pcard) { display: flex; flex-direction: column; }
.bn-article .row > [class*="col-"] > .bn-pcard { flex: 1 1 auto; height: auto; }
.bn-pcard-body { flex: 1 1 auto; }
.bn-pcard-actions { margin-top: auto; }
.bn-pcard-text + .bn-pcard-actions { padding-top: 1.25rem; }

/* ---------- 23) Závěr stránky: Další produkty / Související / Ke stažení vedle sebe ---------- */
.bn-endgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; margin-top: 2rem; align-items: start; }
.bn-endbox { margin: 0 !important; padding: 1.25rem 1.25rem 1rem; border-radius: var(--bn-radius); background: #fff; border: 1px solid var(--bn-line); }
.bn-endbox-title { font-size: 1.1rem !important; font-weight: 600; margin: 0 0 .75rem !important; }
.bn-navlist { display: grid !important; gap: .5rem; grid-template-columns: 1fr !important; margin: 0 !important; padding: 0 !important; list-style: none; columns: auto !important; }
.bn-navlist > li { padding: 0 !important; margin: 0 !important; border: 0 !important; }
.bn-navlist > li::before { display: none !important; }
.bn-navitem, .bn-endbox .bn-dl-item {
  display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem .55rem .55rem; border-radius: .8rem;
  border: 1px solid var(--bn-line); background: var(--bn-bg); color: var(--bn-ink) !important; text-decoration: none !important;
  font-weight: 500; line-height: 1.3; transition: border-color .2s, background-color .2s;
}
.bn-navitem:hover, .bn-endbox .bn-dl-item:hover { border-color: var(--bn-blue-700); background: #fff; }
.bn-navitem > .bi { margin-left: auto; color: var(--bn-blue-800); flex-shrink: 0; }
.bn-navitem-title { flex: 1; font-size: .95rem; }
.bn-navitem-thumb { display: grid; place-items: center; flex-shrink: 0; width: 3rem; height: 3rem; border-radius: .6rem; background: #fff; overflow: hidden; }
.bn-navitem-thumb img { max-width: 100%; max-height: 100%; width: auto !important; object-fit: contain; border-radius: 0 !important; }
.bn-navitem-thumb--ico { background: var(--bn-dark); color: var(--bn-blue); font-size: 1.2rem; }
.bn-endbox .bn-dl-item .bi { width: 3rem; height: 3rem; }
.bn-navitem:focus-visible { outline: 3px solid var(--bn-blue-700); outline-offset: 2px; }
.bn-downloads.bn-endbox ul { grid-template-columns: 1fr !important; }

/* ---------- 24) Mobilní menu (bez JS): panel přes obrazovku, čipy podsekcí, akce dole ---------- */
@media (max-width: 1199.98px) {
  html:has(.bn-nav-toggle:checked) { overflow: hidden; }
  .bn-header:has(.bn-nav-toggle:checked) { position: fixed; z-index: 1050; background: var(--bn-deep); box-shadow: none; }

  /* hamburger -> křížek */
  .bn-header .navbar-toggler { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: .75rem; background: rgba(255,255,255,.08); }
  .bn-nav-toggle:checked + .navbar-toggler { background: var(--bn-blue); }
  .bn-nav-toggle:checked + .navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath stroke='%23121a22' stroke-width='2' stroke-linecap='round' d='M3 3l10 10M13 3L3 13'/%3e%3c/svg%3e");
  }

  .bn-header .navbar-collapse {
    position: fixed; inset: 4.5rem 0 0 0; z-index: 1040; margin: 0 !important; padding: 1rem 1rem 1.5rem !important;
    border-radius: 0 !important; overflow-y: auto; overscroll-behavior: contain;
    background: linear-gradient(180deg, var(--bn-deep) 0%, #14222f 100%) !important;
  }
  .bn-nav-toggle:checked ~ .navbar-collapse { display: flex !important; flex-direction: column; animation: bn-menu-in .2s ease; }
  @keyframes bn-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

  .bn-header .mod-menu { gap: .5rem !important; padding: 0 !important; }
  .bn-header .mod-menu > .nav-item {
    border-radius: 1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); padding: .25rem .25rem .5rem;
  }
  .bn-header .mod-menu > .nav-item:not(.bn-has-sub) { padding-bottom: .25rem; }
  .bn-header .mod-menu > .nav-item > .nav-link {
    display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem !important;
    font-size: 1.15rem !important; font-weight: 600; color: #fff;
  }
  .bn-header .mod-menu > .nav-item > .nav-link::after { content: "\f285"; font-family: "bootstrap-icons"; font-size: .85rem; color: var(--bn-blue); }
  .bn-header .mod-menu > .current > .nav-link, .bn-header .mod-menu > .active > .nav-link { color: var(--bn-blue); }

  .bn-header .bn-submenu { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 .75rem .35rem !important; }
  .bn-header .bn-submenu .nav-link {
    padding: .45rem .8rem !important; border-radius: 2rem; font-size: .92rem !important; opacity: 1 !important;
    color: rgba(255,255,255,.9); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  }
  .bn-header .bn-submenu .current > .nav-link, .bn-header .bn-submenu .nav-link:hover { background: var(--bn-blue); color: var(--bn-ink); border-color: var(--bn-blue); }

  /* akce dole: Zavolat + E-shop přes celou šířku */
  .bn-header .navbar-collapse > .d-flex { display: grid !important; grid-template-columns: 1fr 1fr; gap: .5rem !important; margin-top: auto; padding: 1.25rem 0 0 !important; }
  .bn-header .navbar-collapse > .d-flex .btn { width: 100%; height: 3.25rem; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; border-radius: .9rem; }
  .bn-header .navbar-collapse > .d-flex .bn-btn-icon { background: var(--bn-blue); border-color: var(--bn-blue); color: var(--bn-ink); }
  .bn-header .navbar-collapse > .d-flex .bn-btn-icon::after { content: "Zavolat"; margin-left: .5rem; }
  .bn-header .nav-link:focus-visible, .bn-header .btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .bn-nav-toggle:checked ~ .navbar-collapse { animation: none; } }

/* ---------- 25) Připomínky klienta: hero obrázky, pořadí karet, textura dřeva ---------- */
/* hero: vyříznuté / zaoblené obrázky bez zvětšení, jemný stín */
.bn-hero-figure .bn-hero-img--burst { transform: none; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
/* číslo priority v kartě */
.bn-pcard-rank {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  min-width: 2.2rem; height: 2.2rem; padding: 0 .5rem; display: grid; place-items: center;
  border-radius: 2rem; background: var(--bn-dark); color: #fff; font-weight: 600; font-size: .85rem; font-variant-numeric: tabular-nums;
}
.bn-pcard-img--ico { background: linear-gradient(160deg, #213a52 0%, var(--bn-dark) 100%); color: var(--bn-blue); font-size: 3.25rem; }
/* tmely KNETHOLZ: vzorky odstínů na dřevěné textuře */
.bn-swatches {
  padding: .6rem; border-radius: .9rem;
  background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), url("/images/berni/textura-drevo.webp") center / cover;
}

/* ---------- 26) Obrázky homepage: zaoblené rohy, centrální fotka v rozumné velikosti ---------- */
/* fotky v modulech mají zaoblené rohy jako karty (vyříznuté obrázky v hero se neořezávají) */
.bn-tile img, .bn-card-img, .bn-thumb, .bn-center-figure img { border-radius: .9rem; }
/* sekce „Vše pro vaši lakovnu“: fotka (ne vyříznutý produkt) na kartě, výška omezená, nikdy přes celou šířku */
.bn-center-figure {
  display: flex; justify-content: center; align-items: center;
  padding: clamp(1rem, .5rem + 1.5vw, 2rem);
  background: #fff; border: 1px solid var(--bn-line); border-radius: var(--bn-radius);
  box-shadow: 0 30px 50px -30px rgba(18, 26, 34, .35);
}
.bn-center-figure img { width: auto; max-width: 100%; height: auto; max-height: min(32rem, 70vh); filter: none; }
@media (max-width: 991.98px) { .bn-center-figure img { max-height: 24rem; } }

/* ---------- 27) O firmě: výhradní zastoupení německých výrobců ---------- */
.bn-partners { margin-top: 2.5rem; }
.bn-made-de { display: inline-flex; align-items: center; gap: .6rem; }
.bn-made-img { display: block; width: 100%; max-width: 26rem !important; height: auto; margin: .25rem 0; }
.bn-made-de::before {
  content: ""; width: 1.6rem; height: .9rem; border-radius: 2px; flex-shrink: 0;
  background: linear-gradient(#000 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%);
}
.bn-partner {
  display: flex; flex-direction: column; height: 100%;
  padding: 1.25rem 1.25rem 1rem; background: #fff; border: 1px solid var(--bn-line); border-radius: var(--bn-radius);
}
.bn-partner-logo { display: grid; place-items: center; height: 5.5rem; margin-bottom: 1rem; padding: .5rem; border-radius: .9rem; background: #fff; }
.bn-partner-logo { overflow: hidden; }
/* procentní max-height v gridu nefunguje (výška řádku je auto) – pevná mez = výška boxu bez paddingu */
.bn-partner-logo img { max-width: 100%; max-height: 4.5rem; width: auto; height: auto; object-fit: contain; border-radius: 0; }
.bn-partner-wordmark { font-size: 1.9rem; font-weight: 700; letter-spacing: .02em; color: var(--bn-ink); }
.bn-partner-name { font-size: 1.05rem !important; font-weight: 600; margin: 0 0 .35rem !important; }
.bn-partner-text { font-size: .95rem; margin-bottom: .75rem !important; }
.bn-partner-web { margin-top: auto; font-size: .9rem; font-weight: 600; color: var(--bn-blue-800); text-decoration: none; }
.bn-partner-web:hover { text-decoration: underline; }

/* ---------- 28) Barvy na tvrdé povrchy: odstíny a jejich význam ---------- */
.bn-swatch-list { display: grid; gap: .6rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); margin: 0 0 1rem; padding: 0; list-style: none; }
.bn-swatch-list li { display: flex; align-items: center; gap: .75rem; }
.bn-swatch-list strong { margin-right: .25rem; }

/* ---------- 29) Zvětšitelné tabulky v obrázku, textová verze, video na výšku ---------- */
.bn-details { margin-top: .75rem; }
.bn-details > summary { cursor: pointer; font-weight: 600; color: var(--bn-blue-800); }
.bn-details[open] > summary { margin-bottom: .5rem; }
.bn-video-portrait { max-width: 22rem; margin-inline: auto; }
.bn-video-portrait .bn-local-video { width: 100%; max-height: none; aspect-ratio: 464 / 832; height: auto; }
