/* =================================
   Kontakt — podstrona
================================= */

.contact-page {
    margin: 0;
    padding: 0;
    background: #ffffff;
}


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

.contact-hero {
    position: relative;

    min-height:
        clamp(
            520px,
            39vw,
            650px
        );

    overflow: hidden;

    background-color: #e8edf1;

    background-image:
        var(--contact-hero-image, none);

    background-repeat: no-repeat;

    background-position: center;

    background-size: cover;

    isolation: isolate;
}

.contact-hero::before {
    position: absolute;

    z-index: -1;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgb(238 242 245 / 98%) 0%,
            rgb(238 242 245 / 92%) 18%,
            rgb(238 242 245 / 62%) 34%,
            rgb(238 242 245 / 16%) 56%,
            transparent 74%
        );

    content: "";
}

.contact-hero__inner {
    display: flex;

    min-height: inherit;

    align-items: flex-end;

    padding-top: 170px;

    padding-bottom: 72px;
}

.contact-hero__title {
    margin: 0;

    color:
        var(--color-dark);

    font-size:
        clamp(
            56px,
            6vw,
            86px
        );

    font-weight: 800;

    line-height: 0.96;

    letter-spacing: -0.045em;
}


/* =================================
   GŁÓWNA SEKCJA
================================= */

.contact-content {
    padding:
        clamp(
            70px,
            7vw,
            105px
        )
        0
        clamp(
            90px,
            8vw,
            125px
        );

    background: #ffffff;
}

.contact-content__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(350px, 1fr);

    gap: 34px;

    align-items: stretch;
}


/* =================================
   KARTY
================================= */

.contact-card {
    background: #ffffff;

    border:
        1px solid
        #d9dde3;

    border-radius: 16px;

    box-shadow:
        0 8px 28px
        rgb(15 23 42 / 4%);
}


/* =================================
   LEWA KARTA
================================= */

.contact-card--details {
    padding:
        clamp(
            32px,
            3vw,
            46px
        );
}


/* ---------------------------------
   Nagłówek
--------------------------------- */

.contact-card__header {
    margin-bottom: 36px;
}

.contact-card__title {
    max-width: 540px;

    margin: 0;

    color:
        var(--color-dark);

    font-size:
        clamp(
            27px,
            2.2vw,
            38px
        );

    font-weight: 800;

    line-height: 1.02;

    letter-spacing: -0.035em;
}

.contact-card__booking {
    display: inline-block;

    margin:
        5px
        0
        0;

    color:
        var(--color-primary);

    font-size:
        clamp(
            22px,
            1.8vw,
            30px
        );

    font-weight: 800;

    line-height: 1;

    text-decoration: none;
}

a.contact-card__booking {
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

a.contact-card__booking:hover {
    opacity: 0.82;

    transform:
        translateX(3px);
}


/* =================================
   ELEMENTY KONTAKTOWE
================================= */

.contact-items {
    display: grid;

    gap: 20px;
}

.contact-item {
    display: grid;

    grid-template-columns:
        42px
        minmax(0, 1fr);

    gap: 14px;

    align-items: start;
}

.contact-item__icon {
    display: flex;

    width: 40px;
    height: 40px;

    align-items: center;

    justify-content: center;

    color: #ffffff;

    background:
        var(--color-primary);

    border-radius: 10px;

    box-shadow:
        0 7px 16px
        rgb(235 15 30 / 12%);
}

.contact-item__icon-image {
    width: 20px;
    height: 20px;

    object-fit: contain;

    filter:
        grayscale(1)
        brightness(0)
        invert(1);
}

.contact-item__title {
    margin:
        0
        0
        3px;

    color:
        var(--color-dark);

    font-size: 15px;

    font-weight: 800;

    line-height: 1.25;
}

.contact-item__text {
    color: #364152;

    font-size: 13px;

    line-height: 1.5;
}

.contact-item__text p {
    margin: 0;
}

.contact-item__text p + p {
    margin-top: 4px;
}

.contact-item__text a {
    color:
        var(--color-primary);

    font-weight: 700;

    text-decoration: none;
}

.contact-item__text a:hover {
    text-decoration: underline;
}


/* =================================
   PRAWA KARTA
================================= */

.contact-card--map {
    display: flex;

    min-height: 100%;

    flex-direction: column;

    padding: 18px;
}


/* =================================
   MAPA
================================= */

.contact-map {
    position: relative;

    overflow: hidden;

    width: 100%;

    min-height: 260px;

    flex:
        0
        0
        260px;

    background: #e8edf2;

    border-radius: 12px;
}

.contact-map__iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =================================
   INFORMACJE POD MAPĄ
================================= */

.contact-map-info {
    display: flex;

    flex: 1;

    flex-direction: column;

    align-items: flex-start;

    padding:
        28px
        18px
        18px;
}

.contact-map-info__title {
    margin: 0;

    color:
        var(--color-dark);

    font-size: 18px;

    font-weight: 800;

    line-height: 1.2;
}

.contact-map-info__address {
    margin:
        18px
        0
        0;

    color: #344152;

    font-size: 13px;

    line-height: 1.55;
}


/* =================================
   PRZYCISK MAPY
================================= */

.contact-map-info__button {
    display: inline-flex;

    min-height: 44px;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding:
        10px
        20px;

    /*
     * Przycisk ląduje na dole
     * prawej karty.
     */
    margin-top: auto;

    color:
        var(--color-primary);

    background: #ffffff;

    border:
        1px solid
        var(--color-primary);

    border-radius: 7px;

    font-size: 12px;

    font-weight: 800;

    line-height: 1;

    text-decoration: none;

    transition:
        color 0.22s ease,
        background-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.contact-map-info__button-icon {
    font-size: 17px;

    line-height: 1;
}

.contact-map-info__button:hover {
    color: #ffffff;

    background:
        var(--color-primary);

    box-shadow:
        0 8px 20px
        rgb(235 15 30 / 18%);

    transform:
        translateY(-2px);
}


/* =================================
   LAPTOP
================================= */

@media (max-width: 1100px) {

    .contact-content__grid {
        grid-template-columns:
            minmax(0, 1.3fr)
            minmax(320px, 1fr);

        gap: 24px;
    }

    .contact-card--details {
        padding: 32px;
    }

    .contact-map {
        min-height: 240px;

        flex-basis: 240px;
    }
}


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

@media (max-width: 900px) {

    .contact-content__grid {
        grid-template-columns: 1fr;

        max-width: 720px;

        margin-inline: auto;
    }

    .contact-card--map {
        min-height: auto;

        padding: 16px;
    }

    .contact-map {
        min-height: 320px;

        flex-basis: 320px;
    }

    .contact-map-info {
        min-height: 190px;
    }
}


/* =================================
   MOBILE
================================= */

@media (max-width: 767px) {

    .contact-hero {
        min-height: 520px;

        background-image:
            var(
                --contact-hero-mobile-image,
                var(
                    --contact-hero-image,
                    none
                )
            );

        background-position:
            62%
            center;
    }

    .contact-hero::before {
        background:
            linear-gradient(
                180deg,
                transparent 0%,
                rgb(238 242 245 / 8%) 38%,
                rgb(238 242 245 / 82%) 70%,
                #eef2f5 100%
            );
    }

    .contact-hero__inner {
        padding-top: 120px;

        padding-bottom: 52px;
    }

    .contact-hero__title {
        font-size: 52px;
    }

    .contact-content {
        padding:
            54px
            0
            72px;
    }

    .contact-card--details {
        padding:
            27px
            22px;
    }

    .contact-card__header {
        margin-bottom: 30px;
    }

    .contact-card__title {
        font-size: 27px;
    }

    .contact-card__booking {
        font-size: 22px;
    }


    /* ---------------------------------
       Mapa
    --------------------------------- */

    .contact-card--map {
        padding: 14px;
    }

    .contact-map {
        min-height: 260px;

        flex-basis: 260px;
    }

    .contact-map-info {
        min-height: 180px;

        padding:
            24px
            12px
            14px;
    }

    .contact-map-info__button {
        margin-top: 28px;
    }
}


/* =================================
   MAŁY MOBILE
================================= */

@media (max-width: 520px) {

    .contact-hero {
        min-height: 470px;
    }

    .contact-hero__title {
        font-size: 46px;
    }

    .contact-item {
        grid-template-columns:
            38px
            minmax(0, 1fr);

        gap: 12px;
    }

    .contact-item__icon {
        width: 36px;
        height: 36px;

        border-radius: 9px;
    }

    .contact-item__icon-image {
        width: 18px;
        height: 18px;
    }

    .contact-item__title {
        font-size: 14px;
    }

    .contact-item__text {
        font-size: 12px;
    }

    .contact-map {
        min-height: 235px;

        flex-basis: 235px;
    }

    .contact-map-info__title {
        font-size: 17px;
    }

    .contact-map-info__address {
        font-size: 12px;
    }

    .contact-map-info__button {
        width: 100%;

        margin-top: 24px;
    }
}