/* =============================================
   BARS HOME PAGE - Custom Blocks
   ============================================= */

/* --- Общие стили --- */
.bars-section {
    width: 100%;
    overflow: hidden;
    padding: 8px 0;
}

/* Контейнер — совпадает с Bootstrap .container */
.bars-container {
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
@media (min-width: 768px)  { .bars-container { width: 750px; } }
@media (min-width: 992px)  { .bars-container { width: 970px; } }
@media (min-width: 1200px) { .bars-container { width: 1170px; } }
@media (min-width: 1345px) { .bars-container { width: 1340px; } }
@media (min-width: 1600px) { .bars-container { width: 1500px; } }

/* =============================================
   БЛОК 1: Слайдер категорий (Герой)
   ============================================= */

/* Внешняя секция — тёмный фон */
.bars-hero {
    background: #121315;
    width: 100%;
    padding: 16px 0;
    box-sizing: border-box;
}

.bars-hero__inner {
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 768px)  { .bars-hero__inner { width: 750px; } }
@media (min-width: 992px)  { .bars-hero__inner { width: 970px; } }
@media (min-width: 1200px) { .bars-hero__inner { width: 1170px; } }
@media (min-width: 1345px) { .bars-hero__inner { width: 1340px; } }
@media (min-width: 1600px) { .bars-hero__inner { width: 1500px; } }

/* Подложка слайдера — скруглённый контейнер */
.bars-hero__wrap {
    background: #2A2B2F;
    border-radius: 12px;
    width: 100%;
    height: 760px;
    overflow: hidden;
    position: relative;
}

/* Вьюпорт для скролла — занимает всю подложку */
.bars-hero__viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bars-hero__viewport:active { cursor: grabbing; }
.bars-hero__viewport::-webkit-scrollbar { display: none; }

/* Горизонтальная лента карточек */
.bars-hero__content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 12px;
    gap: 12px;
    width: max-content;
    will-change: transform;
    user-select: none;
}

/* Карточка 430×760 */
.bars-hero__card {
    width: 430px;
    height: 736px;
    flex-shrink: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
}

.bars-hero__card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Видео на второй карточке */
.bars-hero__video {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 430px;
    height: 760px;
    overflow: hidden;
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.bars-hero__video iframe {
    width: 430px !important;
    height: 760px !important;
    transform: none !important;
    display: block;
    pointer-events: none;
}

/* Затемнение сверху */
.bars-hero__card-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    background: linear-gradient(0turn, rgba(26,24,24,0) 0%, rgba(26,24,24,0.54) 100%);
    pointer-events: none;
}

/* Контент карточки */
.bars-hero__card-inner {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 24px 28px;
    pointer-events: none;
}

.bars-hero__card-title {
    font-size: 25px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.bars-hero__card-subtitle {
    font-size: 17px;
    font-weight: 400;
    color: #c9c9c9;
    line-height: 1.4;
}

/* Бейджи: 150×43px, 15px medium */
.bars-hero__card-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bars-hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 43px;
    padding: 0 16px;
    background: linear-gradient(0turn, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.25) 100%);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Старые стили слайдов */
.bars-hero__slide-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


/* =============================================
   БЛОК 2: Баннер-полоса
   ============================================= */
.bars-banner-strip {
    background: #121315;
    padding: 16px 0;
}

.bars-banner-strip__wrap {
    position: relative;
    overflow: hidden;
    min-height: 125px;
    border-radius: 10px;
}

.bars-banner-strip__flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 125px;
    position: relative;
    z-index: 1;
    padding: 20px 32px;
}

.bars-banner-strip__bg {
    position: absolute;
    inset: 0;
    background-image: url('/image/catalog/tilda/tild6463-3830-4661-a336-393139356263__aesthetic-background.jpg');
    background-size: 120% 265%;
    background-position: 26% 97%;
    opacity: 1;
}

.bars-banner-strip__content {
    position: relative;
    z-index: 1;
}

.bars-banner-strip__title {
    font-size: 30px;
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 6px 0;
}

.bars-banner-strip__subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
}

.bars-banner-strip__arrow {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}

.bars-banner-strip__arrow:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.bars-banner-strip__arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}

/* =============================================
   БЛОК 3: Популярные модели
   ============================================= */
.bars-popular {
    background: #121315;
    padding: 10px 0;
}

.bars-popular__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.bars-popular__title {
    font-size: 28px;
    font-weight: 500;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}

.bars-popular__all-link {
    font-size: 11px;
    font-weight: 600;
    color: #111;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.bars-popular__all-link:hover { color: #e02020; }

/* Белая подложка */
.bars-popular__box {
    background: #fff;
    border-radius: 10px;
    height: 875px;
    padding: 40px 40px 32px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

/* Табы */
.bars-popular__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    flex-shrink: 0;
}

.bars-popular__tab {
    padding: 6px 14px;
    border: none;
    background: #E6E6E6;
    color: #111;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.2s;
    white-space: nowrap;
}

.bars-popular__tab.active,
.bars-popular__tab:hover {
    background: #111;
    color: #fff;
}

/* Слайдер */
.bars-popular__slider {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.bars-popular__slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.bars-popular__slide.active {
    display: flex;
    align-items: stretch;
}

/* Инфо-карточка слева */
.bars-popular__card-info {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 32px;
    z-index: 2;
    position: relative;
}

.bars-popular__card-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.bars-popular__card-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.bars-popular__specs {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.bars-popular__specs li {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
}

.bars-popular__specs li span:last-child {
    font-weight: 600;
    color: #111;
    text-align: right;
}

.bars-popular__price {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin-bottom: 4px;
}

.bars-popular__price-note {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 20px;
}

.bars-popular__btns {
    display: flex;
    gap: 10px;
}

.bars-popular__btn-order {
    padding: 13px 24px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.bars-popular__btn-order:hover { background: #e02020; color: #fff; }

.bars-popular__btn-more {
    padding: 13px 24px;
    background: transparent;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.bars-popular__btn-more:hover { border-color: #111; }

/* Фото справа */
.bars-popular__card-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bars-popular__card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Нижняя панель */
.bars-popular__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    flex-shrink: 0;
}

.bars-popular__dots {
    display: flex;
    gap: 8px;
}

.bars-popular__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.2s;
}

.bars-popular__dot.active { background: #111; }

.bars-popular__go-btn {
    padding: 14px 28px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.2s;
}

.bars-popular__go-btn:hover { background: #e02020; color: #fff; }

/* =============================================
   БЛОК 4: Модельный ряд
   ============================================= */
.bars-lineup {
    background: #121315;
    padding: 10px 0;
}

.bars-lineup__box {
    background: #fff;
    border-radius: 10px;
    padding: 40px 40px 40px;
    box-sizing: border-box;
}

.bars-lineup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.bars-lineup__title {
    font-size: 28px;
    font-weight: 500;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}

.bars-lineup__all-link {
    font-size: 11px;
    font-weight: 600;
    color: #111;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.bars-lineup__all-link:hover { color: #e02020; }

.bars-lineup__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bars-lineup__card {
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    background: #fff;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}

.bars-lineup__card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
}

.bars-lineup__card-img {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 340px;
    overflow: hidden;
    box-sizing: border-box;
}

.bars-lineup__card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.bars-lineup__card:hover .bars-lineup__card-img img {
    transform: scale(1.04);
}

.bars-lineup__card-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #E6E6E6;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 30px;
    white-space: nowrap;
}

/* =============================================
   БЛОК 5: Баннер доставки
   ============================================= */
.bars-delivery-strip {
    background: #121315;
    padding: 16px 0;
}

.bars-delivery-strip__wrap {
    position: relative;
    overflow: hidden;
    min-height: 125px;
    border-radius: 10px;
}

.bars-delivery-strip__flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 125px;
    position: relative;
    z-index: 1;
    padding: 20px 32px;
}

.bars-delivery-strip__bg {
    position: absolute;
    inset: 0;
    background-image: url('/image/catalog/tilda/tild6232-3766-4936-b361-653265653231__549164ce2cb59fd623d5.jpg');
    background-size: 100% 137%;
    background-position: 0% 29%;
    opacity: 1;
}

.bars-delivery-strip__content {
    position: relative;
    z-index: 1;
}

.bars-delivery-strip__title {
    font-size: 30px;
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 6px 0;
}

.bars-delivery-strip__subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
}

.bars-delivery-strip__arrow {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}

.bars-delivery-strip__arrow:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.bars-delivery-strip__arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}

/* =============================================
   БЛОК: Баннер конструктора
   ============================================= */
.bars-constructor-strip {
    background: #121315;
    padding: 16px 0;
}

.bars-constructor-strip__wrap {
    position: relative;
    overflow: hidden;
    min-height: 125px;
    border-radius: 10px;
}

.bars-constructor-strip__flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 32px;
}

.bars-constructor-strip__bg {
    position: absolute;
    inset: 0;
    background-image: url('/image/catalog/tilda/tild3461-3331-4864-b435-623435303334__black_utility_traile.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 1;
}

.bars-constructor-strip__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.bars-constructor-strip__content {
    position: relative;
    z-index: 1;
}

.bars-constructor-strip__title {
    font-size: 30px;
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 6px 0;
}

.bars-constructor-strip__subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
}

.bars-constructor-strip__arrow {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}

.bars-constructor-strip__arrow:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.bars-constructor-strip__arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}

@media (max-width: 768px) {
    .bars-constructor-strip__subtitle { display: none; }
    .bars-constructor-strip__title { font-size: 20px; }
    .bars-constructor-strip__flex { padding: 20px 20px; }
}

/* =============================================
   БЛОК 6: Новости производства
   ============================================= */
.bars-news {
    background: #121315;
    padding: 10px 0;
}

.bars-news__box {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
}

.bars-news__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.bars-news__title {
    font-size: 25px;
    font-weight: 500;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}

.bars-news__all-link {
    font-size: 11px;
    font-weight: 600;
    color: #111;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.bars-news__all-link:hover {
    color: #e02020;
}

.bars-news__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.bars-news__tab {
    padding: 0 18px;
    height: 36px;
    border: none;
    background: #E6E6E6;
    color: #111;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.2s;
}

.bars-news__tab.active,
.bars-news__tab:hover {
    background: #111;
    color: #fff;
}

.bars-news__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bars-news__card {
    text-decoration: none;
    display: block;
    color: inherit;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 380px;
}

.bars-news__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.bars-news__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    border-radius: 10px;
}

.bars-news__card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bars-news__card-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border-radius: 30px;
    padding: 3px 10px;
    width: fit-content;
    margin-bottom: 4px;
}

.bars-news__card-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.bars-news__card-desc {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.bars-news__card-read {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.bars-news__card:hover .bars-news__card-img {
    transform: scale(1.04);
    transition: transform 0.4s ease;
}

/* =============================================
   Адаптив
   ============================================= */
/* =============================================
   БЛОК: НАШИ ПРИЦЕПЫ (featured products)
   ============================================= */
.bars-products {
    background: #121315;
    padding: 10px 0;
}

.bars-products__box {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
}

.bars-products__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.bars-products__title {
    font-size: 28px;
    font-weight: 500;
    color: #111;
    letter-spacing: 0.03em;
    margin: 0;
}

.bars-products__all-link {
    font-size: 11px;
    font-weight: 600;
    color: #111;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.bars-products__all-link:hover { color: #e02020; }

.bars-products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Карточка */
.bars-products__card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bars-products__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* Фото */
.bars-products__card-img-wrap {
    position: relative;
    background: #f5f5f5;
}

.bars-products__card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.bars-products__card-img--empty {
    aspect-ratio: 4/3;
    background: #eee;
}

/* Бейдж "Новинка" */
.bars-products__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4a90d9;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

/* Контент */
.bars-products__card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    border-top: 2px solid #e8e8e8;
}

.bars-products__card-name {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bars-products__card-sku {
    font-size: 11px;
    color: #888;
}

/* Наличие */
.bars-products__card-stock {
    display: flex;
    align-items: center;
    gap: 3px;
}

.bars-products__stock-bar {
    display: inline-block;
    width: 14px;
    height: 8px;
    border-radius: 2px;
    background: #ddd;
}

.bars-products__card-stock--in .bars-products__stock-bar {
    background: #4caf50;
}

.bars-products__stock-label {
    font-size: 11px;
    color: #888;
    margin-left: 5px;
}

.bars-products__card-stock--in .bars-products__stock-label {
    color: #4caf50;
}

/* Звёзды */
.bars-products__card-rating {
    display: flex;
    gap: 2px;
}

.bars-products__star {
    font-size: 15px;
    color: #ddd;
    line-height: 1;
}

.bars-products__star--on {
    color: #f5a623;
}

/* Цена + кнопка */
.bars-products__card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.bars-products__card-price {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    white-space: nowrap;
}

.bars-products__card-price-old {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
}

.bars-products__card-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.bars-products__card:hover .bars-products__card-btn {
    background: #e02020;
}

@media (max-width: 1024px) {
    .bars-products__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .bars-products__box { padding: 24px 20px; }
    .bars-products__title { font-size: 20px; }
    .bars-products__all-link { font-size: 12px; }
    .bars-products__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .bars-products__card-name { font-size: 12px; }
    .bars-products__card-price { font-size: 14px; }
    .bars-products__card-body { padding: 10px 10px 10px; gap: 4px; }
    .bars-products__card-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    .bars-products__card-btn { width: 100%; justify-content: center; padding: 8px 6px; font-size: 11px; box-sizing: border-box; }
    .bars-products__stock-bar { width: 11px; height: 7px; }
    .bars-products__stock-label { font-size: 10px; }
    .bars-products__card-sku { font-size: 10px; }
    .bars-products__card-rating { gap: 1px; }
    .bars-products__star { font-size: 13px; }
}

@media (max-width: 1024px) {
    .bars-hero__slide { flex: 0 0 50%; height: 400px; }
    .bars-hero__slide:hover { flex: 0 0 55%; }
    .bars-popular__card { flex-direction: column; }
    .bars-popular__card-img { flex: none; height: 280px; }
    .bars-popular__card-info { flex: none; }
    .bars-lineup__grid { grid-template-columns: repeat(2, 1fr); }
    .bars-news__grid { grid-template-columns: repeat(2, 1fr); }
    .bars-banner-strip, .bars-delivery-strip { padding: 20px 24px; }
    .bars-banner-strip__title, .bars-delivery-strip__title { font-size: 16px; }
}

@media (max-width: 768px) {
    .bars-popular__box, .bars-lineup__box, .bars-news__box { padding: 24px 20px; }
    .bars-popular__title, .bars-lineup__title, .bars-news__title { font-size: 20px; }
    .bars-popular__all-link, .bars-news__all-link, .bars-lineup__all-link { white-space: nowrap; flex-shrink: 0; font-size: 12px; }
    .bars-popular__title, .bars-news__title { min-width: 0; }
    .bars-lineup__grid { grid-template-columns: 1fr; }
    .bars-news__grid { grid-template-columns: 1fr 1fr; }
    .bars-delivery-strip__subtitle { display: none !important; }
    .bars-delivery-strip__title { font-size: 20px !important; }
    .bars-banner-strip__subtitle { display: none !important; }

    /* Delivery strip — мобиле */
    .bars-delivery-strip,
    .bars-delivery-strip.bars-section { padding: 0 !important; margin: 0 !important; }
    .bars-delivery-strip .bars-container { padding: 0 10px !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
    .bars-delivery-strip__wrap { border-radius: 8px !important; margin: 0 !important; }
    .bars-delivery-strip__flex { padding: 20px 20px; }

    /* Banner strip — мобиле */
    .bars-banner-strip,
    .bars-banner-strip.bars-section { padding: 0 !important; margin: 0 !important; }
    .bars-banner-strip .bars-container { padding: 0 10px !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
    .bars-banner-strip__wrap { border-radius: 8px !important; margin: 0 !important; min-height: 80px !important; }
    .bars-banner-strip__flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 20px;
        min-height: auto;
    }
    .bars-banner-strip__title {
        font-size: 18px;
        line-height: 1.3;
    }
    .bars-banner-strip__subtitle {
        font-size: 13px;
        line-height: 1.5;
    }
    .bars-banner-strip__arrow {
        align-self: flex-end;
    }

    /* Hero — мобильный свайп */
    .bars-hero__wrap { height: 75vh; }
    .bars-hero__viewport { cursor: default; }
    .bars-hero__viewport:active { cursor: default; }
    .bars-hero__content { transition: transform 0.35s ease; }
    .bars-hero__card { border-radius: 0; }
    .bars-hero__video { top: 0; left: 0; transform: none; }
    .bars-hero__video iframe { width: 100% !important; height: 100% !important; }
    .bars-hero__card-title { font-size: 22px; }
    .bars-hero__card-subtitle { font-size: 15px; }
    .bars-hero__badge { height: 36px; font-size: 13px; padding: 0 12px; }
}

@media (max-width: 480px) {
    .bars-news__grid { grid-template-columns: 1fr; }
}

/* =============================================
   Популярные модели — мобиле
   ============================================= */
@media (max-width: 768px) {
    .bars-popular__box {
        height: auto;
        padding: 20px 16px 16px;
    }

    /* Табы — одна строка, свайп */
    .bars-popular__tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
        margin-bottom: 16px;
    }
    .bars-popular__tabs::-webkit-scrollbar { display: none; }
    .bars-popular__tab {
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    /* Слайдер — убираем абсолютное позиционирование */
    .bars-popular__slider {
        position: static;
        height: auto;
        overflow: visible;
    }
    .bars-popular__slide {
        position: static;
        display: none;
        flex-direction: column;
    }
    .bars-popular__slide.active {
        display: flex;
    }

    /* Фото — сверху */
    .bars-popular__card-img {
        width: 100%;
        height: 200px;
        flex: none;
        order: -1;
        margin-bottom: 16px;
    }
    .bars-popular__card-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Инфо — снизу */
    .bars-popular__card-info {
        width: 100%;
        padding-right: 0;
    }

    .bars-popular__card-title { font-size: 18px; }
    .bars-popular__price { font-size: 24px; }

    .bars-popular__btns { flex-direction: row; }
    .bars-popular__btn-order,
    .bars-popular__btn-more { flex: 1; text-align: center; }

    /* Нижняя панель */
    .bars-popular__footer { margin-top: 16px; }
}
