.phone-choice{
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    visibility: hidden;
    opacity: 0;
    z-index: 110;
    box-sizing: border-box;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.phone-choice.is-active{
    visibility: visible;
    opacity: 1;
}

.phone-choice__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(23, 27, 51, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.phone-choice__dialog{
    position: relative;
    width: min(100%, 690px);
    padding: 58px;
    color: var(--common);
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 34px;
    box-shadow: 0 32px 90px rgba(5, 9, 28, 0.34);
    box-sizing: border-box;
    overflow: hidden;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.32s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.phone-choice.is-active .phone-choice__dialog{
    transform: translateY(0) scale(1);
}

.phone-choice__orb{
    position: absolute;
    right: -74px;
    top: -96px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--common);
    opacity: 0.07;
    pointer-events: none;
}

.phone-choice__close{
    position: absolute;
    right: 26px;
    top: 26px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(23, 27, 51, 0.18);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    transition: color var(--dur) ease, background-color var(--dur) ease, transform var(--dur) ease;
}

.phone-choice__close span{
    position: absolute;
    left: 14px;
    top: 23px;
    width: 19px;
    height: 1px;
    background: currentColor;
}

.phone-choice__close span:first-child{
    transform: rotate(45deg);
}

.phone-choice__close span:last-child{
    transform: rotate(-45deg);
}

.phone-choice__close:active{
    transform: translateY(1px);
}

.phone-choice__eyebrow{
    position: relative;
    margin-bottom: 18px;
    color: var(--common);
    opacity: 0.72;
    font: 600 13px/1.2 var(--font);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.phone-choice__title{
    position: relative;
    max-width: 510px;
    margin: 0;
    font: 600 54px/0.98 var(--font);
    letter-spacing: -0.035em;
}

.phone-choice__text{
    position: relative;
    max-width: 525px;
    margin-top: 22px;
    color: var(--gray);
    font: 400 19px/1.35 var(--font);
}

.phone-choice__actions{
    position: relative;
    display: grid;
    gap: 12px;
    margin-top: 38px;
}

.phone-choice__action{
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 17px;
    min-height: 92px;
    padding: 17px 22px;
    border: 1px solid transparent;
    border-radius: 20px;
    box-sizing: border-box;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.phone-choice__action--whatsapp{
    color: var(--light);
    background: var(--common);
}

.phone-choice__action--telegram{
    color: var(--common);
    background: rgba(23, 27, 51, 0.035);
    border-color: rgba(23, 27, 51, 0.18);
}

.phone-choice__action-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--common);
}

.phone-choice__action-icon svg{
    display: block;
    width: 24px;
    height: 24px;
    fill: var(--light);
}

.phone-choice__action--whatsapp .phone-choice__action-icon{
    background: var(--bg);
}

.phone-choice__action--whatsapp .phone-choice__action-icon svg{
    width: 25px;
    height: 25px;
    fill: var(--common);
}

.phone-choice__action-copy{
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.phone-choice__action-copy strong{
    font: 600 21px/1.15 var(--font);
}

.phone-choice__action-copy > span{
    margin-top: 5px;
    overflow: hidden;
    font: 400 14px/1.25 var(--font);
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 0.66;
}

.phone-choice__arrow{
    font: 400 22px/1 var(--font);
    transition: transform 0.2s ease;
}

.phone-choice-is-open,
.phone-choice-is-open body{
    overflow: hidden;
}

@media (hover: hover){
    .phone-choice__close:hover{
        color: var(--light);
        background: var(--common);
    }

    .phone-choice__action:hover{
        transform: translateY(-2px);
    }

    .phone-choice__action--whatsapp:hover{
        background: #242943;
    }

    .phone-choice__action--telegram:hover{
        background: rgba(23, 27, 51, 0.08);
        border-color: rgba(23, 27, 51, 0.32);
    }

    .phone-choice__action:hover .phone-choice__arrow{
        transform: translate(2px, -2px);
    }
}

@media screen and (max-width: 767px){
    .phone-choice{
        align-items: flex-end;
        padding: 12px;
    }

    .phone-choice__dialog{
        width: 100%;
        padding: 38px 22px 22px;
        border-radius: 26px;
        transform: translateY(36px);
    }

    .phone-choice__close{
        right: 18px;
        top: 18px;
        width: 42px;
        height: 42px;
    }

    .phone-choice__close span{
        left: 12px;
        top: 20px;
        width: 17px;
    }

    .phone-choice__eyebrow{
        max-width: calc(100% - 54px);
        margin-bottom: 14px;
        font-size: 11px;
    }

    .phone-choice__title{
        max-width: calc(100% - 42px);
        font-size: 38px;
    }

    .phone-choice__text{
        margin-top: 16px;
        font-size: 16px;
    }

    .phone-choice__actions{
        gap: 9px;
        margin-top: 26px;
    }

    .phone-choice__action{
        grid-template-columns: 48px minmax(0, 1fr) 20px;
        gap: 13px;
        min-height: 80px;
        padding: 14px 16px;
        border-radius: 17px;
    }

    .phone-choice__action-icon{
        width: 48px;
        height: 48px;
    }

    .phone-choice__action-icon svg{
        width: 21px;
        height: 21px;
    }

    .phone-choice__action-copy strong{
        font-size: 18px;
    }

    .phone-choice__action-copy > span{
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce){
    .phone-choice,
    .phone-choice__dialog,
    .phone-choice__action,
    .phone-choice__arrow{
        transition: none;
    }
}
