/* Company section sidebar — 15.09.2026 */
.vsh-company-shell,
.vsh-company-archive-shell {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    width: 100%;
}

.vsh-company-shell {
    margin: 28px 0 72px;
}

.vsh-company-main,
.vsh-company-archive-main {
    min-width: 0;
}

.vsh-company-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    width: 100%;
    transition: top .3s ease;
}

body:has(.site-header__inner.nav-down) .vsh-company-sidebar {
    top: calc(8.5rem + 16px);
}

/* Keep the sidebar rhythm identical to the Buyers section. */
.vsh-company-sidebar-head {
    display: none !important;
}

.vsh-company-sidebar::before {
    content: "Разделы";
    display: block;
    margin: 0 0 16px;
    padding: 0 2px 0 16px;
    color: #70451f;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.vsh-company-sidebar-nav {
    display: grid;
    gap: 7px;
}

.vsh-company-sidebar-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    gap: 12px;
    align-items: center;
    min-height: 52px;
    padding: 11px 13px 11px 15px;
    border: 1px solid #eadfd4;
    border-radius: 11px;
    background: #fffdf9;
    color: #3f2518 !important;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.vsh-company-sidebar-item:hover {
    border-color: #d8bea2;
    background: #fff8f1;
    color: #70451f !important;
}

.vsh-company-sidebar-chevron {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f7eadc;
}

.vsh-company-sidebar-chevron::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid #70451f;
    border-bottom: 1.5px solid #70451f;
    transform: translate(-62%, -50%) rotate(-45deg);
}

.vsh-company-sidebar-item.is-active {
    border-color: #d8bea2;
    border-left: 3px solid #a8662f;
    padding-left: 13px;
    background: #f3e2d0;
    color: #70451f !important;
}

body.category-news main.site__main {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.category-news .vsh-company-archive-shell {
    max-width: 100rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 4.5rem;
}

body.category-news .vsh-company-archive-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

body.category-news .vsh-company-archive-main > .page-header,
body.category-news .vsh-company-archive-main > .vsh-news-intro,
body.category-news .vsh-company-archive-main > .posts-navigation,
body.category-news .vsh-company-archive-main > .vsh-company-breadcrumbs {
    grid-column: 1 / -1;
}

/* Breadcrumbs use the same shared component as Buyers / Solutions / FAQ. */
.vsh-company-breadcrumbs {
    /* Layout and typography come from .vsh-page-breadcrumbs in shared-ui.css. */
}

@media (max-width: 1439px) {
    body:has(.site-header__inner.nav-down) .vsh-company-sidebar {
        top: calc(7.5rem + 16px);
    }
}

@media (max-width: 1279px) {
    body:has(.site-header__inner.nav-down) .vsh-company-sidebar {
        top: calc(5rem + 16px);
    }
}

@media (max-width: 1180px) {
    .vsh-company-shell,
    .vsh-company-archive-shell {
        grid-template-columns: 245px minmax(0, 1fr);
        gap: 20px;
    }

    .vsh-company-sidebar-item {
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .vsh-company-shell,
    .vsh-company-archive-shell {
        display: block;
    }

    .vsh-company-shell {
        margin: 20px 0 48px;
    }

    body.category-news .vsh-company-archive-shell {
        padding-top: 1.25rem;
        padding-bottom: 3.5rem;
    }

    .vsh-company-sidebar,
    body:has(.site-header__inner.nav-down) .vsh-company-sidebar {
        position: static;
        top: auto;
        margin: 0 0 18px;
        transition: none;
    }

    .vsh-company-sidebar::before,
    body.vsh-company-section:not(.page-id-347) .vsh-company-sidebar::before {
        margin-top: 0;
        margin-bottom: 8px;
        padding-left: 0;
        font-size: 13px;
    }

    .vsh-company-sidebar-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 0 0 5px;
        scrollbar-width: none;
    }

    .vsh-company-sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .vsh-company-sidebar-item {
        flex: 0 0 auto;
        display: block;
        min-height: 0;
        padding: 9px 13px;
        border-radius: 999px;
        font-size: 13px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .vsh-company-sidebar-item.is-active {
        border: 1px solid #d8bea2;
        padding: 9px 13px;
    }

    .vsh-company-sidebar-chevron {
        display: none;
    }

    body.category-news .vsh-company-archive-main {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
}

@media (max-width: 600px) {
    body.category-news .vsh-company-archive-shell {
        padding-right: 1rem;
        padding-left: 1rem;
    }

}
