.content-page { overflow-x: clip; }
.content-page .ds-section { padding: var(--ds-section-space) var(--ds-page-gutter); }
.content-page h1, .content-page h2, .content-page h3, .content-page p { margin-top: 0; }
.content-hero { padding: 48px var(--ds-page-gutter) var(--ds-section-space-bottom); background: var(--color-bg); }
.content-hero__eyebrow, .content-label { margin-bottom:12px; color:var(--color-brown); font-size:var(--ds-font-size-md); font-weight: var(--ds-font-weight-bold); letter-spacing:.12em; text-transform:uppercase; }
.content-hero h1 { max-width:780px; margin-bottom:24px; color:var(--color-brown); font-family:var(--font-heading); font-size:var(--ds-font-size-h1); font-weight: var(--ds-font-weight-medium); line-height:var(--ds-line-height-tight); text-transform:uppercase; }
/* Описание рядом с заголовком страницы: роль «лид у заголовка» = lead/600,
   единая с .ds-page-hero__lead (2026-08-23; прежний литерал 24px/700 свёрнут к роли). */
.content-page .content-hero__lead { max-width:640px; margin:0; color:var(--ds-color-text-muted); font-size:var(--ds-font-size-lead); font-weight: var(--ds-font-weight-semibold); line-height:1.4; }
.illustration-note { background:var(--color-paper-mid); }.illustration-note__layout { display:grid; grid-template-columns:.85fr 1.15fr; gap:12%; }.illustration-note__copy { max-width:670px; color:var(--ds-color-text-muted); font-size:var(--ds-font-size-lead); line-height:1.75; }.illustration-note__button { display:block; width:fit-content; margin-top:36px; margin-left:auto; }.catalog-link { background:var(--color-dark); color:var(--ds-color-text-inverse); }.catalog-link h2 { max-width:670px; font-family:var(--font-heading); font-size:clamp(36px,4vw,58px); font-weight: var(--ds-font-weight-medium); line-height:1; text-transform:uppercase; }.catalog-link p { margin-top:18px; color:rgba(247,239,222,.82); font-size:var(--ds-font-size-title); font-weight:var(--ds-font-weight-medium); line-height:1.6; }.catalog-link .ds-button--secondary { color:var(--ds-color-text-inverse); }.profile-books { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }.profile-book { display:flex; gap:18px; align-items:center; padding:18px; border-radius:14px; background:rgba(255,255,255,.62); }.profile-book img { width:72px; height:100px; object-fit:cover; }.profile-book h3 { font-family:var(--font-heading); font-size:var(--ds-font-size-lead); font-weight: var(--ds-font-weight-medium); line-height:1.1; }.profile-book a { display:inline-block; margin-top:12px; color:var(--color-brown); font-size: var(--ds-font-size-md); font-weight: var(--ds-font-weight-bold); }
  .blog-filters { display:flex; flex-wrap:wrap; gap:10px; margin-top:30px; }.blog-filter { border:1px solid var(--ds-color-border); border-radius:8px; background:rgba(255,255,255,.45); padding:10px 17px; color:var(--color-text); font:var(--ds-font-weight-semibold) var(--ds-font-size-md) var(--font-body); cursor:pointer; }.blog-filter[aria-pressed="true"], .blog-filter:hover { background:var(--color-brown); border-color:var(--color-brown); color:#fff; }.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }.post-card { display:flex; flex-direction:column; overflow:hidden; border-radius:14px; background:rgba(255,255,255,.6); box-shadow:var(--ds-shadow-card); }.post-card--linked { cursor:pointer; transition:transform .2s ease, box-shadow .2s ease; }.post-card--linked:hover { transform:translateY(-4px); box-shadow:0 16px 32px rgba(65,45,24,.16); }.post-card[hidden] { display:none; }.post-card__image { display:block; width:100%; height:280px; object-fit:cover; object-position:center; padding:0; margin:0; border:0; border-radius:14px 14px 0 0; background:none; box-sizing:border-box; }.post-card__image--placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; width:100%; height:280px; background:linear-gradient(145deg, #f7efe1 0%, #ebe0cc 100%); color:var(--color-brown); border-bottom:1px solid rgba(164,148,119,.15); box-sizing:border-box; user-select:none; border-radius:14px 14px 0 0; margin:0; padding:0; }.post-card__body { display:flex; flex:1; flex-direction:column; padding:22px; }.post-card__meta { color:var(--color-brown); font-size: var(--ds-font-size-md); font-weight: var(--ds-font-weight-bold); }.post-card h2 { margin:16px 0 12px; font-family:var(--font-heading); font-size: var(--ds-font-size-title); font-weight: var(--ds-font-weight-medium); line-height:140%; text-transform:uppercase; }.post-card h2 a { margin:0; color:inherit; font:inherit; text-decoration:none; }.post-card p { color:var(--ds-color-text-muted); font-size:var(--ds-font-size-md); line-height:1.55; }.post-card__excerpt { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; }.post-card a { margin-top:20px; color:var(--color-brown); font-size: var(--ds-font-size-md); font-weight: var(--ds-font-weight-bold); text-decoration:none; }.tag-list { display:flex; flex-wrap:wrap; gap:7px; margin-top:15px; }.post-card__body .tag-list { margin-top:auto; padding-top:15px; }.tag-list span { padding:5px 8px; border-radius:999px; background:var(--color-badge-bg); font-size: var(--ds-font-size-sm); }
/* The blog listing follows its filter controls with a fixed 48px gap. */
.content-page .content-hero:has(.blog-filters) { padding-bottom:0; }.content-page .content-hero:has(.blog-filters) + .ds-section { padding-top:48px; }
.content-page a:focus-visible, .content-page button:focus-visible { outline:3px solid var(--color-brown); outline-offset:3px; }
/* Секция сетки художников следует сразу под hero без верхнего отступа (аналогично .audio-page) */
.content-page .content-hero + .ds-section:has(.artists__grid) { padding-top: 0; }

/* Шапка «Наши художники»: центрирование при перестройке карточек в одну колонку (≤1024px) */
@media (max-width: 1024px) {
  .artists-page .content-hero,
  .content-page:has(.artists__grid) .content-hero {
    text-align: center;
  }
  .artists-page .content-hero__eyebrow,
  .artists-page .content-hero h1,
  .artists-page .content-hero__lead,
  .content-page:has(.artists__grid) .content-hero__eyebrow,
  .content-page:has(.artists__grid) .content-hero h1,
  .content-page:has(.artists__grid) .content-hero__lead {
    text-align: center;
    margin-inline: auto;
  }

  .illustration-note__layout {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .illustration-note .content-label,
  .illustration-note .ds-section__title,
  .illustration-note__copy {
    text-align: center;
    margin-inline: auto;
  }
  .illustration-note__button {
    width: 100%;
    max-width: 100%;
    margin-top: 32px;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Шапка блога/новостей: центрирование при адаптивной перестройке (≤768px) */
@media (max-width: 768px) {
  .blog-page .content-hero,
  .content-page:has(.blog-grid) .content-hero {
    text-align: center;
  }
  .blog-page .content-hero__eyebrow,
  .blog-page .content-hero h1,
  .blog-page .content-hero__lead,
  .content-page:has(.blog-grid) .content-hero__eyebrow,
  .content-page:has(.blog-grid) .content-hero h1,
  .content-page:has(.blog-grid) .content-hero__lead {
    text-align: center;
    margin-inline: auto;
  }
  .blog-page .blog-filters,
  .content-page:has(.blog-grid) .blog-filters {
    justify-content: center;
  }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-page .blog-grid,
  .article-page .news__grid { max-width: 480px; margin-inline: auto; }
  .profile-books { grid-template-columns: 1fr; }
}@media (max-width:640px) {

  .content-hero__art {
    min-height: 150px;
    max-width: 310px;
  }

  /* Ensure hero/profile images go full-width and are height-capped */
  .content-hero__art,
  .content-hero__art img,
  .content-hero__art picture,
  .profile-hero__portrait,
  .profile-hero__portrait img,
  .profile-hero__portrait picture {
    width: 100%;
  }

  .content-hero__art img,
  .content-hero__art picture,
  .profile-hero__portrait img,
  .profile-hero__portrait picture {
    height: auto;
    max-height: 90vh;
    object-fit: cover;
    object-position: top;
  }
}@media (max-width:480px) {
  .content-hero { padding:32px var(--ds-page-gutter) var(--ds-section-space-bottom); }
  .catalog-link .ds-button { margin-top:28px; }
  .blog-grid { grid-template-columns:1fr; }
  .blog-page .blog-grid { max-width:460px; margin-inline:auto; }
}
@media (max-width:768px) { .content-page .content-hero:has(.blog-filters) + .ds-section { padding-top:48px; } }
@media (max-width:480px) { .content-page .content-hero:has(.blog-filters) { padding-bottom:0; } }
@media (max-width:480px) { .content-page .content-hero:has(.blog-filters) + .ds-section { padding-top:48px; } }
/* Home news uses the blog cards without inheriting the legacy one-column tablet layout. */
.news .blog-grid { text-align:left; }
@media (max-width:1024px) { .news .blog-grid { grid-template-columns:repeat(2,1fr); max-width:none; margin:0; gap:24px; } }
@media (max-width:768px) { .news .blog-grid { grid-template-columns:1fr; max-width:480px; margin-inline:auto; } }
@media (max-width:480px) { .news .blog-grid { grid-template-columns:1fr; } }
/* Article “Другие материалы” reuses the homepage news grid; mirror the 56px title→grid gap from .news__title (styles.css). */
.article-page .news__grid { margin-top: 56px; }
@media (prefers-reduced-motion:reduce) {
  .post-card,
  .post-card--linked { transition:none; }
  .post-card:hover,
  .post-card--linked:hover { transform:none; }
}
.post-card,
.post-card--linked {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .6) !important;
  box-shadow: var(--ds-shadow-card) !important;
  cursor: pointer !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}

.post-card *,
.post-card--linked * {
  cursor: pointer !important;
}

.post-card:hover,
.post-card--linked:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 32px rgba(65, 45, 24, .16) !important;
}

/* Растянутая ссылка: клик по любой точке карточки открывает статью */
.post-card a::after,
.post-card .post-card__link::after,
.post-card--linked a::after,
.post-card--linked .post-card__link::after {
  position: absolute !important;
  inset: 0 !important;
  content: "" !important;
  z-index: 2 !important;
  cursor: pointer !important;
}

.post-card a:focus-visible::after,
.post-card--linked a:focus-visible::after {
  outline: 3px solid var(--color-brown);
  outline-offset: -3px;
}

.post-card:hover a,
.post-card:hover .post-card__link,
.post-card--linked:hover a,
.post-card--linked:hover .post-card__link {
  color: var(--color-brown-dark, #5c3012) !important;
}

/* Изображение карточки: чёткие размеры 280px, скругление сверху, pointer, никакой zoom-in/scale */
.post-card img,
.post-card .post-card__image,
.post-card__image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 280px !important;
  object-fit: cover !important;
  object-position: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 14px 14px 0 0 !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.post-card:hover img,
.post-card:hover .post-card__image {
  transform: none !important;
  box-shadow: none !important;
}

/* Плейсхолдер при отсутствии миниатюры */
.post-card__image--placeholder {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  height: 280px !important;
  background: linear-gradient(145deg, #f7efe1 0%, #ebe0cc 100%) !important;
  color: var(--color-brown) !important;
  border-bottom: 1px solid rgba(164, 148, 119, .15) !important;
  border-radius: 14px 14px 0 0 !important;
  box-sizing: border-box !important;
  user-select: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Тело карточки: flex-колонка, выравнивающая всё содержимое */
.post-card__body {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  padding: 22px !important;
  box-sizing: border-box !important;
}

.post-card__meta {
  color: var(--color-brown) !important;
  font-size: var(--ds-font-size-md) !important;
  font-weight: var(--ds-font-weight-bold) !important;
}

.post-card h2 {
  margin: 16px 0 12px !important;
  font-family: var(--font-heading) !important;
  font-size: var(--ds-font-size-title) !important;
  font-weight: var(--ds-font-weight-bold) !important;
  line-height: 140% !important;
  text-transform: uppercase !important;
}

.post-card h2 a {
  margin: 0 !important;
  color: inherit !important;
  font: inherit !important;
  text-decoration: none !important;
}

.post-card p,
.post-card__excerpt {
  color: var(--ds-color-text-muted) !important;
  font-size: var(--ds-font-size-md) !important;
  line-height: 1.55 !important;
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  text-overflow: ellipsis !important;
  margin: 0 0 16px !important;
}

/* Рубрика/бейдж карточки: СТРОГО СЛЕВА, СТРОГО margin-top: auto (прижимает кнопку вниз) */
.post-card .tag-list,
.post-card__body .tag-list,
.article-page .post-card .tag-list,
.article-page .post-card__body .tag-list,
.blog-article-page .post-card .tag-list,
.blog-article-page .post-card__body .tag-list {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 7px !important;
  margin-top: auto !important;
  padding-top: 15px !important;
  margin-bottom: 0 !important;
}

.post-card .tag-list span,
.post-card__body .tag-list span,
.article-page .post-card .tag-list span,
.article-page .post-card__body .tag-list span,
.blog-article-page .post-card .tag-list span,
.blog-article-page .post-card__body .tag-list span {
  display: inline-block !important;
  padding: 5px 8px !important;
  border: none !important;
  border-radius: 999px !important;
  background: var(--color-badge-bg) !important;
  color: var(--color-text, #2c1a0e) !important;
  font-size: var(--ds-font-size-sm) !important;
  letter-spacing: normal !important;
}

/* Кнопка «Читать материал →»: строго на одном уровне внизу карточки */
.post-card a,
.post-card .post-card__link,
.post-card__body a,
.post-card__body .post-card__link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  color: var(--color-brown) !important;
  font-size: var(--ds-font-size-md) !important;
  font-weight: var(--ds-font-weight-bold) !important;
  text-decoration: none !important;
}

/* ==========================================================================
   Пагинация в стиле сайта (отделена от карточек)
   ========================================================================== */
.pagination,
.navigation.pagination,
.woocommerce-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: clamp(40px, 5vw, 64px);
  margin-bottom: 24px;
  clear: both;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.pagination .nav-links,
.woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
  border: none;
  box-shadow: none;
}

.woocommerce-pagination ul.page-numbers li {
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
}

.page-numbers,
.pagination .page-numbers,
.woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1.5px solid transparent;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--ds-font-size-title, 20px);
  font-weight: var(--ds-font-weight-semibold, 600);
  text-decoration: none;
  line-height: 1;
  box-sizing: border-box;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-numbers:hover,
a.page-numbers:hover,
.pagination a.page-numbers:hover,
.woocommerce-pagination a.page-numbers:hover {
  background: transparent;
  border-color: rgba(114, 64, 30, 0.25);
  color: var(--color-brown);
  transform: none;
  box-shadow: none;
  text-decoration: none;
}

.page-numbers.current,
span.page-numbers.current,
.pagination span.page-numbers.current,
.woocommerce-pagination .page-numbers.current {
  background: transparent;
  border-color: var(--color-brown);
  color: var(--color-brown);
  font-weight: var(--ds-font-weight-bold);
  cursor: default;
  transform: none;
  box-shadow: none;
}

.page-numbers.dots,
span.page-numbers.dots {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  cursor: default;
  color: var(--ds-color-text-muted);
  min-width: 28px;
  padding: 0 4px;
}

.page-numbers.prev,
.page-numbers.next,
.pagination .prev,
.pagination .next {
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 22px;
  font-weight: var(--ds-font-weight-semibold);
  border-radius: 50%;
}

.page-numbers.prev:hover,
.page-numbers.next:hover,
.pagination .prev:hover,
.pagination .next:hover {
  background: transparent;
  border-color: rgba(114, 64, 30, 0.25);
  color: var(--primary, #c60100);
  transform: none;
  box-shadow: none;
}

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

.article-page .article { padding: 0; }
.article-page .article > .ds-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--ds-container-max);
  padding-top: 22px;
}
.article-page .ds-breadcrumbs {
  display: flex;
  justify-content: flex-start;
  align-self: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 0 0 32px 0;
  color: rgba(114, 64, 30, .72);
  font-size: var(--ds-font-size-md);
  letter-spacing: .04em;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.article-page .ds-breadcrumbs a:hover { color: var(--primary); }

/* Шапка статьи: центрированная карточка (подложка) */
.article-page .article__heading,
.blog-article-page .article__heading,
.article__heading {
  --heading-pad-x: clamp(20px, 4vw, 44px);
  --heading-pad-top: clamp(32px, 4.5vw, 48px);
  --heading-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: var(--heading-pad-top) 0 var(--heading-pad-top);
  border: 1px solid rgba(114, 64, 30, .12);
  border-radius: var(--heading-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .90), rgba(247, 240, 228, .94)),
    radial-gradient(circle at 100% 0%, rgba(198, 1, 0, .14), transparent 34%);
  box-shadow: 0 20px 50px rgba(65, 45, 24, .10);
  box-sizing: border-box;
  overflow: hidden;
}

.article-page .article__heading:has(.article__image),
.blog-article-page .article__heading:has(.article__image),
.article__heading:has(.article__image) {
  padding-bottom: 0;
}

.article-page .article__heading-text,
.blog-article-page .article__heading-text,
.article__heading-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 820px;
  padding: 0 var(--heading-pad-x);
  box-sizing: border-box;
}
.article-page .content-label {
  margin-bottom: 16px;
  color: var(--color-brown);
  font-size: var(--ds-font-size-md);
  font-weight: var(--ds-font-weight-bold);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
}
.article-page .article__heading h1 {
  max-width: 780px;
  margin: 0 auto 18px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.8vw, 44px);
  font-weight: var(--ds-font-weight-medium);
  line-height: 1.25;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
}
.article-page .article__lead {
  max-width: 680px;
  margin: 0 auto 18px;
  color: var(--ds-color-text-muted);
  font-size: var(--ds-font-size-lead);
  line-height: 1.55;
  font-weight: var(--ds-font-weight-semibold);
  text-align: center;
  text-wrap: pretty;
}
.article-page .article__heading .tag-list,
.blog-article-page .article__heading .tag-list,
.article__heading .tag-list,
.article-page .article__heading-text .tag-list,
.blog-article-page .article__heading-text .tag-list,
.article__heading-text .tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.article-page .article__heading .tag-list span,
.article-page .article__heading .tag-list a,
.blog-article-page .article__heading .tag-list span,
.blog-article-page .article__heading .tag-list a,
.article__heading .tag-list span,
.article__heading .tag-list a,
.article-page .article__heading-text .tag-list span,
.article-page .article__heading-text .tag-list a,
.blog-article-page .article__heading-text .tag-list span,
.blog-article-page .article__heading-text .tag-list a,
.article__heading-text .tag-list span,
.article__heading-text .tag-list a {
  padding: 7px 14px;
  border: 1px solid rgba(114, 64, 30, .12);
  border-radius: 999px;
  background: rgba(239, 227, 207, .55);
  color: var(--color-brown);
  font-size: var(--ds-font-size-sm);
  letter-spacing: .02em;
}
.article-page .article__heading .tag-list a,
.blog-article-page .article__heading .tag-list a,
.article__heading .tag-list a,
.article-page .article__heading-text .tag-list a,
.blog-article-page .article__heading-text .tag-list a,
.article__heading-text .tag-list a {
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.article-page .article__heading .tag-list a:hover,
.article-page .article__heading .tag-list a:focus-visible,
.blog-article-page .article__heading .tag-list a:hover,
.blog-article-page .article__heading .tag-list a:focus-visible,
.article__heading .tag-list a:hover,
.article__heading .tag-list a:focus-visible,
.article-page .article__heading-text .tag-list a:hover,
.article-page .article__heading-text .tag-list a:focus-visible,
.blog-article-page .article__heading-text .tag-list a:hover,
.blog-article-page .article__heading-text .tag-list a:focus-visible,
.article__heading-text .tag-list a:hover,
.article__heading-text .tag-list a:focus-visible {
  border-color: var(--color-brown);
  background: var(--color-brown);
  color: #fff;
}

/* Главное изображение статьи: полностью заполняет подложку по ширине и прилегает к краям */
.article-page .article__image,
.blog-article-page .article__image,
.article__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(300px, 44vw, 520px);
  aspect-ratio: 16 / 9;
  border-radius: 0 0 calc(var(--heading-radius) - 1px) calc(var(--heading-radius) - 1px);
  object-fit: cover !important;
  object-position: center;
  background: none !important;
  padding: 0 !important;
  border: 0 !important;
  margin: clamp(24px, 3.5vw, 36px) 0 0 !important;
  box-shadow: none !important;
  cursor: zoom-in;
  box-sizing: border-box;
}

/* Одиночные изображения в тексте статьи */
.article-page .article__body img:not(.post-card__image):not(.post-card img):not(.profile-book img),
.blog-article-page .article__body img:not(.post-card__image):not(.post-card img):not(.profile-book img),
.article__body img:not(.post-card__image):not(.post-card img):not(.profile-book img) {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 16px;
  margin: 24px auto;
  cursor: zoom-in;
  transition: transform var(--ds-transition-fast, 0.2s ease), box-shadow var(--ds-transition-fast, 0.2s ease);
}

.article-page .article__body img:not(.post-card__image):not(.post-card img):not(.profile-book img):hover,
.blog-article-page .article__body img:not(.post-card__image):not(.post-card img):not(.profile-book img):hover,
.article__body img:not(.post-card__image):not(.post-card img):not(.profile-book img):hover {
  transform: scale(1.015);
  box-shadow: 0 12px 32px rgba(65, 45, 24, 0.14);
}

/* ==========================================================================
   Сетка галерей и дополнительных фотографий в статьях
   Гарантирует 100% одинаковые отступы по горизонтали и вертикали
   ========================================================================== */
.article-page .article__body p:has(a:nth-of-type(2)),
.blog-article-page .article__body p:has(a:nth-of-type(2)),
.article__body p:has(a:nth-of-type(2)),
.article-page .article__body p:has(img:nth-of-type(2)),
.blog-article-page .article__body p:has(img:nth-of-type(2)),
.article__body p:has(img:nth-of-type(2)),
.article-page .article__body .wp-block-gallery,
.blog-article-page .article__body .wp-block-gallery,
.article__body .wp-block-gallery,
.article-page .article__body .gallery,
.blog-article-page .article__body .gallery,
.article__body .gallery,
.article-page .article__body .wp-block-columns:has(img),
.blog-article-page .article__body .wp-block-columns:has(img),
.article__body .wp-block-columns:has(img),
.article-gallery__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  row-gap: 20px !important;
  column-gap: 20px !important;
  width: 100% !important;
  max-width: 940px !important;
  margin: 32px auto !important;
  padding: 0 !important;
  list-style: none !important;
  box-sizing: border-box !important;
}

/* Обертки для элементов галереи (ссылки, figure и т.д.) */
.article-page .article__body p:has(a:nth-of-type(2)) > a,
.blog-article-page .article__body p:has(a:nth-of-type(2)) > a,
.article__body p:has(a:nth-of-type(2)) > a,
.article-page .article__body p:has(img:nth-of-type(2)) > a,
.blog-article-page .article__body p:has(img:nth-of-type(2)) > a,
.article__body p:has(img:nth-of-type(2)) > a,
.article-page .article__body p:has(img:nth-of-type(2)) > img,
.blog-article-page .article__body p:has(img:nth-of-type(2)) > img,
.article__body p:has(img:nth-of-type(2)) > img,
.article-page .article__body .wp-block-gallery .wp-block-image,
.blog-article-page .article__body .wp-block-gallery .wp-block-image,
.article__body .wp-block-gallery .wp-block-image,
.article-page .article__body .gallery .gallery-item,
.blog-article-page .article__body .gallery .gallery-item,
.article__body .gallery .gallery-item,
.article-gallery__item {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
}

/* Все изображения внутри многоэлементных галерей:
   строгий сброс margin в 0, одинаковая высота и cover */
.article-page .article__body p:has(a:nth-of-type(2)) img,
.blog-article-page .article__body p:has(a:nth-of-type(2)) img,
.article__body p:has(a:nth-of-type(2)) img,
.article-page .article__body p:has(img:nth-of-type(2)) img,
.blog-article-page .article__body p:has(img:nth-of-type(2)) img,
.article__body p:has(img:nth-of-type(2)) img,
.article-page .article__body .wp-block-gallery img,
.blog-article-page .article__body .wp-block-gallery img,
.article__body .wp-block-gallery img,
.article-page .article__body .gallery img,
.blog-article-page .article__body .gallery img,
.article__body .gallery img,
.article-gallery__photo img,
.article-gallery__photo {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 280px !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
  cursor: zoom-in !important;
  transition: transform var(--ds-transition-fast, 0.2s ease), box-shadow var(--ds-transition-fast, 0.2s ease) !important;
}

.article-page .article__body p:has(a:nth-of-type(2)) img:hover,
.blog-article-page .article__body p:has(a:nth-of-type(2)) img:hover,
.article__body p:has(a:nth-of-type(2)) img:hover,
.article-page .article__body p:has(img:nth-of-type(2)) img:hover,
.blog-article-page .article__body p:has(img:nth-of-type(2)) img:hover,
.article__body p:has(img:nth-of-type(2)) img:hover,
.article-page .article__body .wp-block-gallery img:hover,
.blog-article-page .article__body .wp-block-gallery img:hover,
.article__body .wp-block-gallery img:hover,
.article-page .article__body .gallery img:hover,
.blog-article-page .article__body .gallery img:hover,
.article__body .gallery img:hover,
.article-gallery__photo img:hover,
.article-gallery__photo:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 12px 30px rgba(65, 45, 24, 0.16) !important;
}

/* Нечетный последний элемент занимает всю ширину ряда */
.article-page .article__body p:has(a:nth-of-type(2)) > a:last-child:nth-child(odd),
.blog-article-page .article__body p:has(a:nth-of-type(2)) > a:last-child:nth-child(odd),
.article__body p:has(a:nth-of-type(2)) > a:last-child:nth-child(odd),
.article-page .article__body p:has(img:nth-of-type(2)) > a:last-child:nth-child(odd),
.blog-article-page .article__body p:has(img:nth-of-type(2)) > a:last-child:nth-child(odd),
.article__body p:has(img:nth-of-type(2)) > a:last-child:nth-child(odd),
.article-page .article__body .wp-block-gallery > .wp-block-image:last-child:nth-child(odd),
.article-page .article__body .gallery > .gallery-item:last-child:nth-child(odd) {
  grid-column: 1 / -1 !important;
}
.article-page .article__body p:has(a:nth-of-type(2)) > a:last-child:nth-child(odd) img,
.blog-article-page .article__body p:has(a:nth-of-type(2)) > a:last-child:nth-child(odd) img,
.article__body p:has(a:nth-of-type(2)) > a:last-child:nth-child(odd) img,
.article-page .article__body p:has(img:nth-of-type(2)) > a:last-child:nth-child(odd) img,
.blog-article-page .article__body p:has(img:nth-of-type(2)) > a:last-child:nth-child(odd) img,
.article__body p:has(img:nth-of-type(2)) > a:last-child:nth-child(odd) img {
  height: clamp(280px, 36vw, 380px) !important;
  aspect-ratio: 16 / 9 !important;
}

/* Одиночные изображения в тексте */
.article-page .article__body p:has(> img:only-child),
.blog-article-page .article__body p:has(> img:only-child),
.article__body p:has(> img:only-child),
.article-page .article__body p:has(> a:only-child > img:only-child),
.blog-article-page .article__body p:has(> a:only-child > img:only-child),
.article__body p:has(> a:only-child > img:only-child) {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 28px auto !important;
  max-width: 940px !important;
}
.article-page .article__body p:has(> img:only-child) img,
.blog-article-page .article__body p:has(> img:only-child) img,
.article__body p:has(> img:only-child) img,
.article-page .article__body p:has(> a:only-child > img:only-child) img,
.blog-article-page .article__body p:has(> a:only-child > img:only-child) img,
.article__body p:has(> a:only-child > img:only-child) img {
  display: block !important;
  margin: 0 auto !important;
  border-radius: 16px !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: contain !important;
}

/* Тело статьи: центрированная колонка с выверенным ритмом */
.article-page .article__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(28px, 3.5vw, 44px) 0 clamp(16px, 2vw, 24px);
  box-sizing: border-box;
  text-align: center;
}
.article-page .article__body > * {
  width: 100%;
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}
.article-page .article__body h2 {
  max-width: 700px;
  margin: 48px auto 22px;
  color: var(--color-brown);
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: var(--ds-font-weight-medium);
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  width: 100%;
}
.article-page .article__body h2:first-child {
  margin-top: 8px;
}
.article-page .article__body p {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 24px;
  font-size: var(--ds-font-size-lead);
  line-height: 1.8;
  color: var(--ds-color-text);
  text-align: center;
  text-wrap: pretty;
}
.article-page .profile-books {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 700px;
  margin: 24px auto 36px;
}
.article-page .profile-book {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--ds-color-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  text-align: left;
}
.article-page .profile-book img {
  width: 72px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.article-page .profile-book h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--ds-font-size-title);
  font-weight: var(--ds-font-weight-bold);
  line-height: 1.25;
  color: var(--color-text);
}
.article-page .profile-book a {
  display: inline-block;
  margin-top: 10px;
  color: var(--color-brown);
  font-size: var(--ds-font-size-md);
  font-weight: var(--ds-font-weight-bold);
  text-decoration: none;
}
.article-page .profile-book a:hover,
.article-page .profile-book a:focus-visible {
  text-decoration: underline;
}
.article-page .article-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 700px;
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--ds-color-border);
  text-align: center;
}
.article-page .article-share strong {
  color: var(--color-brown);
}
.article-page .article-share a {
  color: var(--color-brown);
  font-weight: var(--ds-font-weight-bold);
  text-decoration: none;
}
.article-page .article-share a:hover,
.article-page .article-share a:focus-visible {
  text-decoration: underline;
}
.article-page .article-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 700px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--ds-color-border);
  text-align: center;
}
.article-page .article-navigation a {
  max-width: none;
  color: var(--color-brown);
  font-weight: var(--ds-font-weight-bold);
  line-height: 1.35;
  text-decoration: none;
  text-align: center;
}
.article-page .article-navigation a:hover,
.article-page .article-navigation a:focus-visible {
  text-decoration: underline;
}

/* Галерея фотографий статьи */
.article-gallery {
  width: 100%;
  max-width: 940px;
  margin: 36px auto 18px;
  min-width: 0;
}
.article-gallery__grid {
  display: grid;
  gap: 18px;
  justify-content: center;
}
.article-gallery--count-1 .article-gallery__grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
.article-gallery--count-2 .article-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-gallery--count-3 .article-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-gallery__item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--ds-radius-lg);
  background: rgba(239, 227, 207, .65);
}
.article-gallery__photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.article-gallery__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease;
}
.article-gallery__photo:hover img {
  transform: scale(1.03);
}
.article-gallery__item figcaption {
  padding: 11px 14px 13px;
  color: var(--ds-color-text-muted);
  font-size: var(--ds-font-size-title);
  font-weight: var(--ds-font-weight-medium);
  line-height: 1.45;
  text-align: center;
}
.article-gallery__viewport {
  position: relative;
}
.article-gallery__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 6px 0 20px;
  scrollbar-width: none;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}
.article-gallery__track::-webkit-scrollbar {
  display: none;
}
.article-gallery--strip .article-gallery__item {
  flex: 0 0 calc((100% - (3 * 18px)) / 3.5);
  scroll-snap-align: start;
}
.article-gallery--strip .article-gallery__photo img {
  aspect-ratio: 4 / 3;
}
.article-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--color-text);
  border-radius: 8px;
  background-color: rgba(247, 240, 228, .92);
  color: var(--color-text);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .25s ease, color .25s ease, opacity .25s ease;
}
.article-gallery__arrow--prev { left: 8px; }
.article-gallery__arrow--next { right: 8px; }
.article-gallery__arrow:hover { background-color: var(--color-text); color: #fff; }
.article-gallery__arrow:disabled { opacity: .3; cursor: default; }
.article-gallery__controls {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.article-gallery__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-gallery__dots .new-books__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background-color: rgba(35, 30, 19, .25);
  cursor: pointer;
  transition: width .3s ease, background-color .25s ease;
}
.article-gallery__dots .new-books__dot.is-active {
  width: 28px;
  background-color: var(--color-brown);
}
.article-gallery-lightbox:not([open]):not(.is-open) {
  display: none !important;
}
.article-gallery-lightbox[open],
.article-gallery-lightbox.is-open {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: 1fr auto;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(16px, 3vw, 32px);
  border: 0;
  border-radius: 0;
  background: rgba(26, 24, 20, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff8ec;
  overflow: hidden;
}
.article-gallery-lightbox::backdrop {
  background: rgba(26, 24, 20, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.article-gallery-lightbox__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.article-gallery-lightbox__figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 90vw;
  max-height: 82vh;
  margin: 0;
  text-align: center;
}
.article-gallery-lightbox__image {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.article-gallery-lightbox__caption {
  margin-top: 14px;
  color: rgba(255, 248, 236, 0.88);
  font-size: var(--ds-font-size-md);
  font-weight: var(--ds-font-weight-medium);
  line-height: 1.4;
  text-align: center;
}
.article-gallery-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(35, 30, 19, 0.6);
  color: #fff8ec;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.article-gallery-lightbox__close:hover {
  background: var(--color-brown);
  border-color: var(--color-brown);
  transform: scale(1.08);
}
.article-gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(35, 30, 19, 0.6);
  color: #fff8ec;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.article-gallery-lightbox__nav--prev { left: 24px; }
.article-gallery-lightbox__nav--next { right: 24px; }
.article-gallery-lightbox__nav:hover:not(:disabled) {
  background: var(--color-brown);
  border-color: var(--color-brown);
  transform: translateY(-50%) scale(1.08);
}
.article-gallery-lightbox__nav:disabled {
  opacity: 0.25;
  cursor: default;
}
.article-gallery-lightbox__status {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 248, 236, 0.75);
  font-size: var(--ds-font-size-sm);
  letter-spacing: 0.04em;
}
.article-page .article-gallery__photo:focus-visible,
.article-page .article-gallery__arrow:focus-visible,
.article-page .article-gallery-lightbox button:focus-visible { outline: 3px solid var(--color-brown); outline-offset: 3px; }

/* Секция «Другие материалы» на странице статьи: центрирование и уменьшенный зазор */
.article-page .illustration-note,
section.illustration-note {
  padding-top: clamp(24px, 3vw, 36px) !important;
  padding-bottom: clamp(40px, 5vw, 60px) !important;
}
.article-page .illustration-note .content-label,
.article-page .illustration-note .ds-section__title,
section.illustration-note .content-label,
section.illustration-note .ds-section__title {
  text-align: center;
  margin-inline: auto;
}
.article-page .illustration-note .ds-section__title,
section.illustration-note .ds-section__title {
  margin-bottom: clamp(30px, 4vw, 48px);
}

/* Адаптив страницы статьи */
@media (max-width: 1024px) {
  .article-page .article__heading,
  .blog-article-page .article__heading,
  .article__heading {
    --heading-pad-x: 26px;
    --heading-pad-top: 34px;
    padding: var(--heading-pad-top) 0 var(--heading-pad-top);
  }
  .article-page .article__heading:has(.article__image),
  .blog-article-page .article__heading:has(.article__image),
  .article__heading:has(.article__image) {
    padding-bottom: 0;
  }
  .article-page .article__image,
  .blog-article-page .article__image,
  .article__image {
    max-height: none;
    height: clamp(280px, 42vw, 440px);
    margin-top: 26px !important;
  }
  .article-page .article-gallery--strip .article-gallery__item {
    flex: 0 0 calc((100% - (2 * 18px)) / 2.6);
  }
}

@media (max-width: 768px) {
  .article-page .ds-breadcrumbs {
    margin-bottom: 24px;
  }
  .article-page .article__heading,
  .blog-article-page .article__heading,
  .article__heading {
    --heading-pad-x: 18px;
    --heading-pad-top: 26px;
    --heading-radius: 22px;
    padding: var(--heading-pad-top) 0 var(--heading-pad-top);
    border-radius: var(--heading-radius);
  }
  .article-page .article__heading:has(.article__image),
  .blog-article-page .article__heading:has(.article__image),
  .article__heading:has(.article__image) {
    padding-bottom: 0;
  }
  .article-page .article__heading h1 {
    font-size: clamp(22px, 5vw, 30px);
    margin-bottom: 14px;
  }
  .article-page .article__lead {
    font-size: var(--ds-font-size-md);
    margin-bottom: 14px;
  }
  .article-page .article__image,
  .blog-article-page .article__image,
  .article__image {
    max-height: none;
    height: clamp(240px, 48vw, 360px);
    margin-top: 22px !important;
    border-radius: 0 0 calc(var(--heading-radius) - 1px) calc(var(--heading-radius) - 1px);
  }
  .article-page .article__body {
    padding: 30px 0 42px;
  }
  .article-page .article__body h2 {
    font-size: clamp(24px, 4.5vw, 30px);
    margin: 36px auto 16px;
  }
  .article-page .article__body p {
    font-size: var(--ds-font-size-md);
    line-height: 1.7;
    margin-bottom: 18px;
  }
  .article-page .profile-books {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .article-page .article-gallery--strip .article-gallery__item {
    flex: 0 0 calc((100% - 14px) / 2.2);
  }
  .article-page .article-share {
    gap: 12px;
    margin-top: 32px;
  }
  .article-page .article-navigation {
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
  }
  .article-page .article-navigation a {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .article-page .ds-breadcrumbs {
    justify-content: flex-start;
    text-align: left;
    margin-bottom: 18px;
    padding-top: 0;
  }
  .article-page .article-navigation a {
    text-align: center;
  }
  .article-page .article__heading,
  .blog-article-page .article__heading,
  .article__heading {
    --heading-pad-x: 14px;
    --heading-pad-top: 20px;
    --heading-radius: 18px;
    padding: var(--heading-pad-top) 0 var(--heading-pad-top);
    border-radius: var(--heading-radius);
  }
  .article-page .article__heading:has(.article__image),
  .blog-article-page .article__heading:has(.article__image),
  .article__heading:has(.article__image) {
    padding-bottom: 0;
  }
  .article-page .content-label {
    margin-bottom: 10px;
  }
  .article-page .article__heading h1 {
    font-size: clamp(19px, 6vw, 24px);
    margin-bottom: 10px;
  }
  .article-page .article__lead {
    font-size: var(--ds-font-size-md);
    margin-bottom: 10px;
  }
  .article-page .article__image,
  .blog-article-page .article__image,
  .article__image {
    max-height: none;
    height: 240px;
    border-radius: 0 0 calc(var(--heading-radius) - 1px) calc(var(--heading-radius) - 1px);
    margin-top: 16px !important;
  }
  .article-page .article__body {
    padding: 22px 0 32px;
  }
  .article-page .article__body h2 {
    font-size: 22px;
    margin: 28px auto 12px;
  }
  .article-page .article__body p {
    font-size: var(--ds-font-size-md);
    line-height: 1.65;
    margin-bottom: 16px;
  }
  .article-page .article__body p:has(a:nth-of-type(2)),
  .blog-article-page .article__body p:has(a:nth-of-type(2)),
  .article__body p:has(a:nth-of-type(2)),
  .article-page .article__body p:has(img:nth-of-type(2)),
  .blog-article-page .article__body p:has(img:nth-of-type(2)),
  .article__body p:has(img:nth-of-type(2)),
  .article-page .article__body .wp-block-gallery,
  .blog-article-page .article__body .wp-block-gallery,
  .article__body .wp-block-gallery,
  .article-page .article__body .gallery,
  .blog-article-page .article__body .gallery,
  .article__body .gallery,
  .article-page .article__body .wp-block-columns:has(img),
  .blog-article-page .article__body .wp-block-columns:has(img),
  .article__body .wp-block-columns:has(img),
  .article-gallery__grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    row-gap: 16px !important;
    column-gap: 16px !important;
    margin: 24px auto !important;
  }
  .article-page .article__body p:has(a:nth-of-type(2)) img,
  .blog-article-page .article__body p:has(a:nth-of-type(2)) img,
  .article__body p:has(a:nth-of-type(2)) img,
  .article-page .article__body p:has(img:nth-of-type(2)) img,
  .blog-article-page .article__body p:has(img:nth-of-type(2)) img,
  .article__body p:has(img:nth-of-type(2)) img,
  .article-page .article__body .wp-block-gallery img,
  .blog-article-page .article__body .wp-block-gallery img,
  .article__body .wp-block-gallery img,
  .article-page .article__body .gallery img,
  .blog-article-page .article__body .gallery img,
  .article__body .gallery img,
  .article-gallery__photo img,
  .article-gallery__photo {
    height: 220px !important;
  }
  .article-page .article__body p:has(a:nth-of-type(2)) > a:last-child:nth-child(odd) img,
  .blog-article-page .article__body p:has(a:nth-of-type(2)) > a:last-child:nth-child(odd) img,
  .article__body p:has(a:nth-of-type(2)) > a:last-child:nth-child(odd) img,
  .article-page .article__body p:has(img:nth-of-type(2)) > a:last-child:nth-child(odd) img,
  .blog-article-page .article__body p:has(img:nth-of-type(2)) > a:last-child:nth-child(odd) img,
  .article__body p:has(img:nth-of-type(2)) > a:last-child:nth-child(odd) img {
    height: 220px !important;
    aspect-ratio: 4 / 3 !important;
  }
  .article-gallery {
    margin-top: 22px;
  }
  .article-gallery__grid {
    gap: 16px !important;
    row-gap: 16px !important;
    column-gap: 16px !important;
  }
  .article-gallery--count-2 .article-gallery__grid,
  .article-gallery--count-3 .article-gallery__grid {
    grid-template-columns: 1fr !important;
  }
  .article-gallery__track {
    gap: 12px;
  }
  .article-gallery--strip .article-gallery__item {
    flex: 0 0 min(82vw, 280px);
  }
  .article-gallery__arrow {
    width: 38px;
    height: 38px;
  }
  .article-gallery__arrow--prev { left: 4px; }
  .article-gallery__arrow--next { right: 4px; }
  .article-gallery-lightbox {
    padding: 16px;
  }
  .article-gallery-lightbox__close {
    top: 16px;
    right: 16px;
  }
  .article-gallery-lightbox__nav--prev { left: 12px; }
  .article-gallery-lightbox__nav--next { right: 12px; }
  .article-page .news__grid {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-gallery__photo img { transition: none; }
  .article-gallery__track { scroll-behavior: auto; }
}

/* Одиночные изображения (≤480): вся ширина, высота 450 для портрета художника */
@media (max-width: 480px) {
  .profile-hero__portrait {
    width: 100%;
    max-width: none;
    height: 450px;
  }
}

/* Единый стандарт (feedback 2026-09-06): с 1024px заголовки и лиды центрируются */
@media (max-width: 1024px) {
  .news__title { text-align: center; margin-inline: auto; }
  .article__lead { margin-inline: auto; }
  .content-hero { text-align: center; }
}
