.bb-navbar-brand{display:flex;align-items:center;gap:.65rem;padding-top:.2rem;padding-bottom:.2rem}
.bb-navbar-logo{height:2rem;width:auto;display:block}
@media (min-width: 992px){.bb-navbar-logo{height:2.2rem}}

.bb-home{max-width:1440px;margin:0 auto}
.bb-home-section{margin-bottom:1.35rem}
.bb-home-hero{position:relative;overflow:hidden;border:1px solid #d9e4ef;border-radius:1.35rem;background:linear-gradient(180deg,#fdfefe 0%,#f8fbfe 100%);box-shadow:0 .7rem 2rem rgba(22,75,122,.08)}
.bb-home-hero::before,.bb-home-hero::after{content:"";position:absolute;inset:auto auto 0 0;pointer-events:none;background-repeat:no-repeat;background-size:contain;opacity:.18}
.bb-home-hero::before{width:min(48vw,34rem);height:16rem;left:-1rem;bottom:-1rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 260'%3E%3Cg fill='none' stroke='%239ab7d4' stroke-width='2'%3E%3Cpath d='M40 220h520M70 220V120h90v100M110 220V95h120v125M220 220V140h100v80M320 220V110h70v110M390 220V150h80v70M470 220V130h90v90'/%3E%3Cpath d='M60 100h160M110 95l35-35M145 60h90l25 25'/%3E%3Cpath d='M300 75h160M350 75l20-25M370 50h70l15 25'/%3E%3Cpath d='M505 55v65M505 55l-22 20M505 55l22 20'/%3E%3C/g%3E%3C/svg%3E")}
.bb-home-hero::after{width:min(34vw,22rem);height:12rem;right:-1rem;left:auto;bottom:-1rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 220'%3E%3Cg fill='none' stroke='%239ab7d4' stroke-width='2'%3E%3Cpath d='M20 190h380M50 190V135h60v55M110 190V115h90v75M200 190V95h65v95M265 190V120h70v70M335 190V105h50v85'/%3E%3Cpath d='M300 35h95M347 35v75M347 35l-20 18M347 35l20 18'/%3E%3C/g%3E%3C/svg%3E")}
.bb-home-hero .card-body{padding:2.25rem 2.25rem 2rem}
.bb-home-kicker{display:inline-flex;align-items:center;gap:.45rem;padding:.3rem .65rem;border-radius:999px;background:#eef4fb;color:#214a77;font-weight:600;font-size:.82rem}
.bb-home-headline{font-size:clamp(2.25rem,4vw,4rem);line-height:1.02;letter-spacing:-.03em;color:#133867;font-weight:800;margin:1rem 0 .95rem}
.bb-home-headline .accent{display:block;color:#2368ee}
.bb-home-copy{font-size:1.18rem;line-height:1.65;color:#4a627b;max-width:39rem;margin-bottom:1.35rem}
.bb-home-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:1.35rem 0 1.4rem}
.bb-home-benefit{display:flex;align-items:flex-start;gap:.75rem;padding:.8rem .9rem;border:1px solid #e3ebf3;border-radius:1rem;background:rgba(255,255,255,.78);backdrop-filter:blur(6px)}
.bb-home-benefit-icon{flex:0 0 auto;display:grid;place-items:center;width:2.6rem;height:2.6rem;border-radius:.85rem;background:#edf3fe;color:#2368ee;font-size:1.1rem}
.bb-home-benefit-title{font-weight:700;color:#173d6b}
.bb-home-benefit small{display:block;color:#5a7288;line-height:1.4}
.bb-home-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}
.bb-home-note{font-size:.88rem;color:#6c8298}
.bb-home-primary-btn{padding:.78rem 1.3rem;font-size:1rem;border-radius:.9rem;box-shadow:0 .5rem 1rem rgba(35,104,238,.2)}
.bb-home-outline-btn{padding:.78rem 1.1rem;font-size:1rem;border-radius:.9rem}

.bb-home-preview-wrap{position:relative;padding-left:1rem}
.bb-home-preview{position:relative;z-index:1;border-radius:1.35rem;background:rgba(255,255,255,.95);border:1px solid #e3ebf3;box-shadow:0 .9rem 2rem rgba(21,58,98,.12);overflow:hidden}
.bb-home-preview-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.1rem;border-bottom:1px solid #e9eff5;background:#fbfdff}
.bb-home-preview-brand img{height:1.35rem;width:auto;display:block}
.bb-home-preview-grid{display:grid;grid-template-columns:12.8rem minmax(0,1fr)}
.bb-home-sidebar{border-right:1px solid #e9eff5;background:#fbfdff;padding:1rem .8rem}
.bb-home-sidebar .active{background:#eaf1ff;color:#2368ee;border-radius:.65rem;font-weight:700}
.bb-home-sidebar a{display:flex;align-items:center;gap:.55rem;color:#4a627b;text-decoration:none;padding:.52rem .65rem;border-radius:.65rem;font-size:.92rem}
.bb-home-sidebar a + a{margin-top:.15rem}
.bb-home-preview-main{padding:1rem 1.05rem 1.1rem}
.bb-home-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin-bottom:.9rem}
.bb-home-metric,.bb-home-panel{border:1px solid #e4ebf3;border-radius:1rem;background:#fff;padding:.9rem 1rem}
.bb-home-metric .value{font-size:1.5rem;font-weight:800;color:#133867;line-height:1.05}
.bb-home-metric .label{font-size:.82rem;font-weight:700;color:#58708a}
.bb-home-metric .sub{font-size:.78rem;color:#7b90a4}
.bb-home-panels{display:grid;grid-template-columns:1.2fr .95fr;gap:.85rem}
.bb-home-panel h3{font-size:.96rem;margin:0 0 .8rem;font-weight:800;color:#173d6b}
.bb-home-item{display:grid;gap:.18rem;margin-bottom:.75rem}
.bb-home-item strong{font-size:.9rem;color:#1d416c}
.bb-home-item span{font-size:.78rem;color:#698095}
.bb-home-progress-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6rem;align-items:center}
.bb-home-progress{height:.38rem;border-radius:999px;background:#e8eef7;overflow:hidden}
.bb-home-progress > span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2368ee,#4d8fff)}
.bb-home-mini-list{display:grid;gap:.8rem}
.bb-home-mini-link{display:inline-flex;align-items:center;gap:.35rem;font-size:.82rem;font-weight:700;text-decoration:none}
.bb-home-chart{height:7rem;display:flex;align-items:flex-end;gap:.4rem;padding-top:.45rem}
.bb-home-chart-bar{flex:1;background:linear-gradient(180deg,#8db3ff,#2368ee);border-radius:.5rem .5rem 0 0;min-height:.7rem;opacity:.88}
.bb-home-login-card{position:absolute;right:-1.25rem;bottom:2rem;z-index:2;max-width:19rem;width:100%;border:1px solid #e4ebf3;border-radius:1.2rem;background:rgba(255,255,255,.97);box-shadow:0 1rem 2rem rgba(21,58,98,.16);padding:1.15rem 1.15rem 1rem}
.bb-home-login-card h3{font-size:1.28rem;font-weight:800;color:#133867;margin-bottom:.9rem}
.bb-home-login-card .field{margin-bottom:.72rem}
.bb-home-login-card .label{display:block;font-size:.82rem;font-weight:700;color:#5a7288;margin-bottom:.28rem}
.bb-home-login-card .input{height:2.8rem;border-radius:.8rem;background:#fbfdff;border:1px solid #dbe6f2;padding:.68rem .85rem;color:#8297aa;display:flex;align-items:center;justify-content:space-between}
.bb-home-login-card .checkbox{font-size:.82rem;color:#5a7288;display:flex;gap:.55rem;align-items:flex-start;margin:.8rem 0}
.bb-home-login-card .checkbox i{color:#2368ee}
.bb-home-login-card .link{display:inline-block;margin-bottom:.85rem;text-decoration:none;font-size:.84rem;font-weight:700}
.bb-home-login-card .btn{width:100%;padding:.8rem;border-radius:.9rem;font-weight:700}

.bb-home-feature-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.9rem}
.bb-home-feature-card{height:100%;padding:1.15rem 1.1rem;border:1px solid #dde7f1;border-radius:1.1rem;background:#fff;box-shadow:0 .35rem 1rem rgba(22,75,122,.07);transition:transform .18s ease, box-shadow .18s ease}
.bb-home-feature-card:hover{transform:translateY(-3px);box-shadow:0 .8rem 1.45rem rgba(22,75,122,.11)}
.bb-home-feature-icon{display:grid;place-items:center;width:3rem;height:3rem;border-radius:1rem;background:#edf3fe;color:#2368ee;font-size:1.3rem;margin-bottom:.9rem}
.bb-home-feature-card h3{font-size:1.12rem;font-weight:800;color:#173d6b;margin-bottom:.5rem}
.bb-home-feature-card p{font-size:.92rem;color:#5b7084;margin-bottom:.8rem;min-height:4.2rem}
.bb-home-feature-card .more{display:inline-flex;align-items:center;gap:.35rem;color:#f28c18;text-decoration:none;font-weight:700}

.bb-home-roles{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1.2rem 1.35rem;border-radius:1.25rem;background:linear-gradient(180deg,#f8fbff 0%,#edf4fe 100%);border:1px solid #dce8f5}
.bb-home-roles-title{display:flex;align-items:center;gap:.85rem;font-weight:800;color:#173d6b;font-size:1.12rem}
.bb-home-roles-title .icon{display:grid;place-items:center;width:2.8rem;height:2.8rem;border-radius:1rem;background:#e3efff;color:#2368ee;font-size:1.25rem}
.bb-home-role-list{display:flex;flex-wrap:wrap;gap:1.2rem 1.4rem;align-items:center;margin:0;padding:0;list-style:none;color:#315376;font-weight:700}
.bb-home-role-list li{display:flex;align-items:center;gap:.45rem}
.bb-home-role-list i{color:#2368ee}

.bb-home-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;padding:.5rem .15rem 0;color:#6f8396}
.bb-home-footer-brand{display:flex;align-items:center;gap:.75rem}
.bb-home-footer-brand img{height:1.55rem;width:auto}
.bb-home-footer-links{display:flex;flex-wrap:wrap;gap:.9rem 1.3rem}
.bb-home-footer-links a{color:#5f7892;text-decoration:none}
.bb-home-footer-links a:hover{color:#2368ee}

#bb-login-modal .modal-dialog{max-width:34rem}
#bb-login-modal .modal-content{border:1px solid #dfe8f1;border-radius:1.25rem;box-shadow:0 1rem 2.4rem rgba(22,75,122,.16)}
#bb-login-modal .modal-header{padding:1rem 1rem .65rem;border-bottom-color:#e8eef5}
#bb-login-modal .modal-body{padding:1rem}
#bb-login-modal .modal-footer{padding:.85rem 1rem 1rem;border-top-color:#e8eef5}
#bb-login-modal .modal-title{font-size:1.2rem!important;font-weight:800;color:#163a67}
#bb-login-modal .form-control{border-radius:.85rem;min-height:3rem}
#bb-login-modal .form-label{font-size:.88rem;font-weight:700;color:#5a7288}
#bb-login-modal .btn-primary{padding:.72rem 1.05rem;border-radius:.85rem;font-weight:700}
#bb-login-modal .btn-outline-secondary{border-radius:.85rem}
#bb-login-modal .btn-link{font-weight:700;text-decoration:none}

@media (max-width: 1399.98px){
  .bb-home-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width: 1199.98px){
  .bb-home-hero .card-body{padding:1.7rem}
  .bb-home-preview-grid{grid-template-columns:10rem minmax(0,1fr)}
  .bb-home-sidebar{padding:.85rem .6rem}
  .bb-home-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bb-home-panels{grid-template-columns:1fr}
  .bb-home-login-card{position:static;max-width:none;margin-top:1rem}
  .bb-home-preview-wrap{padding-left:0}
}
@media (max-width: 991.98px){
  .bb-home-benefits{grid-template-columns:1fr}
  .bb-home-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 767.98px){
  .bb-home{padding-inline:0}
  .bb-home-hero{border-radius:1rem}
  .bb-home-hero .card-body{padding:1.2rem}
  .bb-home-copy{font-size:1rem;line-height:1.55}
  .bb-home-actions{flex-direction:column;align-items:stretch}
  .bb-home-primary-btn,.bb-home-outline-btn{width:100%;justify-content:center}
  .bb-home-preview-grid{grid-template-columns:1fr}
  .bb-home-sidebar{border-right:0;border-bottom:1px solid #e9eff5}
  .bb-home-sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.2rem}
  .bb-home-metrics,.bb-home-feature-grid{grid-template-columns:1fr}
  .bb-home-roles{padding:1rem}
  .bb-home-role-list{gap:.75rem 1rem}
  .bb-home-footer{padding-bottom:.65rem}
}

/* ver. 122 — automatyczna galeria strony startowej */
.bb-home-gallery-section{padding:1.2rem 0 .35rem}
.bb-home-gallery-carousel{max-width:1240px;margin:0 auto;border:1px solid #dce7f2;border-radius:1.35rem;background:#fff;box-shadow:0 .85rem 2.2rem rgba(22,75,122,.12);overflow:hidden}
.bb-home-gallery-carousel .carousel-inner{background:#eef4fa}
.bb-gallery-slide{position:relative}
.bb-gallery-slide img{aspect-ratio:16/9;object-fit:cover;object-position:center;background:#eef4fa}
.bb-gallery-caption{position:absolute;left:0;right:0;bottom:0;padding:4.8rem 1.5rem 1.35rem;background:linear-gradient(180deg,transparent 0%,rgba(8,35,68,.72) 58%,rgba(8,35,68,.9) 100%);color:#fff}
.bb-gallery-caption>div{max-width:720px}
.bb-gallery-caption h3{font-size:1.55rem;font-weight:800;margin:.15rem 0 .25rem}
.bb-gallery-caption p{margin:0;color:rgba(255,255,255,.88);font-size:.95rem}
.bb-gallery-number{display:inline-flex;align-items:center;justify-content:center;min-width:2.2rem;height:1.6rem;padding:0 .55rem;border-radius:999px;background:#2d73e8;color:#fff;font-size:.72rem;font-weight:800}
.bb-home-gallery-carousel .carousel-control-prev,.bb-home-gallery-carousel .carousel-control-next{width:8%}
.bb-home-gallery-carousel .carousel-control-prev-icon,.bb-home-gallery-carousel .carousel-control-next-icon{width:2.35rem;height:2.35rem;padding:.45rem;border-radius:50%;background-color:rgba(20,65,113,.72);background-size:50% 50%}
.bb-home-gallery-carousel .carousel-indicators{margin-bottom:.5rem}
.bb-home-gallery-carousel .carousel-indicators [data-bs-target]{width:.55rem;height:.55rem;border:0;border-radius:50%;margin:0 .25rem;background-color:#fff;opacity:.58}
.bb-home-gallery-carousel .carousel-indicators .active{opacity:1;background-color:#5f9bff}
@media(max-width:767.98px){.bb-gallery-caption{position:static;padding:1rem 1rem 2rem;background:#133d6b}.bb-gallery-caption h3{font-size:1.2rem}.bb-gallery-caption p{font-size:.84rem}.bb-home-gallery-carousel{border-radius:1rem}}


/* ver. 136 — karuzela przeniesiona do sekcji hero */
.bb-home-hero-carousel{position:relative;padding-left:1rem}
.bb-home-hero-carousel .bb-home-gallery-carousel{width:100%;max-width:none;margin:0}
.bb-home-hero-carousel .bb-gallery-caption{padding:4rem 1.35rem 1.15rem}
.bb-home-hero-carousel .bb-gallery-caption h3{font-size:1.35rem}
.bb-home-hero-carousel .bb-gallery-caption p{font-size:.88rem}
@media(max-width:1199.98px){.bb-home-hero-carousel{padding-left:0;margin-top:.35rem}}
@media(max-width:767.98px){.bb-home-hero-carousel .bb-gallery-caption{padding:1rem 1rem 2rem}}

/* ver. 147 FIX03 — pole Hasło tej samej szerokości co Login, oczko wewnątrz ramki */
#bb-login-modal .bb-login-password-field{position:relative;width:100%}
#bb-login-modal .bb-login-password-field .form-control{width:100%;padding-right:3.25rem}
#bb-login-modal .bb-login-password-toggle{position:absolute;top:0;right:0;height:100%;width:3rem;border:0;background:transparent;color:#5a7288;display:flex;align-items:center;justify-content:center;z-index:5;border-radius:0 .85rem .85rem 0}
#bb-login-modal .bb-login-password-toggle:hover{color:#163a67;background:rgba(22,58,103,.06)}
#bb-login-modal .bb-login-password-toggle:focus-visible{outline:2px solid rgba(13,110,253,.45);outline-offset:-3px}
