/* =========================================================
   REALIZATIONS
========================================================= */

.realizations {
    position: relative;
    overflow: hidden;
    padding: 100px 0 120px;
    background: #f7f7f5;
    color: #162540;
}


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

.realizations__container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 clamp(40px, 6vw, 100px);
}


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

.realizations__header {
    position: relative;

    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: end;

    margin-bottom: 60px;
}


/* Nagłówek zostaje w centralnej części sekcji */
.realizations__intro {
    grid-column: 2;
    text-align: center;
}


/* Opis usuwamy z głównej osi nagłówka */
.realizations__description {
    position: absolute;
    left: 0;
    bottom: 5px;

    max-width: 330px;
}


/* Strzałki po prawej */
.realizations__navigation {
    grid-column: 3;
    justify-self: end;
}


/* =========================================================
   EYEBROW
========================================================= */

.realizations__eyebrow {
    margin: 0 0 18px;
    color: #e52d35;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}


/* =========================================================
   TITLE
========================================================= */

.realizations__title {
    max-width: 620px;
    margin: 0;
    color: #162540;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

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

.realizations__navigation {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 2px;
}

.realizations__arrow {
    width: 58px;
    height: 58px;
    padding: 0;

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

    border: 1px solid rgba(22, 37, 64, 0.35);
    border-radius: 50%;

    background: transparent;
    color: #162540;

    font-family: inherit;
    font-size: 25px;
    line-height: 1;

    cursor: pointer;

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

.realizations__arrow:hover {
    background: #162540;
    border-color: #162540;
    color: #ffffff;
    transform: translateY(-2px);
}

.realizations__arrow:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}


/* =========================================================
   CAROUSEL
========================================================= */

.realizations__carousel {
    width: 100%;
    overflow: hidden;
    background: #EAF0F8;
    border-radius: 30px;
}

.realizations__track {
    display: flex;
    gap: 28px;

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

    will-change: transform;
    background: #EAF0F8;
    border-radius: 30px;
}


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

.realizations__card {
    position: relative;

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

    min-width: 0;

    background: #ffffff;
    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 15px 45px rgba(22, 37, 64, 0.07);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.realizations__card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 25px 60px rgba(22, 37, 64, 0.12);
}


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

.realizations__image {
    position: relative;

    width: 100%;
    aspect-ratio: 1.55 / 1;

    overflow: hidden;

    background: #e9ebee;
}

.realizations__image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(22, 37, 64, 0) 55%,
            rgba(22, 37, 64, 0.08) 100%
        );

    pointer-events: none;
}

.realizations__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

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

.realizations__card:hover .realizations__image img {
    transform: scale(1.045);
}


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

.realizations__card-content {
    position: relative;

    min-height: 158px;

    padding: 24px 82px 27px 30px;
}


/* =========================================================
   DATE
========================================================= */

.realizations__date {
    margin: 0 0 9px;

    color: #929aa5;

    font-size: 12px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


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

.realizations__card-title {
    margin: 0 0 9px;

    color: #162540;

    font-size: 22px;
    font-weight: 700;

    line-height: 1.15;
    letter-spacing: -0.025em;
}


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

.realizations__card-description {
    margin: 0;

    color: #7b8490;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.5;
}


/* =========================================================
   RED LINE UNDER IMAGE
========================================================= */

.realizations__image::before {
    content: "";

    position: absolute;

    left: 30px;
    bottom: 0;

    width: 72px;
    height: 3px;

    background: #e52d35;

    z-index: 2;
}


/* =========================================================
   DOTS
========================================================= */

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

    gap: 10px;

    margin-top: 34px;
}

.realizations__dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #cbd0d6;

    cursor: pointer;

    transition:
        width 0.25s ease,
        border-radius 0.25s ease,
        background 0.25s ease;
}

.realizations__dot.is-active {
    width: 58px;

    border-radius: 999px;

    background: #e52d35;
}

.realizations__container {
    position: relative;
    z-index: 2;
}

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

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

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


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

    .realizations__header {
        margin-bottom: 50px;
    }

    .realizations__title {
        max-width: 600px;

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


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

    .realizations__track {
        gap: 24px;
    }

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

        min-width: 0;

        border-radius: 20px;
    }


    /* =====================================================
       ZDJĘCIE
    ===================================================== */

    .realizations__image {
        aspect-ratio: 1.45 / 1;
    }


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

    .realizations__card-content {
        min-height: 180px;

        padding: 24px 26px 28px;
    }

    .realizations__card-title {
        font-size: 21px;
        line-height: 1.15;
    }

    .realizations__card-description {
        font-size: 13px;
        line-height: 1.55;
    }


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

    .realizations__dots {
        margin-top: 30px;
    }

}

/* =========================================================
   REALIZATIONS — MOBILE
========================================================= */

@media (max-width: 767px) {

    .realizations {
    padding: 70px 38px 120px;
}


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

    .realizations__container {
        padding: 0;
    }

    .realizations__header {
        display: block;

        margin-bottom: 35px;
    }

    .realizations__intro {
        width: 100%;

        text-align: left;
    }

    .realizations__eyebrow {
        margin-bottom: 20px;
    }

    .realizations__title {
        max-width: none;

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


    /* =====================================================
       KARUZELA — 1 KARTA
    ===================================================== */

    .realizations__carousel {
        position: relative;

        width: 100%;
    }

    .realizations__track {
        gap: 0;
    }

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

        min-width: 100%;

        border-radius: 20px;
    }


    /* =====================================================
       ZDJĘCIE
    ===================================================== */

    .realizations__image {
        aspect-ratio: 1.45 / 1;
    }


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

    .realizations__card-content {
        min-height: 175px;

        padding: 24px 24px 28px;
    }

    .realizations__date {
        margin-bottom: 8px;
    }

    .realizations__card-title {
        font-size: 20px;
        line-height: 1.15;
    }

    .realizations__card-description {
        font-size: 13px;
        line-height: 1.55;
    }


    /* =====================================================
       STRZAŁKI + KROPKI POD KARTĄ
    ===================================================== */

    .realizations__navigation {
        display: flex;

        width: 100%;

        margin-top: 24px;

        align-items: center;
        justify-content: space-between;
    }

    .realizations__arrow {
        width: 48px;
        height: 48px;

        flex: 0 0 48px;
    }

    .realizations__dots {
    position: absolute;

    left: 50%;
    bottom: -45px;

    transform: translateX(-50%);

    margin: 0;
}

}