/* ============================================================
   Template 10 — Landscape / Garden
   Layout: floating pill header over curved hero · zig-zag rows
           sticky chapter bar · centred single column · margin notes
   Palette: deep moss + lime + terracotta on cream paper
   Fonts: Unbounded (display) + Manrope (text)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #1a1f1a;
  --ink-mid:    #3a4238;
  --muted:      #6f7468;
  --paper:      #f7f5ee;
  --card:       #fffdf7;
  --sand:       #ebe5d2;
  --line:       #ddd6c0;
  --moss:       #5d7a2e;
  --moss-dark:  #44591f;
  --moss-light: #e8eed9;
  --lime:       #b5d334;
  --clay:       #b8643a;
  --clay-light: #f7e6dc;
  --display:    'Unbounded', 'Arial Black', sans-serif;
  --body:       'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--paper); color: var(--ink); line-height: 1.7; overflow-x: hidden; }
a { color: var(--moss-dark); text-decoration: none; }
a:hover { color: var(--moss); text-decoration: underline; }

/* ============================================================
   HEADER — floating pill, sticky, overlaps hero
   ============================================================ */
#masthead { position: sticky; top: 12px; z-index: 100; padding: 0 20px; }
.pill {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(22, 28, 19, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 9px 10px 9px 26px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  color: #fff;
  white-space: nowrap;
}
.logo b { color: var(--lime); font-weight: 700; }
.logo:hover { text-decoration: none; opacity: 0.92; }
.pill-nav { display: flex; gap: 2px; }
.pill-nav a {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255,255,255,0.66);
  padding: 8px 15px;
  border-radius: 999px;
}
.pill-nav a:hover { background: rgba(255,255,255,0.09); color: #fff; text-decoration: none; }
.pill-cta {
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 20px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-cta:hover { background: #c6e24a; color: var(--ink); text-decoration: none; }

/* ============================================================
   HERO — dark moss, decorative circles, curved bottom
   ============================================================ */
.hero {
  position: relative;
  margin-top: -70px;
  padding: 156px 24px 120px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 22%, rgba(181,211,52,0.24) 0 110px, transparent 111px),
    radial-gradient(circle at 93% 64%, rgba(181,211,52,0.11) 0 190px, transparent 191px),
    radial-gradient(circle at 8% 92%, rgba(255,255,255,0.05) 0 170px, transparent 171px),
    linear-gradient(160deg, #121a0f 0%, #223419 58%, #38511f 100%);
}
.hero.compact { padding: 138px 24px 96px; }
.hero::after {
  content: '';
  position: absolute;
  left: -6%; right: -6%; bottom: -1px;
  height: 72px;
  background: var(--paper);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 880px;
  margin-bottom: 20px;
}
.hero.compact h1 { font-size: 2.1rem; }
.hero-lead { max-width: 640px; font-size: 1.08rem; color: rgba(255,255,255,0.72); line-height: 1.7; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; font-size: 0.86rem; color: rgba(255,255,255,0.62); }
.hero-meta b { color: #fff; font-weight: 700; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 13px 26px;
  border-radius: 999px;
}
.btn.solid { background: var(--lime); color: var(--ink); }
.btn.solid:hover { background: #c6e24a; color: var(--ink); text-decoration: none; }
.btn.ghost { border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; text-decoration: none; }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 30px; }
.chips a {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-mid);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 999px;
}
.chips a:hover { background: var(--moss); border-color: var(--moss); color: #fff; text-decoration: none; }
.chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ============================================================
   HOME — zig-zag rows
   ============================================================ */
.rows { display: flex; flex-direction: column; gap: 26px; padding-bottom: 70px; }
.row {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.row:hover { box-shadow: 0 16px 36px rgba(26,31,26,0.10); transform: translateY(-2px); }
.row:nth-child(even) .row-art { order: 2; }

.row-art {
  position: relative;
  min-height: 250px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.16) 0 70px, transparent 71px),
    radial-gradient(circle at 70% 90%, rgba(255,255,255,0.08) 0 130px, transparent 131px),
    linear-gradient(150deg, #4d6a24, #6f9034);
}
.row:nth-child(3n+2) .row-art {
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,0.14) 0 80px, transparent 81px),
    radial-gradient(circle at 80% 88%, rgba(255,255,255,0.08) 0 120px, transparent 121px),
    linear-gradient(150deg, #9c4f2a, #c7764a);
}
.row:nth-child(3n) .row-art {
  background:
    radial-gradient(circle at 78% 22%, rgba(181,211,52,0.2) 0 80px, transparent 81px),
    radial-gradient(circle at 18% 92%, rgba(255,255,255,0.06) 0 140px, transparent 141px),
    linear-gradient(150deg, #151c12, #2c4120);
}
.row.lead .row-art { min-height: 340px; }
.row-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 4px 13px;
  border-radius: 999px;
}
.row-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 4.6rem;
  line-height: 0.9;
  opacity: 0.3;
}
.row-body { padding: 32px 34px; display: flex; flex-direction: column; justify-content: center; }
.row-date { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--clay); margin-bottom: 10px; }
.row-title {
  font-family: var(--body);
  font-weight: 800;
  font-size: 1.34rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.row.lead .row-title { font-size: 1.7rem; }
.row-title a { color: var(--ink); }
.row-title a:hover { color: var(--moss); text-decoration: none; }
.row-excerpt { font-size: 0.95rem; color: var(--muted); margin-bottom: 18px; }
.row-more { font-weight: 800; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--moss-dark); }
.row-more::after { content: ' →'; }

/* Topics band */
.topics {
  background: var(--sand);
  border-radius: 24px;
  padding: 34px 36px;
  margin-bottom: 70px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
}
.topics h2 { font-family: var(--display); font-size: 1.1rem; font-weight: 600; flex: 0 0 auto; }
.topics .chips { margin: 0; }

/* ============================================================
   ARTICLE
   ============================================================ */
.facts {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: -44px auto 34px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 10px 24px rgba(26,31,26,0.07);
}
.fact-k { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fact-v { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--moss-dark); margin-top: 4px; line-height: 1.25; }

/* Chapter bar */
.chapter-bar {
  position: sticky;
  top: 80px;
  z-index: 60;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  background: rgba(255,253,247,0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px;
  margin: 0 auto 40px;
  max-width: 1052px;
  scrollbar-width: thin;
}
.chapter-bar a {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-mid);
  padding: 7px 15px;
  border-radius: 999px;
  white-space: nowrap;
}
.chapter-bar a:hover { background: var(--moss); color: #fff; text-decoration: none; }

/* Content column */
.entry-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-mid);
  counter-reset: ch;
}
.entry-content p { margin-bottom: 1.3em; }
.entry-content > p:first-child { font-size: 1.2rem; line-height: 1.7; color: var(--ink); font-weight: 500; }

.entry-content h2 {
  counter-increment: ch;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 2.5em 0 0.7em;
  scroll-margin-top: 150px;
}
.entry-content h2::before {
  content: 'Глава ' counter(ch);
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 6px;
}
.entry-content h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--moss-dark);
  margin: 1.7em 0 0.4em;
}
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin-bottom: 1.3em; }
.entry-content li { margin-bottom: 0.45em; }
.entry-content strong { font-weight: 800; color: var(--ink); }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0 0 2em;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}
.entry-content th {
  background: var(--moss-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 11px 14px;
}
.entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content tr:last-child td { border-bottom: none; }
.entry-content tr:nth-child(even) td { background: var(--paper); }

/* Margin note */
.margin-note {
  background: var(--clay-light);
  border-left: 4px solid var(--clay);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 1.8em 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6b3418;
}
.margin-note b {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 4px;
}
@media (min-width: 1280px) {
  .margin-note {
    float: left;
    clear: left;
    width: 210px;
    margin: 6px 0 14px -246px;
    font-size: 0.82rem;
    border-radius: 12px;
    border: 1px solid #ecc6b1;
    border-left: 4px solid var(--clay);
  }
}

/* Highlight box */
.green-box {
  background: var(--moss-light);
  border: 1px solid #cbd9a8;
  border-radius: 14px;
  padding: 18px 22px;
  margin: 1.8em 0;
  font-size: 0.96rem;
  color: #33451a;
}
.green-box b { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--moss-dark); margin-bottom: 4px; font-weight: 800; }

/* Card trio */
.card-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 1.8em 0; }
.trio-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--moss);
  border-radius: 14px;
  padding: 16px 16px 8px;
  font-size: 0.9rem;
  line-height: 1.55;
}
.trio-card:nth-child(2) { border-top-color: var(--clay); }
.trio-card:nth-child(3) { border-top-color: var(--ink); }
.trio-card h4 { font-size: 0.98rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.trio-card ul { padding-left: 1.1em; margin-bottom: 0.9em; }
.trio-card li { margin-bottom: 0.3em; }
@media (min-width: 900px) { .card-trio { margin-left: -44px; margin-right: -44px; } }

/* Timeline */
ol.steps {
  list-style: none;
  padding: 0;
  margin: 1.8em 0 2em 14px;
  border-left: 2px dashed var(--moss);
  counter-reset: st;
}
ol.steps li { position: relative; padding: 0 0 22px 34px; margin: 0; counter-increment: st; }
ol.steps li:last-child { padding-bottom: 0; }
ol.steps li::before {
  content: counter(st);
  position: absolute;
  left: -16px; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--moss);
  color: #fff;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px var(--paper);
}
ol.steps li strong { display: block; font-size: 1.02rem; margin-bottom: 2px; }

/* Entry footer */
.entry-footer {
  max-width: 720px;
  margin: 46px auto 0;
  padding-top: 20px;
  border-top: 2px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
  display: flex; flex-direction: column; gap: 8px;
}
.entry-footer a {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-mid);
  margin: 2px 4px 2px 0;
}
.entry-footer a:hover { background: var(--moss); border-color: var(--moss); color: #fff; text-decoration: none; }

/* Related */
.related { max-width: 1052px; margin: 64px auto 0; }
.related h3 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.rel-card span { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); }
.rel-card a { display: block; margin-top: 6px; font-weight: 800; line-height: 1.35; color: var(--ink); }
.rel-card a:hover { color: var(--moss); text-decoration: none; }

/* ============================================================
   FOOTER — giant outline wordmark
   ============================================================ */
#colophon { background: #121a0f; color: rgba(255,255,255,0.55); margin-top: 20px; padding-top: 44px; border-radius: 40px 40px 0 0; }
.foot-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 11.5vw, 8.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(181,211,52,0.35);
  user-select: none;
  padding: 0 16px 8px;
  text-transform: uppercase;
}
.foot-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 24px 30px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.foot-about { font-size: 0.9rem; line-height: 1.7; }
.foot-grid h4 { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 7px; }
.foot-grid a { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.foot-grid a:hover { color: #fff; text-decoration: none; }
.foot-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.foot-bottom a { color: inherit; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .pill { border-radius: 26px; flex-wrap: wrap; padding: 12px 16px; justify-content: center; }
  .pill-nav { flex-wrap: wrap; justify-content: center; }
  .hero { padding: 190px 20px 100px; margin-top: -120px; }
  .hero.compact { padding: 190px 20px 90px; }
  .hero h1, .hero.compact h1 { font-size: 1.55rem; }
  .row { grid-template-columns: 1fr; }
  .row:nth-child(even) .row-art { order: 0; }
  .row-art, .row.lead .row-art { min-height: 150px; }
  .row-body { padding: 24px 22px; }
  .facts { grid-template-columns: repeat(2, 1fr); margin-top: -34px; }
  .card-trio { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .topics { padding: 26px 22px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-bottom { flex-direction: column; }
  .chapter-bar { top: 130px; border-radius: 18px; }
}
