/* Бенто-сетка (структура по образцу). Цвета пастельных карточек сохранены.
   Контент — плейсхолдеры, заменяются. Префикс bento_ во избежание коллизий. */

/* Ширина бенто = как у «шапки» (hero u-grid-breakout, 16px поля по краям),
   а не узкий 1200px u-container. */
.skb-bento .u-container { width: 100%; max-width: none; }

.bento_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 16px;
}

.bento_card {
  position: relative;
  border-radius: 50px;
  padding: 32px 34px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Раскладка карточек (как на образце) */
.bento_card--a { grid-column: 1 / 3; grid-row: 1 / 3; background: #E8F1FD; min-height: 440px; }
.bento_card--b { grid-column: 3 / 5; grid-row: 1 / 2; background: #FFFFFF; border: 1px solid #ECECF1; }
.bento_card--c { grid-column: 3 / 4; grid-row: 2 / 3; background: #E9F6EC; }
.bento_card--d { grid-column: 4 / 5; grid-row: 2 / 3; background: #FCEFE6; }

/* Типографика */
.bento_title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.1;
  font-weight: 700;
  color: #14152B;
  letter-spacing: -0.01em;
}
.bento_card--a .bento_text { max-width: none; }
.bento_text {
  margin: 0;
  max-width: 30ch;
  font-size: 17px;
  line-height: 1.5;
  color: #312749;
}

/* A — рейтинг + медиа-зона */
.bento_rating { color: #FBB400; font-size: 18px; letter-spacing: 3px; margin-bottom: 14px; }
.bento_pill {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #14152B;
  border-radius: 999px; padding: 9px 16px 9px 14px;
  font-size: 15px; font-weight: 600; line-height: 1;
  box-shadow: 0 6px 18px rgba(20, 30, 60, .08);
  margin-bottom: 18px;
}
.bento_pill svg { color: #2D6CDF; flex: none; }
.bento_media {
  position: relative;
  flex: 1 1 auto;
  margin-top: 20px;
  min-height: 170px;
}
.bento_phone {
  position: absolute; left: 6%; top: 0; bottom: 12px; width: 44%;
  background: linear-gradient(180deg, #20242E, #15171F);
  border-radius: 28px;
  border: 6px solid #0E1014;
}
.bento_list {
  position: absolute; right: 0; top: 0; width: 56%;
  background: #FFFFFF; border-radius: 18px; padding: 12px 16px;
  box-shadow: 0 18px 40px rgba(20, 30, 60, .12);
}
.bento_list_row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; font-size: 15px; color: #14152B;
  border-bottom: 1px solid #F1F2F5;
}
.bento_list_row:last-child { border-bottom: 0; }
.bento_list_row b { font-weight: 600; }
.bento_pays { position: absolute; left: 2%; top: 64%; display: flex; gap: 10px; }
.bento_pay {
  width: 56px; height: 56px; border-radius: 50%; background: #fff;
  box-shadow: 0 10px 24px rgba(20, 30, 60, .14);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #14152B;
}

/* A — картинка в медиа-зоне */
.bento_media_img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: left center;
  display: block;
}

/* B — 2/3 текст + 1/3 место под картинку */
.bento_card--b { flex-direction: row; align-items: stretch; gap: 24px; }
.bento_b_text { flex: 2 1 0; display: flex; flex-direction: column; min-width: 0; }
.bento_b_media { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-width: 0; }
.bento_b_img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
@media (max-width: 767px) {
  .bento_card--b { flex-direction: column; }
  .bento_b_media { display: none; }
}

/* B — баланс + столбики */
.bento_balance {
  align-self: flex-start; margin-top: 18px;
  background: #fff; border: 1px solid #ECECF1; border-radius: 16px;
  padding: 10px 16px; box-shadow: 0 12px 30px rgba(20, 30, 60, .08);
}
.bento_balance span { display: block; font-size: 12px; color: #8A90A0; }
.bento_balance b { font-size: 20px; color: #14152B; }
.bento_bars { position: absolute; right: 34px; top: 34px; display: flex; align-items: flex-end; gap: 8px; height: 92px; }
.bento_bars i { width: 12px; border-radius: 6px; background: #3B82F6; display: block; }

/* C — ряд аватаров внизу */
.bento_c_img {
  margin-top: 15px;
  align-self: flex-start;
  max-width: 100%;
  height: auto;
  display: block;
}

/* C — растущая линия + бейджи */
.bento_line { width: 100%; height: 96px; margin-top: auto; }
.bento_badges { position: absolute; left: 34px; bottom: 30px; display: flex; gap: 10px; }
.bento_badges span {
  background: #fff; border-radius: 12px; padding: 8px 12px;
  font-weight: 600; font-size: 14px; color: #14152B;
  box-shadow: 0 10px 24px rgba(20, 30, 60, .10);
}

/* D — эмодзи подарка */
.bento_gift { font-size: 56px; line-height: 1; margin-bottom: 12px; }

/* D — кнопка: вид 1-в-1 как .skb-cta (см. custom.css), на всю ширину карточки */
.bento_btn { margin-top: auto; align-self: stretch; }

/* D — трофей */
.bento_trophy { margin-top: auto; font-size: 64px; line-height: 1; align-self: flex-end; }
.bento_stars { position: absolute; right: 34px; top: 28px; font-size: 22px; }

/* Адаптив */
@media (max-width: 991px) {
  .bento_grid { grid-template-columns: 1fr 1fr; }
  .bento_card--a { grid-column: 1 / 3; grid-row: auto; min-height: 360px; }
  .bento_card--b { grid-column: 1 / 3; grid-row: auto; }
  .bento_card--c { grid-column: 1 / 2; grid-row: auto; }
  .bento_card--d { grid-column: 2 / 3; grid-row: auto; }
}
@media (max-width: 560px) {
  .bento_grid { grid-template-columns: 1fr; }
  .bento_card { grid-column: 1 / 2 !important; padding: 26px; }
  .bento_phone { position: relative; left: 0; width: 70%; height: 220px; margin-top: 18px; }
  .bento_list { position: relative; width: 100%; margin-top: 16px; }
  .bento_pays { position: relative; top: 0; margin-top: 16px; }
}
