/**
 * Блок «Может быть полезным» — один компактный макет на всех городах.
 */
body.service-page .b24-useful {
  position: relative;
  padding: 72px 0 20px;
  margin: 0;
}

body.service-page .b24-useful::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 50%;
  width: min(1080px, calc(100% - 36px));
  height: 9px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent, #a1a1aa 4%, #6b7280 50%, #a1a1aa 96%, transparent) center top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, #c4c4c8 14%, #9ca3af 50%, #c4c4c8 86%, transparent) center 5px / 78% 1px no-repeat;
}

body.service-page .b24-useful__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

body.service-page section.b24-useful h2.b24-useful__title {
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: clamp(22px, 2.2vw, 30px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
  color: #0f172a !important;
  background: none !important;
  border: 0 !important;
}

body.service-page .b24-useful__title::after {
  content: none;
}

body.service-page .b24-useful__title span {
  color: #16a34a;
}

body.service-page .b24-useful__note {
  margin: 8px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  color: #64748b;
}

body.service-page .b24-useful__grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px !important;
  margin-top: 22px !important;
}

body.service-page a.b24-useful__card {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - 40px) / 5);
  width: calc((100% - 40px) / 5);
  max-width: calc((100% - 40px) / 5);
  height: 128px !important;
  min-height: 0 !important;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

body.service-page .b24-useful__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) center / cover no-repeat;
  transition: transform 0.35s ease;
}

body.service-page .b24-useful__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.78) 100%);
}

body.service-page .b24-useful__name {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

body.service-page .b24-useful__card:hover .b24-useful__bg {
  transform: scale(1.05);
}

@media (max-width: 1100px) {
  body.service-page a.b24-useful__card {
    flex-basis: calc((100% - 30px) / 4);
    width: calc((100% - 30px) / 4);
    max-width: calc((100% - 30px) / 4);
  }
}

@media (max-width: 800px) {
  body.service-page .b24-useful {
    margin-top: 4px;
    padding: 52px 0 20px;
  }

  body.service-page .b24-useful__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch;
    gap: 8px !important;
  }

  body.service-page a.b24-useful__card {
    flex: none;
    width: auto;
    max-width: none;
  }

  body.service-page a.b24-useful__card {
    height: 112px !important;
  }
}
