/* Дополнения к дизайну 5.1 для страниц, которых не было в прототипе: статьи РЕБА Медиа, пагинация. */
.post-content { max-width: 72ch; font-size: 18px; line-height: 1.6; }
.post-content > * + * { margin-top: 0; }
.post-content p { margin: 0 0 1em; }
.post-content h2, .post-content h3 { text-transform: none; margin: 1.6em 0 .6em; }
.post-content ul, .post-content ol { padding-left: 1.2em; margin: 0 0 1em; }
.post-content li { margin-bottom: .4em; }
.post-content a { color: var(--accent-text); text-decoration: underline; text-underline-offset: .15em; }
.post-content img, .post-content figure, .post-content .wp-block-embed { max-width: 100%; height: auto; margin: 1.5em 0; }
.post-content .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.post-content figcaption { font-size: 14px; color: var(--text-3); margin-top: 8px; }
.post-content blockquote { border-left: 3px solid var(--accent); margin: 1.5em 0; padding: 4px 0 4px 20px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line, currentColor); border-radius: 999px; color: inherit; text-decoration: none; }
.pagination .page-numbers.current { background: var(--accent); color: var(--gray-umber, #2F2C29); border-color: var(--accent); }

/* Пустая подпись в лайтбоксе не сдвигает фото вверх (страницы центров). */
.lightbox .lb-figure figcaption:empty { display: none; }

/* Галерея центра: часть фото открывается кнопкой «Показать ещё» (в HTML они есть всегда). */
.gallery a.is-more { display: none; }
.gallery.is-all a.is-more { display: block; }
.gallery-more { justify-content: center; margin-top: 20px; }

/* Статьи: чек-лист с квадратиками, кнопка консультации, сноска. */
.post-content .is-style-checklist { list-style: none; padding-left: 0; }
.post-content .is-style-checklist li { position: relative; padding-left: 32px; }
.post-content .is-style-checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border: 1.5px solid var(--accent); border-radius: 4px; }
.post-content h3 { font-size: 20px; }
.post-content .wp-block-buttons { margin: 1.5em 0 1em; }
.post-content .wp-block-button__link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: var(--gray-umber); font-weight: 600; text-decoration: none; }
.post-content .wp-block-button__link:hover { filter: brightness(1.06); }
.post-content .post-note { font-size: 14px; color: var(--text-3); }
.post-content strong { color: var(--text); }



/* Подвал: большой нижний отступ нужен только на телефоне (там внизу панель «Позвонить / Написать / Консультация»). */
@media (min-width: 901px) { .footer { padding-bottom: 40px; } }

/* ---------- Баннер cookie ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.cookie[hidden] { display: none; }
.cookie__in { pointer-events: auto; max-width: 720px; width: 100%; background: var(--dark); color: var(--dark-text); border: 1px solid rgba(248,244,236,.14);
  border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.5; }
.cookie__text { margin: 0 0 12px; }
.cookie__text a, .cookie__opt a { color: var(--straw); }
.cookie__more { display: grid; gap: 8px; margin: 0 0 14px; }
.cookie__more[hidden] { display: none; }
.cookie__opt { display: flex; gap: 10px; align-items: flex-start; }
.cookie__opt input { margin-top: 3px; accent-color: #C9C868; }
.cookie__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__btns [hidden] { display: none; }
.cookie .btn--ghost { color: var(--dark-text); border-color: rgba(248,244,236,.3); }
@media (max-width: 900px) { .cookie { bottom: 84px; } }   /* над панелью «Позвонить / Написать» */
/* Ссылки в подписи к согласию */
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent .consent__text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.chat__consent { display: block; font-size: 13px; margin-top: 4px; }
/* Подвал: документы и предупреждение */
.footer__legal { display: grid; gap: 6px; margin-top: 10px; }
.footer__legal a, .footer__legal button { color: inherit; opacity: .8; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.footer__note { margin-top: 16px; font-size: 12px; opacity: .55; max-width: 900px; }
