:root {
    --red2: #d5213f;
    --orange: #db6f27;
    --red: #df2428;
    --bs-body-font-family: Poppins, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --bs-body-color: #212529;
  --bs-body-bg: #fff;
  --bs-link-color: #ababab; /* #ee0979; */
  --bs-link-hover-color: #ababab;
}

body {
  margin: 0;
  font-family: var(--bs-body-font-family);
  font-size: var(--bs-body-font-size);
  font-weight: var(--bs-body-font-weight);
  line-height: var(--bs-body-line-height);
  color: var(--bs-body-color); 
  background-color: var(--bs-body-bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  scroll-behavior: smooth; 
}

/* NAV */
.navbar {
    padding: 0.2rem 0;
}

.navbar-nav .nav-link {
    font-weight: 500; 
    margin: 0 12px;
    text-transform: uppercase;
    color: #333;
}

.navbar-nav .nav-link:hover {
    color: #fff;
  text-decoration: none;
    background-color: var(--red2);
}
.hero .btn-custom {
    background-color: var(--red);
    border: none;
    padding: 10px 32px;
    color:#fff;
}

.hero .btn-custom:hover {
    background-color: #c55f1f;
}
.btn:hover { 
  text-decoration: none;}
  
.hero {
  height: 50vh;
  background: url('../assets/img/subito-dotacje-sg.webp') center / cover no-repeat;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #d81014 0%, #df2428 100%);
  background: rgba(216,16,20,.8);
}

.hero .container {
  position: relative;
  z-index: 2;
}
.hero.hero-subpage {
  height: 35vh; /* mniejszy hero */
}

.hero.hero-subpage::after {
  background: linear-gradient(0deg, #d81014 0%, #df2428 100%);
  background: rgba(216,16,20,.8);
}

.top-bar {
  padding-top:5px;
  height: 36px;
  background: #f8f9fa;
  font-size: 0.85rem;
  z-index: 1040;
  transition: transform 0.3s ease;
}
.top-bar.hide {
  transform: translateY(-100%);
}

/* menu przesunięte o wysokość top-bar */
.main-navbar {
  top: 36px;
  transition: top 0.3s ease;
}

/* gdy top-bar zniknie, menu idzie do góry */
.main-navbar.top-hidden {
  top: 0;
}

.top-bar .top-link {
  color: #333;
  text-decoration: none;
}

.top-bar .top-link i {
  font-size: 1rem;
}

.top-bar .top-link:hover {
  color: #d5213f;
}
.card {
  border-radius: 0.75rem;
}

.card-header {
  min-height: 70px; /* jeszcze lepsze wyrównanie */
}

/* odsunięcie głównego menu pod top-bar */
.main-navbar {
  top: 36px;
}

.page-section {
 padding-top:6rem;
 padding-bottom:6rem;
}
.section-header h2 {
    font-weight: 700;
    letter-spacing: 1px;
}

.section-icon {
    font-size: 2.5rem;
    color: var(--red2);
}

.section-lead {
    max-width: 720px;
    margin: 0 auto;
    color: #555;
    font-size: 0.9rem;
}

a {
  color: var(--bs-link-color);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--bs-link-hover-color);
}

a:not([href]):not([class]), a:not([href]):not([class]):hover {
  color: inherit;
  text-decoration: none;
}

/* HEADINGS */
h2 {
    color: var(--red2);
} 

.table td,
.table th {
  padding: 1.1rem 1rem;
}


/* OFFER IMAGES SAME HEIGHT */
.offer-img {
    height: 220px;
    object-fit: cover;
}

/* ICONS */
.icon {
    color: var(--orange);
    font-size: 1.4rem;
}
.offer-card {
    border: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all .3s ease;
    border-radius: 12px;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.15);
}

.offer-icon {
    font-size: 2.2rem;
    color: var(--red2);
}

.offer-card h5 {
    font-weight: 700;
}

.offer-card p {
    font-size: 0.95rem;
}
@media (min-width: 768px) {
    .hero h1 { padding-top:80px; font-size:2.0rem } 
}
@media (min-width: 1440px) {
    .hero h1 { font-size:2.4rem } 
}
#projectsCarousel .carousel-control-prev {
    left: -50px;
}

#projectsCarousel .carousel-control-next {
    right: -50px;
}
@media (max-width: 768px) {
    .logo {width:100px}
    .hero h1 { padding-top:80px }
    .gallery-item {
        height: 160px;
    }
    #projectsCarousel .carousel-control-prev {
    display:none
}

#projectsCarousel .carousel-control-next {
    display:none
}
}
    .logo { padding-top:5px;  padding-bottom:5px; }

/* kontener */
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    height: 220px; /* <-- JEDNAKOWA WYSOKOŚĆ */
}

/* obraz */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* <-- KLUCZ */
    transition: transform .4s ease;
}

/* overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(108, 173, 68, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
}

/* hover */
.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.counter-box {
  display: inline-block;
  padding: 16px 24px;
  font-size: 1.8rem;
  font-weight: 700;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 0 auto;
}
 
.counter-box--red {
  background: #d5213f;
  color: #fff;
} 

.counter-circle {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: #d5213f;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.counter-circle span {
  font-size: 2.2rem;
  line-height: 1;
}

.counter-circle small {
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 4px;
} 

/* --- Poprawki wyglądu karuzeli --- */
.carousel-inner {
  padding: 1rem 0 5rem 0; /* przestrzeń od góry i dołu */
}

.carousel-item .card {
  margin-bottom: 0;
  height: 100%;
}

.carousel-item .row {
  overflow: visible;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

/* Responsywność */
@media (max-width: 767px) {
  .carousel-item .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .carousel-item .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .carousel-item .col-md-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}
/* FOOTER */
footer {
    font-size: 0.9rem; 
    background: grey;
}

footer h5 {
    color: var(--orange);
}

.cookie-info { display:none; }
.cookie-info.show { display:block; }

.cookie-info {
    display: none;  
    position: fixed;
    bottom: 15px;
    right: 15px;
    max-width: 320px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
    z-index: 9999;
}


.cookie-info p {
    margin: 0 0 10px 0;
}

.cookie-info button {
    background: #000;
    color: #fff;
    border: 0;
    padding: 6px 12px;
    cursor: pointer;
}