.radio-popup:not([open]) { display: none; }
.radio-popup {
    box-sizing: border-box;
    width: min(560px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #e4e9f2;
    border-radius: 20px;
    color: #012258;
    background: #fff;
    box-shadow: 0 20px 80px #01225830;
    font-size: 15px;
    line-height: 1.65;
}
.radio-popup::backdrop { background: #001a42a6; }
.radio-popup[open] { animation: radio-popup-in .24s ease-out; }
.radio-popup__surface { position: relative; padding-top: 66px; }
.radio-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f4fc;
    color: #012258;
    cursor: pointer;
    transition: background .2s;
}
.radio-popup__close:hover { background: #e0e9fb; }
.radio-popup__close:focus-visible { outline: 2px solid #215eca; outline-offset: 2px; }
.radio-popup__visual { padding: 0 16px 16px; }
.radio-popup .radio-popup__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 44vh;
    object-fit: contain;
    border-radius: 10px;
}
.radio-popup__content { padding: 0 28px 26px; overflow-wrap: anywhere; }
body .radio-popup h2#radio-popup-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #012258;
}
.radio-popup__text > :last-child { margin-bottom: 0; }
.radio-popup__text a { color: #215eca; text-underline-offset: 3px; }
html.radio-popup-open { overflow: hidden; }
@keyframes radio-popup-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 767.98px) {
    .radio-popup { border-radius: 16px; font-size: 14px; }
    .radio-popup__content { padding: 0 20px 22px; }
    body .radio-popup h2#radio-popup-title { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    .radio-popup[open] { animation: none; }
    .radio-popup__close { transition: none; }
}
