/* =============================================================================
   РыбалкаХелп — форумная дизайн-система (госуслуги-adjacent)
   Собственный CSS без бандл-шага. Токены -> примитивы -> компоненты -> адаптив.
   Эталон: portfolio.rybalkahelp.ru/demos/avensis/

   Правила:
   - плотная информационная сетка форума, не лендинг;
   - светлый тёплый фон (#f4f0ea), белые карточки, тонкая рамка, мягкая тень;
   - радиусы 6-8px, не «пузатые»;
   - тёмный зелёно-серый хедер, лесной зелёный акцент для CTA и активных состояний;
   - Inter + Montserrat; focus-кольца; hover-переходы;
   - никаких неоновых градиентов, glassmorphism, emoji вместо иконок.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. Токены
   -------------------------------------------------------------------------- */
:root {
  /* Поверхности — gov-портал (Avensis demo) */
  --c-page:        #f5f7fa;
  --c-surface:     #ffffff;
  --c-surface-2:   #f2f6ff;
  --c-surface-3:   #eef2f7;
  --c-border:      #d9e1ec;
  --c-border-soft: #e8eef5;

  /* Shell (statbar, hero, cookie) — gov-blue; шапка/подвал переопределяются ниже */
  --c-shell:        #062a6e;
  --c-shell-2:      #051f52;
  --c-shell-3:      #0a3a9c;
  --c-shell-text:   #dce6f8;
  --c-shell-muted:  #9bb0d4;
  --c-shell-border: #1a5fe0;

  /* Текст */
  --c-text:      #0b1f33;
  --c-text-2:    #3d4f63;
  --c-text-mute: #6b7a8c;
  --c-text-dim:  #8a97a8;

  /* Акценты — primary blue (CTA, active, links) */
  --c-green:        #0d4cd3;
  --c-green-hover:  #0a3a9c;
  --c-green-dark:   #062a6e;
  --c-green-soft:   #e8f0fe;
  --c-blue:         #1a5fe0;
  --c-blue-hover:   #0a3a9c;
  --c-blue-soft:    #e8f0fe;
  --c-sand:         #9a6700;
  --c-sand-soft:    #fff8e6;
  --c-clay:         #c62828;
  --c-clay-soft:    #fdecea;
  --c-online:       #0f7b3c;
  --c-success:      #0f7b3c;
  --c-success-bg:   #e8f6ee;
  --c-danger:       #c62828;

  /* Тематика: рыбалка / охота (акценты поверх gov-blue) */
  --c-fish-green:       #0f7b3c;
  --c-fish-green-dark:  #0a5c2d;
  --c-fish-green-soft:  #e8f6ee;
  --c-water-blue:       #1a6b8a;
  --c-water-blue-soft:  #e6f2f7;
  --c-hunt-earth:       #6b5344;
  --c-hunt-brown:       #5c4a32;
  --c-hunt-earth-soft:  #f4f0ea;
  --c-hunt-forest:      #3d5c3a;
  --c-hunt-forest-soft: #eaf2ec;

  /* Шапка/подвал — тёмная оболочка (hero overlay), moss-акценты */
  --c-header-fish-stripe:  #4a5c4f;
  --c-header-fish-active:  #a8b5aa;
  --c-header-fish-sub:     #b0bbb4;
  --c-footer-fish-accent:  #4a5c4f;
  --c-footer-fish-hover:   #c5ccc8;
  --c-shell-fish:          #1e2422;
  --c-shell-fish-2:        #1a1f1e;
  --c-shell-fish-3:        #252b29;
  --c-shell-fish-border:   #4a5c4f;
  --c-shell-fish-text:     #e8ebe9;
  --c-shell-fish-muted:    #9aa8a1;
  --c-header-hunt-stripe:  #525a4a;
  --c-header-hunt-active:  #b5a898;
  --c-header-hunt-sub:     #b8afa4;
  --c-footer-hunt-accent:  #525a4a;
  --c-footer-hunt-hover:   #d0c8bc;
  --c-shell-hunt:          #1f221e;
  --c-shell-hunt-2:        #1a1d19;
  --c-shell-hunt-3:        #282c27;
  --c-shell-hunt-border:   #525a4a;
  --c-shell-hunt-text:     #e8ebe9;
  --c-shell-hunt-muted:    #a0a89a;

  /* Нейтральная шапка/подвал (блогеры, профиль, auth) */
  --c-header-neutral-bg:        #1e2422;
  --c-header-neutral-bg-2:      #1a1f1e;
  --c-header-neutral-bg-3:      #252b29;
  --c-header-neutral-text:      #e8ebe9;
  --c-header-neutral-muted:     #9aa8a1;
  --c-header-neutral-border:    #4a5c4f;
  --c-header-neutral-active:    #a8b5aa;

  /* Ссылки */
  --c-link:       #0d4cd3;
  --c-link-hover: #0a3a9c;

  /* Радиусы — сдержанные */
  --r-xs: 3px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 12px;
  --r-pill: 999px;

  /* Тени — gov-портал */
  --sh-1: 0 1px 2px rgba(11, 31, 51, .06);
  --sh-2: 0 1px 3px rgba(11, 31, 51, .07), 0 1px 2px rgba(11, 31, 51, .04);
  --sh-3: 0 2px 8px rgba(13, 76, 211, .08), 0 8px 24px rgba(11, 31, 51, .06);
  --sh-inset: inset 0 1px 0 rgba(255, 255, 255, .22);
  --focus-ring: 0 0 0 3px rgba(13, 76, 211, .35);

  /* Сетка отступов 4px */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;

  /* Семантическая шкала отступов (2026) */
  --space-1:  var(--s-1);  /* 4px  */
  --space-2:  var(--s-2);  /* 8px  */
  --space-3:  var(--s-3);  /* 12px */
  --space-4:  var(--s-4);  /* 16px */
  --space-5:  var(--s-5);  /* 20px */
  --space-6:  var(--s-6);  /* 24px */
  --space-8:  var(--s-7);  /* 32px */
  --space-10: var(--s-8);  /* 40px */

  /* Типографика — Avensis stack (Google Fonts, cyrillic) */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Montserrat", "Inter", Arial, sans-serif;
  --f-ui:   var(--font-sans);
  --f-read: var(--font-sans);
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Шкала: body 16px, meta не ниже 12px, mobile body ≥15px */
  --fs-11: 12px;
  --fs-12: 13px;
  --fs-13: 14px;
  --fs-14: 15px;
  --fs-15: 16px;
  --fs-16: 16px;
  --fs-18: 20px;
  --fs-20: 22px;
  --fs-24: 26px;
  --fs-28: 30px;
  --fs-32: 34px;

  /* Каркас */
  --w-page:     1400px;
  --w-left:     232px;
  --w-right:    264px;
  --h-topbar:   56px;
  --h-hero:     420px;
  --r-hub:      12px;

  /* Слои */
  --z-hero:     1;
  --z-sticky:   40;
  --z-topbar:   60;
  --z-overlay:  80;
  --z-drawer:   90;
  --z-toast:    100;

  --t: 180ms ease;
}

/* Тёмная тема — только переопределение переменных */
[data-theme="dark"] {
  --c-page:        #1a1f18;
  --c-surface:     #222820;
  --c-surface-2:   #2a3228;
  --c-surface-3:   #323a30;
  --c-border:      #3d4a38;
  --c-border-soft: #343c32;

  --c-shell:        #222a21;
  --c-shell-2:      #1a2018;
  --c-shell-3:      #3d5c3a;
  --c-shell-text:   #e8ede6;
  --c-shell-muted:  #8a9a82;
  --c-shell-border: #4a7c59;

  --c-text:      #e8ede6;
  --c-text-2:    #c0c8bc;
  --c-text-mute: #8a9488;
  --c-text-dim:  #6b7568;

  --c-green:        #8fb996;
  --c-green-hover:  #a8c9ae;
  --c-green-dark:   #c5d9c8;
  --c-green-soft:   #2a3828;
  --c-blue:         #8fb996;
  --c-blue-hover:   #a8c9ae;
  --c-blue-soft:    #2a3828;
  --c-sand:         #d4a843;
  --c-sand-soft:    #2a2318;
  --c-clay:         #ef5350;
  --c-clay-soft:    #3a1a1a;
  --c-online:       #8fb996;

  --c-link:       #a8c9ae;
  --c-link-hover: #c5d9c8;

  --sh-1: 0 1px 2px rgba(0, 0, 0, .3);
  --sh-2: 0 1px 3px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .2);
  --sh-3: 0 6px 20px rgba(0, 0, 0, .45);
  --sh-inset: inset 0 1px 0 rgba(255, 255, 255, .04);
}

/* -----------------------------------------------------------------------------
   1b. Тематические токены (--theme-*): рыбалка / охота
   Базовый shell общий; на fish/hunt страницах — тон шапки/подвала по разделу.
   -------------------------------------------------------------------------- */
:root {
  --theme-accent:       var(--c-green);
  --theme-accent-soft:  var(--c-green-soft);
  --theme-accent-dark:  var(--c-green-dark);
  --theme-accent-hover: var(--c-green-hover);
  --theme-icon:         var(--c-green);
  --theme-border-hover: #b8c9ef;
  --theme-row-accent:   var(--c-green);
}

[data-section="fish"] {
  --theme-accent:       var(--c-water-blue);
  --theme-accent-soft:  var(--c-water-blue-soft);
  --theme-accent-dark:  var(--c-fish-green-dark);
  --theme-accent-hover: #0a665c;
  --theme-icon:         var(--c-fish-green);
  --theme-border-hover: #9ed4cc;
  --theme-row-accent:   var(--c-water-blue);
}

[data-section="hunt"] {
  --theme-accent:       var(--c-hunt-earth);
  --theme-accent-soft:  var(--c-hunt-earth-soft);
  --theme-accent-dark:  var(--c-hunt-brown);
  --theme-accent-hover: #6b4f32;
  --theme-icon:         var(--c-hunt-forest);
  --theme-border-hover: #c4b49a;
  --theme-row-accent:   var(--c-hunt-forest);
}

[data-section="fish"] .water-chip:hover,
[data-section="fish"] .water-chip.is-active {
  border-color: var(--theme-accent);
  background: var(--theme-accent-soft);
  color: var(--theme-accent-dark);
}
[data-section="fish"] .water-chip.is-active span { color: var(--theme-accent-dark); }
[data-section="fish"] .water-chip__icon { color: var(--theme-icon); }

[data-section="hunt"] .water-chip:hover,
[data-section="hunt"] .water-chip.is-active,
.water-chip--hunt:hover,
.water-chip--hunt.is-active {
  border-color: var(--theme-accent);
  background: var(--theme-accent-soft);
  color: var(--theme-accent-dark);
}
[data-section="hunt"] .water-chip.is-active span,
.water-chip--hunt.is-active span { color: var(--theme-accent-dark); }

[data-section="fish"] .sidenav__group--fishing .sidenav__link.is-active {
  background: var(--theme-accent-soft);
  color: var(--theme-accent-dark);
  border-left-color: var(--theme-accent);
}
[data-section="fish"] .thread-row:hover { box-shadow: inset 3px 0 0 var(--theme-row-accent); }
[data-section="fish"] .tab.is-active { color: var(--theme-accent-dark); border-bottom-color: var(--theme-accent); }

[data-section="hunt"] .thread-row:hover { box-shadow: inset 3px 0 0 var(--theme-row-accent); }
[data-section="hunt"] .tab.is-active { color: var(--theme-accent-dark); border-bottom-color: var(--theme-accent); }

.hub-cards--hunt {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-4);
}

/* -----------------------------------------------------------------------------
   2. Сброс и база
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; }
img { height: auto; border: 0; }
svg { display: block; }

a { color: var(--c-link); text-decoration: none; text-underline-offset: .18em; transition: color var(--t); }
a:hover { color: var(--c-link-hover); text-decoration: underline; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
}
h1 { font-size: var(--fs-28); }
h2 { font-size: var(--fs-20); }
h3 { font-size: var(--fs-18); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

/* Типографический ритм в контентных блоках */
.article__body h2,
.article__body h3,
.article__body h4,
.post-body h2,
.post-body h3,
.post-body h4,
.prose-note h2,
.prose-note h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.article__body h2:first-child,
.article__body h3:first-child,
.post-body h2:first-child,
.post-body h3:first-child { margin-top: 0; }
.article__body ul,
.article__body ol,
.post-body ul,
.post-body ol,
.prose-note ul,
.prose-note ol {
  padding-left: var(--space-6);
  margin-bottom: 1em;
}
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--s-5) 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

::selection { background: rgba(74, 103, 65, .18); }

[hidden], [x-cloak] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -60px; left: var(--s-4); z-index: 200;
  background: var(--c-green); color: #fff;
  padding: var(--s-2) var(--s-4); border-radius: var(--r-md);
  font-weight: 600;
}
.skip-link:focus { top: var(--s-2); }

/* -----------------------------------------------------------------------------
   3. Каркас страницы
   -------------------------------------------------------------------------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.shell__body { flex: 1 0 auto; }

.wrap {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.layout {
  display: grid;
  grid-template-columns: var(--w-left) minmax(0, 1fr) var(--w-right);
  gap: var(--s-5);
  align-items: start;
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding: var(--s-5) var(--s-5) var(--s-8);
}
.layout--wide { grid-template-columns: var(--w-left) minmax(0, 1fr); }
.layout--single {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--s-5);
  justify-items: stretch;
}
/* Служебные страницы: не оставлять пустые колонки трёхколоночника */
body[data-page="verify_email"] .layout,
body[data-page="account_email"] .layout,
body[data-page="login"] .layout,
body[data-page="register"] .layout,
body[data-page="new_thread"] .layout,
body[data-page="error"] .layout {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.svc-card {
  width: 100%;
  max-width: 480px;
  margin: var(--s-6) auto 0;
}
.svc-card .card { width: 100%; }

.col-main { min-width: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.col-side { min-width: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.col-side--sticky { position: sticky; top: calc(var(--h-topbar) + var(--s-4)); }

/* -----------------------------------------------------------------------------
   4. Топ-бар
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: var(--z-topbar);
  height: var(--h-topbar);
  background: var(--c-shell);
  border-bottom: 1px solid var(--c-shell-border);
  color: var(--c-shell-text);
  overflow: visible;
}

/* Секционная шапка/подвал: тёплые тона, не gov-blue */
.site-header:not(.site-header--fish):not(.site-header--hunt),
.site-footer:not(.site-footer--fish):not(.site-footer--hunt) {
  --c-shell:        var(--c-header-neutral-bg);
  --c-shell-2:      var(--c-header-neutral-bg-2);
  --c-shell-3:      var(--c-header-neutral-bg-3);
  --c-shell-text:   var(--c-header-neutral-text);
  --c-shell-muted:  var(--c-header-neutral-muted);
  --c-shell-border: var(--c-header-neutral-border);
}
.site-header--fish,
.site-footer--fish {
  --c-shell:        var(--c-shell-fish);
  --c-shell-2:      var(--c-shell-fish-2);
  --c-shell-3:      var(--c-shell-fish-3);
  --c-shell-text:   var(--c-shell-fish-text);
  --c-shell-muted:  var(--c-shell-fish-muted);
  --c-shell-border: var(--c-shell-fish-border);
}
.site-header--hunt,
.site-footer--hunt {
  --c-shell:        var(--c-shell-hunt);
  --c-shell-2:      var(--c-shell-hunt-2);
  --c-shell-3:      var(--c-shell-hunt-3);
  --c-shell-text:   var(--c-shell-hunt-text);
  --c-shell-muted:  var(--c-shell-hunt-muted);
  --c-shell-border: var(--c-shell-hunt-border);
}
body[data-section="fish"] .nav-drawer__panel {
  --c-shell:        var(--c-shell-fish);
  --c-shell-2:      var(--c-shell-fish-2);
  --c-shell-3:      var(--c-shell-fish-3);
  --c-shell-text:   var(--c-shell-fish-text);
  --c-shell-muted:  var(--c-shell-fish-muted);
  --c-shell-border: var(--c-shell-fish-border);
}
body[data-section="hunt"] .nav-drawer__panel {
  --c-shell:        var(--c-shell-hunt);
  --c-shell-2:      var(--c-shell-hunt-2);
  --c-shell-3:      var(--c-shell-hunt-3);
  --c-shell-text:   var(--c-shell-hunt-text);
  --c-shell-muted:  var(--c-shell-hunt-muted);
  --c-shell-border: var(--c-shell-hunt-border);
}
body:not([data-section]) .nav-drawer__panel {
  --c-shell:        var(--c-header-neutral-bg);
  --c-shell-2:      var(--c-header-neutral-bg-2);
  --c-shell-3:      var(--c-header-neutral-bg-3);
  --c-shell-text:   var(--c-header-neutral-text);
  --c-shell-muted:  var(--c-header-neutral-muted);
  --c-shell-border: var(--c-header-neutral-border);
}
.site-header:not(.site-header--fish):not(.site-header--hunt) .nav-main__link.is-active {
  border-bottom-color: var(--c-header-neutral-active);
}
.site-header:not(.site-header--fish):not(.site-header--hunt) .nav-drawer__link.is-active {
  color: var(--c-header-neutral-active);
}

.site-header { position: relative; }
.site-header__motif {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  pointer-events: none;
  z-index: 2;
}
.site-header--fish .site-header__motif {
  background-color: var(--c-header-fish-stripe);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='8' viewBox='0 0 48 8'%3E%3Cpath fill='rgba(255,255,255,.22)' d='M0 4c6-3 12 3 18 0s12 3 18 0 6 3 12 0v4H0z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 48px 8px;
  background-position: 0 100%;
}
.site-header--hunt .site-header__motif {
  background-color: var(--c-header-hunt-stripe);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='8' viewBox='0 0 40 8'%3E%3Cpath fill='rgba(255,255,255,.18)' d='M8 1c-2 2-4 2-6 0-1 1-2 2-2 4h16c0-2-1-3-2-4-2 2-4 2-6 0z'/%3E%3Cpath fill='rgba(255,255,255,.12)' d='M28 2c1 1 2 2 2 4h8c0-2-1-3-2-4-1 1-2 2-4 0-1-1-2-2-4 0z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 40px 8px;
  background-position: 0 100%;
}
.site-header--fish .topbar__sub { color: var(--c-header-fish-sub); }
.site-header--hunt .topbar__sub { color: var(--c-header-hunt-sub); }
.site-header--fish .nav-main__link.is-active { border-bottom-color: var(--c-header-fish-active); }
.site-header--hunt .nav-main__link.is-active { border-bottom-color: var(--c-header-hunt-active); }
.site-header--fish .nav-drawer__link.is-active { color: var(--c-header-fish-active); }
.site-header--hunt .nav-drawer__link.is-active { color: var(--c-header-hunt-active); }
.site-header--fish .dropdown__item.is-active {
  color: var(--c-fish-green-dark);
  background: var(--c-water-blue-soft);
}
.site-header--hunt .dropdown__item.is-active {
  color: var(--c-hunt-brown);
  background: var(--c-hunt-earth-soft);
}
[data-theme="dark"] .site-header--fish .dropdown__item.is-active {
  color: var(--c-header-fish-active);
  background: rgba(74, 92, 79, .22);
}
[data-theme="dark"] .site-header--hunt .dropdown__item.is-active {
  color: var(--c-header-hunt-active);
  background: rgba(61, 92, 58, .24);
}
.topbar__inner {
  height: 100%;
  display: flex; align-items: stretch; gap: var(--s-3);
  max-width: var(--w-page); margin-inline: auto;
  padding-inline: var(--s-4);
  min-width: 0;
  overflow: visible;
}

.topbar__brand {
  display: inline-flex; align-items: center; gap: var(--s-2);
  flex: 0 0 auto; align-self: center;
  color: #fff; text-decoration: none;
  min-width: 0;
}
.topbar__brand:hover { text-decoration: none; color: #fff; }
.topbar__logo { width: 28px; height: 28px; flex: none; color: #fff; }
.topbar__logo svg { width: 28px; height: 28px; }
.topbar__wordmark { display: flex; flex-direction: column; line-height: 1.05; gap: 2px; }
.topbar__name {
  font-size: 13px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: #fff;
}
.topbar__sub {
  font-size: 10px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-shell-muted);
}

.topbar__burger {
  display: none;
  flex: none;
  align-items: center; justify-content: center;
  align-self: center;
  width: 40px; height: 40px;
  margin-left: calc(var(--s-2) * -1);
  color: var(--c-shell-text);
  border-radius: var(--r-sm);
}
.topbar__burger:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.topbar__search-btn { display: inline-flex; flex: none; }
.topbar__search { display: block; position: relative; flex: none; }

.nav-main {
  display: flex; align-items: stretch; gap: 0;
  min-width: 0; flex: 1 1 auto;
}
.nav-main__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 clamp(8px, 1vw, 12px);
  font-size: var(--fs-12); font-weight: 600;
  letter-spacing: .045em; text-transform: uppercase;
  color: var(--c-shell-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  transition: color var(--t), border-color var(--t), background-color var(--t);
}
.nav-main__more {
  flex: 0 0 auto;
  margin-left: 2px;
}
.nav-main__link--more {
  flex-shrink: 0;
}
.nav-main__dropdown {
  left: 0;
  right: auto;
  min-width: 220px;
}
.dropdown__item.is-active {
  color: var(--c-green-dark);
  background: var(--c-green-soft);
  font-weight: 650;
}
[data-theme="dark"] .dropdown__item.is-active {
  color: var(--c-online);
  background: rgba(74, 155, 106, .14);
}
.nav-main__link:hover { color: var(--c-shell-text); text-decoration: none; background: rgba(255, 255, 255, .08); }
.nav-main__link.is-active { color: var(--c-shell-text); border-bottom-color: var(--c-header-neutral-active); background: rgba(255, 255, 255, .06); }

.topbar__spacer { flex: 1 1 8px; min-width: 4px; max-width: 32px; }

.topbar__tools {
  display: flex; align-items: center; gap: var(--s-2);
  flex: none; flex-shrink: 0; position: relative;
  margin-left: auto;
  min-width: 0;
  z-index: 2;
  overflow: visible;
}
.topbar__tools > * { flex-shrink: 0; }

/* Поиск в топбаре — иконка, поле по клику */
.searchbox {
  position: absolute; top: 0; right: 0; left: auto;
  width: min(300px, calc(100vw - 24px));
  z-index: 2;
  display: none;
}
.searchbox.is-open {
  display: block;
  top: calc(100% + 6px);
  right: 0;
}
.searchbox.is-open .searchbox__field {
  height: 40px;
  background: var(--c-shell-3);
  border-color: var(--c-shell-border);
}
.searchbox__field {
  display: flex; align-items: center; gap: var(--s-2);
  height: 30px; padding: 0 var(--s-2) 0 var(--s-3);
  background: rgba(255, 255, 255, .07);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  transition: background-color var(--t), border-color var(--t);
}
.searchbox__field:focus-within {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .2);
}
.searchbox__icon { flex: none; color: var(--c-shell-muted); }
.searchbox__input {
  flex: 1 1 auto; min-width: 0;
  background: none; border: 0; outline: 0;
  color: var(--c-shell-text); font-size: var(--fs-14);
}
.searchbox__input::placeholder { color: var(--c-shell-muted); }

.search-drop {
  position: absolute; top: calc(100% + 6px); right: 0; left: 0;
  min-width: 340px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  overflow: hidden;
  z-index: var(--z-overlay);
}
.search-drop__item {
  display: block; padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--c-border-soft);
  color: var(--c-text);
}
.search-drop__item:last-child { border-bottom: 0; }
.search-drop__item:hover,
.search-drop__item.is-cursor { background: var(--c-surface-2); text-decoration: none; }
.search-drop__title { font-size: var(--fs-13); font-weight: 550; line-height: 1.35; }
.search-drop__meta { font-size: var(--fs-11); color: var(--c-text-mute); margin-top: 1px; }
.search-drop__foot {
  display: block; padding: var(--s-2) var(--s-3);
  background: var(--c-surface-2);
  font-size: var(--fs-12); font-weight: 600; text-align: center;
}
.search-drop__empty { padding: var(--s-4); font-size: var(--fs-13); color: var(--c-text-mute); text-align: center; }

/* Иконочные кнопки топбара */
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  color: var(--c-shell-muted);
  transition: color var(--t), background-color var(--t);
}
.icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.icon-btn__dot {
  position: absolute; top: 5px; right: 5px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 2px var(--c-shell);
}

/* Профиль в шапке */
.topbar__profile {
  flex: none;
  align-self: stretch;
  z-index: var(--z-overlay);
}
.topbar__profile-btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  max-width: 168px;
  height: 34px; padding: 0 var(--s-2) 0 var(--s-1);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05);
  color: var(--c-shell-text);
  font-size: var(--fs-13); font-weight: 600;
  transition: color var(--t), background-color var(--t), border-color var(--t);
}
.topbar__profile-btn:hover,
.topbar__profile-btn[aria-expanded="true"] {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
}
.topbar__profile-btn .avatar { border-color: rgba(255, 255, 255, .2); }
.topbar__profile-name { min-width: 0; max-width: 96px; }
.topbar__profile-chevron {
  flex: none;
  display: inline-flex;
  color: var(--c-shell-muted);
  transition: transform var(--t), color var(--t);
}
.topbar__profile-btn[aria-expanded="true"] .topbar__profile-chevron {
  transform: rotate(180deg);
  color: var(--c-shell-text);
}
.topbar__profile-menu {
  min-width: 196px;
  z-index: var(--z-overlay);
}

.topbar__auth { display: flex; align-items: center; gap: var(--s-2); }
.topbar__login {
  font-size: var(--fs-13); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--c-shell-muted);
  padding: 0 var(--s-2);
}
.topbar__login:hover { color: #fff; text-decoration: none; }

/* Выпадающее меню */
.dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 208px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  padding: var(--s-1);
  z-index: var(--z-overlay);
}
.dropdown__item {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-13); color: var(--c-text);
  width: 100%; text-align: left;
}
.dropdown__item:hover { background: var(--c-surface-2); text-decoration: none; }
button.dropdown__item {
  border: none; background: none; cursor: pointer; font: inherit;
}
.dropdown__item--danger { color: var(--c-clay); }
.dropdown__item--danger:hover { background: var(--c-clay-soft); }
.dropdown__sep { height: 1px; background: var(--c-border-soft); margin: var(--s-1) 0; }

.nav-drawer__logout { margin: 0; }
.nav-drawer__link--logout {
  display: flex; align-items: center; gap: var(--s-2);
  width: 100%; border: none; background: none; cursor: pointer;
  font: inherit; text-align: left; color: #f0b8ad;
}
.nav-drawer__link--logout:hover { color: #fff; background: rgba(168, 82, 58, .22); }

.has-drop { position: relative; display: inline-flex; align-items: center; }

/* Мобильное меню — панель в цвете шапки, не игровые CTA */
.nav-drawer {
  position: fixed; inset: 0; z-index: calc(var(--z-topbar) + 8);
}
.nav-drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(10, 14, 14, .55);
}
.nav-drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: min(300px, 86vw);
  background: var(--c-shell);
  color: var(--c-shell-text);
  border-right: 1px solid var(--c-shell-border);
  box-shadow: var(--sh-3);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.nav-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--h-topbar);
  padding: 0 var(--s-3) 0 var(--s-5);
  border-bottom: 1px solid var(--c-shell-border);
  flex: none;
}
.nav-drawer__title {
  font-size: var(--fs-13); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #fff;
}
.nav-drawer__close { color: var(--c-shell-muted); }
.nav-drawer__close:hover { color: #fff; }
.nav-drawer__nav {
  flex: 1 1 auto; overflow-y: auto;
  padding: var(--s-3) var(--s-3) var(--s-4);
}
.nav-drawer__caption {
  margin: var(--s-4) var(--s-3) var(--s-2);
  font-size: 11px; font-weight: 650;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-shell-muted);
}
.nav-drawer__link {
  display: flex; align-items: center;
  min-height: 40px;
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-14); font-weight: 600;
  color: var(--c-shell-muted);
  text-decoration: none;
}
.nav-drawer__link:hover { color: #fff; background: rgba(255, 255, 255, .06); text-decoration: none; }
.nav-drawer__link.is-active {
  color: #fff;
  background: rgba(61, 139, 82, .18);
  box-shadow: inset 3px 0 0 var(--c-green);
}
.nav-drawer__link--accent { color: var(--c-green-hover); }
.nav-drawer__foot {
  flex: none;
  padding: var(--s-3);
  border-top: 1px solid var(--c-shell-border);
}

/* -----------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: var(--h-hero);
  background: var(--c-shell-2);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 58%;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 21, 22, .92) 0%, rgba(14, 21, 22, .78) 34%, rgba(14, 21, 22, .48) 68%, rgba(14, 21, 22, .58) 100%),
    linear-gradient(180deg, rgba(14, 21, 22, .55) 0%, rgba(14, 21, 22, .12) 45%, rgba(14, 21, 22, .68) 100%);
}
.hero__inner {
  position: relative;
  max-width: var(--w-page); margin-inline: auto;
  padding: var(--s-7) var(--s-5) var(--s-6);
  min-height: var(--h-hero);
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: stretch; gap: var(--s-5);
}

.hero__copy { max-width: 36rem; }
.hero__h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.hero__lead {
  margin: var(--s-3) 0 0;
  font-size: var(--fs-15);
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .78);
}

.hero__stats {
  display: flex; align-items: stretch; gap: var(--s-3); flex-wrap: wrap;
}
.hero-stat {
  flex: 1 1 120px;
  min-width: 110px;
  text-align: left;
  background: rgba(12, 18, 20, .72);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-hub);
  padding: var(--s-3) var(--s-4);
  backdrop-filter: blur(6px);
}
.hero-stat__icon { display: block; color: #a8c9ae; margin-bottom: 6px; }
.page--fishing .hero-stat__icon { color: #8fb996; }
.page--fishing .hero__scrim {
  background:
    linear-gradient(90deg, rgba(42, 51, 40, .88) 0%, rgba(42, 51, 40, .72) 34%, rgba(61, 92, 58, .42) 68%, rgba(42, 51, 40, .55) 100%),
    linear-gradient(180deg, rgba(42, 51, 40, .5) 0%, rgba(42, 51, 40, .1) 45%, rgba(42, 51, 40, .65) 100%);
}
.hero-stat__value {
  display: block;
  font-size: var(--fs-24); font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.015em; color: #fff; line-height: 1.1;
}
.hero-stat__label {
  display: block; margin-top: 3px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
}

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.hero__cta-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.hero__cta-ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }

.guest-cta {
  position: sticky; bottom: 0; z-index: var(--z-sticky);
  display: none;
  align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  padding: var(--s-3) var(--s-5);
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 16px rgba(24,34,28,.08);
}
.guest-cta.is-visible { display: flex; }
.guest-cta__text { margin: 0; font-size: var(--fs-13); color: var(--c-text-2); max-width: 48ch; }
.guest-cta__actions { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }

.start-steps { list-style: none; display: grid; gap: var(--s-4); }
.start-step { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: var(--s-3); align-items: start; }
.start-step__n {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-green-soft); color: var(--c-green-dark); font-weight: 700;
}
.start-step__title { font-weight: 650; margin-bottom: 4px; }
.start-step .btn { margin: var(--s-2) var(--s-2) 0 0; }

/* Onboarding funnel (главная) */
.funnel-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
  width: 100%;
}
@media (min-width: 720px) {
  .funnel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.funnel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 100%;
  padding: var(--s-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  box-shadow: 0 1px 2px rgba(24, 34, 28, .04), 0 4px 16px rgba(24, 34, 28, .04);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.funnel-card:hover {
  border-color: rgba(61, 139, 82, .35);
  box-shadow: 0 2px 6px rgba(24, 34, 28, .06), 0 8px 24px rgba(24, 34, 28, .08);
  transform: translateY(-1px);
}
.funnel-card--highlight {
  border-color: rgba(61, 139, 82, .45);
  background: linear-gradient(165deg, rgba(61, 139, 82, .1) 0%, var(--c-surface) 52%);
}
[data-theme="dark"] .funnel-card--highlight {
  background: linear-gradient(165deg, rgba(74, 155, 106, .14) 0%, var(--c-surface) 55%);
  border-color: rgba(74, 155, 106, .4);
}
.funnel-card__step {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: calc(-1 * var(--s-1));
}
.funnel-card__n {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-green-soft); color: var(--c-green-dark);
  font-weight: 700; font-size: var(--fs-14);
}
.funnel-card__arrow {
  display: none;
  color: var(--c-text-dim);
}
@media (min-width: 720px) {
  .funnel-card:not(:last-child) .funnel-card__arrow { display: inline-flex; }
}
.funnel-card__icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  color: var(--c-green-dark);
}
[data-theme="dark"] .funnel-card__icon { color: var(--c-online); background: var(--c-surface-3); }
.funnel-card__title {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 650;
  line-height: 1.35;
  color: var(--c-text);
}
.funnel-card__text {
  margin: 0;
  flex: 1;
  font-size: var(--fs-13);
  color: var(--c-text-mute);
  line-height: 1.5;
}
.funnel-card__hint {
  margin: calc(-1 * var(--s-1)) 0 0;
  font-size: var(--fs-12);
  color: var(--c-green-dark);
  line-height: 1.45;
}
[data-theme="dark"] .funnel-card__hint { color: var(--c-online); }
.funnel-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-2);
}
.funnel-card__actions .btn { min-height: 44px; }

/* Activity feed (свежие темы) */
.activity-feed {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.activity-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  min-height: 64px;
  border-bottom: 1px solid var(--c-border-soft);
  text-decoration: none;
  color: inherit;
  transition: background-color .15s;
}
.activity-item:first-child { border-top: 1px solid var(--c-border-soft); }
.activity-item:hover {
  background: var(--c-surface-2);
  color: inherit;
}
.activity-item__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.activity-item__title {
  font-weight: 600;
  font-size: var(--fs-14);
  line-height: 1.35;
  color: var(--c-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-12);
  color: var(--c-text-mute);
}
.activity-item__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--c-green-soft);
  color: var(--c-green-dark);
  font-weight: 600;
  font-size: var(--fs-11);
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-theme="dark"] .activity-item__badge {
  background: rgba(74, 155, 106, .16);
  color: var(--c-online);
}
.activity-item__chev { color: var(--c-text-dim); flex-shrink: 0; }
.activity-feed__foot {
  display: flex;
  justify-content: center;
  padding: var(--s-4);
  border-top: 1px solid var(--c-border-soft);
}
.activity-feed__foot .btn { min-height: 44px; min-width: 200px; }

.city-suggest {
  list-style: none; margin: 4px 0 0; padding: 0;
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  background: var(--c-surface); max-height: 220px; overflow: auto;
}
.city-suggest li { padding: 10px 12px; min-height: 44px; cursor: pointer; }
.city-suggest li:hover, .city-suggest li:focus { background: var(--c-surface-2); outline: 0; }
.field--check { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; }
.field__city { position: relative; display: block; }
.is-new-thread .thread-row { box-shadow: inset 3px 0 0 var(--c-green); }
.oauth-row { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.oauth-btn { justify-content: center; }
.oauth-btn.is-disabled { pointer-events: none; opacity: .45; }

/* -----------------------------------------------------------------------------
   6. Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 34px; padding: 0 var(--s-4);
  border: 1px solid transparent; border-radius: var(--r-md);
  font-size: var(--fs-14); font-weight: 600; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background-color var(--t), border-color var(--t), color var(--t), box-shadow var(--t), transform var(--t);
}
.btn:hover { text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { opacity: .55; pointer-events: none; }

.btn--primary { background: var(--c-green); color: #fff; }
.btn--primary:hover {
  background: var(--c-green-hover); color: #fff;
  box-shadow: 0 2px 8px rgba(13, 76, 211, .18);
}

.btn--ghost {
  background: var(--c-surface); color: var(--c-green);
  border-color: var(--c-green);
}
.btn--ghost:hover {
  background: var(--c-green-soft); color: var(--c-green-hover);
  border-color: var(--c-green-hover);
}

.btn--quiet { background: transparent; color: var(--c-text-2); }
.btn--quiet:hover { background: var(--c-surface-3); color: var(--c-text); }

.btn--link { background: none; color: var(--c-link); min-height: 0; padding: 0; }
.btn--link:hover { color: var(--c-link-hover); text-decoration: underline; }

.btn--lg {
  min-height: 44px; padding: 0 var(--s-6);
  font-size: var(--fs-14); letter-spacing: .045em;
  text-transform: uppercase;
}
.btn--sm { min-height: 32px; padding: 0 var(--s-3); font-size: var(--fs-13); }
.btn--block { width: 100%; }

/* -----------------------------------------------------------------------------
   7. Карточки и панели
   -------------------------------------------------------------------------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.card:hover { border-color: #c5d4c8; box-shadow: var(--sh-3); }
.card--flush { border-radius: var(--r-lg); overflow: hidden; }

.card__head {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-border-soft);
  min-height: 46px;
}
.card__title {
  font-size: var(--fs-15); font-weight: 650;
  color: var(--c-text); margin: 0;
}
.card__spacer { flex: 1 1 auto; }
.card__body { padding: var(--s-4); }
.card__body--tight { padding: var(--s-3); }
.card__foot {
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--c-border-soft);
  background: var(--c-surface-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.card__foot--center { text-align: center; }

/* Заголовок секции над карточкой */
.section-head {
  display: flex; align-items: baseline; gap: var(--s-3);
  margin-bottom: var(--s-2);
}
.section-head__title { font-size: var(--fs-20); font-weight: 700; letter-spacing: -.015em; font-family: var(--font-display); }
.section-head__sub { font-size: var(--fs-13); color: var(--c-text-mute); }

/* -----------------------------------------------------------------------------
   8. Левый сайдбар: разделы форума
   -------------------------------------------------------------------------- */
.sidenav__group { padding: var(--s-2) 0; }
.sidenav__group + .sidenav__group { border-top: 1px solid var(--c-border-soft); }
.sidenav__caption {
  padding: var(--s-2) var(--s-4) var(--s-1);
  font-size: var(--fs-11); font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--c-text-dim);
}
.sidenav__link {
  position: relative;
  display: flex; align-items: center; gap: var(--s-2);
  padding: 7px var(--s-4) 7px var(--s-4);
  font-size: var(--fs-14); color: var(--c-text-2);
  border-left: 2px solid transparent;
  transition: background-color var(--t), color var(--t), border-color var(--t);
}
.sidenav__link:hover { background: var(--c-surface-2); color: var(--c-text); text-decoration: none; }
.sidenav__link.is-active {
  background: var(--c-green-soft);
  color: var(--c-green-dark);
  border-left-color: var(--c-green);
  font-weight: 600;
}
.sidenav__icon { flex: none; color: var(--c-text-dim); }
.sidenav__link:hover .sidenav__icon,
.sidenav__link.is-active .sidenav__icon { color: currentColor; }
.sidenav__label {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidenav__count {
  flex: none;
  font-size: var(--fs-11); font-variant-numeric: tabular-nums;
  color: var(--c-text-dim);
}

/* -----------------------------------------------------------------------------
   9. Табы
   -------------------------------------------------------------------------- */
.tabs {
  display: flex; align-items: stretch; gap: 0;
  border-bottom: 1px solid var(--c-border-soft);
  padding-inline: var(--s-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: var(--s-3) var(--s-3);
  font-size: var(--fs-13); font-weight: 550;
  color: var(--c-text-mute);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--t), border-color var(--t);
}
.tab:hover { color: var(--c-text); text-decoration: none; }
.tab.is-active { color: var(--c-green-dark); border-bottom-color: var(--c-green); font-weight: 650; }

/* -----------------------------------------------------------------------------
   10. Строка темы (основной элемент списка)
   -------------------------------------------------------------------------- */
.thread-list { display: block; }

.thread-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 96px 168px;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-border-soft);
  transition: background-color var(--t), box-shadow var(--t);
}
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: var(--c-surface-2); box-shadow: inset 3px 0 0 var(--c-green); }

.thread-row__avatar { grid-column: 1; }
.thread-row__main { grid-column: 2; min-width: 0; }

.thread-row__title {
  display: block;
  font-size: var(--fs-14); font-weight: 600; line-height: 1.35;
  color: var(--c-text);
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.thread-row__title:hover { color: var(--c-link-hover); text-decoration: none; }

.thread-row__meta {
  margin-top: 2px;
  font-size: var(--fs-12); color: var(--c-text-mute);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.thread-row__meta a { color: var(--c-text-2); }
.thread-row__meta a:hover { color: var(--c-link-hover); }
.thread-row__sep { color: var(--c-text-dim); }

.thread-row__nums {
  grid-column: 3;
  text-align: right;
  font-size: var(--fs-12); color: var(--c-text-mute);
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}
.thread-row__nums b { display: block; color: var(--c-text-2); font-weight: 600; }

.thread-row__last {
  grid-column: 4;
  display: flex; align-items: center; gap: var(--s-2);
  justify-content: flex-end;
  font-size: var(--fs-12); color: var(--c-text-mute);
  line-height: 1.4;
}
.thread-row__last-text { text-align: right; min-width: 0; }
.thread-row__last-text b {
  display: block; font-weight: 600; color: var(--c-text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 108px;
}

/* Иконка-маркер закреплённой/закрытой темы */
.thread-row__flag { flex: none; color: var(--c-sand); }
.thread-row__flag--closed { color: var(--c-text-dim); }

/* -----------------------------------------------------------------------------
   11. Аватары, бейджи, точки
   -------------------------------------------------------------------------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  border-radius: 50%;
  background: var(--c-surface-3);
  border: 1px solid var(--c-border);
  color: #fff;
  font-weight: 650;
  overflow: hidden;
  text-transform: uppercase;
  user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xs { width: 20px; height: 20px; font-size: 9px; }
.avatar--sm { width: 28px; height: 28px; font-size: var(--fs-11); }
.avatar--md { width: 36px; height: 36px; font-size: var(--fs-13); }
.avatar--lg { width: 48px; height: 48px; font-size: var(--fs-16); }
.avatar--xl { width: 84px; height: 84px; font-size: var(--fs-28); }

/* 8 детерминированных природных оттенков для буквенных аватаров */
.avatar--c0 { background: #4c7a5c; }
.avatar--c1 { background: #6b7a52; }
.avatar--c2 { background: #8a6a3a; }
.avatar--c3 { background: #6a5b7d; }
.avatar--c4 { background: #7d5344; }
.avatar--c5 { background: #5a6b48; }
.avatar--c6 { background: #706b3c; }
.avatar--c7 { background: #6b5e48; }

.avatar-stack { display: flex; align-items: center; }
.avatar-stack .avatar { margin-right: -6px; border: 2px solid var(--c-surface); }
.avatar-stack .avatar:last-child { margin-right: 0; }
.avatar-stack__more {
  margin-left: 6px;
  font-size: var(--fs-12); font-weight: 600; color: var(--c-text-mute);
}

.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-4);
}
.hub-card {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-hub);
  color: var(--c-text);
  text-decoration: none;
  box-shadow: var(--sh-1);
  min-height: 148px;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.hub-card:hover {
  text-decoration: none;
  color: var(--c-text);
  border-color: var(--c-green);
  box-shadow: var(--sh-2);
}
.hub-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--c-blue-soft);
  color: var(--c-green);
}
.hub-card--fishing .hub-card__icon { background: var(--c-fish-green-soft); color: var(--c-fish-green); }
.hub-card--water .hub-card__icon { background: var(--c-water-blue-soft); color: var(--c-water-blue); }
.hub-card--hunt .hub-card__icon { background: var(--c-hunt-earth-soft); color: var(--c-hunt-earth); }
.hub-card--knowledge .hub-card__icon { background: var(--c-blue-soft); color: var(--c-green); }
.hub-card:hover .hub-card__icon { box-shadow: var(--sh-1); }
.hub-card--hunt:hover { border-color: #c4b49a; }
.hub-card--fishing:hover { border-color: #9fd4b4; }
.hub-card--water:hover { border-color: #9ed4cc; }
.hub-cards--hunt .hub-card { min-height: 132px; }
.hub-cards--hunt .hub-card__title { font-size: var(--fs-15); }
.hub-card__title {
  margin: 0;
  font-size: var(--fs-16); font-weight: 700; letter-spacing: -.015em;
}
.hub-card__text {
  margin: 0;
  font-size: var(--fs-13); line-height: 1.45; color: var(--c-text-mute);
}
.ugodiya-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  columns: 1;
}
.ugodiya-list li {
  break-inside: avoid;
  padding: 0.2rem 0;
}
@media (min-width: 640px) {
  .ugodiya-list { columns: 2; }
}
@media (min-width: 1024px) {
  .ugodiya-list { columns: 3; }
}
.hub-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  margin: 0 0 var(--s-4);
}
.hub-split__card {
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-hub);
  box-shadow: var(--sh-1);
}
.hub-split__title {
  margin: 0 0 var(--s-3);
  font-size: var(--fs-16);
  font-weight: 700;
  letter-spacing: -.015em;
}
.hub-split__card .cat-intro p { font-size: var(--fs-13); }
@media (max-width: 1023px) {
  .hub-split { grid-template-columns: 1fr; }
}

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-size: var(--fs-11); font-weight: 650; line-height: 1.5;
  letter-spacing: .01em;
  white-space: nowrap;
}
.badge--green { background: var(--c-green-soft); color: var(--c-green-dark); }
.badge--blue  { background: var(--c-blue-soft);  color: var(--c-blue); }
.badge--sand  { background: var(--c-sand-soft);  color: var(--c-sand); }
.badge--clay  { background: var(--c-clay-soft);  color: var(--c-clay); }
.badge--mute  { background: var(--c-surface-3);  color: var(--c-text-mute); }

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-text-dim); flex: none;
}
.dot--online { background: var(--c-online); box-shadow: 0 0 0 2px rgba(74, 155, 106, .22); }

/* -----------------------------------------------------------------------------
   12. Виджеты правого сайдбара
   -------------------------------------------------------------------------- */
.online-count {
  display: flex; align-items: baseline; gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.online-count__n {
  font-size: var(--fs-24); font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.online-count__sub { font-size: var(--fs-12); color: var(--c-text-mute); }

.name-list {
  font-size: var(--fs-12); color: var(--c-text-mute); line-height: 1.6;
  margin-top: var(--s-3);
}
.name-list a { color: var(--c-text-2); }

.rank-list { list-style: none; }
.rank-item {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--c-border-soft);
}
.rank-item:last-child { border-bottom: 0; }
.rank-item__n {
  flex: none;
  width: 20px; height: 20px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--c-surface-3); color: var(--c-text-mute);
  font-size: var(--fs-11); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rank-item--top .rank-item__n { background: var(--c-green); color: #fff; }
.rank-item__body { min-width: 0; }
.rank-item__title {
  display: block; font-size: var(--fs-13); font-weight: 550; line-height: 1.35;
  color: var(--c-text);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.rank-item__title:hover { color: var(--c-link-hover); text-decoration: none; }
.rank-item__meta { font-size: var(--fs-11); color: var(--c-text-mute); margin-top: 1px; }

.event-list { list-style: none; }
.event-item {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--c-border-soft);
}
.event-item:last-child { border-bottom: 0; }
.event-item__date {
  flex: none; width: 38px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  text-align: center;
  overflow: hidden;
  background: var(--c-surface-2);
}
.event-item__day {
  display: block; padding-top: 2px;
  font-size: var(--fs-14); font-weight: 700; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.event-item__mon {
  display: block; padding-bottom: 2px;
  font-size: 9px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-text-mute);
}
.event-item__body { min-width: 0; }
.event-item__title { display: block; font-size: var(--fs-13); font-weight: 550; line-height: 1.35; color: var(--c-text); }
.event-item__title:hover { color: var(--c-link-hover); text-decoration: none; }
.event-item__place { font-size: var(--fs-11); color: var(--c-text-mute); margin-top: 1px; }

/* Список «люди» */
.people-list { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.people-item { display: flex; align-items: center; gap: var(--s-3); }
.people-item__body { min-width: 0; flex: 1 1 auto; }
.people-item__name {
  display: block; font-size: var(--fs-13); font-weight: 600; color: var(--c-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.people-item__name:hover { color: var(--c-link-hover); text-decoration: none; }
.people-item__meta { font-size: var(--fs-11); color: var(--c-text-mute); }

/* -----------------------------------------------------------------------------
   13. Хлебные крошки
   -------------------------------------------------------------------------- */
.crumbs {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: var(--fs-12); color: var(--c-text-mute);
  padding-block: var(--s-1);
  list-style: none;
}
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs a { color: var(--c-text-mute); }
.crumbs a:hover { color: var(--c-link-hover); }
.crumbs__sep { color: var(--c-text-dim); }
.crumbs [aria-current] { color: var(--c-text-2); font-weight: 550; }

/* -----------------------------------------------------------------------------
   14. Пагинация
   -------------------------------------------------------------------------- */
.pager {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-2); flex-wrap: wrap;
  margin: var(--space-5) 0;
  list-style: none;
}
.pager__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 var(--s-2);
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  background: var(--c-surface);
  font-size: var(--fs-13); font-variant-numeric: tabular-nums;
  color: var(--c-text-2);
}
.pager__link:hover { background: var(--c-surface-2); color: var(--c-text); text-decoration: none; }
.pager__link.is-active {
  background: var(--c-green); border-color: var(--c-green);
  color: #fff; font-weight: 650;
}
.pager__gap { padding: 0 var(--s-1); color: var(--c-text-dim); }

/* -----------------------------------------------------------------------------
   15. Нижняя статистическая полоса
   -------------------------------------------------------------------------- */
.statbar {
  background: var(--c-shell);
  border-top: 1px solid var(--c-shell-border);
  color: var(--c-shell-text);
}
.statbar__inner {
  max-width: var(--w-page); margin-inline: auto;
  padding: var(--s-5);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5);
}
.statbar__item { display: flex; align-items: center; gap: var(--s-3); }
.statbar__icon {
  flex: none;
  width: 36px; height: 36px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06);
  color: #9dc7ab;
}
.statbar__value {
  display: block;
  font-size: var(--fs-18); font-weight: 700; line-height: 1.15;
  font-variant-numeric: tabular-nums; color: #fff;
}
.statbar__label { display: block; font-size: var(--fs-12); color: var(--c-shell-muted); }

/* -----------------------------------------------------------------------------
   16. Подвал
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--c-shell-2);
  color: var(--c-shell-muted);
  border-top: 1px solid var(--c-shell-border);
  font-size: var(--fs-13);
}
.site-footer__accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  pointer-events: none;
}
.site-footer--fish .site-footer__accent {
  background: linear-gradient(90deg, transparent 0%, var(--c-footer-fish-accent) 22%, #556b5e 50%, var(--c-footer-fish-accent) 78%, transparent 100%);
}
.site-footer--hunt .site-footer__accent {
  background: linear-gradient(90deg, transparent 0%, var(--c-footer-hunt-accent) 22%, #5c6454 50%, var(--c-footer-hunt-accent) 78%, transparent 100%);
}
.site-footer:not(.site-footer--fish):not(.site-footer--hunt) .site-footer__accent {
  background: linear-gradient(90deg, transparent 0%, var(--c-header-neutral-border) 22%, #556b5e 50%, var(--c-header-neutral-border) 78%, transparent 100%);
}
.site-footer--fish .footer__sitelinks-list a:hover { color: var(--c-footer-fish-hover); }
.site-footer--hunt .footer__sitelinks-list a:hover { color: var(--c-footer-hunt-hover); }
.site-footer--fish .footer__list--theme a { color: var(--c-shell-text); }
.site-footer--fish .footer__list--theme a:hover { color: var(--c-footer-fish-hover); }
.site-footer--hunt .footer__list--theme a { color: var(--c-shell-text); }
.site-footer--hunt .footer__list--theme a:hover { color: var(--c-footer-hunt-hover); }
.footer__col-title--fish { color: var(--c-header-fish-sub); }
.footer__col-title--hunt { color: var(--c-header-hunt-sub); }
.site-footer--fish .footer__inner,
.site-footer--hunt .footer__inner {
  grid-template-columns: 1.35fr 1fr 1fr 1fr 1fr;
}
.footer__sitelinks {
  max-width: var(--w-page);
  margin-inline: auto;
  padding: var(--s-5) var(--s-5) 0;
  border-bottom: 1px solid var(--c-shell-border);
  padding-bottom: var(--s-5);
}
.footer__sitelinks-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--c-shell-text);
  margin: 0 0 var(--s-3);
}
.footer__sitelinks-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4) var(--s-5);
  margin: 0;
  padding: 0;
}
.footer__sitelinks-list a {
  display: block;
  color: var(--c-shell-text);
  font-weight: 600;
  font-size: var(--fs-13);
}
.footer__sitelinks-list a:hover { color: var(--c-footer-fish-hover); }
.site-footer--hunt .footer__sitelinks-list a:hover { color: var(--c-footer-hunt-hover); }
.footer__sitelinks-list span {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-12);
  line-height: 1.45;
  color: var(--c-shell-muted);
}
.footer__inner {
  max-width: var(--w-page); margin-inline: auto;
  padding: var(--s-7) var(--s-5) var(--s-6);
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-6);
}
.footer__brand { display: flex; flex-direction: column; gap: var(--s-3); max-width: 320px; }
.footer__logo { display: flex; align-items: center; gap: var(--s-3); color: var(--c-shell-text); }
.footer__logo-mark { width: 34px; height: 34px; flex: none; }
.footer__logo-name { font-size: var(--fs-16); font-weight: 750; letter-spacing: -.01em; }
.footer__about { font-size: var(--fs-13); line-height: 1.6; }
.footer__col-title {
  font-size: 10px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--c-shell-text);
  margin-bottom: var(--s-3);
}
.footer__list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer__list a { color: var(--c-shell-muted); }
.footer__list a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid var(--c-shell-border);
  max-width: var(--w-page); margin-inline: auto;
  padding: var(--s-4) var(--s-5);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
  font-size: var(--fs-12);
}
.footer__legal { color: var(--c-shell-muted); }
.footer__age {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid var(--c-shell-border);
  border-radius: var(--r-xs);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-shell-text);
  vertical-align: middle;
}

.cookie-bar {
  position: fixed;
  z-index: 80;
  right: var(--s-5);
  bottom: var(--s-5);
  width: min(380px, calc(100vw - 24px));
  background: var(--c-shell);
  color: var(--c-shell-text);
  border: 1px solid var(--c-shell-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
}
.cookie-bar__inner { padding: 14px 16px 12px; }
.cookie-bar__title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.cookie-bar__text {
  margin: 0 0 12px;
  font-size: var(--fs-13);
  line-height: 1.5;
  color: var(--c-shell-muted);
}
.cookie-bar__text a { color: #c5ddd0; }
.cookie-bar__text a:hover { color: #fff; }
.cookie-bar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-bar .cookie-bar__decline.btn--ghost {
  background: transparent;
  color: var(--c-shell-text);
  border-color: var(--c-shell-border);
}
.cookie-bar .cookie-bar__decline.btn--ghost:hover {
  background: var(--c-shell-3);
  color: #fff;
  border-color: #4a5e62;
}
.field--check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-13);
  line-height: 1.45;
  color: var(--c-text-2);
}
.field--check input { margin-top: 3px; flex: none; }

@media (max-width: 640px) {
  .cookie-bar {
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
  }
}

/* -----------------------------------------------------------------------------
   17. Страница темы: посты
   -------------------------------------------------------------------------- */
.thread-head { padding: var(--space-5); }
.thread-head__title { font-size: var(--fs-24); line-height: 1.25; margin-bottom: var(--space-2); }
.thread-head__meta {
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  font-size: var(--fs-12); color: var(--c-text-mute);
}

.post {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  border-bottom: 1px solid var(--c-border-soft);
}
.post:last-of-type { border-bottom: 0; }
.post__aside {
  padding: var(--s-4);
  border-right: 1px solid var(--c-border-soft);
  background: var(--c-surface-2);
  text-align: center;
}
.post__author {
  display: block; margin-top: var(--s-2);
  font-size: var(--fs-13); font-weight: 650; color: var(--c-text);
  word-break: break-word;
}
.post__author:hover { color: var(--c-link-hover); text-decoration: none; }
.post__roles { margin-top: var(--s-2); display: flex; justify-content: center; gap: var(--s-1); flex-wrap: wrap; }
.post__stats {
  margin-top: var(--s-3); padding-top: var(--s-3);
  border-top: 1px solid var(--c-border-soft);
  font-size: var(--fs-11); color: var(--c-text-mute); line-height: 1.7;
}
.post__main { padding: var(--s-4) var(--s-5); min-width: 0; }
.post__bar {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-12); color: var(--c-text-mute);
  margin-bottom: var(--s-3);
}
.post__num { margin-left: auto; font-variant-numeric: tabular-nums; }
.post__actions {
  display: flex; align-items: center; gap: var(--s-2);
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid var(--c-border-soft);
}
.post-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s ease;
}
.post-like__icon svg {
  display: block;
  transition: fill .15s ease, stroke .15s ease;
}
.post-like.is-liked {
  color: var(--c-green);
}
.post-like.is-liked .post-like__icon svg {
  fill: var(--c-green);
  stroke: var(--c-green);
}
.post-like__count {
  font-size: var(--fs-12);
  font-variant-numeric: tabular-nums;
  color: var(--c-text-mute);
  min-width: 1ch;
}
.post-like.is-liked .post-like__count {
  color: var(--c-green);
}

/* Тело поста (санитизированный HTML из архива) */
.post-body {
  font-size: var(--fs-15); line-height: 1.68; color: var(--c-text);
  overflow-wrap: break-word; word-break: break-word;
}
.post-body p { margin: 0 0 var(--s-3); }
.post-body p:last-child { margin-bottom: 0; }
.post-body a { color: var(--c-link); }
.post-body img { max-width: 100%; height: auto; border-radius: var(--r-sm); margin: var(--s-2) 0; }
.post-body ul, .post-body ol { margin: 0 0 var(--s-3); padding-left: var(--s-6); }
.post-body li { margin-bottom: var(--s-1); }
.post-body blockquote {
  margin: var(--s-3) 0; padding: var(--s-3) var(--s-4);
  background: var(--c-surface-2);
  border-left: 3px solid var(--c-border);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--c-text-2); font-size: var(--fs-14);
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body pre {
  background: var(--c-surface-3); padding: var(--s-3);
  border-radius: var(--r-sm); overflow-x: auto;
  font-family: var(--f-mono); font-size: var(--fs-13);
}
.post-body code { font-family: var(--f-mono); font-size: .92em; }
.post-body table { border-collapse: collapse; width: 100%; margin: var(--s-3) 0; font-size: var(--fs-13); }
.post-body th, .post-body td { border: 1px solid var(--c-border); padding: var(--s-2); text-align: left; }
.post-body th { background: var(--c-surface-2); font-weight: 650; }
.post-body hr { margin: var(--s-4) 0; }

/* Форма ответа */
.composer,
.thread-reply {
  padding: var(--space-5);
  margin-top: var(--space-4);
  border-top: 1px solid var(--c-border-soft);
  background: var(--c-surface);
}
.composer__grid { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.composer__stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-width: 0;
}
.composer__toolbar {
  display: flex; align-items: center; gap: var(--s-1);
  padding: var(--s-1);
  border: 1px solid var(--c-border);
  border-bottom: 0;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: var(--c-surface-2);
}
.composer__tool {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 28px; border-radius: var(--r-xs);
  color: var(--c-text-mute);
}
.composer__tool:hover { background: var(--c-surface-3); color: var(--c-text); }
.composer__preview {
  margin-top: var(--s-3); padding: var(--s-3) var(--s-4);
  border: 1px dashed var(--c-border); border-radius: var(--r-sm);
  background: var(--c-surface-2);
}
.composer__preview-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-text-dim);
  margin-bottom: var(--s-2);
}
.composer__foot,
.reply-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-border-soft);
  flex-shrink: 0;
}
.composer__foot-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
}
.composer__foot .btn--primary,
.reply-form__actions .btn--primary {
  min-height: 44px;
  padding: 0 var(--s-6);
  font-weight: 650;
}
.new-thread-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-border-soft);
}
.new-thread-form__actions .btn--primary {
  min-height: 44px;
  padding: 0 var(--s-6);
  font-weight: 650;
  margin-left: auto;
}

/* -----------------------------------------------------------------------------
   18. Формы
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.field__label { font-size: var(--fs-13); font-weight: 600; color: var(--c-text-2); }
.field__hint { font-size: var(--fs-12); color: var(--c-text-mute); }
.field__error { font-size: var(--fs-12); color: var(--c-clay); }

.input, .textarea, .select {
  width: 100%;
  min-height: 38px; padding: 8px var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-16); color: var(--c-text);
  transition: border-color var(--t), box-shadow var(--t), background-color var(--t);
}
.input:hover, .textarea:hover, .select:hover { border-color: #c5d4c8; }
.input:focus, .textarea:focus, .select:focus {
  outline: 0;
  border-color: var(--c-green);
  box-shadow: var(--focus-ring);
}
.input::placeholder, .textarea::placeholder { color: var(--c-text-dim); }
.textarea { min-height: 132px; resize: vertical; line-height: 1.6; font-family: var(--f-ui); }
.textarea--flush { border-radius: 0 0 var(--r-sm) var(--r-sm); }
.select { appearance: none; padding-right: var(--s-7); background-repeat: no-repeat; background-position: right 10px center; }

/* -----------------------------------------------------------------------------
   19. Статья (читаемая колонка)
   -------------------------------------------------------------------------- */
.article { padding: var(--s-6) var(--s-7); }
.article__kicker {
  font-size: var(--fs-12); font-weight: 650;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-green-dark); margin-bottom: var(--s-2);
}
.article__title {
  font-size: var(--fs-32); line-height: 1.18;
  letter-spacing: -.02em; margin-bottom: var(--s-3);
  max-width: 22ch;
}
.article__byline {
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  padding-bottom: var(--s-4); margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--c-border-soft);
  font-size: var(--fs-13); color: var(--c-text-mute);
}
.article__author { font-weight: 650; color: var(--c-text-2); }
.article__body {
  font-family: var(--font-sans);
  font-size: var(--fs-18); line-height: 1.75;
  width: 100%;
  max-width: none;
  color: var(--c-text);
}
.article__body p { margin: 0 0 var(--s-5); }
.article__body h2 {
  font-family: var(--f-ui);
  font-size: var(--fs-20); margin: var(--s-7) 0 var(--s-3);
}
.article__body h3 {
  font-family: var(--f-ui);
  font-size: var(--fs-16); margin: var(--s-6) 0 var(--s-2);
}
.article__body ul, .article__body ol { margin: 0 0 var(--s-5); padding-left: var(--s-6); }
.article__body img { border-radius: var(--r-md); margin: var(--s-5) 0; }
.article__body blockquote {
  margin: var(--s-5) 0; padding-left: var(--s-5);
  border-left: 3px solid var(--c-green);
  color: var(--c-text-2); font-style: italic;
}

.toc {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-bottom: var(--s-6);
  width: 100%;
  max-width: none;
}
.toc__title {
  font-size: 10px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--c-text-dim);
  margin-bottom: var(--s-2);
}
.toc__list { list-style: none; font-size: var(--fs-14); line-height: 1.9; font-family: var(--f-ui); }
.toc__list li { padding-left: var(--s-3); border-left: 2px solid var(--c-border); }

/* -----------------------------------------------------------------------------
   20. Плитки разделов (главная / список категорий)
   -------------------------------------------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: var(--s-3);
}
.cat-tile {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  transition: border-color var(--t), background-color var(--t);
}
.cat-tile:hover { border-color: var(--c-green); background: var(--c-surface-2); text-decoration: none; }
.cat-tile__icon {
  flex: none;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: var(--c-green-soft);
  color: var(--c-green-dark);
}
.cat-tile__icon svg { width: 26px; height: 26px; }
.cat-tile__body { min-width: 0; }
.cat-tile__name {
  display: block;
  font-size: var(--fs-13); font-weight: 650; line-height: 1.35;
  color: var(--c-text);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cat-tile__meta { font-size: var(--fs-11); color: var(--c-text-mute); margin-top: 2px; }

.cat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-4);
}
.cat-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  color: inherit; text-decoration: none;
}
.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: #c5cbb8;
  text-decoration: none;
}
.cat-card__media {
  display: block; height: 168px;
  background: var(--c-surface-2);
  overflow: hidden;
}
.cat-card__media img {
  width: 100%; height: 168px; object-fit: cover; object-position: center; display: block;
}
.cat-card__icon {
  display: flex; align-items: center; justify-content: center;
  height: 168px;
  color: var(--c-fish-green);
  background: linear-gradient(165deg, var(--c-fish-green-soft) 0%, var(--c-water-blue-soft) 100%);
}
.cat-card--hunt .cat-card__icon {
  color: var(--c-hunt-earth);
  background: linear-gradient(165deg, var(--c-hunt-earth-soft) 0%, var(--c-hunt-forest-soft) 100%);
}
.cat-card--hunt:hover { border-color: #c4b49a; }
.cat-card--fishing:hover { border-color: #9fd4b4; }
.cat-card__body { padding: var(--space-4) var(--space-5) var(--space-5); }
.cat-card__name {
  display: block; font-size: var(--fs-15); font-weight: 650; line-height: 1.3; color: var(--c-text);
}
.cat-card__desc {
  display: block; margin-top: 6px; font-size: var(--fs-12); color: var(--c-text-mute);
  line-height: 1.45;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.cat-card__meta { display: block; margin-top: 8px; font-size: var(--fs-11); color: var(--c-text-dim); }
.article-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.faq-item { border-bottom: 1px solid var(--c-border); padding: var(--space-3) 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { cursor: pointer; font-weight: 650; font-size: var(--fs-14); }
.faq-item p { margin: var(--space-2) 0 0; font-size: var(--fs-13); color: var(--c-text-mute); line-height: 1.5; }
.faq-block__byline { margin: var(--space-1) 0 0; }

.spot-meta strong { font-weight: 650; color: var(--c-text); }
.spot-card__lead { font-size: var(--fs-15); color: var(--c-text-2); margin-bottom: var(--s-4); }

.cta-funnel__lead { margin: 0 0 var(--s-4); color: var(--c-text-2); font-size: var(--fs-14); line-height: 1.55; }
.cta-funnel__grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.cta-funnel__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s;
}
.cta-funnel__item:hover {
  border-color: var(--c-green);
  background: var(--c-surface);
  color: inherit;
}
.cta-funnel__item--primary {
  border-color: rgba(45, 106, 79, .35);
  background: rgba(45, 106, 79, .06);
}
.cta-funnel__item--primary:hover { background: rgba(45, 106, 79, .1); }
.cta-funnel__label { font-weight: 650; font-size: var(--fs-14); color: var(--c-text); }
.cta-funnel__hint { font-size: var(--fs-12); color: var(--c-text-mute); line-height: 1.45; }

.article--editorial .article__kicker { color: var(--c-green); }
.article--spot .article__kicker { color: var(--c-text-mute); }
.cat-intro p { margin: 0 0 12px; font-size: var(--fs-14); line-height: 1.55; }
.cat-intro p:last-child { margin-bottom: 0; }
.article-list a { font-weight: 600; }

/* Article / spot — двухколоночный макет с контекстным сайдбаром */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(320px, 30%);
  gap: var(--s-5);
  align-items: start;
}
.article-layout__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.article-layout__main .article__figure,
.article-layout__main .article__body,
.article-layout__main .forum-head__cover {
  width: 100%;
  max-width: none;
}
.article-layout__sidebar { min-width: 0; }
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  position: sticky;
  top: calc(var(--h-topbar) + var(--s-4));
}
.article__actions {
  margin: var(--s-3) 0 var(--s-2);
  gap: var(--s-2);
}

.sidebar-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-md);
  padding: var(--space-5);
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.sidebar-card--cta {
  background: var(--c-green-soft);
  border-color: rgba(45, 106, 79, .18);
}
.sidebar-card--muted {
  background: var(--c-surface-2);
}
.sidebar-card--sticky { /* inherits sticky from parent .article-sidebar */ }
.sidebar-card__title {
  margin: 0;
  font-size: var(--fs-13);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-text-2);
}
.sidebar-card__text { margin: 0; line-height: 1.5; }
.sidebar-card__hint { margin: 0; }
.sidebar-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.sidebar-card__actions .btn {
  min-height: 44px;
}
.sidebar-card__link {
  display: inline-block;
  margin: 0;
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--c-green);
}
.sidebar-card__link:hover { color: var(--c-green-hover); }

.sidebar-spot-preview {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  margin: 0;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: inherit;
}
.sidebar-spot-preview:hover {
  border-color: var(--c-green);
  background: var(--c-green-soft);
}
.sidebar-spot-preview__pin {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-green);
}
.sidebar-spot-preview__name {
  font-weight: 650;
  font-size: var(--fs-14);
  line-height: 1.35;
}

.sidebar-facts {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-card__row,
.sidebar-facts__row {
  display: grid;
  grid-template-columns: minmax(88px, 35%) 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--c-border-soft);
  font-size: var(--fs-13);
}
.sidebar-card__row:last-child,
.sidebar-facts__row:last-child { border-bottom: 0; }
.sidebar-card__row dt,
.sidebar-facts__row dt {
  margin: 0;
  color: var(--c-text-mute);
  font-weight: 500;
  line-height: 1.45;
}
.sidebar-card__row dd,
.sidebar-facts__row dd {
  margin: 0;
  color: var(--c-text);
  line-height: 1.45;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.sidebar-thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.sidebar-thread-list a {
  display: block;
  font-weight: 600;
  font-size: var(--fs-14);
  line-height: 1.35;
  color: var(--c-text);
}
.sidebar-thread-list a:hover { color: var(--c-green); }

.sidebar-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.sidebar-related__item {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}
.sidebar-related__thumb {
  flex-shrink: 0;
  display: block;
  width: 64px;
  height: 48px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--c-border-soft);
}
.sidebar-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-related__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-related__body a {
  font-weight: 600;
  font-size: var(--fs-13);
  line-height: 1.35;
}

.sidebar-faq {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.sidebar-faq a {
  font-size: var(--fs-13);
  line-height: 1.45;
  color: var(--c-text-2);
}
.sidebar-faq a:hover { color: var(--c-green); }
.forum-head { display: flex; flex-direction: column; overflow: hidden; }
.forum-head__cover {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.forum-head__inner { display: flex; gap: var(--space-3); padding: var(--space-5); align-items: flex-start; }
.water-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--s-3);
  max-width: 100%;
}
.water-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-2);
  font-size: var(--fs-12);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.water-chip span {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--c-text-mute);
}
.water-chip:hover {
  border-color: var(--c-green);
  color: var(--c-green-dark);
  background: var(--c-green-soft);
}
.water-chip.is-active {
  border-color: var(--c-green);
  background: var(--c-green-soft);
  color: var(--c-green-dark);
}
.water-chip.is-active span { color: var(--c-green-dark); }
.water-chip__icon {
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
  color: var(--c-fish-green);
  vertical-align: -2px;
}
.water-chip--hunt .water-chip__icon { color: var(--c-hunt-earth); }
.water-chip--hunt.is-active {
  background: var(--c-hunt-earth-soft);
  border-color: #c4b49a;
  color: var(--c-hunt-brown);
}
.water-chip--hunt.is-active span { color: var(--c-hunt-brown); }
.forum-p0-chips { margin-top: 0; }
.tab__icon {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  vertical-align: -2px;
  opacity: .82;
}
.tab.is-active .tab__icon { opacity: 1; }
.sidenav__group--fishing .sidenav__caption { color: var(--c-fish-green); }
.sidenav__group--hunt .sidenav__caption { color: var(--c-hunt-earth); }
.sidenav__group--gear .sidenav__caption { color: var(--c-water-blue); }
.sidenav__group--hunt .sidenav__link.is-active {
  background: var(--c-hunt-earth-soft);
  color: var(--c-hunt-brown);
  border-left-color: var(--c-hunt-earth);
}
.nav-main__icon {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  vertical-align: -2px;
  opacity: .88;
}
.dropdown__icon {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  color: var(--c-text-dim);
  vertical-align: -2px;
}
.dropdown__item.is-active .dropdown__icon,
.dropdown__item:hover .dropdown__icon { color: currentColor; }
.dropdown__item--hunt .dropdown__icon { color: var(--c-hunt-earth); }
.page-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  margin-bottom: var(--s-4);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
}
.page-banner__media {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
}
.page-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-5);
}
.page-banner--hunting {
  border-color: #d8cfc0;
  background: linear-gradient(135deg, var(--c-hunt-earth-soft) 0%, var(--c-surface) 55%);
}
.page-banner--hunting .page-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--r-md);
  background: var(--c-hunt-forest-soft);
  color: var(--c-hunt-forest);
}
.page--hunting .hunt-map-info {
  background: color-mix(in srgb, var(--c-hunt-earth-soft) 70%, var(--c-surface) 30%);
  border-color: #d8cfc0;
}
.page--hunting .card__head .card__title { color: var(--c-hunt-brown); }
@media (max-width: 640px) {
  .water-chips { margin-top: var(--s-2); gap: 5px; }
  .forum-p0-chips { margin-top: 0; }
  .water-chip { min-height: 24px; padding: 2px 8px; font-size: 11px; }
}
.article__figure { margin: var(--s-4) 0; }
.article__figure img { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: var(--r-md); }
.article__credit { font-size: 11px; color: var(--c-text-dim); margin-top: 6px; }

@media (max-width: 640px) {
  .cat-cards { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .cat-card__media, .cat-card__media img, .cat-card__icon { height: 96px; }
}
@media (max-width: 420px) {
  .cat-cards { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------------------
   21. Пустые состояния
   -------------------------------------------------------------------------- */
.empty {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: var(--s-8) var(--s-5);
}
.empty__art { width: 108px; height: 88px; color: var(--c-border); margin-bottom: var(--s-4); }
.empty__title { font-size: var(--fs-16); font-weight: 650; margin-bottom: var(--s-2); }
.empty__text { font-size: var(--fs-13); color: var(--c-text-mute); max-width: 42ch; margin-bottom: var(--s-4); }

/* -----------------------------------------------------------------------------
   22. Toast
   -------------------------------------------------------------------------- */
.toasts {
  position: fixed; right: var(--s-5); bottom: var(--s-5);
  z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: var(--s-2);
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: var(--s-3);
  min-width: 240px; max-width: 380px;
  padding: var(--s-3) var(--s-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-green);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  font-size: var(--fs-13);
  pointer-events: auto;
}
.toast--error { border-left-color: var(--c-clay); }
.toast--info  { border-left-color: var(--c-blue); }

/* -----------------------------------------------------------------------------
   23. Карта
   -------------------------------------------------------------------------- */
.map-stage { position: relative; }
.map-canvas {
  position: relative;
  z-index: 1;
  width: 100%; height: 520px; min-height: 480px;
  border-radius: var(--r-md);
  background: var(--c-surface-3);
  overflow: hidden;
}
.map-toolbar {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  pointer-events: auto;
}
.map-canvas .leaflet-container { width: 100%; height: 100%; font: inherit; }
.map-pin-wrap { background: transparent; border: 0; }
.map-toolbar__btn {
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-size: var(--fs-12);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  background: var(--c-surface-2);
  color: var(--c-text);
  box-shadow: none;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.map-toolbar__btn:hover {
  border-color: var(--theme-border-hover, #c5d4c8);
  color: var(--c-text);
  background: var(--c-surface-3);
}
.map-toolbar__btn.is-active {
  background: var(--c-green);
  border-color: var(--c-green);
  color: #fff;
}
[data-section="fish"] .map-toolbar__btn.is-active,
.page--fishing .map-toolbar__btn.is-active {
  background: var(--c-water-blue);
  border-color: var(--c-water-blue);
}
[data-section="hunt"] .map-toolbar__btn.is-active,
.page--hunting .map-toolbar__btn.is-active {
  background: var(--c-hunt-forest);
  border-color: var(--c-hunt-forest);
}
.map-toolbar__btn--layer.is-active { opacity: 1; }
.map-key-form { margin-bottom: 14px; }
.map-key-form__title { font-weight: 600; margin: 0 0 8px; }
.map-key-form__label { display: block; font-size: 13px; margin: 10px 0 6px; }
.map-key-form__row { display: flex; gap: 8px; flex-wrap: wrap; }
.map-key-form__input {
  flex: 1; min-width: 220px; height: 40px; padding: 0 10px;
  border: 1px solid var(--c-line, #d5ddd8); border-radius: 8px;
}
.ymap-pin {
  width: 14px; height: 14px; border-radius: 50%;
  background: #1a5f3a; border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.ymap-pin--cluster {
  width: auto; min-width: 28px; height: 28px; border-radius: 14px;
  color: #fff; font: 12px/28px sans-serif; text-align: center;
  padding: 0 7px; border: 0;
}
.ymap-pin--report {
  background: #c45c1a;
  width: 12px; height: 12px;
}
.thread-geo {
  padding: var(--s-4);
  border: 1px solid var(--c-line, #d5ddd8);
  border-radius: var(--r-md);
  background: var(--c-surface-2, #f6f8f7);
}
.thread-geo__hint { margin: 0 0 var(--s-3); }
.thread-geo__map-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--s-2);
}
.thread-geo__expand-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 var(--s-4);
  font-size: var(--fs-14);
}
.thread-geo__map {
  width: 100%;
  height: 300px;
  min-height: 240px;
  border-radius: var(--r-sm);
  margin-bottom: var(--s-3);
  overflow: hidden;
  background: var(--c-surface-3);
  transition: height 0.2s ease;
}
.thread-geo__map--expanded {
  height: min(60vh, 520px);
  min-height: 480px;
}
.thread-geo__map .leaflet-container { width: 100%; height: 100%; font: inherit; }
.thread-geo__coords { gap: var(--s-3); margin-bottom: var(--s-3); }
.field--inline { flex: 1; min-width: 140px; }
.map-legend-key {
  display: inline-flex; align-items: center; gap: 6px;
}
.map-legend-key::before {
  content: '';
  width: 10px; height: 10px; border-radius: 50%;
  background: #c45c1a; border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.map-legend-key--water::before { background: #1a5f3a; }
.map-legend-key--hunt-public::before { background: #1a7a3a; }
.map-legend-key--hunt-allocated::before { background: #6b5344; }
.map-legend-key--hunt-ugodie::before { background: #1a7a3a; }
.map-legend-key--hunt-zakaznik::before { background: #b42318; }
.map-legend-key--hunt-obhod::before { background: #c76a00; }
.map-legend-key--hunt-district::before { background: #5d8a66; }
.hunt-district-label {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.hunt-district-label span {
  display: inline-block;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  color: #1a1f24;
  text-shadow: 0 0 3px #fff, 0 0 6px #fff, 1px 1px 0 #fff, -1px -1px 0 #fff;
  white-space: nowrap;
  pointer-events: none;
}
.hunt-district-label--hidden span { opacity: 0; }
.hunt-district-popup__list {
  list-style: none;
  margin: 0 0 var(--s-2);
  padding: 0;
  max-height: 200px;
  overflow: auto;
}
.hunt-district-popup__list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--c-border-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hunt-district-popup__list a { font-size: var(--fs-13); font-weight: 500; }
.map-toolbar--layers { flex-wrap: wrap; max-width: min(100%, 480px); }
.map-toolbar__sep { width: 1px; height: 20px; background: var(--c-border); margin: 0 4px; align-self: center; }
.map-toolbar__btn--layer:not(.is-active) { opacity: 0.9; }
.map-stage--hunting .leaflet-container { background: #1a1f24; }
.hunt-map__empty {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: rgba(26, 31, 36, 0.72);
  color: #c8d0d8;
  pointer-events: none;
}
.map-stage--hunting { position: relative; }
.hunt-map-stage { margin-top: var(--s-3); }
.hunt-map-info {
  margin-bottom: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-1);
}
.hunt-map-info__title { font-weight: 600; margin: 0 0 var(--s-1); font-size: var(--fs-13); }
.hunt-map-info__text { margin: 0; line-height: 1.5; }
.hunt-map-catalog {
  position: absolute;
  top: 52px;
  right: 12px;
  z-index: 600;
  width: min(320px, calc(100% - 24px));
  max-height: calc(100% - 88px);
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.hunt-map-catalog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-border-soft);
  background: var(--c-surface);
  min-height: 46px;
}
.hunt-map-catalog__title {
  font-weight: 650;
  font-size: var(--fs-14);
  font-family: var(--font-display);
  color: var(--c-hunt-brown);
}
.hunt-map-catalog__close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--c-text-mute);
  padding: 0 4px;
  border-radius: var(--r-sm);
  transition: color var(--t), background-color var(--t);
}
.hunt-map-catalog__close:hover { color: var(--c-text); background: var(--c-surface-2); }
.hunt-map-catalog__search { display: block; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--c-border-soft); }
.hunt-map-catalog__search input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font: inherit;
  background: var(--c-surface);
  transition: border-color var(--t), box-shadow var(--t);
}
.hunt-map-catalog__search input:focus {
  outline: none;
  border-color: var(--c-hunt-earth);
  box-shadow: var(--focus-ring);
}
.hunt-map-catalog__list {
  list-style: none;
  margin: 0;
  padding: 0 var(--s-2) var(--s-2);
  overflow-y: auto;
  flex: 1;
  min-height: 120px;
}
.hunt-map-catalog__item {
  padding: 8px 6px;
  border-bottom: 1px solid var(--c-border-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hunt-map-catalog__item a { font-size: var(--fs-13); font-weight: 500; }
.hunt-map-catalog__link {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--c-link);
  cursor: pointer;
}
.hunt-map-catalog__link:hover { text-decoration: underline; }
.hunt-map-label {
  background: rgba(255, 255, 255, 0.88) !important;
  border: none !important;
  box-shadow: none !important;
  color: #1a3d1f !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 1px 4px !important;
  pointer-events: none;
  white-space: nowrap;
}
.hunt-map-label--restriction {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(180, 35, 24, 0.45) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
  color: #b42318 !important;
  font-weight: 700 !important;
  max-width: 260px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  text-shadow:
    0 0 2px #fff,
    0 0 4px #fff,
    1px 0 0 #fff,
    -1px 0 0 #fff,
    0 1px 0 #fff,
    0 -1px 0 #fff;
  z-index: 720;
}
.hunt-map-label--obhod {
  color: #1a3d1f !important;
}
.leaflet-tooltip.hunt-map-label::before { display: none; }
.map-popup__status {
  margin: 0 0 var(--s-3);
  font-size: var(--fs-13);
}
.map-popup__status--ban { color: #b42318; }
.map-popup__status--ok { color: #1a7a3a; }
.hunt-map-catalog__empty { padding: var(--s-3); text-align: center; }
.hunt-map-catalog__foot { padding: var(--s-2) var(--s-3); border-top: 1px solid var(--c-border-soft); margin: 0; }
.hunt-map-attribution {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--c-text-mute);
  padding: var(--s-2) var(--s-3);
  margin-top: var(--s-2);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--c-surface) 92%, transparent);
  border: 1px solid var(--c-border-soft);
}
.hunt-map-attribution a { color: inherit; text-decoration: underline; }
.hunt-map-attribution__scanex { flex-basis: 100%; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.map-legend {
  display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  font-size: var(--fs-12); color: var(--c-text-mute);
  padding-top: var(--s-3);
}
.map-popup-wrap .leaflet-popup-content-wrapper {
  background: #252b29;
  color: #e8ede6;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  padding: 0;
  max-width: min(300px, calc(100vw - 48px));
}
.map-popup-wrap .leaflet-popup-content {
  margin: var(--s-3) 36px var(--s-3) var(--s-4);
  line-height: 1.45;
  font-size: var(--fs-14);
  color: #e8ede6;
  max-width: 280px;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
}
.map-popup-wrap a {
  color: var(--c-link);
  font-weight: 500;
}
.map-popup-wrap a:hover { color: var(--c-link-hover); }
.map-popup-wrap a.leaflet-popup-close-button {
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  font: 700 22px/26px Tahoma, Verdana, sans-serif;
  color: #e8ede6;
  background: #323a30;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  z-index: 10;
}
.map-popup-wrap a.leaflet-popup-close-button:hover,
.map-popup-wrap a.leaflet-popup-close-button:focus {
  color: #fff;
  background: #3d4a38;
  border-color: var(--c-text-mute);
}
.map-popup-wrap .leaflet-popup-content p {
  margin: 0 0 var(--s-2);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  display: block;
  -webkit-line-clamp: unset;
}
.map-popup-wrap .leaflet-popup-tip {
  background: #252b29;
  border: 1px solid var(--c-border);
  box-shadow: none;
}
.map-popup__title {
  margin: 0 0 var(--s-2);
  font-weight: 700;
  font-size: var(--fs-15);
  color: #fff;
}
.map-popup__region { margin: 0 0 var(--s-3); font-size: var(--fs-13); color: var(--c-text-2); }
.map-popup__photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 146px;
  object-fit: cover;
  border-radius: var(--r-sm);
  margin: 0 0 var(--s-3);
}
.map-popup__desc {
  margin: 0 0 var(--s-2);
  font-size: var(--fs-13);
  line-height: 1.5;
  color: #e8ede6;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: normal;
  overflow-wrap: anywhere;
}
.map-popup__fish,
.map-popup__bait,
.map-popup__who {
  margin: 0 0 var(--s-2);
  font-size: var(--fs-12);
  line-height: 1.4;
  color: var(--c-text-2);
}
.map-popup__label { font-weight: 600; color: #e8ede6; }
.map-popup-wrap .muted { color: var(--c-text-mute); }
.spot-catch-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin: 0 0 var(--s-4);
  padding: var(--s-3);
  background: var(--c-surface-2, rgba(0,0,0,.04));
  border-radius: var(--r-md);
  font-size: var(--fs-13);
}
.spot-catch-bar__item { line-height: 1.4; }
.map-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  width: 100%;
  text-decoration: none;
}
.map-canvas .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.map-canvas .leaflet-control-zoom a {
  width: 36px; height: 36px;
  line-height: 36px;
  font-size: 18px;
  color: var(--c-text);
  background: var(--c-surface);
}
.map-canvas .leaflet-control-attribution {
  font-size: 10px;
  background: color-mix(in srgb, var(--c-surface) 92%, transparent);
  padding: 2px 6px;
  max-width: calc(100% - 120px);
}
.map-canvas .leaflet-bottom.leaflet-right {
  margin-bottom: 8px;
  margin-right: 8px;
}

/* -----------------------------------------------------------------------------
   24. Off-canvas (мобильный левый сайдбар)
   -------------------------------------------------------------------------- */
.scrim {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(16, 22, 20, .5);
}

@media (max-width: 1023px) {
  .col-side--left { display: none; }
}

/* -----------------------------------------------------------------------------
   25. Утилиты
   -------------------------------------------------------------------------- */
.muted { color: var(--c-text-mute); }
.dim   { color: var(--c-text-dim); }
.small { font-size: var(--fs-12); }
.nums  { font-variant-numeric: tabular-nums; }
.row   { display: flex; align-items: center; gap: var(--s-3); }
.row--wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: var(--s-3); }
.push  { margin-left: auto; }
.center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }

.divider { height: 1px; background: var(--c-border-soft); }

.prose-note {
  font-size: var(--fs-13); line-height: 1.65; color: var(--c-text-2);
  max-width: 80ch;
}

/* -----------------------------------------------------------------------------
   26. Адаптив
   -------------------------------------------------------------------------- */

/* 1280–1920: компактная шапка, «Больше» всегда видно */
@media (min-width: 1024px) and (max-width: 1440px) {
  .topbar__inner { gap: var(--s-2); padding-inline: var(--s-3); }
  .topbar__sub { display: none; }
  .nav-main__link {
    padding-inline: clamp(6px, .8vw, 10px);
    font-size: 11px;
    letter-spacing: .035em;
  }
  .topbar__profile-name,
  .topbar__profile-chevron { display: none; }
  .topbar__profile-btn { max-width: none; padding-inline: var(--s-1); }
  .topbar__tools { gap: 2px; }
}

@media (min-width: 1441px) {
  .topbar__inner { gap: var(--s-4); padding-inline: var(--s-5); }
  .nav-main__link {
    padding-inline: var(--s-3);
    font-size: var(--fs-13);
    letter-spacing: .05em;
  }
}

/* 1024–1279: правый сайдбар уходит вниз */
@media (max-width: 1279px) {
  :root { --w-left: 212px; }
  .layout { grid-template-columns: var(--w-left) minmax(0, 1fr); }
  .col-side--right {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--s-4);
  }
  .col-side--sticky { position: static; }
  .hero__stats { gap: var(--s-3); }
  .hub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* до 1023: одна колонка; гамбургер вместо десктоп-навигации */
@media (max-width: 1023px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding-inline: var(--s-4); }
  .topbar__burger { display: inline-flex; }
  .nav-main { display: none; }
  .hero__inner { flex-direction: column; align-items: flex-start; gap: var(--s-5); padding-inline: var(--s-4); }
  .hero__stats { justify-content: flex-start; width: 100%; gap: var(--s-3); }
  .hero__cta { width: 100%; }
  .hero__cta .btn { width: auto; }
  .hub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statbar__inner { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__sitelinks-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post__aside {
    display: flex; align-items: center; gap: var(--s-3);
    text-align: left;
    border-right: 0; border-bottom: 1px solid var(--c-border-soft);
    padding: var(--s-3) var(--s-4);
  }
  .post__author { margin-top: 0; }
  .post__stats {
    margin: 0 0 0 auto; padding: 0; border: 0;
    text-align: right; white-space: nowrap;
  }
  .article { padding: var(--s-5); }
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--s-4);
  }
}

/* до 900: ещё компактнее хедер */
@media (max-width: 900px) {
  .topbar__inner { gap: var(--s-2); padding-inline: var(--s-3); }
  .topbar__tools { gap: 2px; }
  .topbar__register { display: none; }
  .topbar__profile-name,
  .topbar__profile-chevron { display: none; }
  .topbar__profile-btn { max-width: none; padding-inline: var(--s-1); }
}

/* до 767: мобильный */
@media (max-width: 767px) {
  :root { --h-hero: 280px; }
  body { font-size: 15px; }
  .post-body { font-size: 16px; }
  .article__body { font-size: 17px; }
  .wrap { padding-inline: var(--s-4); }
  .layout { padding: var(--s-4) var(--s-4) var(--s-7); }
  .layout--single { padding-inline: var(--s-4); }
  .topbar__inner { padding-inline: var(--s-2); gap: var(--s-1); }
  .topbar__sub { display: none; }
  .searchbox.is-open {
    position: fixed;
    top: calc(var(--h-topbar) + 8px);
    left: 12px; right: 12px;
    width: auto;
  }

  .hero__inner { padding: var(--s-6) var(--s-4) var(--s-5); }
  .hero__h1 { font-size: 28px; }
  .hero__stats { gap: var(--s-3); flex-wrap: wrap; }
  .hero-stat { min-width: calc(50% - 8px); flex: 1 1 calc(50% - 8px); }
  .hero-stat__value { font-size: var(--fs-20); }
  .hub-cards { grid-template-columns: 1fr; }
  .hub-split { grid-template-columns: 1fr; }

  /* Компактная строка темы: убираем колонку счётчиков, метаданные — в одну строку */
  .thread-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: var(--s-3);
    padding: var(--s-3);
  }
  .thread-row__nums { display: none; }
  .thread-row__last {
    grid-column: 2; grid-row: 2;
    justify-content: flex-start; gap: var(--s-2);
    margin-top: 2px;
  }
  .thread-row__last .avatar { display: none; }
  .thread-row__last-text b { display: inline; max-width: none; }

  .card__head { padding: var(--s-3); min-height: 44px; }
  .card__body { padding: var(--s-3); }
  .article__title { font-size: var(--fs-24); max-width: none; }
  .article__body { font-size: 16px; }
  .article-sidebar { grid-template-columns: 1fr; }
  .sidebar-card { padding: var(--space-4); }
  .statbar__inner { grid-template-columns: 1fr 1fr; gap: var(--s-4); padding: var(--s-4) var(--s-3); }
  .footer__inner { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-6) var(--s-3); }
  .footer__sitelinks { padding-inline: var(--s-3); }
  .footer__sitelinks-list { grid-template-columns: 1fr; }
  .footer__bottom { padding: var(--s-4) var(--s-3); }
  .toasts { right: var(--s-3); left: var(--s-3); bottom: var(--s-3); }
  .toast { max-width: none; }
  .composer__grid { grid-template-columns: minmax(0, 1fr); }
  .composer__grid > .avatar { display: none; }
  .map-canvas { height: 480px; min-height: 480px; }
  .map-toolbar { top: auto; bottom: 52px; right: 8px; left: auto; }
  .map-canvas .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
  .thread-geo__map { height: 240px; }
  .thread-geo__map--expanded {
    height: min(60vh, 480px);
    min-height: 400px;
  }
  .thread-geo__map .leaflet-control-zoom a {
    width: 44px; height: 44px; line-height: 44px;
  }
  .map-popup-wrap .leaflet-popup-content { margin: var(--s-4); font-size: 15px; }
  .map-popup__btn { min-height: 44px; }

  /* Тач-таргеты: увеличиваем область нажатия, не раздувая шрифт */
  .sidenav__link { padding-block: 11px; }
  .tab { padding-block: 14px; }
  .pager__link { min-width: 40px; height: 40px; }
  .icon-btn { width: 44px; height: 44px; }
  .topbar__login { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Печать: убираем каркас, оставляем контент */
@media print {
  .topbar, .hero, .statbar, .footer, .col-side, .composer, .tabs, .cookie-bar { display: none !important; }
  .layout { grid-template-columns: 1fr; padding: 0; }
  .card { border: 0; box-shadow: none; }
  body { background: var(--c-surface); }
}

.layout--profile {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding: var(--s-5) var(--s-5) var(--s-8);
}
body[data-page="account"] .layout,
body[data-page="member"] .layout {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
}

/* -----------------------------------------------------------------------------
   Профиль: сайдбар + контент (account / member)
   -------------------------------------------------------------------------- */
.profile-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
  width: 100%;
  max-width: none;
}
.profile-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  max-width: none;
}
@media (min-width: 1280px) {
  .profile-layout {
    grid-template-columns: 272px minmax(0, 1fr);
    gap: var(--s-7);
  }
}
.profile-sidebar {
  position: sticky;
  top: calc(var(--h-topbar) + var(--s-4));
  overflow: hidden;
}
.profile-sidebar__head {
  padding: var(--s-4);
  border-bottom: 1px solid var(--c-border-soft);
  background: var(--c-surface);
}
.profile-sidebar__identity {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: inherit;
}
.profile-sidebar__identity:hover { text-decoration: none; }
.profile-sidebar__avatar {
  flex: none;
  border: 2px solid var(--c-surface);
  box-shadow: var(--sh-2);
}
.profile-sidebar__who {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  min-width: 0;
}
.profile-sidebar__name {
  font-size: var(--fs-15);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
  word-break: break-word;
}
.profile-sidebar__meta {
  margin: var(--s-3) 0 0;
  line-height: 1.45;
}
.profile-sidebar__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  margin: var(--s-4) 0 0;
  padding: 0;
}
.profile-sidebar__stat {
  padding: var(--s-3);
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-soft);
}
.profile-sidebar__stat dt {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-1);
  font-size: var(--fs-12);
  color: var(--c-text-mute);
  font-weight: 550;
}
.profile-sidebar__stat dd {
  margin: 0;
  font-size: var(--fs-20);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--c-text);
  line-height: 1.1;
}
.profile-follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-3);
  width: 100%;
  justify-content: center;
  border: 1px solid var(--c-border-soft);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.profile-follow__icon svg {
  display: block;
  transition: fill .15s ease, stroke .15s ease;
}
.profile-follow.is-following,
.profile-follow.is-active {
  background: rgba(61, 139, 82, .12);
  border-color: rgba(61, 139, 82, .35);
  color: var(--c-green);
}
.profile-follow.is-following .profile-follow__icon svg,
.profile-follow.is-active .profile-follow__icon svg {
  fill: var(--c-green);
  stroke: var(--c-green);
}
.topbar__bell {
  position: relative;
}
.topbar__bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--c-green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}
.topbar__bell--has:hover .topbar__bell-badge {
  background: var(--c-green-hover);
}
.profile-sidenav .sidenav__group { padding: var(--s-2) 0; }
.profile-sidenav__sep {
  height: 1px;
  margin: var(--s-2) var(--s-4);
  background: var(--c-border-soft);
}
.profile-sidenav__link--emphasis {
  font-weight: 650;
}
.profile-sidenav .sidenav__link {
  min-height: 44px;
  padding-block: 11px;
}
.profile-main__head {
  padding: 0 var(--s-1);
}
.profile-main__head--member {
  padding-bottom: var(--s-1);
}
.profile-main__title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-family: var(--f-ui);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.profile-main__sub {
  margin: var(--s-2) 0 0;
  font-size: var(--fs-14);
  line-height: 1.5;
  max-width: 62ch;
}
.profile-main__actions {
  margin-top: var(--s-3);
}
.profile-panel { margin-top: 0; }
.profile-about {
  line-height: 1.65;
  white-space: pre-wrap;
  font-size: var(--fs-15);
}

.account-sections { min-width: 0; }
.account-section {
  scroll-margin-top: calc(var(--h-topbar) + var(--s-5));
}
.account-section .card__title { margin: 0; font-size: var(--fs-18); }
.account-avatar-row {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  flex-wrap: wrap;
}
.account-avatar-upload { flex: 1; min-width: 200px; }
.account-flash {
  margin: 0 0 var(--s-3);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: var(--fs-14);
}
.account-flash--ok {
  background: var(--c-green-soft);
  color: var(--c-green-dark);
}

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  .profile-sidebar {
    position: static;
  }
  .profile-sidenav .sidenav__group {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--s-1);
    padding: var(--s-2) var(--s-3);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .profile-sidenav .sidenav__group::-webkit-scrollbar { display: none; }
  .profile-sidenav .sidenav__link {
    flex: 0 0 auto;
    min-height: 44px;
    border-left: 0;
    border-radius: var(--r-sm);
    border: 1px solid var(--c-border-soft);
    padding-inline: var(--s-3);
    white-space: nowrap;
  }
  .profile-sidenav .sidenav__link.is-active {
    border-color: var(--c-green);
  }
  .profile-sidenav__sep { display: none; }
  .profile-sidebar__stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .activity-item--video { grid-template-columns: 88px 1fr auto; }
  .activity-item__thumb { width: 80px; height: 45px; }
}

/* Video bloggers (carousel max 4 on home) */
.video-carousel {
  display: flex;
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--s-4);
  -webkit-overflow-scrolling: touch;
}
.video-carousel__cta { padding: 0 var(--s-4) var(--s-4); margin: 0; }
.empty--compact { padding: var(--s-6) var(--s-4); text-align: center; }
.empty--compact .empty__title { margin: 0 0 var(--s-2); font-size: var(--fs-16); }
.empty--compact .empty__text { margin: 0; }
.video-card {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-elevated);
  border: 1px solid var(--c-border);
}
.video-card--grid { flex: unset; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-4);
  padding: var(--s-4);
}
.video-card__thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--c-bg);
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
}
.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.55);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  pointer-events: none;
}
.video-card__play--lg { width: 64px; height: 64px; font-size: 22px; }
.video-card__body { padding: var(--s-3); }
.video-card__title {
  display: block;
  font-weight: 600;
  font-size: var(--fs-14);
  line-height: 1.35;
  color: var(--c-text);
  text-decoration: none;
}
.video-card__title:hover { color: var(--c-accent); }
.video-card__meta { margin: var(--s-1) 0 0; }
.video-embed { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--r-md); overflow: hidden; }
.video-embed__poster {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.video-embed__poster img { width: 100%; height: 100%; object-fit: cover; }
.video-embed__frame { width: 100%; height: 100%; border: 0; }
.video-embed__fallback {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.video-embed__fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.video-embed__fallback-actions {
  position: relative;
  z-index: 1;
  padding: var(--s-4);
  text-align: center;
}
.admin-row { padding: var(--s-4); margin-bottom: var(--s-3); }
.admin-nav { padding: var(--s-3); margin-bottom: var(--s-2); }
.admin-nav__links { gap: var(--s-2); }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-3);
}
.admin-tile {
  display: block;
  padding: var(--s-4);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease;
}
.admin-tile:hover { border-color: var(--c-accent); }
.admin-tile .h4 { margin: 0 0 var(--s-2); }
.table-wrap { overflow-x: auto; }
.table--compact { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table--compact th,
.table--compact td { padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--c-border); text-align: left; }
.card--flat { background: var(--c-elevated); }
.blogger-cta { margin-bottom: var(--s-4); }
.topbar__admin { margin-right: var(--s-2); white-space: nowrap; }

/* Блогеры: широкий layout + сайдбар */
.profile-layout--blogery {
  grid-template-columns: 260px minmax(0, 1fr);
}
.blogery-sidebar__cta {
  padding: 0 var(--s-4) var(--s-3);
}
.blogery-sidebar__meta {
  padding: 0 var(--s-4) var(--s-4);
  margin: 0;
}
.blogery-main .profile-main__head {
  margin-bottom: var(--s-2);
}
.blogery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-4);
  padding: var(--s-4);
}
.blogery-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.blogery-card--text {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-elevated);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.blogery-card--text:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-sm);
}
.blogery-card__link {
  display: block;
  padding: var(--s-4);
  text-decoration: none;
  color: inherit;
}
.blogery-card__title {
  margin: var(--s-2) 0 var(--s-2);
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-text);
}
.blogery-card__link:hover .blogery-card__title { color: var(--c-accent); }
.blogery-card__excerpt {
  margin: 0 0 var(--s-2);
  font-size: var(--fs-14);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blogery-card__meta { margin: 0; }
.blogery-post__body { font-size: var(--fs-16); line-height: 1.65; }
.activity-item__badge--article { background: rgba(74, 124, 89, .12); color: #3d5c3a; }
.activity-item__badge--gear { background: rgba(176, 133, 48, .14); color: #8a6420; }
[data-theme="dark"] .activity-item__badge--article { color: #a8c9ae; }
[data-theme="dark"] .activity-item__badge--gear { color: #d4b06a; }
@media (max-width: 900px) {
  .profile-layout--blogery { grid-template-columns: 1fr; }
  .profile-layout--admin { grid-template-columns: 1fr; }
}

/* Admin wide layout */
.profile-layout--admin {
  grid-template-columns: 240px minmax(0, 1fr);
}
.admin-main .profile-main__title { margin: 0; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--s-3);
}
.admin-stat {
  padding: var(--s-3);
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-soft);
  text-align: center;
}
.admin-stat__val {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
}
.admin-stat__label {
  display: block;
  margin-top: var(--s-1);
  font-size: .82rem;
  color: var(--c-text-muted);
}
.admin-row--compact { padding: var(--s-2) 0; border-bottom: 1px solid var(--c-border-soft); }
.admin-row--compact:last-child { border-bottom: 0; }
.admin-filter { margin-bottom: var(--s-2); }

/* Inline staff moderation */
.staff-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-3);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-soft);
  border-left: 3px solid var(--c-accent);
}
.staff-bar__label {
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .72rem;
}
.staff-bar__actions { gap: var(--s-2); flex: 1; }
.staff-bar__move {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.staff-bar__danger { color: var(--c-danger, #b54a4a); }
.staff-bar__danger:hover { color: var(--c-danger, #b54a4a); border-color: var(--c-danger, #b54a4a); }
.post__mod-form { display: inline; }
.staff-flash { margin: 0 0 var(--s-2); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -----------------------------------------------------------------------------
   Gov-portal micro-interactions (Avensis reference)
   -------------------------------------------------------------------------- */
.cat-tile,
.activity-item,
.hub-split__card,
.event-item,
.rank-item {
  transition: background-color var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
}
.cat-tile:hover,
.activity-item:hover {
  border-color: #c5d4c8;
  box-shadow: var(--sh-2);
  transform: translateY(-1px);
}
.topbar__burger,
.topbar__profile-btn,
.topbar__login {
  transition: background-color var(--t), color var(--t), box-shadow var(--t);
}
.topbar__profile-btn:focus-visible,
.topbar__burger:focus-visible,
.nav-main__link:focus-visible {
  box-shadow: inset var(--focus-ring);
}
.sidenav__link.is-active {
  box-shadow: inset 3px 0 0 var(--c-green);
}
.tab.is-active {
  box-shadow: inset 0 -2px 0 var(--c-green);
}
.card__title,
.thread-row__title a,
.article__title {
  transition: color var(--t);
}
.thread-row__title a:hover {
  color: var(--c-link);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cat-tile:hover,
  .activity-item:hover,
  .card:hover {
    transform: none;
  }
}
