/* 23.10: страницы, которые рисует WordPress, — проекты домов, статьи, 404,
   поиск. Своей вёрстки у них не было: текст от края до края экрана, вместо
   шапки — одна ссылка. Цвета и шрифты — переменные из styles.css (он
   подключён раньше), поэтому тёмная тема по настройке системы работает и тут. */

body { margin: 0; background: var(--c-page); color: var(--c-ink); font-family: Manrope, system-ui, sans-serif; }
/* подвал внизу экрана, даже когда текста мало («Статьи скоро появятся») */
body { min-height: 100vh; display: flex; flex-direction: column; }
.wp-content-page { flex: 1 0 auto; }

/* шапка */
.wp-site-header { position: sticky; top: 0; z-index: 20; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.wp-site-header__in { max-width: var(--wrap); margin: 0 auto; padding: 10px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.wp-site-header__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-headline); text-decoration: none; font-family: Benzin, Manrope, sans-serif; font-size: 18px; }
.wp-site-header__brand img { width: 44px; height: 44px; }
.wp-site-header__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; }
.wp-site-header__nav a { padding: 6px 0; border-bottom: 2px solid transparent; color: var(--c-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.wp-site-header__nav a:hover,
.wp-site-header__nav a:focus-visible { color: var(--c-headline); border-bottom-color: var(--green); }

/* текст страницы */
.wp-content-page { padding: 28px 20px 56px; }
.wp-content-page__inner { max-width: 860px; margin: 0 auto; }
.wp-content-page h1 { margin: 8px 0 18px; color: var(--c-headline); font-family: Benzin, Manrope, sans-serif; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; }
.wp-content-page h2 { margin: 30px 0 12px; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.25; }
.wp-content-page h3 { margin: 24px 0 10px; font-size: 19px; }
.wp-content-page p,
.wp-content-page li { font-size: 17px; line-height: 1.65; }
.wp-content-page img { max-width: 100%; height: auto; border-radius: 12px; }
.wp-content-page a { color: var(--c-headline); }
.wp-nazad { margin: 0 0 6px; font-size: 15px; }
.wp-nazad a { font-weight: 600; text-decoration: none; }
.project-single__image,
.statya__oblozhka { margin: 0 0 22px; }
.project-single__image img,
.statya__oblozhka img { display: block; width: 100%; height: auto; }
.wp-content-page .statya__data { margin: -8px 0 18px; color: var(--c-ink-muted); font-size: 14px; }

/* список статей */
.stati-spisok { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 10px; }
.stati-spisok__statya { padding: 16px 18px 18px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); box-shadow: var(--shadow-s); }
.stati-spisok__kartinka img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 12px; border-radius: 12px; }
.wp-content-page .stati-spisok__statya h2 { margin: 0 0 6px; font-size: 19px; }
.stati-spisok__statya h2 a { color: var(--c-ink); text-decoration: none; }
.stati-spisok__statya h2 a:hover { color: var(--c-headline); }
.wp-content-page .stati-spisok__statya .statya__data { margin: 0 0 8px; }
.wp-content-page .stati-spisok__statya p { margin: 0; font-size: 15px; }
.stati-stranicy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.stati-stranicy .page-numbers { padding: 8px 14px; border: 1px solid var(--c-line); border-radius: 10px; text-decoration: none; }
.stati-stranicy .current { background: var(--green-tint); }
.stati-pusto { color: var(--c-ink-muted); }

/* подвал */
.wp-site-footer { background: var(--c-surface); border-top: 1px solid var(--c-line); }
.wp-site-footer__in { max-width: var(--wrap); margin: 0 auto; padding: 22px 20px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; color: var(--c-ink-muted); font-size: 14px; }
.wp-site-footer__in p { margin: 0; }
.wp-site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.wp-site-footer nav a { color: var(--c-ink-muted); text-decoration: none; }
.wp-site-footer nav a:hover { color: var(--c-headline); }

/* телефон: меню в одну строку с прокруткой вбок внутри шапки, а не страницы */
@media (max-width: 640px) {
  .wp-site-header__in { padding: 8px 16px; gap: 4px 16px; }
  .wp-site-header__nav { width: 100%; margin-left: 0; flex-wrap: nowrap; gap: 18px; overflow-x: auto; padding-bottom: 2px; }
  .wp-site-header__nav a { white-space: nowrap; font-size: 14px; }
  .wp-content-page { padding: 20px 16px 44px; }
  .wp-content-page p,
  .wp-content-page li { font-size: 16px; }
}
