body {
	font-family: 'Lato', sans-serif;
	background:rgb(222, 223, 167); /* rgb(192, 187, 146)  rgb(245, 245, 232); */
    font-weight:300;
    overflow-x:hidden;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  overflow-x:hidden;
}
h1 {
    color: #ffffff;
}
h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  font-weight: 600;
}

.nav-link {
  font-family: "Cormorant Garamond", serif;
  color: #000;
  cursor: pointer;
  font-weight: 600;
  margin: 0 15px;
}
nav.navbar{
   display: flex;
    align-items: center;
    background-color:white;
    position: relative;
    width: 100%;
    z-index: 1030;
     font-size: 1.2rem;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
	color:#000000;
}
.nav-link.active {
	font-weight:bold;
}
.nav-link:hover {
  color: #001055;
  text-shadow: 0px 0px 6px rgba(255, 255, 255, 1);
}
.navbar-brand img {
  max-height: 100px;
}
.navbar .nav-link .menu-logo {
    max-height: 60px; 
    width: auto;
}
.navbar .nav-link.d-flex {
    padding: 0.25rem 0.5rem;
}

.footer-tlo {
     background-color: rgba(0,0,0,0.25);
}

.footer-tlo {
    background-color: rgba(0,0,0,0.8);
    bottom: 0px;
     width:100%;  
    height: 300px; 
}

.baner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* napis w prawo */
  min-height: calc(100vh - 110px);
  color: #fff;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}


.baner-napis {
    position: absolute; 
     z-index: 2;  
    bottom: 5rem;
    right:10%;
    max-width: 80%;
    text-align: right;
    padding: 0;
}

.baner-title{
  font-size: 5rem ;         /* desktop */
 
}


.napis2-txt{
      display: inline-block;
    color: white;
    }

.parallax {
  /* obraz tła */
  background-image: url('/img/paralax.webp');
  
  /* efekt nieruchomego tła */
  background-attachment: fixed;
  
  /* wypełnienie sekcji */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  /* wysokość sekcji */
  min-height: 50vh;
  
  /* tło przy przyciemnieniu */
  position: relative;
  z-index: 1;
}

.parallax::before {
  /* lekki przyciemniony filtr dla kontrastu tekstu */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: -1;
}

.carousel-control-prev {
  left: 1rem !important;    /* bliżej lewej krawędzi ekranu */
}

.carousel-control-next {
  right: 1rem !important; /* bliżej prawej krawędzi ekranu */
}
.salon {
  position: relative;
  color: #000000;
  margin-top: 3rem;   /* odstęp nad sekcją */
  margin-bottom: 3rem;
}
.baner2 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: url('/img/baner2.jpg') bottom / cover no-repeat;
    min-height: 60vh;
    width: auto;
}

.slubne {
    position: absolute; 
    bottom: 0;
    left: 12%;             
    height: 100%;
    z-index: 2;
}

.napis-txt1{
    position: absolute;
    bottom: 10%;
    left: 40%; 
    width: 40%;
    z-index:3;
}
.img-box {
  position: relative;         /* konieczne dla overlay */
  overflow: hidden;
  border: 1px solid #ddd;
  height: 100%;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ar-1-1 { aspect-ratio: 1/1; }
.ar-2-1 { aspect-ratio: 2/1; }
.ar-1-2 { aspect-ratio: 1/2; }
 /* Kafel bazowy */
  .tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: var(--ar);   /* dla kafli z własnymi proporcjami */
    border-radius: 0;
  }
  .tile > img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
  }

  /* Proporcje pojedynczych kafli */
  .ar-1-1 { --ar: 1/1; }   /* kwadrat */
  .ar-2-1 { --ar: 2/1; }   /* szeroki prostokąt */

  /* Wrapper dla pary portretów (eliminuje problem z „uciętym” dołem) */
  .pair-portraits {
    aspect-ratio: 1/1;              /* cała para ma być kwadratem */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;                      /* odstęp między portretami */
    border-radius: 0;            /* zewnętrzne zaokrąglenie */
    overflow: hidden;                /* żeby rogi były czyste */
  }
  .pair-portraits .tile {
    aspect-ratio: auto;              /* portret nie liczy wysokości sam */
    height: 100%;                    /* height bierze z wrappera */
    border-radius: 0;                /* wewnątrz nie zaokrąglamy łączenia */
  }

  /* Na mobile – prosto, kafle jeden pod drugim */
  @media (max-width: 767.98px) {
    .pair-portraits { aspect-ratio: auto; }
    .pair-portraits .tile { height: auto; aspect-ratio: 1/2; }
  }

/* overlay */
.overlay {
  position: absolute;
  inset: 10px; /* zamiast top/left/width/height — równe odsunięcie */
  background: rgba(0,0,0,0.6);   /* przyciemniona maska */
  border: 1px solid #e2dfd6;     /* jasna ramka */
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
}

.tile:hover .overlay {
  opacity: 1;
}

.overlay-text h3,
.overlay-text p {
  color: #fff;
  margin: 0;
}

.overlay-text h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.overlay-text p {
  font-size: 1rem;
}

#kosmetyki {
  background-color: #000000;
  padding: 30px 0;
}

#kosmetyki h2 {
  color: #ffffff;
}

#kosmetyki p {
  color: #ffffff;
  max-width: 700px;
  margin: 0 auto;
}

.kosmetyk {
  margin-bottom: 0.8rem;
  text-align: center;
}


.kosmetyk .image-wrapper {
  width: 100%;
  height: auto; /* zamiast aspect-ratio */
  display: flex;
  align-items: center;
  justify-content: center;
}

.kosmetyk img {
  width: 70%;          /* zmniejszamy szerokość z 50% do 70% kolumny */
  max-width: 180px;    /* maksymalna szerokość, żeby nie były gigantyczne */
  max-height: 180px;   /* maksymalna wysokość */
  object-fit: contain;
  opacity: 0.9;
  margin: 0 auto;      /* wycentrowanie w divie */
  display: block;
}

.kosmetyk h3,
.kosmetyk p {
  color: #ffffff;
    margin: 0.5rem 0 0 0;
}

 .btn {
  background-color: transparent;
  border:1px solid #000000;
  color: #000000;
  border-radius:3px;
}

/* Efekt po najechaniu */
.btn:hover {
    background-color: #000000; 
    color: #ffffff;          
}

/* Efekt po naciśnięciu */
.btn:active {
    background-color: #c1282e; 
    color: #e2dfd6;              
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

 .btn-reverse {
  background-color: transparent;
  border:1px solid white;
  color: white;
  border-radius:3px;
}

/* Efekt po najechaniu */
.btn-reverse:hover {
    background-color: white; 
    color: black;          
}

/* Efekt po naciśnięciu */
.btn-reverse:active {
    background-color: #ffffff; 
    color: #ffffff;              
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}



.product-carousel-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.product-carousel-container {
  overflow: hidden;
  flex: 1;
}

.product-carousel1 {
  display: flex;
  transition: transform 0.5s ease;
}

.product-slide1 {
  flex: 0 0 200px; /* szerokość jednego zdjęcia */
  margin: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-slide1 img {
  width: 100%;
  height: auto;
  object-fit: contain; /* zachowuje proporcje, nie ucina */
  border-radius: 5px;
}

.product-name, .product-name1 {
  text-align: center;
  color: #fff;
  margin-top: 5px;
}

.carousel-arrow1 {
  width: 40px;
  height: 80%;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.carousel-arrow1:hover {
  background: rgba(0,0,0,0.6);
}

/* 1) Tor slicka jako flex, środkuj pionowo */
.referencje .slick-track{
  display:flex !important;
  align-items:center;          /* klucz do pionowego centrowania */
}

/* 2) Każdy slajd też jako flex-kontener */
.referencje .slick-slide{
  display:flex !important;     /* slick daje display:block – nadpisujemy */
  padding: 0 20px;
  box-sizing:border-box;
}

/* 3) Wrapper w slajdzie na pełną szer. i flex (żeby karta nie „skakała”) */
.referencje .slick-slide > div{
  display:flex;
  width:100%;
}

/* 4) Sama karta – bez sztywnego 100% wysokości; centrowanie treści zostaje */
.referencje .p-4{
  height:auto;                 /* było: 100% – usuń */
  border-radius:15px;
  overflow:hidden;
  transition:transform .3s;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:25px;
  will-change:transform;
  transform-origin:center center;
}

/* Efekt skali – bez zmian */
.referencje .slick-center .p-4{ transform:scale(1.0); z-index:2; }
.referencje .slick-slide:not(.slick-center) .p-4{ transform:scale(.8); z-index:1; }

/* Mobile: lekko mniejsze boczne marginesy, żeby karta nie „dotykała” krawędzi */
@media (max-width: 576px){
  .referencje .slick-slide{ padding:0 12px; }
}

.social-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.social-icon:hover {
  transform: scale(1.1);
  opacity: 1;
}

.navbar .nav-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
}

@media (max-width: 991px) {
  .social-icon {
    width: 28px;
    height: 28px;
    margin-right: 8px;
  }
}



#referencje {
  background: url("/img/paralax.webp") top/cover no-repeat;
 
  background-color: #1c2335;
}

#referencje h2 {
  color: white;
}

/* kontener sekcji */
#referencje .container {
  overflow: hidden;
}



.gallery-frame {
 
  overflow: hidden; /* aby powiększenie nie wychodziło poza ramkę */
  display: block;
}

.gallery-thumb {
  object-fit: cover;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  filter: brightness(90%);
  transition: filter 0.3s ease;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.gallery-thumb:hover {
  filter: brightness(100%);
  transform: scale(1.02);
}

.gallery-item.hidden {
  display: none;
}

.mfp-fade.mfp-bg {
  opacity: 0;
  transition: opacity .3s ease;
}
.mfp-fade.mfp-bg.mfp-ready {
  opacity: .8;     
}
.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transform: scale(.97);  
  transition: opacity .3s ease, transform .3s ease;
}
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
  transform: scale(1);
}
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
  transform: scale(.97);
}





.logo-section {
  background-color: #000;
}

/* Wspólne dla wszystkich logo */
.logo-white {
  max-height: 150px;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  transition: transform 0.4s ease, opacity 0.4s ease; /* dodajemy transition */
}
/* Logo ciemne (domyślnie widoczne) */
.logo-dark {
  filter: brightness(50%);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Logo jasne (schowane na górze) */
.logo-light {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);  /* <-- ważne */
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Kontener */
.logo-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 150px;
}

/* Hover: zamiana */
.logo-container:hover .logo-dark {
  transform: translateX(-50%) translateY(100%);  /* ciemne w dół */
  opacity: 0;
}

.logo-container:hover .logo-light {
  transform: translateX(-50%) translateY(0);     /* jasne na środek */
  opacity: 1;
}


/* Drugi rząd przesunięty w górę */
.second-row {
  margin-top: -30px; /* dopasuj wysokość przesunięcia */
  position: relative;
  z-index: 2;
}

/* Trzeci rząd przesunięty w górę */
.third-row {
  margin-top: -30px; /* dopasuj wysokość przesunięcia */
  position: relative;
  z-index: 1;
}
#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid white;
  background-color: #1c2335;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.3s;
}

#backToTop:hover {
  background-color: #27274d;
  transform: translateY(-3px);
}

@media (max-width: 1400px) {
    .corect-height {
        height:554px;
    }
      .last-person {
    position: relative;
    z-index: 1;
    margin-top: -30px; /* dopasuj wysokość przesunięcia */
  }
  .middle-person {
  position: relative;
  z-index: 2;
  margin-top: -30px; /* przesunięcie w górę */
}
}

@media (max-width: 1200px) {
    .corect-height {
        height:464px;
    }
     .last-person {
    position: relative;
    z-index: 1;
    margin-top: -30px; /* dopasuj wysokość przesunięcia */
  }
  .middle-person {
  position: relative;
  z-index: 2;
  margin-top: -30px; /* przesunięcie w górę */
}
  
    .baner {
        min-height: 50vw;     /* dopasowanie do wysokości ekranu */
        display: flex;        /* zachowujemy flex */
        flex-direction: column; /* na mobile ustawiamy kolumnę, żeby tekst był pod zdjęciem */
        justify-content: flex-end; 
        align-items: center;
        position: relative;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }

    .baner-napis {
        position: relative;    /* absolutne pozycjonowanie wstrzymane */
        z-index: 2;
        top: auto;
        bottom: 1rem;          /* lekko od dołu */
        left: auto;
        right: auto;
        transform: none;
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .baner-title {
        font-size: 3rem;
        line-height: 1.2;
    }
}

@media (max-width: 992px) {
    nav.navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1030;
    }

    body {
        padding-top: 70px; /* wysokość navbara, żeby treść nie chowała się pod nim */
    }
    
    .corect-height {
        height:344px;
    }
    
    .navbar-logo {
        width:150px;
    }
    
    .baner {
        min-height: 50vw;     /* dopasowanie do wysokości ekranu */
        display: flex;        /* zachowujemy flex */
        flex-direction: column; /* na mobile ustawiamy kolumnę, żeby tekst był pod zdjęciem */
        justify-content: flex-end; 
        align-items: center;
        position: relative;   
    }

    .baner-napis {
        position: relative;    /* absolutne pozycjonowanie wstrzymane */
        z-index: 2;
        top: auto;
        bottom: 1rem;          /* lekko od dołu */
        left: auto;
        right: auto;
        transform: none;
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .baner-title {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    .baner2 {
        background: url('/img/baner2.jpg') bottom / cover no-repeat; /* pełne ustawienie tła */
        position: relative;
        min-height: 30vh;
    }

    .baner2 .slubne {
        display: none;
    }

    .napis-txt1 {
        position: absolute;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        text-align: center;
        padding: 0.5rem 1rem;
        background: rgba(255,255,255,0.5); 
    }

    .napis-txt1 h2 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
        color: #1c2335;
    }

    .napis-txt1 p {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 0;
        color: #1c2335;
    }

    .corect-height {
        height:auto;
    }
      .baner2 {
    background: url('/img/baner2.jpg') bottom / cover no-repeat;
    position: relative;
    min-height: 60vh; 
  }
   .logo-dark {
    display: none !important;
  }
  .logo-light {
    position: static !important;       /* zamiast absolute */
    transform: none !important;        /* usuń przesunięcie */
    opacity: 1 !important;             /* zawsze widoczne */
    display: block !important;         /* wyświetl normalnie */
    margin: 0 auto;                    /* wycentruj */
  }
  .logo-container {
    height: auto !important;           /* dopasuj wysokość */
    overflow: visible !important;      /* pozwól rosnąć w pionie */
  }
    /* marginesy po bokach przy 1 karcie */
  .referencje .slick-slide {
    padding: 0 40px;   /* możesz dać 20px jeśli chcesz mniejsze odstępy */
  }

  /* upewnij się, że tło nie wystaje */
  #referencje .container {
    overflow: hidden;
  }
  }


@media (max-width: 768px) {
  
     .second-row {
    margin-top: 2rem; 
  }

  .third-row {
    margin-top: 2rem; 
  }
    .overlay {
    opacity: 1 !important;   /* zawsze widoczne na mobile */
  }
    .kosmetyk img {
    width: 60%;       /* mniejsze zdjęcia na telefonach */
    max-width: 150px;
    max-height: 150px;
  }
    .kosmetyk img {
    max-width: 150px;
    max-height: 150px;
  }

  #kosmetyki {
    padding: 20px 0;
  }

  .kosmetyk h3,
  .kosmetyk p {
    margin: 0.3rem 0 0 0;
  }
   .baner {
        min-height: 55vw;     /* dopasowanie do wysokości ekranu */
        display: flex;        /* zachowujemy flex */
        flex-direction: column; /* na mobile ustawiamy kolumnę, żeby tekst był pod zdjęciem */
        justify-content: flex-end; 
        align-items: center;
        position: relative;   
    }

    .baner-napis {
        position: relative;    /* absolutne pozycjonowanie wstrzymane */
        z-index: 2;
        top: auto;
        bottom: 1rem;          /* lekko od dołu */
        left: auto;
        right: auto;
        transform: none;
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .baner-title {
        font-size: 2rem;
        line-height: 1.2;
    }
}


@media (max-width: 576px) {

    .corect-height {
        height:auto;
    }
     #heroCarousel,
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item {
        height: auto;         /* pozwala karuzeli dopasować wysokość */
        min-height: 60vw;     /* proporcja wysokość do szerokości ekranu */
        max-height: 80vh;     /* nie za wysoka */
    }

    .baner {
        min-height: 55vw;     /* dopasowanie do wysokości ekranu */
        display: flex;        /* zachowujemy flex */
        flex-direction: column; /* na mobile ustawiamy kolumnę, żeby tekst był pod zdjęciem */
        justify-content: flex-end; 
        align-items: center;
        position: relative;   
    }

    .baner-napis {
        position: relative;    /* absolutne pozycjonowanie wstrzymane */
        z-index: 2;
        top: auto;
        bottom: 1rem;          /* lekko od dołu */
        left: auto;
        right: auto;
        transform: none;
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .baner-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .baner a.btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
  .baner2 {
    min-height: 40vh; /* jeszcze wyższy na bardzo małych telefonach */
  }

     #o-salonie p {
    font-size: 0.95rem;  /* mniejszy font na mobile */
    line-height: 1.5;
    padding: 1rem 1rem;     /* odstęp od boków */
  }

  #o-salonie img {
    max-width: 90%;       /* trochę mniejsze zdjęcie */
    margin: 0 auto;
  }
       

    .napis-txt1 h2 {
        font-size: 1.6rem;
    }

    .napis-txt1 p {
        font-size: 0.9rem;
    }
      .second-row {
    margin-top: 2rem; 
  }

  .third-row {
    margin-top: 2rem; 
  }
     .logo-dark {
    display: none !important;
  }
  .logo-light {
    position: static !important;       /* zamiast absolute */
    transform: none !important;        /* usuń przesunięcie */
    opacity: 1 !important;             /* zawsze widoczne */
    display: block !important;         /* wyświetl normalnie */
    margin: 0 auto;                    /* wycentruj */
  }
  .logo-container {
    height: auto !important;           /* dopasuj wysokość */
    overflow: visible !important;      /* pozwól rosnąć w pionie */
  }
    .overlay {
    opacity: 1 !important;   /* zawsze widoczne na mobile */
  }
    .kosmetyk img {
    max-width: 150px;
    max-height: 150px;
  }

  #kosmetyki {
    padding: 20px 0;
  }

  .kosmetyk h3,
  .kosmetyk p {
    margin: 0.3rem 0 0 0;
  }
}