/*
Theme Name: DiscoverPress
Theme URI: https://looksoftly.com/
Author: DiscoverPress
Description: Элегантная минималистичная WordPress-тема для сайтов о психологии, отношениях, красоте и саморазвитии. Оптимизирована под Google Discover и Core Web Vitals.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: discoverypress
Tags: blog, fashion, lifestyle, minimal, responsive
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Цвета */
  --color-bg:          #ffffff;
  --color-text:        #1a1a1a;
  --color-text-muted:  #888888;
  --color-accent:      #c8a96e;
  --color-border:      #e8e8e8;
  --color-header-bg:   #ffffff;
  --color-header-text: #1a1a1a;
  --color-link:        #1a1a1a;

  /* Шрифты — переопределяются из настроек темы */
  --font-serif: 'Cormorant Garamond', Georgia, "Times New Roman", serif;
  --font-sans:  'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Типографика — переопределяются inline из настроек */
  --heading-size:        32px;
  --heading-weight:      400;
  --heading-style:       italic;
  --subheading-size:     22px;
  --subheading-weight:   600;
  --subheading-style:    italic;
  --body-size:           17px;
  --body-weight:         400;
  --body-style:          normal;
  --menu-size:           11px;
  --menu-weight:         300;
  --menu-style:          normal;
  --meta-size:           11px;
  --meta-weight:         300;
  --meta-style:          normal;
  --logo-size:           24px;
  --logo-weight:         400;
  --logo-style:          italic;

  /* Ширины */
  --site-width:    720px;
  --wrap-width:    1200px;

  --transition: 0.25s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.6; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================
   ОБЁРТКА САЙТА — 1200px max
   ============================================ */
#page {
  max-width: var(--wrap-width);
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(0,0,0,0.06);
  min-height: 100vh;
  background: var(--color-bg);
  position: relative;
}

/* ============================================
   ТИПОГРАФИКА КОНТЕНТА
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

.entry-content h2 {
  font-family: var(--font-serif);
  font-size: var(--subheading-size);
  font-style: var(--subheading-style);
  font-weight: var(--subheading-weight);
  text-align: center;
  margin: 2.5rem auto 1rem;
  max-width: 580px;
}
.entry-content h3 {
  font-family: var(--font-serif);
  font-size: calc(var(--subheading-size) * 0.85);
  font-style: var(--subheading-style);
  font-weight: var(--subheading-weight);
  text-align: center;
  margin: 2rem auto 0.75rem;
  max-width: 500px;
}
.entry-content h4 {
  font-family: var(--font-serif);
  font-size: calc(var(--subheading-size) * 0.75);
  font-style: italic;
  text-align: center;
  margin: 1.75rem auto 0.6rem;
}

/* Принудительное центрирование всех заголовков в контенте —
   перебивает инлайн-стили text-align: justify/left/right от Gutenberg */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  text-align: center !important;
}

.entry-content p {
  margin-bottom: 1.5rem;
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  font-style: var(--body-style);
  font-family: var(--font-serif);
  line-height: 1.85;
}
.entry-content ul,
.entry-content ol { margin: 0 0 1.4rem 1.25rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.4rem; font-family: var(--font-serif); font-size: var(--body-size); }

.entry-content blockquote {
  border-left: 2px solid var(--color-accent);
  margin: 2rem 0;
  padding: 0.75rem 1.5rem;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: calc(var(--body-size) * 1.1);
  color: var(--color-text-muted);
}
.entry-content blockquote p { margin: 0; }
.entry-content figure,
.entry-content .wp-caption {
  width: auto !important;
  max-width: 100%;
  margin: 2rem auto;
}
.entry-content figcaption,
.entry-content .wp-caption-text { font-size: 0.75rem; color: var(--color-text-muted); text-align: center; margin-top: 0.4rem; font-style: italic; font-family: var(--font-sans); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content strong { font-weight: 700; }
.entry-content img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* Первый абзац — жирный лид */
.entry-content > p:first-of-type { font-weight: 600; }

/* ============================================
   LAYOUT — контент 720px
   ============================================ */
.container {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-main { min-width: 0; }
.no-results { padding: 2rem 0; font-family: var(--font-sans); color: var(--color-text-muted); }

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 100;
}
.site-header.sticky { position: sticky; top: 0; }
.site-header.scrolled { box-shadow: 0 1px 10px rgba(0,0,0,0.06); }

.header-top {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.header-nav { display: none; border-top: 1px solid var(--color-border); }
.header-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1rem;
  max-width: var(--site-width);
  margin: 0 auto;
}
.header-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-sans);
  font-size: var(--menu-size);
  font-weight: var(--menu-weight);
  font-style: var(--menu-style);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-header-text);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.header-nav a:hover { opacity: 1; border-bottom-color: var(--color-text); }
.header-nav .current-menu-item a { border-bottom-color: var(--color-text); opacity: 1; }

.site-logo a {
  font-family: var(--font-serif);
  font-size: var(--logo-size);
  font-weight: var(--logo-weight);
  font-style: var(--logo-style);
  letter-spacing: 0.1em;
  color: var(--color-header-text);
  text-transform: uppercase;
}
.site-logo img { max-height: 36px; width: auto; }

.burger-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 26px; height: 26px; padding: 0; flex-shrink: 0; }
.burger-btn span { display: block; height: 1px; background: var(--color-header-text); transition: var(--transition); transform-origin: center; }
.burger-btn.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.category-nav { display: block; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; border-top: 1px solid var(--color-border); }
.category-nav::-webkit-scrollbar { display: none; }
.category-nav ul { display: flex; white-space: nowrap; padding: 0 1rem; max-width: var(--site-width); margin: 0 auto; }
.category-nav a { display: block; padding: 0.45rem 0.65rem; font-family: var(--font-sans); font-size: var(--menu-size); font-weight: var(--menu-weight); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text); border-bottom: 1px solid transparent; transition: border-color var(--transition); }
.category-nav a:hover, .category-nav .current-menu-item a { border-bottom-color: var(--color-text); opacity: 1; }

.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.burger-wrap { position: relative; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--color-border); }
.mobile-menu li:last-child { border-bottom: none; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: var(--menu-weight);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: background var(--transition);
}
.mobile-menu a:hover { background: var(--color-border); opacity: 1; }
.mobile-menu .current-menu-item a { color: var(--color-text); background: var(--color-border); }

/* ============================================
   VOGUE GRID
   На мобайле: ровная 2-колоночная сетка, все карточки 3:4
   На планшете (600+): 3 колонки
   На десктопе (960+): включается Vogue-паттерн (.card-wide, .ratio-square)
   ============================================ */
.vogue-grid-section { padding: 0; }
.vogue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--color-border); }
.vogue-card { background: var(--color-bg); display: block; padding: 0.65rem 0.6rem 0.85rem; }
.vogue-card:hover { opacity: 1; }
.vogue-card-img-wrap { overflow: hidden; margin-bottom: 0.55rem; aspect-ratio: 3/4; }
.vogue-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.vogue-card:hover .vogue-card-img { transform: scale(1.03); }
.vogue-card-cat { display: block; font-family: var(--font-sans); font-size: 0.56rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 400; color: var(--color-text-muted); margin-bottom: 0.28rem; }
.vogue-card-title { font-family: var(--font-serif); font-size: 0.95rem; font-style: italic; line-height: 1.3; color: var(--color-text); margin-bottom: 0.28rem; }
.vogue-card-date { font-family: var(--font-sans); font-size: 0.6rem; color: var(--color-text-muted); display: block; }

/* ============================================
   СЕКЦИИ КАТЕГОРИЙ
   ============================================ */
.cat-section { padding: 1.75rem 0; border-top: 1px solid var(--color-border); }
.cat-section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.4rem; }
.cat-section-title { font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; color: var(--color-text); }
.cat-section-all { font-family: var(--font-sans); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); border-bottom: 1px solid var(--color-text-muted); padding-bottom: 1px; }
.cat-section-all:hover { color: var(--color-text); border-color: var(--color-text); opacity: 1; }
.cat-section-nav { overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--color-border); margin-bottom: 1px; }
.cat-section-nav::-webkit-scrollbar { display: none; }
.cat-section-nav ul { display: flex; white-space: nowrap; }
.cat-section-nav a { display: block; padding: 0.35rem 0.55rem; font-family: var(--font-sans); font-size: 0.58rem; font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }
.cat-section-nav a:hover { color: var(--color-text); opacity: 1; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--color-border); }
.cat-card { background: var(--color-bg); display: block; padding: 0.6rem 0.5rem 0.7rem; }
.cat-card-img-wrap { aspect-ratio: 3/4; overflow: hidden; margin-bottom: 0.45rem; }
.cat-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cat-card:hover .cat-card-img { transform: scale(1.03); }
.cat-card-label { font-family: var(--font-sans); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); display: block; margin-bottom: 0.22rem; }
.cat-card-title { font-family: var(--font-serif); font-size: 0.9rem; font-style: italic; line-height: 1.3; color: var(--color-text); }
.cat-card-date { font-family: var(--font-sans); font-size: 0.58rem; color: var(--color-text-muted); margin-top: 0.22rem; display: block; }

/* ============================================
   ПОПУЛЯРНЫЕ ПОСТЫ
   ============================================ */
.popular-posts-section { padding: 1.75rem 0; border-top: 1px solid var(--color-border); }
.section-header { margin-bottom: 1rem; }
.section-title { font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; color: var(--color-text); }
.popular-posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--color-border); }
.popular-card { background: var(--color-bg); display: flex; flex-direction: column; padding: 0.6rem 0.5rem 0.7rem; gap: 0.45rem; }
.popular-card-img-wrap { aspect-ratio: 1/1; overflow: hidden; flex-shrink: 0; }
.popular-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.popular-card:hover .popular-card-img { transform: scale(1.04); }
.popular-card-cat { font-family: var(--font-sans); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); display: block; }
.popular-card-title { font-family: var(--font-serif); font-size: 0.9rem; font-style: italic; line-height: 1.3; color: var(--color-text); }
.popular-card-date { font-family: var(--font-sans); font-size: 0.58rem; color: var(--color-text-muted); display: block; }

/* ============================================
   ЛЕНТА ПОСТОВ
   ============================================ */
.posts-section { padding: 0 0 3rem; }
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--color-border); }
.post-card { background: var(--color-bg); display: block; padding: 0.6rem 0.5rem 0.75rem; }
.post-card-img-wrap { aspect-ratio: 3/4; overflow: hidden; margin-bottom: 0.5rem; }
.post-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card-img { transform: scale(1.03); }
.post-card-meta { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.28rem; flex-wrap: wrap; }
.post-card-cat { font-family: var(--font-sans); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 400; }
.post-card-date { font-family: var(--font-sans); font-size: 0.6rem; color: var(--color-text-muted); }
.post-card-title { font-family: var(--font-serif); font-size: 0.95rem; font-style: italic; line-height: 1.3; color: var(--color-text); }
.archive-header { padding: 1.25rem 0; border-bottom: 1px solid var(--color-border); }
.archive-title { font-family: var(--font-serif); font-size: 1.5rem; font-style: italic; color: var(--color-text); font-weight: 400; }
.archive-description { margin-top: 0.4rem; font-family: var(--font-sans); font-size: 0.82rem; color: var(--color-text-muted); }

/* ============================================
   ПАГИНАЦИЯ
   ============================================ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.25rem; padding: 2rem 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 300; border: 1px solid var(--color-border); color: var(--color-text); transition: var(--transition); }
.pagination a:hover { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); opacity: 1; }
.pagination .current { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.pagination .dots { border: none; color: var(--color-text-muted); }

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-wrap { padding-bottom: 2.5rem; }
.single-inner { max-width: var(--site-width); margin: 0 auto; padding: 0 1rem; }
.single-header { text-align: center; padding: 1.75rem 0 0; }

.single-title {
  font-family: var(--font-serif);
  font-size: var(--heading-size);
  font-style: var(--heading-style);
  font-weight: var(--heading-weight);
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.single-title-divider { width: 40px; height: 1px; background: var(--color-border); margin: 0 auto 1.25rem; }

.single-date-line {
  font-family: var(--font-sans);
  font-size: var(--meta-size);
  font-weight: var(--meta-weight);
  font-style: var(--meta-style);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.single-cats { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.single-cat { font-family: var(--font-sans); font-size: var(--meta-size); letter-spacing: 0.13em; text-transform: uppercase; font-weight: 400; color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 3px; }
.single-cat:hover { color: var(--color-text); opacity: 1; }
.single-cats .sep { color: var(--color-border); font-size: 0.45rem; }

.single-meta { display: flex; align-items: center; justify-content: center; gap: 0.4rem; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-border); }
.single-meta-author { font-family: var(--font-sans); font-size: var(--meta-size); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; color: var(--color-text); }
.single-meta-sep { color: var(--color-border); font-size: 0.65rem; }
.single-meta-date, .single-meta-reading { font-family: var(--font-sans); font-size: var(--meta-size); font-weight: var(--meta-weight); color: var(--color-text-muted); }

.single-content { padding-top: 1.75rem; }

/* Шеринг внизу */
.share-bottom { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 1.5rem 0; border-top: 1px solid var(--color-border); margin-top: 2rem; }
.share-bottom-label { font-family: var(--font-sans); font-size: 0.58rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--color-text-muted); margin-right: 0.15rem; }
.share-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--color-border); color: var(--color-text); transition: var(--transition); flex-shrink: 0; background: none; cursor: pointer; }
.share-icon-btn svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.share-icon-btn:hover { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); opacity: 1; }

/* Теги */
.single-tags { padding: 1.25rem 0; border-top: 1px solid var(--color-border); }
.single-tags-label { font-family: var(--font-sans); font-size: 0.58rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--color-text-muted); display: block; margin-bottom: 0.65rem; }
.single-tags-list { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.single-tag { display: inline-block; padding: 0.25rem 0.6rem; border: 1px solid var(--color-border); font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--color-text-muted); transition: var(--transition); }
.single-tag:hover { border-color: var(--color-text); color: var(--color-text); opacity: 1; }

/* Блок автора */
.author-box { padding: 1.25rem 0; border-top: 1px solid var(--color-border); display: flex; gap: 0.875rem; align-items: flex-start; }
.author-box-avatar { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; }
.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box-label { font-family: var(--font-sans); font-size: 0.56rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--color-text-muted); display: block; margin-bottom: 0.18rem; }
.author-box-name { font-family: var(--font-serif); font-size: 0.95rem; font-style: italic; margin-bottom: 0.35rem; font-weight: 400; }
.author-box-bio { font-family: var(--font-sans); font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.6; }

/* Похожие статьи */
.related-posts { padding: 1.75rem 0; border-top: 1px solid var(--color-border); }
.related-posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--color-border); margin-top: 1rem; }
.related-card { background: var(--color-bg); display: block; padding: 0.6rem 0.5rem 0.7rem; }
.related-card-img-wrap { aspect-ratio: 3/4; overflow: hidden; margin-bottom: 0.45rem; }
.related-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.related-card:hover .related-card-img { transform: scale(1.04); }
.related-card-cat { font-family: var(--font-sans); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); display: block; margin-bottom: 0.22rem; }
.related-card-title { font-family: var(--font-serif); font-size: 0.9rem; font-style: italic; line-height: 1.3; color: var(--color-text); }

/* Комментарии */
.comments-area { padding: 1.75rem 0; border-top: 1px solid var(--color-border); }
.comments-title { font-family: var(--font-serif); font-size: 1.1rem; font-style: italic; margin-bottom: 1.25rem; font-weight: 400; }
.comment-body { padding: 0.875rem 0; border-bottom: 1px solid var(--color-border); list-style: none; }
.comment-author-name { font-family: var(--font-sans); font-weight: 600; font-size: 0.8rem; margin-bottom: 0.18rem; }
.comment-date { font-family: var(--font-sans); font-size: 0.65rem; color: var(--color-text-muted); margin-bottom: 0.45rem; }
.comment-text { font-family: var(--font-serif); font-size: 0.95rem; line-height: 1.75; }
.comment-reply { margin-top: 0.5rem; }
.comment-reply a { font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.comment-reply a:hover { color: var(--color-text); opacity: 1; }
.children { padding-left: 1.25rem; }
.comment-form label { display: block; font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 0.3rem; margin-top: 1rem; }
.comment-form input, .comment-form textarea { width: 100%; border: 1px solid var(--color-border); padding: 0.55rem 0.7rem; font-family: var(--font-sans); font-size: 0.9rem; color: var(--color-text); background: var(--color-bg); outline: none; transition: border-color var(--transition); border-radius: 0; -webkit-appearance: none; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--color-text); }
.comment-form textarea { min-height: 90px; resize: vertical; }
.comment-form .submit { margin-top: 0.875rem; padding: 0.6rem 1.5rem; background: var(--color-text); color: var(--color-bg); font-family: var(--font-sans); font-size: 0.62rem; font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--color-text); transition: var(--transition); cursor: pointer; }
.comment-form .submit:hover { background: var(--color-bg); color: var(--color-text); }

/* ============================================
   СТАТИЧНЫЕ СТРАНИЦЫ
   ============================================ */
.page-content-wrap { padding: 2rem 0; }
.page-title { font-family: var(--font-serif); font-size: 1.75rem; font-style: italic; margin-bottom: 0.5rem; font-weight: 400; }
.page-divider { width: 30px; height: 1px; background: var(--color-border); margin: 0 0 1.75rem; }

/* ============================================
   ФУТЕР — белый, лаконичный, в стиле шапки
   ============================================ */
.site-footer {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
}
.site-footer .container { max-width: var(--site-width); }

.footer-widgets { display: grid; grid-template-columns: 1fr; gap: 1.75rem; margin-bottom: 2rem; }
.footer-widgets .widget { padding: 0; border: none; margin: 0; }
.footer-widgets .widget-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.footer-widgets .widget a {
  font-family: var(--font-sans);
  color: var(--color-text);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.4rem;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.footer-widgets .widget a:hover { opacity: 1; }

/* Меню футера — горизонтальный список по центру */
.footer-nav {
  margin: 0 0 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
}
.footer-nav li { margin: 0; }
.footer-nav a {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
  font-weight: 400;
  text-decoration: none;
  transition: opacity var(--transition);
  opacity: 0.75;
}
.footer-nav a:hover { opacity: 1; }

.footer-bottom { padding-top: 0.5rem; text-align: center; }
.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
  opacity: 0.5;
  margin: 0;
}

/* ============================================
   КНОПКА ВВЕРХ — белая, круглая, с чёрной обводкой
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: calc(50% - 600px + 1.5rem);
  width: 44px;
  height: 44px;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition), color var(--transition);
  z-index: 90;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover {
  transform: translateY(-2px);
  background: var(--color-text);
  color: var(--color-bg);
}
.scroll-top svg { width: 18px; height: 18px; }

@media (max-width: 1200px) {
  .scroll-top { right: 1.25rem; bottom: 1.5rem; }
}

/* ============================================
   COOKIE БАННЕР
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--wrap-width);
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--color-border);
  padding: 1rem 3.5rem 1rem 1.25rem;
  z-index: 300;
  display: none;
  align-items: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cookie-banner.visible { display: flex; }

.cookie-text {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--color-text);
  font-weight: 300;
}
.cookie-text a { color: var(--color-text); text-decoration: underline; text-underline-offset: 2px; }
.cookie-text a:hover { opacity: 0.6; }

.cookie-close {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text);
  flex-shrink: 0;
  transition: opacity var(--transition);
  padding: 0;
}
.cookie-close:hover { opacity: 0.5; }
.cookie-close svg { display: block; }

/* ============================================
   404 / ПОИСК / УТИЛИТЫ
   ============================================ */
.error-404-wrap { text-align: center; padding: 3.5rem 1rem; }
.error-404-code { font-family: var(--font-serif); font-size: 5rem; font-style: italic; color: var(--color-border); line-height: 1; display: block; }
.error-404-title { font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; margin-bottom: 0.65rem; font-weight: 400; }
.error-404-text { font-family: var(--font-sans); color: var(--color-text-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }
.btn-back { font-family: var(--font-sans); display: inline-block; padding: 0.6rem 1.5rem; border: 1px solid var(--color-text); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text); transition: var(--transition); }
.btn-back:hover { background: var(--color-text); color: var(--color-bg); opacity: 1; }
.search-form { display: flex; border: 1px solid var(--color-border); margin-bottom: 1.25rem; }
.search-form input { flex: 1; padding: 0.55rem 0.7rem; border: none; font-family: var(--font-sans); font-size: 0.875rem; color: var(--color-text); background: var(--color-bg); outline: none; }
.search-form button { padding: 0 0.75rem; background: var(--color-text); color: var(--color-bg); font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; transition: opacity var(--transition); }
.search-form button:hover { opacity: 0.75; }
.no-thumb { background: #f0f0f0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-size: 0.6rem; color: var(--color-text-muted); aspect-ratio: inherit; }

/* Admin bar */
.admin-bar .site-header.sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.sticky { top: 46px; } }

/* ============================================
   ПЛАНШЕТ 600px+
   ============================================ */
@media (min-width: 600px) {
  .vogue-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
  .popular-posts-grid { grid-template-columns: repeat(3, 1fr); }
  .related-posts-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   ДЕСКТОП 768px+ — десктопное меню
   ============================================ */
@media (min-width: 768px) {
  .header-nav { display: block; }
  .category-nav { display: none; }
  .header-top { max-width: 100%; padding: 0 2rem; }
  .header-nav ul { max-width: 100%; padding: 0 2rem; }
  .footer-widgets.footer-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-widgets.footer-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   ШИРОКИЙ 960px+ — включается Vogue-паттерн
   ============================================ */
@media (min-width: 960px) {
  .vogue-grid { grid-template-columns: repeat(4, 1fr); }

  /* Паттерн-карточки активируются только здесь */
  .vogue-card.card-wide { grid-column: span 2; }
  .vogue-card.card-wide .vogue-card-img-wrap { aspect-ratio: 4/3; }
  .vogue-card.ratio-square .vogue-card-img-wrap { aspect-ratio: 1/1; }

  .vogue-card-title { font-size: 1rem; }
  .vogue-card.card-wide .vogue-card-title { font-size: 1.2rem; }

  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
  .popular-posts-grid { grid-template-columns: repeat(4, 1fr); }
  .related-posts-grid { grid-template-columns: repeat(3, 1fr); }
}
/* ============================================
   ИЗМЕНЕНИЯ v1.4 — Hero layout + wrap 1600px
   Заменить предыдущий hero-блок в конце style.css
   ============================================ */

:root {
  --wrap-width: 1600px;
}

/* ============================================
   SINGLE HERO — мобильный (< 768px)
   Фото сверху 4:3, под ним мета компактно
   ============================================ */
.single-hero {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--color-border);
}

.single-hero-image {
  order: -1;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}

.single-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-hero-meta {
  padding: 1.25rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.single-hero-top {
  margin-bottom: 0.4rem;
}

.single-hero-top .single-cats {
  justify-content: flex-start;
  margin-bottom: 0;
}

.single-hero-center .single-title {
  font-size: calc(var(--heading-size) * 0.9);
  margin-bottom: 0.75rem;
  text-align: left;
}

.single-hero-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.single-hero-bottom .single-meta {
  justify-content: flex-start;
  padding-bottom: 0;
  border-bottom: none;
}

.single-hero-bottom .single-date-line {
  margin-bottom: 0;
}

.single-meta-label {
  font-family: var(--font-sans);
  font-size: var(--meta-size);
  font-weight: var(--meta-weight);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Контент после hero */
.single-inner--hero {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.single-inner--hero .single-content {
  padding-top: 1.75rem;
}

/* ============================================
   SINGLE HERO — десктоп (>= 768px)
   Левая 40%: всё по центру вертикально — рубрика→заголовок→автор+дата
   Правая 60%: фото cover, высота 620px
   ============================================ */
@media (min-width: 768px) {

  .single-hero {
    flex-direction: row;
    height: 620px;
    max-height: 620px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
  }

  .single-hero-image {
    order: 0;
    width: 60%;
    aspect-ratio: unset;
    height: 100%;
    flex-shrink: 0;
  }

  /* Левая колонка — всё по центру */
  .single-hero-meta {
    width: 40%;
    height: 100%;
    padding: 2.5rem 3rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    border-right: 1px solid var(--color-border);
    flex-shrink: 0;
  }

  .single-hero-top {
    margin-bottom: 0.5rem;
  }

  .single-hero-top .single-cats {
    justify-content: flex-start;
    margin-bottom: 0;
  }

  .single-hero-center {
    margin-bottom: 0.75rem;
  }

  .single-hero-center .single-title {
    font-size: clamp(1.6rem, 2.2vw, 2.6rem);
    margin-bottom: 0;
    text-align: left;
    line-height: 1.2;
  }

  .single-hero-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .single-hero-bottom .single-meta {
    justify-content: flex-start;
    padding-bottom: 0;
    border-bottom: none;
  }

  .single-hero-bottom .single-date-line {
    margin-bottom: 0;
  }

}

/* ============================================
   ШИРОКИЙ ЭКРАН 1200px+
   ============================================ */
@media (min-width: 1200px) {
  .single-hero {
    max-width: var(--wrap-width);
    margin: 0 auto;
  }

  .single-hero-meta {
    padding: 3rem 4rem 3rem 3rem;
  }
}
/* ============================================================
   HOMEPAGE — Vogue Style
   Префикс: hp-
   Все правила изолированы, ничего в теме не ломают
   ============================================================ */

/* ── Общий мета-тег рубрики (используется во всех блоках) ── */
.hp-meta-cat {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
  font-weight: 400;
}
.hp-meta-cat--center { text-align: center; }

/* ============================================================
   БЛОК 1 — HERO
   Мобайл: стек (featured → 2 колонки)
   Десктоп 768px+: 3 колонки
   ============================================================ */
.hp-hero {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

/* ── Featured — на всю ширину на мобайле ── */
.hp-hero__featured {
  display: block;
  order: -1; /* всегда первый */
}
.hp-hero__featured-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.hp-hero__featured-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.hp-hero__featured:hover .hp-hero__featured-img-el { transform: scale(1.03); }

.hp-hero__featured-body {
  padding: 0.85rem 1rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.hp-hero__featured-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 5vw, 1.7rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0;
}

/* ── Левая колонка: 2 вертикальные карточки ── */
.hp-hero__left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.hp-hero-card--left {
  display: block;
  background: var(--color-bg);
  padding: 0;
}
.hp-hero-card__img-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.hp-hero-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.hp-hero-card--left:hover .hp-hero-card__img { transform: scale(1.03); }

.hp-hero-card__body {
  padding: 0.55rem 0.65rem 0.75rem;
}
.hp-hero-card__title {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0;
}

/* ── Правая колонка: 5 строчных ── */
.hp-hero__right {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--color-border);
}

.hp-hero-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.hp-hero-row:last-child { border-bottom: none; }

.hp-hero-row__img-wrap {
  width: 80px;
  height: 80px;
  overflow: hidden;
  flex-shrink: 0;
}
.hp-hero-row__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hp-hero-row:hover .hp-hero-row__img { transform: scale(1.05); }

.hp-hero-row__body { min-width: 0; }
.hp-hero-row__title {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0;
  /* обрезаем до 3 строк */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Десктоп: 3 колонки ── */
@media (min-width: 768px) {
  .hp-hero {
    flex-direction: row;
    align-items: stretch;
    min-height: 540px;
    max-height: 680px;
  }

  /* Левая 22% */
  .hp-hero__left {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    gap: 0;
    background: transparent;
    border-bottom: none;
    border-right: 1px solid var(--color-border);
    width: 22%;
    flex-shrink: 0;
  }
  .hp-hero-card--left {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--color-border);
  }
  .hp-hero-card--left:last-child { border-bottom: none; }
  .hp-hero-card__img-wrap {
    aspect-ratio: unset;
    flex: 1;
    min-height: 0;
  }
  .hp-hero-card__body { flex-shrink: 0; }

  /* Центр 50% */
  .hp-hero__featured {
    order: 0;
    width: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--color-border);
  }
  .hp-hero__featured-img {
    aspect-ratio: unset;
    flex: 1;
    min-height: 0;
  }
  .hp-hero__featured-body {
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: none;
    text-align: center;
    flex-shrink: 0;
  }
  .hp-hero__featured-title {
    font-size: clamp(1.2rem, 1.8vw, 1.75rem);
    text-align: center;
  }
  .hp-meta-cat--center { text-align: center; }

  /* Правая 28% */
  .hp-hero__right {
    width: 28%;
    flex-shrink: 0;
    border-bottom: none;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .hp-hero__right::-webkit-scrollbar { display: none; }
  .hp-hero-row {
    grid-template-columns: 72px 1fr;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
  }
  .hp-hero-row__img-wrap { width: 72px; height: 72px; }
}

@media (min-width: 1200px) {
  .hp-hero { min-height: 760px; max-height: 720px; }
  .hp-hero__left  { width: 20%; }
  .hp-hero__featured { width: 52%; }
  .hp-hero__right { width: 28%; }
  .hp-hero-row { grid-template-columns: 84px 1fr; gap: 0.75rem; }
  .hp-hero-row__img-wrap { width: 84px; height: 84px; }
}

/* ============================================================
   БЛОКИ 2–5 — СЕКЦИИ РУБРИК
   ============================================================ */
.hp-cat-section {
  padding: 2rem 0 0.5rem;
  border-top: 1px solid var(--color-border);
}
.hp-cat-section:first-of-type { border-top: none; }

/* Заголовок с двумя линиями по бокам */
.hp-cat-section__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 1rem 1.25rem;
}
.hp-cat-section__head-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.hp-cat-section__title {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
}
.hp-cat-section__title a {
  color: inherit;
}
.hp-cat-section__title a:hover { opacity: 0.6; }

/* Обёртка слайдера с кнопками */
.hp-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Кнопки слайдера */
.hp-slider-btn {
  position: absolute;
  top: 30%; /* в районе фото */
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.hp-slider-btn svg { width: 18px; height: 18px; color: var(--color-text); }
.hp-slider-btn:hover { background: var(--color-text); border-color: var(--color-text); }
.hp-slider-btn:hover svg { color: var(--color-bg); }
.hp-slider-btn--prev { left: 0; }
.hp-slider-btn--next { right: 0; }
.hp-slider-btn--hidden { opacity: 0; pointer-events: none; }

/* На мобайле кнопки скрыты — только свайп */
@media (max-width: 767px) {
  .hp-slider-btn { display: none; }
}

/* Сам слайдер */
.hp-slider {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* На мобайле: отступы по краям для визуального намёка на скролл */
  padding: 0 0.5rem 1.25rem;
  /* На десктопе: отступ под кнопки */
}
.hp-slider::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .hp-slider {
    padding: 0 2.5rem 1.25rem;
  }
}

/* Слайд-карточка */
.hp-slide {
  display: block;
  flex-shrink: 0;
  scroll-snap-align: start;
  /* Мобайл: 2.2 карточки видно */
  width: calc((100% - 0.5rem * 2 - 1px * 2) / 2.2);
  background: var(--color-bg);
}
.hp-slide__img-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.hp-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.hp-slide:hover .hp-slide__img { transform: scale(1.03); }
.hp-slide__title {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0;
  padding: 0 0.25rem;
}

/* Планшет: ~3 карточки */
@media (min-width: 600px) {
  .hp-slide {
    width: calc((100% - 2.5rem * 2 - 1px * 3) / 3.2);
  }
}
/* Десктоп: 4 карточки */
@media (min-width: 960px) {
  .hp-slide {
    width: calc((100% - 2.5rem * 2 - 1px * 4) / 4);
  }
}

/* ============================================================
   БЛОК 6 — MUST READ
   ============================================================ */
.hp-must-read {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--color-border);
  margin-top: 1rem;
}

/* Мобайл: вертикальный стек */
.hp-must-read__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 1rem;
}

.hp-must-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.hp-must-card:last-child { border-bottom: none; }

.hp-must-card__img-wrap {
  width: 90px;
  height: 90px;
  overflow: hidden;
  flex-shrink: 0;
}
.hp-must-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hp-must-card:hover .hp-must-card__img { transform: scale(1.05); }

.hp-must-card__body { min-width: 0; }
.hp-must-card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0;
}

/* Десктоп: 3 колонки */
@media (min-width: 768px) {
  .hp-must-read__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--color-border);
    padding: 0 0 0 0;
    margin: 0 1rem;
  }
  .hp-must-card {
    grid-template-columns: 1fr;
    background: var(--color-bg);
    padding: 0 0.75rem 1rem;
    border-bottom: none;
    align-items: start;
  }
  .hp-must-card__img-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    margin-bottom: 0.6rem;
  }
  .hp-must-card__title { font-size: 1rem; }
}

/* ============================================================
   АДАПТИВ HERO — мобайл уточнения
   ============================================================ */
@media (max-width: 767px) {
  /* featured body — компактнее */
  .hp-hero__featured-body { padding: 0.7rem 0.85rem 0.85rem; }
  .hp-hero-card__body { padding: 0.45rem 0.55rem 0.6rem; }
  .hp-hero-card__title { font-size: 0.82rem; }
  /* Правая колонка на мобайле — обычная 2-колонка */
  .hp-hero__right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--color-border);
    border-bottom: 1px solid var(--color-border);
  }
  .hp-hero-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    border-bottom: none;
    background: var(--color-bg);
    align-items: start;
  }
  .hp-hero-row__img-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }
  .hp-hero-row__body { padding: 0.45rem 0.55rem 0.65rem; }
  .hp-hero-row__title { font-size: 0.82rem; -webkit-line-clamp: 4; }
}

/* ============================================================
   ПРОИЗВОДИТЕЛЬНОСТЬ
   Изображения в слайдерах — явные размеры чтобы не было CLS
   ============================================================ */
.hp-slide__img-wrap,
.hp-hero-card__img-wrap,
.hp-must-card__img-wrap {
  /* contain не трогает ничего в теме */
  contain: layout paint;
}
/* ============================================================
   HOMEPAGE PATCH v1.1
   Добавить В КОНЕЦ style.css — перебивает предыдущие значения
   ============================================================ */

/* ─────────────────────────────────────────────
   1. ЕДИНЫЙ GAP 1rem ВЕЗДЕ
   ───────────────────────────────────────────── */

/* Левая колонка hero: убираем фон-разделитель, ставим gap */
.hp-hero__left {
  gap: 1rem;
  background: transparent;
  padding: 1rem;
}

/* На мобайле правая колонка (стала 2-колонкой) */
@media (max-width: 767px) {
  .hp-hero__right {
    gap: 1rem;
    background: transparent;
    padding: 1rem;
  }
}

/* Слайдер рубрик — gap между слайдами */
.hp-slider {
  gap: 1rem;
}

/* Must Read десктоп — сетка */
@media (min-width: 768px) {
  .hp-must-read__grid {
    gap: 1rem;
    background: transparent;
    margin: 0 1rem;
  }
}

/* ─────────────────────────────────────────────
   2. ЗАГОЛОВКИ — центр + размер ×2
   Базовый был 0.88–0.9rem → теперь 1.75rem
   ───────────────────────────────────────────── */

/* Левая колонка hero */
.hp-hero-card__title {
  font-size: 1.75rem;
  text-align: center;
  line-height: 1.2;
}

/* Featured центр */
.hp-hero__featured-title {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  text-align: center;
}

/* Правая колонка hero (строчные) */
.hp-hero-row__title {
  font-size: 1.75rem;
  text-align: center;
  line-height: 1.2;
}

/* Слайдер рубрик */
.hp-slide__title {
  font-size: 1.75rem;
  text-align: center;
  padding: 0 0.5rem;
  line-height: 1.2;
}

/* Must Read */
.hp-must-card__title {
  font-size: 1.75rem;
  text-align: center;
  line-height: 1.2;
}

/* Мобайл — чуть меньше чтобы влезало */
@media (max-width: 599px) {
  .hp-hero-card__title,
  .hp-hero-row__title,
  .hp-slide__title,
  .hp-must-card__title {
    font-size: 1.25rem;
  }
  .hp-hero__featured-title {
    font-size: 1.4rem;
  }
}

/* ─────────────────────────────────────────────
   3. МЕТКА РУБРИКИ — центр + размер ×2
   Базовый был 0.6rem → теперь 1.1rem
   ───────────────────────────────────────────── */
.hp-meta-cat {
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

/* Мобайл — чуть меньше */
@media (max-width: 599px) {
  .hp-meta-cat {
    font-size: 0.85rem;
  }
}

/* ─────────────────────────────────────────────
   4. BODY КАРТОЧЕК — паддинг под новый размер
   ───────────────────────────────────────────── */
.hp-hero-card__body {
  padding: 0.75rem 0.75rem 1rem;
  text-align: center;
}

.hp-hero-row__body {
  padding: 0.75rem 0.75rem 1rem;
  text-align: center;
}

/* Must Read мобайл */
.hp-must-card__body {
  text-align: center;
}

/* ─────────────────────────────────────────────
   5. ПРАВАЯ КОЛОНКА HERO — убираем старую сетку
   на мобайле теперь нет лишнего фона-разделителя
   ───────────────────────────────────────────── */
@media (max-width: 767px) {
  .hp-hero__right {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: transparent;
  }
  .hp-hero-row {
    grid-template-columns: 1fr;
    padding: 0;
    border-bottom: none;
    background: var(--color-bg);
  }
  .hp-hero-row__img-wrap {
    aspect-ratio: 3 / 4;
    width: 100%;
    height: auto;
  }
}