            html {
            scroll-behavior: smooth;
        }

/* Globalne ustawienia */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    color: white;
    background-color: #3a3a3a;
}



/* HEADER — pełna wysokość na górze, zmniejsza się po scrollowaniu */
header {
    background-color: #3a3a3a;
    padding: 15px 20px; /* Poprawione paddingi */
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Pełna szerokość, ale bez przesunięcia */
    max-width: 100vw; /* Ograniczenie do szerokości viewportu */
    z-index: 9999; /* Header nad wszystkim */
    transition: all 0.3s ease;
    height: 80px;
    box-sizing: border-box; /* Poprawia przeliczanie paddingów */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Header po scrollowaniu — mniejsza wysokość */
header.scrolled {
    height: 55px;
    padding: 10px 20px;
}

/* Logo — dostosowanie wysokości */
.logo {
    height: 60px;
    transition: height 0.3s ease;
}

header.scrolled .logo {
    height: 45px;
}

/* === HAMBURGER === */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 10000; /* Nad headerem! */
    position: absolute;
    top: 50%; 
    right: 10px; /* Wyrównanie do prawej */
    transform: translateY(-50%);
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* === NAV LIST === */
.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

/* === MOBILKI === */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 55px; /* Dopasowanie do wysokości headera */
        left: 0;
        background-color: rgba(0, 0, 0, 0.9);
        width: 100%;
        padding: 20px;
        z-index: 998;
    }

    .nav-list.active {
        display: flex;
    }

    .hamburger {
        display: flex;
        right: 10px;
    }

    /* Animacja hamburgera po kliknięciu */
    .hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* === HERO === */
.hero {
    position: relative;
    background: url('/images/dachplaski.jpg') no-repeat center center / cover;
    width: 100%; 
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
    box-sizing: border-box;
    margin-top: 80px;
    z-index: 1;
    color: white;
    overflow: hidden; /* WAŻNE: żeby ::before nie wyciekało */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* ściemnienie */
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1; /* tekst nad przyciemnieniem */
}

.hero h1 {
    font-size: clamp(18px, 4vw, 38px); /* Elastyczna wielkość czcionki */
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.hero h2, .hero h3 {
    font-size: clamp(16px, 3vw, 28px);
    color: #ffffff;
    margin-bottom: 5px;
}

.hero p {
    font-size: clamp(14px, 2vw, 20px);
    color: #ffffff;
    line-height: 1.3;
    margin: 5px 0;
}

/* === BUTTON === */
.btn {
    font-size: clamp(12px, 1.5vw, 16px);
    padding: clamp(6px, 1vw, 12px) clamp(12px, 2vw, 20px);
    background-color: #c19957;
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    background-color: #a18045;
    transform: scale(1.05);
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 15px 10px;
    }

    .hero h1 {
        font-size: clamp(14px, 4vw, 28px);
        line-height: 1.1;
    }

    .hero p {
        font-size: clamp(10px, 3vw, 16px);
        line-height: 1.2;
    }

    .btn {
        font-size: clamp(10px, 2.5vw, 14px);
        padding: clamp(4px, 1vw, 10px) clamp(8px, 2vw, 14px);
    }
}

@media (max-width: 480px) {
    .hero {
        height: auto;
        padding: 10px 5px;
    }

    .hero h1 {
        font-size: clamp(12px, 5vw, 24px);
        line-height: 1.1;
    }

    .hero p {
        font-size: clamp(10px, 4vw, 14px);
        line-height: 1.1;
    }

    .btn {
        font-size: clamp(10px, 4vw, 12px);
        padding: clamp(3px, 1vw, 6px) clamp(6px, 2vw, 12px);
    }
}







/* Black Section */
.black-section {
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 5%; /* Szerszy layout na PC */
    gap: 20px;
}

.black-section .text {
    flex: 1;
    padding-right: 20px;
}

.black-section h1 {
    font-size: 36px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.black-section p {
    font-size: 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.black-section img {
    width: min(520px, 40vw);
    height: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 1.5s ease, opacity 1.5s ease;
}

/* Media wrapper dla obrazka + etykiety "Nowość" */
.black-section .product-media{
    position: relative;
    display:flex;
    align-items:flex-start;
    justify-content:flex-end;
    flex: 0 0 auto;
}
.black-section .product-media .label-new{
    position:absolute;
    top: 10px;
    right: 10px;
    margin:0;
}

.black-section img.visible {
    transform: translateX(0);
    opacity: 1;
}

/* Box Section */
.box-section {
    background-color: #ffffff;
    color: #1a1a1a;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: max(20px, calc((100% - 1000px) / 2 + 20px));
    padding-right: max(20px, calc((100% - 1000px) / 2 + 20px));
    box-sizing: border-box;
}

.box-section h1,
.box-section h2 {
    font-size: 36px;
    color: #1a1a1a;
}

.box-section p {
    font-size: 20px;
}

.boxes {
    display: flex;
    justify-content: space-evenly; /* Równomierne rozmieszczenie */
    gap: 15px;
}

.box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 20px;
    width: 300px; /* Zwiększona szerokość boxów */
    text-align: center;
    border-radius: 12px;
}

.box h2 {
    font-size: 24px;
    color: #1a1a1a;
}

.box p {
    font-size: 18px;
    color: #4a4a4a;
}

/* Order Section */
.order-selection {
    background-color: #1a1a1a;
    padding: 40px 10%; /* Zwężenie sekcji */
    color: white;
}

.order-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.image-container {
    flex: 0 0 auto;
  
    display: flex;
    
}

.image-container img {
    max-width: 700px;
    width: 100%; /* Obraz dostosowuje się do szerokości kontenera */
    height: auto;
}

/* Media query dla ekranów o szerokości mniejszej niż 768px */
@media (max-width: 768px) {
    .image-container img {
        max-width: 500px; /* Zmniejszenie maksymalnej szerokości obrazu */
    }
}

/* Media query dla ekranów o szerokości mniejszej niż 480px */
@media (max-width: 480px) {
    .image-container img {
        max-width: 300px; /* Dalsze zmniejszenie maksymalnej szerokości obrazu */
    }
}

.order-options {
    text-align: left;
    max-width: 400px; /* Zmniejszenie szerokości */
    margin-left: auto;
}

.order-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.select-btn {
    background-color: black;
    border: none;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.select-btn.selected {
    background-color: #c19957;
    color: white;
}

/* Contact Section */
.contact-section {
    background-color: #ffffff;
    display: flex;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: max(20px, calc((100% - 1000px) / 2 + 20px));
    padding-right: max(20px, calc((100% - 1000px) / 2 + 20px));
    box-sizing: border-box;
    gap: 20px;
}

.contact-form {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 30px;
    width: 45%;
    color: #1a1a1a;
}

.contact-form h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.contact-form p {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #4a4a4a;
}

.contact-form input, .contact-form textarea {
    width: calc(100% - 20px);
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #d8d8d4;
    background-color: #f7f7f5;
    color: #1a1a1a;
    font-size: 16px;
}

.contact-form textarea {
    resize: none;
}

.contact-form input[type="checkbox"] {
    width: auto;
}

.contact-form button {
    background-color: #c19957;
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.contact-form button:hover {
    transform: scale(1.05);
    background-color: #a18045;
}

.company-info {
    flex: 1;
    padding-left: 120px;
    color: #1a1a1a;
}

.company-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.company-info p, .company-info a {
    font-size: 18px;
    color: #1a1a1a;
    text-decoration: none;
}

.company-info a:hover {
    text-decoration: underline;
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


#quantity {
    width: 80px;
    padding: 0;
    font-size: 16px;
    text-align: center;
    background-color: black; /* Czarne tło */
    color: white; /* Biały tekst */
    border: none; /* Bez ramki */
    height: 38px; /* Dopasowana wysokość */
    border-radius: 5px;
    transition: transform 0.2s ease;
    line-height: 38px; /* Wyrównanie tekstu */
}

.order-selection .order-buttons .add-to-order-btn {
    height: 38px; /* Dopasowana wysokość do #quantity */
    padding: 0 20px; /* Zachowanie marginesów wewnętrznych */
    font-size: 16px;
    background-color: #c19957;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 5px; /* Dopasowane zaokrąglenie */
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-selection .order-buttons .add-to-order-btn:hover {
    background-color: #a18045; /* Subtelny efekt hover */
    transform: scale(1.05);
}










/* TABLETY (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 20px;
    }
    .black-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }
    .black-section .text {
        padding-right: 0;
    }
    .black-section img {
        width: 80%;
        margin-top: 20px;
    }
    .boxes {
        flex-wrap: wrap;
        justify-content: center;
    }
    .box {
        width: 45%;
    }
    .order-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .image-container {
        margin-top: 20px;
        width: 70%;
    }
    .order-options {
        margin-left: 0;
        max-width: 100%;
    }
    .contact-section {
        flex-direction: column;
        align-items: center;
    }
    .contact-form {
        width: 100%;
        max-width: 500px;
    }
    .company-info {
        padding-left: 0;
        text-align: center;
    }
}

/* TELEFONY (max-width: 768px) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }
    .btn {
        font-size: 16px;
        padding: 8px 15px;
    }
    .black-section {
        padding: 30px 5%;
    }
    .black-section img {
        width: 100%;
    }
    .boxes {
        flex-direction: column;
        align-items: center;
    }
    .box {
        width: 90%;
        margin-bottom: 10px;
    }
    .order-selection {
        padding: 30px 5%;
    }
    .image-container {
        width: 100%;
    }
    .contact-form {
        padding: 20px;
    }
    .contact-form input, .contact-form textarea {
        font-size: 14px;
    }
    .contact-form button {
        font-size: 16px;
    }
    .company-info {
        font-size: 14px;
    }
}

/* MAŁE TELEFONY (max-width: 480px) */
@media (max-width: 480px) {
    .hero {
        height: 350px;
    }
    .hero h1 {
        font-size: 24px;
    }
    .hero p {
        font-size: 14px;
    }
    .btn {
        font-size: 14px;
        padding: 6px 12px;
    }
    .black-section {
        padding: 20px 5%;
    }
    .black-section h1 {
        font-size: 28px;
    }
    .black-section p {
        font-size: 16px;
    }
    .boxes {
        width: 100%;
    }
    .order-selection {
        padding: 20px;
    }
    .order-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .image-container {
        width: 100%;
        max-width: 300px;
    }
    .contact-form {
        padding: 15px;
    }
}

header nav {
    margin-left: auto;
    display: flex;
    gap: 20px;
}

header nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #c19957;
}

a {
    color: #c19957;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #a18045;
    text-decoration: underline;
}



/* Ograniczenie szerokości i wyrównanie tekstu — spójne z .container na stronach produktowych (product-light.css) */
.container {
    max-width: 1000px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* Sekcja produktu na pełną szerokość */
.product-description {
    background-color: #ffffff;
    padding: 40px 0;
}

.product-description h2,
.product-description h3 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.product-description p {
    font-size: 18px;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Lista z punktorami (trójkąt) */
.product-description ul {
    list-style: none;
    padding: 0;
}

.product-description ul li {
    padding-left: 30px;
    margin-bottom: 10px;
    position: relative;
    font-size: 18px;
    color: #4a4a4a;
}

.product-description ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #c19957;
}

/* Sekcja FAQ */
.faq-section {
    background-color: #ffffff;
    padding: 40px 0;
}

.faq-section h2 {
    color: #1a1a1a;
}

.footer-description {
    background-color: #ffffff;
    color: #4a4a4a;
    padding: 30px 5%;
    text-align: center;
}

.footer-description a {
    color: #1a1a1a;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h3 {
    font-size: 20px;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.faq-item h3::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-right: 12px;
    border-right: 1.5px solid #c19957;
    border-bottom: 1.5px solid #c19957;
    transform: rotate(-45deg);
    transition: transform .2s ease;
}

.faq-item.active h3::before {
    transform: rotate(45deg);
}

.faq-item p {
    font-size: 16px;
    color: #4a4a4a;
    padding-left: 28px;
    display: none;
}

.faq-item.active p {
    display: block;
}

/* Media query dla ekranów mobilnych */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }

    .product-description h2,
    .faq-section h2 {
        font-size: 24px;
    }

    .product-description ul li {
        font-size: 16px;
    }

    .faq-item h3 {
        font-size: 18px;
    }

    .faq-item p {
        font-size: 14px;
    }
}

.label-new {
    background-color: #c19957;
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 6px 12px;
    display: inline-block;
    margin-bottom: 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInSlide 1s ease forwards;
    opacity: 0;
    transform: translateY(-20px);
}

.image-animation.visible + .label-new,
.label-new.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}