/* SadMastery — единый файл стилей */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f4f6f1;
  --surface: #ffffff;
  --ink: #1d2a1f;
  --ink-soft: #4a5a4d;
  --muted: #7a8a7d;
  --primary: #2f7a3a;
  --primary-dark: #225a2a;
  --accent: #e8a534;
  --line: #e3e7dd;
  --shadow: 0 6px 24px rgba(30, 60, 35, 0.08);
  --shadow-hover: 0 14px 40px rgba(30, 60, 35, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 800; font-size: 26px;
  color: var(--ink); display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid; place-items: center; color: #fff; font-size: 20px;
  box-shadow: 0 4px 14px rgba(47,122,58,0.35);
}
.logo small { display: block; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .15em; text-transform: uppercase; }

.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--primary); }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 90px 0 110px;
  background: linear-gradient(135deg, #2f7a3a 0%, #1f5028 60%, #14361b 100%);
  color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1466692476868-aef1dfb1e735?w=1600&q=80') center/cover;
  opacity: 0.18;
}
.hero-inner { position: relative; max-width: 820px; }
.hero .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 60px); line-height: 1.1; font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 span { color: var(--accent); font-style: italic; }
.hero p { font-size: 19px; opacity: .9; max-width: 640px; }

/* ===== SECTION ===== */
.section { padding: 70px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.section-head h2 {
  font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 700; color: var(--ink);
}
.section-head p { color: var(--muted); max-width: 460px; }

/* ===== CARDS GRID ===== */
.cards {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-img { aspect-ratio: 16/10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.card-body h3 {
  font-family: 'Playfair Display', serif; font-size: 22px; line-height: 1.25; margin-bottom: 12px; color: var(--ink);
}
.card-body p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.card-link {
  margin-top: 18px; font-weight: 600; color: var(--primary-dark); display: inline-flex; align-items: center; gap: 6px;
}
.card-link::after { content: '→'; transition: transform .25s ease; }
.card:hover .card-link::after { transform: translateX(5px); }

/* ===== ARTICLE LAYOUT ===== */
.article-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 50px;
  padding: 50px 0 70px;
}
.article {
  background: var(--surface); border-radius: var(--radius);
  padding: 40px 48px; box-shadow: var(--shadow);
}
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.article h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15; margin-bottom: 24px; color: var(--ink);
}
.article h2 {
  font-family: 'Playfair Display', serif; font-size: 28px;
  margin: 36px 0 14px; color: var(--ink);
}
.article h3 { font-size: 21px; margin: 28px 0 10px; color: var(--ink); }
.article p { margin-bottom: 18px; color: var(--ink-soft); font-size: 17px; }
.article ul, .article ol { margin: 0 0 22px 22px; color: var(--ink-soft); }
.article li { margin-bottom: 8px; font-size: 17px; }
.article figure { margin: 30px 0; }
.article figure img { border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.article figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; font-style: italic; }
.article blockquote {
  border-left: 4px solid var(--primary); background: #f0f5ec;
  padding: 18px 22px; margin: 26px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--ink);
}

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: var(--surface); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow);
}
.widget h4 {
  font-family: 'Playfair Display', serif; font-size: 20px; margin-bottom: 16px; color: var(--ink);
  padding-bottom: 12px; border-bottom: 2px solid var(--line);
}
.widget ul { list-style: none; }
.widget li { margin-bottom: 12px; }
.widget li a {
  display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.4;
  padding: 10px 12px; border-radius: 8px; transition: background .2s, color .2s;
}
.widget li a:hover { background: #f0f5ec; color: var(--primary-dark); }

/* ===== ADS ===== */
.ad {
  background: linear-gradient(135deg, #fffaf0, #fff4dd);
  border: 1px dashed #e0c580;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ad-header-wrap { padding: 14px 0; background: #eef2e8; }
.ad-sidebar { background: linear-gradient(135deg, #fffaf0, #fff4dd); border: 1px dashed #e0c580; border-radius: var(--radius-sm); padding: 28px 18px; text-align: center; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* ===== FOOTER ===== */
.site-footer {
  background: #15291a; color: #cdd5cd; margin-top: 60px;
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.site-footer h5 {
  font-family: 'Playfair Display', serif; color: #fff; font-size: 18px; margin-bottom: 16px;
}
.site-footer p { color: #9bab9d; font-size: 14px; line-height: 1.7; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cdd5cd; font-size: 14px; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #2a3d2e; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: #7a8a7d; font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; }
  .article { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .hero { padding: 60px 0 70px; }
  .section { padding: 50px 0; }
  .section-head h2 { font-size: 30px; }
}
@media (max-width: 560px) {
  .header-inner { flex-direction: column; gap: 14px; }
  .nav { flex-wrap: wrap; justify-content: center; }
  .logo { font-size: 22px; }
}
