
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #ffffff;
    isolation: isolate;
}




/* =========================
   MAIN IMAGE
========================= */

.hero__main-image-item {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;

    width: 72%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    opacity: 0;

    animation:
        heroImageCrossfade 12s ease-in-out infinite,
        heroImageZoom 12s ease-in-out infinite;
}

/* ZDJĘCIE 1 */
.hero__main-image-item--1 {
    opacity: 1;
    animation-delay: 0s, 0s;
}

/* ZDJĘCIE 2 */
.hero__main-image-item--2 {
    animation-delay: -6s, -6s;
}

@keyframes heroImageCrossfade {

    0% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    75% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes heroImageZoom {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.hero__main-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.65) 12%,
        rgba(255, 255, 255, 0.2) 28%,
        rgba(255, 255, 255, 0) 45%
    );
    pointer-events: none;
    z-index: 2;
}

/* =========================
   WHITE SHAPE
========================= */

.hero__shape {
    position: absolute;
    inset: 0;

    width: 62%;
    height: 100%;

    z-index: 3;

    pointer-events: none;
}

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

.hero__container {
    position: relative;
    z-index: 10;

    width: 100%;
    max-width: none;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 200px clamp(40px, 6vw, 100px) 70px;
}

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

.hero__content {
    width: 50%;
    max-width: 620px;
    padding-bottom: 100px;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 24px;

    margin: 0 0 24px;

    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: #bbbbbb;
    font-family: 'Fredoka', Arial, Helvetica, sans-serif;
}

.hero__eyebrow-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero__eyebrow-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    background: #e52d35;
    border-radius: 50%;
}

.hero__title {
    max-width: 620px;

    margin: 0 0 30px;

    font-size: clamp(52px, 5vw, 76px);
    line-height: 0.98;

    font-weight: 400;
    letter-spacing: -0.05em;

    color: #ffffff;
}

.hero__title strong {
    display: block;
    font-weight: 700;
}

.hero__description {
    max-width: 560px;

    margin: 0 0 36px;

    font-size: 20px;
    line-height: 1.65;

    color: #e4e4e4;
}

/* =========================
   BUTTON
========================= */

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}


.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: fit-content;
    min-height: 56px;

    padding: 0 24px;

    background: #E20115;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;

border-radius: 999px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.hero__button--secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #e52d35;
}

.hero__button--secondary:hover {
    background: #ffffff!important;
    color: #e52d35;
}

.hero__button:hover {
    background: #c9232b;
    transform: translateY(-2px);
}

.hero__button span:last-child {
    font-size: 20px;
    line-height: 1;

    transition: transform 0.2s ease;
}

.hero__button:hover span:last-child {
    transform: translateX(5px);
}

.hero__button img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease;
}

.hero__button:hover img {
    transform: translateX(5px);
}

.hero__button--secondary img {
    filter: brightness(0) invert(1);
}

.hero__button--secondary:hover img {
    filter: brightness(0) saturate(100%)             invert(27%) sepia(91%)             saturate(2500%)             hue-rotate(347deg)             brightness(92%)             contrast(90%);
}

/* =========================
   SECOND IMAGE BACKGROUND SHAPE
========================= */

/* .hero::after {
    content: "";

    position: absolute;

    right: -12%;
    bottom: -27%;

    width: 37%;
    height: 45%;

    background: #f7f7f7!important;

    border-radius: 58% 0 0 0;

    z-index: 3;

    pointer-events: none;
} */

/* =========================
   ROTATING SNOWFLAKE
========================= */

.hero__second-image {
    position: absolute;

    right: 7%;
    bottom: 4%;

    width: 210px;
    height: 210px;

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

    background: #E20115;

    border-radius: 50%;

    z-index: 15;

    overflow: hidden;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.hero__message {
    position: absolute;
    right: 20%;
    bottom: 8%;
    z-index: 16;
    width: 190px;
    padding: 18px 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-align: left;
}

.hero__message::before,
.hero__message::after {
    content: "";
    display: block;
    width: 40%;
    height: 2px;
    background: #e52d35;
}

.hero__message::before {
    margin-bottom: 18px;
}

.hero__message::after {
    margin-top: 18px;
}

.hero__snowflake {
    display: block;

    width: 105px;
    height: 105px;

    background-color: #ffffff;

    -webkit-mask-image: url("../images/kaldo-sniezynka.svg");
    mask-image: url("../images/kaldo-sniezynka.svg");

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;

    animation: kaldoSnowflakeRotate 10s linear infinite;
}

@keyframes kaldoSnowflakeRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================
   TECHNICAL DETAIL
========================= */

.hero__technical-detail {
    position: absolute;
    left: clamp(40px, 6vw, 100px);
    bottom: 34px;
    z-index: 12;

    display: flex;
    align-items: center;
    gap: 18px;

    color: #171717;
}

.hero__technical-line {
    position: relative;

    width: 70px;
    height: 2px;

    background: #e52d35;
    overflow: hidden;
}

.hero__technical-line::after {
    content: "";

    position: absolute;
    top: 0;
    left: -30px;

    width: 30px;
    height: 100%;

    background: #ffffff;

    animation: technicalLineWave 2.5s ease-in-out infinite;
}

@keyframes technicalLineWave {

    0% {
        left: -30px;
    }

    50% {
        left: 70px;
    }

    100% {
        left: 70px;
    }

}

.hero__technical-text {
    font-size: 9px;
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: #a5a5a5;
    opacity: 0.7;
}

/* =========================
   HERO SCROLL INDICATOR
========================= */

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 20;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    color: #ffffff;
}

.hero__scroll-mouse {
    position: relative;

    width: 32px;
    height: 44px;

    border: 1.5px solid #ffffff;
    border-radius: 12px;

    overflow: hidden;
}

.hero__scroll-dot {
    position: absolute;
    top: 7px;
    left: 50%;

    width: 4px;
    height: 9px;

    background: #e52d35;
    border-radius: 999px;

    transform: translateX(-50%);

    animation: heroScroll 1.8s ease-in-out infinite;
}

@keyframes heroScroll {

    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    70% {
        transform: translate(-50%, 11px);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 17px);
        opacity: 0;
    }

}

@media (min-width: 1400px) and (max-width: 1599px) {
    .hero__main-image-item {
    object-position: 80% center;
}
}

@media (min-width: 1200px) and (max-width: 1399px) {

    .hero__main-image-item {
    object-position: 80% center;
}

.hero__shape {

    width: 72%;
}

.hero__message {
    right: 25%;
}

}

/* =========================================================
   HERO — TABLET / SMALL LAPTOP
   768px — 1100px
========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {

    /* =====================================================
       GRANATOWA CZĘŚĆ
    ===================================================== */

    .hero__shape {
        width: 82%;
    }


    /* =====================================================
       ZDJĘCIE — ZAKOTWICZONE DO PRAWEJ
    ===================================================== */

    .hero__main-image {
        width: 78%;
        right: 0;
    }

    .hero__main-image-item {
    object-position: 70% center;
}


    /* =====================================================
       TREŚĆ
    ===================================================== */

    .hero__container {
        padding-left: 54px;
        padding-right: 40px;
    }

    .hero__message {

        display: none;
    }
}

/* =========================================================
   HERO — MOBILE LAYOUT
========================================================= */

@media (max-width: 767px) {

    .hero {
        display: flex;
        flex-direction: column;

        min-height: 100svh;

        background: #162540;
        overflow: hidden;
    }

    .hero__content {
    width: 100%;
    max-width: none;
    padding-bottom: 0;
}


    /* =====================================================
       ZDJĘCIE — GÓRA
    ===================================================== */

    .hero__main-image {
        position: relative;

        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        width: 100%;
        height: 42svh;

        flex: 0 0 42svh;

        overflow: hidden;

        z-index: 1;
    }

    .hero__main-image-item {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }


    /* =====================================================
       USUWAMY DESKTOPOWĄ ORGANICZNĄ MASKĘ
    ===================================================== */

    .hero__shape {
        display: none;
    }


    /* =====================================================
       KRATKA — NA RAZIE WYŁĄCZONA
    ===================================================== */

    .hero__grid {
        display: none;
    }


    /* =====================================================
       TREŚĆ — DÓŁ
    ===================================================== */

    .hero__container {
        position: relative;

        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        width: 100%;
        min-height: auto;

        flex: 1;

        padding: 48px 38px 55px;

        background: #162540;

        justify-content: flex-start;

        z-index: 10;
    }

    .hero__title {
    width: 100%;
    max-width: none;

    font-size: clamp(40px, 10.5vw, 48px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero__description {
    width: 100%;
    max-width: none;

    font-size: 15px;
    line-height: 1.65;
}

/* =====================================================
   HERO — MOBILE DECORATIONS
===================================================== */

.hero__message {
    display: none;
}

.hero__scroll {
    display: none;
}


/* Mała śnieżynka obok nagłówka */

.hero__second-image {
    width: 72px;
    height: 72px;

    top: 245px;
    right: 24px;
    left: auto;

    transform: none;

    opacity: 1;
}

.hero__snowflake {
    width: 48px;
    height: 48px;
}

.hero__technical-detail {
    display: none;
}

}



