/*
Theme Name: Batérie pre firmy — child
Theme URI: https://www.baterieprefirmy.sk
Description: Divi 5 child téma pre baterieprefirmy.sk — firemné batériové úložiská, zber dopytov.
Author: Michal Ochránek
Template: Divi
Version: 1.0.0
*/

/* =========================================================================
   1. Písma (self-hosted, jeden variabilný súbor na rodinu)
   ====================================================================== */
@font-face {
  font-family: 'Figtree';
  src: url(fonts/figtree.woff2) format('woff2-variations');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'InterVar';
  src: url(fonts/inter.woff2) format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* =========================================================================
   2. Značkové premenné
   ====================================================================== */
:root {
  --navy: #0e243d;
  --navy-2: #16324f;
  --navy-900: #081724;
  --green: #4caf2f;
  --green-600: #357f1e;
  --green-700: #2c6b18;
  --green-svetla: #5fc93e;
  /* tlačidlová zelená je tmavšia než značková — biely text na #4caf2f má len 2,8:1,
     na #34851e má 4,5:1 a spĺňa WCAG AA */
  --green-btn: #34851e;
  --green-btn-hover: #2c6b18;
  --green-50: #eef8e9;
  --amber: #e9a63a;
  --amber-50: #fdf4e4;
  --ink: #14202c;
  --muted: #5a6b7b;
  --line: #e1e8ef;
  --bg: #f5f8fb;
  --white: #fff;
  --nadpis: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --telo: 'InterVar', 'Segoe UI', system-ui, sans-serif;
  --r: 16px;
  --tien: 0 1px 2px rgba(14, 36, 61, .04), 0 8px 24px rgba(14, 36, 61, .06);
  --tien-hover: 0 2px 4px rgba(14, 36, 61, .06), 0 18px 40px rgba(14, 36, 61, .12);
  --sekcia: clamp(56px, 7vw, 92px);
}

/* =========================================================================
   3. Divi reset
   ====================================================================== */
body,
body.et_pb_button_helper_class {
  font-family: var(--telo);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

#page-container { overflow-x: clip; }

#main-content .container::before { display: none; }
#main-content .container { width: 100%; max-width: none; padding: 0; }
.et_pb_row { width: 90%; max-width: 1180px; padding: 0; }
.et_pb_section { padding: var(--sekcia) 0; background: transparent; }
.et_pb_row + .et_pb_row { padding-top: 0; margin-top: 34px; }
.et_pb_column { margin-bottom: 0; }
.et_pb_text_inner > *:last-child, .et_pb_blurb_description > *:last-child { margin-bottom: 0; }
.et_pb_module { margin-bottom: 0; }
.et_pb_text, .et_pb_blurb, .et_pb_image, .et_pb_code, .et_pb_toggle, .et_pb_button_module_wrapper { margin-bottom: 18px; }
.et_pb_column > .et_pb_module:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--nadpis);
  color: var(--navy);
  letter-spacing: -.018em;
  line-height: 1.16;
  padding-bottom: 0;
  font-weight: 700;
}
h1 { font-size: clamp(31px, 4.4vw, 50px); font-weight: 800; margin-bottom: 18px; }
h2 { font-size: clamp(25px, 3vw, 37px); font-weight: 800; margin-bottom: 16px; }
h3 { font-size: clamp(20px, 2vw, 25px); margin-bottom: 12px; }
h4 { font-size: 19px; margin-bottom: 9px; }
h5 { font-size: 17px; margin-bottom: 8px; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }
b, strong { font-weight: 650; color: var(--navy); }
small { font-size: 14px; }

/* =========================================================================
   4. Hlavička
   ====================================================================== */
#top-header, #et-secondary-nav { display: none !important; }
#main-header {
  box-shadow: none;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
}
.et_header_style_left #logo { max-height: 46px; }
#main-header .container { display: flex; align-items: center; width: 92%; max-width: 1340px; }
.et_header_style_left .logo_container { position: static; width: auto; flex: 0 0 auto; }
/* nav sa nesmie zmenšiť pod svoju prirodzenú šírku — inak sa položky zalomia
   do druhého riadku (Divi to prepočítava až po načítaní, takže sa to prejaví neskoro) */
/* Divi si na #et-top-navigation nastavuje inline padding-left (u nás 399 px) —
   s flex rozložením tým vytlačí menu za pravý okraj. Musí ísť preč natvrdo. */
#et-top-navigation { padding: 0 !important; margin-left: auto; display: flex; align-items: center; flex: 0 0 auto; }
#top-menu-nav, #top-menu { display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
#top-menu > li { flex: 0 0 auto; }
#top-menu li { padding-right: 16px; }
#top-menu li a {
  font-family: var(--nadpis);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  padding-bottom: 0;
  opacity: 1;
}
#top-menu li a:hover { color: var(--green-600); opacity: 1; }
/* Divi drží položky menu hore 33 px spodným odsadením (plocha pre prechod myšou
   na rozbalené menu). Text tým sedel o 12 px vyššie než logo — súmerné odsadenie
   ho zvisle vycentruje a plochu pre myš zachová. */
#main-header #top-menu > li > a { padding: 22px 15px 22px 0; }
#main-header .et-fixed-header #top-menu > li > a,
.et-fixed-header #main-header #top-menu > li > a { padding: 17px 15px 17px 0; }
#main-header #top-menu > li.bpf-menu-cta > a { padding: 10px 18px !important; }
#top-menu li.current-menu-item > a { color: var(--green-600); }
#top-menu li li a {
  font-size: 14.5px;
  width: 248px;
  padding: 9px 20px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background .14s, border-color .14s, color .14s;
}
#top-menu li li a:hover {
  background: var(--green-50);
  border-left-color: var(--green);
  color: var(--navy);
  opacity: 1;
}
/* aktívna položka: zelená + jemná linka pod textom, aby bolo vidno, kde som */
#top-menu > li > a { position: relative; }
#top-menu > li.current-menu-item > a:before,
#top-menu > li.current-menu-ancestor > a:before,
#top-menu > li.current_page_parent > a:before {
  content: "";
  position: absolute;
  left: 0;
  right: 15px;
  bottom: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}
#top-menu > li.bpf-menu-cta.current-menu-item > a:before { display: none; }
/* šípka pri položkách s podmenu — kreslená, nie z ikonového fontu */
#top-menu .menu-item-has-children > a:first-child:after,
.et-menu .menu-item-has-children > a:first-child:after,
.et_mobile_menu .menu-item-has-children > a:first-child:after,
#et_search_icon:before {
  content: "" !important;
  font-family: inherit !important;
  display: block;
  width: 11px;
  height: 11px;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e243d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/11px no-repeat;
  right: 0;
  opacity: .55;
  transition: opacity .15s;
}
#top-menu > li:hover > a:first-child:after { opacity: 1; }
/* Divi dáva položkám menu 33 px spodného odsadenia (kvôli ploche pre hover),
   takže `top: 50 %` by šípku odsunulo pod text — musí sa viazať na riadok textu. */
#top-menu .menu-item-has-children > a:first-child:after,
.et-menu .menu-item-has-children > a:first-child:after {
  top: 50%;
  margin-top: -4px;
}
.et_mobile_menu .menu-item-has-children > a:first-child:after {
  top: 50%;
  margin-top: -5px;
  right: 8px;
}
#top-menu .menu-item-has-children > a:first-child { padding-right: 15px; }
#top-menu .sub-menu { border-top: 3px solid var(--green); border-radius: 0 0 12px 12px; box-shadow: var(--tien-hover); padding: 8px 0; }
/* celé vyhľadávanie Divi preč — jeho zatváracia ikona je jediný prvok, ktorý
   na stránke ešte vyžadoval ikonový font ETmodules (90 kB) */
#et_top_search,
.et_search_outer,
.et_close_search_field,
.et_search_form_container { display: none !important; }
/* telefón v hlavičke — až od 1400 px, aby menu nikde nepretieklo */
#top-menu li.bpf-menu-tel { display: none; }
@media (min-width: 1400px) {
  #top-menu li.bpf-menu-tel { display: inline-block; padding-right: 16px; }
  #main-header #top-menu li.bpf-menu-tel > a {
    color: var(--navy);
    font-weight: 700;
    padding-left: 24px;
    position: relative;
  }
  #main-header #top-menu li.bpf-menu-tel > a:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -8px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23357f1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .3 1.9.6 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.1a2 2 0 0 1 2.1-.5c.9.3 1.8.5 2.8.6a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center/16px no-repeat;
  }
  #main-header #top-menu li.bpf-menu-tel > a:hover { color: var(--green-600); }
}
/* v mobilnom menu je telefón vždy, hneď pod výzvou na dopyt */
.et_mobile_menu li.bpf-menu-tel { order: -1; }   /* hneď pod výzvou na dopyt */
.et_mobile_menu li.bpf-menu-tel > a {
  color: var(--green-600) !important;
  font-weight: 700;
  text-align: center;
}

#top-menu li.bpf-menu-cta { padding-right: 0; margin-left: 6px; }
#top-menu li.bpf-menu-cta > a {
  background: var(--green-btn);
  color: #fff !important;
  border-radius: 10px;
  padding: 10px 18px !important;
  line-height: 1;
}
#top-menu li.bpf-menu-cta > a:hover { background: var(--green-btn-hover); color: #fff !important; }
.et_header_style_left .et-fixed-header #logo { max-height: 42px; }
.et-fixed-header #main-header { box-shadow: 0 6px 24px rgba(14, 36, 61, .09); }

/* mobilné menu */
.et_mobile_menu { border-top: 3px solid var(--green); box-shadow: var(--tien-hover); padding: 6px 0; }
.et_mobile_menu li a { font-family: var(--nadpis); font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
/* podpoložky odsadené a odľahčené, aby bolo vidno štruktúru */
.et_mobile_menu .sub-menu { padding-left: 0; }
.et_mobile_menu .sub-menu li a {
  font-weight: 500;
  font-size: 15px;
  color: #45566a;
  padding-left: 34px;
  position: relative;
}
.et_mobile_menu .sub-menu li a:before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 6px;
  height: 1px;
  background: #b6c4d2;
}
/* Divi 5 pošle hamburgeru dve prepnutia naraz a jeho animácia skončí na 3 px
   (menu sa otvorí a hneď zbalí). Ovládanie preberá bpf.js cez triedu
   body.bpf-mm-open, tu sa rieši len zobrazenie. */
.mobile_nav .et_mobile_menu {
  display: flex !important;         /* kvôli poradiu: výzva na dopyt ide navrch */
  flex-direction: column;
  height: auto !important;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  border-top-width: 0;
  transition: max-height .3s ease;
}
body.bpf-mm-open .mobile_nav .et_mobile_menu {
  max-height: 76vh;
  overflow-y: auto;
  padding: 6px 0 12px;
  border-top-width: 3px;
}

/* výzva na dopyt nech aj v mobile vyzerá ako tlačidlo */
.et_mobile_menu li.bpf-menu-cta { padding: 4px 16px 12px; order: -2; }
.et_mobile_menu li.bpf-menu-cta > a {
  background: var(--green-btn);
  color: #fff !important;
  border: 0;
  border-radius: 10px;
  text-align: center;
  padding: 13px 16px;
  font-weight: 700;
}
/* hamburger nakreslený v CSS — ten istý dôvod ako pri šípke v toggle */
.mobile_menu_bar:before {
  content: "" !important;
  font-family: inherit !important;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  box-shadow: 0 -7px 0 var(--navy), 0 7px 0 var(--navy);
  margin: 15px auto 0;
  transition: box-shadow .18s, transform .18s;
}
.mobile_nav.opened .mobile_menu_bar:before {
  box-shadow: none;
  transform: rotate(45deg);
}
.mobile_nav.opened .mobile_menu_bar:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transform: translateX(-50%) rotate(-45deg);
}
.mobile_menu_bar { position: relative; display: block; width: 32px; height: 32px; }
@media (max-width: 1320px) {
  #et_mobile_nav_menu { display: block; }
  #top-menu-nav { display: none; }
}
/* Divi drží .logo_container na pevnej šírke → na mobile vytláčal hamburger
   mimo obrazovky (web pretekal o 45 px). */
@media (max-width: 980px) {
  #main-header .container { flex-wrap: nowrap; width: 90%; }
  .et_header_style_left .logo_container {
    flex: 0 1 auto;
    width: auto !important;
    max-width: calc(100% - 54px);
    min-width: 0;
    height: auto !important;
  }
  .et_header_style_left #logo { max-width: 100%; max-height: 38px; margin: 0; }
  #et-top-navigation { flex: 0 0 auto; margin-left: auto; padding-left: 10px; }
  .et_header_style_left .mobile_nav, .et_header_style_left #et_mobile_nav_menu { float: none; }
}

/* =========================================================================
   5. Spoločné prvky
   ====================================================================== */
.bpf-label .et_pb_text_inner p,
.bpf-eyebrow .et_pb_text_inner p {
  font-family: var(--nadpis);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-600);
  margin: 0 0 10px;
}
.bpf-lead .et_pb_text_inner p { font-size: 19.5px; line-height: 1.65; color: #3c4d5e; }
.bpf-sub .et_pb_text_inner p { font-size: 18px; color: var(--muted); max-width: 760px; margin: 0 auto; }
.bpf-center { text-align: center; }
.bpf-center .bpf-sub .et_pb_text_inner p { margin-left: auto; margin-right: auto; }
.bpf-center .et_pb_button_module_wrapper { text-align: center; }

.bpf-mist { background: var(--bg); }
.bpf-line-top { border-top: 1px solid var(--line); }

/* tlačidlá */
body #page-container .et_pb_button {
  font-family: var(--nadpis);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 14px 26px !important;
  border-radius: 11px;
  border: 0;
  background: var(--green-btn);
  color: #fff;
  transition: background .18s, transform .18s, box-shadow .18s;
  display: inline-block;
  line-height: 1.2;
}
body #page-container .et_pb_button:hover {
  background: var(--green-btn-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(76, 175, 47, .26);
  padding: 14px 26px !important;
}
body #page-container .et_pb_button:after,
body #page-container .et_pb_button:before { display: none !important; }
/* POZOR: Divi 5 dáva vlastnú triedu priamo na <a class="et_pb_button">, nie na
   jeho obal — pravidlá písané ako `.trieda .et_pb_button` preto nikdy nezaberú. */
body #page-container .et_pb_button.bpf-btn-ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--line);
}
body #page-container .et_pb_button.bpf-btn-ghost:hover {
  background: var(--navy);
  color: #fff;
  box-shadow: inset 0 0 0 2px var(--navy);
}
.bpf-btns .et_pb_button_module_wrapper { display: inline-block; margin: 0 10px 10px 0; }

/* zoznamy */
.bpf-check .et_pb_text_inner ul,
ul.bpf-ul { list-style: none; padding: 0; margin: 0 0 16px; }
.bpf-check .et_pb_text_inner li,
ul.bpf-ul li {
  position: relative;
  padding: 0 0 0 30px;
  margin-bottom: 11px;
  line-height: 1.6;
}
.bpf-check .et_pb_text_inner li:before,
ul.bpf-ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234caf2f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.bpf-x .et_pb_text_inner li:before {
  background: #fdeceb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9503f' stroke-width='3.4' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/10px no-repeat;
}
.et_pb_text_inner ul:not([class]) { padding-left: 20px; }
.et_pb_text_inner ul:not([class]) li { margin-bottom: 8px; }

/* =========================================================================
   6. Hero
   ====================================================================== */
.bpf-hero.et_pb_section {
  background: var(--navy-900) center/cover no-repeat;
  padding: clamp(64px, 8vw, 108px) 0 clamp(60px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.bpf-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 88% 8%, rgba(76, 175, 47, .16), transparent 62%),
    linear-gradient(100deg, rgba(8, 23, 36, .95) 0%, rgba(8, 23, 36, .86) 46%, rgba(8, 23, 36, .62) 100%);
}
.bpf-hero > .et_pb_row { position: relative; z-index: 2; }
.bpf-hero h1 { color: #fff; }
.bpf-hero h1 em { font-style: normal; color: #8fdc72; }
.bpf-hero .bpf-lead .et_pb_text_inner p { color: #c6d5e2; font-size: 19px; max-width: 560px; }
.bpf-hero .bpf-eyebrow .et_pb_text_inner p { color: #8fdc72; }
.bpf-hero .bpf-hero-trust .et_pb_text_inner ul { list-style: none; padding: 0; margin: 22px 0 26px; }
.bpf-hero .bpf-hero-trust .et_pb_text_inner li {
  color: #d7e3ee;
  font-size: 15.5px;
  padding-left: 28px;
  margin-bottom: 9px;
  position: relative;
}
.bpf-hero .bpf-hero-trust .et_pb_text_inner li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .38em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(76, 175, 47, .22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fdc72' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
body #page-container .bpf-hero .et_pb_button.bpf-btn-ghost,
body #page-container .bpf-phero .et_pb_button.bpf-btn-ghost,
body #page-container .bpf-band .et_pb_button.bpf-btn-ghost {
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .38);
}
body #page-container .bpf-hero .et_pb_button.bpf-btn-ghost:hover,
body #page-container .bpf-phero .et_pb_button.bpf-btn-ghost:hover,
body #page-container .bpf-band .et_pb_button.bpf-btn-ghost:hover {
  background: #fff;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px #fff;
}

/* sklenená karta v hero */
.bpf-glass {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  padding: 26px 26px 22px;
  backdrop-filter: blur(6px);
  color: #e8eef5;
}
.bpf-glass h3 { color: #fff; font-size: 19px; margin-bottom: 4px; }
.bpf-glass .bpf-glass-sub { color: #9fb3c6; font-size: 14px; margin-bottom: 18px; }
.bpf-glass-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 15px;
}
.bpf-glass-row:last-of-type { border-bottom: 0; }
.bpf-glass-row span { color: #9fb3c6; }
.bpf-glass-row b { color: #fff; font-family: var(--nadpis); font-size: 18px; white-space: nowrap; }
.bpf-glass-row b.zle { color: #ff8f7a; }
.bpf-glass-row b.dobre { color: #8fdc72; }
.bpf-glass-note {
  margin-top: 16px;
  font-size: 13px;
  color: #93a8bb;
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 14px;
}
.bpf-glass-note a { color: #8fdc72; }

/* podstránkové hero — 60/60 štandard */
.bpf-phero.et_pb_section {
  background: var(--navy) center/cover no-repeat;
  padding: 60px 0;
  position: relative;
}
.bpf-phero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(8, 23, 36, .93) 0%, rgba(8, 23, 36, .82) 55%, rgba(8, 23, 36, .66) 100%);
}
.bpf-phero > .et_pb_row { position: relative; z-index: 2; }
.bpf-phero h1 { color: #fff; margin-bottom: 14px; max-width: 900px; }
.bpf-phero .bpf-lead .et_pb_text_inner p { color: #c6d5e2; max-width: 760px; }
.bpf-crumbs .et_pb_text_inner p { font-size: 13.5px; color: #8ea5ba; margin-bottom: 14px; }
.bpf-crumbs a { color: #b9cadb; }
.bpf-crumbs a:hover { color: #fff; }

/* =========================================================================
   7. Dôveryhodnostný pás
   ====================================================================== */
.bpf-tbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bpf-tbar-item { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); line-height: 1.5; }
.bpf-tbar-item svg { width: 22px; height: 22px; flex: 0 0 22px; stroke: var(--green); fill: none; stroke-width: 1.9; margin-top: 2px; }
.bpf-tbar-item b { display: block; color: var(--navy); font-family: var(--nadpis); font-size: 15.5px; }
.bpf-trust.et_pb_section { padding: 30px 0; border-bottom: 1px solid var(--line); }

/* =========================================================================
   8. Karty, kroky, čísla
   ====================================================================== */
.bpf-card.et_pb_blurb {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  height: 100%;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.bpf-card.et_pb_blurb:hover { box-shadow: var(--tien-hover); transform: translateY(-3px); border-color: #cfdbe6; }
.bpf-card .et_pb_main_blurb_image { margin-bottom: 14px; }
.bpf-card h4 { color: var(--navy); margin-bottom: 8px; }
.bpf-card .et_pb_blurb_description { color: var(--muted); font-size: 15.6px; line-height: 1.62; }
.bpf-card .et_pb_blurb_description b { color: var(--navy); }
.bpf-mist .bpf-card.et_pb_blurb { background: #fff; }

.bpf-ikona { width: 44px; height: 44px; border-radius: 12px; background: var(--green-50); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.bpf-ikona svg { width: 23px; height: 23px; stroke: var(--green-700); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.bpf-steps .et_pb_column { counter-increment: krok; }
.bpf-step-card.et_pb_blurb {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  height: 100%;
  position: relative;
}
.bpf-step-card:before {
  content: counter(krok);
  position: absolute;
  top: -15px;
  left: 24px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-family: var(--nadpis);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bpf-step-card h4 { margin-top: 8px; }
.bpf-step-card .et_pb_blurb_description { color: var(--muted); font-size: 15.6px; }

.bpf-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px;
  height: 100%;
  text-align: center;
}
.bpf-stat b {
  display: block;
  font-family: var(--nadpis);
  font-size: clamp(26px, 3.1vw, 36px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 6px;
}
.bpf-stat span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.bpf-stat.zvyraznene { background: var(--navy); border-color: var(--navy); }
.bpf-stat.zvyraznene b { color: #8fdc72; }
.bpf-stat.zvyraznene span { color: #b9cadb; }

/* =========================================================================
   9. Tmavý pás / CTA
   ====================================================================== */
.bpf-band.et_pb_section { background: var(--navy); }
.bpf-band:not(.bpf-nopattern):before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 320px at 78% 10%, rgba(76, 175, 47, .18), transparent 65%);
  pointer-events: none;
}
.bpf-band.et_pb_section { position: relative; overflow: hidden; }
.bpf-band > .et_pb_row { position: relative; z-index: 2; }
.bpf-band h2, .bpf-band h3, .bpf-band h4 { color: #fff; }
.bpf-band .et_pb_text_inner p { color: #c6d5e2; }
.bpf-band .bpf-sub .et_pb_text_inner p { color: #b9cadb; }
.bpf-band .bpf-label .et_pb_text_inner p { color: #8fdc72; }
.bpf-band .bpf-check .et_pb_text_inner li { color: #d7e3ee; }
.bpf-band .bpf-check .et_pb_text_inner li:before { background-color: rgba(76, 175, 47, .2); }
.bpf-band a { color: #8fdc72; }
.bpf-band .bpf-card.et_pb_blurb { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.bpf-band .bpf-card .et_pb_blurb_description { color: #c6d5e2; }
.bpf-band .bpf-card .et_pb_blurb_description b { color: #fff; }
.bpf-band .bpf-stat { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.bpf-band .bpf-stat b { color: #8fdc72; }
.bpf-band .bpf-stat span { color: #b9cadb; }

/* =========================================================================
   10. Text + fotka
   ====================================================================== */
.bpf-media .et_pb_row { align-items: center; display: flex; flex-wrap: wrap; }
.bpf-media .et_pb_column { display: flex; flex-direction: column; justify-content: center; }
.bpf-media.bpf-flip .et_pb_row { flex-direction: row-reverse; }
.bpf-shot .et_pb_image_wrap { display: block; border-radius: var(--r); overflow: hidden; box-shadow: var(--tien); }
.bpf-shot img { width: 100%; height: auto; display: block; }
.bpf-cap .et_pb_text_inner p { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.bpf-figure { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--tien); }
.bpf-figure img { width: 100%; height: auto; display: block; }
.bpf-figure-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(8, 23, 36, .86);
  color: #fff;
  border-radius: 12px;
  padding: 11px 15px;
  backdrop-filter: blur(4px);
  max-width: 74%;
}
.bpf-figure-tag b { display: block; color: #fff; font-family: var(--nadpis); font-size: 15px; }
.bpf-figure-tag span { font-size: 13px; color: #b9cadb; }

/* =========================================================================
   11. Poznámkové boxy, tabuľky, FAQ
   ====================================================================== */
.bpf-note {
  background: var(--amber-50);
  border: 1px solid #f2ddb6;
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15.6px;
  line-height: 1.62;
}
.bpf-note b { color: #8a5f10; }
.bpf-tip {
  background: var(--green-50);
  border: 1px solid #cfe8c2;
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15.6px;
  line-height: 1.62;
}
.bpf-zdroj .et_pb_text_inner p, p.bpf-zdroj { font-size: 13px; color: var(--muted); }

.bpf-tabulka { width: 100%; overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.bpf-tabulka table { width: 100%; border-collapse: collapse; font-size: 15.4px; min-width: 620px; }
.bpf-tabulka th {
  background: var(--navy);
  color: #fff;
  font-family: var(--nadpis);
  font-weight: 650;
  font-size: 14.5px;
  text-align: left;
  padding: 13px 16px;
}
.bpf-tabulka td { padding: 13px 16px; border-top: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.bpf-tabulka tr:nth-child(even) td { background: #fafcfe; }
.bpf-tabulka td b { color: var(--navy); }
.bpf-tabulka .zvyraznene td { background: var(--green-50) !important; }

.bpf-toggle.et_pb_toggle {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: box-shadow .2s;
}
.bpf-toggle.et_pb_toggle_open { box-shadow: var(--tien); border-color: #cfdbe6; }
.bpf-toggle .et_pb_toggle_title {
  font-family: var(--nadpis);
  font-size: 17.5px;
  font-weight: 650;
  color: var(--navy);
  padding: 0 34px 0 0 !important;
}
.bpf-toggle .et_pb_toggle_content { padding-top: 12px; color: var(--muted); font-size: 16px; }
.bpf-toggle .et_pb_toggle_content p { margin-bottom: 12px; }
/* Šípka nakreslená v CSS namiesto glyfu z ikonového fontu Divi — ušetrí to
   90 kB (modules.woff), ktoré by sa sťahovali kvôli jedinému znaku. */
.bpf-toggle .et_pb_toggle_title:before {
  content: "" !important;
  font-family: inherit !important;
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2.4px solid var(--green-600);
  border-bottom: 2.4px solid var(--green-600);
  right: 4px;
  top: 50%;
  margin-top: 0;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .22s ease;
}
.bpf-toggle.et_pb_toggle_open .et_pb_toggle_title:before {
  transform: translateY(-20%) rotate(-135deg);
}

/* =========================================================================
   12. Formulár
   ====================================================================== */
.bpf-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 3.2vw, 34px);
  box-shadow: var(--tien);
}
.bpf-band .bpf-form { box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.bpf-form h3 { margin-bottom: 6px; }
.bpf-form .bpf-form-sub { color: var(--muted); font-size: 15.4px; margin-bottom: 22px; }
.bpf-mriezka { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.bpf-pole { display: flex; flex-direction: column; }
.bpf-pole.cela { grid-column: 1 / -1; }
.bpf-pole label, .bpf-skupina > legend {
  font-family: var(--nadpis);
  font-size: 13.6px;
  font-weight: 650;
  color: var(--navy);
  margin-bottom: 6px;
  padding: 0;
}
.bpf-pole input, .bpf-pole select, .bpf-pole textarea {
  font-family: var(--telo);
  font-size: 16px;
  color: var(--ink);
  background: #fbfdfe;
  border: 1px solid #d9e2eb;
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.bpf-pole textarea { min-height: 108px; resize: vertical; }
.bpf-pole input:focus, .bpf-pole select:focus, .bpf-pole textarea:focus {
  outline: 0;
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(76, 175, 47, .16);
}
.bpf-skupina { border: 0; padding: 0; margin: 0; grid-column: 1 / -1; }
.bpf-chipy { display: flex; flex-wrap: wrap; gap: 8px; }
.bpf-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d9e2eb;
  background: #fbfdfe;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 14.6px;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.bpf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bpf-chip:hover { border-color: #b9cbdb; }
.bpf-chip:has(input:checked) {
  background: var(--green-50);
  border-color: var(--green);
  color: var(--navy);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--green);
}
.bpf-chip:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(76, 175, 47, .25); }
.bpf-suhlas { grid-column: 1 / -1; display: flex; gap: 11px; align-items: flex-start; font-size: 13.8px; color: var(--muted); line-height: 1.55; }
.bpf-suhlas input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--green); flex: 0 0 17px; }
.bpf-odoslat {
  font-family: var(--nadpis);
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  background: var(--green-btn);
  border: 0;
  border-radius: 11px;
  padding: 15px 30px;
  cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s;
  width: 100%;
}
.bpf-odoslat:hover { background: var(--green-btn-hover); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(52, 133, 30, .3); }
.bpf-odoslat[disabled] { opacity: .6; cursor: wait; transform: none; }
.bpf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.bpf-form-pata { font-size: 13.2px; color: var(--muted); margin-top: 14px; text-align: center; }
.bpf-sprava { border-radius: 12px; padding: 15px 18px; font-size: 15.4px; margin-bottom: 18px; }
.bpf-sprava.ok { background: var(--green-50); border: 1px solid #cfe8c2; color: #2f6b1e; }
.bpf-sprava.chyba { background: #fdeceb; border: 1px solid #f4c9c3; color: #9c3225; }

/* =========================================================================
   13. Kalkulačka prekročenia
   ====================================================================== */
.bpf-kalk {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--tien);
}
.bpf-kalk-mriezka { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bpf-kalk .bpf-vysledok {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bpf-vysledok-box { background: var(--bg); border-radius: 14px; padding: 18px; text-align: center; }
.bpf-vysledok-box b {
  display: block;
  font-family: var(--nadpis);
  font-size: clamp(23px, 2.6vw, 31px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
}
.bpf-vysledok-box.varovanie { background: var(--amber-50); }
.bpf-vysledok-box.varovanie b { color: #b5751a; }
.bpf-vysledok-box span { display: block; font-size: 13.8px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.bpf-kalk-poznamka { font-size: 13.2px; color: var(--muted); margin-top: 16px; line-height: 1.6; }

/* =========================================================================
   14. Exit okno
   ====================================================================== */
.bpf-exit-pozadie {
  position: fixed;
  inset: 0;
  background: rgba(8, 23, 36, .72);
  backdrop-filter: blur(3px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .22s;
}
/* POZOR: display:flex prebije atribút hidden — bez tohto pravidla by neviditeľná
   vrstva prekrývala celý web a požierala kliknutia. */
.bpf-exit-pozadie[hidden] { display: none !important; }
.bpf-exit-pozadie:not(.vidno) { pointer-events: none; }
.bpf-exit-pozadie.vidno { opacity: 1; pointer-events: auto; }
.bpf-exit {
  background: #fff;
  border-radius: 22px;
  max-width: 560px;
  width: 100%;
  padding: clamp(26px, 4vw, 40px);
  position: relative;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .38);
  transform: translateY(14px) scale(.98);
  transition: transform .26s cubic-bezier(.2, .8, .3, 1);
  max-height: 92vh;
  overflow-y: auto;
}
.bpf-exit-pozadie.vidno .bpf-exit { transform: none; }
.bpf-exit-zavri {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: #f0f4f8;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
}
.bpf-exit-zavri:hover { background: var(--line); color: var(--navy); }
.bpf-exit-stitok {
  display: inline-block;
  font-family: var(--nadpis);
  font-size: 12.4px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-50);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.bpf-exit h3 { font-size: clamp(21px, 2.6vw, 27px); margin-bottom: 10px; }
.bpf-exit p { color: var(--muted); font-size: 15.6px; }
.bpf-exit ul { list-style: none; padding: 0; margin: 16px 0 20px; }
.bpf-exit li { position: relative; padding-left: 27px; margin-bottom: 8px; font-size: 15.2px; color: var(--ink); }
.bpf-exit li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .4em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234caf2f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}
.bpf-exit-form { display: flex; gap: 10px; flex-wrap: wrap; }
.bpf-exit-form input[type=email] {
  flex: 1 1 220px;
  font-family: var(--telo);
  font-size: 16px;
  border: 1px solid #d9e2eb;
  background: #fbfdfe;
  border-radius: 10px;
  padding: 13px 15px;
}
.bpf-exit-form input[type=email]:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(76, 175, 47, .16); }
.bpf-exit-form button { flex: 0 0 auto; }

/* =========================================================================
   15. Pätička
   ====================================================================== */
#main-footer { background: var(--navy-900); }
#footer-widgets { padding: 58px 0 28px; }
#footer-widgets .footer-widget { margin-bottom: 26px; }
#footer-widgets .footer-widget h4 {
  color: #fff;
  font-family: var(--nadpis);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 0;
}
#footer-widgets .footer-widget, #footer-widgets .footer-widget li, #footer-widgets .footer-widget p {
  color: #a8bccd;
  font-size: 14.8px;
  line-height: 1.65;
}
#footer-widgets .footer-widget li { margin-bottom: 8px; padding: 0; list-style: none; }
#footer-widgets .footer-widget li:before { display: none; }
#footer-widgets .footer-widget a { color: #a8bccd; }
#footer-widgets .footer-widget a:hover { color: #fff; text-decoration: none; }
#footer-widgets .footer-widget b { color: #fff; }
.bpf-foot-logo { max-width: 232px; height: auto; margin-bottom: 16px; }
.bpf-foot-note { font-size: 13.4px; color: #7e94a8; margin-top: 12px; }
#footer-bottom { background: rgba(255, 255, 255, .04); padding: 16px 0; }
#footer-info, #footer-info a { color: #7e94a8; font-size: 13.4px; }
#footer-bottom .et-social-icons { display: none; }

/* =========================================================================
   15b. Ovládanie klávesnicou
   Bez viditeľného zvýraznenia sa web nedá prejsť tabulátorom — a ten používajú
   aj ľudia, ktorí len nemajú voľnú ruku na myš.
   ====================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.bpf-chip:focus-within,
#page-container .et_pb_button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 6px;
}
.bpf-hero a:focus-visible,
.bpf-phero a:focus-visible,
.bpf-band a:focus-visible,
#main-footer a:focus-visible { outline-color: #8fdc72; }
.bpf-preskoc {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  font-family: var(--nadpis);
  font-weight: 600;
}
.bpf-preskoc:focus { left: 0; color: #fff; }

/* =========================================================================
   16. Animácie
   ====================================================================== */
.bpf-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1); }
.bpf-reveal.vidno { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .bpf-reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
  /* menu sa nesmie spoliehať na prechod — pri vypnutých animáciách
     (Windows: Zjednodušiť pohyb) by sa inak neotvorilo */
  .mobile_nav .et_mobile_menu { transition: none; }
  .bpf-exit-pozadie, .bpf-exit { transition: none; }
}

/* =========================================================================
   16b. Poistka špecificity
   Divi má vlastné pravidlá s vyššou váhou (`.entry-content tr th`,
   `#top-menu li.current-menu-ancestor > a`), ktoré prebíjali moje farby —
   výsledkom boli sivé hlavičky tabuliek na tmavom podklade a modrá položka
   menu. Tieto pravidlá musia stáť na konci a s rovnakou alebo vyššou váhou.
   ====================================================================== */
#top-menu li.current-menu-item > a,
#top-menu li.current-menu-ancestor > a,
#top-menu li.current-menu-parent > a,
#top-menu li.current_page_parent > a,
#top-menu li.current_page_ancestor > a,
#top-menu li.current-menu-item > a:hover,
#top-menu li.current-menu-ancestor > a:hover {
  color: var(--green-600);
}
#top-menu li.bpf-menu-cta.current-menu-item > a,
#top-menu li.bpf-menu-cta.current_page_item > a { color: #fff !important; }
.et_mobile_menu li.current-menu-item > a,
.et_mobile_menu li.current-menu-ancestor > a,
.et_mobile_menu li.current_page_parent > a { color: var(--green-600); }

#page-container .bpf-tabulka thead th,
#page-container .bpf-tabulka tr th {
  color: #fff;
  background: var(--navy);
  font-family: var(--nadpis);
  font-weight: 650;
  font-size: 14.5px;
  padding: 13px 16px;
  border: 0;
}
#page-container .bpf-tabulka tr td {
  color: var(--ink);
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}
#page-container .bpf-tabulka tr td b { color: var(--navy); }
#page-container .bpf-tabulka tr.zvyraznene td { background: var(--green-50); }
/* Lícovanie obrázkov a mriežky.
   Divi prebíjalo moju šírku riadku (drží si 1080 px), obrázkovému modulu pridáva
   bočné okraje 15 px a obrázok necháva v jeho prirodzenej veľkosti — fotka preto
   nedosadla na okraj mriežky a bola o 30 px užšia než jej stĺpec. */
body #page-container .et_pb_row { width: 90%; max-width: 1180px; }
body #page-container .et_pb_image { margin-left: 0; margin-right: 0; width: 100%; }
body #page-container .et_pb_image .et_pb_image_wrap { display: block; width: 100%; }
body #page-container .et_pb_image img { width: 100%; height: auto; display: block; }
/* jednotný pomer strán pre obsahové fotky, nech sekcie opticky sedia */
/* Fotka kopíruje výšku textového stĺpca, takže sekcia lícuje hore aj dole.
   Pri veľmi dlhom texte ju zastropujeme, nech z krajinnej fotky nevznikne úzky pruh. */
body #page-container .bpf-media .et_pb_column:has(.et_pb_image) { justify-content: center; }
body #page-container .bpf-media .et_pb_image {
  flex: 1 1 auto;          /* stĺpec je zvislý flex — výšku rieši flex, nie align-self */
  align-self: stretch;
  display: flex;
  min-height: 0;
  max-height: 620px;
}
body #page-container .bpf-media .et_pb_image .et_pb_image_wrap { height: 100%; }
body #page-container .bpf-media .et_pb_image img {
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
}
/* Rozostup stĺpcov cez `gap`, nie cez okraje: pri prevrátenej sekcii (row-reverse)
   ostával Diviho okraj na nesprávnej strane a text nedosadol na okraj mriežky. */
body #page-container .bpf-media .et_pb_row {
  display: flex;
  gap: 60px;
  align-items: stretch;   /* stĺpec s fotkou musí dostať výšku riadku, inak sa fotka nemá čím naťahovať */
}
body #page-container .bpf-media .et_pb_column {
  margin: 0;
  width: calc(50% - 30px);
  max-width: calc(50% - 30px);
}

#page-container .bpf-crumbs a { color: #b9cadb; }
#page-container .bpf-crumbs a:hover { color: #fff; }
/* pozor: tlačidlá Divi sú tiež <a> — svetlozelená by na zelenom tlačidle zmizla */
#page-container .bpf-band a:not(.et_pb_button),
#page-container .bpf-hero a:not(.et_pb_button) { color: #8fdc72; }
#page-container .bpf-band a:not(.et_pb_button):hover,
#page-container .bpf-hero a:not(.et_pb_button):hover { color: #fff; }

/* =========================================================================
   17. Responzív
   ====================================================================== */
@media (max-width: 980px) {
  .bpf-tbar { grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
  .bpf-kalk-mriezka, .bpf-kalk .bpf-vysledok { grid-template-columns: 1fr 1fr; }
  .bpf-media .et_pb_row, .bpf-media.bpf-flip .et_pb_row { flex-direction: column; }
  body #page-container .bpf-media .et_pb_row { gap: 26px; }
  body #page-container .bpf-media .et_pb_column { width: 100%; max-width: 100%; }
  body #page-container .bpf-media .et_pb_image { align-self: auto; max-height: none; }
  body #page-container .bpf-media .et_pb_image img { height: auto; aspect-ratio: 16 / 10; }
  .bpf-media .et_pb_column:first-child { margin-bottom: 0; }
  .et_pb_row + .et_pb_row { margin-top: 26px; }
  .bpf-step-card, .bpf-card.et_pb_blurb { height: auto; }
}
@media (max-width: 767px) {
  body { font-size: 16.4px; }
  .et_pb_row { width: 91%; }
  .bpf-mriezka { grid-template-columns: 1fr; }
  .bpf-tbar { grid-template-columns: 1fr; }
  .bpf-kalk-mriezka, .bpf-kalk .bpf-vysledok { grid-template-columns: 1fr; }
  .bpf-hero .bpf-lead .et_pb_text_inner p { font-size: 17.5px; }
  .bpf-btns .et_pb_button_module_wrapper { display: block; margin-right: 0; }
  body #page-container .et_pb_button { display: block; text-align: center; }
  .bpf-figure-tag { max-width: calc(100% - 32px); }
  .bpf-exit { padding: 24px 20px 26px; }
  .et_pb_column .et_pb_module { margin-bottom: 16px; }
  .et_pb_column { margin-bottom: 16px !important; }
  .et_pb_column:last-child { margin-bottom: 0 !important; }
}

/* =========================================================================
   18. Sprievodca formulárom, sticky lišta, zber z kalkulačky
   ====================================================================== */

/* --- ukazovateľ krokov --- */
.bpf-kroky {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--nadpis);
  font-size: 13.4px;
  font-weight: 650;
}
.bpf-krok-bod {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: color .2s;
  white-space: nowrap;
}
.bpf-krok-bod b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e8eef4;
  color: var(--muted);
  font-size: 12.6px;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.bpf-krok-bod.aktivny { color: var(--navy); }
.bpf-krok-bod.aktivny b { background: var(--green-btn); color: #fff; }
.bpf-krok-ciara { flex: 1 1 auto; height: 2px; background: #e8eef4; border-radius: 2px; min-width: 18px; }

/* --- kroky formulára --- */
.bpf-krok { border: 0; padding: 0; margin: 0; min-width: 0; }
.bpf-krok[hidden] { display: none !important; }
.bpf-krok-legenda { position: absolute; left: -9999px; }
.bpf-wiz .bpf-krok > .bpf-odoslat, .bpf-wiz .bpf-krok > .bpf-spat { margin-top: 20px; }
/* Odoslať a microcopy patria k druhému kroku — kým je vidno prvý, sú preč. */
.bpf-wiz .bpf-krok[data-krok="1"]:not([hidden]) ~ .bpf-submit,
.bpf-wiz .bpf-krok[data-krok="1"]:not([hidden]) ~ .bpf-microcopy { display: none; }
.bpf-dalej::after { content: " →"; }
.bpf-spat {
  font-family: var(--nadpis);
  font-size: 14.6px;
  font-weight: 650;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 10px 0 0;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.bpf-spat::before { content: "← "; }
.bpf-spat:hover { color: var(--navy); }

/* bez JS sa ukážu oba kroky aj tlačidlo — formulár musí fungovať vždy */
.bpf-dopyt-form:not(.bpf-wiz) .bpf-dalej,
.bpf-dopyt-form:not(.bpf-wiz) .bpf-spat,
.bpf-dopyt-form:not(.bpf-wiz) .bpf-kroky { display: none; }

/* --- drobnosti v poliach --- */
.bpf-nepovinne {
  font-weight: 500;
  font-size: 11.8px;
  color: var(--muted);
  background: #f1f5f9;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
  letter-spacing: .01em;
}
.bpf-hint { font-size: 12.6px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.bpf-pole.bpf-chyba input, .bpf-pole.bpf-chyba select, .bpf-pole.bpf-chyba textarea {
  border-color: #d4553f;
  background: #fdf6f5;
}
.bpf-suhlas.bpf-chyba { color: #9c3225; }
.bpf-suhlas.bpf-chyba input { outline: 2px solid #d4553f; outline-offset: 2px; }

/* --- microcopy pod tlačidlom --- */
.bpf-microcopy {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  font-size: 12.8px;
  color: var(--muted);
}
.bpf-microcopy li { display: flex; align-items: center; gap: 6px; }
.bpf-microcopy li::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border-radius: 50%;
  background: var(--green-50);
  box-shadow: inset 0 0 0 1.5px var(--green-600);
}

/* --- zber kontaktu z kalkulačky --- */
.bpf-kalk-zber {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--green-50);
  border: 1px solid #cfe8c2;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}
.bpf-kalk-zber[hidden] { display: none !important; }
.bpf-kalk-zber-text { flex: 1 1 300px; }
.bpf-kalk-zber-text b {
  display: block;
  font-family: var(--nadpis);
  font-size: 16.4px;
  color: var(--navy);
  margin-bottom: 4px;
}
.bpf-kalk-zber-text span { font-size: 14px; color: #3f5364; line-height: 1.55; }
.bpf-kalk-form { flex: 1 1 320px; display: flex; gap: 10px; }
.bpf-kalk-form input[type=email] {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--telo);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c3dcb5;
  border-radius: 10px;
  padding: 12px 14px;
}
.bpf-kalk-form input[type=email]:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(76, 175, 47, .18);
}
.bpf-kalk-form .bpf-odoslat { width: auto; flex: 0 0 auto; padding: 13px 22px; font-size: 15.4px; }

/* --- sticky lišta (telefón na dosah palca) --- */
.bpf-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: none;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(14, 36, 61, .12);
}
.bpf-sticky[hidden] { display: none !important; }
.bpf-sticky.bpf-sticky-jedno { grid-template-columns: 1fr; }
.bpf-sticky a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 12px;
  font-family: var(--nadpis);
  font-size: 15.6px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.bpf-sticky-tel {
  color: var(--navy);
  background: #fff;
  box-shadow: inset 0 0 0 2px #d3dfea;
}
.bpf-sticky-tel svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: var(--green-600);
}
.bpf-sticky-cta { color: #fff; background: var(--green-btn); }
.bpf-sticky-cta:hover, .bpf-sticky-tel:hover { filter: brightness(1.04); }

@media (max-width: 900px) {
  .bpf-sticky { display: grid; }
  /* Miesto pre lištu si robí pätička, nie body — inak by pod tmavou pätičkou
     zostal biely pruh vysoký ako lišta. */
  #main-footer { padding-bottom: 72px; }
  .bpf-kroky { font-size: 12.6px; gap: 8px; }
  .bpf-kalk-form { flex-wrap: wrap; }
  .bpf-kalk-form .bpf-odoslat { width: 100%; }
  .bpf-microcopy { gap: 5px 12px; font-size: 12.2px; }
}
@media (max-width: 420px) {
  .bpf-krok-bod span, .bpf-krok-bod { font-size: 12px; }
  .bpf-sticky a { font-size: 14.6px; }
}
@media (prefers-reduced-motion: reduce) {
  .bpf-krok-bod, .bpf-krok-bod b { transition: none; }
}

/* --- konkrétny človek pri formulári --- */
.bpf-osoba {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.bpf-osoba-znak {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--nadpis);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
}
.bpf-osoba-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bpf-osoba-text b { font-family: var(--nadpis); font-size: 15px; color: var(--navy); }
.bpf-osoba-text span { font-size: 13.8px; color: var(--muted); line-height: 1.55; }
.bpf-osoba-kontakt { font-size: 13.4px; }
.bpf-osoba-kontakt a { color: var(--green-600); font-weight: 600; }
.bpf-form-kompakt .bpf-osoba { margin-top: 16px; padding-top: 14px; }

/* --- upravené poďakovanie podľa typu dopytu --- */
.bpf-dakujeme-uprava {
  background: var(--green-50);
  border: 1px solid #cfe8c2;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 22px;
}
.bpf-dakujeme-uprava h2 { font-size: 21px; margin: 0 0 8px; color: var(--navy); }
.bpf-dakujeme-uprava p { margin: 0; color: #3f5364; font-size: 15.6px; line-height: 1.6; }
