/* ══════════════════════════════════════════════
   ARTICLE PAGE — article.css
   Extends ../Main/style.css + ../blog/style.css
   Все переменные дизайн-системы унаследованы.
══════════════════════════════════════════════ */

/* ── Общий текстовый столбец (читаемая ширина) ─ */
.art-col {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ══════════════════════════════════════════════
   HERO — заголовок + мета + обложка
══════════════════════════════════════════════ */
.art-hero {
  padding-top: calc(72px + clamp(36px, 4.5vw, 56px));
  padding-bottom: 0;
  background: var(--bg-main);
}

/* После блока stories: вертикальный зазор до заголовка задаётся padding-bottom у блока stories */
.art-hero--after-stories {
  padding-top: 0;
}

/* Блок заголовка */
.art-header {
  padding-bottom: 0;
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

/* Обложка */
.art-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--bg-soft);
}

.art-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.art-cover .img-placeholder {
  border-radius: inherit;
}

.art-h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.8vw, 50px);
  font-weight: 400;
  line-height: 1.12;
  color: var(--text-main);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

/* Мета-строка */
.art-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.art-read-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.art-read-time svg {
  color: var(--accent-bronze);
  opacity: 0.8;
  flex-shrink: 0;
}

.art-date {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════
   ОГЛАВЛЕНИЕ
══════════════════════════════════════════════ */
.art-toc-section {
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--bg-main);
}

.art-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
}

.art-toc-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bronze);
  margin-bottom: 20px;
}

.art-toc-list {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
}

.art-toc-list li {
  counter-increment: toc;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.art-toc-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.art-toc-list li:first-child {
  padding-top: 0;
}

.art-toc-list li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-bronze);
  opacity: 0.5;
  flex-shrink: 0;
  min-width: 22px;
  transition: opacity 0.2s ease;
}

.art-toc-list li:hover::before {
  opacity: 1;
}

.art-toc-list a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  transition: color 0.2s ease;
}

.art-toc-list a:hover {
  color: var(--accent-bronze);
}

/* Спецпредложения: та же строка flex + gap; слева компактный жёлтый текстовый label (как вариант колонки номеров) */
.art-toc-list li.art-toc-item--extra {
  counter-increment: none;
}

.art-toc-list li.art-toc-item--extra::before {
  content: none;
  display: none;
}

.art-toc-list li.art-toc-item--extra .art-toc-marker--label {
  flex-shrink: 0;
  min-width: 22px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: lowercase;
  white-space: nowrap;
  color: #c9a63a;
}

.art-toc-list li.art-toc-item--extra:hover .art-toc-marker--label {
  color: #d4b44a;
}

.art-toc-list li.art-toc-item--extra a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  transition: color 0.2s ease;
}

.art-toc-list li.art-toc-item--extra a:hover {
  color: var(--accent-bronze);
}

/* ══════════════════════════════════════════════
   ТЕЛО СТАТЬИ — типографика
══════════════════════════════════════════════ */
.art-body {
  padding: 0 0 clamp(56px, 7vw, 96px);
  background: var(--bg-main);
}

/* Секция статьи */
.art-section {
  margin-bottom: 0;
}

/* H2 */
.art-h2,
.art-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.22;
  margin-top: clamp(36px, 4vw, 52px);
  margin-bottom: 20px;
  padding-top: 0;
  letter-spacing: -0.005em;
}

.art-section:first-child .art-h2,
.art-body h2:first-child {
  margin-top: 0;
}

/* H3 */
.art-h3,
.art-body h3 {
  font-family: var(--font-serif);
  font-size: clamp(23px, 2vw, 26px);
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.16;
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

/* Абзацы */
.art-body p {
  font-size: 16px;
  color: #3B3530;
  line-height: 1.9;
  margin-bottom: 22px;
}

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

/* Ссылки в тексте: глобально a наследует цвет без подчёркивания — в статье это нужно вернуть */
.art-body a:not(.art-lightbox-link):not(.btn):not(.wp-block-button__link) {
  color: var(--accent-bronze);
  text-decoration: underline;
  text-decoration-color: rgba(163, 132, 94, 0.48);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.art-body a:not(.art-lightbox-link):not(.btn):not(.wp-block-button__link):hover {
  color: var(--accent-dark);
  text-decoration-color: rgba(52, 46, 41, 0.35);
}

.art-body a:not(.art-lightbox-link):not(.btn):not(.wp-block-button__link):focus-visible {
  outline: 2px solid var(--accent-bronze);
  outline-offset: 2px;
}

/* Нумерованные списки — цифры внутри контентной области */
.art-body ol {
  list-style-position: inside;
  padding-left: 0;
  margin: 22px 0 26px;
}
.art-body ol li {
  font-size: 15px;
  color: #3B3530;
  line-height: 1.75;
  margin-bottom: 10px;
}

/* Маркерные списки в статье */
.art-body ul {
  list-style: disc;
  list-style-position: outside;
  padding-left: 24px;
  margin: 22px 0 28px;
}

.art-body ul li {
  font-size: 16px;
  color: #3B3530;
  line-height: 1.85;
  margin-bottom: 10px;
}

.art-body ul li:last-child {
  margin-bottom: 0;
}

/* Списки */
.art-list {
  list-style: none;
  margin: 22px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.art-list li {
  font-size: 15px;
  color: #3B3530;
  line-height: 1.75;
  padding-left: 22px;
  position: relative;
}

.art-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-bronze);
  opacity: 0.7;
}

/* Список с жирными лейблами */
.art-list--labeled li strong {
  font-weight: 600;
  color: var(--text-main);
}

/* Плашка-примечание */
.art-note {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent-bronze);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 36px 0;
}

.art-note p {
  font-size: 14px !important;
  color: var(--text-muted) !important;
  line-height: 1.8 !important;
  margin: 0 !important;
}

/* Цитата */
.art-quote {
  margin: 44px 0;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--accent-bronze);
}

.art-quote p {
  font-family: var(--font-serif) !important;
  font-size: clamp(18px, 2.2vw, 24px) !important;
  font-weight: 300 !important;
  font-style: italic;
  color: var(--text-muted) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* Инсет-блок «К слову» */
.art-inset {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.5vw, 28px) clamp(20px, 2.5vw, 32px);
  margin: 44px 0;
}

.art-inset-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bronze);
  margin-bottom: 12px !important;
}

.art-inset p:not(.art-inset-label) {
  font-size: 14px !important;
  color: var(--text-muted) !important;
  line-height: 1.8 !important;
  margin: 0 !important;
}

/* Изображения внутри статьи */
.art-body .art-content-figure,
.art-body .wp-block-image,
.art-body figure,
.art-body .wp-caption {
  width: 100% !important;
  max-width: 100% !important;
  margin: clamp(28px, 4vw, 42px) 0;
}

.art-body .art-lightbox-link {
  display: block;
  width: 100%;
  color: inherit;
}

.art-body .art-content-image,
.art-body .wp-block-image img,
.art-body .wp-caption img,
.art-body img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.art-body .wp-caption-text,
.art-body figcaption,
.art-body .blocks-gallery-caption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: left;
}

.art-body .gallery,
.art-body .wp-block-gallery,
.art-body .blocks-gallery-grid {
  display: grid;
  align-items: start;
  gap: 14px;
  margin: clamp(24px, 3.4vw, 34px) 0 clamp(12px, 1.8vw, 18px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.art-body .wp-block-gallery:not(.art-gallery-layout),
.art-body .blocks-gallery-grid:not(.art-gallery-layout) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.art-body .gallery-columns-1 {
  grid-template-columns: 1fr;
}

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

.art-body .gallery-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.art-body .gallery-columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.art-body .gallery-columns-5,
.art-body .gallery-columns-6,
.art-body .gallery-columns-7,
.art-body .gallery-columns-8,
.art-body .gallery-columns-9 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Строгие сетки галереи (классы art-gallery-layout--N из темы). Без masonry / auto-fill. */
.art-body .art-gallery-layout {
  align-items: stretch;
  align-content: start;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Старый шорткод [gallery]: float + clear — сбрасываем, иначе ломается grid */
.art-body .art-gallery-layout.gallery dl.gallery-item {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  clear: none !important;
}

/* Если clearfix-<p> остался в разметке, не даём ему быть ячейкой сетки */
.art-body .art-gallery-layout.gallery > p:has(br[style*="clear"]) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}

/* Gutenberg иногда вешает flex — фиксируем предсказуемый grid */
.art-body figure.wp-block-gallery.art-gallery-layout {
  display: grid !important;
}

.art-body div.gallery.art-gallery-layout--1,
.art-body figure.wp-block-gallery.art-gallery-layout--1,
.art-body div.blocks-gallery-grid.art-gallery-layout--1 {
  grid-template-columns: minmax(0, 1fr);
}

.art-body div.gallery.art-gallery-layout--2,
.art-body figure.wp-block-gallery.art-gallery-layout--2,
.art-body div.blocks-gallery-grid.art-gallery-layout--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.art-body div.gallery.art-gallery-layout--3,
.art-body figure.wp-block-gallery.art-gallery-layout--3,
.art-body div.blocks-gallery-grid.art-gallery-layout--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.art-body div.gallery.art-gallery-layout--4,
.art-body figure.wp-block-gallery.art-gallery-layout--4,
.art-body div.blocks-gallery-grid.art-gallery-layout--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
}

.art-body div.gallery.art-gallery-layout--many,
.art-body figure.wp-block-gallery.art-gallery-layout--many,
.art-body div.blocks-gallery-grid.art-gallery-layout--many {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
}

/* Ячейки растягиваются ровно; единый 4:3 для всех мульти-карточек */
.art-body .art-gallery-layout--2 .gallery-item,
.art-body .art-gallery-layout--2 .blocks-gallery-item,
.art-body .art-gallery-layout--2.wp-block-gallery .wp-block-image,
.art-body .art-gallery-layout--3 .gallery-item,
.art-body .art-gallery-layout--3 .blocks-gallery-item,
.art-body .art-gallery-layout--3.wp-block-gallery .wp-block-image,
.art-body .art-gallery-layout--4 .gallery-item,
.art-body .art-gallery-layout--4 .blocks-gallery-item,
.art-body .art-gallery-layout--4.wp-block-gallery .wp-block-image,
.art-body .art-gallery-layout--many .gallery-item,
.art-body .art-gallery-layout--many .blocks-gallery-item,
.art-body .art-gallery-layout--many.wp-block-gallery .wp-block-image {
  align-self: stretch;
  min-width: 0;
}

.art-body div.gallery.art-gallery-layout--2 dl.gallery-item,
.art-body div.gallery.art-gallery-layout--3 dl.gallery-item,
.art-body div.gallery.art-gallery-layout--4 dl.gallery-item,
.art-body div.gallery.art-gallery-layout--many dl.gallery-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0 !important;
}

.art-body div.gallery.art-gallery-layout dl.gallery-item dt.gallery-icon {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}

.art-body .art-gallery-layout--2 .art-lightbox-link,
.art-body .art-gallery-layout--3 .art-lightbox-link,
.art-body .art-gallery-layout--4 .art-lightbox-link,
.art-body .art-gallery-layout--many .art-lightbox-link {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  box-shadow: var(--shadow-soft);
}

.art-body .art-gallery-layout--1 .art-lightbox-link {
  aspect-ratio: auto;
  background: transparent;
  box-shadow: none;
}

.art-body .art-gallery-layout--1 .art-lightbox-link img {
  height: auto;
  object-fit: contain;
}

.art-body .gallery-item,
.art-body .blocks-gallery-item,
.art-body .wp-block-gallery .wp-block-image,
.art-body .wp-block-gallery figure.wp-block-image {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  align-self: start;
}

.art-body .art-gallery-layout .gallery-item,
.art-body .art-gallery-layout .blocks-gallery-item,
.art-body .art-gallery-layout.wp-block-gallery .wp-block-image,
.art-body .art-gallery-layout.wp-block-gallery > figure.wp-block-image {
  align-self: stretch;
}

.art-body .gallery-item,
.art-body .blocks-gallery-item,
.art-body .wp-block-gallery .wp-block-image {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Пустой dd для валидного HTML5 у классической галереи без подписи (тема дополняет в bd_fix_gallery_dl_missing_dd) */
.art-body dl.gallery-item dd.gallery-caption-empty {
  display: none;
}

/* Дефолт для старых галерей без art-gallery-layout (не перебиваем строгие сетки выше) */
.art-body .gallery:not(.art-gallery-layout) .art-lightbox-link,
.art-body .wp-block-gallery:not(.art-gallery-layout) .art-lightbox-link,
.art-body .blocks-gallery-grid:not(.art-gallery-layout) .art-lightbox-link {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  box-shadow: var(--shadow-soft);
}

.art-body .gallery-columns-1 .art-lightbox-link,
.art-body .wp-block-gallery.columns-1 .art-lightbox-link {
  aspect-ratio: auto;
  background: transparent;
  box-shadow: none;
}

.art-body .gallery:not(.art-gallery-layout).gallery-columns-3 .art-lightbox-link,
.art-body .gallery:not(.art-gallery-layout).gallery-columns-4 .art-lightbox-link,
.art-body .gallery:not(.art-gallery-layout).gallery-columns-5 .art-lightbox-link,
.art-body .gallery:not(.art-gallery-layout).gallery-columns-6 .art-lightbox-link,
.art-body .gallery:not(.art-gallery-layout).gallery-columns-7 .art-lightbox-link,
.art-body .gallery:not(.art-gallery-layout).gallery-columns-8 .art-lightbox-link,
.art-body .gallery:not(.art-gallery-layout).gallery-columns-9 .art-lightbox-link,
.art-body .wp-block-gallery:not(.art-gallery-layout).columns-3 .art-lightbox-link,
.art-body .wp-block-gallery:not(.art-gallery-layout).columns-4 .art-lightbox-link,
.art-body .wp-block-gallery:not(.art-gallery-layout).columns-5 .art-lightbox-link,
.art-body .wp-block-gallery:not(.art-gallery-layout).columns-6 .art-lightbox-link {
  aspect-ratio: 1 / 1;
}

.art-body .gallery .art-lightbox-link img,
.art-body .wp-block-gallery .art-lightbox-link img,
.art-body .blocks-gallery-grid .art-lightbox-link img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
  box-shadow: none;
}

/* Явно: мульти-галереи с layout-классом — только cover внутри фиксированной ячейки */
.art-body .art-gallery-layout--2 .art-lightbox-link img,
.art-body .art-gallery-layout--3 .art-lightbox-link img,
.art-body .art-gallery-layout--4 .art-lightbox-link img,
.art-body .art-gallery-layout--many .art-lightbox-link img {
  object-fit: cover;
  object-position: center center;
}

.art-body .gallery-columns-1 .art-lightbox-link img,
.art-body .wp-block-gallery.columns-1 .art-lightbox-link img {
  height: auto;
  object-fit: contain;
}

.art-body .gallery .wp-caption-text,
.art-body .gallery figcaption,
.art-body .wp-block-gallery figcaption,
.art-body .blocks-gallery-grid figcaption,
.art-body .blocks-gallery-caption {
  margin-top: 0;
}

/* Собираем стык "галерея -> следующий блок" без глобальной правки всего текста */
.art-body .gallery + .art-h2,
.art-body .gallery + h2,
.art-body .wp-block-gallery + .art-h2,
.art-body .wp-block-gallery + h2,
.art-body .blocks-gallery-grid + .art-h2,
.art-body .blocks-gallery-grid + h2 {
  margin-top: clamp(22px, 2.8vw, 30px);
}

.art-body .gallery + .art-h3,
.art-body .gallery + h3,
.art-body .wp-block-gallery + .art-h3,
.art-body .wp-block-gallery + h3,
.art-body .blocks-gallery-grid + .art-h3,
.art-body .blocks-gallery-grid + h3 {
  margin-top: clamp(18px, 2.2vw, 24px);
}

/* ══════════════════════════════════════════════
   БЛОК СВЯЗИ
══════════════════════════════════════════════ */
.art-cta {
  padding: var(--section-py) var(--gutter);
  background: var(--accent-dark);
  color: var(--white);
}

.art-cta-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.art-cta-content .eyebrow {
  color: var(--accent-bronze);
  margin-bottom: 20px;
}

.art-cta-content .section-title {
  color: var(--white);
  margin-bottom: 20px;
}

.art-cta-text {
  font-size: 15px;
  color: rgba(250,248,244,0.65);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.art-cta-special-period {
  font-size: 13px;
  color: rgba(250,248,244,0.55);
  line-height: 1.5;
  margin: -8px 0 16px;
  max-width: 480px;
}

.art-cta--special-offer .art-cta-text {
  margin-top: 0;
}

.art-cta-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Правая часть CTA — статистика */
.art-cta-decor {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.art-cta-stat {
  background: rgba(250,248,244,0.05);
  border: 1px solid rgba(250,248,244,0.09);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  transition: background 0.3s, border-color 0.3s;
}

.art-cta-stat:hover {
  background: rgba(163,132,94,0.1);
  border-color: rgba(163,132,94,0.28);
}

.art-cta-stat-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  flex-shrink: 0;
}

.art-cta-stat-text {
  font-size: 13px;
  color: rgba(250,248,244,0.5);
  line-height: 1.4;
}

/* Якорь оглавления «Спецпредложения» (согласовано с отступом под фикс. шапку, как на crm) */
#special-offers.art-cta--special-offers {
  scroll-margin-top: calc(80px + env(safe-area-inset-top, 0px));
}

/* ── Спецпредложения журнала: постерный арт-блок, герой-слой + контент (крем / дымка / янтарь / дерево) ── */
.art-cta--special-offers {
  --art-so-amber: #a67c1f;
  --art-so-wood: #2a1f18;
  --art-so-wood-muted: rgba(42, 31, 24, 0.72);
  position: relative;
  padding: 0;
  background: transparent;
  color: var(--art-so-wood);
  overflow: visible;
}

.art-so-stage {
  position: relative;
  isolation: isolate;
  padding: clamp(2.75rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  overflow: visible;
  min-height: min(72vh, 760px);
  background:
    radial-gradient(ellipse 90% 75% at 22% 88%, rgba(255, 248, 232, 0.75) 0%, transparent 52%),
    radial-gradient(ellipse 55% 50% at 78% 18%, rgba(168, 192, 204, 0.42) 0%, transparent 58%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 184, 120, 0.15) 0%, transparent 45%),
    linear-gradient(168deg, #e9dfd2 0%, #ddd2c4 42%, #c9d4d0 100%);
}

/* С героем: --art-so-hero-max только для отступа текста (правая колонка); визуальный размер героя — --art-so-hero-visual-w + shift */
.art-so-stage--has-figure {
  --art-so-hero-max: min(46%, 36rem);
  --art-so-hero-visual-w: min(64%, 52rem);
  --art-so-hero-shift: min(-6vw, -52px);
  /* сдвиг правой панели влево на персонажа (reveal задаёт свой transform — см. ниже) */
  --art-so-panel-shift-x: clamp(-312px, -27vw, -148px);
  min-height: min(64vh, 680px);
  overflow: visible;
  background:
    radial-gradient(ellipse 90% 75% at 22% 88%, rgba(255, 248, 232, 0.72) 0%, transparent 52%),
    radial-gradient(ellipse 55% 50% at 78% 18%, rgba(168, 192, 204, 0.42) 0%, transparent 58%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 184, 120, 0.15) 0%, transparent 45%),
    linear-gradient(168deg, #e9dfd2 0%, #ddd2c4 42%, #c9d4d0 100%);
}

.art-so-stage__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.art-so-stage__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 140% 90% at 50% 110%, rgba(42, 31, 24, 0.14) 0%, transparent 42%),
    linear-gradient(180deg, rgba(42, 31, 24, 0.06) 0%, transparent 28%, transparent 72%, rgba(42, 31, 24, 0.07) 100%);
}

.art-so-stage__mist {
  position: absolute;
  inset: -25% -15%;
  background:
    radial-gradient(ellipse 45% 28% at 32% 58%, rgba(255, 255, 255, 0.42) 0%, transparent 58%),
    radial-gradient(ellipse 38% 22% at 68% 42%, rgba(255, 255, 255, 0.22) 0%, transparent 52%);
  opacity: 0.55;
  animation: art-so-mist-drift 24s ease-in-out infinite alternate;
}

.art-so-stage__glow {
  position: absolute;
  width: min(60vw, 560px);
  height: min(60vw, 560px);
  right: -12%;
  top: -22%;
  background: radial-gradient(circle, rgba(212, 176, 90, 0.22) 0%, transparent 62%);
  filter: blur(3px);
}

.art-so-stage__steam {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 72%);
  filter: blur(18px);
  opacity: 0.32;
  animation: art-so-steam-rise 10s ease-in-out infinite;
}

.art-so-stage__steam--a {
  width: min(22vw, 140px);
  height: min(28vw, 180px);
  bottom: 8%;
  left: min(18vw, 200px);
  animation-delay: -2s;
}

.art-so-stage__steam--hero {
  width: min(36vw, 220px);
  height: min(30vw, 180px);
  bottom: 4%;
  left: 0;
  opacity: 0.36;
  animation-delay: -4.5s;
}

@keyframes art-so-mist-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(1.5%, -1%) scale(1.02);
  }
}

@keyframes art-so-steam-rise {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.26;
  }
  50% {
    transform: translate(6px, -16px) scale(1.06);
    opacity: 0.36;
  }
}

@media (prefers-reduced-motion: reduce) {
  .art-so-stage__mist,
  .art-so-stage__steam {
    animation: none;
  }
}

/* Герой: слой шире и сдвинут влево (вынос за край); padding контента не трогаем */
.art-so-hero-layer {
  position: absolute;
  left: var(--art-so-hero-shift, 0);
  top: 0;
  bottom: 0;
  width: var(--art-so-hero-visual-w, min(64%, 52rem));
  max-width: 68%;
  z-index: 1;
  pointer-events: none;
}

/* Отключено: размытое «пятно» за фигурой давало ощущение отдельной бежевой подложки-карточки */
.art-so-hero__ambience {
  display: none;
}

.art-so-hero__cutout {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  line-height: 0;
  max-width: 100%;
}

.art-so-hero__figure {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: left bottom;
  image-rendering: auto;
  transform: scale(1.14);
  transform-origin: left bottom;
  filter: drop-shadow(0 5px 14px rgba(42, 31, 24, 0.07));
}

@media (prefers-reduced-motion: reduce) {
  .art-so-hero__figure {
    transform: scale(1.05);
    transform-origin: left bottom;
  }

  @media (max-width: 900px) {
    .art-so-hero__figure {
      transform: scale(1.04);
    }
  }

  @media (max-width: 640px) {
    .art-so-hero__figure {
      transform: scale(1.03);
      transform-origin: center bottom;
    }
  }
}

.art-cta-inner--special-offers {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  min-width: 0;
}

.art-so-stage--has-figure .art-cta-inner--special-offers {
  z-index: 2;
  /* лёгкий сдвиг влево (~12px): край контента чуть заходит в зону героя, текст без изменений */
  padding-left: calc(var(--art-so-hero-max) + clamp(1.5rem, 3.5vw, 2.75rem) - 12px);
  padding-right: var(--gutter);
}

.art-so-panel {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-left: auto;
  margin-right: 0;
  min-width: 0;
}

/*
 * Панель с .reveal: в style.css стоит transform: translateY — он перезаписывал translateX.
 * Объединяем translateY (анимация) и translateX (наезд на героя) в одном transform.
 */
.art-so-stage--has-figure .art-so-panel.reveal {
  transform: translateY(28px) translateX(var(--art-so-panel-shift-x));
}

.art-so-stage--has-figure .art-so-panel.reveal.visible {
  transform: translateY(0) translateX(var(--art-so-panel-shift-x));
}

.art-so-stage:not(.art-so-stage--has-figure) {
  min-height: 0;
}

.art-so-stage:not(.art-so-stage--has-figure) .art-cta-inner--special-offers {
  padding-left: var(--gutter);
  max-width: 720px;
}

.art-so-stage:not(.art-so-stage--has-figure) .art-so-panel {
  margin-left: 0;
  max-width: none;
}

.art-cta--special-offers .art-so-panel .eyebrow {
  color: var(--art-so-amber);
  margin-bottom: 14px;
  letter-spacing: 0.14em;
}

.art-cta--special-offers .art-so-panel .section-title {
  color: var(--art-so-wood);
  margin-bottom: clamp(18px, 2.5vw, 26px);
}

.art-cta--special-offers .art-cta-so-heading {
  margin-bottom: clamp(20px, 3vw, 28px);
}

.art-so-list-hint {
  margin: 0 0 clamp(12px, 2vw, 16px);
  font-size: 13px;
  line-height: 1.45;
  color: var(--art-so-wood-muted);
}

.art-so-list {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vw, 24px);
}

.art-so-list--one {
  gap: 12px;
}

.art-so-item {
  margin: 0;
}

.art-so-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  color: var(--art-so-wood);
  margin: 0 0 10px;
  line-height: 1.25;
}

.art-so-title--card {
  display: block;
  margin: 0 0 12px;
  font-size: clamp(18px, 2.1vw, 22px);
}

.art-so-desc {
  display: block;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--art-so-wood-muted);
  max-width: 540px;
}

.art-so-period {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(42, 31, 24, 0.48);
  max-width: 540px;
}

/* Карточка выбора спецпредложения (radio + общий CTA) */
.art-so-card {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(42, 31, 24, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(252, 249, 244, 0.88) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 18px 48px rgba(42, 31, 24, 0.07),
    0 4px 12px rgba(42, 31, 24, 0.04);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.art-so-card:hover {
  border-color: rgba(184, 148, 47, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 22px 56px rgba(42, 31, 24, 0.1),
    0 8px 20px rgba(42, 31, 24, 0.06);
  transform: translateY(-2px);
}

.art-so-card:active {
  transform: translateY(0);
  transition-duration: 0.12s;
}

.art-so-card:has(.art-so-card__radio:checked) {
  border-color: rgba(184, 148, 47, 0.65);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.98) 0%, rgba(250, 244, 228, 0.95) 100%);
  box-shadow:
    0 0 0 1px rgba(184, 148, 47, 0.25),
    0 20px 52px rgba(42, 31, 24, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.art-so-card:has(.art-so-card__radio:focus-visible) {
  outline: 2px solid rgba(184, 148, 47, 0.75);
  outline-offset: 3px;
}

.art-so-card__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.art-so-card__inner {
  display: block;
  padding: clamp(16px, 2.2vw, 20px) clamp(16px, 2.5vw, 22px);
}

.art-so-open-wrap {
  margin-top: clamp(20px, 2.8vw, 28px);
}

.art-so-open-wrap--hint-only {
  margin-top: clamp(8px, 1.5vw, 12px);
}

.art-so-pick-hint {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--art-so-wood);
}

.art-so-open-wrap .btn {
  margin-top: 0;
}

.art-cta--special-offers .art-so-btn-qr.btn-white {
  padding: 16px 28px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--art-so-wood);
  background: linear-gradient(165deg, #fbf8f0 0%, #e8d5a8 45%, #d4b85a 100%);
  border: 1px solid rgba(42, 31, 24, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 14px 36px rgba(42, 31, 24, 0.12),
    0 4px 10px rgba(184, 148, 47, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.art-cta--special-offers .art-so-btn-qr.btn-white:hover {
  background: linear-gradient(165deg, #fffdf8 0%, #edd9a8 40%, #c9a23a 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 18px 44px rgba(42, 31, 24, 0.14),
    0 6px 14px rgba(184, 148, 47, 0.35);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .art-so-stage--has-figure {
    --art-so-hero-max: min(40%, 26rem);
    --art-so-hero-visual-w: min(56%, 44rem);
    --art-so-hero-shift: min(-4vw, -36px);
    --art-so-panel-shift-x: clamp(-252px, -23vw, -123px);
    min-height: min(56vh, 580px);
  }

  .art-so-stage--has-figure .art-cta-inner--special-offers {
    padding-left: calc(var(--art-so-hero-max) + clamp(1.25rem, 3vw, 2.25rem) - 12px);
  }

  .art-so-hero__figure {
    transform: scale(1.1);
    transform-origin: left bottom;
  }
}

@media (max-width: 640px) {
  .art-so-stage {
    min-height: 0;
    padding-top: clamp(1.75rem, 5vw, 2.75rem);
  }

  .art-so-stage--has-figure {
    --art-so-hero-max: min(78vw, 320px);
    --art-so-hero-visual-w: min(92vw, 400px);
    --art-so-hero-shift: 0;
    --art-so-panel-shift-x: 0px;
    min-height: 0;
    overflow: visible;
  }

  .art-so-hero-layer {
    position: relative;
    left: auto;
    bottom: auto;
    top: auto;
    width: var(--art-so-hero-visual-w);
    max-width: min(94vw, 420px);
    height: min(48vh, 420px);
    margin: 0 auto 0.5rem;
    z-index: 1;
    align-items: center;
    align-self: center;
  }

  .art-so-hero__figure {
    width: auto;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    transform: scale(1.06);
    transform-origin: center bottom;
  }

  .art-so-stage--has-figure .art-cta-inner--special-offers {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .art-so-panel {
    margin-left: 0;
    max-width: none;
  }

  .art-so-stage__steam--a {
    opacity: 0.2;
  }
}

/* Модалка QR (журнал) */
html.bd-lk-so-modal-open {
  overflow: hidden;
}

.bd-lk-so-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.bd-lk-so-modal.is-open {
  display: flex;
}

.bd-lk-so-modal[hidden] {
  display: none !important;
}

.bd-lk-so-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 8, 0.55);
}

.bd-lk-so-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: min(92vh, 640px);
  overflow: auto;
  background: var(--bg-soft, #f7f4ee);
  color: var(--text, #2c2824);
  border-radius: var(--radius-md, 12px) var(--radius-md, 12px) 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  padding: 22px 22px 24px;
  margin: 0;
}

.bd-lk-so-modal__panel--success {
  padding: 18px 20px 20px;
}

.bd-lk-so-modal__panel--success .bd-lk-so-modal__title {
  margin-bottom: 6px;
}

.bd-lk-so-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: rgba(44, 40, 36, 0.45);
  border-radius: 8px;
}

.bd-lk-so-modal__close:hover {
  color: var(--text, #2c2824);
}

.bd-lk-so-modal__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin: 0 32px 12px 0;
  line-height: 1.2;
  color: var(--text, #2c2824);
}

.bd-lk-so-modal__offer {
  margin: -4px 0 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(44, 40, 36, 0.82);
}

.bd-lk-so-modal__panel--success .bd-lk-so-modal__offer {
  margin: 0 0 12px;
  font-size: 14px;
}

.bd-lk-so-modal__offer[hidden] {
  display: none;
}

.bd-lk-so-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bd-lk-so-modal__lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(44, 40, 36, 0.72);
}

.bd-lk-so-modal__error {
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #7a1f1f;
  background: rgba(180, 40, 40, 0.08);
  border-radius: var(--radius-sm, 8px);
}

.bd-lk-so-field {
  margin: 0 0 12px;
}

.bd-lk-so-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text, #2c2824);
}

.bd-lk-so-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(44, 40, 36, 0.18);
  border-radius: var(--radius-sm, 8px);
  font-size: 15px;
  background: #fff;
}

/* Согласие: тот же паттерн, что CTA/contacts (.form-check + .check-label), палитра под светлую модалку */
.bd-lk-so-form .form-check {
  margin: 0 0 12px;
  padding-top: 2px;
}
.bd-lk-so-form .check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.bd-lk-so-form .check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.bd-lk-so-form .check-box {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid rgba(44, 40, 36, 0.28);
  border-radius: 3px;
  background: #fff;
  margin-top: 1px;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  display: block;
  flex-shrink: 0;
}
.bd-lk-so-form .check-label input:checked ~ .check-box {
  background: var(--accent-bronze, #a67c52);
  border-color: var(--accent-bronze, #a67c52);
}
.bd-lk-so-form .check-box::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.15s;
}
.bd-lk-so-form .check-label input:checked ~ .check-box::after {
  opacity: 1;
}
.bd-lk-so-form .check-text {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(44, 40, 36, 0.72);
}
.bd-lk-so-form .check-text a {
  color: var(--text, #2c2824);
  text-decoration: underline;
}
.bd-lk-so-form .check-text a:hover {
  color: var(--accent-bronze, #a67c52);
}

.bd-lk-so-actions {
  margin: 18px 0 0;
}

.bd-lk-so-actions .btn {
  width: 100%;
  justify-content: center;
}

.bd-lk-so-modal__success {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.bd-lk-so-modal__success .bd-lk-so-actions {
  margin: 4px 0 0;
}

/* Hero-блок QR: центровка без лишней полноширинной «площадки»; без второй рамки поверх PNG-карточки */
.bd-lk-so-success__qr {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  min-height: 0;
  line-height: 0;
}

.bd-lk-so-success__qr .bd-lk-qr-img,
.bd-lk-so-success__qr .bd-lk-qr-svg svg {
  display: block;
  max-width: 220px;
  height: auto;
  margin: 0;
}

.bd-lk-so-success__qr .bd-lk-qr-svg {
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
}

/*
 * Styled QR card (Laravel): оформление как референс — квадратная белая плитка, крупный радиус, лёгкая тень,
 * поля внутри, картинка целиком (contain), без cover-кадра, чтобы не резать скругления и тень ассета.
 */
.bd-lk-so-success__qr .bd-lk-so-qr-card {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: min(100%, 300px);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(64vh, 360px);
  margin: 0;
  padding: clamp(10px, 2.6vw, 17px);
  line-height: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 2px 10px rgba(15, 12, 10, 0.05),
    0 12px 40px rgba(15, 12, 10, 0.09);
}

.bd-lk-so-success__qr .bd-lk-so-qr-card-img {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  /* Чуть вверх относительно белого поля карточки (в PNG вес визуала ниже центра кадра) */
  transform: translateY(calc(-1 * clamp(4px, 1.2vw, 9px)));
  box-shadow: none;
}

.bd-lk-so-code {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin: 0;
  color: var(--text, #2c2824);
}

.bd-lk-so-msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: rgba(44, 40, 36, 0.72);
}

.bd-lk-so-msg:empty {
  display: none;
}

@media (min-width: 600px) {
  .bd-lk-so-modal {
    align-items: center;
    padding: 24px 16px;
  }

  .bd-lk-so-modal__panel {
    border-radius: var(--radius-md, 12px);
    margin: 0 auto;
  }
}

/* ══════════════════════════════════════════════
   ЕЩЁ СТАТЬИ
══════════════════════════════════════════════ */
.art-more {
  padding: var(--section-py) var(--gutter);
  background: var(--bg-soft);
}

.art-more-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.art-more-inner .section-head {
  margin-bottom: clamp(32px, 4vw, 52px);
}

.art-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

/* Карточки — используют .jcard из blog/style.css */
.art-more-grid .jcard-img {
  aspect-ratio: 16 / 9;
}

/* Убираем категорийный бейдж в карточках "Ещё статьи" */
.art-more-grid .jcard-cat {
  display: none;
}

.art-more-footer {
  display: flex;
  justify-content: center;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .art-cta-inner {
    grid-template-columns: 1fr;
    gap: clamp(40px, 5vw, 56px);
  }

  .art-cta-decor {
    display: none;
  }

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

@media (max-width: 640px) {
  .art-cover {
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-md);
  }

  .art-h1 {
    font-size: clamp(22px, 7vw, 30px);
  }

  .art-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .art-toc {
    padding: 20px;
  }

  .art-toc-list a {
    font-size: 13px;
  }

  .art-toc-list li.art-toc-item--extra a {
    font-size: 13px;
  }

  .art-toc-list li.art-toc-item--extra .art-toc-marker--label {
    font-size: 9px;
  }

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

  .art-cta-btns {
    flex-direction: column;
  }

  .art-cta-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .art-quote {
    padding-left: 20px;
  }

  .art-note {
    padding: 16px 18px;
  }

  .art-inset {
    padding: 18px 20px;
  }
}

@media (max-width: 480px) {
  .art-h2,
  .art-body h2 {
    font-size: 20px;
  }

  .art-body p,
  .art-list li {
    font-size: 15px;
  }
}

/* ══════════════════════════════════════════════
   БЛОК ВИДЕО
══════════════════════════════════════════════ */
.art-video-section {
  padding: 0 0 clamp(32px, 4vw, 56px);
}

.art-body + .art-video-section {
  margin-top: clamp(-40px, -4vw, -24px);
}

.art-video-heading {
  margin-top: 0;
  margin-bottom: 20px;
}

.art-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-soft);
}

.art-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ══════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════ */
.art-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(17, 15, 12, 0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  overscroll-behavior: contain;
}

.art-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.art-lightbox-dialog {
  position: relative;
  width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-lightbox-stage {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

.art-lightbox-figure {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.art-lightbox-pan {
  display: inline-block;
  line-height: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.art-lightbox-pan.is-dragging {
  cursor: grabbing;
}

.art-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  background: rgba(255, 255, 255, 0.04);
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.art-lightbox-caption {
  max-width: min(760px, 100%);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(250, 248, 244, 0.74);
  text-align: center;
}

.art-lightbox-close,
.art-lightbox-nav {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(250, 248, 244, 0.18);
  border-radius: 999px;
  background: rgba(18, 16, 13, 0.72);
  color: var(--white);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.art-lightbox-close:hover,
.art-lightbox-nav:hover {
  background: rgba(163, 132, 94, 0.18);
  border-color: rgba(163, 132, 94, 0.4);
  transform: translateY(-1px);
}

.art-lightbox-close {
  top: -6px;
  right: -6px;
}

.art-lightbox-nav--prev {
  left: 12px;
}

.art-lightbox-nav--next {
  right: 12px;
}

.art-lightbox-nav[hidden],
.art-lightbox-caption[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .art-video-section {
    padding-top: 4px;
  }

  .art-body + .art-video-section {
    margin-top: -20px;
  }

  .art-body .art-content-figure,
  .art-body .wp-block-image,
  .art-body figure,
  .art-body .wp-caption {
    margin: 24px 0;
  }

  /* Узкий экран: предсказуемое уплотнение, без «рваной» сетки */
  .art-body .art-gallery-layout--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .art-body .art-gallery-layout--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .art-body .art-gallery-layout--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .art-body .art-gallery-layout--many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .art-body .wp-block-gallery:not(.art-gallery-layout),
  .art-body .blocks-gallery-grid:not(.art-gallery-layout),
  .art-body .gallery:not(.art-gallery-layout),
  .art-body .gallery:not(.art-gallery-layout).gallery-columns-2,
  .art-body .gallery:not(.art-gallery-layout).gallery-columns-3,
  .art-body .gallery:not(.art-gallery-layout).gallery-columns-4,
  .art-body .gallery:not(.art-gallery-layout).gallery-columns-5,
  .art-body .gallery:not(.art-gallery-layout).gallery-columns-6,
  .art-body .gallery:not(.art-gallery-layout).gallery-columns-7,
  .art-body .gallery:not(.art-gallery-layout).gallery-columns-8,
  .art-body .gallery:not(.art-gallery-layout).gallery-columns-9 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .art-lightbox {
    padding: 18px;
  }

  .art-lightbox-stage {
    max-height: calc(100vh - 36px);
  }

  .art-lightbox-image {
    max-height: calc(100vh - 140px);
    border-radius: 14px;
  }

  .art-lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .art-lightbox-nav--prev {
    left: 4px;
  }

  .art-lightbox-nav--next {
    right: 4px;
  }

  .art-lightbox-close {
    top: -10px;
    right: -2px;
  }
}

@media (max-width: 480px) {
  .art-body .art-gallery-layout--2,
  .art-body .art-gallery-layout--3,
  .art-body .art-gallery-layout--4,
  .art-body .art-gallery-layout--many {
    grid-template-columns: 1fr;
  }

  .art-body .wp-block-gallery:not(.art-gallery-layout),
  .art-body .blocks-gallery-grid:not(.art-gallery-layout),
  .art-body .gallery:not(.art-gallery-layout),
  .art-body .gallery:not(.art-gallery-layout).gallery-columns-2,
  .art-body .gallery:not(.art-gallery-layout).gallery-columns-3,
  .art-body .gallery:not(.art-gallery-layout).gallery-columns-4,
  .art-body .gallery:not(.art-gallery-layout).gallery-columns-5,
  .art-body .gallery:not(.art-gallery-layout).gallery-columns-6,
  .art-body .gallery:not(.art-gallery-layout).gallery-columns-7,
  .art-body .gallery:not(.art-gallery-layout).gallery-columns-8,
  .art-body .gallery:not(.art-gallery-layout).gallery-columns-9 {
    grid-template-columns: 1fr;
  }
}
