/* =========================================================
   INFORMATION MODALS
   ========================================================= */

.catalog-modal {
    position: fixed;
    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);

    z-index: 3000;

    overflow: hidden;
    overscroll-behavior: none;
}


/* =========================================================
   OPEN / CLOSE
   ========================================================= */

.catalog-modal.show {
    display: flex;
    animation: catalogBackdropIn 0.3s forwards;
}

.catalog-modal.hide {
    display: flex;
    animation: catalogBackdropOut 0.3s forwards;
}


@keyframes catalogBackdropIn {

    to {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(6px);
    }

}


@keyframes catalogBackdropOut {

    from {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(6px);
    }

    to {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0);
    }

}


/* =========================================================
   MODAL CONTENT
   ========================================================= */

.catalog-modal-content {

    position: relative;

    width: 100%;
    max-width: 820px;

    max-height: 85vh;

    padding: 44px 48px;

    background: #ffffff;

    border-radius: 20px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.25);

    transform: translateY(24px) scale(0.96);
    opacity: 0;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
}


.catalog-modal.show .catalog-modal-content {

    animation:
        catalogModalIn
        0.35s
        ease
        forwards;

}


.catalog-modal.hide .catalog-modal-content {

    animation:
        catalogModalOut
        0.25s
        ease
        forwards;

}


@keyframes catalogModalIn {

    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


@keyframes catalogModalOut {

    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }

}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.catalog-modal-close {
    position: absolute;

    top: 14px;
    right: 18px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    background: transparent;

    font-size: 32px;
    line-height: 1;

    color: #333;

    cursor: pointer;

    user-select: none;

    transition: opacity 0.2s ease;
}

.catalog-modal-close:hover {
    opacity: 0.6;
}


/* =========================================================
   SCROLL AREA
   ========================================================= */

.catalog-modal-scroll {

    overflow-y: auto;

    padding-right: 10px;

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
}


.catalog-modal-scroll::-webkit-scrollbar {

    width: 5px;

}


.catalog-modal-scroll::-webkit-scrollbar-track {

    background: transparent;

}


.catalog-modal-scroll::-webkit-scrollbar-thumb {

    background: rgba(21, 84, 124, 0.25);

    border-radius: 999px;

}


/* =========================================================
   LABEL
   ========================================================= */

.catalog-modal-label {

    margin-bottom: 10px;

    color: #a07818;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


/* =========================================================
   TITLE
   ========================================================= */

.catalog-modal-content h2 {

    margin: 0 50px 18px 0;

    color: #15547c;

    font-size: 30px;
    font-weight: 700;

    line-height: 1.2;
}


.catalog-modal-lead {

    margin: 0 0 30px;

    color: #4f5b61;

    font-size: 17px;
    line-height: 1.65;
}


/* =========================================================
   CONTENT SECTIONS
   ========================================================= */

.catalog-modal-section {

    padding-top: 24px;

    border-top: 1px solid rgba(21, 84, 124, 0.12);

}


.catalog-modal-section + .catalog-modal-section {

    margin-top: 26px;

}


.catalog-modal-section h3 {

    margin: 0 0 12px;

    color: #15547c;

    font-size: 19px;
    font-weight: 700;

    line-height: 1.3;
}


.catalog-modal-section p {

    margin: 0 0 12px;

    color: #4f5b61;

    font-size: 15px;

    line-height: 1.7;
}


.catalog-modal-section p:last-child {

    margin-bottom: 0;

}


/* =========================================================
   LIST
   ========================================================= */

.catalog-modal-section ul {

    margin: 0;
    padding: 0;

    list-style: none;

}


.catalog-modal-section li {

    position: relative;

    margin-bottom: 11px;

    padding-left: 24px;

    color: #4f5b61;

    font-size: 15px;

    line-height: 1.55;
}


.catalog-modal-section li:last-child {

    margin-bottom: 0;

}


.catalog-modal-section li::before {

    content: "";

    position: absolute;

    left: 2px;
    top: 0.62em;

    width: 7px;
    height: 7px;

    background: #d4a72c;

    border-radius: 50%;

}


/* =========================================================
   BODY LOCK
   ========================================================= */

body.modal-open {

    overflow: hidden;

}


/* =========================================================
   LARGE SCREENS
   ========================================================= */

@media (min-width: 1400px) {

    .catalog-modal-content {

        max-width: 900px;

        max-height: 88vh;

        padding: 50px 56px;

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .catalog-modal {

        align-items: flex-end;

        padding: 0;

    }


    .catalog-modal-content {

        width: 100%;

        max-width: none;

        height: 92dvh;

        max-height: none;

        padding: 32px 20px 24px;

        border-radius: 20px 20px 0 0;

        transform: translateY(100%);

        opacity: 1;

    }


    .catalog-modal.show .catalog-modal-content {

        animation:
            catalogSlideUp
            0.4s
            ease
            forwards;

    }


    .catalog-modal.hide .catalog-modal-content {

        animation:
            catalogSlideDown
            0.35s
            ease
            forwards;

    }


    @keyframes catalogSlideUp {

        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }

    }


    @keyframes catalogSlideDown {

        from {
            transform: translateY(0);
        }

        to {
            transform: translateY(100%);
        }

    }


    .catalog-modal-close {

        top: 10px;
        right: 12px;

        font-size: 32px;

    }


    .catalog-modal-label {

        margin-top: 4px;

        font-size: 11px;

    }


    .catalog-modal-content h2 {

        margin-right: 38px;
        margin-bottom: 16px;

        font-size: 24px;

        line-height: 1.25;

    }


    .catalog-modal-lead {

        margin-bottom: 24px;

        font-size: 15px;

        line-height: 1.6;

    }


    .catalog-modal-section {

        padding-top: 20px;

    }


    .catalog-modal-section + .catalog-modal-section {

        margin-top: 22px;

    }


    .catalog-modal-section h3 {

        font-size: 17px;

    }


    .catalog-modal-section p,
    .catalog-modal-section li {

        font-size: 14px;

        line-height: 1.6;

    }

}