/* Каталог-меню в шапке: компактная сетка по содержимому, без растягивания на maxwidth-theme. */

/* Аспро по умолчанию делает dropdown шириной maxwidth-theme — переопределяем
   для нашего меню, чтобы ширина была по содержимому. */
[data-rutehnika-menu="catalog"] .header-menu__dropdown-menu {
    width: max-content;
    max-width: 880px;
    left: 0;
}

[data-rutehnika-menu="catalog"] .dropdown-menu-inner {
    width: 100%;
}

.rutehnika-menu {
    padding: 16px 24px;
}

.rutehnika-menu__columns {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.rutehnika-menu__column {
    min-width: 0;
}

.rutehnika-menu__column[data-rutehnika-section="scenarios"] {
    flex: 0 0 auto;
}

.rutehnika-menu__column[data-rutehnika-section="power"] {
    flex: 0 0 auto;
    width: 280px;
}

.rutehnika-menu__title {
    margin: 0 0 12px 0;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
}

.rutehnika-menu__scenarios {
    display: grid;
    grid-template-columns: repeat(2, 200px);
    gap: 8px;
}

.rutehnika-menu__scenario {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px;
    border-radius: 8px;
    transition: background-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.rutehnika-menu__scenario:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.rutehnika-menu__scenario-img-wrapper {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f4f4f4;
}

.rutehnika-menu__scenario-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rutehnika-menu__scenario-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rutehnika-menu__scenario-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.rutehnika-menu__power-ranges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.rutehnika-menu__power-range {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 14px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.rutehnika-menu__power-range:hover {
    border-color: #c0c0c0;
    background-color: rgba(0, 0, 0, 0.02);
}

.rutehnika-menu__power-label {
    font-size: 14px;
    font-weight: 500;
}

.rutehnika-menu__count {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.rutehnika-menu__divider {
    height: 1px;
    background-color: #e6e6e6;
    margin: 20px 0 12px;
}

.rutehnika-menu__roots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.rutehnika-menu__roots-label {
    color: #888;
}

.rutehnika-menu__roots-sep {
    color: #c0c0c0;
}

.rutehnika-menu__root-link {
    color: inherit;
    text-decoration: none;
}

.rutehnika-menu__root-link:hover {
    text-decoration: underline;
}

.rutehnika-menu__catalog-all {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
}

.rutehnika-menu__catalog-all:hover {
    text-decoration: underline;
}
