/* GSEN — общие стили.
   Палитра от фирменного зелёного #5D8A3C (брендбук): светлая основа, один тёмный акцент.
   Шрифты размещены на сайте: Source Serif 4 — заголовки, Golos Text — текст, Cinzel — аббревиатура GSEN. */

/* ── Шрифты ── */
@font-face { font-family: 'Golos Text'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/assets/fonts/golos-text-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/assets/fonts/golos-text-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/assets/fonts/golos-text-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-cyrillic-ext-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-cyrillic-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-latin-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cinzel'; font-style: normal; font-display: swap; font-weight: 700;
  src: url(/assets/fonts/cinzel-latin-700-normal.woff2) format('woff2'); }

:root {
  /* Зелёные */
  --brand: #5D8A3C;        /* цвет логотипа (брендбук) — эмблема, крупные акценты */
  --green: #3D6B2A;        /* кнопки и ссылки, контраст 6.3:1 на белом */
  --green-hover: #2E5420;
  --green-light: #B9D69C;  /* акценты на тёмном фоне */
  --green-50: #F2F7EC;     /* тонированные подложки */
  --green-100: #E4EFD8;
  --forest: #213A23;       /* единственный тёмный цвет: программы, подвал */
  --sage: #CFE3B8;         /* курсив на тёмном */
  /* Нейтральные */
  --white: #FFFFFF;
  --paper: #F7F8F4;        /* чередующиеся секции */
  --sand: #EEF2E8;
  --ink: #1C241C;          /* заголовки */
  --text: #384236;         /* основной текст */
  --muted: #646D60;        /* вторичный текст, 5.5:1 на белом */
  --border: #E1E6DA;
  --border-strong: #CBD3C1;
  /* Состояния */
  --danger: #B42318; --danger-bg: #FEF3F2;
  --ok: #2F5A22; --ok-bg: #EDF6E6;
  --warn: #8A4B0B; --warn-bg: #FFF8EA;

  --f-brand: 'Cinzel', 'Castellar', Georgia, serif;
  --f-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-body: 'Golos Text', 'Segoe UI', Roboto, system-ui, sans-serif;
  --f-mono: var(--f-body);

  --r: 10px; --r-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(28, 40, 24, .05);
  --shadow: 0 1px 2px rgba(28, 40, 24, .04), 0 8px 24px rgba(28, 40, 24, .07);
  --shadow-lg: 0 2px 4px rgba(28, 40, 24, .04), 0 18px 40px rgba(28, 40, 24, .10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--f-body); background: var(--white); color: var(--text); font-size: 17px; line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: lining-nums; }
main { flex: 1; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-hover); }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--green-100); color: var(--ink); }
[hidden] { display: none !important; }

/* ── Шапка ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  /* выравнивание по сетке контента (1200px) */
  padding: 0 max(48px, calc((100vw - 1200px) / 2 + 48px)); height: 72px;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--brand); line-height: 1; }
.logo:hover { color: var(--brand); }
.logo img { width: 42px; height: 42px; }
.logo .wm { display: flex; flex-direction: column; gap: 4px; }
.logo b { font-family: var(--f-brand); font-weight: 700; font-size: 24px; letter-spacing: 0.06em; }
.logo small { font-family: var(--f-body); font-size: 11.5px; font-weight: 500; color: var(--brand); letter-spacing: 0.01em; }
.logo.on-dark, .logo.on-dark small, .logo.on-dark:hover { color: var(--white); }
.nav { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav a { font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }
.nav .nav-cta { background: var(--green); color: var(--white); padding: 9px 18px; border-radius: var(--r-sm); }
.nav .nav-cta:hover { background: var(--green-hover); color: var(--white); }
.nav-user { display: flex; align-items: center; gap: 9px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--green-100); color: var(--green); display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.menu-toggle { display: none; background: var(--white); border: 1px solid var(--border-strong); padding: 7px 14px; font: 500 14px var(--f-body); color: var(--ink); cursor: pointer; border-radius: var(--r-sm); }

/* В кабинете и админке шапка на всю ширину — вровень с боковым меню */
body:has(.dash) .site-header { padding: 0 24px; }

/* ── Кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; font: 600 15px/1.2 var(--f-body); border: 1px solid transparent; border-radius: var(--r-sm); cursor: pointer; text-decoration: none; transition: background .18s, border-color .18s, color .18s, box-shadow .18s; }
.btn-primary { background: var(--green); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-hover); color: var(--white); }
.btn-dark { background: var(--green); color: var(--white); box-shadow: var(--shadow-sm); }  /* один основной цвет кнопок */
.btn-dark:hover { background: var(--green-hover); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-light { background: var(--white); color: var(--green); }
.btn-light:hover { background: var(--green-50); color: var(--green-hover); }
.btn-danger { background: var(--white); color: var(--danger); border-color: #F4C7C3; }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ── Формы ── */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  font: 15px/1.5 var(--f-body); background: var(--white); color: var(--ink); outline: none; transition: border-color .18s, box-shadow .18s;
}
.field input::placeholder, .field textarea::placeholder { color: #8C9488; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(61, 107, 42, .14); }
.field input:disabled { background: var(--paper); color: var(--muted); }
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 18px; cursor: pointer; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--green); flex-shrink: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Уведомления ── */
.notice { padding: 12px 16px; border-radius: var(--r-sm); font-size: 15px; margin-bottom: 20px; border: 1px solid; }
.notice-ok { background: var(--ok-bg); color: var(--ok); border-color: #C8E3B6; }
.notice-err { background: var(--danger-bg); color: var(--danger); border-color: #FECDCA; }
.notice-warn { background: var(--warn-bg); color: var(--warn); border-color: #F6DDA9; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 20px; font-size: 15px; border-radius: var(--r-sm); z-index: 300; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }
.toast.err { background: var(--danger); }

/* ── Общие блоки ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.section { padding: 104px 0; }
.label { font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; display: block; }
.title { font-family: var(--f-display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; line-height: 1.15; color: var(--ink); margin-bottom: 18px; }
.lead { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 660px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 32px; box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-variant-numeric: tabular-nums; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--r); background: var(--white); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--paper); line-height: 1.5; }
.b-green-tag { color: var(--green); background: var(--green-50); } .b-sage { color: #6B5A10; background: #FBF4DC; } .b-muted { color: var(--muted); background: var(--paper); } .b-red { color: var(--danger); background: var(--danger-bg); } .b-green { color: var(--ok); background: var(--ok-bg); }

/* ── Новости (карточки) ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s, border-color .2s; }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-strong); color: inherit; }
.news-cover { aspect-ratio: 16/9; background: var(--sand) center/cover no-repeat; }
.news-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; color: var(--green); margin-bottom: 12px; }
.news-meta time { color: var(--muted); font-weight: 400; }
.news-title { font-family: var(--f-display); font-size: 21px; font-weight: 600; color: var(--ink); margin-bottom: 10px; line-height: 1.3; }
.news-excerpt { font-size: 15px; color: var(--muted); line-height: 1.6; flex: 1; }
.news-more { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--green); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0; }
.chip { font: 500 14px var(--f-body); padding: 7px 16px; border: 1px solid var(--border-strong); background: var(--white); color: var(--text); border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); color: var(--white); border-color: var(--green); }
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 48px; align-items: center; font-size: 15px; }

/* ── Статья ── */
.article { max-width: 740px; margin: 0 auto; padding: 72px 24px 104px; }
.article h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.12; margin: 10px 0 18px; }
.article .article-lead { font-size: 20px; color: var(--muted); line-height: 1.6; margin-bottom: 32px; }
.article .article-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 40px; background: var(--sand); border-radius: var(--r); }
.prose { font-size: 18px; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-top: 1.7em; line-height: 1.25; }
.prose h3, .prose h4 { font-size: 21px; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand); }
.prose blockquote { border-left: 3px solid var(--brand); padding: 4px 0 4px 22px; font-family: var(--f-display); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--ink); }
.prose img { display: block; margin: 1.6em auto; border-radius: var(--r); }

/* ── Авторизация ── */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 72px); }
.auth-side { background: var(--forest) radial-gradient(circle at 85% 110%, rgba(93, 138, 60, .45), transparent 55%); color: var(--white); padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; }
.auth-side h2 { color: var(--white); font-size: 38px; line-height: 1.2; margin-bottom: 22px; }
.auth-side h2 em { color: var(--sage); }
.auth-side ul { list-style: none; margin-top: 8px; max-width: 460px; }
.auth-side li { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 15.5px; color: rgba(255, 255, 255, .75); }
.auth-side li b { display: block; color: var(--white); font-weight: 600; margin-bottom: 3px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--paper); }
.auth-box { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 40px; box-shadow: var(--shadow); }
.auth-box h1 { font-size: 32px; margin-bottom: 8px; }
.auth-box .sub { color: var(--muted); font-size: 15.5px; margin-bottom: 28px; }
.auth-links { margin-top: 22px; font-size: 14.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── Кабинет / админка ── */
.dash { display: grid; grid-template-columns: 252px 1fr; min-height: calc(100vh - 72px); background: var(--paper); }
.dash-side { background: var(--white); border-right: 1px solid var(--border); padding: 32px 0; }
.dash-who { padding: 0 24px 24px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.dash-who .avatar { width: 44px; height: 44px; font-size: 15px; }
.dash-who .name { font-weight: 600; color: var(--ink); margin-top: 12px; }
.dash-who .email { font-size: 13.5px; color: var(--muted); word-break: break-all; }
.tabs { list-style: none; padding: 0 12px; }
.tabs a { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; margin-bottom: 2px; font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; border-radius: var(--r-sm); }
.tabs a:hover { background: var(--paper); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--green-50); color: var(--green); font-weight: 600; }
.tabs .count { font-size: 12px; font-weight: 700; background: var(--green); color: var(--white); padding: 1px 8px; border-radius: 999px; }
.dash-main { padding: 44px 48px 88px; max-width: 1100px; width: 100%; }
.dash-main h1 { font-size: 32px; margin-bottom: 6px; }
.dash-main .sub { color: var(--muted); margin-bottom: 28px; }
.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.panel h2 { font-family: var(--f-body); font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 38px; color: var(--ink); line-height: 1.05; margin-bottom: 4px; font-variant-numeric: lining-nums tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }
.list-item { border: 1px solid var(--border); background: var(--white); border-radius: var(--r); padding: 20px 24px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.list-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.list-head h3 { font-family: var(--f-body); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.list-meta { font-size: 14px; color: var(--muted); margin-top: 3px; }
.list-text { font-size: 15px; margin-top: 12px; white-space: pre-wrap; }
.reply { margin-top: 12px; padding: 12px 16px; background: var(--green-50); border-left: 3px solid var(--brand); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 15px; white-space: pre-wrap; }
.reply .list-meta { margin: 0 0 6px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #FBFCF9; }
td select, .list-item select, .actions select { padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); font: inherit; font-size: 14px; background: var(--white); color: var(--ink); }
.actions input { border-radius: var(--r-sm) !important; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.toolbar input { padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); font: inherit; font-size: 15px; min-width: 280px; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.editor-grid textarea { min-height: 380px; font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 13.5px; line-height: 1.65; }
.preview { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 20px 24px; background: var(--paper); min-height: 380px; max-height: 640px; overflow: auto; }
.preview.prose { font-size: 16px; }

/* ── Подвал ── */
.site-footer { background: var(--forest); color: rgba(255, 255, 255, .62); padding: 64px 0 40px; font-size: 14.5px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 28px; }
.site-footer .logo { margin-bottom: 18px; }
.site-footer p { line-height: 1.7; }
.site-footer h4 { font-family: var(--f-body); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, .45); margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255, 255, 255, .55); }

/* ── Адаптив ── */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .site-header { padding: 0 16px; height: 64px; }
  .logo small { display: none; }
  .logo img { width: 36px; height: 36px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 8px 0 12px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 12px 16px; font-size: 16px; }
  .nav .nav-cta { margin: 8px 16px 0; text-align: center; }
  .nav-user { padding: 8px 16px; }
  .container { padding: 0 16px; }
  .section { padding: 68px 0; }
  .lead { font-size: 17px; }
  .news-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; min-height: calc(100vh - 64px); }
  .auth-side { display: none; }
  .auth-box { padding: 28px 22px; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 0; }
  .dash-who { display: none; }
  .tabs { display: flex; overflow-x: auto; gap: 4px; }
  .tabs a { white-space: nowrap; margin: 0; }
  .dash-main { padding: 28px 16px 64px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .row-2, .editor-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .toolbar input { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
