/* Base font size */
html { font-size: 18px; }

/* Variable Font Imports */
@font-face {
  font-family: 'DMSans Italic';
  src: url('../font/DMSans-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DMSans Normal';
  src: url('../font/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* CSS Variables */
:root {
--color-text: #434343;
--bg-color: #FFF;
--transition-fast: 0.3s;
--transition-menu: 0.6s ease;
--basic-color: #04004C;
}

/* Reset & Base Styles */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--color-text);
  background-color: var(--bg-color);
  font-weight: 400;
  font-family: 'DMSans Normal';
  line-height: 1.678rem;
  font-size: 0.778rem;
}
img { max-width: 100%; height: auto; }
img.radius { border-radius: 2.1875rem; }

/* Focus & Selection */
:focus { outline: none; }
::selection, ::-moz-selection { color: #fff; background-color:  #d48543; }

a{
  color:var( --color-text);
  transition: var(--transition-menu);
  text-decoration: none;
}
a:hover { color: var(--basic-color); transition: var(--transition-menu); }

.adresy a{
  text-decoration: none;
}


/* Inputs & Buttons */
input, button, select, textarea { outline: none; }

/* Headings Grouped */
h2, h3, h4 {
  font-family: "DMSans Normal";
  font-style: normal;
  font-weight: 500;
  color: var(--basic-color);
}
h1 { font-size: 1.889rem; line-height: normal; font-weight: 500; color: #FFF;}
h2, h3 { font-size: 1.889rem; line-height: normal; font-weight: 500;}

.border-bottom{
  border-bottom: 1px solid #F3F3F3;
}
.menu-item a{
  text-decoration: none;
}


.menu-list{
  list-style-type: none;
}

.textlabel h2{
  margin-bottom: 34px;
}

 #menu-menu-gorne .menu-item{
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 500;
  margin-right: 3rem;

}

a img:hover{
  opacity: 0.8;
  transition:var( --transition-fast);
}
a img{
  opacity:1;
  transition:var( --transition-fast);
}

.button-a{
  background-color: #04004C;
  color: #fff;
  border-radius: 5px;
  padding: 12px 64px;
  display: inline-flex;
  border: 1px solid #04004C;
}
.button-a:hover{
  background-color: transparent;
  color: #04004C;
  border-radius: 5px;
  padding: 12px 64px;
  display: inline-flex;
  border: 1px solid #04004C;
}


.disclaimer {
  color: var(--color-text);
  font-family: "DMSans Normal";
  font-size: 0.75rem;
  line-height: 1.33rem;
}


.menu-menu-gorne-container .menu-item{
  padding-top: 1.5rem;
}
.menu-menu-gorne-container .menu-item.current-menu-item{
  padding-top: 1.5rem;
  border-top: 1px solid var(--basic-color);
}
.menu-menu-gorne-container .menu-item.current-menu-item a{
font-weight: 700;
}

.disclaimer, .disclaimer a{
  color: #ffffff6b;
  font-size: 0.722rem;
}

/* .current_page_item a,
.current-page-ancestor a{
  color:var(--basic-color);
  padding-bottom: 14px;
  border-bottom: 3px solid var(--basic-color);
}

#menu-menu-dolne .current_page_item a,
#menu-menu-dolne .current-page-ancestor a{
  color: inherit;
  padding-bottom: 0;
  border-bottom: none
} */

.overlay-content ul{
  list-style-type: none;
  padding-left: 0;
}

/* Navigation */
.nav > li > a:hover, .nav > li > a:focus {
  background: none;
}

/* Overlay Menu */
.overlay {
  position: fixed;
  top: 0; right: 0;
  width: 0; height: 100%;
  background-color: #fff;
  overflow-x: hidden;
  transition: 0.5s;
  z-index: 93;

}
.overlay-content {
  position: relative;
  width: 100%;
  text-align: left;
}


.overlay a {
  display: block;
  padding: 0;
  font-size: 1.668rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  color:var(--basic-color);
  transition: var(--transition-fast);
  line-height: normal;
  text-decoration: none;
}

.overlay-button a{
  padding: 0.8rem 2.4rem;
  color: #fff;
  background-color:var( --color-text);
  border: 1px solid #000;
  justify-content: center;
  display: flex;
  white-space: nowrap;
  width: 100%;
}

.overlay .watermark{
  bottom: 0;  
  right: -10%;
  opacity: 0.2;
}
.nav {
  list-style-type: none;
  padding-left: 0;
}
.overlay .closebtn {
  position: absolute;
  top: 20px; right: 1.25rem;
  font-size: 60px;
}

#menu-menu-gorne {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin-top: auto;
  margin-bottom: auto;
  padding-left: 0;
}

#menu-menu-dolne li{
  color:var( --color-text);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 400;
  line-height: 250%; /* 35px */
}

#menu-menu-dolne{
  padding-left: 0;
  list-style: none;
}

/* Hamburger Menu */
.menu-bar {
  position: relative;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px; height: 18px;
  cursor: pointer;
}
.bar {
  width: 100%;
  height: 2px;
  background-color:var( --color-text);
  transition: transform var(--transition-fast) ease-in-out;
}
.menu-open .bar:first-child {
  transform: translateY(14px) rotate(45deg);
  background-color:var( --color-text);
}
.menu-open .bar:nth-child(2) {
display: none;
}
.menu-open .bar:last-child {
  transform: translateY(-2px) rotate(-45deg);
  background-color:var( --color-text);
}
.menu-bar.menu-open::before,
header.menu-open p,
header.menu-open .underline {
  color: #fff;
  transition: color var(--transition-menu);
}

.menu ul{
  display: flex;
  flex-direction: row;


}



/* Underline Utility */
.underline {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

/* Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.gallery-item {
  width: 100%;
  margin-bottom: 1rem;
}


  /* Ustawiamy linki menu jako flex, tekst do lewej, ikonki do prawej */
  #myNav .overlay-content .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }


  .faq-item {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
  }

  .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    
  }
  .faq-question h3 {
    margin: 0;
    font-size: 0.778rem;
    font-weight: normal;
    line-height: 3rem;
  }
  .faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    transition: transform 0.3s ease;
  }
  /* UKRYWAMY przez max-height i opacity, a nie display */
  .faq-answer {
    font-size: 0.778rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0.5rem;
    line-height: 1.4;
    color: #555;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }
  /* Gdy aktywne – tekst stanie się widoczny */
  .faq-item.active .faq-answer {
    opacity: 1;
  }
  /* Obrót ikonki przy otwarciu */
  .faq-item.active .faq-toggle {
    transform: rotate(180deg); /* plus → „×” */
  }


.fancybox__toolbar__column button{
  display: none;
}
.fancybox__toolbar__column button:last-child{
  display: flex !important;
}



/* 1) Kontener overlay musi być relative, żeby pseudo-elementy mogły się pozycjonować względem niego */
.overlay-content {
  position: relative;
}

/* 2) Spraw, by linki miały pełną szerokość i padding tylko z lewej */
.overlay-content .menu-menu-gorne-container ul.menu li.menu-item > a {
  display: block;
  width: 100%;
  position: relative;
  text-align: left;
}

/* 3) Pseudo-element strzałki – absolutnie względem <a>, ale dzięki szerokości 100% zawsze będzie przy prawej krawędzi overlay */
.overlay-content .menu-menu-gorne-container ul.menu li.menu-item > a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;                     /* przy prawej krawędzi linka (czyli overlay) */
  transform: translateY(-50%);
  width:16px;                  /* dopasuj do rozmiaru obrazka */
  height:16px;
  background: url('../images/arrow-right.png') no-repeat center center;
  background-size: contain;
}


.overlay-content .menu-menu-gorne-container ul.menu li.menu-item.current_page_item a{
  font-weight: 700;
}

.cube{
  padding: 4px 12px;
  border-radius: 7px;
  background-color: var(--basic-color);
  color: var(--bg-color);
  margin-right: 12px;
  display: inline;
}

.cube.white{
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid #EEE;
}


.bgBlue{
  background: #04004C;
  border-radius: 25px;
  color: #fff !important;
  display: flex;
  align-items: start;
  padding: 4em;
  
}

.text-image__img-wrapper img{
  border-radius: 25px;
}

.bgBlue h1{
  line-height: normal;
}


.cards-section .card {
  padding: 4em 3em;
  border: 1px solid #EEE;
  background-color: #fff;
  border-radius: 25px
}


.yellowBg{
  background-color: #F8E49C;
  border-radius: 25px;
  height: 440px;
  padding: 5em;
  z-index: 1;
}


.watermark{
  position: absolute;
  bottom: 0;
  right: 20%;
  width: 500px;
  z-index: -1;
}


/* pojedynczy tile */
.logo-tile img {
  max-height: 60px; /* dostosuj wysokość logotypu */
  object-fit: contain;
}

.blueBg{
    background: #04004C;
}

.daneKontaktowe .miasto{
  font-weight: 700;
  font-size: 1rem;
}

.daneKontaktowe{
  color: #fff !important;
}
.daneKontaktowe a{
  color: #fff;
}

.daneKontaktowe .maps{
  text-decoration: underline;
}

.overlay .menu-menu-gorne-container .menu-item.current-menu-item {
border-top: none;
}

.subpage .card ul{
  padding-left: 1em;
}

.subpage .two-cols__right p{
  margin-bottom: 0;
}





/* Pasek karuzeli */
.logo-marquee {
  overflow: hidden;
  position: relative;
  /* delikatne wygaszenie krawędzi (opcjonalnie) */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

/* Tor z logotypami */
.logo-track {
  display: inline-flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  will-change: transform;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
}

/* Zatrzymanie animacji po najechaniu (opcjonalnie) */
.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

/* Pojedynczy element */
.logo-item img {
  height: 48px;          /* stała wysokość logo */
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter .3s, opacity .3s;
}
.logo-item img:hover {
  filter: none;
  opacity: 1;
}


/* Ustal jeden, wspólny box na każde logo */
.logo-item {
  width: clamp(120px, 14vw, 200px);   /* szerokość „kafelka” z logo */
  height: clamp(50px, 6vw, 80px);     /* wysokość „kafelka” */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;                       /* trochę oddechu w środku */
}

/* Samo logo wypełnia box, zachowując proporcje */
.logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;                /* mieści całe logo w boxie */
  filter: grayscale(100%) saturate(0);
  opacity: 0.85;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
  will-change: filter, opacity, transform;
}


.adresy {
    flex-wrap: wrap;
}

.adresy > div {
    min-width: max-content; /* żeby się nie łamały w dziwnych miejscach */
}

@media (max-width: 576px) {
    .adresy > div[adres3] {
        flex: 0 0 100%;   /* pełna szerokość na małych ekranach */
        margin-left: 0 !important; /* usuwa ms-5 z mobile */
    }
}

/* Kolor dopiero na hoverze (tylko na urządzeniach z hoverem) */
@media (hover: hover) {
  .logo-item img:hover {
    filter: none;
    opacity: 1;
    transform: translateY(-1px);      /* delikatny efekt, opcjonalnie */
  }
}

/* Kluczowa animacja – przesuwamy o połowę toru (bo tor = zdublowany zestaw) */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Drobne dostosowanie na mobile */
@media (max-width: 575.98px) {
  .logo-item img { height: 36px; }
}

/* Responsywność: na małych ekranach 2 kolumny */
@media (max-width: 767.98px) {
  .cards-section .col-md-6 {
    margin-bottom: 1.5rem;
  }
  .cards-section .col-md-6:last-child {
    margin-bottom: 0rem;
  }
  .cards-section .card {
padding-right: 3em;

}

    .cards-section .col-md-6:first-child {
        margin-top: 0em !important;
    }

.subpage .yellowBg {

    padding: 2em;

}
}


@media (min-width: 768px) {
  .gallery-item {
    flex: 0 0 calc((100% - 2rem) / 3);
  }

}

/* Container */
.container {
  padding: 0 1.5rem;
  /* jeśli potrzebujesz centrowania: margin: 0 auto; */
}

/* Duże monitory (1441px i więcej) */
@media (min-width: 1441px) {
  .container {
    max-width: 84rem;
  }
}

/* Ekrany od 1366px do 1440px – kontener zawsze 1240px */
@media (min-width: 1366px) and (max-width: 1440px) {
  .container {
    max-width: 1240px;
  }


}



/* Laptopy i mniejsze monitory (do 1365px) */
@media (max-width: 1365px) {
  .logo-top {
    max-width: 330px;
  }
  .container {
    max-width: 77.5rem;
    padding: 0 2rem;
  }
}

/* Typowe laptopy (do 1440px) */
@media (max-width: 1440px) {
 h1{
  font-size: 1.688rem;
}
h2{
  font-size: 1.688rem;
}
}
/* Typowe laptopy (do 1366px) */
@media (max-width: 1366px) {
  html {
    font-size: 18px;
  }
}

/* Tablety oraz małe laptopy i urządzenia w poziomie (do 1024px) */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
}

/* Tablety oraz małe laptopy w pionie (do 992px) */
@media (max-width: 992px) {
  .container {
    max-width: 66.68rem;
    padding: 0 1.5rem;
  }
    .rowTop{
  width: 100%;
}
.yellowBg{
  height:340px;
}
}

/* Smartfony i małe urządzenia (do 576px) */
@media (max-width: 576px) {

  html {
    font-size: 14px;
  }
  .container {
    max-width: 42.54rem;
    padding: 0 1rem;
  }

  .bgBlue {
    padding: 2em;
}


}

/* Bardzo wąskie (do 360px) */
@media (max-width: 360px) {

  .button-a {
    padding: 12px 30px;
}

}