/* ОВЕРЛЕЙ */
.lit-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(29, 61, 102, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
    box-sizing: border-box;
}

.lit-overlay.open {
    display: flex;
}

/* МОДАЛЬНОЕ ОКНО */
.lit-modal {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    width: 580px;
    max-width: 95vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: lit-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes lit-pop {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

/* ШАПКА МОДАЛКИ */
.lit-header {
    padding: 28px 32px 16px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.lit-modal-title {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

/* КРЕСТИК */
.lit-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    flex-shrink: 0;
}

.lit-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* СКРОЛЛИРУЕМОЕ ТЕЛО */
.lit-body {
    overflow-y: auto;
    padding: 20px 32px 28px;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 61, 102, 0.3) transparent;
}

.lit-body::-webkit-scrollbar {
    width: 5px;
}
.lit-body::-webkit-scrollbar-track {
    background: transparent;
}
.lit-body::-webkit-scrollbar-thumb {
    background: rgba(29, 61, 102, 0.3);
    border-radius: 10px;
}

/* СЕКЦИИ */
.lit-section-title {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 12px;
}

/* СПИСОК */
.lit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lit-list li {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    color: #ffffff;
    line-height: 1.5;
    transition: background 0.2s;
}

.lit-list li:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lit-num {
    font-weight: bold;
    color: #ffffff;
    margin-right: 6px;
}

/* ТАБЛИЦА СОКРАЩЕНИЙ */
.abbr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

.abbr-item {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 12px;
    color: #ffffff;
    display: flex;
    gap: 8px;
    align-items: center;
    transition: background 0.2s;
}

.abbr-item:hover {
    background: rgba(255, 255, 255, 0.3);
}

.abbr-key {
    font-weight: bold;
    color: #ffffff;
    white-space: nowrap;
    min-width: 56px;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 480px) {
    .lit-modal {
        border-radius: 20px;
        max-height: 85vh;
    }

    .lit-header {
        padding: 22px 20px 14px;
    }

    .lit-body {
        padding: 16px 20px 22px;
    }

    .abbr-grid {
        grid-template-columns: 1fr;
    }
}