/* =========================================================
   OFFER
========================================================= */

.offer {
    position: relative;
    padding: 80px clamp(40px, 6vw, 100px);
    background: #162540;
    overflow: hidden;
}


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

.offer__header {
    position: relative;
    z-index: 2;

    max-width: 850px;
    margin-bottom: 70px;
}

.offer__eyebrow {
    position: relative;
    margin: 0 0 24px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: #e52d35;
}

.offer__title {
    margin: 0;

    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.02;
    font-weight: 400;
    letter-spacing: -0.045em;

    color: #ffffff;
}

.offer__title strong {
    font-weight: 700;
}


/* =========================================================
   GRID
========================================================= */

.offer__carousel {
    position: relative;
    z-index: 2;

    width: 100%;
    overflow: hidden;
}

.offer__track {
    display: flex;
    gap: 24px;

    width: 100%;

    overflow: visible;

    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.offer__card {
    position: relative;

    flex: 0 0 calc((100% - 48px) / 3);

    aspect-ratio: 1 / 1;

    overflow: hidden;
    border-radius: 24px;

    background: #0f1b2d;

}


/* =========================================================
   CARD
========================================================= */

.offer__card {
    position: relative;

    aspect-ratio: 1 / 1;

    overflow: hidden;
    border-radius: 24px;

    background: #0f1b2d;
}


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

.offer__card-image {
    position: absolute;
    inset: 0;

    z-index: 1;

    overflow: hidden;
}

.offer__card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.5s ease;
}


/* =========================================================
   DARK OVERLAY
========================================================= */

.offer__card-overlay {
    position: absolute;
    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            to top,
            rgba(22, 37, 64, 0.95) 0%,
            rgba(22, 37, 64, 0.45) 42%,
            rgba(22, 37, 64, 0.05) 75%
        );

    transition:
        background 0.5s ease;
}


/* =========================================================
   NUMBER
========================================================= */

.offer__card-number {
    position: absolute;

    top: 28px;
    left: 28px;

    z-index: 4;

    font-size: 24px;
    font-weight: 400;
    line-height: 1;

    letter-spacing: 0.12em;

    color: #ffffff;
}

.offer__card-number::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    vertical-align: middle;
    opacity: 1;

    background-image: url("../images/kaldo-sniezynka.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

     filter:
        brightness(0)
        saturate(100%)
        invert(27%)
        sepia(96%)
        saturate(3475%)
        hue-rotate(342deg)
        brightness(94%)
        contrast(94%);
}


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

.offer__card-content {
    position: absolute;

    left: 30px;
    right: 30px;
    bottom: 30px;

    z-index: 4;
}

.offer__card-title {
    margin: 0;

    font-size: clamp(24px, 2.1vw, 34px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.025em;

    color: #ffffff;

    transition:
        transform 0.45s ease;
}


/* =========================================================
   POINTS
========================================================= */

.offer__card-points {
    display: flex;
    flex-direction: column;
    gap: 12px;

    max-height: 0;
    margin-top: 0;

    overflow: hidden;

    opacity: 0;

    transform: translateY(15px);

    transition:
        max-height 0.5s ease,
        margin-top 0.5s ease,
        opacity 0.4s ease,
        transform 0.5s ease;
}

.offer__card-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.offer__card-point-line {
    flex: 0 0 auto;

    width: 18px;
    height: 1px;

    margin-top: 9px;

    background: #e52d35;
}

.offer__card-point p {
    margin: 0;

    font-size: 17px;
    line-height: 1.45;

    color: rgba(255, 255, 255, 0.85);
}


/* =========================================================
   HOVER
========================================================= */

.offer__card:hover .offer__card-image img {
    transform: scale(1.07);
    filter: brightness(0.72);
}

.offer__card:hover .offer__card-overlay {
    background:
        linear-gradient(
            to top,
            rgba(22, 37, 64, 0.98) 0%,
            rgba(22, 37, 64, 0.78) 55%,
            rgba(22, 37, 64, 0.35) 100%
        );
}

.offer__card:hover .offer__card-title {
    transform: translateY(-4px);
}

.offer__card:hover .offer__card-points {
    max-height: 180px;
    margin-top: 20px;

    opacity: 1;

    transform: translateY(0);
}

/* =========================================================
   OFFER NAVIGATION
========================================================= */

.offer__navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;

    margin-top: 28px;
}

.offer__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;

    background: transparent;

    color: #ffffff;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.offer__arrow:hover {
    background: #e52d35;
    border-color: #e52d35;

    transform: translateY(-2px);
}

.offer__arrow span {
    display: block;
}

.offer__dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 4px;
}

.offer__dot {
    width: 7px;
    height: 7px;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.3);

    cursor: pointer;

    transition:
        width 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}

.offer__dot.is-active {
    width: 22px;

    border-radius: 999px;

    background: #e52d35;
}

/* =========================================================
   OFFER BACKGROUND SHAPES
========================================================= */

.offer__background-shape {
    position: absolute;

    z-index: 0;

    pointer-events: none;

    background: #213555;

    opacity: 0.7;

    filter: blur(0.2px);
}


/* duża forma w lewym górnym obszarze */

.offer__background-shape--1 {
    width: 520px;
    height: 360px;

    top: -180px;
    left: -120px;

    border-radius:
        48% 52% 63% 37%
        / 42% 38% 62% 58%;

    transform: rotate(-18deg);
}


/* duża organiczna forma po prawej */

.offer__background-shape--2 {
    width: 620px;
    height: 420px;

    top: 25%;
    right: -280px;

    border-radius:
        58% 42% 36% 64%
        / 52% 45% 55% 48%;

    transform: rotate(22deg);
}


/* forma przy dolnej części sekcji */

.offer__background-shape--3 {
    width: 580px;
    height: 300px;

    bottom: -170px;
    left: 28%;

    border-radius:
        42% 58% 51% 49%
        / 62% 38% 62% 38%;

    transform: rotate(-12deg);
}

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

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

    .offer {
        padding: 110px 54px 100px;
    }


    /* =====================================================
       NAGŁÓWEK
    ===================================================== */

    .offer__header {
        margin-bottom: 50px;
    }

    .offer__title {
        max-width: 650px;

        font-size: clamp(46px, 5.5vw, 60px);
        line-height: 1.02;
    }


    /* =====================================================
       KARUZELA — 2 KAFLE
    ===================================================== */

    .offer__track {
        gap: 24px;
    }

    .offer__card {
        flex: 0 0 calc((100% - 24px) / 2);

        aspect-ratio: 1 / 1;

        border-radius: 22px;
    }


    /* =====================================================
       NAWIGACJA
    ===================================================== */

    .offer__navigation {
        margin-top: 28px;
    }

}

/* =========================================================
   OFFER — MOBILE
========================================================= */

@media (max-width: 767px) {

    .offer {
        padding: 70px 38px 75px;
    }

    .offer__header {
        margin-bottom: 35px;
    }

    .offer__title {
        max-width: none;

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


    /* =====================================================
       KARUZELA — 1 KAFEL
    ===================================================== */

    .offer__carousel {
        position: relative;
        width: 100%;
    }

    .offer__track {
        gap: 0;
    }

    .offer__card {
        flex: 0 0 100%;
        width: 100%;

        aspect-ratio: 1 / 1;

        border-radius: 22px;
    }


    /* =====================================================
       STRZAŁKI — ŚRODEK KAFELA
    ===================================================== */

    .offer__navigation {
    position: relative;

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

    transform: none;

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

    width: 100%;

    margin-top: 24px;

    pointer-events: none;

    z-index: 10;
}

    .offer__arrow {
        pointer-events: auto;

        width: 48px;
        height: 48px;

        flex: 0 0 48px;
    }


    /* =====================================================
       KROPKI
    ===================================================== */

    .offer__dots {
        margin-top: 28px;
    }

    .offer__card-number {
        font-size: 18px;
    }

}