/* =========================================================
   INSURANCE PAGE
   ========================================================= */

.insurance-page {
    position: relative;

    width: 100%;

    padding: 24px 0 120px;

    background: #f8f8fa;

    color: #111122;

    font-family: "Inter", Arial, sans-serif;

    box-sizing: border-box;
}

.insurance-page *,
.insurance-page *::before,
.insurance-page *::after {
    box-sizing: border-box;
}


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

.insurance-hero,
.insurance-companies,
.insurance-steps {
    width: calc(100% - 400px);
    max-width: 1520px;
    margin-left: auto;
    margin-right: auto;
}


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

.insurance-hero {
    position: relative;

    height: 526px;

    overflow: hidden;

    border-radius: 32px;

    background:
            linear-gradient(
                    100deg,
                    #23716d 6.7%,
                    #1b5349 91%
            );
}

.insurance-hero__content {
    position: relative;
    z-index: 2;

    width: 850px;

    height: 100%;

    padding: 60px;
}

.insurance-hero__title {
    margin: 0;

    font-size: 64px;
    line-height: 1.2;
    font-weight: 700;

    text-transform: uppercase;

    color: #ffffff;
}

.insurance-hero__text {
    width: 798px;

    margin: 78px 0 0;

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

    color: #ffffff;
}

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

    width: 280px;
    height: 64px;

    margin-top: 52px;

    padding: 10px;

    border-radius: 12px;

    background: #ffffff;

    color: #111122;

    font-size: 18px;
    line-height: 1;
    font-weight: 500;

    text-decoration: none;

    transition: transform 0.2s ease;
}

.insurance-hero__button:hover {
    transform: translateY(-2px);
}

/* HERO IMAGE */

.insurance-hero__image {
    position: absolute;

    z-index: 2;

    left: 496px;
    top: 43px;

    pointer-events: none;
    right: 0;
    height: 100%;
}

.insurance-hero__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


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

.insurance-section-title {
    margin: 82px 0 28px;

    font-size: 56px;
    line-height: 1.2;
    font-weight: 700;

    color: #111122;
}

.insurance-section-title--steps {
    width: 810px;

    margin-top: 82px;
}


/* =========================================================
   COMPANIES
   ========================================================= */

.insurance-companies__grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;

    width: 100%;
}

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

    height: 260px;

    overflow: hidden;

    border-radius: 24px;

    background: #ffffff;
}

.insurance-company img {
    display: block;

    max-width: 72%;
    max-height: 70%;

    object-fit: contain;
}


/* =========================================================
   COMPANY NOTICE
   ========================================================= */

.insurance-companies__notice {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 96px;

    margin-top: 20px;

    padding: 24px;

    border-radius: 24px;

    background: #ffffff;
}

.insurance-companies__notice p {
    width: 695px;

    margin: 0;

    font-size: 24px;
    line-height: 1.5;
}

.insurance-outline-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 250px;
    height: 48px;

    border: 1px solid #23716d;
    border-radius: 12px;

    background: transparent;

    color: #23716d;

    font-family: inherit;
    font-size: 18px;
    font-weight: 500;

    cursor: pointer;

    transition:
            background-color 0.2s ease,
            color 0.2s ease;
}

.insurance-outline-button:hover {
    background: #23716d;
    color: #ffffff;
}


/* =========================================================
   STEPS
   ========================================================= */

.insurance-steps__grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.insurance-step {
    position: relative;

    height: 310px;

    overflow: hidden;

    padding: 24px;

    border-radius: 24px;

    background:
            rgba(35, 113, 109, 0.10);
}

.insurance-step__title {
    position: relative;
    z-index: 2;

    width: 303px;

    margin: 0;

    font-size: 24px;
    line-height: 1.5;
    font-weight: 500;
}

.insurance-step__text {
    position: relative;
    z-index: 2;

    width: 316px;

    margin: 40px 0 0;

    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;

    color: rgba(17, 17, 34, 0.75);
}

.insurance-step__text a {
    color: #23716d;

    text-decoration: none;
}

.insurance-step__number {
    position: absolute;

    z-index: 1;

    right: -30px;
    bottom: -28px;

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

    width: 197px;
    height: 197px;

    border-radius: 50%;

    background: rgba(35, 113, 109, 0.15);

    color: #e9f1f1;

    font-size: 98px;
    line-height: 1;
    font-weight: 900;
}


/* =========================================================
   FAQ
   ========================================================= */

.insurance-faq {
    width: 750px;

    margin: 82px auto 0;
}

.insurance-faq__title {
    margin: 0 0 42px;

    text-align: center;

    font-size: 56px;
    line-height: 1.2;
    font-weight: 700;

    color: #111122;
}

.insurance-faq__list {
    display: flex;
    flex-direction: column;

    gap: 16px;
}

.insurance-faq-item {
    overflow: hidden;

    border-radius: 24px;

    background: #ffffff;

    transition:
            background 0.25s ease;
}

.insurance-faq-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    width: 100%;

    min-height: 60px;

    padding: 18px;

    border: 0;

    background: transparent;

    color: #111122;

    font-family: inherit;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 500;

    text-align: left;

    cursor: pointer;
}

.insurance-faq-item__header > span:first-child {
    padding-right: 20px;
}

.insurance-faq-item__icon {
    flex: 0 0 24px;

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

    width: 24px;
    height: 24px;

    font-size: 24px;
    line-height: 1;
    font-weight: 300;
}

.insurance-faq-item__answer {
    display: none;

    padding: 0 18px 18px;

    font-size: 18px;
    line-height: 1.5;

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

.insurance-faq-item__answer p {
    margin: 0;
}


/* Open FAQ */

.insurance-faq-item--open {
    background:
            linear-gradient(
                    106deg,
                    #23716d 6.7%,
                    #1b5349 91%
            );
}

.insurance-faq-item--open
.insurance-faq-item__header {
    color: #ffffff;
}

.insurance-faq-item--open
.insurance-faq-item__answer {
    display: block;
}


/* =========================================================
   CHAT
   ========================================================= */

.insurance-chat {
    position: fixed;

    z-index: 100;

    right: 50px;
    bottom: 120px;

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

    width: 120px;
    height: 120px;

    padding: 24px;

    border: 10px solid rgba(35, 113, 109, 0.20);
    border-radius: 50%;

    background: #23716d;

    cursor: pointer;
}

.insurance-chat__icon {
    position: relative;

    display: block;

    width: 40px;
    height: 30px;

    border: 2px solid #ffffff;
    border-radius: 8px;
}

.insurance-chat__icon::after {
    content: "";

    position: absolute;

    right: 3px;
    bottom: -7px;

    width: 10px;
    height: 10px;

    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;

    transform: skewY(25deg);
}


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

@media (max-width: 1400px) {

    .insurance-hero,
    .insurance-companies,
    .insurance-steps {
        width: calc(100% - 120px);
    }

    .insurance-hero__content {
        padding: 50px;
    }

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

    .insurance-hero__text {
        width: 620px;

        font-size: 20px;
    }

    .insurance-company {
        height: 220px;
    }

    .insurance-step__title,
    .insurance-step__text {
        width: auto;
    }

    .insurance-faq__title {
        font-size: 46px;
    }
}


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

@media (max-width: 767px) {

    .insurance-page {
        padding: 20px 16px 70px;
    }


    /* -------------------------
       Common
       ------------------------- */

    .insurance-hero,
    .insurance-companies,
    .insurance-steps {
        width: 100%;
    }


    /* -------------------------
       Hero
       ------------------------- */

    .insurance-hero {
        height: auto;
        min-height: 500px;

        border-radius: 20px;

        display: flex;
        flex-direction: column;
    }

    .insurance-hero__content {
        width: 100%;
        height: auto;

        padding: 30px 24px 0;
    }

    .insurance-hero__title {
        font-size: 36px;
        line-height: 1.1;
    }

    .insurance-hero__text {
        width: 100%;

        margin-top: 24px;

        font-size: 16px;
        line-height: 1.45;
    }

    .insurance-hero__button {
        width: 100%;
        height: 52px;

        margin-top: 24px;

        font-size: 16px;
    }

    .insurance-hero__image {
        left: 0;
        top: auto;
        bottom: -30px;

        width: 100%;
        height: 340px;
    }

    .insurance-hero__image img {
        object-fit: cover;
        object-position: center;
    }


    /* -------------------------
       Titles
       ------------------------- */

    .insurance-section-title,
    .insurance-section-title--steps {
        width: 100%;

        margin-top: 42px;
        margin-bottom: 20px;

        font-size: 32px;
        line-height: 1.2;
    }


    /* -------------------------
       Companies
       ------------------------- */

    .insurance-companies__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .insurance-company {
        height: 140px;

        border-radius: 14px;
    }

    .insurance-company img {
        max-width: 75%;
        max-height: 65%;
    }

    .insurance-companies__notice {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 18px;

        min-height: auto;

        margin-top: 10px;

        padding: 16px;

        border-radius: 14px;
    }

    .insurance-companies__notice p {
        width: 100%;

        font-size: 14px;
        line-height: 1.45;
    }

    .insurance-outline-button {
        width: 100%;
        height: 44px;

        font-size: 15px;
    }


    /* -------------------------
       Steps
       ------------------------- */

    .insurance-steps__grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .insurance-step {
        height: auto;
        min-height: 190px;

        padding: 18px;

        border-radius: 16px;
    }

    .insurance-step__title {
        width: 70%;

        font-size: 18px;
        line-height: 1.35;
    }

    .insurance-step__text {
        width: 75%;

        margin-top: 14px;

        font-size: 14px;
        line-height: 1.45;
    }

    .insurance-step__number {
        right: -5px;
        bottom: -25px;

        width: 135px;
        height: 135px;

        font-size: 72px;
    }
}