

/* Start:/bitrix/templates/eshop_bootstrap_v4/components/bitrix/news.list/gastrotechnika.articles/style.css?17784168925910*/
.news-grid-section { padding: 10px 0 60px; }

/* ----- ТАБЫ — Apple-style segmented control ----- */
.news-tabs {
    display: flex;
    width: fit-content;
    margin-left: auto;          /* прижимаем вправо */
    margin-right: 0;
    margin-bottom: 36px;
    padding: 4px;
    gap: 2px;
    background: #f0f2f5;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
    border: 0;
    overflow: visible;
}

@media (max-width: 700px) {
    .news-tabs {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .news-tabs::-webkit-scrollbar { display: none; }
}

.news-tabs__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-radius: 999px;
    border: none;
    margin-bottom: 0;
    white-space: nowrap;
    position: relative;
    transition: color .2s, background .2s, box-shadow .25s, transform .2s;
}

.news-tabs__item:hover {
    color: #0f172a;
}

.news-tabs__item:active {
    transform: scale(0.97);
}

.news-tabs__item--active {
    color: #0f172a;
    background: #fff;
    font-weight: 600;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, .10),
        0 1px 2px rgba(15, 23, 42, .06);
}

.news-tabs__count {
    background: rgba(15, 23, 42, .08);
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.4;
    min-width: 22px;
    text-align: center;
    transition: background .25s, color .25s;
}

.news-tabs__item--active .news-tabs__count {
    background: var(--blue);
    color: #fff;
}


/* ----- СЕТКА — flex с растяжением хвостовых рядов -----
   Берём flex вместо grid: при 7 карточках (3+3+1) хвостовые
   карточки занимают одинаковую ширину с верхними рядами,
   но без сиротских пустот по бокам — flex выравнивает их слева.
   Управляем через max-width на самой карточке: ровно 33% / 50% / 100%
   на разных breakpoints. Если в последнем ряду остаются 1-2 карточки —
   они визуально «прижимаются» в начало, без зияющих столбцов справа. */
.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
    align-items: stretch;
}
.news-grid > .news-other__item {
    flex: 1 1 320px;
    max-width: calc((100% - 48px) / 3);  /* 3 колонки, gap 24px × 2 */
    min-width: 0;
}
@media (max-width: 991px) {
    .news-grid { gap: 20px; }
    .news-grid > .news-other__item {
        max-width: calc((100% - 20px) / 2);
    }
}
@media (max-width: 600px) {
    .news-grid { gap: 16px; }
    .news-grid > .news-other__item { max-width: 100%; }
}

.news-grid .news-other__item {
    transition: transform .25s, box-shadow .25s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.news-grid .news-other__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(15,23,42,.08);
}

.news-card__cover-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f0f0f0;
}
.news-card__cover-link picture,
.news-card__cover-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.news-grid .news-other__item:hover .news-card__cover-link img {
    transform: scale(1.04);
}

.news-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eef1f7 0%, #dde3ee 100%);
    color: rgba(59,89,152,.4);
    position: relative;
}
.news-card__placeholder::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(59,89,152,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,89,152,.05) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 90%);
}
.news-card__placeholder svg {
    width: 56px; height: 56px;
    position: relative; z-index: 1;
}

.news-card__cat {
    position: absolute;
    top: 12px; left: 12px;
    background: #fff;
    color: var(--blue);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(15,23,42,.08);
    z-index: 2;
}

.news-grid .news-other__item .h4.news-other__h4 {
    padding: 0 18px;
    margin: 16px 0 8px !important;
    font-size: 17px;
    line-height: 1.32;
}
.news-grid .news-other__item .h4.news-other__h4 a {
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.32;
}
.news-grid .news-other__item .h4.news-other__h4 a:hover {
    color: var(--blue);
}
.news-card__date {
    padding: 0 18px;
    margin-bottom: 10px;
    display: block;
    font-size: 13px;
    color: #98a0ac;
    font-weight: 500;
}
.news-card__excerpt {
    padding: 0 18px 20px;
    font-size: 14px;
    line-height: 1.55;
    color: #545454;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-grid-empty {
    text-align: center;
    padding: 80px 20px;
    color: #98a0ac;
    font-size: 16px;
}

.news-grid__pagination { margin-top: 30px; }
.news-grid__pagination .modern-page-navigation { justify-content: center; }

/* End */


/* Start:/bitrix/templates/eshop_bootstrap_v4/components/bitrix/system.pagenavigation/gastrotechnika/style.min.css?1778416892675*/
div.modern-page-navigation{padding:.5em 0}div.modern-page-navigation a,span.modern-page-current,span.modern-page-dots{border-left-width:1px;border-left-style:solid;padding-left:.75em;padding-right:.5em;text-decoration:none}div.modern-page-navigation a.modern-page-previous{border-right-width:1px;border-right-style:solid;border-left:0}div.modern-page-navigation a.modern-page-first,div.modern-page-navigation span.modern-page-first{border-left:0;padding-left:.5em}span.modern-page-current{font-weight:var(--ui-font-weight-bold)}div.modern-page-navigation a,span.modern-page-current,div.modern-page-navigation a.modern-page-previous,span.modern-page-dots{border-color:#cdcdcd}
/* End */
/* /bitrix/templates/eshop_bootstrap_v4/components/bitrix/news.list/gastrotechnika.articles/style.css?17784168925910 */
/* /bitrix/templates/eshop_bootstrap_v4/components/bitrix/system.pagenavigation/gastrotechnika/style.min.css?1778416892675 */
