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

.bg-article-page {
  padding-bottom: 0;
}

/* Hero */
.bg-art-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--bg-header-h, 88px) + 24px) 0 56px;
  background: #333 center/cover no-repeat var(--bg-art-hero-image, #444);
  color: #fff;
}

.bg-art-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30, 30, 30, 0.35) 0%,
    rgba(30, 30, 30, 0.75) 100%
  );
}

.bg-art-hero .bg-wrap {
  position: relative;
  z-index: 1;
}

.bg-art-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: end;
}

.bg-art-hero__main {
  min-width: 0;
  max-width: none;
}

.bg-art-hero .bg-breadcrumbs,
.bg-art-hero .bg-breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
}

.bg-art-hero__cat {
  display: inline-block;
  margin: 16px 0 12px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 13px;
  font-weight: 600;
}

.bg-art-hero__meta {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.bg-art-hero__title,
.bg-article-page .bg-art-hero h1.bg-art-hero__title {
  margin: 0 0 16px;
  font-family: var(--bg-font-heading);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.bg-art-hero__intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

/* Layout */
.bg-art-body {
  padding: 48px 0 64px;
}

.bg-art-body .bg-article-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.bg-art-main {
  min-width: 0;
}

/* Blocks */
.bg-art-blocks {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.bg-art-text h2,
.bg-art-icons h2,
.bg-art-video h2,
.bg-art-ba h2,
.bg-art-products h2,
.bg-art-faq h2 {
  margin: 0 0 20px;
  font-family: var(--bg-font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bg-text);
}

.bg-art-text__body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--bg-muted);
}

.bg-art-text__body p {
  margin: 0 0 18px;
}

.bg-art-text__body p:last-child {
  margin-bottom: 0;
}

.bg-art-text__body h2,
.bg-art-text__body h3 {
  margin: 28px 0 14px;
  color: var(--bg-text);
  font-family: var(--bg-font-heading);
  font-weight: 700;
}

.bg-art-text__body ul,
.bg-art-text__body ol {
  margin: 0 0 18px 1.2em;
  padding: 0;
}

.bg-art-text__body li {
  margin-bottom: 8px;
}

.bg-art-image {
  margin: 0;
}

.bg-art-image img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.bg-art-image figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--bg-muted);
  text-align: center;
}

/* Quote */
.bg-art-quote {
  position: relative;
  margin: 0;
  padding: 40px 36px;
  border: none;
  border-radius: 16px;
  background: var(--bg-section);
  overflow: hidden;
}

.bg-art-quote__decor {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat var(--bg-art-quote-decor, transparent);
  opacity: 0.12;
  pointer-events: none;
}

.bg-art-quote__text {
  position: relative;
  margin: 0 0 16px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--bg-text);
}

.bg-art-quote cite {
  position: relative;
  font-style: normal;
  font-size: 14px;
  color: var(--bg-muted);
}

/* Icons row */
.bg-art-icons__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 42%);
  gap: 28px;
  align-items: start;
}

.bg-art-icons__main > p {
  margin: 0 0 20px;
  line-height: 1.6;
  color: var(--bg-muted);
}

.bg-art-icons__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bg-art-icons__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 88px;
  text-align: center;
  font-size: 12px;
  line-height: 1.3;
  color: var(--bg-text);
}

.bg-art-icons__side img {
  width: 100%;
  border-radius: 14px;
}

/* Video */
.bg-art-video__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #ccc center/cover no-repeat;
}

.bg-art-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95) url("../../img/play.svg") center/26px no-repeat;
}

.bg-art-video__duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  font-size: 12px;
  color: #fff;
}

/* Before / after */
.bg-art-ba__compare {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  --bg-ba-pos: 50%;
}

.bg-art-ba__before,
.bg-art-ba__after {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
}

.bg-art-ba__before {
  background-image: var(--bg-ba-before);
  clip-path: inset(0 calc(100% - var(--bg-ba-pos)) 0 0);
}

.bg-art-ba__after {
  background-image: var(--bg-ba-after);
}

.bg-art-ba__range {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  width: calc(100% - 32px);
  margin: 0 16px;
  z-index: 3;
  accent-color: var(--bg-accent);
}

.bg-art-ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--bg-ba-pos);
  width: 3px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
}

.bg-art-ba__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bg-muted);
}

/* Products */
.bg-art-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.bg-art-product {
  padding: 16px;
  background: var(--bg-section);
  border-radius: 14px;
}

.bg-art-product__img {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.bg-art-product__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bg-art-product h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

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

/* Sidebar */
.bg-art-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bg-art-toc a.is-active {
  background: var(--bg-beige-light, #ede4db);
  color: var(--bg-accent);
  font-weight: 600;
}

.bg-art-author {
  padding: 20px;
  background: var(--bg-section);
  border-radius: 16px;
}

.bg-art-author__photo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 12px;
}

.bg-art-author strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.bg-art-author__role,
.bg-art-author__exp {
  display: block;
  font-size: 13px;
  color: var(--bg-muted);
  line-height: 1.45;
}

.bg-art-author .bg-link-arrow {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
}

.bg-art-share {
  padding: 20px;
  background: var(--bg-section);
  border-radius: 16px;
}

.bg-art-share h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.bg-art-share__links {
  display: flex;
  gap: 10px;
}

.bg-art-share__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bg-art-share__links a:hover {
  border-color: var(--bg-accent, #c4a574);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bg-art-share__links a.is-copied {
  border-color: var(--bg-accent);
  box-shadow: 0 0 0 1px var(--bg-accent);
}

.bg-art-share__links img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.bg-art-subscribe {
  padding: 20px;
  background: var(--bg-beige-light, #ede4db);
  border-radius: 16px;
}

.bg-art-subscribe h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.bg-art-subscribe p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bg-muted);
}

.bg-art-subscribe__form input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--bg-border);
  border-radius: 10px;
  font: inherit;
}

.bg-art-subscribe__form .bg-btn {
  width: 100%;
}

.bg-art-subscribe__agree {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--bg-muted);
  align-items: flex-start;
}

/* Related */
.bg-art-related-section {
  padding: 56px 0;
  background: var(--bg-section);
}

.bg-art-related-section h2 {
  margin: 0 0 28px;
  font-size: 28px;
  font-weight: 700;
}

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

.bg-art-related__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 16px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: #555 center/cover no-repeat var(--bg-art-related-img, #666);
  overflow: hidden;
}

.bg-art-related__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.75) 100%);
}

.bg-art-related__cat,
.bg-art-related__link h3,
.bg-art-related__meta {
  position: relative;
  z-index: 1;
}

.bg-art-related__cat {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 600;
}

.bg-2026 .bg-art-related__link h3,
.bg-art-related__link h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.bg-art-related__meta {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

/* Contact form */
.bg-art-contact {
  padding: 64px 0 80px;
  background: var(--bg-beige-light);
}

.bg-art-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr) minmax(160px, 0.55fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

.bg-art-contact__intro h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
}

.bg-art-contact__intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--bg-muted);
  max-width: 360px;
}

.bg-art-contact__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}

.bg-art-contact__fields label {
  display: block;
}

.bg-art-contact__fields input,
.bg-art-contact__message textarea {
  width: 100%;
  border: 1px solid #e0ddd6;
  border-radius: 10px;
  padding: 14px 16px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--bg-text);
  box-sizing: border-box;
}

.bg-art-contact__fields input::placeholder,
.bg-art-contact__message textarea::placeholder {
  color: #9a9a9a;
}

.bg-art-contact__fields input:focus,
.bg-art-contact__message textarea:focus {
  outline: none;
  border-color: var(--bg-accent);
}

.bg-art-contact__message {
  grid-column: 1 / -1;
}

.bg-art-contact__message textarea {
  min-height: 52px;
  resize: vertical;
  line-height: 1.45;
}

.bg-art-contact__submit {
  grid-column: 1;
  justify-self: start;
  min-height: 52px;
  margin-top: 4px;
  padding: 14px 32px;
  border: 0;
  border-radius: 10px;
  background: var(--bg-production-btn, var(--bg-accent));
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease;
}

.bg-art-contact__submit:hover {
  background: var(--bg-production-btn-hover, var(--bg-accent-hover));
}

.bg-art-contact__agree {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--bg-muted);
}

.bg-art-contact__agree a {
  color: var(--bg-text);
}

.bg-art-contact__decor {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}

.bg-art-contact__decor img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
}

@media (max-width: 1100px) {
  .bg-art-contact__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .bg-art-contact__decor {
    display: none;
  }
}

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

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

  .bg-art-contact__message {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .bg-art-body .bg-article-layout {
    grid-template-columns: 1fr;
  }

  .bg-art-sidebar {
    order: -1;
  }

  .bg-art-toc {
    position: static;
  }

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

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

  .bg-art-icons__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .bg-art-related-grid,
  .bg-art-products__grid {
    grid-template-columns: 1fr;
  }

  .bg-art-contact__fields {
    grid-template-columns: 1fr;
  }

  .bg-art-contact__submit,
  .bg-art-contact__agree {
    grid-column: 1 / -1;
  }

  .bg-art-contact__agree {
    align-items: flex-start;
  }
}

.bg-article-page .bg-collection-projects {
  padding: 56px 0;
  background: var(--bg-section, #f7f5f2);
}

.bg-article-page .bg-art-catalog-section {
  padding: 56px 0;
  background: #fff;
}

.bg-article-page .bg-art-catalog-section.bg-catalog-body {
  padding-top: 48px;
  padding-bottom: 56px;
}

.bg-article-page .bg-art-catalog-section .bg-catalog-grid {
  margin-top: 8px;
}

.bg-article-page .bg-art-related-section {
  padding-top: 56px;
}

@media (max-width: 960px) {
  .bg-art-hero__layout {
    grid-template-columns: 1fr;
  }
}
