

/* Start:/local/templates/bibi/bibi-selections.css?17943138467043*/
/* Блок «Подборки» на главной: лента карточек со стрелками (local/templates/bibi/include/selections_ribbon.php).
   Шрифты, размеры и цвета — токены из bibi-typography.css (--bh-*). Брейкпоинты 1240 / 767. */

/* --- Лента подборок ------------------------------------------------------- */

.sel_swiper { overflow: hidden; }
.sel_swiper .swiper-slide { height: auto; }

.sel_arrow {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #F7F7F7;
  color: #979797;
  transition: background .2s, color .2s, transform .2s;
}

.sel_arrow--sm { width: 30px; height: 30px; background: transparent; color: currentColor; }
.sel_arrow--sm svg { width: 13px; height: 13px; }

/* --- Кнопки листания ------------------------------------------------------ */

.sel_btn {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid #0047AB;
  border-radius: 50%;
  background: #0047AB;
  color: #FFFFFF;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.sel_btn svg { width: 22px; height: 22px; }
.sel_btn:hover { background: #003A8C; border-color: #003A8C; }
.sel_btn:active { transform: scale(.94); }

/* неактивная — серая, но видна: понятно, что дальше листать некуда */
.sel_btn.is-disabled {
  border-color: #E4E4E4;
  background: #F2F4F7;
  color: #B4B8BF;
  pointer-events: none;
}

/* --- Стрелки и счётчик под лентой ----------------------------------------- */

.selC_ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
}

.selC_count {
  min-width: 110px;
  text-align: center;
  font-size: var(--bh-fs-body);
  color: var(--bh-ink-3);
}

.selC_count b { font-weight: var(--bh-fw-ui); color: var(--bh-ink); }

/* --- Мягкое размытие по краям ленты ---------------------------------------- */
/* Слои с нарастающим blur, каждый виден только в своей полосе. Анимируется opacity слоёв, а не сила размытия. */

/* лента на всю ширину экрана: выходим за колонку на ширину бокового поля,
   а внутренним отступом возвращаем первую карточку на край контента (как баннеры в первом блоке).
   --sel-sbw — ширина системной полосы прокрутки (в Windows), ставится скриптом. */
.sel_ribbon {
  --sel-bleed: calc((100vw - var(--sel-sbw, 0px)) / 2 - 50%);
  position: relative;
  margin: 0 calc(-1 * var(--sel-bleed));
  padding: 0 var(--sel-bleed);
  overflow: hidden;
}

.sel_ribbon .sel_swiper { overflow: visible; }

.edge-blur {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: clamp(24px, 4.5vw, 70px);
  pointer-events: none;
}

.edge-blur.left { left: 0; }
.edge-blur.right { right: 0; }

/* пока лента не на экране — размытие не рисуется совсем; ?noblur=1 — проверочный режим без размытия */
.sel_ribbon:not(.is-onscreen) .edge-blur,
.sel-noblur .edge-blur { display: none; }

.edge-blur i {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}

.edge-blur.on i {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease, visibility 0s;
}

/* облегчённое размытие: 2 слоя вместо 4 и максимум 6px вместо 12px — заметно меньше нагрузки при прокрутке.
   Мягкий слой лежит на всей полосе, сильный — у самого края; маски перекрываются, переход без ступенек. */
.edge-blur i:nth-child(1) { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.edge-blur i:nth-child(2) { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.edge-blur.right i:nth-child(1) { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%); mask-image: linear-gradient(to right, transparent 0%, #000 45%); }
.edge-blur.right i:nth-child(2) { -webkit-mask-image: linear-gradient(to right, transparent 45%, #000 100%); mask-image: linear-gradient(to right, transparent 45%, #000 100%); }

.edge-blur.left i:nth-child(1) { -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 45%); mask-image: linear-gradient(to left, transparent 0%, #000 45%); }
.edge-blur.left i:nth-child(2) { -webkit-mask-image: linear-gradient(to left, transparent 45%, #000 100%); mask-image: linear-gradient(to left, transparent 45%, #000 100%); }

/* --- Карточка: фото + текст под ним ---------------------------------------- */

.sel2_card {
  display: flex;
  flex-direction: column;
  padding: 9px;
  border-radius: 34px;
  background: #F7F7F7;
  color: var(--bh-ink);
}

.sel2_card:hover { color: var(--bh-ink); }

.sel2_img { display: block; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 27px; }

.sel2_img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.sel2_card:hover .sel2_img img { transform: scale(1.04); }

.sel2_body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 20px 14px 14px; }

.sel2_name {
  font-size: var(--bh-fs-subtitle);
  line-height: var(--bh-lh-subtitle);
  letter-spacing: var(--bh-ls-subtitle);
  font-weight: var(--bh-fw-ui);
}

.sel2_desc {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: var(--bh-fs-body);
  line-height: var(--bh-lh-text);
  color: var(--bh-ink-2);
}

.sel2_more {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 18px;
  font-size: var(--bh-fs-ui);
  font-weight: var(--bh-fw-ui);
  color: #0047AB;
}

.sel2_card:hover .sel2_more .sel_arrow { transform: translate(2px, -2px); }

/* --- Планшет --------------------------------------------------------------- */

@media screen and (max-width: 1240px) {
  .sel2_card { border-radius: 30px; }
  .sel2_img { border-radius: 23px; }
  .sel2_body { padding: 16px 10px 10px; }
}

/* --- Мобильные ------------------------------------------------------------- */

@media screen and (max-width: 767px) {
  .sel_btn { width: 48px; height: 48px; }
  .sel_btn svg { width: 20px; height: 20px; }

  .selC_ctrl { margin-top: 20px; gap: 16px; }

  .sel2_card { border-radius: 20px; padding: 6px; }
  .sel2_img { border-radius: 15px; aspect-ratio: 1 / 1; }
  .sel2_body { padding: 12px 6px 8px; }
}

/* End */
/* /local/templates/bibi/bibi-selections.css?17943138467043 */
