@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/lora-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/lora-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/static/fonts/lora-cyrillic-wght-italic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/static/fonts/lora-latin-wght-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/static/fonts/inter-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/static/fonts/inter-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f8f4ee;
  --bg-alt: #efe8de;
  --card: #fffdf9;
  --text: #2e2a25;
  --muted: #7a7066;
  --line: #e3d9cc;
  --accent: #5f7d68;
  --accent-dark: #4a6553;
  --accent-soft: #e3ebe2;
  --warm: #b9825f;
  --radius: 18px;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.15rem; color: #4a433c; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--warm); font-weight: 600; margin-bottom: 1em; }

.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: .8em 1.6em; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--accent-dark); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-small { padding: .5em 1.1em; font-size: .9rem; }
.link-arrow { font-weight: 600; text-decoration: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* header */
.adminbar { background: #2e2a25; text-align: right; padding: 4px 24px; font-size: .8rem; }
.adminbar a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(248, 244, 238, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { text-decoration: none; color: var(--text); display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; }
.brand-role { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: .95rem; }
.site-nav a[aria-current] { color: var(--accent-dark); font-weight: 600; }
.site-nav a:not(.btn):hover { color: var(--accent-dark); }
.nav-toggle, .nav-burger { display: none; }
.site-nav a.lang-switch { font-size: .8rem; font-weight: 600; letter-spacing: .06em; padding: .25em .6em; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.site-nav a.lang-switch:hover { border-color: var(--accent); color: var(--accent-dark); }

/* hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo img, .photo-placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius); }
.photo-placeholder { background: linear-gradient(160deg, var(--accent-soft), var(--bg-alt)); display: grid; place-items: center; font: 500 6rem var(--serif); color: var(--accent); }

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { margin-bottom: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.topic h3 { color: var(--accent-dark); }
.topic p { margin: 0; color: #4a433c; }
.about-short { max-width: 820px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 56px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font: 600 1.1rem var(--serif); }
.steps p { color: #4a433c; }

.cta { text-align: center; max-width: 680px; }
.cta p { color: var(--muted); }

/* posts */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card-img img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card-body { padding: 22px 24px 24px; }
.post-card h3 { margin: .3em 0 .5em; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent-dark); }
.post-card p { color: #4a433c; font-size: .95rem; margin: 0; }
.meta { font-size: .82rem; color: var(--muted); }
.meta a { color: var(--warm); text-decoration: none; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: .35em 1em; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .9rem; background: var(--card); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; }

.page { padding-top: 56px; padding-bottom: 72px; }
.post h1 { margin-top: .3em; }
.post-cover { border-radius: var(--radius); margin: 8px 0 32px; width: 100%; }
.post-cta { margin-top: 48px; text-align: center; background: var(--accent-soft); border-color: transparent; }
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose blockquote { margin: 1.5em 0; padding: .3em 0 .3em 1.2em; border-left: 3px solid var(--warm); font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #4a433c; }
.prose img { border-radius: 12px; margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.notice { background: #fff4d6; border: 1px solid #ecd590; border-radius: 12px; padding: 10px 16px; margin-bottom: 20px; font-size: .95rem; }
.notice-error { background: #fbe9e5; border-color: #e8b9ae; }

/* form */
.form { display: grid; gap: 6px; margin-top: 24px; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-top: 12px; }
.form input:not([type=checkbox]), .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: .75em .9em; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 400 1rem var(--sans); color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form textarea { resize: vertical; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 18px; }
.form .check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.form .btn { margin-top: 20px; justify-self: start; }
.hint { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.field-error { color: #a8432d; font-size: .88rem; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { text-align: center; padding: 48px 28px; }

/* footer */
.site-footer { background: #2f3a33; color: #d9ddd5; padding: 48px 0 32px; font-size: .92rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .muted { color: #a9b2a7; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: #d9ddd5; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.disclaimer { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; color: #b9c1b6; font-size: .85rem; max-width: 820px; }

@media (max-width: 900px) {
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 380px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 56px; }
  .hero-photo { max-width: 260px; margin: 0 auto; }
  .section { padding: 52px 0; }
  .card { padding: 22px; }
  .form .row-2 { grid-template-columns: 1fr; gap: 0; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
  .nav-burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px 16px 24px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}
