.ui-popup {
    display: none;
    background: rgba(0, 0, 0, 0.9);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1000;
    justify-content: center;
    align-items: baseline;
    overflow: auto;
    padding: 250px 0 20px;
}

.ui-popup.active {
    display: flex;
}

.ui-popup__body {
    position: relative;
    max-width: 614px;
    width: 100%;
    padding: 32px;
    margin: 0 10px;
    background: #000000;
    border: 1px solid #FFFFFF;
}

.ui-popup__close {
    cursor: pointer;
    position: absolute;
    top: 32px;
    right: 32px;
    width: 18px;
    height: 18px;
}

.ui-popup__close::after,
.ui-popup__close::before {
    position: absolute;
    top: 10px;
    content: "";
    width: 18px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
}

.ui-popup__close::after {
    transform: rotate(45deg);
}

.ui-popup__close::before {
    transform: rotate(-45deg);
}

.ui-popup__title {
    display: contents;
    font-size: 22px;
    line-height: 30px;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.ui-popup__illustration {
    max-width: 140px;
    margin-right: 24px;
}

#thanks-pop .ui-popup__body {
    display: flex;
    align-items: center;
}

.ui-popup__body .what-we-do__card-description {
    display: block;
    margin-top: 16px;
}

.ui-popup__body .what-we-do__card-description:first-of-type{
    margin-top: 0;
}

.ui-popup__body .what-we-do__card-icon-wrapper {
    margin-bottom: 32px;
}

#videoPopup {
    padding: 250px 10px 20px;
}

.ui-popup__body-youtube iframe {
    width: 100%;
    height: 350px;
}

.ui-popup__body-youtube {
    display: flex;
    max-width: calc(634px - 20px);
    margin: 0 auto;
    padding: 0;
}

.ui-popup__body-youtube .ui-popup__close {
    top: 20px;
    right: 20px;
}

@media (max-width: 630px) {
    #thanks-pop .ui-popup__body {
        flex-direction: column;
    }

    .ui-popup__illustration {
        margin-right: 0;
        margin-bottom: 24px;
    }

    .ui-popup__title {
        display: block;
    }
}

@media (max-width: 460px) {
    .ui-popup {
        padding-top: 100px;
    }

    #videoPopup {
        padding-top: 100px;
    }

    .ui-popup__body {
        padding: 20px;
    }

    .ui-popup__close {
        top: 20px;
        right: 20px;
    }

    .ui-popup-what-we-do .what-we-do__list-item {
        font-size: 16px;
        line-height: 24px;
    }
}