/*
 * Вёрстка донора. Оригинальное оформление жило в файлах, которые WordPress
 * генерировал под этот сайт (Astra Pro, Spectra, Elementor), — архив их не
 * сохранил, и вернуть их неоткуда. Здесь минимум, который делает страницы
 * читаемыми: колонка нормальной ширины, шапка, отступы между записями.
 */
:root { --w: 1140px; --ink: #1c2024; --muted: #5b636b; --line: #e6e8ea; --brand: #1a56db; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.7 -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { text-decoration: underline; }

/* Шапка: логотип слева, меню справа */
.site-header, .ast-primary-header-bar, #masthead {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.ast-primary-header-bar .site-primary-header-wrap,
.main-header-bar .ast-container,
#masthead .ast-container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--w); margin: 0 auto; padding: 14px 20px;
}
.custom-logo-link img, .site-logo-img img { max-height: 46px; width: auto; }
.site-title { font-size: 20px; font-weight: 700; margin: 0; }
.site-title a { color: var(--ink); text-decoration: none; }

.main-navigation ul, .ast-nav-menu, #ast-desktop-header ul.main-header-menu {
  display: flex; flex-wrap: wrap; gap: 22px;
  list-style: none; margin: 0; padding: 0;
}
.main-navigation a, .ast-nav-menu a { color: var(--ink); text-decoration: none; font-weight: 500; }
.main-navigation a:hover, .ast-nav-menu a:hover { color: var(--brand); }
.ast-mobile-menu-buttons, .ast-mobile-header-wrap { display: none; }

/* Основная колонка */
.site-content, #content, #primary, .ast-container, .entry-content, .site-main {
  max-width: var(--w); margin-left: auto; margin-right: auto;
}
#content { padding: 32px 20px 56px; }
.ast-container { padding-left: 20px; padding-right: 20px; }

/* Список записей */
article, .ast-article-post, .ast-grid-common-col, .post {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.entry-title { font-size: 26px; line-height: 1.3; margin: 6px 0 10px; }
.entry-title a { color: var(--ink); text-decoration: none; }
.entry-title a:hover { color: var(--brand); }
.entry-meta, .ast-taxonomy-container, .posted-on, .cat-links {
  color: var(--muted); font-size: 14px;
}
.entry-meta a, .ast-taxonomy-container a { color: var(--muted); }
.post-thumb img, .ast-article-post img { border-radius: 8px; }

h1 { font-size: 34px; line-height: 1.25; }
h2 { font-size: 26px; line-height: 1.3; margin-top: 1.6em; }
h3 { font-size: 21px; margin-top: 1.4em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }
blockquote { margin: 1.4em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--line); color: var(--muted); }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* Подвал */
.site-footer, #colophon {
  border-top: 1px solid var(--line);
  margin-top: 40px; padding: 28px 20px 40px;
  color: var(--muted); font-size: 14px;
}
.site-footer .ast-container, #colophon .ast-container { max-width: var(--w); margin: 0 auto; }
.site-footer a, #colophon a { color: var(--muted); }

@media (max-width: 782px) {
  body { font-size: 16px; }
  .entry-title { font-size: 22px; }
  h1 { font-size: 27px; }
  .main-navigation ul, .ast-nav-menu { gap: 14px; }
}
