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

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

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

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

.bg-blog-page .bg-page-hero__overlay {
  background: linear-gradient(
    100deg,
    rgba(30, 30, 30, 0.55) 0%,
    rgba(30, 30, 30, 0.2) 50%,
    transparent 72%
  );
}

/* Категории */
.bg-bl-cats {
  position: sticky;
  top: var(--bg-header-h, 88px);
  z-index: 20;
  background: var(--bg-white);
  border-bottom: 1px solid var(--bg-border);
}

.bg-bl-cats__scroll {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.bg-bl-cats__scroll::-webkit-scrollbar {
  display: none;
}

.bg-bl-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 108px;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  line-height: 1.25;
  color: var(--bg-muted);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.bg-bl-cat img {
  width: 28px;
  height: 28px;
  opacity: 0.7;
}

.bg-bl-cat:hover,
.bg-bl-cat.is-active {
  background: var(--bg-section);
  color: var(--bg-text);
}

.bg-bl-cat.is-active {
  box-shadow: inset 0 -2px 0 var(--bg-accent);
}

.bg-bl-cat.is-active img {
  opacity: 1;
}

/* Избранное */
.bg-bl-featured {
  padding: 48px 0 56px;
}

.bg-bl-featured__slide {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.bg-bl-featured__media {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.bg-bl-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-bl-featured__meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--bg-muted);
}

.bg-bl-featured__title {
  margin: 0 0 16px;
  font-family: var(--bg-font-heading);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.bg-bl-featured__title a:hover {
  color: var(--bg-accent);
}

.bg-bl-featured__excerpt {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bg-muted);
}

.bg-bl-featured__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bg-bl-featured__nav {
  display: flex;
  gap: 8px;
}

.bg-bl-featured__nav button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  background: var(--bg-white);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--bg-text);
}

.bg-bl-featured__nav button:hover {
  border-color: var(--bg-accent);
  color: var(--bg-accent);
}

/* Секции */
.bg-bl-section {
  padding: 56px 0;
}

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

.bg-bl-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.bg-bl-section__head h2 {
  margin: 0;
  font-family: var(--bg-font-heading);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bg-bl-section__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-accent);
  text-decoration: none;
  white-space: nowrap;
}

.bg-bl-section__link:hover {
  text-decoration: underline;
}

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

.bg-blog-card.is-hidden {
  display: none !important;
}

/* Популярное */
.bg-bl-popular-wrap {
  position: relative;
}

.bg-bl-popular-wrap .swiper {
  padding: 4px 0 8px;
}

.bg-bl-popular {
  height: auto;
}

.bg-bl-popular__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 20px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #333 center/cover no-repeat var(--bg-bl-popular-img, #555);
}

.bg-bl-popular__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.bg-bl-popular__cat,
.bg-bl-popular__title,
.bg-bl-popular__meta {
  position: relative;
  z-index: 1;
}

.bg-bl-popular__cat {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 600;
}

.bg-bl-popular__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.bg-bl-popular__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  opacity: 0.9;
}

.bg-bl-slider-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 1px solid var(--bg-border);
  border-radius: 50%;
  background: var(--bg-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 20px;
}

.bg-bl-slider-btn--prev {
  left: -24px;
}

.bg-bl-slider-btn--next {
  right: -24px;
}

/* Видео */
.bg-bl-video__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: #ddd center/cover no-repeat;
  overflow: hidden;
}

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

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

.bg-bl-video__body {
  padding-top: 14px;
}

.bg-bl-video__cat {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--bg-muted);
}

.bg-bl-video__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

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

.bg-bl-video__title a:hover {
  color: var(--bg-accent);
}

/* Двойной блок */
.bg-bl-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
}

.bg-bl-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bg-bl-tech__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: #e8e4df center/cover no-repeat;
  position: relative;
}

.bg-bl-tech__title {
  margin: 10px 0 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

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

.bg-bl-tech__time {
  font-size: 12px;
  color: var(--bg-muted);
}

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

.bg-bl-proj-mini__thumb {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: #ddd center/cover no-repeat;
  position: relative;
}

.bg-bl-proj-mini__title {
  margin: 10px 0 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.bg-bl-proj-mini__title a {
  color: inherit;
  text-decoration: none;
}

.bg-bl-proj-mini__city {
  font-size: 12px;
  color: var(--bg-muted);
}

/* Подписка */
.bg-bl-subscribe {
  position: relative;
  padding: 64px 0;
  background: var(--bg-section);
  overflow: hidden;
}

.bg-bl-subscribe__decor {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat var(--bg-bl-sub-bg, transparent);
  opacity: 0.1;
  pointer-events: none;
}

.bg-bl-subscribe__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.bg-bl-subscribe__inner h2 {
  margin: 0 0 12px;
  font-family: var(--bg-font-heading);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
}

.bg-bl-subscribe__inner p {
  margin: 0 0 24px;
  color: var(--bg-muted);
  line-height: 1.55;
}

.bg-bl-subscribe__form {
  display: flex;
  max-width: 520px;
  margin: 0 auto 12px;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  overflow: hidden;
}

.bg-bl-subscribe__form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  font: inherit;
}

.bg-bl-subscribe__form .bg-btn {
  flex-shrink: 0;
  border-radius: 0;
  padding-left: 24px;
  padding-right: 24px;
}

.bg-bl-subscribe__agree {
  font-size: 12px;
  color: var(--bg-muted);
}

.bg-bl-subscribe__agree a {
  color: var(--bg-accent);
}

/* CTA */
.bg-bl-cta {
  padding: 56px 0 72px;
  background: var(--bg-section);
}

.bg-bl-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  gap: 32px;
  align-items: center;
  padding: 40px 48px;
  background: var(--bg-white);
  border-radius: 20px;
  border: 1px solid var(--bg-border);
  overflow: hidden;
}

.bg-bl-cta__grid h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
}

.bg-bl-cta__grid p {
  margin: 0 0 24px;
  color: var(--bg-muted);
  line-height: 1.55;
}

.bg-bl-cta__visual {
  min-height: 200px;
  border-radius: 14px;
  background: center/cover no-repeat var(--bg-bl-cta-img, #e8e4df);
}

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

  .bg-bl-featured__slide {
    grid-template-columns: 1fr;
  }

  .bg-bl-split {
    grid-template-columns: 1fr;
  }

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

  .bg-bl-slider-btn--prev {
    left: 0;
  }

  .bg-bl-slider-btn--next {
    right: 0;
  }
}

@media (max-width: 700px) {
  .bg-bl-grid-4,
  .bg-bl-tech-grid,
  .bg-bl-proj-grid {
    grid-template-columns: 1fr;
  }

  .bg-bl-cta__grid {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .bg-bl-subscribe__form {
    flex-direction: column;
  }

  .bg-bl-subscribe__form .bg-btn {
    width: 100%;
    border-radius: 0 0 12px 12px;
  }
}

.bg-blog-page--archive .bg-bl-section:first-of-type {
  padding-top: 48px;
}

.bg-bl-empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 24px;
  text-align: center;
  background: #f7f8fa;
  border-radius: 20px;
}

.bg-bl-empty__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
}

.bg-bl-empty__text {
  margin: 0 0 24px;
  color: #5c6470;
  line-height: 1.6;
}

.bg-blog-archive__grid {
  margin-top: 8px;
}

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

@media (max-width: 560px) {
  .bg-blog-archive__grid {
    grid-template-columns: 1fr;
  }
}
