/* ============================================================
   ND Windows — Popup
   /assets/css/nd-windows/popup.css
   ============================================================ */

/* Блокировка скролла */
body.ndw-popup-lock {
    overflow: hidden;
}

/* Попап — скрыт по умолчанию */
.ndw-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;

    /* Скрыт */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

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

/* Оверлей */
.ndw-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

/* Окно попапа */
.ndw-popup__inner {
    position: relative;
    z-index: 1;
    background: #ffffff;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px 40px 40px;

    /* Анимация появления */
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.ndw-popup--open .ndw-popup__inner {
    transform: translateY(0);
}

/* Кнопка закрытия */
.ndw-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    line-height: 1;
}

.ndw-popup__close:hover {
    opacity: 0.6;
}

/* Контент */
.ndw-popup__content {
    color: #252525;
    font-family: 'GothamPro-Regular', 'Arial', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.ndw-popup__content h2,
.ndw-popup__content h3 {
    font-family: 'GothamPro-Bold', 'Arial Black', sans-serif;
    font-weight: 700;
    margin-bottom: 16px;
}

.ndw-popup__content p {
    margin-bottom: 12px;
}

.ndw-popup__content ul,
.ndw-popup__content ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.ndw-popup__content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ndw-popup__content table td,
.ndw-popup__content table th {
    padding: 8px 12px;
    border: 1px solid #d5dde6;
    text-align: left;
}

.ndw-popup__content table th {
    font-family: 'GothamPro-Bold', sans-serif;
    font-weight: 700;
    background: #f8f9fb;
}

/* Адаптив */
@media (max-width: 600px) {
    .ndw-popup__inner {
        padding: 40px 24px 24px;
    }
}
