/* ==========================================================================
   KNOWLEDGE BASE (VICTORIA'S SECRET) - PRIME LOOK
   Search Bar, Category Cards & Popular Articles Slider
   ========================================================================== */

/* 1. Основной контейнер */
.vs-kb-container {
    width: 100%;
    margin: 0 auto;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1d1d1b;
    box-sizing: border-box;
}

.vs-kb-container * {
    box-sizing: border-box;
}

/* Заголовки */
.vs-kb-top-header {
    margin-bottom: 70px;
}

.vs-kb-main-title {
    font-size: 26px;
    font-weight: 700;
    color: #1d1d1b;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.vs-kb-main-subtitle {
    font-size: 13px;
    color: #8c8c8c;
    margin: 0;
    line-height: 1.5;
}

/* 2. Поиск, логотип бренда и статистика */
.vs-search-brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 44px;
    width: 100%;
}

/* Форма поиска */
form.vs-search-box,
.vs-search-box {
    position: relative;
    flex: 1 1 auto;
    max-width: 555px;
    min-width: 200px;
    margin: 0;
    padding: 0;
}

.vs-kb-container .vs-search-input {
    box-sizing: border-box !important;
    width: 100%;
    max-width: 555px;
    height: 64px;

    border-radius: 2px;
    border: 1px solid #ECECEC;
    background-color: #FAFAFA;
    padding: 0 46px 0 16px;
    font-size: 13.5px;
    color: #1d1d1b;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.vs-search-input:focus {
    border-color: #1d1d1b;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.vs-search-input::placeholder {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
}

.vs-search-btn {
    position: absolute;
    right: 20px;
    top: 0;
    height: 100%;
    width: 46px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.vs-search-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.vs-search-btn:hover .vs-search-icon {
    opacity: 1;
    transform: scale(1.08);
}

/* Логотип Victoria's Secret */
.vs-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    margin: 0 10px;
    user-select: none;
}

.vs-brand-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Блок статистики (справа) */
.vs-info-stats {
    display: flex;
    align-items: center;
    gap: 20px;

    color: #333;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;

    white-space: nowrap;
    flex-shrink: 0;
}

.vs-stat-dot {
    width: 8px;
    height: 8px;
    background-color: #F4C6CF;
    display: inline-block;
    flex-shrink: 0;
}

/* 3. Сетка из 6 основных карточек категорий */
.vs-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 100px;
}

/* Карточка категории */
.vs-card {
    background: #ffffff;
    border: 1px solid #ECECEC;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    height: 590px;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
}

/* Блок изображения */
.vs-card-img-link {
    display: block;
    width: 100%;
    height: 491px;
    text-decoration: none;
    overflow: hidden;
}

.vs-card-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background-color: #ECECEC;
}

.vs-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Текстовая часть карточки (раскрывается поверх изображения) */
.vs-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    z-index: 2;
    border-top: 1px solid #ECECEC;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease;
}

.vs-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.vs-card-meta {
    display: flex;
    flex-direction: column;
}

.vs-card-title {
    color: #333;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 10px;
}

.vs-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vs-card-title a:hover {
    color: #000000;
}

.vs-card-count {
    color: #777;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

/* Круглая кнопка со стрелкой */
.vs-card-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #F4C6CF;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: scale(0.75) translateX(-4px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.vs-card-arrow-btn svg {
    stroke: #ffffff;
}

/* ==========================================================================
   Выпадающий список подкатегорий при наведении (Hover)
   Раскрывается поверх изображения с плавной анимацией и кастомным скроллбаром
   ========================================================================== */
.vs-card-sublinks {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(8px);
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #F4C6CF #F5F5F5;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease,
        transform 0.35s ease,
        margin-top 0.35s ease;
    margin-top: 0;
}

/* Эффект наведения только для устройств с указателем (мышь) */
@media (hover: hover) and (pointer: fine) {
    .vs-card:hover .vs-card-arrow-btn {
        opacity: 1;
        transform: scale(1) translateX(0);
    }

    .vs-card-arrow-btn:hover {
        background-color: #e5919f;
        transform: scale(1.08);
    }

    .vs-card:hover .vs-card-sublinks {
        max-height: 240px;
        opacity: 1;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        transform: translateY(0);
        margin-top: 30px;
    }
}

/* Кастомный скроллбар для Webkit (Chrome, Safari, Edge) */
.vs-card-sublinks::-webkit-scrollbar {
    width: 4px;
}

.vs-card-sublinks::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 4px;
}

.vs-card-sublinks::-webkit-scrollbar-thumb {
    background: #F4C6CF;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.vs-card-sublinks::-webkit-scrollbar-thumb:hover {
    background: #e5919f;
}

.vs-card-sublinks ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vs-card-sublinks ul li {
    margin: 0;
}

.vs-card-sublinks li a {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: #777;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    transition: all .3s ease;
}

.vs-card-sublinks li a:hover {
    color: #333;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

/* Розовый маркер (квадратная иконка) */
.vs-sublink-square {
    width: 8px;
    height: 8px;
    background-color: #F4C6CF;
    display: inline-block;
    flex-shrink: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Сообщение при отсутствии результатов поиска */
.vs-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #777;
    font-size: 16px;
    background: #fafafa;
    border: 1px dashed #ddd;
    display: none;
}

/* ==========================================================================
   4. ПОПУЛЯРНОЕ СЕЙЧАС (SWIPER SLIDER)
   ========================================================================== */
.vs-popular-section {
    padding: 80px 108px;
    border-top: 1px solid #F2F2F2;
    border-bottom: 1px solid #F2F2F2;
    background: #F8F8F8;
    margin-bottom: 0;

    .maxwidth-theme {
        background: none;
        border: none;
    }
}

.vs-popular-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.vs-popular-title-group {
    display: flex;
    flex-direction: column;
}

.vs-popular-title {
    color: #333;
    font-size: 34px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 14px 0;
    font-family: inherit;
}

.vs-popular-subtitle {
    color: #B6B5B5;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0;
}

.vs-popular-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Кнопки навигации слайдера (Влево / Вправо) */
.vs-swiper-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    background-color: #333;
    color: #ffffff;
    padding: 0;
    outline: none;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.vs-swiper-btn svg {
    stroke: currentColor;
}

.vs-swiper-btn:not(.swiper-button-disabled):hover {
    background-color: #000000;
    transform: scale(1.06);
}

.vs-swiper-btn.swiper-button-disabled {
    background-color: rgba(51, 51, 51, 0.20);
    color: #FFF;
    cursor: default;
    pointer-events: none;
}

/* Swiper Container & Slides */
.vs-popular-swiper {
    width: 100%;
    overflow: hidden;
}

.vs-popular-swiper .swiper-slide {
    height: auto;
}

/* Карточка популярной статьи */
.vs-popular-card {
    border-radius: 4px;
    border: 1px solid #ECECEC;
    background: #FFF;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
    padding: 20px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.vs-popular-card-img-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.vs-popular-card-img-box {
    width: 100%;
    height: 323px;
    overflow: hidden;
    background: #FFF;
    border-radius: 2px 2px 0 0;
    position: relative;
}

.vs-popular-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.vs-popular-card-body {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vs-popular-card-title {
    color: #333;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    margin: 0;
    transition: color 0.2s ease;
}

/* ==========================================================================
   АДАПТИВНОСТЬ / RESPONSIVE
   ========================================================================== */
@media (max-width: 1350px) {
    .vs-search-brand-bar {
        gap: 16px;
    }

    .vs-info-stats {
        gap: 12px;
        font-size: 13px;
    }
}

@media (max-width: 1180px) {
    .vs-search-brand-bar {
        gap: 12px;
    }

    .vs-brand-logo img {
        max-width: 180px;
    }

    .vs-info-stats {
        gap: 10px;
        font-size: 12px;
    }
}

@media (max-width: 1024px) {
    .vs-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .vs-search-brand-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .vs-brand-logo {
        order: 1;
        width: 100%;
        margin-bottom: 4px;
        text-align: center;
    }

    .vs-brand-logo img {
        max-width: 220px;
        margin: 0 auto;
    }

    .vs-search-box {
        order: 2;
        width: 100%;
        max-width: 100%;
    }

    .vs-kb-container .vs-search-input {
        width: 100%;
        max-width: 100%;
    }

    .vs-info-stats {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        font-size: 13px;
    }

    .vs-popular-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .vs-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        touch-action: pan-y;
    }

    .vs-card {
        height: auto;
        touch-action: pan-y;
    }

    .vs-card-img-link {
        height: 340px;
        touch-action: pan-y;
    }

    .vs-card-sublinks {
        display: none !important;
        pointer-events: none !important;
    }

    .vs-card-arrow-btn {
        display: none !important;
    }

    .vs-popular-section {
        padding: 40px 20px;
    }

    .vs-popular-title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {

    /* 1. Заголовки (Mobile) */
    .vs-kb-top-header {
        margin-bottom: 24px;
    }

    .vs-kb-container {
        width: 109%;
        transform: translateX(-16px);
        padding: 0 20px;
    }

    .vs-kb-main-title {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .vs-kb-main-subtitle {
        font-size: 12px;
        line-height: 1.5;
    }

    /* 2. Поиск и логотип бренда (Mobile: 1. Логотип, 2. Статистика, 3. Поиск) */
    .vs-search-brand-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-bottom: 24px;
    }

    .vs-brand-logo {
        order: 1;
        width: 100%;
        margin-bottom: 12px;
        text-align: center;
    }

    .vs-brand-logo img {
        max-width: 220px;
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .vs-info-stats {
        order: 2;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 14px;
        color: #333;
        font-weight: 500;
        font-size: 12px;
    }

    /* Скрытие 3-го пункта статистики на мобильных экранах */
    .vs-info-stats .vs-stat-item:nth-child(5),
    .vs-info-stats .vs-stat-dot:nth-child(4) {
        display: none;
    }

    .vs-search-box {
        order: 3;
        width: 100%;
        margin: 0;
        margin-left: -20px;
    }

    .vs-kb-container .vs-search-input {
        width: 100%;
        height: 56px;
        border-radius: 2px;
        border: 1px solid #ECECEC;
        background: #FAFAFA;
        padding: 16px;
        font-size: 14px;
        margin-left: -10px;
    }

    .topic {
        padding: 0 !important;
        margin-bottom: 5px;
    }

    .topic #pagetitle {
        font-size: 16px !important;
        line-height: normal !important;
    }

    .vs-article-img-link .vs-article-img-box {
        height: 272px;
    }

    .vs-articles-col .vs-article-card {
        padding: 20px 20px 0 20px;
        border-radius: 4px;
        border: 1px solid #ECECEC;
        background: #FAFAFA;
    }

    .vs-article-body {
        padding: 10px 0 !important;
    }

    .vs-article-body .vs-article-title {
        font-size: 16px !important;
        font-style: normal;
        font-weight: 500;
        line-height: 150%;
    }

    .vs-articles-col .vs-articles-grid {
        gap: 10px;
    }

    .vs-articles-col .vs-pagination {
        margin-top: 36px;
        margin-bottom: 0;
        gap: 24px;
    }

    .vs-search-btn {
        right: 14px;
        width: 24px;
    }

    .vs-search-btn img {
        margin: 0;
    }

    .vs-search-icon {
        width: 20px;
        height: 20px;
        opacity: 1;
    }

    /* 3. Сетка карточек на мобильных экранах (В одну колонку) */
    .vs-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 50px;
        touch-action: pan-y;
    }

    .vs-card {
        height: auto;
        border-radius: 2px;
        background: #ffffff;
        border: 1px solid #ECECEC;
        display: flex;
        flex-direction: column;
        touch-action: pan-y;
    }

    .vs-card-img-link {
        width: 100%;
        height: 296px;
        display: block;
        touch-action: pan-y;
    }

    .vs-card-img-wrapper {
        width: 100%;
        height: 100%;
        touch-action: pan-y;
    }

    .vs-card-body {
        position: static;
        padding: 16px;
        border-top: 1px solid #ECECEC;
        touch-action: pan-y;
    }

    .vs-cards-grid .vs-card-body .vs-card-title {
        font-size: 16px !important;
        color: #333;
        font-weight: 600;
        line-height: normal;
        margin-bottom: 4px;
    }

    .vs-card-count {
        color: #777;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        text-decoration-line: underline;
        text-decoration-style: solid;
        text-decoration-skip-ink: auto;
        text-decoration-thickness: auto;
        text-underline-offset: auto;
        text-underline-position: from-font;
    }

    .vs-card-arrow-btn {
        display: none !important;
    }

    /* Подкатегории на мобильных экранах */
    .vs-card-sublinks {
        display: none !important;
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        margin-top: 0 !important;
        pointer-events: none !important;
    }

    /* 4. Секция "Популярное сейчас" на мобильных экранах */
    .vs-popular-section {
        padding: 50px 0;
    }

    .vs-popular-section .maxwidth-theme {
        display: flex;
        flex-direction: column;
    }

    .vs-popular-header {
        display: contents;
    }

    .vs-popular-title-group {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .vs-popular-title {
        color: #333;
        font-size: 16px !important;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        margin-bottom: 14px;
    }

    .vs-popular-subtitle {
        color: #B6B5B5;
        font-size: 13px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        margin: 0;
    }

    .vs-popular-swiper {
        order: 2;
        width: 100%;
    }

    .vs-popular-card {
        padding: 20px;
        border-radius: 4px;
        border: 1px solid #ECECEC;
        background: #FFF;
    }

    .vs-popular-card-img-box {
        width: 100%;
        height: 272px;
        background: #FFF;
        border-radius: 2px 2px 0 0;
    }

    .vs-popular-card-body {
        padding: 10px 0;
    }

    .vs-popular-card-title {
        color: #333;
        font-size: 16px !important;
        font-style: normal;
        font-weight: 500;
        line-height: 150%;
    }

    /* Кнопки навигации под карточкой по центру */
    .vs-popular-nav {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 14px;
        margin-top: 10px;
    }

    .vs-swiper-btn {
        width: 48px;
        height: 48px;
    }

    .vs-swiper-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   5. Страница каталога статей (primelook2.html)
   Сетка 3x3 карточек статей + Аккордеон категорий справа + Пагинация
   ========================================================================== */
ul:not([id*="bx_"])>li:before {
    display: none;
}

/* Мобильный верхний бар (Кнопка назад + Разделы) */
.vs-mobile-top-bar {
    display: none;
}

.vs-mobile-sidebar-header {
    display: none;
}

.vs-kb-catalog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 411px;
    gap: 21px;
    align-items: start;
    margin-bottom: 80px;
    width: 100%;
}

.vs-articles-col {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Сетка карточек 3 колонки */
.vs-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* Карточка статьи */
.vs-article-card {
    border-radius: 4px;
    border: 1px solid #ECECEC;
    background: #FAFAFA;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all .3s ease;
}

.vs-article-card:hover {
    border-radius: 4px;
    border: 1px solid #DBDBDB;
    background: #FAFAFA;
}

.vs-article-title a {
    transition: all .3s ease;
}

.vs-article-card:hover .vs-article-title a {
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.vs-article-img-link {
    display: block;
    width: 100%;
    text-decoration: none;
    overflow: hidden;
    border-radius: 2px;
}

.vs-article-img-box {
    width: 100%;
    height: 323px;
    background-color: #FAFAFA;
    overflow: hidden;
    position: relative;
    border-radius: 2px 2px 0 0;
}

.vs-article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.vs-article-body {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vs-article-title {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
}

.vs-article-title a {
    color: #1d1d1b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vs-article-card:hover .vs-article-title a,
.vs-article-title a:hover {
    color: #000000;
}

/* Пагинация */
.vs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
    margin-bottom: 20px;
}

.vs-page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 2px;
    color: #333;
    text-align: center;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.vs-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 20px;
    border-radius: 2px;
    color: #333;
    text-align: center;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.vs-page-number:hover {
    background: #333;
    color: #FFF;
}

.vs-page-number.active {
    background: #333;
    color: #FFF;
    cursor: default;
}


/* Правый сайдбар с аккордеоном */
.vs-kb-sidebar {
    width: 100%;
    position: sticky;
    top: 84px;
}

.vs-sidebar-accordion {
    background: #FFFFFF;
    border: 1px solid #ECECEC;
    border-radius: 4px;
    overflow: hidden;
}

.vs-accordion-item {
    border-bottom: 1px solid #ECECEC;
}

.vs-accordion-item:last-child {
    border-bottom: none;
}

.vs-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 24px 20px;
    box-sizing: border-box;
}

.vs-accordion-title-link {
    color: #333;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-decoration: none;
    transition: color 0.2s ease;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.vs-accordion-title-link:hover {
    color: #000;
    text-decoration: underline;
}

.vs-accordion-item.is-open .vs-accordion-title-link {
    color: #777;
}

.vs-accordion-item.is-open .vs-accordion-title-link:hover {
    color: #333;
}

.vs-accordion-arrow-btn {
    background: transparent;
    border: none;
    padding: 6px 4px 6px 16px;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333;
    outline: none;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.vs-accordion-arrow-btn:hover .vs-accordion-chevron path {
    fill: #000;
}

.vs-accordion-chevron {
    transition: transform 0.25s ease;
    stroke: #333333;
    flex-shrink: 0;
}

.vs-accordion-item.is-open .vs-accordion-chevron {
    transform: rotate(90deg);
}

.vs-accordion-item:not(.is-open) .vs-accordion-chevron {
    transform: rotate(0deg);
}

.vs-accordion-collapse {
    padding: 0px 20px 20px 20px;
    display: block;
}

.vs-accordion-item:not(.is-open) .vs-accordion-collapse {
    display: none;
}

.vs-sidebar-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vs-sidebar-sublist li {
    margin: 0;
    padding: 0;
}

.vs-sidebar-sublist li a {
    display: flex;
    align-items: center;
    color: #777;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-decoration: none;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.vs-sidebar-sublist li a:hover,
.vs-sidebar-sublist li a.is-active {
    color: #333;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.vs-sublist-dot {
    width: 8px;
    height: 8px;
    background-color: #F4C6CF;
    display: inline-block;
    margin-right: 20px;
    flex-shrink: 0;
}

/* ==========================================================================
   Адаптивность каталога статей (Mobile Responsive)
   ========================================================================== */
@media (max-width: 1199px) {
    .vs-kb-catalog-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 20px;
    }

    .vs-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .vs-article-img-box {
        height: 260px;
    }
}

@media (max-width: 991px) {

    /* Верхняя секция заголовка и хлебных крошек */
    .page-top {
        padding-top: 10px;
        padding-bottom: 0;
    }

    #pagetitle {
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 140% !important;
        color: #333333 !important;
        margin: 0 0 6px 0 !important;
    }

    .breadcrumbs {
        font-size: 12px !important;
        color: #888888 !important;
        line-height: 1.4 !important;
        margin-bottom: 18px !important;
    }

    .breadcrumbs a,
    .breadcrumbs span {
        font-size: 12px !important;
        color: #888888 !important;
    }

    /* Верхний мобильный бар */
    .vs-mobile-top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
        width: 100%;
    }

    .vs-mobile-back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        color: #333;
        text-decoration: none;
        padding: 0;
    }

    .vs-mobile-sections-btn {
        display: inline-flex;
        align-items: center;
        gap: 0;
        padding: 10px 10px 10px 4px;
        border-radius: 4px;
        border: 1px solid #CCC;
        color: #333;
        font-size: 15px;
        font-style: normal;
        font-weight: 500;
        line-height: 150%;
        cursor: pointer;
        transition: all 0.2s ease;
        background: none;
    }

    .vs-mobile-sections-btn:hover {
        background: #FAFAFA;
        border-color: #DBDBDB;
    }

    /* Мобильный сайдбар (Экран "Разделы") */
    .vs-kb-sidebar {
        display: none;
    }

    /* Когда активен режим "Разделы" - скрываем контент и показываем сайдбар */
    body.vs-sections-mode .top-block-wrapper,
    body.vs-sections-mode .vs-search-brand-bar,
    body.vs-sections-mode .vs-articles-col,
    body.vs-sections-mode .vs-article-detail-content,
    body.vs-sections-mode .vs-related-section,
    body.vs-sections-mode .vs-products-section,
    body.vs-sections-mode .vs-sidebar-promo-card,
    body.vs-sections-mode #footer,
    body.vs-sections-mode .scroll-to-top {
        display: none !important;
    }

    body.vs-sections-mode .vs-kb-catalog-layout,
    body.vs-sections-mode .vs-article-detail-layout {
        display: block !important;
        margin-bottom: 0 !important;
    }

    body.vs-sections-mode .vs-kb-sidebar {
        display: block !important;
        position: static !important;
        width: 100% !important;
        padding: 10px 0 60px 0 !important;
        background: #FFFFFF !important;
        z-index: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    body.vs-sections-mode .vs-mobile-sidebar-header {
        display: flex;
        align-items: center;
        margin-bottom: 16px;
        padding-top: 4px;
    }

    body.vs-sections-mode .vs-mobile-sidebar-back {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        padding: 4px 0;
        cursor: pointer;
        color: #333;
    }

    body.vs-sections-mode .vs-sidebar-accordion {
        border: none;
        border-radius: 0;
        background: transparent;
    }

    body.vs-sections-mode .vs-accordion-item {
        border: none;
        border-bottom: 1px solid #ECECEC;
    }

    body.vs-sections-mode .vs-accordion-header {
        padding: 18px 0;
    }

    .vs-accordion-item:first-of-type .vs-accordion-header {
        padding-top: 0;
    }

    body.vs-sections-mode .vs-accordion-title-link {
        font-size: 18px;
        font-weight: 600;
        font-family: Montserrat, sans-serif;
    }

    body.vs-sections-mode .vs-accordion-collapse {
        padding: 0 0 20px 0;
    }

    /* Сетка и карточки в одну колонку на мобильном */
    .vs-kb-catalog-layout {
        display: block;
        margin-bottom: 40px;
    }

    .vs-articles-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .vs-article-card {
        padding: 16px;
        background: #FAFAFA;
        border: 1px solid #ECECEC;
        border-radius: 4px;
    }

    .vs-article-img-box {
        height: 320px;
        background: #FAFAFA;
        border-radius: 2px 2px 0 0;
    }

    .vs-article-body {
        padding: 16px 0 4px 0;
    }


    .vs-article-title {
        font-size: 16px;
        line-height: 145%;
    }

    .vs-pagination {
        margin-top: 36px;
        margin-bottom: 30px;
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .vs-article-img-box {
        height: clamp(260px, 85vw, 340px);
    }
}

/* ==========================================================================
   6. Детальная страница статьи (primelook3.html)
   Контент статьи + Таблица + Совет + Список + Промо-баннер + Слайдеры
   ========================================================================== */

/* Макет детальной страницы */
.vs-article-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 411px;
    gap: 163px;
    align-items: start;
    width: 100%;
}

.vs-article-detail-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Мета-информация (Дата и время чтения) */
.vs-article-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    color: #777;
    font-weight: 500;
}

.vs-article-detail-meta .vs-meta-square {
    width: 8px;
    height: 8px;
    background-color: #F4C6CF;
    display: inline-block;
    flex-shrink: 0;
}

/* Текст статьи */
.vs-article-detail-content p {
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    color: #333333;
    margin: 0 0 27px 0;
}

/* Заголовки разделов в статье */
.vs-article-detail-content h2,
.vs-article-detail-content h3 {
    font-family: Montserrat, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    color: #333333;
    margin: 44px 0 24px 0;
}

/* Изображение внутри статьи */
.vs-article-detail-content img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 2px;
    margin: 24px 0 44px 0;
}

/* Таблица соответствия размеров */
.vs-article-detail-content table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: Montserrat, sans-serif;
    border: none;
    margin: 0 0 44px 0;
}

.vs-article-detail-content table thead tr th {
    background: transparent;
    color: #333333;
    font-weight: 500;
    font-size: 16px;
    line-height: normal;
    padding: 16px 24px;
    border: none;
    border-bottom: 1px solid #777777;
    white-space: nowrap;
}

.vs-article-detail-content table tbody tr td {
    color: #333333;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    padding: 18px 24px;
    border: none;
    white-space: nowrap;
}

.vs-article-detail-content table tbody tr:nth-child(even) {
    background-color: #FAFAFA;
}

.vs-article-detail-content table tbody tr:nth-child(odd) {
    background-color: #FFFFFF;
}

/* Блок "Совет" (Callout box / Blockquote) */
.vs-article-detail-content blockquote {
    border-left: 2px solid #F4C6CF;
    background: #FAFAFA;
    padding: 24px;
    margin: 0 0 44px 0;
}

.vs-article-detail-content blockquote h4,
.vs-article-detail-content blockquote h3,
.vs-article-detail-content blockquote strong {
    color: #333;
    font-family: Montserrat, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0 0 24px 0;
    display: block;
}

.vs-article-detail-content blockquote p {
    color: #333;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0 !important;
}

/* Список ошибок при замере */
.vs-article-detail-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 44px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vs-article-detail-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    color: #333;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0;
    padding: 0;
}

.vs-article-detail-content ul li::before {
    content: "" !important;
    width: 8px;
    height: 8px;
    background: #F4C6CF;
    display: inline-block !important;
    margin-top: 8px;
    flex-shrink: 0;
}

/* Промо-карточка в правом сайдбаре */
.vs-sidebar-promo-card {
    border-radius: 2px;
    border-right: 1px solid #ECECEC;
    border-bottom: 1px solid #ECECEC;
    border-left: 1px solid #ECECEC;
    overflow: hidden;
    margin-top: 40px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: block;
}

.vs-sidebar-promo-img-box {
    width: 100%;
    height: 370px;
    overflow: hidden;
    border-radius: 2px 2px 0 0;
    border-top: 1px solid #ECECEC;
    border-right: 1px solid #ECECEC;
    border-left: 1px solid #ECECEC;
    background: lightgray;
}

.vs-sidebar-promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}

.vs-sidebar-promo-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 11.5px;
}

.vs-sidebar-promo-title {
    color: #333;
    font-family: Montserrat, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}

.vs-sidebar-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    transition: color 0.2s ease;
    margin-top: 4px;
}


/* ==========================================================================
   Секции слайдеров внизу детальной страницы ("Читайте также" и "Популярные товары")
   ========================================================================== */
.vs-related-section {
    padding: 80px 0;
    border-top: 1px solid #ECECEC;
    border-bottom: 1px solid #ECECEC;
    background: #F8F8F8;
    width: 100%;
}

.vs-products-section {
    padding: 80px 0;
    background: #FFFFFF;
    border-bottom: 1px solid #ECECEC;
    width: 100%;
    margin-bottom: 0;
}

/* Swiper контейнеры для слайдеров */
.vs-related-swiper,
.vs-products-swiper {
    width: 100%;
    overflow: hidden;
}

.vs-related-swiper .swiper-slide,
.vs-products-swiper .swiper-slide {
    height: auto;
}

/* Карточка товара в слайдере */
.vs-product-card {
    border-radius: 2px;
    border: 1px solid #ECECEC;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vs-product-card:hover {
    border-color: #DBDBDB;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.vs-product-img-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.vs-product-img-box {
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #F9F9F9;
    position: relative;
}

.vs-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}

.vs-product-card:hover .vs-product-img {
    transform: scale(1.04);
}

.vs-product-body {
    padding: 16px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vs-product-title {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    color: #333333;
    margin: 0 0 10px 0;
}

.vs-product-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vs-product-title a:hover {
    color: #000000;
    text-decoration: underline;
}

.vs-product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Montserrat, sans-serif;
    font-size: 11px;
    color: #999999;
    margin-bottom: 14px;
}

.vs-product-stock {
    color: #388E3C;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vs-stock-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #388E3C;
    display: inline-block;
}

.vs-product-art {
    color: #999999;
}

.vs-product-price {
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin-top: auto;
}

/* ==========================================================================
   Адаптивность для детальной статьи (primelook3.html)
   ========================================================================== */
@media (max-width: 991px) {

    /* Заголовок страницы */
    #pagetitle.vs-article-detail-pagetitle {
        font-size: 20px !important;
        line-height: 130% !important;
        font-weight: 700 !important;
        color: #221D1D !important;
        margin-bottom: 8px !important;
    }

    .vs-article-detail-layout {
        display: block;
        margin-bottom: 30px;
    }

    /* Мета-информация */
    .vs-article-detail-meta {
        margin-bottom: 14px;
        gap: 20px;
        font-size: 13px;
    }

    .vs-article-detail-meta .vs-meta-square {
        width: 8px;
        height: 8px;
    }

    /* Текст статьи */
    .vs-article-detail-content p {
        font-size: 15px;
        font-weight: 400;
        line-height: 150%;
        color: #333333;
        margin: 0 0 22.5px 0;
    }

    /* Заголовки разделов в статье */
    .vs-article-detail-content h2,
    .vs-article-detail-content h3 {
        font-size: 16px;
        font-weight: 600;
        color: #333333;
        margin: 24px 0 14px 0;
        line-height: normal;
    }

    /* Главное изображение статьи */
    .vs-article-detail-content img {
        margin: 14px 0 24px 0;
        border-radius: 2px;
    }

    /* Таблица соответствия */
    .vs-article-detail-content table {
        margin-bottom: 24px;
    }

    .vs-article-detail-content table thead tr th {
        padding: 14px 0;
        font-size: 14px;
        font-weight: 500;
    }

    .vs-article-detail-content table tbody tr td {
        padding: 14px 0;
        font-size: 14px;
    }

    /* Блок "Совет" (Blockquote) */
    .vs-article-detail-content blockquote {
        border-left: 2px solid #F4C6CF;
        background: transparent;
        padding: 4px 0 4px 16px;
        margin: 28px 0 0 0;
    }

    .vs-article-detail-content blockquote h4,
    .vs-article-detail-content blockquote h3,
    .vs-article-detail-content blockquote strong {
        font-size: 16px;
        font-weight: 600;
        color: #333333;
        margin: 0 0 10px 0;
    }

    .vs-article-detail-content blockquote p {
        font-size: 15px;
        line-height: 150%;
        color: #333;
        margin: 0 !important;
    }

    /* Список ошибок при замере */
    .vs-article-detail-content ul {
        gap: 14px;
        margin: 14px 0 0 0 !important;
    }

    .vs-article-detail-content ul li {
        font-size: 15px;
        line-height: 150%;
        color: #333;
        gap: 14px;
    }

    .vs-article-detail-content ul li::before {
        width: 8px;
        height: 8px;
        margin-top: 6px;
    }

    /* Сайдбар на мобильном: скрываем аккордеон в основном потоке, показываем промо-карточку */
    .vs-article-detail-layout .vs-kb-sidebar {
        display: block !important;
        width: 100% !important;
        margin-top: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .vs-article-detail-layout .vs-kb-sidebar .vs-sidebar-accordion,
    .vs-article-detail-layout .vs-kb-sidebar .vs-mobile-sidebar-header {
        display: none;
    }

    /* Промо-карточка под статьей на мобильном */
    .vs-sidebar-promo-card {
        display: block;
        width: 100%;
        margin-top: 36px;
        margin-bottom: 0;
        border: 1px solid #ECECEC;
        border-radius: 4px;
        overflow: hidden;
        background: #FFFFFF;
    }

    .vs-sidebar-promo-img-box {
        width: 100%;
        height: 302px;
        border: none;
        border-radius: 0;
        border-radius: 2px 2px 0 0;
        border-top: 1px solid #ECECEC;
        border-right: 1px solid #ECECEC;
        border-left: 1px solid #ECECEC;
    }

    .vs-sidebar-promo-body {
        padding: 16px;
    }

    .vs-sidebar-promo-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0 0 0 0;
    }

    .vs-sidebar-promo-link {
        font-size: 14px;
        font-weight: 500;
        color: #333333;
        text-decoration: underline;
    }

    /* Когда активен режим "Разделы" на детальной странице */
    body.vs-sections-mode .vs-article-detail-layout .vs-kb-sidebar .vs-sidebar-accordion {
        display: block !important;
    }

    body.vs-sections-mode .vs-article-detail-layout .vs-kb-sidebar .vs-mobile-sidebar-header {
        display: flex !important;
    }

    body.vs-sections-mode .vs-article-detail-layout .vs-kb-sidebar .vs-sidebar-promo-card {
        display: none !important;
    }

    /* ==========================================
       Слайдеры внизу страницы на мобильных экранах
       ========================================== */
    .vs-related-section,
    .vs-products-section {
        padding: 44px 0;
    }

    .vs-related-section .maxwidth-theme,
    .vs-products-section .maxwidth-theme {
        display: flex;
        flex-direction: column;
    }

    .vs-related-section .vs-popular-header,
    .vs-products-section .vs-popular-header {
        display: contents;
    }

    .vs-related-section .vs-popular-title-group,
    .vs-products-section .vs-popular-title-group {
        order: 1;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .vs-related-section .vs-popular-title,
    .vs-products-section .vs-popular-title {
        font-size: 18px !important;
        font-weight: 700;
        color: #333333;
        margin: 0;
    }

    .vs-related-section .vs-popular-subtitle,
    .vs-products-section .vs-popular-subtitle {
        display: none;
    }

    .vs-related-swiper,
    .vs-products-swiper {
        order: 2;
        width: 100%;
    }

    .vs-related-section .vs-popular-card {
        padding: 16px;
        border-radius: 4px;
        border: 1px solid #ECECEC;
        background: #FFFFFF;
    }

    .vs-related-section .vs-popular-card-img-box {
        height: 320px;
        background: #FFFFFF;
    }

    .vs-related-section .vs-popular-card-body {
        padding: 14px 0 0 0;
    }

    .vs-related-section .vs-popular-card-title {
        font-size: 16px !important;
        font-weight: 500;
        line-height: 150%;
        color: #333333;
    }

    .vs-product-card {
        border-radius: 4px;
        border: 1px solid #ECECEC;
        background: #FFFFFF;
    }

    .vs-product-img-box {
        height: 340px;
        background: #FAFAFA;
    }

    .vs-product-body {
        padding: 16px 16px 20px 16px;
    }

    .vs-product-title {
        font-size: 14px;
        font-weight: 500;
        line-height: 140%;
        margin-bottom: 8px;
    }

    .vs-product-meta {
        font-size: 11px;
        gap: 8px;
        margin-bottom: 12px;
    }

    .vs-product-stock {
        color: #388E3C;
        font-weight: 500;
    }

    .vs-product-price {
        font-size: 18px;
        font-weight: 700;
        color: #333333;
    }

    .vs-related-section .vs-popular-nav,
    .vs-products-section .vs-popular-nav {
        order: 3;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 14px;
        margin-top: 24px;
        width: 100%;
    }

    .vs-swiper-btn {
        width: 44px;
        height: 44px;
    }
}