.popup {
    --ff-regular: "Migrena_Grotesque-Regular", Arial, sans-serif;
    --c-white: #FFFFFF;
    --c-red: #DA1026;
    --tr: 500ms;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; 
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity ease-out var(--tr);
    z-index: 999;
}

.popup.visible {
    opacity: 1;
    pointer-events: auto
}

.popup-inner {
    position: relative;
    background-color: #191919;
    border: 2px solid var(--c-red);
    padding: 38px 18px 37px;
    margin: auto;
    width: 100%;
    height: auto;
    max-width: 620px;
    max-height: calc(100svh - 40px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 30px;
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: block;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: opacity ease-out var(--tr)
}

.popup-close:hover {
    opacity: 0.7
}

.popup-title {
    font-family: var(--ff-regular);
    font-size: 6vw;
    font-weight: 600;
    line-height: normal;
    text-align: center;
}

.popup-title span {
    color: var(--c-red)
}

.popup-cols {
    display: flex;
    flex-wrap: wrap;
    column-gap: 80px
}

.popup-left,
.popup-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.popup-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-height: 0;
    flex: 1 1 auto;   
}

.popup-right {
    display: none;
    padding-top: 4px;
    gap: 80px
}

.popup-img {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    aspect-ratio: auto;
}

.popup-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn {
    position: relative;
    font-family: var(--ff-regular);
    background-color: rgba(217, 217, 217, 0.1);
    padding: 9px 29px 17px;
    font-size: 20px;
    line-height: normal;
    color: var(--c-white);
    border: none;
    display: block;
    width: 100%;
    text-align: center;
}

.btn-angle {
    position: absolute;
    display: block;
    width: 9px;
    height: 9px;
    border-width: 4px;
    border-color: var(--c-white);
    transition:
        top ease-out var(--tr),
        right ease-out var(--tr),
        bottom ease-out var(--tr),
        left ease-out var(--tr)
}

.btn-angle.tl {
    top: 0;
    left: 0;
    border-top-style: solid;
    border-left-style: solid
}

.btn-angle.tr {
    top: 0;
    right: 0;
    border-top-style: solid;
    border-right-style: solid
}

.btn-angle.br {
    bottom: 2px;
    right: 0;
    border-bottom-style: solid;
    border-right-style: solid
}

.btn-angle.bl {
    bottom: 2px;
    left: 0;
    border-bottom-style: solid;
    border-left-style: solid
}

.btn:hover .btn-angle.tl {
    top: 10px;
    left: 12px
}

.btn:hover .btn-angle.tr {
    top: 10px;
    right: 12px
}

.btn:hover .btn-angle.br {
    bottom: 12px;
    right: 12px
}

.btn:hover .btn-angle.bl {
    bottom: 12px;
    left: 12px
}

@media (min-width: 414px) {
    .popup-title {
        font-size: 27px
    }
}

@media (min-width: 992px) {
    .popup-inner {
        padding: 48px 58px 47px;
        max-height: calc(100svh - 120px);
        gap: 40px;
        /* max-height: 1024px;
        height: calc(100dvh - 120px);  */
    }

    .popup-close {
        top: 28px;
        right: 28px
    }

    .popup-title {
        font-size: 40px;
    }

    .popup-left {
        align-items: flex-start;
        gap: 38px
    }

    .popup-right {
        display: flex
    }

    .popup-right .popup-img {
        width: 200px
    }
}