

/* Start:/local/templates/grosio/home.css?178747708331839*/
/*
 * home.css — стили главной страницы.
 *
 * Подключается только из index.php (SetAdditionalCSS), на других страницах не нужен.
 */

/* На главной отключаем padding .site-main и .container — блоки (hero, section)
 * имеют собственные margin 32px. */
body.home-page .site-main { padding: 0; }
body.home-page .site-main > .container {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* ===== HERO ===== */
.hero {
    margin: 24px 32px 0;
    position: relative; /* anchor для .hero-dots, вынесенных из .hero-main */
}
.hero-main {
    position: relative;
    /* Было 24px — по шкале «панелей/карточек» (--g-radius-card, 10px), чтобы
       не выбиваться из общей геометрии сайта. */
    border-radius: var(--g-radius-card);
    overflow: hidden;
    min-height: 480px;
    background: var(--graphite);
    color: #fff;
    display: flex;
}
/* Обёртка над слайдами. На десктопе display:contents — слайды лежат
 * абсолютно поверх друг друга в .hero-main. На мобильном превращается
 * в flex-ленту с translateX (см. mobile-секцию ниже, она появится позже). */
.hero-track { display: contents; }
.hero-slide {
    position: absolute; inset: 0;
    display: grid;
    grid-template-columns: minmax(480px, 1fr) 1.2fr;
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }

/* Сегментация баннеров: b2b/retail скрыты до JS-фильтра (composite-safe, без мигания).
   grApplyBannerSegment удаляет неподходящие из DOM и ставит .seg-ready → остальные видны. */
.hero-slide[data-audience="b2b"],
.hero-slide[data-audience="retail"] { display: none; }
.hero.seg-ready .hero-slide { display: grid; }

.hero-slide .copy {
    padding: 56px 56px 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 28px;
    position: relative;
    z-index: 2;
    max-width: 620px;
}
.hero-slide .copy::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: -160px;
    width: 200px;
    background: linear-gradient(90deg,
        rgba(43,43,43,1) 0%,
        rgba(43,43,43,0.7) 35%,
        rgba(43,43,43,0.3) 70%,
        rgba(43,43,43,0) 100%);
    pointer-events: none;
    z-index: 1;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--rc);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.65;
}
.hero-tag::before {
    content: '';
    width: 24px; height: 1px;
    background: #fff;
    opacity: 0.5;
}
.hero-title {
    font-family: var(--rc);
    font-weight: 700;
    /* 45px были подобраны под узкий Roboto Condensed; Inter шире — на 45px
       длинные слова заголовка не влезали и word-break рвал слово посреди. */
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
    max-width: 100%;
    overflow-wrap: break-word;
    text-wrap: balance;
}
.hero-sub {
    font-family: var(--ro);
    font-size: 17px;
    line-height: 1.5;
    color: rgba(255,255,255,0.72);
    margin: 0;
    max-width: 100%;
    text-wrap: pretty;
}
.hero-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.hero-cta .btn {
    height: 46px;
    padding: 0 22px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bs-border-radius, 6px); /* единая шкала радиусов, не пилюля */
    font-family: var(--rc);
    font-weight: 500;
    letter-spacing: -0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .12s;
    /* без border: none — иначе перекрывает .btn-hero-outline по специфичности */
}
.hero-cta .btn:active { transform: scale(0.96); }
.hero-cta .btn-primary {
    background: var(--bs-primary);
    color: #fff;
    border: none;
}
.hero-cta .btn-primary:hover { background: var(--bs-link-hover-color); }
/* Специфичность (0,2,0): после CSS-агрегации Битрикса bootstrap.min.css
   (шаблонная цепочка) грузится ПОЗЖЕ home.css (страничная цепочка), и правило
   .btn (0,1,0) перебивало и свойства, и дефолты переменных --bs-btn-* при
   равной специфичности. Составной селектор с .hero-cta решает надёжно. */
.hero-cta .btn-hero-outline {
    --bs-btn-color: #fff;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: rgba(255, 255, 255, 0.35);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.06);
    --bs-btn-hover-border-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(255, 255, 255, 0.12);
    --bs-btn-active-border-color: #fff;
    color: #fff;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.hero-cta .btn-hero-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); color: #fff; }

.hero-slide .visual {
    position: relative;
    overflow: hidden;
}
.hero-slide .visual .ph {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: 70% 55%; /* фоновая фотография обычно лучше смотрится со смещением вправо */
}

/* Hero dots.
   На десктопе живут поверх .hero-main, поэтому position:absolute
   внутри .hero (а не .hero-main — она overflow:hidden и обрезала бы). */
.hero-dots {
    position: absolute;
    left: 56px;   /* совпадает с padding-left у .copy */
    bottom: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}
.hero-dots button {
    position: relative;
    width: 28px; height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .2s, width .2s, transform .12s;
}
/* Полоска 4px высотой — расширяем зону нажатия по вертикали до 40px
   (по горизонтали 0: соседняя точка в 8px gap не должна пересекаться). */
.hero-dots button::after { content: ""; position: absolute; inset: -18px 0; }
.hero-dots button:active { transform: scale(0.96); }
.hero-dots button.on {
    background: var(--bs-primary);
    width: 44px;
}

/* Hero arrows */
.hero-arrows {
    position: absolute;
    right: 32px;
    bottom: 28px;
    display: inline-flex;
    gap: 10px;
    z-index: 3;
}
.hero-arrow {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, transform .2s;
    backdrop-filter: blur(4px);
}
.hero-arrow:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}
.hero-arrow:active { transform: scale(0.96); }
.hero-arrow svg { width: 18px; height: 18px; }
/* Оптическое центрирование шевронов: остриё уводит визуальный центр в сторону
   направления — компенсируем 1px-сдвигом к острию. */
.hero-arrow[data-prev] svg { transform: translateX(-1px); }
.hero-arrow[data-next] svg { transform: translateX(1px); }

/* ===== SECTION + section-head ===== */
.section {
    margin: 56px 32px 0;
}
.section-head {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 24px;
}
.section-head h2 {
    font-family: var(--rc);
    font-weight: 500;
    font-size: 37px;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--text);
    margin: 0;
    text-transform: uppercase;
    white-space: nowrap;
    text-wrap: balance;
}
.section-head .link-more {
    margin-left: auto;
    font-family: var(--rc);
    font-size: 15px;
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: color .15s;
    /* Ссылка всегда одной строкой («Все категории» на мобиле переносилась
       на 2 строки); при нехватке места переносится h2, не ссылка. */
    white-space: nowrap;
    flex: none;
}
.section-head .link-more:hover { color: var(--bs-primary); }
.section-head .link-more svg { width: 14px; height: 14px; }

/* ===== BRANDS STRIP (лента брендов — прокрутка без полосы, стрелки + fade) ===== */
.brands-carousel { position: relative; }
/* Плавный fade краёв через mask (theme-agnostic, как список магазинов /contacts/).
   Ширина fade включается классами .can-left/.can-right, которые ставит home.js
   по scrollLeft. Стрелки лежат ВНЕ .brands-strip — маска на них не действует. */
@property --brf-l { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --brf-r { syntax: '<length>'; inherits: false; initial-value: 0px; }
.brands-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 2px 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Полосу прокрутки прячем — навигация стрелками + свайп/драг. */
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--brf-l, 0px), #000 calc(100% - var(--brf-r, 0px)), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 var(--brf-l, 0px), #000 calc(100% - var(--brf-r, 0px)), transparent 100%);
    transition: --brf-l .2s ease, --brf-r .2s ease;
}
.brands-strip::-webkit-scrollbar { display: none; }
.brands-carousel.can-left  .brands-strip { --brf-l: 52px; }
.brands-carousel.can-right .brands-strip { --brf-r: 52px; }
.brands-strip.m-dragging { cursor: grabbing; }

/* Круглые кнопки-стрелки (стиль как .cmp-nav-btn на /personal/compare/). */
.brands-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    color: var(--bs-secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: opacity .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.brands-nav:hover { border-color: var(--bs-primary); color: var(--bs-primary); }
.brands-nav:active { transform: translateY(-50%) scale(0.96); }
.brands-nav.is-hidden { opacity: 0; pointer-events: none; }
.brands-nav--prev { left: -18px; }
.brands-nav--next { right: -18px; }
.brand-chip {
    flex: 0 0 auto;
    width: 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 26px 18px;
    background: var(--bs-body-bg, #fff);
    border: 1px solid #EAEAEA;
    border-radius: var(--g-radius-card);
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.brand-chip:hover {
    border-color: #DADADA;
    box-shadow: var(--g-shadow-card, 0 4px 16px rgba(0, 0, 0, 0.06));
}
.brand-chip__logo {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-chip__logo img,
.brand-chip__logo svg {
    max-height: 48px;
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.brand-chip__name {
    font-family: var(--rc);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.01em;
    color: var(--text);
    text-align: center;
}
/* Плитка-ссылка «Все бренды» в конце ленты. */
.brand-chip--all .brand-chip__all-ico {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bs-tertiary-bg);
    color: var(--bs-primary);
    font-size: 22px;
    transition: background .15s ease, color .15s ease;
}
.brand-chip--all:hover .brand-chip__all-ico {
    background: var(--bs-primary);
    color: #fff;
}

/* .prod-grid и .pc-card* перенесены в template_styles.css —
 * используются и на главной (home_hits), и в /catalog/ (catalog.section). */

/* .cat-grid/.cat-card перенесены в template_styles.css —
 * используются и на главной (home_categories), и в /catalog/ (catalog_root). */

/* ===== NEWSLETTER =====
   Тёмно-индиговый блок (в тон новому подвалу --g-footer-bg) вместо
   красной заливки старой айдентики — единственная крупная цветная
   поверхность на главной остаётся, просто в новой палитре. Кнопка
   подписки — акцент danger (#DC2626): читается на индиго и не сливается
   с primary-фоном блока. */
.newsletter {
    margin: 64px 32px 0;
    background: var(--bs-primary-text-emphasis, #34309E);
    /* Было 28px — панель по общей шкале (--g-radius-card, 10px). */
    border-radius: var(--g-radius-card);
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
    align-items: center;
    color: #fff;
}
.newsletter h3 {
    font-family: var(--rc);
    font-weight: 500;
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 20px;
    text-transform: uppercase;
    max-width: 520px;
    text-wrap: balance;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.newsletter-input {
    position: relative;
    height: 56px;
    background: #fff;
    /* Было 28px (пилюля) — тот же приём, что у поиска шапки: прямоугольник
       6px с квадратной кнопкой внутри (см. .newsletter-submit). */
    border-radius: var(--bs-border-radius);
    display: flex;
    align-items: center;
    padding: 8px 8px 8px 22px;
}
.newsletter-input input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--rc);
    font-size: 16px;
    color: var(--text);
    letter-spacing: -0.01em;
    min-width: 0;
}
.newsletter-input input::placeholder { color: var(--text-3); }

.newsletter-clear {
    flex-shrink: 0;
    width: 20px; height: 20px;
    margin-right: 10px;
    border: none;
    border-radius: 50%;
    background: #B3B3B3;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background .15s, transform .12s;
}
.newsletter-clear .ti { font-size: 10px; }
.newsletter-clear:hover { background: #8A8A8A; }
.newsletter-clear:active { transform: scale(0.96); }
.newsletter-clear:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.newsletter-clear[hidden] { display: none; }

.newsletter-submit {
    height: 40px;
    padding: 0 22px;
    /* Радиус 6px (--bs-border-radius) по шкале §0.1. */
    border-radius: var(--bs-border-radius);
    /* Первичная кнопка по токенам base.css: индиго-фон + белый текст.
       Была белой на белой капсуле поля (.newsletter-input) — читалась как
       неоформленная/безрамочная. Индиго-CTA внутри белого поля — паттерн
       «инпут с прикреплённой кнопкой» (как строка поиска шапки), контраст ок. */
    background: var(--bs-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background .15s, transform .12s;
    flex-shrink: 0;
    /* Как у остальных кнопок сайта: обычный регистр, без letter-spacing —
       капс+трекинг 0.06em были паттерном эпохи Roboto Condensed и на Inter
       выбивались из ряда (жалоба клиента 2026-07-08). */
    font-family: var(--rc);
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
}
.newsletter-submit:hover { background: var(--bs-link-hover-color); }
.newsletter-submit:active { transform: scale(0.96); }
.newsletter-submit[disabled] { opacity: .55; cursor: not-allowed; }

.newsletter-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--rc);
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: -0.01em;
    cursor: pointer;
}
.newsletter-check input {
    width: 16px; height: 16px;
    accent-color: #fff;
    margin-top: 2px;
    flex-shrink: 0;
}
.newsletter-check a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 3px;
}
.newsletter-check a:hover { text-decoration-color: #fff; }

.newsletter p.newsletter-body {
    margin: 0;
    font-family: var(--ro);
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    max-width: 520px;
    text-wrap: pretty;
}

/* Состояния формы (управляются JS-ом через атрибут data-state). */
.newsletter[data-state="success"] .newsletter-form,
.newsletter[data-state="success"] h3 {
    display: none;
}
.newsletter[data-state="success"] .newsletter-success {
    display: block;
}
.newsletter-success {
    display: none;
    font-family: var(--rc);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #fff;
    text-wrap: balance;
}
.newsletter-success small {
    display: block;
    margin-top: 8px;
    font-family: var(--ro);
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-wrap: pretty;
}
.newsletter-error {
    color: #FFE5E2;
    font-family: var(--ro);
    font-size: 14px;
    margin: 0;
    text-wrap: pretty;
}

/* ===== HOME NEWS (свежие новости: 1 крупная плитка + 2 компактные) =====
   Раскладка «лид + 2»: слева широкая колонка (плитка вдвое), справа две
   компактные горизонтальные карточки столбиком. Радиус — 6px, заодно со
   списком /news/ (см. template_styles.css .news-item). */
.home-news {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 20px;
    align-items: stretch;
}
.hn-col {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 20px;
    min-height: 0;
}
.hn-card {
    display: flex;
    flex-direction: column;
    background: var(--bs-body-bg, #fff);
    border: 1px solid #EAEAEA;
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.hn-card:hover {
    border-color: #DADADA;
    box-shadow: var(--g-shadow-card, 0 4px 16px rgba(0, 0, 0, 0.06));
}
.hn-media {
    position: relative;
    display: block;
    background: #fff;
    overflow: hidden;
}
.hn-media picture,
.hn-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hn-tag {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: var(--bs-border-radius-sm);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(4px);
    font-family: var(--rc);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -.01em;
}
.hn-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px 20px;
}
.hn-meta {
    font-family: var(--rc);
    font-size: 13px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}
.hn-title {
    font-family: var(--rc);
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--text);
    text-wrap: pretty;
}
.hn-excerpt {
    font-family: var(--ro);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-2);
    text-wrap: pretty;
}
/* Лид — крупная плитка: медиа 16:9 сверху, тело снизу. */
.hn-card--lead .hn-media { aspect-ratio: 16 / 9; }
.hn-card--lead .hn-body { padding: 22px 24px 24px; gap: 10px; }
.hn-card--lead .hn-title { font-size: 24px; line-height: 1.15; }
.hn-card--lead .hn-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Компактные — горизонтальные: медиа слева (растянуто по высоте), тело справа. */
.hn-card--sm { flex-direction: row; min-height: 0; }
.hn-card--sm .hn-media {
    flex: 0 0 42%;
    max-width: 42%;
    align-self: stretch;
}
.hn-card--sm .hn-body {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 6px;
    padding: 14px 16px;
    min-width: 0;
}
.hn-card--sm .hn-title {
    font-size: 16px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hn-card--sm .hn-excerpt {
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== PERKS (преимущества) (полоса преимуществ перед подвалом) ===== */
.perk-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Все строки равной высоты (по самой высокой карточке) — и в одном ряду
       на десктопе, и в сетке 2×2 на мобиле, где ряды иначе разъезжались. */
    grid-auto-rows: 1fr;
    gap: 16px;
}
.perk-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 26px 24px;
    background: var(--bs-body-bg, #fff);
    border: 1px solid #EAEAEA;
    border-radius: var(--g-radius-card);
    transition: border-color .15s, box-shadow .15s;
}
.perk-card:hover {
    border-color: #DADADA;
    box-shadow: var(--g-shadow-card, 0 4px 16px rgba(0, 0, 0, 0.06));
}
.perk-ico {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bs-tertiary-bg);
    color: var(--bs-primary);
    font-size: 26px;
}
/* Сердце — тёплый акцент (rose), чтобы «любовь к клиентам» читалась. */
.perk-ico--heart {
    background: rgba(225, 29, 72, .08);
    color: #E11D48;
}
.perk-title {
    font-family: var(--rc);
    font-weight: 600;
    font-size: 19px;
    letter-spacing: -.01em;
    color: var(--text);
    margin: 0;
}
.perk-text {
    font-family: var(--ro);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-2);
    margin: 0;
    text-wrap: pretty;
}

/* =========================================================
   MOBILE (≤767 px)
   ========================================================= */
@media (max-width: 767px) {
    body.home-page .site-main { padding: 0; }
    body.home-page .site-main > .container {
        padding: 0;
        margin: 0;
    }

    /* ===== HERO =====
     * На мобиле column-reverse: фото сверху, текст снизу.
     *
     * Высота .hero-main фиксируется через grid-stacking: все .hero-slide
     * лежат в одной grid-ячейке (1/1) — контейнер растягивается до
     * самого высокого слайда. Переключение через opacity, чтобы при
     * смене слайда контент после hero не прыгал вертикально. */
    .hero { margin: 12px 0 0; padding: 0 12px; }
    .hero-main {
        min-height: auto;
        /* Единый радиус с десктопом (--g-radius-card) — было отдельное 16px. */
        border-radius: var(--g-radius-card);
        padding-bottom: 0;
    }
    .hero-track {
        display: grid;
        grid-template-columns: 1fr;
    }
    .hero-slide {
        grid-row: 1;
        grid-column: 1;
        position: relative;
        inset: auto;
        display: flex;
        flex-direction: column-reverse; /* фото сверху, текст снизу */
        justify-content: flex-end;
        grid-template-columns: none;
        opacity: 0;
        pointer-events: none;
        transition: opacity .35s ease;
    }
    /* После сегмент-фильтра десктопное .hero.seg-ready{display:grid} (спец. 0,2,0)
       перебило бы мобильный flex — возвращаем column-reverse на мобиле. */
    .hero.seg-ready .hero-slide { display: flex; }
    .hero-slide.active {
        opacity: 1;
        pointer-events: auto;
    }
    .hero-slide .visual {
        height: 230px;
        width: 100%;
        position: relative;
    }
    .hero-slide .copy {
        padding: 20px 20px 24px;
        gap: 12px;
        max-width: 100%;
    }
    .hero-slide .copy::after { display: none; }
    .hero-tag { font-size: 12px; }
    .hero-title { font-size: 24px; line-height: 1.1; }
    .hero-sub { font-size: 14px; line-height: 1.4; }
    .hero-cta { gap: 8px; }
    .hero-cta .btn { height: 42px; font-size: 14px; padding: 0 18px; }
    .hero-arrows { display: none; }
    .hero-dots {
        position: static;
        left: auto; right: auto; top: auto; bottom: auto;
        transform: none;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 14px;
    }
    .hero-dots button {
        width: 20px; height: 3px;
        background: rgba(0,0,0,0.18);
    }
    .hero-dots button.on { width: 32px; background: var(--bs-primary); }

    /* ===== SECTION ===== */
    .section { margin: 36px 0 0; }
    .section-head {
        padding: 0 16px;
        margin-bottom: 14px;
        gap: 12px;
    }
    .section-head h2 {
        font-size: 22px;
        letter-spacing: -0.01em;
        /* На узких экранах (≤375) «КАТЕГОРИИ ПРОДУКЦИИ» + ссылка nowrap не
           влезают в строку — переносим ЗАГОЛОВОК, ссылка остаётся одной
           строкой (иначе горизонтальный overflow страницы). */
        white-space: normal;
    }
    .section-head .link-more { font-size: 13px; gap: 4px; }
    .section-head .link-more svg { width: 12px; height: 12px; }

    /* ===== BRANDS STRIP на мобиле — свайп, без кнопок-стрелок ===== */
    .brands-strip { padding: 4px 16px 14px; gap: 10px; }
    .brands-nav { display: none; }
    .brand-chip { width: 140px; padding: 20px 14px; gap: 12px; }
    .brand-chip__logo { height: 40px; }
    .brand-chip__logo img,
    .brand-chip__logo svg { max-height: 40px; max-width: 108px; }

    /* ===== PRODUCT GRID — 2 колонки без скролла ===== */
    .prod-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 4px 16px;
        margin: 0;
        overflow: visible;
    }
    .prod-grid > * { min-width: 0; }

    /* ===== CATEGORIES ===== */
    /* ⚠ Без scroll-snap (как .brands-strip): mandatory-снап прищёлкивал
       КАЖДОЕ присвоение scrollLeft к границе карточки → драг мышью
       (data-drag-scroll) прыгал целыми карточками, а не ехал за курсором.
       Свободная прокрутка плавная и на таче, и мышью. */
    .cat-grid {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto;
        overflow-y: visible;
        gap: 10px !important;
        padding: 4px 16px;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .cat-grid::-webkit-scrollbar { display: none; }
    .cat-grid > .cat-card {
        flex: 0 0 42%;
        padding: 10px;
        gap: 10px;
    }
    .cat-card .cat-name { font-size: 14px; }
    .cat-card .cat-count-badge { font-size: 11px; padding: 4px 7px; }

    /* ===== NEWSLETTER ===== */
    .newsletter {
        margin: 36px 12px 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 24px 20px;
        /* Единый радиус с десктопом (--g-radius-card) — было отдельное 20px. */
        border-radius: var(--g-radius-card);
    }
    .newsletter-form,
    .newsletter-input,
    .newsletter-input input { min-width: 0; }
    .newsletter h3 {
        font-size: 21px;
        margin: 0 0 14px;
    }
    .newsletter-input {
        height: 48px;
        padding: 6px 6px 6px 16px;
        /* Радиус уже задан токеном в базовом правиле — здесь только высота/паддинг. */
    }
    .newsletter-input input { font-size: 14px; }
    .newsletter-submit {
        height: 36px;
        padding: 0 16px;
        font-size: 14px;
    }
    .newsletter-check { font-size: 12px; line-height: 1.35; }
    .newsletter p.newsletter-body { font-size: 14px; line-height: 1.45; }

    /* ===== HOME NEWS — одна колонка (лид сверху, 2 компактные под ним) ===== */
    .home-news {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 16px;
    }
    .hn-col { grid-auto-rows: auto; gap: 12px; }
    .hn-card--lead .hn-body { padding: 16px 16px 18px; }
    .hn-card--lead .hn-title { font-size: 20px; }
    .hn-card--lead .hn-excerpt { font-size: 14px; line-height: 1.45; -webkit-line-clamp: 2; }
    .hn-card--sm .hn-media { flex-basis: 40%; max-width: 40%; }
    .hn-card--sm .hn-body { padding: 12px 14px; }
    .hn-card--sm .hn-title { font-size: 15px; }

    /* ===== PERKS (преимущества) — 2 колонки ===== */
    .perk-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 16px;
    }
    .perk-card { padding: 18px 16px; gap: 10px; }
    .perk-ico { width: 44px; height: 44px; font-size: 22px; }
    .perk-title { font-size: 16px; }
    .perk-text { font-size: 13px; line-height: 1.45; }
}

/* End */
/* /local/templates/grosio/home.css?178747708331839 */
