.conferences-popup-open {
    overflow: hidden;
}

.conferences-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 20, 80, 0.72);
    backdrop-filter: blur(4px);
    animation: conferences-popup-fade-in 0.35s ease;
}

.conferences-popup-overlay.is-closing {
    animation: conferences-popup-fade-out 0.25s ease forwards;
}

@keyframes conferences-popup-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes conferences-popup-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.conferences-popup-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: min(90vh, 640px);
    overflow-y: auto;
    background: #fff;
    color: #1a1a2e;
    border-radius: 16px;
    border: 3px solid #002395;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    animation: conferences-popup-slide-in 0.35s ease;
}

.conferences-popup-overlay.is-closing .conferences-popup-modal {
    animation: conferences-popup-slide-out 0.25s ease forwards;
}

@keyframes conferences-popup-slide-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes conferences-popup-slide-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
}

.conferences-popup-header {
    padding: 1.5rem 1.5rem 0.75rem;
    text-align: center;
    border-bottom: 3px solid #ED2939;
    background: linear-gradient(180deg, rgba(0, 35, 149, 0.08), transparent);
}

.conferences-popup-header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: #002395;
}

.conferences-popup-header p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ED2939;
}

.conferences-popup-body {
    padding: 1.25rem 1.5rem 1rem;
    line-height: 1.65;
    font-size: 1.05rem;
}

.conferences-popup-body > p {
    margin: 0 0 1rem;
}

.conferences-popup-contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.conferences-popup-contacts li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    padding: 0.65rem 0.85rem;
    background: #f5f7fb;
    border-radius: 8px;
    border-left: 4px solid #002395;
}

.conferences-popup-contacts strong {
    color: #002395;
    min-width: 5.5rem;
}

.conferences-popup-contacts a {
    color: #ED2939;
    font-weight: 600;
    word-break: break-all;
}

.conferences-popup-contacts a:hover {
    color: #C41E3A;
}

.conferences-popup-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.conferences-popup-dismiss-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.conferences-popup-dismiss-row input {
    width: 1rem;
    height: 1rem;
    accent-color: #002395;
    cursor: pointer;
}

.conferences-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.conferences-popup-btn {
    padding: 0.65rem 1.35rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
}

.conferences-popup-btn:hover {
    transform: translateY(-1px);
}

.conferences-popup-btn-primary {
    background: #002395;
    color: #fff;
}

.conferences-popup-btn-primary:hover {
    color: #fff;
    opacity: 0.92;
}

.conferences-popup-close-x {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: rgba(0, 35, 149, 0.1);
    color: #002395;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conferences-popup-close-x:hover {
    background: rgba(237, 41, 57, 0.15);
    color: #ED2939;
}

.conferences-popup-close-x:focus-visible,
.conferences-popup-btn:focus-visible {
    outline: 2px solid #ED2939;
    outline-offset: 2px;
}
