/* Светопись — общий стиль внутренних страниц */
:root {
  --paper: #f7efe2;
  --ivory: #fffaf0;
  --ink: #221a12;
  --ink-soft: #5d5045;
  --cypress: #14231e;
  --cypress-2: #0d1a15;
  --gold: #b8873a;
  --gold-soft: #e6cf9f;
  --rubric: #8a3324;
  --line: rgba(84, 62, 38, .18);
  --shadow: 0 24px 70px rgba(34, 22, 10, .16);
  --display: "Palatino Nova", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: Georgia, "Times New Roman", serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--cypress-2); text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); margin: 0 auto; }
.kicker { display: block; margin-bottom: 14px; color: var(--rubric); font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
:focus-visible { outline: 2.5px solid var(--rubric); outline-offset: 2px; }

.topbar { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: rgba(247, 239, 226, .92); backdrop-filter: blur(14px); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 23px; font-weight: 700; color: var(--cypress-2); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 50%; background: var(--cypress); position: relative; box-shadow: inset 0 0 0 1.5px var(--gold); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--gold-soft); }
.brand-mark::before { width: 2.5px; height: 17px; }
.brand-mark::after { width: 12px; height: 2.5px; top: 42%; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-family: var(--ui); font-size: 13.5px; font-weight: 600; color: var(--cypress); }
.nav a { text-decoration: none; border-bottom: 1.5px solid transparent; padding: 4px 0; }
.nav a:hover { border-color: var(--gold); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border: 1px solid var(--cypress); border-radius: 3px; background: var(--cypress); color: var(--ivory); font-family: var(--ui); font-size: 14.5px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.btn:hover { background: var(--cypress-2); transform: translateY(-1px); }
.btn.gold { border-color: var(--gold); background: var(--gold); color: #201607; }
.btn.gold:hover { background: #a87a30; }
.btn.ghost { background: transparent; color: var(--cypress); }
.btn.ghost:hover { background: rgba(20, 35, 30, .06); }

.page-head { padding: 58px 0 34px; }
.page-head h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.02; margin-bottom: 16px; }
.page-head .lead { max-width: 680px; color: var(--ink-soft); font-size: clamp(18px, 2vw, 21px); line-height: 1.5; }
section { padding: 40px 0 56px; }

.article { padding: 10px 0 64px; }
.article h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 40px 0 14px; }
.article h3 { font-size: 23px; margin: 28px 0 10px; }
.article p { margin: 0 0 16px; max-width: 68ch; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 24px; max-width: 66ch; }
.article li { margin-bottom: 8px; }
.article a { color: var(--rubric); }
.note-box { margin: 24px 0; padding: 18px 20px; border-left: 3px solid var(--gold); background: var(--ivory); border-radius: 0 6px 6px 0; font-size: 16px; color: var(--ink-soft); max-width: 68ch; }
.note-box strong { color: var(--rubric); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 8px; background: var(--ivory); padding: 24px; }
.panel h3 { font-size: 24px; margin-bottom: 10px; }
.panel p { color: var(--ink-soft); font-size: 16px; }

label { display: grid; gap: 5px; font-family: var(--ui); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 12px; background: #fff; font-family: var(--body); font-size: 16px; }
textarea { min-height: 120px; resize: vertical; }
.toast { display: none; margin-top: 16px; padding: 15px; border: 1px solid rgba(20, 35, 30, .3); border-radius: 5px; background: rgba(20, 35, 30, .07); font-family: var(--ui); font-size: 14px; }
.toast.visible { display: block; }
.toast textarea { margin-top: 10px; background: #fff; font-size: 14px; min-height: 140px; }

.crumbs { padding: 18px 0 0; font-family: var(--ui); font-size: 12.5px; color: var(--ink-soft); }
.crumbs a { color: var(--rubric); text-decoration: none; }
.footer { padding: 36px 0 44px; border-top: 1px solid var(--line); font-family: var(--ui); font-size: 13px; color: var(--ink-soft); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .wrap, .narrow { width: min(100% - 26px, 1160px); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
