/* RAROK layout corrections, 11 November 2026. */
html { height: auto; min-height: 100%; }
body.base-template, body.main-template {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    margin: 0 !important;
}
body.base-template { padding-top: var(--site-header-height, 130px); }
body > .footer { flex-shrink: 0; margin-top: auto; }
body > .breadcrumbs-section, body > .container, body > section { flex-shrink: 0; }

.header, header.header.mobile-fixed {
    background: rgba(49, 65, 85, .36);
    -webkit-backdrop-filter: blur(14px) saturate(110%);
    backdrop-filter: blur(14px) saturate(110%);
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 3px 16px rgba(15, 23, 34, .035);
}
.main-template .header, .main-template header.header.mobile-fixed {
    background: rgba(49, 65, 85, var(--header-glass-alpha, 0));
    -webkit-backdrop-filter: var(--header-glass-filter, none);
    backdrop-filter: var(--header-glass-filter, none);
    border-bottom-color: rgba(255, 255, 255, var(--header-glass-border, 0));
    box-shadow: 0 3px 16px rgba(15, 23, 34, var(--header-glass-shadow, 0));
}
.header .header__contacts-label, .header .header__logo-sub { color: #526070; }
.header .header__contacts-phone a, .header .header__contacts-mail a,
.header .header__callback { color: #263342; }
.header .header__contacts-phone a:hover, .header .header__contacts-mail a:hover,
.header .header__callback:hover { color: #377fc6; }
.header .icon-menu-burger__line, .header .icon-menu-burger::before,
.header .icon-menu-burger::after { background-color: #263342; }

@media (min-width: 1041px) {
    .header__nav ul ul {
        width: 860px;
        max-width: calc(100vw - 40px);
        box-sizing: border-box;
        left: 50%;
        transform: translateX(-50%);
        top: 100%;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, .12);
        box-shadow: 0 16px 32px rgba(0, 0, 0, .22);
    }
    .header__nav li:hover > ul, .header__nav li:focus-within > ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 16px;
        align-items: stretch;
    }
    .header__nav ul ul li { min-width: 0; margin: 0; padding: 0; }
    .header__nav ul ul a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        height: 100%;
        min-height: 76px;
        box-sizing: border-box;
        padding: 12px 16px;
        border-radius: 8px;
        line-height: 1.4;
        text-align: left;
        white-space: normal;
        overflow-wrap: break-word;
        transition: color .15s, background-color .15s;
    }
    .header__nav ul ul a:hover, .header__nav ul ul a:focus-visible {
        color: #8bc3ff;
        background: rgba(78, 145, 217, .13);
        outline-offset: -2px;
    }
}

.services-section + .callback-section { margin-top: clamp(40px, 5vw, 72px); }

.catalog-page .main-content { min-width: 0; }
.sidebar-catalog { flex: 0 0 290px; width: 290px; box-sizing: border-box; }
.sidebar-catalog .main-tabs__inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
    padding: 20px;
}
.sidebar-catalog .main-tabs__inner > a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border-radius: 7px;
    text-decoration: none;
}
.sidebar-catalog .main-tabs__inner > a:hover,
.sidebar-catalog .main-tabs__inner > a.active { background: rgba(78, 145, 217, .1); }
.sidebar-catalog .main-tabs__item { width: auto; margin: 0; }
.sidebar-catalog .main-tabs__item .main-tabs__item-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: break-word;
}
.sidebar-catalog .main-tabs__item .main-tabs__item-title:before {
    content: '';
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    margin-top: .55em;
    padding: 0;
    border-radius: 50%;
    background: #8b9cad;
}
@media (max-width: 1040px) {
    .header { padding: 18px 0; }
}
