/* БлагоГрад — страница каталога 2026 */

.bg-catalog-hero {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(360px, 38vw, 520px);
  overflow: hidden;
}

.bg-catalog-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.bg-catalog-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.32) 50%, rgba(0, 0, 0, 0.12) 100%);
}

.bg-catalog-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  padding-top: calc(var(--bg-header-h) + clamp(56px, 10vh, 112px));
  padding-bottom: clamp(48px, 6vw, 72px);
  color: #fff;
  max-width: min(100% - 32px, var(--bg-wrap));
}

.bg-catalog-hero__title {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 640px;
}

.bg-catalog-hero__text {
  margin: 0 0 28px;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  max-width: 560px;
}

.bg-catalog-hero__search {
  display: flex;
  align-items: stretch;
  max-width: 420px;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.bg-catalog-hero__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 16px 20px;
  font: inherit;
  font-size: 16px;
  color: var(--bg-text);
  background: transparent;
}

.bg-catalog-hero__search input::placeholder {
  color: #9a9a9a;
}

.bg-catalog-hero__search input:focus {
  outline: none;
}

.bg-catalog-hero__search button {
  flex: 0 0 56px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-catalog-body {
  background: #fff;
  padding: 32px 0 72px;
}

.bg-catalog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--bg-muted);
}

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

.bg-catalog-breadcrumbs a:hover {
  color: var(--bg-beige-hover);
}

.bg-catalog-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.bg-catalog-section-head__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  color: #1a1a1a;
}

.bg-catalog-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--bg-text);
  text-decoration: none;
}

.bg-catalog-download:hover {
  color: var(--bg-beige-hover);
}

.bg-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.bg-catalog-grid--wide {
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bg-catalog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  background: #f5f4f1;
  border-radius: 16px;
}

.bg-catalog-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #fff;
}

.bg-catalog-card__icon--green {
  background: #e1f2e8;
}

.bg-catalog-card__icon--yellow {
  background: #f9f1d9;
}

.bg-catalog-card__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.bg-catalog-card__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
}

.bg-catalog-card__desc {
  flex: 1;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #5c5c5c;
}

.bg-catalog-card__media {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e8e6e1;
}

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

.bg-catalog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--bg-text);
  text-decoration: none;
}

.bg-catalog-card__link:hover {
  color: var(--bg-beige-hover);
}

/* Wide cards — горизонтальный макет */
.bg-catalog-card--wide {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 220px;
  padding: 32px 36px;
  overflow: hidden;
}

.bg-catalog-card--wide .bg-catalog-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(58%, 520px);
  min-height: 100%;
}

.bg-catalog-card--wide .bg-catalog-card__desc {
  flex: 1;
  margin-bottom: 20px;
  max-width: 420px;
}

.bg-catalog-card--wide .bg-catalog-card__visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(46%, 360px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}

.bg-catalog-card--wide .bg-catalog-card__visual img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom right;
  display: block;
}

/* CTA */
.bg-catalog-cta {
  padding: 0 0 72px;
  background: #fff;
}

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

.bg-catalog-cta__content {
  position: relative;
  z-index: 1;
  max-width: min(520px, 58%);
}

.bg-catalog-cta__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  color: #1a1a1a;
}

.bg-catalog-cta__text {
  margin: 0 0 28px;
  max-width: 480px;
  font-size: 16px;
  line-height: 1.55;
  color: #4a4a4a;
}

.bg-catalog-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 32px;
  border-radius: 10px;
  background: var(--bg-production-btn, var(--bg-accent));
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s ease;
}

.bg-catalog-cta__btn:hover {
  background: var(--bg-production-btn-hover, var(--bg-accent-hover));
  color: #fff;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-header__nav > a.is-active,
.bg-header__nav-link.is-active {
  color: var(--bg-beige-hover);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .bg-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .bg-catalog-card--wide {
    flex-direction: column;
    min-height: 0;
    padding: 28px 24px 0;
  }

  .bg-catalog-card--wide .bg-catalog-card__body {
    max-width: 100%;
  }

  .bg-catalog-card--wide .bg-catalog-card__visual {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 8px;
  }

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

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

@media (max-width: 640px) {
  .bg-catalog-grid,
  .bg-catalog-grid--wide {
    grid-template-columns: 1fr;
  }

  .bg-catalog-hero__search {
    max-width: 100%;
  }

  .bg-catalog-body {
    padding-bottom: 48px;
  }

  .bg-catalog-cta {
    padding: 48px 0;
  }
}
