@charset "UTF-8";
.body {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.navbar {
  transition: all 0.5s ease;
}

.navbar-sticky {
  opacity: 0.9;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.navbar .nav-link:hover {
  color: var(--bs-primary);
}

.dropdown-menu {
  border: none; /* brak obramowania */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* delikatny cień */
  border-radius: 0px; /* zaokrąglone rogi */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  display: block;
}

/* 3) Dropdown na hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0; /* usuwa glitch przy animacji */
  max-height: 500px;
  opacity: 1;
}

.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8)), url(../images/hero_tlo.jpg) no-repeat center center/cover;
  background-attachment: fixed;
}

.spacing {
  height: 200px;
  margin-top: 100px;
  margin-bottom: 100px;
  background: url(../images/hero_tlo.jpg) no-repeat center center/cover;
  background-attachment: fixed;
}

.home-switcher-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 15px;
}

.carousel-caption-background {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0;
  left: 0;
  right: 0;
}

.service-card {
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card .active img {
  opacity: 50%;
}

.service-card .card-img-top {
  border-radius: 0%;
}

/* --- Efekt fade (płynne przejście treści) --- */
.custom-fade {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.custom-fade.show {
  opacity: 1;
  transform: translateY(0);
}

.fading-out {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* --- Stylizacja karty ofertowej --- */
.offer-card {
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  padding: 30px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 1s ease;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

/* Fade-in przy zmianie kart */
.offer-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.tab-fade {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.8s ease;
}

.tab-fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* Usuń tło i cień z aktywnego przycisku w accordion-flush */
.accordion-flush .accordion-button:not(.collapsed) {
  background-color: transparent !important;
  color: var(--bs-primary) !important;
  box-shadow: none;
}

/* Zmień kolor ikonki (strzałki) przy aktywnym elemencie */
.accordion-flush .accordion-button:not(.collapsed)::after {
  filter: invert(43%) sepia(89%) saturate(2424%) hue-rotate(195deg) brightness(95%) contrast(101%);
}

/* Dla hover – delikatna zmiana koloru, bez tła */
.accordion-flush .accordion-button:hover {
  background-color: transparent;
  color: var(--bs-primary);
}

/* Opcjonalnie — usuń obramowanie pomiędzy elementami, jeśli chcesz pełny „flush look” */
.accordion-flush .accordion-item {
  border: none;
  border-bottom: 1px solid #ddd;
}

/* Usuń niebieską ramkę (outline i shadow) po kliknięciu w przycisk akordeonu */
.accordion-button:focus {
  box-shadow: none !important;
  outline: none !important;
}

.kontakt a {
  text-decoration: none;
}

footer {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8)), url(../images/hero_tlo.jpg) no-repeat center center/cover;
  background-attachment: fixed;
}

footer a {
  text-decoration: none;
}

@media (min-width: 992px) {
  .two-columns {
    column-count: 2;
  }
}
@media (max-width: 992px) {
  .card-img-top {
    height: 200px;
    object-fit: cover;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  .uslugi .col-md-8 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
  .tab-content .tab-pane {
    display: block !important; /* nadpisuje ukrywanie przez Bootstrapa */
    opacity: 1 !important; /* upewnia się, że fade nie ukryje treści */
    visibility: visible !important;
    position: static !important; /* usuwa absolutne pozycjonowanie z desktopa */
    transform: none !important;
    padding-bottom: 2rem; /* trochę przestrzeni pod każdym panelem */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* subtelna linia */
    margin-bottom: 2rem; /* odstęp po linii */
  }
  .tab-content .tab-pane:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  .tab-content {
    height: auto !important;
  }
  .tab-content {
    height: auto !important; /* żeby nie blokować wysokości */
  }
}
