:root {
    --main: #63134A;
    --cream: #f8f2e8;
    --gold: #d4af37;
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;

    width: 100%;
    max-width: 100%;

    font-family: 'Cormorant Garamond', serif;

    background: #f8f2e8;
    color: #333;

    overflow-x: hidden;
}

img {
    max-width: 100%;
}


/* =========================================================
   GŁÓWNY KONTENER
   ========================================================= */

.page-wrapper {
    width: 100%;
    max-width: 1300px;

    margin: 0 auto;

    background: #63134A;

    min-height: 100vh;

    box-shadow: 0 0 40px rgba(0,0,0,.25);

    overflow-x: hidden;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: 90%;
    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    display: flex;

    flex-direction: column;

    align-items: center;

    width: 100%;

    padding: 25px 5%;

    background: #63134A;

    box-shadow: 0 3px 15px #000000;
}


.header-container {
    display: flex;

    flex-direction: column;

    align-items: center;

    width: 100%;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    display: flex;

    justify-content: center;
    align-items: center;

    max-width: 100%;
}

.logo img {
    display: block;

    width: 400px;
    max-width: 100%;

    height: auto;
}


/* =========================================================
   MENU
   ========================================================= */

nav {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 100px;

    margin-top: 20px;

    width: 100%;
}

nav a {
    text-decoration: none;

    color: #f4dd2d;

    font-weight: bold;

    font-size: 20px;

    white-space: nowrap;

    transition: .3s ease;
}

nav a:hover {
    color: var(--main);
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;

    position: absolute;

    top: 100%;
    left: 50%;

    transform: translateX(-50%);

    background: #f8f2e8;

    min-width: 220px;

    border-radius: 15px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,.2);

    z-index: 999;
}

.dropdown-content a {
    display: block;

    padding: 15px 20px;

    color: #63134A;

    text-decoration: none;

    font-weight: 600;

    transition: .3s;
}

.dropdown-content a:hover {
    background: #63134A;

    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* =========================================================
   ODSTĘP
   ========================================================= */

.intro-space {
    height: 0;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    width: 100%;

    height: 600px;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    color: white;
}

.hero-slider {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.hero-slider img {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: cover;

    opacity: 0;

    transition: opacity 2s ease;
}

.hero-slider img.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(99,19,74,.55);

    z-index: 1;
}

.hero-content {
    position: relative;

    z-index: 2;

    width: 90%;

    max-width: 1000px;
}

.hero h1 {
    font-size: 55px;

    margin: 0 0 20px;
}

.hero p {
    font-size: 22px;

    margin: 0;
}


/* =========================================================
   OGÓLNE SEKCJE
   ========================================================= */

section {
    padding: 70px 12%;

    text-align: center;
}


/* =========================================================
   PRODUKTY
   ========================================================= */

.products {
    display: flex;

    justify-content: center;

    gap: 30px;

    flex-wrap: wrap;
}

.product {
    width: 300px;

    background: #fffaf2;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 10px 30px #ddd;
}

.product img {
    width: 100%;
    height: 250px;

    object-fit: cover;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about {
    background: #63134A;

    color: white;
}


/* =========================================================
   MARKI
   ========================================================= */

.brand-slider {
    overflow: hidden;

    width: 100%;
}

.brands {
    display: flex;

    gap: 50px;

    animation: move 12s linear infinite;

    justify-content: center;
    align-items: center;

    max-width: 100%;

    width: max-content;
}

.brands img {
    width: 150px;
    height: 80px;

    object-fit: contain;

    flex-shrink: 0;
}

@keyframes move {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


/* =========================================================
   STOPKA
   ========================================================= */

footer {
    background: #222;

    color: white;

    padding: 30px;

    text-align: center;
}


/* =========================================================
   ANIMACJE REVEAL
   ========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(60px) scale(.95);

    filter: blur(20px);

    transition:
        opacity 1.4s ease,
        transform 1.4s ease,
        filter 1.4s ease;
}

.reveal.active {
    opacity: 1;

    transform: translateY(0) scale(1);

    filter: blur(0);
}


/* =========================================================
   OPISY MAREK
   ========================================================= */

.brand-info {
    max-width: 1000px;

    margin: 80px auto 0;

    display: flex;

    flex-direction: column;

    gap: 50px;
}

.brand-box {
    background: #fffaf2;

    padding: 50px;

    border-radius: 35px;

    border: 1px solid rgba(99,19,74,.08);

    box-shadow:
        0 20px 50px rgba(0,0,0,.08),
        0 5px 15px rgba(0,0,0,.05);

    position: relative;

    text-align: center;

    transition: .4s;
}

.brand-box::before {
    content: "";

    position: absolute;

    top: 12px;
    left: 12px;

    width: 100%;
    height: 100%;

    border-radius: 35px;

    background: rgba(99,19,74,.05);

    z-index: -1;
}

.brand-box:hover {
    transform: translateY(-8px);
}

.brand-box h3 {
    font-size: 42px;

    color: #63134A;

    margin-bottom: 20px;

    letter-spacing: 2px;
}

.brand-box h4 {
    font-size: 24px;

    color: #b78a3b;

    font-weight: 600;

    margin-bottom: 30px;

    line-height: 1.5;
}

.brand-box p {
    font-size: 18px;

    line-height: 1.9;

    color: #555;

    max-width: 850px;

    margin: 0 auto;
}


/* =========================================================
   TYPOGRAFIA
   ========================================================= */

h1,
h2,
h3,
h4 {
    font-family: 'Cormorant Garamond', serif;

    font-weight: 600;

    letter-spacing: 1px;
}


/* =========================================================
   CAROUSEL 3D
   ========================================================= */

.carousel3d {
    position: relative;

    width: 900px;
    max-width: 100%;

    height: 450px;

    margin: 80px auto;

    overflow: hidden;
}

.card {
    position: absolute;

    width: 350px;
    height: 220px;

    left: 50%;
    top: 76%;

    transform-style: preserve-3d;

    max-width: calc(100% - 30px);
}

.card img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 20px;

    border: 3px solid #d4af37;

    box-shadow:
        0 20px 40px rgba(0,0,0,.35);
}

.card1 {
    animation: slide1 6s infinite;
}

.card2 {
    animation: slide2 6s infinite;
}

.card3 {
    animation: slide3 6s infinite;
}


/* =========================================================
   ANIMACJE KART
   ========================================================= */

@keyframes slide1 {

    0%,30% {
        transform: translate(-50%,-50%) scale(1);

        z-index: 3;

        opacity: 1;
    }

    33%,63% {
        transform: translate(-180%,-50%) scale(.75);

        z-index: 1;

        opacity: .5;
    }

    66%,100% {
        transform: translate(80%,-50%) scale(.75);

        z-index: 2;

        opacity: .5;
    }

}

@keyframes slide2 {

    0%,30% {
        transform: translate(80%,-50%) scale(.75);

        z-index: 2;

        opacity: .5;
    }

    33%,63% {
        transform: translate(-50%,-50%) scale(1);

        z-index: 3;

        opacity: 1;
    }

    66%,100% {
        transform: translate(-180%,-50%) scale(.75);

        z-index: 1;

        opacity: .5;
    }

}

@keyframes slide3 {

    0%,30% {
        transform: translate(-180%,-50%) scale(.75);

        z-index: 1;

        opacity: .5;
    }

    33%,63% {
        transform: translate(80%,-50%) scale(.75);

        z-index: 2;

        opacity: .5;
    }

    66%,100% {
        transform: translate(-50%,-50%) scale(1);

        z-index: 3;

        opacity: 1;
    }

}


/* =========================================================
   TYTUŁ NASZE BRYLE
   ========================================================= */

.bryle-title {
    font-size: 110px;

    color: #d4af37;

    text-align: center;

    margin-top: 50px;

    margin-bottom: 180px;

    font-weight: 700;

    letter-spacing: 4px;

    text-transform: uppercase;

    text-shadow:
        0 0 20px rgba(212,175,55,.4),
        0 0 40px rgba(212,175,55,.2);
}


/* =========================================================
   KONTAKT
   ========================================================= */

.contact-box {
    background: #f2dec2;

    padding: 40px;

    border-radius: 25px;

    color: #333;

    max-width: 100%;

    overflow: hidden;
}

#kontakt h2 {
    color: #d4af37;
}


/* =========================================================
   INSTAGRAM
   ========================================================= */

.instagram-box {
    max-width: 100%;
}

.instagram-box img {
    display: block;

    width: 140px;
    max-width: 100%;

    height: auto;

    margin: 0 auto;

    background: transparent;

    padding: 8px;

    border-radius: 12px;

    box-shadow: 0 8px 20px rgba(0,0,0,.15);

    transition: .3s;
}


/* =========================================================
   MODAL
   ========================================================= */

.brands-modal {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,.8);

    z-index: 9999;
}

.brands-modal.active {
    display: flex;

    align-items: center;

    justify-content: center;
}

.brands-content {
    width: 90%;
    max-width: 1000px;

    background: #f8f2e8;

    padding: 40px;

    border-radius: 25px;

    text-align: center;
}

.close-modal {
    float: right;

    font-size: 40px;

    cursor: pointer;
}

.brands-content .brands {
    display: flex;

    gap: 80px;

    animation: move 12s linear infinite;

    justify-content: center;
}


/* =========================================================
   PRZEJŚCIA
   ========================================================= */

.gradient-transition {
    height: 350px;

    background: linear-gradient(
        to bottom,
        #63134A 0%,
        #63134A 15%,
        #722056 35%,
        #966b85 60%,
        #d5c5cf 85%,
        #f8f2e8 100%
    );
}

.brands-preview {
    background: #f8f2e8;

    color: #333;

    overflow: hidden;

    width: 100%;
}

.gradient-transition-bottom {
    height: 250px;

    background: linear-gradient(
        to bottom,
        #f8f2e8 0%,
        #d5c5cf 25%,
        #966b85 60%,
        #722056 85%,
        #63134A 100%
    );
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    nav {
        gap: 40px;
    }

    .carousel3d {
        width: 100%;

        max-width: 100%;

        overflow: hidden;
    }

    .bryle-title {
        font-size: 80px;

        margin-bottom: 150px;
    }

}


/* =========================================================
   TELEFONY
   ========================================================= */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;

        max-width: 100%;

        overflow-x: hidden !important;
    }


    .page-wrapper {
        width: 100%;

        max-width: 100%;

        overflow-x: hidden;
    }


    /* ---------- HEADER ---------- */

    header {
        width: 100%;

        padding: 20px 15px;
    }

    .header-container {
        width: 100%;
    }


    /* ---------- LOGO ---------- */

    .logo {
        width: 100%;

        padding: 0 10px;
    }

    .logo img {
        width: 300px;

        max-width: 85vw;

        height: auto;
    }


    /* ---------- MENU ---------- */

    nav {
        width: 100%;

        margin-top: 20px;

        display: flex;

        flex-wrap: wrap;

        justify-content: center;

        align-items: center;

        gap: 15px 25px;
    }

    nav a {
        font-size: 18px;

        white-space: nowrap;
    }


    /* ---------- DROPDOWN ---------- */

    .dropdown-content {
        position: absolute;

        left: 50%;

        top: calc(100% + 5px);

        min-width: 200px;

        max-width: calc(100vw - 30px);

        transform: translateX(-50%);
    }


    /* ---------- HERO ---------- */

    .hero {
        width: 100%;

        max-width: 100%;

        height: 75vh;

        min-height: 480px;

        padding: 20px;

        overflow: hidden;
    }

    .hero-slider {
        width: 100%;

        max-width: 100%;

        overflow: hidden;
    }

    .hero-slider img {
        width: 100%;

        height: 100%;

        max-width: none;

        object-fit: cover;

        object-position: center center;
    }

    .hero-content {
        width: 90%;

        max-width: 90vw;
    }

    .hero h1 {
        font-size: 35px;

        line-height: 1.1;
    }

    .hero p {
        font-size: 18px;
    }


    /* ---------- SEKCJE ---------- */

    section {
        width: 100%;

        max-width: 100%;

        padding: 60px 20px;

        overflow: hidden;
    }


    /* ---------- NASZE BRYLE ---------- */

    #oferta {
        width: 100%;

        max-width: 100%;

        overflow: hidden;
    }

    .carousel3d {
        position: relative;

        width: 100%;

        max-width: 100%;

        height: 390px;

        margin: 50px auto;

        overflow: hidden;
    }


    .bryle-title {
        position: relative;

        z-index: 5;

        width: 100%;

        max-width: 100%;

        font-size: clamp(42px, 13vw, 70px);

        line-height: 1;

        margin-top: 20px;

        margin-bottom: 150px;

        letter-spacing: 2px;

        white-space: nowrap;
    }


    /* ---------- KARTY ---------- */

    .card {
        width: min(300px, 78vw);

        height: min(190px, 49vw);

        max-width: 78vw;

        left: 50%;

        top: 72%;
    }

    .card img {
        width: 100%;

        height: 100%;

        max-width: 100%;

        object-fit: cover;
    }


    /*
       Na telefonie zmniejszamy przesunięcie kart.
       Dzięki temu żadna karta nie wychodzi
       absurdalnie daleko poza ekran.
    */

    @keyframes slide1 {

        0%,30% {
            transform: translate(-50%,-50%) scale(1);

            z-index: 3;

            opacity: 1;
        }

        33%,63% {
            transform: translate(-105%,-50%) scale(.72);

            z-index: 1;

            opacity: .5;
        }

        66%,100% {
            transform: translate(5%,-50%) scale(.72);

            z-index: 2;

            opacity: .5;
        }

    }


    @keyframes slide2 {

        0%,30% {
            transform: translate(5%,-50%) scale(.72);

            z-index: 2;

            opacity: .5;
        }

        33%,63% {
            transform: translate(-50%,-50%) scale(1);

            z-index: 3;

            opacity: 1;
        }

        66%,100% {
            transform: translate(-105%,-50%) scale(.72);

            z-index: 1;

            opacity: .5;
        }

    }


    @keyframes slide3 {

        0%,30% {
            transform: translate(-105%,-50%) scale(.72);

            z-index: 1;

            opacity: .5;
        }

        33%,63% {
            transform: translate(5%,-50%) scale(.72);

            z-index: 2;

            opacity: .5;
        }

        66%,100% {
            transform: translate(-50%,-50%) scale(1);

            z-index: 3;

            opacity: 1;
        }

    }


    /* ---------- PRZEJŚCIE ---------- */

    .gradient-transition {
        width: 100%;

        max-width: 100%;

        height: 220px;
    }


    /* ---------- MARKI ---------- */

    .brands-preview {
        width: 100%;

        max-width: 100%;

        overflow: hidden;

        padding-left: 0;
        padding-right: 0;
    }

    .brands-preview h2 {
        font-size: 45px;

        padding: 0 20px;
    }

.brands {
    display: flex;
    gap: 50px;

    animation: move 25s linear infinite;

    justify-content: flex-start;
    align-items: center;

    width: max-content;
}

    .brands img {
        width: 90px;

        height: 60px;

        flex: 0 0 90px;
    }


    /* ---------- DOLNE PRZEJŚCIE ---------- */

    .gradient-transition-bottom {
        width: 100%;

        max-width: 100%;

        height: 180px;
    }


    /* ---------- KONTAKT ---------- */

    .contact {
        width: 100%;

        max-width: 100%;

        padding: 60px 20px;
    }

    .contact .container {
        width: 100%;

        max-width: 100%;
    }

    .contact h2 {
        font-size: 50px;
    }

    .contact-box {
        width: 100%;

        max-width: 100%;

        padding: 30px 20px;

        border-radius: 20px;

        overflow: hidden;

        word-wrap: break-word;

        overflow-wrap: anywhere;
    }

    .contact-box p {
        font-size: 18px;

        line-height: 1.6;
    }


    /* ---------- INSTAGRAM ---------- */

    .instagram-box {
        width: 100%;

        max-width: 100%;

        overflow: hidden;
    }

    .instagram-box h3 {
        font-size: 25px;
    }

    .instagram-box img {
        width: 130px;

        max-width: 80vw;

        height: auto;
    }


    /* ---------- STOPKA ---------- */

    footer {
        width: 100%;

        max-width: 100%;

        padding: 25px 15px;
    }

}


/* =========================================================
   BARDZO MAŁE TELEFONY
   ========================================================= */

@media (max-width: 400px) {

    .logo img {
        width: 270px;

        max-width: 85vw;
    }

    nav {
        gap: 12px 18px;
    }

    nav a {
        font-size: 17px;
    }

    .hero {
        min-height: 430px;

        height: 70vh;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero p {
        font-size: 17px;
    }

    .carousel3d {
        height: 350px;
    }

    .bryle-title {
        font-size: 42px;

        margin-bottom: 130px;
    }

    .card {
        width: 75vw;

        height: 47vw;

        max-width: 290px;

        max-height: 180px;
    }

    .contact-box {
        padding: 25px 15px;
    }

}

