/* =========================
   WB Pages — stable + premium
   (Customizer Additional CSS)
   ========================= */

.wb-pages{ margin-top:18px; }
.wb-pages__group{ margin:0 0 22px; }

/* Head: title + count on same line */
.wb-pages__head{
  display:flex !important;
  align-items:baseline !important;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 10px;
}

/* одинаково для heading1/heading2 и любых h4 внутри */
.wb-pages__head h4{
  margin:0 !important;
  line-height:1.2;
  font-weight:700;
}

/* Count pill (работает и если класс у span вдруг слетит) */
.wb-pages__count,
.wb-pages__head > span{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;

  min-width:34px;
  height:26px;
  padding:0 10px;

  border-radius:999px;
  font-weight:700;
  font-size:13px;
  line-height:1;

  color:#fff;
  background:#00a78e;
  white-space:nowrap;
}

/* Badges wrapper: spacing between rows */
.wb-badges{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:14px 10px; /* row-gap 14px, column-gap 10px */
  margin:0;
}

/* Badge style (и с классом, и без — если span остался внутри wb-badges) */
.wb-badge,
.wb-badges > span{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;

  padding:8px 14px;
  border-radius:999px;
  white-space:nowrap;

  font-weight:600;
  font-size:13.5px;
  line-height:1.1;
  letter-spacing:.1px;

  color:#283550 !important;
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72)) !important;
  border:1px solid rgba(40,53,80,.14) !important;

  box-shadow:
    0 1px 0 rgba(255,255,255,.70) inset,
    0 8px 18px rgba(17,24,39,.10);

  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

@media (hover:hover){
  .wb-badge:hover,
  .wb-badges > span:hover{
    transform:translateY(-1px);
    border-color:rgba(0,167,142,.35) !important;
    box-shadow:
      0 1px 0 rgba(255,255,255,.78) inset,
      0 14px 28px rgba(17,24,39,.14);
  }
}

/* Soft badges */
.wb-badge--soft,
.wb-badges > span.wb-badge--soft{
  background:rgba(40,53,80,.06) !important;
  border-color:rgba(40,53,80,.16) !important;
  color:#283550 !important;

  box-shadow:
    0 1px 0 rgba(255,255,255,.35) inset,
    0 8px 18px rgba(17,24,39,.08);
}

/* Note */
.wb-pages__note{
  margin:12px 0 0;
  padding-left:12px;
  border-left:3px solid rgba(0,167,142,.28);
  font-size:14px;
  line-height:1.5;
  color:rgba(40,53,80,.78);
}

/* Mobile */
@media (max-width:480px){
  .wb-badges{ gap:12px 10px; }
  .wb-badge,
  .wb-badges > span{ padding:8px 12px; font-size:13px; }
}

/* Ideal para — spacing like badges */
.wb-ideal__line{
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 10px; /* row-gap / column-gap */
}












/* ===== Ideal para: not boring, no nested cards ===== */
.wb-ideal__hint{
  margin: 6px 0 12px;
  padding-left: 12px;
  border-left: 3px solid rgba(0,167,142,.28);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(40,53,80,.78);
}

/* чипы — как у тебя, только чуть плотнее */
.wb-ideal__line{
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
  align-items: center;
}

/* лёгкий брендовый оттенок для ideal бейджей */
.wb-ideal .wb-badge--ideal{
  background: rgba(0,167,142,.07) !important;
  border-color: rgba(0,167,142,.22) !important;
}






/* =========================
   Ideal para — tuned for your Elementor markup
   ========================= */

/* 1) Hint widget (separate heading widget with id) */
#wb-ideal__hint .elementor-widget-container{
  margin-top: 6px;
}

#wb-ideal__hint .elementor-heading-title{
  margin: 0 0 12px !important;
  padding-left: 12px;
  border-left: 3px solid rgba(0,167,142,.28);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(40,53,80,.78);
}

/* 2) Chips line (your section.wb-ideal > p.wb-ideal__line) */
.wb-ideal{
  margin-top: 0; /* чтобы не добавлять лишний отступ после hint */
}

.wb-ideal__line{
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;       /* более “живой” ритм */
  align-items: center;
}

/* 3) Make ideal chips slightly branded, but clean */
.wb-ideal .wb-badge--ideal{
  background: rgba(0,167,142,.07) !important;
  border-color: rgba(0,167,142,.22) !important;
}

/* Optional: accent first chip (comment this block if you don't want it) 
.wb-ideal__line .wb-badge--ideal:first-child{
  background: #00a78e !important;
  color: #fff !important;
  border-color: rgba(0,167,142,.55) !important;
}
*/

/* Mobile */
@media (max-width:480px){
  #wb-ideal__hint .elementor-heading-title{
    font-size: 13.5px;
    margin-bottom: 10px !important;
  }
  .wb-ideal__line{
    gap: 12px 10px;
  }
}
