.header__menu-item--dropdown { position: relative; }

.header__dropdown-arrow { margin-left: 4px; transition: transform .2s; }
.header__menu-item--dropdown.is-open .header__dropdown-arrow { transform: rotate(180deg); }

.header__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding-top: 12px;
    min-width: 680px;
}
.header__menu-item--dropdown.is-open .header__dropdown { display: block; }

.header__dropdown-inner {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
    padding: 24px 28px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
}

.header__dropdown-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #1D1D1F;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color .2s;
}
.header__dropdown-heading:hover { color: #C8102E; }
.header__dropdown-heading i { font-size: 14px; color: #C8102E; width: 18px; text-align: center; }

/* Колонка одной группы (категории) внутри дропдауна */
.header__dropdown-group { min-width: 0; }

.header__dropdown-list { list-style: none; margin: 0; padding: 0; }
.header__dropdown-item { margin-bottom: 4px; }

/* Пункт «Все документы →» — отделён от списка */
.header__dropdown-item--more {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.header__dropdown-link {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    padding: 4px 0;
    display: block;
    transition: color .15s;
}
.header__dropdown-link:hover { color: #C8102E; }
.header__dropdown-link--more { color: #C8102E; font-weight: 500; margin-top: 4px; }

/* Утилита: скрытый блок микроразметки (замена inline style="display:none") */
.visually-hidden-seo { display: none; }

@media (max-width: 768px) {
    .header__dropdown {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        transform: none;
        min-width: auto;
        padding-top: 0;
        max-height: 70vh;
        overflow-y: auto;
    }
    .header__dropdown-inner {
        grid-template-columns: 1fr;
        border-radius: 0 0 12px 12px;
    }
}
