:root {
  color-scheme: light;
  /* Палитра оригинала (инлайн-стили главной и About, архив 2023–2025, тема Adeline + Elementor):
     текст #3d3b3b, blush #ebd9d5 / #eee4db / #f7f6f5, роза #d8b8b7, таупе #c9b5a5, коричневый акцент #97582f */
  --brand: #d8b8b7;        /* роза: полосы, номера (тёмный текст на ней 6:1) */
  --accent: #97582f;       /* кнопки и ссылки, белый текст 5.6:1 */
  --accent-dark: #7e4726;
  --tint: #faf4f2;         /* светлый blush */
  --tint-line: #ebd9d5;
  --sand: #f3ece4;         /* #eee4db оригинала, чуть светлее */
  --sand-line: #e2d5c8;
  --bg: #fff;
  --card: #fff;
  --text: #3d3b3b;
  --muted: #6b6464;
  --line: #eee9e6;
  --head: 'Roboto Slab', Georgia, serif;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --read: Georgia, 'Times New Roman', serif;
  --script: 'Great Vibes', 'Snell Roundhand', cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--ui); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 700; }
h2 { font-size: clamp(23px, 3.2vw, 29px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
section { margin: 64px 0; }

/* header */
.top { border-bottom: 3px solid var(--brand); background: #fff; position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { text-decoration: none; color: var(--accent-dark); font: 400 34px/1 var(--script); white-space: nowrap; padding: 6px 0; }
.logo:hover { color: var(--accent); }
.menu { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.menu a { font-weight: 500; color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.menu a:hover, .menu a[aria-current] { background: var(--tint); box-shadow: inset 0 -3px 0 var(--brand); color: var(--text); }
.burger { display: none; margin-left: auto; font-size: 22px; background: #fff; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; color: var(--text); }
@media (max-width: 960px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 71px; background: #fff; flex-direction: column; padding: 8px 20px 16px; border-bottom: 3px solid var(--brand); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 8px; }
}

/* buttons, labels */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--accent); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--accent-dark); border-color: var(--brand); }
.btn.ghost:hover { background: var(--tint); color: var(--accent-dark); }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 12px; }
.kicker { font-size: 13px; color: var(--accent); font-weight: 600; margin: 0 0 6px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--accent-dark); border: 1px solid var(--tint-line); text-decoration: none; }
.t { font-family: var(--head); font-weight: 600; font-size: 18px; line-height: 1.3; margin: 0 0 6px; }
.t a { color: var(--text); text-decoration: none; }
.t a:hover { color: var(--accent); }
.desc { color: var(--muted); margin: 0; font-size: 15px; }

/* section heading */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 3px solid var(--line); margin-bottom: 24px; }
.head h2 { margin: 0; padding-bottom: 10px; position: relative; }
.head h2::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--brand); }
.head a { padding: 10px 0; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* hero */
.hero { background: var(--tint); border-bottom: 1px solid var(--tint-line); padding: 56px 0; margin: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 .script { display: block; font: 400 1.25em/1.1 var(--script); color: var(--accent-dark); margin-bottom: 6px; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 34em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-card { background: #fff; border: 1px solid var(--tint-line); border-radius: 14px; padding: 28px; box-shadow: 0 10px 30px rgba(151, 88, 47, .08); }
.hero-card .t { font-size: 24px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 36px 0; } }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--tint-line); box-shadow: 0 8px 24px rgba(151, 88, 47, .08); }
.feat { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.lead-card { background: var(--sand); border: 1px solid var(--sand-line); border-radius: 14px; padding: 28px; }
.lead-card .t { font-size: 24px; }
.rows { display: grid; gap: 12px; align-content: start; }
.row { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
@media (max-width: 860px) { .feat { grid-template-columns: 1fr; } }

/* numbered */
.pop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pop .card { position: relative; padding-top: 56px; }
.num { position: absolute; top: 16px; left: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--text); font: 700 14px/30px var(--ui); text-align: center; }
@media (max-width: 860px) { .pop { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .pop .card { scroll-snap-align: start; } }

/* topics block */
.topics { background: var(--tint); border: 1px solid var(--tint-line); border-radius: 14px; padding: 32px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--tint-line); color: var(--text); text-decoration: none; font-weight: 600; }
.pill small { color: var(--accent); font-weight: 700; }
.pill:hover { border-color: var(--accent); color: var(--text); }
@media (max-width: 600px) { .topics, .about { padding: 22px; } }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.list .meta { font-size: 13px; color: var(--muted); margin: 0 0 4px; }

/* about block */
.about { background: var(--sand); border: 1px solid var(--sand-line); border-radius: 14px; padding: 32px; display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; }
.about .mark { width: 160px; height: 160px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); display: grid; place-items: center; font: 400 40px/1 var(--script); color: var(--accent-dark); text-align: center; }
.facts { display: flex; gap: 32px; flex-wrap: wrap; margin: 20px 0; }
.facts b { display: block; font: 700 34px var(--head); color: var(--accent); }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; } .about .mark { width: 96px; height: 96px; font-size: 24px; } }

/* article */
.page { max-width: 760px; margin: 40px auto 64px; padding: 0 20px; }
.page.wide { max-width: 900px; }
.page .body { font: 18px/1.7 var(--read); }
.page .body p { margin: 0 0 1em; }
.page .body h2 { font-size: 25px; margin-top: 1.6em; }
.page .body h3 { font-size: 20px; margin-top: 1.4em; }
.page .body blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 4px solid var(--brand); background: var(--tint); }
.crumbs { font-size: 14px; margin-bottom: 16px; }
.crumbs a { text-decoration: none; display: inline-block; padding: 6px 0; }
.meta-line { color: var(--muted); font-size: 14px; margin: -4px 0 28px; display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.nav2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.nav2 a { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); }
.nav2 a:hover { border-color: var(--tint-line); }
.nav2 small { display: block; color: var(--muted); }
@media (max-width: 600px) { .nav2 { grid-template-columns: 1fr; } }
.faves { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.faves li { background: var(--tint); border: 1px solid var(--tint-line); border-radius: 12px; padding: 14px 16px; font-family: var(--ui); font-size: 15px; }
.faves b { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }

/* footer */
.foot { background: var(--tint); border-top: 3px solid var(--brand); padding: 40px 0 24px; margin-top: 64px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.foot-name { font: 400 34px/1.1 var(--script); color: var(--accent-dark); margin: 0 0 8px; }
.foot-h { font-weight: 600; margin: 0 0 4px; }
.links { display: flex; flex-direction: column; margin: 0; }
.links a { display: inline-block; padding: 7px 0; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
