/* БлагоГрад — сегментные лендинги 2026 */

.bg-seg-page .bg-page-hero {
  margin-bottom: 0;
}

.bg-seg-page .bg-page-hero__title,
.bg-seg-page .bg-page-hero__text {
  color: #fff;
}

.bg-seg-page .bg-page-hero__text {
  color: rgba(255, 255, 255, 0.92);
}

/* Без тяжёлой затемняющей подложки — как в макете */
.bg-seg-page .bg-page-hero__overlay {
  background: linear-gradient(
    100deg,
    rgba(30, 30, 30, 0.42) 0%,
    rgba(30, 30, 30, 0.12) 45%,
    transparent 70%
  );
}

.bg-seg-toolbar {
  background: #fff;
  border-bottom: 1px solid var(--bg-border);
  padding: 16px 0 20px;
}

.bg-seg-toolbar .bg-catalog-breadcrumbs {
  margin: 0;
  font-size: 14px;
}

.bg-seg-toolbar .bg-catalog-breadcrumbs a {
  color: var(--bg-muted);
  text-decoration: none;
}

.bg-seg-toolbar .bg-catalog-breadcrumbs a:hover {
  color: var(--bg-text);
}

/* Layout */
.bg-seg-body {
  background: #fff;
  padding: 32px 0 56px;
}

.bg-seg-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* Sidebar */
.bg-seg-sidebar {
  position: sticky;
  top: calc(var(--bg-header-h) + 16px);
}

.bg-seg-sidebar__box {
  background: var(--bg-section);
  border: 1px solid var(--bg-border);
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 20px;
}

.bg-seg-sidebar__title {
  margin: 0 0 14px;
  padding: 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.bg-seg-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.bg-seg-menu__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--bg-text);
  transition: background 0.2s;
}

.bg-seg-menu__item:hover {
  background: rgba(255, 255, 255, 0.65);
}

.bg-seg-menu__item.is-active {
  background: var(--bg-beige-light);
  border: 1px solid var(--bg-border);
}

.bg-seg-menu__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-seg-menu__icon img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.bg-seg-menu__label {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.bg-seg-sidebar__cta {
  padding: 22px;
  background: var(--bg-beige-light);
  border-radius: 16px;
  border: 1px solid var(--bg-border);
}

.bg-seg-sidebar__cta-icon {
  display: flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.bg-seg-sidebar__cta p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--bg-muted);
}

.bg-seg-sidebar__cta .bg-btn {
  width: 100%;
  justify-content: center;
}

/* Main content */
.bg-seg-panel__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.bg-seg-panel__lead {
  margin: 0 0 32px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bg-muted);
}

/* Benefits — иконки с обводкой, без серых карточек */
.bg-seg-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--bg-border);
}

.bg-seg-benefit {
  padding: 0;
  background: transparent;
}

.bg-seg-benefit__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--bg-accent);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.bg-seg-benefit__icon img {
  width: 26px;
  height: 26px;
  opacity: 0.85;
}

.bg-seg-benefit h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.bg-seg-benefit p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bg-muted);
}

/* Feature + offer card */
.bg-seg-feature {
  position: relative;
  margin-bottom: 48px;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f4f1;
}

.bg-seg-feature__img {
  aspect-ratio: 16 / 9;
  min-height: 320px;
}

.bg-seg-feature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-seg-feature__card {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: min(360px, calc(100% - 56px));
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.bg-seg-feature__card h3 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
}

.bg-seg-feature__card ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.bg-seg-feature__card li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--bg-muted);
}

.bg-seg-feature__card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: center/10px 8px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 9'%3E%3Cpath fill='none' stroke='%23B99272' stroke-width='1.6' d='M1 4.5 4.2 7.5 11 1.5'/%3E%3C/svg%3E") var(--bg-beige-light);
}

.bg-seg-feature__card .bg-btn {
  width: 100%;
  justify-content: center;
}

/* Popular grid */
.bg-seg-popular__title {
  margin: 0 0 24px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
}

.bg-seg-popular {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.bg-seg-popular__card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bg-border);
  transition: box-shadow 0.25s, border-color 0.25s;
}

.bg-seg-popular__card:hover {
  border-color: var(--bg-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.bg-seg-popular__img {
  display: block;
  aspect-ratio: 1;
  background: #f5f4f1;
  overflow: hidden;
}

.bg-seg-popular__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.bg-seg-popular__card:hover .bg-seg-popular__img img {
  transform: scale(1.04);
}

.bg-seg-popular__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
}

.bg-seg-popular__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.bg-seg-popular__arrow {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-beige-light);
  color: var(--bg-production-btn, var(--bg-accent));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Нижний баннер — как в макете (без формы заявки) */
.bg-seg-cta {
  padding: 0 0 64px;
  background: #fff;
}

.bg-seg-cta__card {
  position: relative;
  min-height: 220px;
  padding: 44px 48px;
  border-radius: 16px;
  background-color: var(--bg-beige-light);
  background-image: var(--bg-seg-cta-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.bg-seg-cta__content {
  position: relative;
  z-index: 1;
  max-width: min(520px, 58%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.bg-seg-cta__content h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--bg-text);
}

.bg-seg-cta__lead {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--bg-muted);
  max-width: 440px;
}

.bg-seg-cta__content .bg-btn {
  min-width: 220px;
  padding: 14px 32px;
}

@media (max-width: 1200px) {
  .bg-seg-popular {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bg-seg-benefits {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bg-seg-feature__card {
    position: static;
    transform: none;
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid var(--bg-border);
  }

  .bg-seg-cta__card {
    padding: 32px 24px;
    min-height: 280px;
    background-position: center;
    background-size: cover;
  }

  .bg-seg-cta__content {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .bg-seg-layout {
    grid-template-columns: 1fr;
  }

  .bg-seg-sidebar {
    position: static;
  }

  .bg-seg-popular {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .bg-seg-popular {
    grid-template-columns: 1fr;
  }
}
