/* ===============================
   Overlay
================================ */
.modal-container {
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 30, 0.45);
    backdrop-filter: blur(12px) saturate(120%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 1000;
}

.modal-container.show {
    opacity: 1;
    pointer-events: auto;
}

/* ===============================
   Modal
================================ */
.modal-news {
    position: relative;
    width: 700px;
    max-width: 92%;
    max-height: 85vh;
    background: rgba(18, 28, 48, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    border-radius: 20px;
    padding: 26px 28px;
    color: #e6f1ff;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow:
        0 6px 18px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 -1px 2px rgba(0,0,0,0.22);
    transform: translateY(10px) scale(.97);
    transition: transform .35s ease, opacity .35s ease;
    opacity: 0;
}

.modal-container.show .modal-news {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* ===============================
   Header
================================ */
.modal-header {
    margin-bottom: 22px;
}

.modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-tag {
    background: linear-gradient(135deg, #2f6fbb, #255a99);
    color: #e6f1ff;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}

.modal-close {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    width: 34px;
    height: 34px;
    font-size: 18px;
    line-height: 1;
    color: #e6f1ff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none !important;
    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border-color: rgba(255,255,255,0.2);
}

.modal-header h1 {
    font-size: 22px;
    margin: 14px 0 6px;
    color: #ffffff;
}

.modal-subtitle {
    font-size: 14px;
    color: #b6c7e6;
    max-width: 520px;
    line-height: 1.55;
}

/* ===============================
   Body
================================ */
.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===============================
   Sections
================================ */
.modal-section {
    background: rgba(255,255,255,0.035);
    border-radius: 16px;
    padding: 16px 18px;
}

.modal-section.accent {
    background: rgba(255,255,255,0.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ===============================
   Section titles — ЛЁГКИЙ ОБЪЁМ
================================ */
.modal-section h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: 600;
    color: #e6f1ff;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.22),
        inset 0 -1px 0 rgba(0,0,0,0.18);
}

.modal-section h2 i {
    color: #6fa8ff;
    font-size: 14px;
}

/* ===============================
   Text
================================ */
.modal-section p {
    font-size: 14.5px;
    line-height: 1.65;
    color: #c5d3ec;
}

/* ===============================
   Checklist
================================ */
.modal-checklist {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-checklist li {
    position: relative;
    padding-left: 18px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #c5d3ec;
}

.modal-checklist li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #6fa8ff;
}

/* ===============================
   Scroll lock
================================ */
body.no-scroll {
    overflow: hidden;
}