/* БлагоГрад — внутренние страницы редизайна 2026 */

/* Hero */
.bg-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(300px, 38vw, 440px);
  margin-top: var(--bg-header-h);
  color: #fff;
  overflow: hidden;
  background: var(--bg-text) center/cover no-repeat var(--bg-hero-image, var(--bg-muted));
}

.bg-page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.25) 100%);
}

.bg-page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.5fr);
  gap: 40px;
  align-items: center;
  padding: clamp(48px, 6vw, 72px) 0;
}

.bg-page-hero__title {
  margin: 12px 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
}

.bg-page-hero__text {
  margin: 0 0 24px;
  max-width: 640px;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}

.bg-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bg-btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.bg-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.bg-page-hero__search {
  display: flex;
  max-width: 520px;
  margin-top: 8px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.bg-page-hero__search input {
  flex: 1;
  border: 0;
  padding: 14px 18px;
  font: inherit;
  font-size: 16px;
}

.bg-page-hero__search button {
  flex: 0 0 52px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bg-page-hero__card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--bg-text);
  border-radius: 16px;
  padding: 28px;
}

.bg-page-hero__card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.bg-page-hero__card li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.4;
}

.bg-page-hero__card li::before {
  content: none;
}

.bg-page-hero__card-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-beige-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-page-hero__card-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.75;
}

.bg-page-hero__card-text strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--bg-text);
}

/* Breadcrumbs */
.bg-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.bg-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.bg-body .bg-breadcrumbs {
  color: var(--bg-muted);
  margin-bottom: 24px;
}

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

.bg-breadcrumbs__sep {
  opacity: 0.6;
}

/* Body */
.bg-body {
  padding: 40px 0 72px;
  background: #fff;
}

.bg-body--gray {
  background: var(--bg-section);
}

.bg-section-title {
  margin: 0 0 28px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
}

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

/* Features bar */
.bg-features-bar {
  background: var(--bg-beige-light);
  padding: 28px 0;
  border-bottom: 1px solid var(--bg-border);
}

.bg-features-bar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.bg-features-bar__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--bg-muted);
}

.bg-features-bar__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-features-bar__icon img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

/* Grids */
.bg-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.bg-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bg-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

/* Project card */
.bg-project-card {
  background: #f5f4f1;
  border-radius: 16px;
  overflow: hidden;
}

.bg-project-card__media {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

.bg-project-card__body {
  padding: 20px;
}

.bg-project-card__body h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.bg-project-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.bg-project-card__meta {
  display: flex;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--bg-muted);
}

.bg-project-card__excerpt {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--bg-muted);
  line-height: 1.45;
}

.bg-project-card__link {
  font-weight: 500;
  color: var(--bg-text);
  text-decoration: none;
}

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

/* Blog card */
.bg-blog-card {
  display: flex;
  flex-direction: column;
  background: #f5f4f1;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
}

.bg-blog-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.bg-blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-blog-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bg-blog-card__meta {
  font-size: 13px;
  color: var(--bg-muted);
  margin-bottom: 8px;
}

.bg-blog-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.bg-blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.bg-blog-card__excerpt {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--bg-muted);
  flex: 1;
}

.bg-blog-card__more {
  font-weight: 500;
  text-decoration: none;
  color: var(--bg-text);
}

/* FAQ */
.bg-faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.bg-faq-tabs button {
  border: 1px solid #e0ddd6;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  min-width: 120px;
}

.bg-faq-tabs button.is-active {
  background: #f3efe8;
  border-color: var(--bg-accent);
}

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

.bg-accordion__item {
  border-bottom: 1px solid #e8e6e1;
}

.bg-accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.bg-accordion__panel {
  display: none;
  padding: 0 0 18px;
  color: var(--bg-muted);
  line-height: 1.55;
  font-size: 15px;
}

.bg-accordion__item.is-open .bg-accordion__panel {
  display: block;
}

.bg-accordion__icon {
  flex: 0 0 24px;
  font-size: 22px;
  line-height: 1;
  color: var(--bg-muted);
}

.bg-sidebar-card {
  background: #f5f4f1;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.bg-sidebar-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

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

.bg-sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bg-sidebar-list li {
  margin-bottom: 12px;
  font-size: 14px;
}

.bg-sidebar-list a {
  color: var(--bg-text);
  text-decoration: none;
}

.bg-sidebar-list a:hover {
  color: var(--bg-beige-hover);
}

/* Collection layout */
.bg-collection-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.bg-collection-nav {
  position: sticky;
  top: calc(var(--bg-header-h) + 16px);
}

.bg-collection-nav h3 {
  margin: 0 0 16px;
  font-size: 16px;
}

.bg-collection-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bg-collection-nav li {
  margin-bottom: 4px;
}

.bg-collection-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--bg-text);
  font-size: 14px;
}

.bg-collection-nav a.is-active,
.bg-collection-nav a:hover {
  background: #f3efe8;
}

.bg-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.bg-filter-tags button {
  border: 1px solid #e0ddd6;
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.bg-filter-tags button.is-active {
  background: var(--bg-production-btn, var(--bg-accent));
  border-color: transparent;
  color: #fff;
}

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

.bg-product-mini {
  background: #f5f4f1;
  border-radius: 12px;
  overflow: hidden;
}

.bg-product-mini__img {
  display: block;
  aspect-ratio: 1;
  background: #fff;
}

.bg-product-mini__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.bg-product-mini__body {
  padding: 14px;
}

.bg-product-mini__body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.25;
}

.bg-product-mini__body h3 a {
  color: inherit;
  text-decoration: none;
}

.bg-product-mini__more {
  font-size: 13px;
  color: var(--bg-muted);
  text-decoration: none;
}

/* Product single */
.bg-product-page {
  padding: 32px 0 72px;
}

.bg-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
}

.bg-product-gallery__main {
  border-radius: 16px;
  overflow: hidden;
  background: #f5f4f1;
  margin-bottom: 12px;
}

.bg-product-gallery__main img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.bg-product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.bg-product-gallery__thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.bg-product-info__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.bg-product-info__tags span {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg-beige-light);
  border-radius: 999px;
}

.bg-product-info h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 40px);
}

.bg-product-info__lead {
  margin: 0 0 24px;
  color: var(--bg-muted);
  line-height: 1.55;
}

.bg-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 15px;
}

.bg-spec-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-border);
}

.bg-spec-table td:first-child {
  color: var(--bg-muted);
  width: 45%;
}

.bg-product-features {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.bg-product-features li {
  padding-left: 28px;
  position: relative;
  font-size: 15px;
}

.bg-product-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #b5a48f;
  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");
}

.bg-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Contact block */
.bg-contact-block {
  background: var(--bg-beige-light);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.bg-contact-block__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.bg-contact-block h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
}

.bg-contact-block__text p {
  margin: 0;
  color: var(--bg-muted);
  line-height: 1.5;
}

.bg-contact-block__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bg-contact-block__full {
  grid-column: 1 / -1;
}

.bg-contact-block label span,
.bg-contact-block__form label span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--bg-muted);
}

.bg-contact-block input,
.bg-contact-block textarea,
.bg-contact-block__form input,
.bg-contact-block__form textarea {
  width: 100%;
  border: 1px solid var(--bg-border);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}

.bg-contact-block__agree {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 16px 0;
  font-size: 13px;
  color: var(--bg-muted);
}

.bg-contact-block__decor {
  position: absolute;
  right: 0;
  bottom: 0;
  opacity: 0.15;
  pointer-events: none;
  max-width: 40%;
}

.bg-contact-block__decor img {
  max-width: 100%;
}

/* CTA band */
.bg-cta-band {
  background: var(--bg-beige-light);
  padding: 56px 0;
  background-image: var(--bg-cta-image);
  background-size: cover;
  background-position: right center;
}

.bg-cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bg-cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
}

.bg-cta-band p {
  margin: 0;
  max-width: 520px;
  color: var(--bg-muted);
}

/* Contacts */
.bg-info-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--bg-border);
}

.bg-info-bar__item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--bg-muted);
}

.bg-map-placeholder {
  min-height: 400px;
  background: #e8e6e1 center/cover;
  border-radius: 16px;
  margin: 32px 0;
}

/* Stats */
.bg-stats-inline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
  padding: 48px 0;
}

.bg-stats-inline strong {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--bg-production-btn, var(--bg-accent));
  margin-bottom: 4px;
}

.bg-stats-inline span {
  font-size: 14px;
  color: var(--bg-muted);
}

/* Two col content */
.bg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.bg-checklist {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.bg-checklist li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  font-size: 15px;
}

.bg-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bg-production-btn, var(--bg-accent));
}

.bg-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--bg-text);
  text-decoration: none;
}

/* Article */
.bg-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.bg-article-content h2 {
  margin: 32px 0 16px;
  font-size: 26px;
}

.bg-article-content p {
  line-height: 1.65;
  margin: 0 0 16px;
  color: var(--bg-muted);
}

.bg-article-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 24px 0;
}

.bg-toc {
  position: sticky;
  top: calc(var(--bg-header-h) + 16px);
  background: #f5f4f1;
  border-radius: 16px;
  padding: 20px;
}

.bg-toc h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.bg-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--bg-text);
  text-decoration: none;
}

.bg-toc a:hover {
  background: var(--bg-border);
}

.bg-load-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

@media (max-width: 1100px) {
  .bg-page-hero__grid { grid-template-columns: 1fr; }
  .bg-page-hero__card { max-width: 400px; }
  .bg-grid-4, .bg-product-grid { grid-template-columns: repeat(3, 1fr); }
  .bg-collection-layout { grid-template-columns: 1fr; }
  .bg-collection-nav { position: static; }
  .bg-faq-layout, .bg-article-layout { grid-template-columns: 1fr; }
  .bg-product-layout { grid-template-columns: 1fr; }
  .bg-stats-inline { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .bg-grid-2, .bg-grid-3, .bg-grid-4, .bg-product-grid,
  .bg-split, .bg-info-bar, .bg-contact-block__grid,
  .bg-contact-block__fields { grid-template-columns: 1fr; }
  .bg-grid-3, .bg-grid-4, .bg-product-grid { grid-template-columns: repeat(2, 1fr); }
  .bg-stats-inline { grid-template-columns: repeat(2, 1fr); }
}
