@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: 'Poppins', sans-serif;

    background-color: #f9fafb;

    color: #222;

}



.header {

    background-image: url('https://schodynalata.pl/img/background.png');

    background-size: cover;

    background-position: center;

    color: #fff;

    padding: 120px 20px;

    text-align: center;

}



section {

    padding: 80px 20px;

    text-align: center;

}



.about,

.advantages {

    background-color: #ffffff;

}



.services {

    background-color: #f0f4f8;

    display: flex;

    flex-direction: column;

    align-items: center;

    /* --- DODANE: wyśrodkowanie tekstu w usługach --- */

    text-align: center;

}



/* Usługi poza sliderem */

.services .service:not(.gallery-slider) {

    margin: 0 auto 40px auto;

    max-width: 600px;

}



.services .service:not(.gallery-slider) img {

    width: 100%;

    max-width: 600px;

    height: auto;

    object-fit: cover;

    display: block;

    margin: 0 auto;

}



.advantages {

    background-color: #e2e8f0;

}



.advantages li {

    opacity: 0;

    transform: translateX(-40px);

}



.gallery {

    background-color: #f7fafc;

}



.contact {

    background-color: #2d3748;

    color: #fff;

}



section img {

    width: 100%;

    max-width: 600px;

    height: auto;

    border-radius: 8px;

    margin: 15px auto;

    display: block;

}



.service {

    margin-bottom: 30px;

}



/* Footer */

footer {

    background-color: #1a202c;

    color: #fff;

    padding: 15px;

    text-align: center;

}



/* Locations */

.locations-container {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    align-items: center;

    margin-top: 20px;

}



.location {

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 5px;

    padding: 8px 16px;

    background-color: #f1f1f1;

    border-radius: 20px;

    font-weight: 500;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s, box-shadow 0.3s;

}



.location:hover {

    transform: translateY(-3px);

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);

}



.locations h2 {

    text-align: center;

    margin-bottom: 10px;

}



/* Poprawki designu */

section p,

section li {

    text-align: justify;

    line-height: 1.7;

    max-width: 800px;

    margin-left: auto;

    margin-right: auto;

}



.services p {

    text-align: center;

}



.advantages ul {

    list-style: none;

    padding-left: 0;

}



.advantages li {

    margin-bottom: 15px;

    position: relative;

    padding-left: 20px;

}



.advantages li::before {

    content: '✔️';

    position: absolute;

    left: 0;

    top: 0;

    color: #2d3748;

}



section h2 {

    margin-bottom: 20px;

}



section img {

    margin-bottom: 25px;

}



/* Efekt blur dla .about */

.about p {

    filter: blur(5px);

}



.mail-button {

    position: fixed;

    bottom: 20px;

    right: 20px;

    background-color: #007bff;

    color: #fff;

    padding: 12px 20px;

    text-decoration: none;

    border-radius: 25px;

    font-weight: 500;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

    transition: transform 0.3s ease;

    z-index: 1000;

}



.mail-button:hover {

    transform: scale(1.1);

}



/* Lightbox */

.lightbox {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-color: rgba(0, 0, 0, 0.8);

    display: none;

    justify-content: center;

    align-items: center;

    z-index: 9999;

}



.lightbox-img {

    max-width: 90%;

    max-height: 80%;

    border-radius: 8px;

}



.lightbox-close {

    position: absolute;

    top: 40px;

    right: 60px;

    font-size: 2.5rem;

    color: #fff;

    cursor: pointer;

}



.image-gallery {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;

    justify-items: center;

    /* Dodane: zaokrąglenie wszystkich rogów kontenera galerii */

    border-radius: 8px;

    overflow: hidden;

}



.image-gallery img {

    width: 100%;

    max-width: 600px;

    max-height: 400px;

    height: auto;

    object-fit: cover;

    border-radius: 8px;

    cursor: pointer;

}





/* Responsywność galerii realizacji */

@media (max-width: 992px) {

    .image-gallery {

        grid-template-columns: repeat(2, 1fr);

    }

}



@media (max-width: 600px) {

    .image-gallery {

        grid-template-columns: 1fr;

    }

    /* --- DODANE: zwiększenie wysokości zdjęć w realizacjach na telefonie --- */

    .image-gallery img {

        height: 500px;

        max-height: none;

    }

}



/* Kalkulator */

.calculator {

    background-color: #ffffff;

    padding: 80px 20px;

    text-align: center;

}



.calc-container {

    max-width: 600px;

    margin: 0 auto;

    text-align: left;

}



.calc-container label {

    display: block;

    margin-top: 20px;

    font-weight: 500;

}



.calc-container select,

.calc-container input {

    width: 100%;

    padding: 8px;

    margin-top: 5px;

    border-radius: 4px;

    border: 1px solid #ccc;

}



.result {

    margin-top: 30px;

    font-size: 1.2rem;

    font-weight: 600;

    display: flex;

    gap: 8px;

    align-items: center;

    justify-content: center;

}



/* Slider galerii (usługi) – poprawki dotyczące wielkości i responsywności */

.gallery-slider {

    margin: 0 auto 40px auto;

    max-width: 600px;

    width: 100%;

    text-align: center;

    position: relative;

}



.gallery-slider .slider-container {

    width: 100%;

    max-width: 600px;

    /* Używamy aspect-ratio aby zachować proporcje 600x400 (3:2) */

    aspect-ratio: 3 / 2;

    margin: 0 auto;

    overflow: hidden;

    position: relative;

    border-radius: 8px;  /* Dodane: zaokrąglenie rogów całego slidera */

}



.gallery-slider .slider-track {

    display: flex;

    transition: transform 0.3s ease;

    touch-action: pan-y;

}



.gallery-slider .slide {

    flex: 0 0 100%;

    display: flex;

    justify-content: center;

    align-items: center;

}



.gallery-slider .slide img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    margin: 0 auto;

}



/* Przyciski slidera */

.slider-btn {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    background-color: rgba(0,0,0,0.5);

    color: #fff;

    border: none;

    font-size: 1.5rem;

    padding: 0.5em 0.7em;

    cursor: pointer;

    z-index: 10;

}



.slider-btn-prev {

    left: 80px;

}



.slider-btn-next {

    right: 80px;

}



.slider-btn:hover {

    background-color: rgba(0,0,0,0.7);

}

.slider-btn:focus {

    outline: none;

}



/* Instrukcja slidera – na urządzeniach dotykowych wyświetlana */

.slider-instruction {

    display: none;

    text-align: center;

    margin-top: 10px;

}



@media (hover: none) and (pointer: coarse) {

    .slider-btn {

        display: none !important;

    }

    .slider-instruction {

        display: block !important;

    }

}



/* Nagłówek slidera (Próbki) */

.gallery-heading {

    margin-top: 5px;

    margin-bottom: 0;

}



/* Małe ekrany – ukryj nagłówek "Próbki" */

@media (max-width: 768px) {

    .gallery-heading {

        display: none;

    }

}

/* Chat Button Styling */
.copilot-button {
    position: fixed;
    bottom: 20px;
    right: 195px; /* lub inna wartość, która nie koliduje z przyciskiem mailowym */
    background-color: #0078d4;
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 10px 15px; /* dostosuj padding, by przycisk wyglądał dobrze z tekstem */
    font-size: 16px; /* większa czcionka na desktop */
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.desktop-text {
    display: none;
  }


.mobile-icon {
    display: inline;
    font-size: 24px;
  }
  
  /* Chat Container (holds the Copilot iframe) */
  #copilot-chat-container {
    position: fixed;
    bottom: 80px; /* Positioned above the buttons */
    right: 20px;
    width: 320px;
    height: 400px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: none; /* Initially hidden */
    z-index: 1000;
  }
  
  /* Show chat container when active (toggle by adding .open) */
  #copilot-chat-container.open {
    display: block;
  }
  
  /* Close button inside the chat container */
  #copilot-chat-container .close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #888;
    z-index: 1100;
  }
  
  /* Ensure the iframe fills the chat container */
  #copilot-chat-container iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
  
  @media (min-width: 768px) {
    .copilot-button {
      border-radius: 50px;
      width: auto;    /* zamiast stałej szerokości */
      height: auto;   /* zamiast stałej wysokości */
      padding: 12px 20px;
    }
    .desktop-text {
      display: inline;
    }
    .mobile-icon {
      display: none;
    }
  }
  

