

/* Start:/local/templates/barfits/css/home-cards.css?17956983706453*/
/*
 * Главная barfits.ru — Platrum 217010 (ТЗ Михаила 13.11.2026, задачи 3, 4а, 5, 6).
 * Файл подключается ТОЛЬКО из /index.php: на разделы каталога и карточку товара не влияет.
 * Откат: убрать строку SetAdditionalCSS(... home-cards.css) в /index.php и сбросить кеш.
 * «Товар дня» (.top-banner) не трогаем.
 */

/* ---------- Задача 3. Единая плитка товаров: рамка 3:4 ---------- */
.section--main:not(.top-banner) .grid--four-flex .product .product__link {
  height: 100%;
}
.section--main:not(.top-banner) .grid--four-flex .product .product__img {
  aspect-ratio: 3 / 4;
  height: auto;
  max-height: none;
  flex-grow: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f4f4;
}
.section--main:not(.top-banner) .grid--four-flex .product .product__img img {
  width: 100%;
  height: 100%;
  max-height: none;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  border-radius: 8px;
}
.section--main:not(.top-banner) .grid--four-flex .product .product__info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
}
/* Название: ровно 2 строки на компьютере, 3 на телефоне, дальше многоточие */
.section--main:not(.top-banner) .grid--four-flex .product .product__title {
  height: auto;
  min-height: 36px;
  max-height: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Цена: место под старую цену есть всегда, кнопки «В корзину» на одной линии */
.section--main:not(.top-banner) .grid--four-flex .product .product__cost {
  height: 44px;
  justify-content: flex-end;
}
.section--main:not(.top-banner) .grid--four-flex .product .product__info-bottom {
  margin-top: auto;
}

/* Сдвиг кадра для отдельных товаров, если обрезка задевает товар (заполняется по итогам проверки):
.section--main:not(.top-banner) .product:has(.js-btn-comparison[data-id="50552"]) .product__img img { object-position: center 30%; }
*/

@media (max-width: 1259px) {
  .section--main:not(.top-banner) .grid--four-flex .product .product__img { height: auto; }
}
@media (max-width: 767px) {
  .section--main:not(.top-banner) .grid--four-flex .product .product__img { height: auto; width: 100%; }
  .section--main:not(.top-banner) .grid--four-flex .product .product__title {
    -webkit-line-clamp: 3;
    min-height: 54px;
  }
}

/* ---------- Задача 5. Видимый H1 вместо «Уличное спортивное оборудование…» ---------- */
.home-h1 {
  margin: 0 0 8px;
}
.home-h1__sub {
  margin: 0;
  font-family: "Roboto-Regular", sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: rgba(36, 36, 36, .7);
}

/* ---------- Задача 4а. Популярные категории: фото 4:3, подпись под фото ---------- */
.home-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-cats__item { margin: 0; }
.home-cats__link {
  display: block;
  height: 100%;
  color: #242424;
  text-decoration: none;
  border-radius: 8px;
}
.home-cats__img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f4f4;
}
.home-cats__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.home-cats__title {
  margin: 12px 0 2px;
  font-family: "Roboto-Bold", sans-serif;
  font-size: 17px;
  line-height: 22px;
}
.home-cats__sub {
  margin: 0;
  font-family: "Roboto-Regular", sans-serif;
  font-size: 14px;
  line-height: 18px;
  color: rgba(36, 36, 36, .6);
}
@media (min-width: 1260px) {
  .home-cats__link:hover .home-cats__img img { transform: scale(1.05); }
  .home-cats__link:hover .home-cats__title { color: #fd2e25; }
}
@media (max-width: 1259px) {
  .home-cats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 767px) {
  .home-cats { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .home-cats__title { font-size: 15px; line-height: 19px; margin-top: 8px; }
  .home-cats__sub { font-size: 13px; line-height: 16px; }
}
/* Плитки «Примерка в интерьере» и «Конструктор» остаются прежними (.pop-cat__links) */
.home-cats + .pop-cat__links { margin-top: 28px; }

/* ---------- Задача 5. «Почему Barfits» вместо тёмного баннера и «Секрета популярности» ---------- */
.home-why__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-why__item {
  padding: 24px 20px;
  border-radius: 8px;
  background: #f6f6f6;
}
.home-why__num {
  display: block;
  margin-bottom: 10px;
  font-family: "RobotoCondensed-Bold", sans-serif;
  font-size: 28px;
  line-height: 32px;
  color: #fd2e25;
}
.home-why__title {
  margin: 0 0 6px;
  font-family: "Roboto-Bold", sans-serif;
  font-size: 17px;
  line-height: 22px;
  color: #242424;
}
.home-why__text {
  margin: 0;
  font-family: "Roboto-Regular", sans-serif;
  font-size: 14px;
  line-height: 19px;
  color: rgba(36, 36, 36, .7);
}
@media (max-width: 1259px) {
  .home-why__list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 767px) {
  .home-why__list { gap: 12px; }
  .home-why__item { padding: 16px 14px; }
  .home-why__num { font-size: 22px; line-height: 26px; margin-bottom: 6px; }
  .home-why__title { font-size: 15px; line-height: 19px; }
  .home-why__text { font-size: 13px; line-height: 17px; }
}

/* ---------- Задача 6. Кнопка «Наверх» на телефоне ---------- */
/* Слева внизу и меньше: не закрывает «В корзину» в правой колонке и чат в правом углу */
@media (max-width: 767px) {
  .btn-up {
    left: 15px;
    right: auto;
    width: 36px;
    height: 36px;
  }
}
/* Скрыта, пока не прокручено 2,5 экрана (класс ставит скрипт в /index.php) */
.btn-up.home-btn-up--early { display: none !important; }

/* End */


/* Start:/local/templates/barfits/css/home-concept.css?179569837031286*/
/*
 * Главная barfits.ru — концепт 1, Platrum 217526 (разбор «Макет главная.docx» + макеты desktop/mobile).
 * Подключается ТОЛЬКО из /index.php, после home-cards.css. Все классы с префиксом h26-, чужие стили не трогает.
 * Откат: убрать строку SetAdditionalCSS(... home-concept.css) и вернуть index.php.bak-217526.
 */
.h26-hero, .h26-start, .h26-why, .h26-outdoor {
  --h26-red: #d92b1f;
  --h26-red-hover: #b9231a;
  --h26-green: #2f9a62;
  --h26-green-bg: #ddf5e8;
  --h26-pink-bg: #fdecea;
  --h26-cream: #f5f4f0;
  --h26-ink: #242424;
  --h26-dark: #22221c;
  --h26-gray: #6b6b6b;
  --h26-line: #e6e4de;
}

/* ---------- общие детали ---------- */
.h26-eyebrow {
  margin: 0 0 12px;
  font: 13px/1.3 "Roboto-Bold", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.h26-eyebrow--green { color: var(--h26-green); display: flex; align-items: center; gap: 10px; }
.h26-eyebrow--red { color: var(--h26-red); text-align: center; }
.h26-eyebrow__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--h26-green); flex: none; }
.h26-sub { margin: 12px 0 0; text-align: center; color: var(--h26-gray); font-size: 17px; line-height: 1.4; }

.h26-ico {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.h26-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.h26-ico--green { background: var(--h26-green-bg); color: var(--h26-green); }
.h26-ico--red { background: var(--h26-pink-bg); color: var(--h26-red); }

.h26-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 6px;
  font: 16px/1.2 "RobotoCondensed-Bold", sans-serif; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; text-align: center; cursor: pointer; border: 2px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.h26-btn--red { background: var(--h26-red); color: #fff; }
.h26-btn--red:hover, .h26-btn--red:focus-visible { background: var(--h26-red-hover); color: #fff; }
.h26-btn--black { background: var(--h26-ink); color: #fff; }
.h26-btn--black:hover, .h26-btn--black:focus-visible { background: #000; color: #fff; }
.h26-btn--ghost { background: #fff; color: var(--h26-ink); border-color: var(--h26-ink); }
.h26-btn--ghost:hover, .h26-btn--ghost:focus-visible { background: var(--h26-ink); color: #fff; }
.h26-btn--ghost-white { background: transparent; color: #fff; border-color: #fff; }
.h26-btn--ghost-white:hover, .h26-btn--ghost-white:focus-visible { background: #fff; color: var(--h26-dark); }

/* ---------- 1. Первый экран под слайдером (скрин 1) ---------- */
.h26-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: center;
  border-top: 2px solid rgba(36, 36, 36, .05);
  padding-top: 40px;
}
.h26-hero__title {
  margin: 0; max-width: 560px;
  font: 46px/1.18 "RobotoCondensed-Bold", sans-serif; color: var(--h26-ink);
}
.h26-hero__title mark {
  background: #f7cf2b; color: var(--h26-ink); padding: 0 10px; border-radius: 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.h26-hero__lead { margin: 18px 0 0; font-size: 19px; line-height: 1.45; color: var(--h26-gray); }
.h26-hero__lead b { color: var(--h26-ink); font-family: "Roboto-Bold", sans-serif; font-weight: 400; }
.h26-hero__cats {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 234px); gap: 12px;
}
.h26-hero__cats li { margin: 0; padding: 0; }
.h26-hero__cats li::before { content: none; }
.h26-pill {
  display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px;
  border: 1px solid #d5d5d5; border-radius: 22px; background: #fff;
  font: 16px/1.2 "RobotoCondensed-Bold", sans-serif; color: var(--h26-ink); text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.h26-pill:hover, .h26-pill:focus-visible { border-color: var(--h26-ink); background: var(--h26-ink); color: #fff; }
.h26-hero__card { background: var(--h26-cream); border-radius: 16px; padding: 28px; }
.h26-hero__fact { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.h26-hero__fact b { display: block; font: 19px/1.25 "RobotoCondensed-Bold", sans-serif; font-weight: 400; color: var(--h26-ink); }
.h26-hero__fact span:not(.h26-ico) { display: block; margin-top: 2px; font-size: 14px; color: var(--h26-gray); }
.h26-hero__card .h26-btn { width: 100%; margin-top: 8px; }

/* ---------- 3. «Тренируйтесь дома» вместо «Спортивные площадки от BARFITS!» ---------- */
.h26-start__list {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.h26-start__card {
  margin: 0; padding: 0; display: flex; flex-direction: column;
  border: 1px solid #e3e3e3; border-radius: 12px; overflow: hidden; background: #fff;
}
.h26-start__card::before { content: none; }
/* v3 (21.11): фото целиком, без обрезки — высокая рамка, по краям фон карточки */
.h26-start__img { display: block; aspect-ratio: 293 / 347; overflow: hidden; background: var(--h26-cream); }
.h26-start__img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .4s ease; }
.h26-start__card:hover .h26-start__img img { transform: scale(1.03); }
.h26-start__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.h26-start__title { margin: 0; font: 26px/1.2 "RobotoCondensed-Bold", sans-serif; color: var(--h26-ink); }
.h26-start__text { margin: 12px 0 20px; font-size: 15px; line-height: 1.5; color: var(--h26-gray); flex: 1; }
.h26-start__body .h26-btn { width: 100%; }
.h26-strip {
  margin-top: 32px; display: flex; align-items: center; gap: 16px;
  background: var(--h26-cream); border-radius: 12px; padding: 16px 24px;
}
.h26-strip__text { margin: 0; flex: 1; font-size: 16px; color: var(--h26-ink); }
.h26-strip__text b { font-family: "RobotoCondensed-Bold", sans-serif; font-weight: 400; font-size: 18px; }
.h26-strip__link {
  font: 15px/1.2 "RobotoCondensed-Bold", sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: var(--h26-green); text-decoration: none; white-space: nowrap;
}
.h26-strip__link:hover, .h26-strip__link:focus-visible { color: #1f7447; text-decoration: underline; }

/* ---------- 4. «Почему Barfits»: шаги + плашка гарантии с CTA ---------- */
.h26-why .section__title { text-align: center; }
.h26-why__list {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px;
}
.h26-why__item { margin: 0; padding: 0; }
.h26-why__item::before { content: none; }
.h26-why__head { display: flex; align-items: center; gap: 14px; }
.h26-why__head .h26-ico { width: 56px; height: 56px; }
.h26-why__line { flex: 1; height: 2px; background: var(--h26-line); }
.h26-why__num { font: 42px/1 "RobotoCondensed-Bold", sans-serif; color: var(--h26-line); }
.h26-why__title { margin: 18px 0 0; font: 22px/1.2 "RobotoCondensed-Bold", sans-serif; color: var(--h26-ink); }
.h26-why__text { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--h26-gray); }
.h26-banner {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--h26-dark); border-radius: 16px; padding: 26px 32px;
}
.h26-banner__fact { margin: 0; display: flex; align-items: baseline; gap: 20px; }
.h26-banner__fact b { font: 56px/1 "RobotoCondensed-Bold", sans-serif; font-weight: 400; color: #f0402f; white-space: nowrap; }
.h26-banner__fact span { font-size: 18px; color: #d8d8d0; }
.h26-banner__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- 5. Уличные комплексы — отдельный блок ---------- */
.section.section--main.h26-outdoor {
  background: #f4f4f4; box-sizing: border-box;
  width: calc(100% + 100px); max-width: none;
  margin-left: -50px; margin-right: -50px; padding: 56px 50px 64px;
}
.h26-outdoor .section__title { text-align: center; }
.h26-outdoor__grid {
  margin-top: 36px; display: grid; gap: 20px;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
}
.h26-outdoor__photo {
  grid-row: 1 / span 2; position: relative; display: block; min-height: 520px;
  border-radius: 16px; overflow: hidden; text-decoration: none;
}
.h26-outdoor__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h26-outdoor__note {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(20, 20, 16, .88); border-radius: 12px; padding: 18px 22px; color: #fff;
}
.h26-outdoor__note b { display: block; font: 24px/1.2 "RobotoCondensed-Bold", sans-serif; font-weight: 400; }
.h26-outdoor__note span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: #ececec; }
.h26-outdoor__fact { background: #fff; border-radius: 16px; padding: 24px; }
.h26-outdoor__title { margin: 18px 0 0; font: 21px/1.2 "RobotoCondensed-Bold", sans-serif; color: var(--h26-ink); }
.h26-outdoor__text { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--h26-gray); }
.h26-outdoor__btns { margin-top: 32px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- планшет ---------- */
@media (max-width: 1259px) {
  .h26-hero { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
  .h26-hero__title { font-size: 38px; }
  .h26-hero__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h26-why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h26-banner { flex-direction: column; align-items: flex-start; }
  .h26-banner__btns { justify-content: flex-start; }
  .h26-outdoor__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h26-outdoor__photo { grid-row: auto; grid-column: 1 / -1; min-height: 420px; }
}

/* ---------- телефон (макет Barfits_glavnaya_mobile.pdf) ---------- */
@media (max-width: 767px) {
  .h26-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
  .h26-eyebrow { font-size: 11px; letter-spacing: .1em; }
  .h26-hero__title { font-size: 30px; line-height: 1.2; }
  .h26-hero__lead { font-size: 16px; margin-top: 14px; }
  .h26-hero__cats { gap: 10px; margin-top: 18px; }
  .h26-pill { height: 44px; padding: 0 8px; font-size: 15px; }
  .h26-hero__card { padding: 20px; }
  .h26-hero__fact b { font-size: 18px; }
  .h26-sub { font-size: 15px; }

  .h26-start__list { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
  .h26-start__body { padding: 18px; }
  .h26-start__title { font-size: 24px; }
  .h26-start__text { margin: 8px 0 16px; }
  .h26-strip { flex-wrap: wrap; padding: 16px; margin-top: 20px; }
  .h26-strip__text { flex: 1 1 calc(100% - 64px); font-size: 15px; }
  .h26-strip__link { flex-basis: 100%; }

  .h26-why__list { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
  .h26-why__item { display: grid; grid-template-columns: 56px 1fr auto; column-gap: 14px; }
  .h26-why__head { display: contents; }
  .h26-why__head .h26-ico { grid-row: 1 / span 2; }
  .h26-why__line { display: none; }
  .h26-why__num { grid-column: 3; grid-row: 1; font-size: 30px; }
  .h26-why__title { grid-column: 2; grid-row: 1; margin: 0; font-size: 22px; align-self: center; }
  .h26-why__text { grid-column: 2 / span 2; grid-row: 2; margin-top: 6px; }
  .h26-banner { padding: 22px 20px; margin-top: 28px; }
  .h26-banner__fact { gap: 14px; }
  .h26-banner__fact b { font-size: 48px; }
  .h26-banner__fact span { font-size: 16px; }
  .h26-banner__btns { width: 100%; flex-direction: column; }
  .h26-banner__btns .h26-btn { width: 100%; }

  .section.section--main.h26-outdoor { width: calc(100% + 40px); margin-left: -20px; margin-right: -20px; padding: 40px 20px 48px; }
  .h26-outdoor__grid { grid-template-columns: 1fr; margin-top: 24px; gap: 16px; }
  .h26-outdoor__photo { min-height: 400px; }
  .h26-outdoor__note b { font-size: 21px; }
  .h26-outdoor__btns { flex-direction: column; }
  .h26-outdoor__btns .h26-btn { width: 100%; padding: 0 16px; }
}

/* ---------- 6. Плитка товаров как в макете (Скидки, Лидеры, Новинки) ----------
   Цена крупно узким жирным, «В корзину» текстом без иконки, название от края фото.
   В «Скидках» фото квадратное и без значка сравнения (как в макете), в «Лидерах» и «Новинках» — 3:4. */
.section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .product__info { padding: 12px 0 8px; }
.section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .product__title {
  font-size: 14px; line-height: 19px; min-height: 38px; color: #242424; margin-bottom: 10px;
}
.section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .product__cost { height: auto; min-height: 58px; }
.section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .cost__old { font-size: 12px; color: #8a8a8a; margin-bottom: 6px; }
.section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .cost__current { font-size: 28px; line-height: 30px; color: #e1352a; }
.section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .cost__current span {
  font-family: "RobotoCondensed-Bold", sans-serif; font-size: inherit; margin-left: .22em;
}
.section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .product__info-bottom { align-items: flex-end; }
.section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .product__btn-cart {
  width: auto; height: 30px; padding: 0; margin-left: auto; flex-shrink: 0;
  font: 13px/30px "RobotoCondensed-Bold", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #e1352a;
}
.section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .product__btn-cart svg { display: none; }
.section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .product__btn-cart:hover { color: #b9231a; }
/* v3 (21.11): «Скидки» как «Лидеры» и «Новинки» — фото 3:4 и значок сравнения (раньше по макету v1 было 1:1 без значка) */

@media (max-width: 767px) {
  .section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .product__info-bottom { flex-wrap: wrap; }
  .section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .cost__current { font-size: 24px; line-height: 26px; }
  .section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .product__btn-cart { margin-left: 0; font-size: 12px; height: 24px; line-height: 24px; }
  .section--main.h26-tiles:not(.top-banner) .grid--four-flex .product:not(.product--small) .product__btn-cart { width: auto; background: none; border-radius: 0; }
  .section--main.h26-tiles:not(.top-banner) .grid--four-flex .product:not(.product--small) .product__btn-cart span.not-active { display: inline; }
  .section--main.h26-tiles:not(.top-banner) .grid--four-flex .product:not(.product--small) .product__btn-cart:hover { background: none; color: #b9231a; }
  .section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .product__title { font-size: 13px; line-height: 17px; min-height: 51px; }

  /* 7. Телефон, первый экран как в макете: баннер во всю ширину, 4 преимущества сеткой 2×2 под «Товаром дня» */
  .top-banner .top-banner__slider { width: calc(100% + 40px); margin-left: -20px; margin-right: -20px; }
  .top-banner .top-banner__slider .swiper-container { border-radius: 0; }
  .top-banner .top-banner__bottom { display: block; margin-top: 20px; }
  .top-banner .features__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .top-banner .features__list .features__item { width: auto; margin: 0; }
  .top-banner .features__list .features__item:nth-of-type(n + 2) { margin-top: 0; }
  .top-banner .features__item p { font-family: "Roboto-Regular", sans-serif; font-size: 12px; line-height: 15px; }
  .top-banner .features__icon { width: 32px; height: 32px; margin-right: 10px; }
  .top-banner .features__icon img { width: 18px; height: 18px; }
}

/* =====================================================================================
 * 8. Макеты v3 и замечания Михаила 21.11 (Platrum 217526). Всё под классом .page--h26:
 *    его ставит только include/index/ab/home_c1.php (AddViewContent PAGE_WRAPPER).
 *    «Сайт сейчас» (control), концепт 2 и остальные страницы эти правила не получают.
 * ===================================================================================== */

/* 8.1 Сайт на всю ширину, без серых полей: белый фон шапки и главной от края до края, контент 1320 px */
/* белые — шапка и обёртка контента главной; подвал (он внутри <main>) остаётся на сером фоне страницы, как в макете */
.page--h26 > .header,
.page--h26 > .main > .white-container { background: #fff; }
.page--h26 > .main { overflow-x: clip; }
.page--h26 > .header .white-container,
.page--h26 > .main > .white-container { max-width: none; padding: 0; border-radius: 0; }
.page--h26 > .header .container,
.page--h26 > .main > .white-container > .container {
  max-width: 1420px; padding-left: 50px; padding-right: 50px;
  border-radius: 0; -webkit-box-shadow: none; box-shadow: none;
}
.page--h26 > .header { border-bottom: 1px solid #e6e4de; }
/* разделители секций — тонкая линия во всю ширину страницы, как в макете */
.page--h26 .main .section--main.section--border { border-top: 0; }
.page--h26 .main .section--main.section--border::before,
.page--h26 .main .h26-hero::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 100vw; margin-left: -50vw;
  height: 1px; background: #ebe9e4; pointer-events: none;
}
.page--h26 .main .h26-hero { position: relative; border-top: 0; }
@media (max-width: 1259px) {
  .page--h26 > .header .container,
  .page--h26 > .main > .white-container > .container { max-width: none; padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 767px) {
  .page--h26 > .header .container,
  .page--h26 > .main > .white-container > .container { padding-left: 16px; padding-right: 16px; }
}

/* 8.2 Первый экран: баннер и широкий «Товар дня» рядом, одной высоты (компьютер) */
@media (min-width: 1260px) {
  .page--h26 > .main > .white-container > .container { padding-top: 28px; }
  .page--h26 .top-banner { align-items: stretch; }
  .page--h26 .top-banner__slider { width: calc(59% - 12px); margin-right: 24px; }
  .page--h26 .top-banner__slider li.swiper-slide { height: auto; aspect-ratio: 537 / 279; }
  .page--h26 .top-banner__right { width: calc(41% - 12px); display: flex; }
}
@media (min-width: 768px) and (max-width: 1259px) {
  /* планшет: баннер шире прежних 688 px — высота по пропорции баннера, чтобы надписи не срезались */
  .page--h26 .top-banner__slider li.swiper-slide { height: auto; aspect-ratio: 537 / 279; }
  .page--h26 .top-banner__right { display: block; width: 100%; margin-top: 20px; }
  .page--h26 .h26-day { min-height: 340px; }
}
.h26-day {
  display: flex; width: 100%; height: 100%; background: #fff;
  border: 1px solid #e6e4de; border-radius: 12px; overflow: hidden;
}
.h26-day__img { position: relative; display: block; flex: 0 0 51.5%; min-height: 100%; background: #f5f4f0; overflow: hidden; }
.h26-day__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s ease; }
.h26-day__img:hover img { transform: scale(1.03); }
.h26-day__badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 6px;
  background: #f7cf2b; color: #212115; font: 15px/1.2 "RobotoCondensed-Bold", sans-serif; text-transform: uppercase; letter-spacing: .02em;
}
.h26-day__badge svg { width: 15px; height: 15px; fill: #212115; }
.h26-day__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 24px 24px 24px 22px; }
.h26-day__title { font: 19px/1.42 "Roboto-Regular", sans-serif; color: #242424; text-decoration: none; }
.h26-day__title:hover, .h26-day__title:focus-visible { color: #d92b1f; }
.h26-day__cost { margin: 22px 0 26px; }
.h26-day__old { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.3; color: #8a8a8a; }
.h26-day__old span { background: #f7cf2b; color: #242424; padding: 1px 5px; border-radius: 3px; font-size: 13px; }
.h26-day__price { margin: 0; font: 38px/1.1 "RobotoCondensed-Bold", sans-serif; color: #e03a2f; white-space: nowrap; }
.h26-day__note { margin: 10px 0 0; font-size: 13px; line-height: 1.35; color: #6b6b6b; }
.h26-day__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px;
  padding: 0 16px; border: 0; border-radius: 6px; background: #d92b1f; color: #fff; cursor: pointer;
  font: 16px/1.2 "RobotoCondensed-Bold", sans-serif; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .2s ease;
}
.h26-day__btn:hover, .h26-day__btn:focus-visible { background: #b9231a; }
.h26-day__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.h26-day__btn svg circle { fill: currentColor; stroke: none; }

/* 8.3 Популярные категории: 8 высоких плиток с разными фото товаров (v3), подпись узким жирным */
.home-cats--h26 { gap: 28px 28px; }
.home-cats--h26 .home-cats__img { aspect-ratio: 4 / 5; border-radius: 10px; background: #f5f4f0; }
.home-cats--h26 .home-cats__img img { object-fit: cover; }
.home-cats--h26 .home-cats__title { margin: 14px 0 2px; font: 19px/1.25 "RobotoCondensed-Bold", sans-serif; }
.home-cats--h26 .home-cats__sub { font-size: 14px; line-height: 1.35; color: #8a8a8a; }

/* 8.4 Товары (Скидки, Лидеры, Новинки): фото целиком, без обрезки — рамка 3:4 на фоне карточки */
.page--h26 .section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .product__img { aspect-ratio: 3 / 4; background: #f5f4f0; border-radius: 10px; }
.page--h26 .section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .product__img img { object-fit: contain; border-radius: 0; }
.page--h26 .section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .product__title { -webkit-line-clamp: 3; min-height: 38px; }

/* 8.5 Блог: фото целиком; по бокам вместо пустых полос — размытая копия того же фото (--h26-blur ставит скрипт в home_c1.php) */
.page--h26 .articles-section .articles-section__img { position: relative; overflow: hidden; background: #f5f4f0; }
.page--h26 .articles-section .articles-section__img a { position: relative; display: block; height: 100%; }
.page--h26 .articles-section .articles-section__img a::before {
  content: ""; position: absolute; inset: -24px; background: var(--h26-blur, none) center / cover no-repeat;
  filter: blur(18px); opacity: .75; transform: scale(1.08);
}
.page--h26 .articles-section .articles-section__img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.page--h26 .articles-section .articles-section__img { height: auto; aspect-ratio: 16 / 10; }
@media (min-width: 1260px) {
  /* три статьи в ряд в ширину контента (слайдер сайта со slidesPerView: auto берёт ширину слайда из CSS) */
  .page--h26 .articles-section .swiper-slide { width: calc((min(100vw, 1420px) - 100px - 56px) / 3); }
}
@media (max-width: 767px) {
  .page--h26 .articles-section .articles-section__img { aspect-ratio: 4 / 3; }
}

/* 8.6 «Почему Barfits» и уличные комплексы: крупные кнопки, серый фон блоков — во всю ширину страницы */
@media (min-width: 1260px) {
  .page--h26 .h26-banner { padding: 18px 22px 18px 34px; }
  .page--h26 .h26-banner__btns .h26-btn { min-height: 94px; min-width: 276px; font-size: 17px; }
  .page--h26 .h26-outdoor__btns .h26-btn { min-height: 94px; min-width: 330px; font-size: 17px; }
}
.page--h26 .section.section--main.h26-outdoor {
  width: 100%; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0;
  background: #f5f5f5; box-shadow: 0 0 0 100vmax #f5f5f5; clip-path: inset(0 -100vmax);
}
@media (min-width: 768px) {
  /* отзывы — на том же сером фоне, что и уличные комплексы (компьютерный макет v3) */
  .page--h26 .section--main.reviews-section {
    margin-top: -64px; margin-bottom: 0; padding-top: 72px; padding-bottom: 64px;
    background: #f5f5f5; box-shadow: 0 0 0 100vmax #f5f5f5; clip-path: inset(0 -100vmax);
  }
}

/* 8.7 Телефон: баннер во всю ширину без отступа снизу, «Товар дня» во всю ширину с большим фото */
@media (max-width: 767px) {
  .page--h26 .top-banner .top-banner__slider { width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; margin-bottom: 16px; }
  .page--h26 .top-banner__slider .swiper-pagination { bottom: 10px; }
  .h26-day { flex-direction: column; }
  .h26-day__img { flex: none; aspect-ratio: 358 / 535; min-height: 0; }
  .h26-day__badge { font-size: 16px; padding: 7px 12px 7px 10px; }
  .h26-day__body { padding: 18px 18px 20px; }
  .h26-day__title { font-size: 18px; line-height: 1.38; }
  .h26-day__cost { margin: 14px 0 18px; }
  .h26-day__price { font-size: 34px; }
  .h26-day__note { display: none; }
  /* «Скидки»: старая цена со скидкой занимают строку — «В корзину» строкой ниже, как в мобильном макете v3 */
  .page--h26 .section--main.h26-tiles--sale:not(.top-banner) .grid--four-flex .product .product__btn-cart { flex-basis: 100%; justify-content: flex-start; margin-top: 4px; }
  .home-cats--h26 { gap: 18px 12px; }
  .home-cats--h26 .home-cats__title { font-size: 16px; line-height: 1.25; margin-top: 10px; }
  .home-cats--h26 .home-cats__sub { font-size: 13px; }
}

/* 8.8 Доводка по сверке с v3 (23.11) */
@media (min-width: 1260px) {
  /* шапка, второй ряд: «Каталог», «Акции» рядом, поиск растягивается до «Вы смотрели» (контейнер шире — без пустот) */
  .page--h26 .header__row--foot .header__container { justify-content: flex-start; }
  .page--h26 .header__row--foot .header__block--actions { margin-left: 16px; }
  .page--h26 .header__row--foot .header__search-wrap { flex: 1 1 auto; width: auto; margin: 0 16px; }
  .page--h26 .header__row--foot .header__search-wrap > * { width: 100%; max-width: none; }
  /* «Гарантия 10 лет!» в одну строку */
  .page--h26 .top-banner .features__item p { white-space: nowrap; }
  /* плашка гарантии и уличные комплексы: высокие кнопки, как в v3 */
  .page--h26 .h26-banner { padding: 24px 24px 24px 36px; }
  .page--h26 .h26-banner__btns .h26-btn { min-height: 136px; font-size: 17px; }
  .page--h26 .h26-banner__btns .h26-btn--red { min-width: 274px; }
  .page--h26 .h26-banner__btns .h26-btn--ghost-white { min-width: 348px; }
  .page--h26 .h26-outdoor__btns .h26-btn { min-height: 136px; min-width: 342px; font-size: 17px; }
  /* «В корзину» со значком корзины, как в v3 */
  .page--h26 .section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .product__btn-cart { display: inline-flex; align-items: center; gap: 6px; }
  .page--h26 .section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .product__btn-cart svg { display: block; width: 16px; height: 16px; flex: none; }
  /* блог: ровно три статьи в ширину контента, без выглядывающей четвёртой и без стрелок */
  .page--h26 .articles-section .js-articles-slider { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; width: 100%; }
  .page--h26 .articles-section .slider-button { display: none; }
}
/* разделитель между «Лидерами» и «Новинками», как между остальными секциями */
.page--h26 .main .section--main.h26-tiles:not(.section--border) { position: relative; padding-top: 24px; }
.page--h26 .main .section--main.h26-tiles:not(.section--border)::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 100vw; margin-left: -50vw; height: 1px; background: #ebe9e4;
}
/* блог на планшете и телефоне: фото выше (у сайта 158 px), целиком */
.page--h26 .articles-section .swiper-slide .articles-section__img { height: auto; aspect-ratio: 16 / 10; }
@media (max-width: 767px) {
  .page--h26 .articles-section .swiper-slide .articles-section__img { aspect-ratio: 4 / 3; }
  .h26-hero__title { font-size: 33px; }
  /* названия товаров целиком (до 4 строк) */
  .page--h26 .section--main.h26-tiles:not(.top-banner) .grid--four-flex .product .product__title { -webkit-line-clamp: 4; min-height: 51px; }
  /* уличные комплексы: фото сверху, тёмная плашка с текстом под фото, как в мобильном v3 */
  .h26-outdoor__photo { min-height: 0; display: flex; flex-direction: column; background: #22221c; }
  .h26-outdoor__photo img { position: static; height: 210px; flex: none; }
  .h26-outdoor__note { position: static; border-radius: 0; background: #22221c; padding: 18px 20px 22px; }
}

/* End */


/* Start:/local/templates/barfits/components/bitrix/news.list/index_slider/style.css?1747041560150*/
div.news-list
{
	word-wrap: break-word;
}
div.news-list img.preview_picture
{
	float:left;
	margin:0 4px 6px 0;
}
.news-date-time {
	color:#486DAA;
}

/* End */


/* Start:/local/templates/barfits/components/bitrix/news.list/inndex_reviews/style.css?1747041560150*/
div.news-list
{
	word-wrap: break-word;
}
div.news-list img.preview_picture
{
	float:left;
	margin:0 4px 6px 0;
}
.news-date-time {
	color:#486DAA;
}

/* End */


/* Start:/local/templates/barfits/components/bitrix/news.list/index_blog/style.css?1747041560150*/
div.news-list
{
	word-wrap: break-word;
}
div.news-list img.preview_picture
{
	float:left;
	margin:0 4px 6px 0;
}
.news-date-time {
	color:#486DAA;
}

/* End */
/* /local/templates/barfits/css/home-cards.css?17956983706453 */
/* /local/templates/barfits/css/home-concept.css?179569837031286 */
/* /local/templates/barfits/components/bitrix/news.list/index_slider/style.css?1747041560150 */
/* /local/templates/barfits/components/bitrix/news.list/inndex_reviews/style.css?1747041560150 */
/* /local/templates/barfits/components/bitrix/news.list/index_blog/style.css?1747041560150 */
