.hover-modal {
    position: fixed;
    z-index: 10000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 12px 16px;
    max-width: 360px;
    min-width: 160px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.hover-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Содержимое */
.hover-modal-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hover-modal-content p {
    margin: 0 0 6px;
}

.hover-modal-content p:last-child {
    margin-bottom: 0;
}

.hover-modal-content strong {
    font-weight: 700;
}

/* Список-грид: 2 колонки */
.hover-modal-content .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Список-грид: 3 колонки */
.hover-modal-content .grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hover-modal-content .grid-2 li,
.hover-modal-content .grid-3 li {
    padding: 2px 0;
    white-space: nowrap;
}