:root{
  --brand-red:#d71920;
  --brand-blue:#0b3d91;
  --dark:#0b1220;
  --light:#f7f9fc;
  --muted:#6b7280;
}

html{scroll-behavior:smooth;}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:#111827;
  background:#fff;
}

/* Topbar */
.topbar{
  background: linear-gradient(90deg, var(--brand-blue), #082a62);
  color:#fff;
  font-size:.95rem;
}
.topbar a{color:#fff; text-decoration:none;}
.topbar a:hover{opacity:.9;}

/* Navbar */
.navbar{
  transition: all .25s ease;
}
.navbar .navbar-brand{
  font-weight:800;
  letter-spacing:.3px;
}
.brand-mark{
  display:inline-flex;
  width:38px;height:38px;
  border-radius:10px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
  align-items:center;justify-content:center;
  color:#fff;
  margin-right:.55rem;
  box-shadow:0 10px 25px rgba(0,0,0,.12);
}
.navbar .nav-link{
  font-weight:600;
  color:#111827;
}
.navbar .nav-link:hover{color:var(--brand-red);}
.navbar .nav-link.active{color:var(--brand-blue);}

.navbar.scrolled{
  box-shadow:0 12px 28px rgba(0,0,0,.12);
  background:rgba(255,255,255,.92)!important;
  backdrop-filter: blur(10px);
}

/* Scroll progress bar */
.scroll-progress{
  position:fixed;
  top:0; left:0;
  height:4px;
  width:0%;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-blue));
  z-index:2000;
}

/* Hero */
.hero{
  position:relative;
  background: radial-gradient(1200px 500px at 10% 10%, rgba(11,61,145,.15), transparent 60%),
              radial-gradient(900px 400px at 80% 20%, rgba(215,25,32,.14), transparent 60%),
              linear-gradient(180deg, #ffffff, #f6f8ff);
  overflow:hidden;
}
.hero .badge{
  background:rgba(11,61,145,.1);
  color:var(--brand-blue);
  border:1px solid rgba(11,61,145,.18);
}
.hero-title{
  font-weight:900;
  line-height:1.05;
  letter-spacing:-.6px;
}
.hero-sub{color:var(--muted); font-size:1.1rem;}
.hero-card{
  border:0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 22px 60px rgba(0,0,0,.14);
}
.hero-card img{width:100%; height:100%; object-fit:cover;}
.hero-overlay{
  position:absolute; inset:auto auto 22px 22px;
  background:rgba(11,18,32,.72);
  color:#fff;
  border-radius:14px;
  padding:14px 16px;
  max-width: 340px;
}

/* Buttons */
.btn-brand{
  border:0;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-blue));
  color:#fff;
  font-weight:700;
  border-radius:12px;
  padding:.8rem 1.05rem;
  box-shadow:0 16px 30px rgba(11,61,145,.18);
}
.btn-brand:hover{opacity:.95; color:#fff;}
.btn-outline-brand{
  border:2px solid rgba(11,61,145,.35);
  color:var(--brand-blue);
  font-weight:700;
  border-radius:12px;
  padding:.75rem 1.0rem;
}
.btn-outline-brand:hover{
  background:rgba(11,61,145,.06);
  color:var(--brand-blue);
}

/* Sections */
.section{
  padding:72px 0;
}
.section-title{
  font-weight:900;
  letter-spacing:-.4px;
}
.kicker{
  color:var(--brand-red);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.82rem;
}
.card{
  border:1px solid rgba(17,24,39,.08);
  border-radius:18px;
}
.card.soft{
  border:0;
  border-radius:18px;
  box-shadow:0 18px 45px rgba(0,0,0,.08);
}
.icon-pill{
  width:44px;height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;justify-content:center;
  background: rgba(215,25,32,.10);
  color:var(--brand-red);
}

/* Offer tiles */
.offer-tile{
  transition: transform .15s ease, box-shadow .15s ease;
}
.offer-tile:hover{
  transform: translateY(-3px);
  box-shadow:0 18px 45px rgba(0,0,0,.12);
}

/* Gallery */
.gallery-img{
  border-radius:16px;
  overflow:hidden;
  position:relative;
}
.gallery-img img{
  width:100%;
  height:260px;
  object-fit:cover;
  transition: transform .25s ease;
}
.gallery-img:hover img{transform: scale(1.04);}
.gallery-img .cap{
  position:absolute; inset:auto 14px 14px 14px;
  background:rgba(11,18,32,.65);
  color:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-weight:700;
}

/* Blog */
.blog-card img{
  height:210px; object-fit:cover;
  border-top-left-radius:18px;
  border-top-right-radius:18px;
}

/* Map */
.map-wrap{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(17,24,39,.08);
  box-shadow:0 18px 45px rgba(0,0,0,.08);
}
.map-wrap iframe{width:100%; height:360px; border:0;}

/* Footer */
.footer{
  background: linear-gradient(180deg, #0b1220, #070c16);
  color:rgba(255,255,255,.85);
}
.footer a{color:rgba(255,255,255,.85); text-decoration:none;}
.footer a:hover{color:#fff;}
.footer .mini{
  color:rgba(255,255,255,.6);
  font-size:.95rem;
}

/* Helpers */
.page-hero{
  padding:72px 0 32px;
  background: linear-gradient(90deg, rgba(215,25,32,.10), rgba(11,61,145,.10));
}
.page-hero .crumbs a{text-decoration:none;}
.badge-soft{
  background:rgba(215,25,32,.10);
  color:var(--brand-red);
  border:1px solid rgba(215,25,32,.18);
}
/* BRAND BUTTON – czerwony, hover żółty */
.btn-brand{
  border: 0;
  background: var(--brand-red) !important;
  color: #fff !important;
  font-weight: 800;
  border-radius: 12px;
  padding: .8rem 1.05rem;
  box-shadow: 0 16px 30px rgba(215, 25, 32, .22);
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn-brand:hover,
.btn-brand:focus{
  background: #ffd400 !important;   /* żółty, mocno widoczny */
  color: #111827 !important;        /* ciemny tekst na żółtym */
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(255, 212, 0, .28);
}

.btn-brand:active{
  transform: translateY(0);
  box-shadow: 0 12px 22px rgba(0,0,0,.12);
}

/* jeżeli chcesz też żółtą obwódkę na hover */
.btn-brand:hover{
  outline: 0;
}
/* HERO carousel (tekst) - stabilna wysokość, żeby layout nie skakał */
#heroCarouselText .carousel-item{
  min-height: 240px;
}
@media (max-width: 991.98px){
  #heroCarouselText .carousel-item{
    min-height: 0;
  }
}

/* Ukryj domyślne strzałki/ikony, bo używamy własnych przycisków */
#heroCarouselText .carousel-control-prev,
#heroCarouselText .carousel-control-next{
  display:none;
}
/* Sticky navbar: płynna zmiana wysokości + shrink logo */
.navbar{
  transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease;
  padding-top: .8rem;
  padding-bottom: .8rem;
}

.brand-logo{
  height: 44px;
  width: auto;
  display: block;
  transition: height .25s ease, transform .25s ease, filter .25s ease;
}

.brand-text{
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brand-blue);
  white-space: nowrap;
  transition: font-size .25s ease, transform .25s ease;
}

/* Po scrollu (klasa jest dodawana w main.js) */
.navbar.scrolled{
  padding-top: .45rem;
  padding-bottom: .45rem;
}

.navbar.scrolled .brand-logo{
  height: 34px;          /* zmniejszamy logo */
  transform: translateY(-1px);
}

.navbar.scrolled .brand-text{
  font-size: 1.12rem;    /* lekko mniejszy tekst */
}

/* Mobile */
@media (max-width: 991.98px){
  .brand-logo{ height: 38px; }
  .brand-text{ font-size: 1.12rem; }

  .navbar.scrolled .brand-logo{ height: 30px; }
  .navbar.scrolled .brand-text{ font-size: 1.05rem; }
}


/* Etap 32A — Mobile LCP fix: na telefonie hero bez karuzeli, jeden lekki obraz */
@media (max-width: 991.98px){
  .hero .container{
    padding-top: 1.2rem !important;
    padding-bottom: 1.6rem !important;
  }
  .mobile-hero-text .hero-title{
    font-size: clamp(2rem, 9vw, 2.7rem);
    line-height: 1.04;
  }
  .mobile-hero-static{
    aspect-ratio: 560 / 418;
    margin-top: .25rem;
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
  }
  .mobile-hero-static img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }
  .mobile-hero-static .hero-overlay{
    left: 12px;
    bottom: 12px;
    right: 12px;
    max-width: none;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: .92rem;
  }
  .hero .badge{font-size:.78rem;}
}
