/* =========================================================================
   propitomcev.ru — Главные стили
   Палитра: «Шалфей» — приглушённый зелёный + кремовый + розовый акцент
   ========================================================================= */

/* ---------- Дизайн-токены ---------- */

:root {
  --accent:        #8fa688;
  --accent-dk:     #5e7459;
  --accent-soft:   #b8c8b0;
  --rose:          #c98890;
  --rose-dk:       #a85c75;
  --bg:            #f5f3ea;
  --surface:       #ffffff;
  --surface-2:     #ebe8d8;
  --border:        #d4d2bc;
  --border-soft:   #e5e2d3;
  --text:          #25291f;
  --text-muted:    #828070;
  --text-soft:     #5a5a4a;

  --font-display: 'Lora', 'PT Serif', Georgia, serif;
  --font-body:    'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container:  1280px;
  --sidebar-w:  204px;
  --gap:        16px;
  --gap-sm:     10px;
  --radius:     10px;
  --radius-sm:  6px;
  --radius-lg:  14px;
  --header-h:   46px;
}

/* ---------- Сброс и база ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
p { margin: 0 0 1em; }

/* ---------- Шапка ---------- */

.site-header {
  background: var(--accent);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  min-height: var(--header-h);
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  text-decoration: none;
}
.site-header__logo-mark {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.22);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.site-header__logo-name {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 500; color: #fff;
}
.site-header__tagline {
  font-size: 12px; color: rgba(255,255,255,0.78);
  flex: 1; margin-left: 4px;
}
.site-header__search {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.18);
  padding: 6px 12px; border-radius: 18px;
  font-size: 12px; color: rgba(255,255,255,0.92);
  min-width: 140px; transition: background 0.15s ease;
}
.site-header__search:hover { background: rgba(255,255,255,0.26); }
.site-header__search input {
  background: transparent; border: none; color: #fff;
  font: inherit; width: 100%; outline: none;
}
.site-header__search input::placeholder { color: rgba(255,255,255,0.7); }
.site-header__menu-btn {
  display: none;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.18); border-radius: 8px;
  align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
}

/* ---------- Раскладка ---------- */

.layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 22px;
  align-items: start;
}

/* ---------- Левая панель ---------- */

.sidebar {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 16px 13px 14px;
  display: flex; flex-direction: column;
  position: sticky;
  top: calc(var(--header-h) + 18px);
  max-height: calc(100vh - var(--header-h) - 36px);
  min-height: 540px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sidebar__heading {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-dk); font-weight: 600;
  padding: 0 6px 8px;
  border-bottom: 1px solid var(--border); margin-bottom: 8px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--text);
  transition: background 0.12s ease; text-decoration: none;
}
.nav-item i { font-size: 17px; color: var(--accent-dk); }
.nav-item:hover { background: rgba(255,255,255,0.55); }
.nav-item.is-active {
  background: var(--surface); font-weight: 600;
  border: 1px solid var(--border);
}
.nav-item.is-active i { color: var(--accent); }

.sidebar__cta { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.cta-block {
  background: var(--accent); color: #fff;
  padding: 13px; border-radius: 9px;
  font-size: 12px; line-height: 1.4;
  display: block; text-decoration: none;
}
.cta-block__icon { font-size: 21px; margin-bottom: 6px; }
.cta-block__title { font-family: var(--font-display); font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.cta-block__desc { color: rgba(255,255,255,0.85); font-size: 11.5px; margin-bottom: 10px; }
.cta-block__btn {
  background: rgba(255,255,255,0.22); padding: 7px 0; border-radius: 5px;
  text-align: center; font-size: 12px; font-weight: 500;
  display: block; transition: background 0.12s ease;
}
.cta-block__btn:hover { background: rgba(255,255,255,0.32); }

.tip-box {
  margin-top: 11px; background: var(--surface);
  border: 1px solid var(--border); padding: 11px 12px; border-radius: 9px;
}
.tip-box__label {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--accent-dk); font-weight: 600; margin-bottom: 6px;
}
.tip-box__label i { color: #c4961c; font-size: 14px; }
.tip-box__text { font-size: 12px; line-height: 1.5; color: var(--text); }

.sidebar__bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.sidebar__bottom-heading {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); font-weight: 600; margin-bottom: 7px; padding-left: 4px;
}
.sidebar__bottom-list {
  font-size: 12px; color: var(--text-soft); line-height: 1.85; padding-left: 4px;
}
.sidebar__bottom-list a { display: block; text-decoration: none; }
.sidebar__bottom-list a:hover { color: var(--accent-dk); }
.sidebar__bottom-list a.is-active { color: var(--accent-dk); font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 10px; margin-bottom: 18px;
}
.hero__main, .hero__side {
  border-radius: var(--radius); overflow: hidden;
  position: relative; background: #6b6c4f;
}
.hero__main { aspect-ratio: 16 / 9; min-height: 280px; }
.hero__main-bg, .hero__side-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.35); font-size: 64px;
}
.hero__main img, .hero__side img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: 0.75;
}
.hero__main-overlay, .hero__side-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px; background: rgba(31,42,31,0.82); color: #fff;
}
.hero__side-list { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.hero__side { min-height: 130px; }
.hero__side-overlay { padding: 9px 11px; }

.cat-badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 10px; padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em;
}
.hero__side-overlay .cat-badge { background: transparent; color: var(--rose); padding: 0; }

.hero__main-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 22px); font-weight: 500;
  margin: 8px 0 6px; line-height: 1.2; color: #fff;
}
.hero__main-title a { color: inherit; text-decoration: none; }
.hero__side-title {
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 500;
  margin: 3px 0 0; line-height: 1.25; color: #fff;
}
.hero__side-title a { color: inherit; text-decoration: none; }
.hero__meta { font-size: 11px; color: rgba(255,255,255,0.7); }

/* ---------- Заголовок секции ---------- */

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); padding-bottom: 8px; margin: 0 0 14px;
}
.section-head h2 { font-size: 17px; font-weight: 500; }
.section-head__more { color: var(--accent-dk); font-size: 12px; font-weight: 500; }
.section-head__more:hover { text-decoration: underline; }

/* ---------- Карточки ---------- */

.cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-bottom: 18px;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex; flex-direction: column; text-decoration: none;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(94,116,89,0.12); }
.card__media {
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); font-size: 36px; background: #6b6c4f;
  overflow: hidden; position: relative;
}
.card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.4s ease;
}
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 12px 13px 13px; display: flex; flex-direction: column; flex: 1; }
.card__cat {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--accent-dk); font-weight: 600;
}
.card__title {
  font-family: var(--font-display); font-size: 14.5px; font-weight: 500;
  line-height: 1.25; margin: 5px 0 0; color: var(--text);
}
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--accent-dk); }
.card__meta { margin-top: auto; padding-top: 9px; font-size: 11px; color: var(--text-muted); }

/* ---------- Пагинация ---------- */

.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 22px 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text); background: var(--surface);
  text-decoration: none; transition: border-color 0.15s, background 0.15s;
}
.pagination a:hover { border-color: var(--accent-dk); color: var(--accent-dk); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Лид-магнит ---------- */

.lead-magnet {
  background: var(--accent); border-radius: var(--radius);
  padding: 16px 18px; display: flex; gap: 16px; align-items: center;
  margin: 4px 0 18px; color: #fff;
}
.lead-magnet__icon {
  width: 46px; height: 46px; background: rgba(255,255,255,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.lead-magnet__body { flex: 1; min-width: 0; }
.lead-magnet__title { font-family: var(--font-display); font-size: 15px; font-weight: 500; line-height: 1.25; }
.lead-magnet__desc { font-size: 12px; color: rgba(255,255,255,0.85); margin-top: 4px; }
.lead-magnet__btn {
  background: var(--rose); color: #fff; padding: 9px 16px; border-radius: 6px;
  font-size: 12.5px; font-weight: 600; flex-shrink: 0;
  text-decoration: none; display: inline-block; transition: background 0.15s ease;
}
.lead-magnet__btn:hover { background: var(--rose-dk); }

/* ---------- Виджеты (индекс) ---------- */

.widgets-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 15px; }
.widget__heading {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); border-bottom: 2px solid var(--accent);
  padding-bottom: 6px; margin-bottom: 10px; font-weight: 600;
}
.widget__intro { font-size: 12px; color: var(--text-muted); margin-bottom: 11px; line-height: 1.45; }
.widget__list { display: flex; flex-direction: column; }
.widget__item {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border-soft);
  text-decoration: none; color: inherit;
}
.widget__item:last-child { border-bottom: none; }
.widget__item:hover .widget__item-text { color: var(--accent-dk); }
.widget__item-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); font-size: 16px; flex-shrink: 0;
}
.widget__item-text { font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.widget__item-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.socials { display: flex; gap: 9px; justify-content: center; }
.social {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 19px; transition: transform 0.15s ease; text-decoration: none;
}
.social:hover { transform: translateY(-2px); }
.social--tg  { background: var(--accent); }
.social--vk  { background: #0077ff; }
.social--ok  { background: #ee8208; }
.social--rss { background: var(--text-muted); }

/* ---------- Общие страницы ---------- */

.breadcrumbs {
  font-size: 12px; color: var(--text-muted);
  display: flex; gap: 7px; align-items: center;
  flex-wrap: wrap; margin-bottom: 16px;
}
.breadcrumbs a { color: var(--accent-dk); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs__sep { color: var(--border); }

.page-title { font-size: clamp(24px, 3vw, 30px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; }
.page-updated { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }
.page-lead { font-family: var(--font-display); font-size: 16px; color: var(--text-soft); line-height: 1.65; margin-bottom: 22px; }
.page-content h2 { font-size: 19px; margin: 26px 0 10px; }
.page-content p { font-family: var(--font-display); font-size: 14.5px; color: var(--text); line-height: 1.7; margin: 0 0 12px; }
.page-content ul, .page-content ol { font-family: var(--font-display); font-size: 14.5px; line-height: 1.65; padding-left: 22px; margin: 6px 0 14px; }
.page-content li { padding: 3px 0; }
.page-content a.inline-link { color: var(--accent-dk); border-bottom: 1px solid var(--accent-dk); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 22px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 14px; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--accent-dk); line-height: 1; letter-spacing: -0.02em; }
.stat__label { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.contact-card__icon { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); color: var(--accent-dk); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 11px; }
.contact-card__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; }
.contact-card__value { font-family: var(--font-display); font-size: 15px; font-weight: 500; margin: 4px 0 5px; color: var(--accent-dk); }
.contact-card__desc { font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--border); border-radius: 7px;
  padding: 10px 12px; font-family: inherit; font-size: 13.5px; color: var(--text);
  width: 100%; outline: none; transition: border-color 0.15s ease, background 0.15s ease;
  appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: var(--surface); }
.field textarea { min-height: 100px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.form-actions__hint { font-size: 11.5px; color: var(--text-muted); flex: 1; line-height: 1.4; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; border: none;
  padding: 10px 22px; border-radius: 7px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: background 0.15s ease; font-family: inherit; text-decoration: none;
}
.btn:hover { background: var(--accent-dk); }
.btn--secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn--secondary:hover { background: var(--surface-2); }

.note-box { margin-top: 22px; padding: 14px 18px; background: var(--surface-2); border-radius: var(--radius); display: flex; gap: 13px; align-items: center; }
.note-box__icon { font-size: 22px; color: var(--accent-dk); flex-shrink: 0; }
.note-box__text { font-family: var(--font-display); font-size: 13.5px; color: var(--text-soft); line-height: 1.55; }

.alert-box { background: var(--surface); border-left: 3px solid var(--rose); padding: 13px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 4px 0 18px; }
.alert-box__title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--rose-dk); font-weight: 600; margin-bottom: 6px; }
.alert-box__text { font-family: var(--font-display); font-size: 13.5px; color: var(--text); line-height: 1.6; }

/* ---------- Форма CF (старые классы) ---------- */

.cf-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; padding: .85rem 1.1rem; border-radius: 8px; font-size: .95rem; margin-bottom: 1.25rem; }
.cf-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; padding: .85rem 1.1rem; border-radius: 8px; font-size: .95rem; margin-bottom: 1.25rem; }

/* ---------- 404 ---------- */

.error-block { background: var(--surface-2); border-radius: var(--radius-lg); padding: 44px 28px 36px; text-align: center; margin-bottom: 22px; }
.error-block__code { font-family: var(--font-display); font-size: 110px; font-weight: 500; line-height: 1; color: var(--accent); letter-spacing: -0.05em; margin: 0; }
.error-block__code i { color: var(--accent-dk); font-size: 76px; vertical-align: 4px; }
.error-block__title { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin: 10px 0 8px; letter-spacing: -0.02em; }
.error-block__desc { font-family: var(--font-display); font-size: 14px; color: var(--text-soft); line-height: 1.55; max-width: 460px; margin: 0 auto 18px; }
.error-block__actions { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }
.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.cat-tile { display: flex; align-items: center; gap: 10px; padding: 10px 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; transition: background 0.15s ease, transform 0.15s ease; text-decoration: none; color: var(--text); }
.cat-tile:hover { background: var(--surface-2); transform: translateY(-1px); }
.cat-tile i { font-size: 18px; color: var(--accent-dk); }
.cat-tile__count { margin-left: auto; font-size: 11px; color: var(--text-muted); }

/* ---------- Футер ---------- */

.site-footer { background: var(--surface); border-top: 3px solid var(--accent); padding: 28px 0 16px; margin-top: 28px; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.site-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 22px; }
.site-footer__col h4 { font-family: var(--font-body); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-dk); font-weight: 600; margin: 0 0 12px; }
.site-footer__col a { display: block; color: var(--text); font-size: 13px; padding: 4px 0; text-decoration: none; }
.site-footer__col a:hover { color: var(--accent-dk); }
.site-footer__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.site-footer__brand-mark { width: 28px; height: 28px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.site-footer__brand-name { font-family: var(--font-display); font-size: 16px; font-weight: 500; }
.site-footer__about { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; max-width: 360px; }
.site-footer__bottom { border-top: 1px solid var(--border); padding-top: 14px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; gap: 10px; }
.site-footer__bottom-links { display: flex; gap: 16px; }
.site-footer__bottom-links a { color: var(--text-muted); text-decoration: none; }
.site-footer__bottom-links a:hover { color: var(--accent-dk); }

/* =========================================================================
   Адаптив
   ========================================================================= */

@media (max-width: 1023px) {
  .site-header { padding: 9px 14px; gap: 10px; }
  .site-header__menu-btn { display: flex; }
  .site-header__tagline { display: none; }
  .site-header__search { min-width: 0; padding: 6px 10px; }
  .site-header__search input { width: 100px; }

  .layout { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 16px; }
  .layout > main, .layout > #main-content { min-width: 0; }

  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 280px; height: 100vh; max-height: none; min-height: 0;
    border-radius: 0; z-index: 100;
    transform: translateX(-100%); transition: transform 0.25s ease;
    box-shadow: 6px 0 20px rgba(0,0,0,0.12);
  }
  .sidebar.is-open { transform: translateX(0); }
  .drawer-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(31,42,31,0.5); z-index: 99;
    opacity: 0; transition: opacity 0.25s ease;
  }
  .drawer-overlay.is-visible { display: block; opacity: 1; }

  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__main { aspect-ratio: 16 / 10; min-height: 0; }
  .hero__side-list { grid-template-rows: auto auto; }
  .hero__side { aspect-ratio: 16 / 10; min-height: 0; }
  .cards, .cards--3, .post-grid, .related-grid { grid-template-columns: minmax(0, 1fr); }
  .widgets-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 22px; }
}

@media (max-width: 600px) {
  .cards, .cards--3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; gap: 18px; }
  .site-footer__bottom { flex-direction: column; }
  .lead-magnet { flex-direction: column; align-items: flex-start; }
  .lead-magnet__btn { width: 100%; text-align: center; }
  .error-block__code { font-size: 84px; }
  .error-block__code i { font-size: 56px; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   Compat — article / category / search / tag templates
   ========================================================================= */

.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.breadcrumbs ol li { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.breadcrumbs ol li a { color: var(--accent-dk); text-decoration: none; }
.breadcrumbs ol li a:hover { text-decoration: underline; }
.breadcrumbs ol li[aria-current] { color: var(--text-muted); }
.breadcrumbs ol li:not(:last-child)::after { content: '›'; color: var(--border); }

.page-header { margin-bottom: 20px; }
.page-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.article { max-width: 800px; }
.article-header { margin-bottom: 22px; }
.article-category { display: inline-block; background: var(--accent); color: #fff; font-size: 10px; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 12px; text-decoration: none; }
.article-category:hover { background: var(--accent-dk); }
.article-title { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.meta-author, .meta-updated, .meta-reading-time, .meta-views { display: flex; align-items: center; gap: 4px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.tag { display: inline-block; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); font-size: 11px; padding: 3px 9px; border-radius: 12px; text-decoration: none; transition: background 0.15s; }
.tag:hover { background: var(--accent-soft); color: var(--accent-dk); border-color: var(--accent-soft); }
.tag--active { background: var(--accent-soft); color: var(--accent-dk); border-color: var(--accent-soft); }

.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.article-cover img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.article-gallery { position: relative; }
.gallery-track { display: flex; transition: transform 0.35s ease; overflow: hidden; border-radius: var(--radius); }
.gallery-slide { min-width: 100%; }
.gallery-slide img { width: 100%; border-radius: 0; margin: 0; }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.45); color: #fff; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; border: none; transition: background 0.15s; }
.gallery-btn:hover { background: rgba(0,0,0,0.65); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.gallery-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: background 0.15s; }
.gallery-dot.active { background: #fff; }

.article-body { font-family: var(--font-display); font-size: 15px; line-height: 1.75; color: var(--text); }
.article-body h2 { font-size: 20px; margin: 28px 0 12px; }
.article-body h3 { font-size: 17px; margin: 20px 0 8px; }
.article-body p { margin: 0 0 14px; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 8px 0 16px; }
.article-body li { padding: 3px 0; line-height: 1.65; }
.article-body a { color: var(--accent-dk); border-bottom: 1px solid var(--accent-soft); }
.article-body a:hover { color: var(--accent); }
.article-body img { max-width: 100%; border-radius: 8px; margin: 16px 0; display: block; }
.article-body blockquote { border-left: 3px solid var(--accent); margin: 20px 0; padding: 12px 18px; background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--text-soft); }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.article-body th, .article-body td { padding: 10px 12px; border: 1px solid var(--border); }
.article-body th { background: var(--surface-2); font-weight: 600; }
.article-body strong { font-weight: 600; }

.article-toc { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px; }
.toc-title { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; }
.article-toc ol { padding-left: 18px; margin: 0; }
.article-toc li { font-size: 13px; color: var(--text-soft); padding: 3px 0; }

.related-posts { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.related-title { font-size: 17px; font-weight: 500; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.related-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(94,116,89,0.12); }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.related-card-body { padding: 10px 12px; }
.related-card-title { font-family: var(--font-display); font-size: 13px; font-weight: 500; line-height: 1.3; margin: 0 0 4px; }
.related-card-excerpt { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; margin: 0; }
.article-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.article-tags-footer { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--text-muted); }

.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(94,116,89,0.12); }
.card-img-link { display: block; aspect-ratio: 16/10; overflow: hidden; position: relative; text-decoration: none; }
.card-img-placeholder { position: absolute; inset: 0; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.placeholder-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.card-img-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .card-img-link img { transform: scale(1.04); }
.card-body { padding: 12px 13px 13px; display: flex; flex-direction: column; flex: 1; }
.card-category { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent-dk); font-weight: 600; text-decoration: none; display: block; margin-bottom: 4px; }
.card-title { font-family: var(--font-display); font-size: 14.5px; font-weight: 500; line-height: 1.25; margin: 0; color: var(--text); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--accent-dk); }
.card-excerpt { font-size: 12.5px; color: var(--text-soft); line-height: 1.5; margin: 6px 0 0; }
.card-meta { margin-top: auto; padding-top: 9px; font-size: 11px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; }

.infeed-ad { position: relative; text-align: center; background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius); padding: 12px; }
.ad-slot-label { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 6px; }
.ad-banner-top { text-align: center; padding: 8px 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
.ad-slot { position: relative; text-align: center; }

.search-form-full { display: flex; gap: 10px; margin-bottom: 20px; }
.search-form-full input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: 14px; color: var(--text); background: var(--surface); outline: none; }
.search-form-full input:focus { border-color: var(--accent); }
.search-summary { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.post-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.post-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.search-snippet { font-size: 13px; color: var(--text-soft); line-height: 1.55; margin: 6px 0 0; }
.search-snippet mark { background: rgba(143,166,136,0.25); color: inherit; border-radius: 2px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 14px; }
.empty-state a { color: var(--accent-dk); }
.empty-state p { margin: 0 0 16px; }

.lang-switcher { display: flex; gap: 6px; margin-bottom: 10px; }
.lang-btn { padding: 4px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 11px; font-weight: 600; cursor: pointer; background: var(--surface); color: var(--text-muted); }
.lang-btn--active { background: var(--accent); color: #fff; border-color: var(--accent); }
.lang-btn:hover { border-color: var(--accent-dk); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.highlight-box { background: var(--surface-2); border-left: 3px solid var(--accent); padding: 1rem 1.25rem; margin: 1.25rem 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .93rem; color: var(--text-soft); line-height: 1.6; }

.ticker-bar { background: var(--accent-dk); color: #fff; font-size: 12px; padding: 6px 20px; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 14px; }
.ticker-label { font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; flex-shrink: 0; }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-text { white-space: nowrap; animation: ticker 20s linear infinite; display: inline-block; }
@keyframes ticker { from { transform: translateX(100%); } to { transform: translateX(-100%); } }

.cf-turnstile { margin-bottom: 12px; }

@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: flex-start; }
}
