.page-template-page-blog,
.single-blog {
  background: var(--gold-50);
}

.page-template-page-blog .header,
.single-blog .header {
  background: var(--gold-50);
  color: var(--gold-900);
}

.page-template-page-blog .header.is-scrolled,
.single-blog .header.is-scrolled {
  background: var(--gold-50);
  box-shadow: 0 10px 30px rgba(59, 50, 19, 0.08);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.page-template-page-blog .header__topbar,
.single-blog .header__topbar {
  border-bottom-color: var(--neutral-100);
}

.page-template-page-blog .header .phone__toggle,
.single-blog .header .phone__toggle {
  color: var(--gold-900);
}

.page-template-page-blog .header .icon--white,
.single-blog .header .icon--white {
  fill: var(--gold-900);
}

.page-template-page-blog .header .social__link:hover,
.single-blog .header .social__link:hover {
  color: var(--gold-500);
}

.page-template-page-blog .header .social__link:hover .icon--white,
.single-blog .header .social__link:hover .icon--white {
  fill: var(--gold-500);
}

.page-template-page-blog .header .nav__link,
.single-blog .header .nav__link {
  color: var(--gold-900);
}

.page-template-page-blog .header .nav__link:hover,
.single-blog .header .nav__link:hover {
  color: var(--gold-500);
}

.page-template-page-blog .header .nav__link::after,
.single-blog .header .nav__link::after {
  background: var(--gold-500);
}

.page-template-page-blog .burger__line,
.single-blog .burger__line {
  background: var(--gold-900);
}

.page-template-page-blog .header__book,
.single-blog .header__book {
  background: var(--gold-300);
  border-color: var(--gold-500);
  color: var(--gold-500);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.page-template-page-blog .header__book:hover,
.single-blog .header__book:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--gold-50);
}

.page-template-page-blog .menu,
.single-blog .menu {
  background: var(--gold-50);
  color: var(--gold-900);
}

/* ============================================================
   Архів блогу
   ============================================================ */
.blog-archive {
  position: relative;
  background: var(--gold-50);
  color: var(--gold-900);
  padding-top: calc(var(--header-h) + clamp(60px, 6vw, 80px));
  padding-bottom: clamp(100px, 9vw, 150px);
}

.blog-archive > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 5vw, 60px);
}

.blog-archive__title {
  text-align: center;
  max-width: 900px;
  font-size: clamp(36px, 5vw, 60px);
}

.blog__grid--3 {
  grid-template-columns: repeat(3, 1fr);
  row-gap: 60px;
  align-items: stretch;
}

.blog__grid--3 .blog-card {
  height: 100%;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.blog-card__body .blog-card__title {
  margin-top: 0;
}

.blog-card .text-link {
  margin-top: auto;
}

/* ---------- Пагінація ---------- */
.blog-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 466px;
}

.blog-pagination__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 60px);
  width: 100%;
}

.blog-pagination__pages {
  display: flex;
  align-items: center;
  gap: clamp(32px, 3vw, 40px);
  font-weight: 500;
  font-size: clamp(18px, 2.4vw, 30px);
  line-height: 1.2;
  text-transform: uppercase;
}

.blog-pagination__pages a,
.blog-pagination__pages span {
  color: var(--neutral-300);
  transition: color 0.3s var(--ease);
}

.blog-pagination__pages .current {
  color: var(--gold-900);
}

.blog-pagination__pages a:hover {
  color: var(--gold-500);
}

.blog-pagination .round-arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ============================================================
   Стаття блогу - герой
   ============================================================ */
.article-hero {
  background: var(--gold-50);
  padding-top: var(--header-h);
}

.article-hero__inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.article-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 33, 12, 0.5);
}

.article-hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-inline: 24px;
  max-width: 600px;
  color: var(--gold-50);
  text-align: center;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.2;
  text-transform: uppercase;
}

/* ============================================================
   Стаття блогу - метадані
   ============================================================ */
.article-meta {
  background: var(--gold-50);
}

.article-meta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
}

.article-meta__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-meta__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.article-meta__author-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-meta__author-name {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--gold-900);
}

.article-meta__author-role {
  font-size: 16px;
  line-height: 1.5;
  color: var(--neutral-400);
}

.article-meta__details {
  display: flex;
  align-items: center;
  gap: 40px;
}

.article-meta__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gold-800);
  opacity: 0.8;
}

.article-meta__item .icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: var(--gold-800);
}

/* ============================================================
   Стаття блогу - контент
   ============================================================ */
.article-content {
  background: var(--gold-50);
  padding-top: clamp(16px, 5vw, 80px);
}

.article-content__body {
  max-width: 847px;
  margin-inline: auto;
  color: var(--gold-900);
}

.article-content__body > * + * {
  margin-top: 24px;
}

.article-content__body > h2,
.article-content__body > h3 {
  margin-top: 60px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--gold-900);
}

.article-content__body > h2 {
  font-size: clamp(26px, 3vw, 30px);
}

.article-content__body > h3 {
  font-size: clamp(22px, 2.6vw, 26px);
}

.article-content__body > :first-child {
  margin-top: 0;
}

.article-content__body p {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.9;
}

.article-content__body > p:has(> strong:only-child) {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  opacity: 1;
}

.article-content__body img {
  display: block;
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.article-content__body figure img {
  height: 450px;
}

.article-content__body figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--neutral-400);
}

.article-content__body ul,
.article-content__body ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-content__body ul {
  list-style: disc;
}

.article-content__body ol {
  list-style: decimal;
}

.article-content__body li {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.9;
}

.article-content__body a {
  color: var(--gold-500);
  border-bottom: 1px solid var(--gold-500);
  transition: color 0.3s, border-color 0.3s;
}

.article-content__body a:hover {
  color: var(--gold-600);
  border-color: var(--gold-600);
}

.article-content__body blockquote {
  border-left: 2px solid var(--gold-300);
  padding-left: 24px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
}

/* ============================================================
   Стаття блогу - схожі статті
   ============================================================ */
.related {
  position: relative;
  background: var(--gold-50);
  color: var(--gold-900);
  padding-block: clamp(100px, 10vw, 150px);
}

.related > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 5vw, 60px);
}

.related-slider {
  width: 100%;
}

.related-swiper {
  width: 100%;
}

.related-swiper .swiper-slide {
  height: auto;
}

.related-swiper .swiper-slide .blog-card {
  height: 100%;
}

.related-slider.is-locked .slider-nav {
  display: none;
}

.related__more {
  display: none;
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1024px) {
  .blog__grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog__grid--3 {
    grid-template-columns: 1fr;
  }

  .article-hero__inner {
    height: 300px;
  }

  .blog-archive__title,
  .article-hero__title {
    font-weight: 600;
  }

  .article-meta__inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 24px;
    padding-block: 16px 0;
  }

  .article-meta__details {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .blog-pagination__nav {
    justify-content: space-between;
  }

  .blog-pagination .round-arrow,
  .related-slider .round-arrow {
    width: 48px;
    height: 48px;
  }

  .blog-pagination__more {
    width: 100%;
  }

  .related__more {
    display: inline-flex;
    width: 100%;
  }
}
