/* Ajilbab — восстановление из веб-архива (снимок 2013-08-05) */
:root {
  --brand: #2e7d5b;
  --brand-dark: #1f5b42;
  --accent: #e08a1e;
  --ink: #2a2a2a;
  --ink-soft: #5c5c5c;
  --line: #e2e2e2;
  --bg: #f6f5f1;
  --font-head: "Merriweather", Georgia, serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1040px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.3; margin: 0; font-family: var(--font-head); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
html { scroll-padding-top: 72px; }

.site-header { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); position: sticky; top: 0; z-index: 40; }
.site-header__inner { display: flex; align-items: center; gap: 18px; min-height: 62px; }
.brand { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--brand-dark); text-decoration: none; }
.nav-toggle { margin-left: auto; display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
.nav-toggle__bar { display: block; height: 2px; background: var(--brand-dark); margin: 5px 0; }
.primary-nav { margin-left: auto; }
.primary-nav__list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav__list a { display: block; padding: 10px 14px; color: var(--brand-dark); font-family: var(--font-body); font-weight: 600; text-decoration: none; }
.primary-nav__list a:hover { color: var(--accent); text-decoration: none; }

.hero { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; padding: 54px 0; }
.hero h1 { font-size: clamp(28px, 4.5vw, 42px); }
.hero p { max-width: 60ch; margin: 16px 0 0; font-size: 18px; color: #dcefe4; font-family: var(--font-body); }

.section { padding: 46px 0; }
.section-title { font-size: clamp(21px, 2.6vw, 26px); color: var(--brand-dark); margin-bottom: 22px; padding-bottom: 10px; border-bottom: 3px solid var(--accent); display: inline-block; }

.posts { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.post { background: var(--bg); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; display: grid; grid-template-columns: 240px 1fr; gap: 0; }
.post__media { margin: 0; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 20px 24px; }
.post__body .post__title { margin-bottom: 10px; }
.post__title { font-size: 20px; color: var(--brand-dark); margin-bottom: 10px; }
.post__excerpt { margin: 0; font-family: var(--font-body); color: var(--ink-soft); }

.site-footer { background: var(--brand-dark); color: #cfe3d8; text-align: center; padding: 24px 0; }
.site-footer__brand { margin: 0 0 6px; color: #fff; font-family: var(--font-head); font-weight: 700; }
.copyright { margin: 0; font-size: 14px; font-family: var(--font-body); }

@media (max-width: 640px) {
  .post { grid-template-columns: 1fr; }
  .post__media img { aspect-ratio: 16/9; }
}
@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .primary-nav { flex-basis: 100%; margin: 0; display: none; }
  .primary-nav.is-open { display: block; }
  .site-header__inner { flex-wrap: wrap; }
  .primary-nav__list { flex-direction: column; padding: 6px 0 12px; }
}
