/* Fitberg homepage: bento tiles, sliders, CTA, sale teaser icons */
@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@400;700;800;900&display=swap");

.fitberg-home-bento {
  --fb-red: #e10600;
  --fb-ink: #222;
  --fb-muted: #777;
  --fb-line: #ececec;
  margin: 8px auto 2px;
  padding: 0 16px;
}
.fitberg-home-bento__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}
.fitberg-home-bento__title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.03em;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white_text_black, var(--fb-ink));
}
.fitberg-home-bento__all {
  color: var(--fb-red);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.fitberg-home-bento__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 12px;
}
.fitberg-home-bento__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.fitberg-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  color: #111;
  background: #fff;
  border: 1px solid var(--fb-line);
  display: flex;
  align-items: flex-end;
  padding: 12px 14px 4px;
  cursor: pointer;
  container-type: inline-size;
  min-width: 0;
}
.fitberg-tile:hover { border-color: #ead0d0; }
.fitberg-tile__hit { position: absolute; inset: 0; z-index: 3; }
.fitberg-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #fff 0 48%, rgba(255,255,255,.75) 78%, rgba(255,255,255,0) 100%);
}
.fitberg-tile__photo {
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  transform: none;
  width: 58%;
  height: auto;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
}
.fitberg-tile__num {
  position: absolute;
  left: 18px;
  right: 28%;
  top: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  max-width: calc(100% - 36px);
  text-align: left;
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: .03em;
  color: rgba(70, 70, 76, .34);
  line-height: 1.05;
  white-space: nowrap;
  pointer-events: none;
  text-transform: uppercase;
  overflow: visible;
  transition: color .18s ease;
}
.fitberg-tile__num .num__a { font-weight: 800; }
.fitberg-tile__num .num__b {
  font-size: .55em;
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.05;
  margin-top: .18em;
}
.fitberg-tile:hover .fitberg-tile__num { color: rgba(225, 6, 0, .32); }
.fitberg-tile__series {
  position: relative;
  z-index: 4;
  max-width: 96%;
}
.fitberg-tile__series small {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: #555;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.1;
}
.fitberg-home-bento a {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background-image: none;
}
.fitberg-tile__series a,
.fitberg-tile__series a:hover,
.fitberg-tile__series a:visited {
  color: #444;
  position: relative;
  z-index: 5;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
.fitberg-tile__series a:hover { color: var(--fb-red); }
.fitberg-tile--main { grid-row: span 2; padding: 16px 16px 4px; }
.fitberg-tile--main::before { width: 34%; }
.fitberg-tile--main .fitberg-tile__num {
  left: 22px;
  top: 28px;
  font-size: 36px;
}
.fitberg-tile--main .fitberg-tile__photo {
  width: 62%;
  top: 8%;
  bottom: 8%;
  right: 0;
}
.fitberg-tile--main .fitberg-tile__series small { font-size: 16px; gap: 10px 16px; }
.fitberg-home-bento__row .fitberg-tile { min-height: 148px; }
.fitberg-tile--tubes .fitberg-tile__photo {
  width: 72%;
  top: 4%;
  bottom: 4%;
  right: 0;
  background-position: right center;
}

.fitberg-home-slider {
  --fb-red: #e10600;
  --fb-line: #ececec;
  margin: 28px auto 8px;
  padding: 0 16px;
}
.fitberg-home-slider__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.fitberg-home-slider__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--white_text_black, #222);
}
.fitberg-home-slider__nav { display: flex; gap: 8px; }
.fitberg-home-slider__btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--fb-line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #333;
}
.fitberg-home-slider__btn:hover { border-color: #ead0d0; color: var(--fb-red); }
.fitberg-home-slider__track {
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.fitberg-home-slider--novinki .fitberg-home-slider__track {
  grid-auto-columns: minmax(160px, 1fr);
}
.fitberg-home-slider--podborki .fitberg-home-slider__track {
  grid-auto-columns: minmax(280px, 42%);
}
.fitberg-slide-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none !important;
  color: #202223 !important;
  background: #fff;
  border: 1px solid var(--fb-line);
  border-radius: 14px;
  padding: 12px 12px 14px;
  min-width: 0;
}
.fitberg-slide-card:hover { border-color: #ead0d0; }
.fitberg-slide-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: #fff;
}
.fitberg-slide-card__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.fitberg-slide-card__art {
  font-size: 13px;
  font-weight: 700;
}
.fitberg-slide-card__name {
  font-size: 12px;
  color: #777;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fitberg-pick {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--fb-line);
  border-radius: 16px;
  padding: 22px 24px;
  text-decoration: none !important;
  color: inherit !important;
  min-width: 0;
}
.fitberg-pick:hover { border-color: #ead0d0; }
.fitberg-pick h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.fitberg-pick p {
  margin: 0 0 12px;
  color: #777;
  font-size: 14px;
}
.fitberg-pick__go {
  display: inline-block;
  background: #e10600;
  color: #fff !important;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}
.fitberg-pick img {
  max-height: 140px;
  max-width: 100%;
  object-fit: contain;
  justify-self: center;
}

.fitberg-home-cta {
  --fb-red: #e10600;
  --fb-line: #ececec;
  margin: 22px auto 12px;
  padding: 0 16px;
}
.fitberg-home-cta__box {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--fb-line);
  border-radius: 16px;
  padding: 24px;
}
.fitberg-home-cta h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.fitberg-home-cta p {
  margin: 0 0 14px;
  color: #777;
}
.fitberg-home-cta__btn {
  display: inline-block;
  background: var(--fb-red);
  color: #fff !important;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}
.fitberg-home-cta__facts {
  color: #777;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.fitberg-home-cta__facts b {
  color: #111;
  display: block;
}

/* Sale teasers: icon badge on photo */
.sale-list .ui-card__image {
  position: relative;
}
.sale-list .ui-cards > *:nth-child(1) .ui-card__image::after,
.sale-list .ui-cards > *:nth-child(2) .ui-card__image::after,
.sale-list .ui-cards > *:nth-child(3) .ui-card__image::after,
.sale-list .grid-list__item:nth-child(1) .ui-card__image::after,
.sale-list .grid-list__item:nth-child(2) .ui-card__image::after,
.sale-list .grid-list__item:nth-child(3) .ui-card__image::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  z-index: 2;
  pointer-events: none;
}
.sale-list .ui-cards > *:nth-child(1) .ui-card__image::after,
.sale-list .grid-list__item:nth-child(1) .ui-card__image::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E10600' stroke-width='2' stroke-linecap='round'><path d='M19 5L5 19'/><circle cx='6.5' cy='6.5' r='2.5'/><circle cx='17.5' cy='17.5' r='2.5'/></svg>");
}
.sale-list .ui-cards > *:nth-child(2) .ui-card__image::after,
.sale-list .grid-list__item:nth-child(2) .ui-card__image::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E10600' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 21h18'/><path d='M6 21V8l6-5 6 5v13'/><path d='M10 21v-6h4v6'/></svg>");
}
.sale-list .ui-cards > *:nth-child(3) .ui-card__image::after,
.sale-list .grid-list__item:nth-child(3) .ui-card__image::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E10600' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>");
}

.fitberg-home-tizers {
  --fb-red: #e10600;
  --fb-line: #ececec;
  margin: 8px auto 28px;
  padding: 0 16px;
}
.fitberg-home-tizers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.fitberg-tizer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--fb-line);
  border-radius: 14px;
  padding: 16px 16px 14px;
  text-decoration: none !important;
  color: inherit !important;
  min-width: 0;
}
.fitberg-tizer:hover { border-color: #ead0d0; }
.fitberg-tizer__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: var(--fb-red);
}
.fitberg-tizer__icon svg {
  display: block;
  width: 36px;
  height: 36px;
}
.fitberg-tizer__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.fitberg-tizer__body b {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.fitberg-tizer__body span {
  color: #777;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .fitberg-home-tizers__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .fitberg-home-bento__title { font-size: 22px; }
  .fitberg-home-bento__grid,
  .fitberg-home-bento__row,
  .fitberg-home-cta__box,
  .fitberg-home-tizers__grid,
  .fitberg-pick {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .fitberg-tile--main { grid-row: auto; min-height: 200px; }
  .fitberg-tile,
  .fitberg-home-bento__row .fitberg-tile { min-height: 168px; }
  .fitberg-tile__num,
  .fitberg-tile--main .fitberg-tile__num { font-size: 24px; }
  .fitberg-tile__photo,
  .fitberg-tile--main .fitberg-tile__photo { right: 0; width: 56%; top: 8%; bottom: 8%; }
  .fitberg-tile--tubes .fitberg-tile__photo { width: 68%; }
  .fitberg-home-slider--podborki .fitberg-home-slider__track {
    grid-auto-columns: minmax(78%, 1fr);
  }
}
