.adv-modal {
    padding: 60px 0;
}
.adv-modal .adv-modal-holder {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.adv-modal .adv-modal-holder .modal-tile {
    position: relative;
    padding: 18px;
    border-radius: var(--radius-20);
    background-image: url('img/tile-bg.svg');
    background-position: right bottom;
    background-size: contain;
    background-repeat: no-repeat;
    width: calc(100% - 4px);
    min-height: 160px;
    overflow: hidden;
}
.adv-modal .modal-tile .tile-img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: fit-content;
    height: 100%;
    z-index: 3;
}
.adv-modal .modal-tile .tile-img img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    object-position: right bottom;
}
.adv-modal .modal-tile .tile-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
    z-index: 4;
}
.adv-modal .modal-tile .tile-content h6 {
    max-width: 174px;
    width: 100%;
    color: var(--white-color);
}
.adv-modal .modal-tile.black .tile-content h6 {
    color: var(--gray-black);
}
.adv-modal .modal-tile button {
    width: 38px;
    height: 38px;
    background: url('img/more.svg') center / contain no-repeat;
}
.adv-modal .adv-modal-item {
    display: none;
}
.adv-modal .adv-modal-item.open {
    display: block;
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    height: 480px;
    transform: translateY(-45%);
    opacity: 0;
    z-index: 55;
    transition: .15s ease-out;
}
.adv-modal .adv-modal-item.visible {
    opacity: 1;
    transform: translateY(-50%);
}
.adv-modal .adv-modal-item .modal-holder {
    position: relative;
    height: 100%;
    padding: 60px 36px;
    border-radius: 24px;
    background-image: url('img/modal-bg-white.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow: hidden;
    z-index: 2;
}
.adv-modal .adv-modal-item .modal-holder.black {
    background-image: url('img/modal-bg-dark.svg');
}
.adv-modal .modal-holder .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    cursor: pointer;
    background-image: url('img/close_white.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 10;
}
.adv-modal .modal-holder .modal-close:hover {
    background-color: transparent;
}
.adv-modal .modal-holder.black .modal-close {
    background-image: url('img/close_black.svg');
}
.adv-modal .modal-holder .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 375px;
    width: 100%;
    z-index: 2;
}
.adv-modal .modal-holder .modal-content .modal-title {
    font-weight: 700;
    font-size: var(--h2-size);
    line-height: 100%;
    color: var(--white-color);
}
.adv-modal .modal-holder.black .modal-title {
    color: var(--gray-black);
}
.adv-modal .modal-holder .modal-content .modal-descr {
    font-size: 18px;
    line-height: 125%;
    font-weight: 600;
    color: var(--white-color);
}
.adv-modal .modal-holder.black .modal-content .modal-descr {
    color: var(--gray-black);
}
.adv-modal .modal-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: fit-content;
    height: 100%;
}
.adv-modal .modal-img img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    object-position: bottom right;
}
@media screen and (max-width: 1300px) {
    .adv-modal .modal-tile .tile-img {
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
    }
    .adv-modal .modal-tile .tile-img img {
        width: 75%;
        height: fit-content;
    }
}
@media screen and (max-width: 991px) {
    .adv-modal .adv-modal-holder {
        gap: 8px;
    }
    .adv-modal .modal-tile .tile-content h6 {
        font-size: 14px;
    }
    .adv-modal .modal-tile .tile-img img {
        width: 65%;
        height: fit-content;
        transform: translate(10px);
    }
    .adv-modal .adv-modal-holder .modal-tile {
        min-height: 100px;
        padding: 12px;
    }
    .adv-modal .modal-tile button {
        width: 28px;
        height: 28px;
    }
}
@media screen and (max-width: 700px) {
    .adv-modal .adv-modal-holder {
        grid-template-columns: repeat(2, 1fr);
    }
    .adv-modal .adv-modal-item.open {
        height: 380px;
        padding: 0 24px;
    }
    .adv-modal .modal-img {
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
    }
    .adv-modal .modal-img img {
        width: 65%;
        min-width: 200px;
    }
    .adv-modal .modal-holder .modal-close {
        width: 36px;
        height: 36px;
    }
    .adv-modal .adv-modal-item .modal-holder {
        padding: 55px 24px 40px;
    }
}
