/* Dark Birch Liquid Glass — чёрно-зелёный, дымчатый и берёзово-серый */
:root {
  --c-abyss: #121613;
  --c-pine: #1A211C;
  --c-moss: #2A332C;
  --c-birch-mute: #737C74;
  --c-smoke: #AAB2AA;
  --c-birch: #DCE1D9;
  --c-milk: rgba(220, 225, 217, 0.18);
  --c-glass-border: rgba(220, 225, 217, 0.18);
  --c-text: #F2F4F0;
  --c-text-2: #C4CBC3;
  --c-text-3: #929B92;
  --c-ink: #171B17;
  --c-accent: #AAB6A8;

  --glass-dark: rgba(34, 41, 35, 0.50);
  --glass-light: rgba(185, 194, 183, 0.14);
  --glass-nav: rgba(211, 218, 209, 0.12);
  --blur: 28px;
  --blur-strong: 36px;

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 36px rgba(0, 0, 0, 0.18);
  --shadow-soft: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 20px rgba(0, 0, 0, 0.12);
  --divider: rgba(255, 255, 255, 0.10);

  --container: 1200px;
  --read: 700px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-abyss);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- Фон: от чёрно-зелёного слева к дымчато-берёзовому справа ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(115deg, #090D0A 0%, var(--c-abyss) 22%, var(--c-moss) 48%, #39473B 62%, #1E261F 78%, #090D0A 100%);
  background-size: 220% 220%;
  animation: flow 26s ease-in-out infinite alternate;
}
/* Дымчатые зелёные пятна мягко смещаются по тёмному фону */
.backdrop::before, .backdrop::after, .backdrop span {
  content: ""; position: absolute; border-radius: 50%; filter: blur(110px); will-change: transform;
}
.backdrop::before {
  width: 70vw; height: 70vw; right: -20vw; top: -26vw;
  background: radial-gradient(circle, rgba(157, 177, 151, 0.35), rgba(157, 177, 151, 0.12) 45%, rgba(157, 177, 151, 0) 70%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.backdrop::after {
  width: 64vw; height: 64vw; left: -18vw; bottom: -24vw;
  background: radial-gradient(circle, rgba(8, 10, 10, 0.95), rgba(8, 10, 10, 0) 70%);
  animation: drift-b 28s ease-in-out infinite alternate;
}
.backdrop span:nth-child(1) {
  width: 46vw; height: 46vw; left: 30vw; top: 32vh;
  background: radial-gradient(circle, rgba(157, 177, 151, 0.25), rgba(157, 177, 151, 0) 70%);
  animation: drift-c 18s ease-in-out infinite alternate;
}
.backdrop span:nth-child(2) {
  width: 38vw; height: 38vw; left: -6vw; top: 8vh;
  background: radial-gradient(circle, rgba(183, 193, 176, 0.20), rgba(157, 177, 151, 0) 70%);
  animation: drift-b 24s ease-in-out infinite alternate-reverse;
}
.backdrop span:nth-child(3) {
  width: 50vw; height: 50vw; right: -10vw; bottom: -10vh;
  background: radial-gradient(circle, rgba(10, 12, 12, 0.85), rgba(10, 12, 12, 0) 70%);
  animation: drift-a 30s ease-in-out infinite alternate-reverse;
}
@keyframes flow { 0% { background-position: 0% 30%; } 100% { background-position: 100% 70%; } }
@keyframes drift-a { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-22vw, 18vh) scale(1.15); } }
@keyframes drift-b { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(24vw, -14vh) scale(1.1); } }
@keyframes drift-c { 0% { transform: translate(0, 0) scale(.9); opacity: .6; } 100% { transform: translate(-16vw, -20vh) scale(1.2); opacity: 1; } }
.backdrop.calm { background: linear-gradient(180deg, #1E2121 0%, var(--c-pine) 100%); }
.backdrop.calm::before { opacity: .45; }

/* ---------- Стекло ---------- */
.glass {
  background: rgba(8, 14, 14, 0.48);
  backdrop-filter: blur(var(--blur)) saturate(115%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(115%);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.glass.light {
  background: linear-gradient(160deg, rgba(230, 240, 238, 0.22), rgba(70, 80, 79, 0.20));
}
.glass.dark-soft { background: rgba(22, 25, 25, 0.38); }

/* ---------- Каркас ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
main.container { padding-top: 120px; padding-bottom: 40px; }
.section { margin: 0 0 72px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.section-head a { font-size: 14px; color: var(--c-text-2); }
.section-head a:hover { color: var(--c-text); }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); }
.muted { color: var(--c-text-2); }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.grid > *, .split > *, .hero > * { min-width: 0; }

/* ---------- Навигация ---------- */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; padding: 0 16px; }
.nav {
  max-width: var(--container); margin: 0 auto; height: 80px;
  display: flex; align-items: center; gap: 12px; padding: 0 10px 0 20px;
  background: var(--glass-nav);
  backdrop-filter: blur(var(--blur-strong)) saturate(115%);
  -webkit-backdrop-filter: blur(var(--blur-strong)) saturate(115%);
  border: 1px solid var(--c-glass-border); border-radius: 999px; box-shadow: var(--shadow);
}
.logo { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.035em; white-space: nowrap; }
.logo-mark {
  width: 72px; height: 72px; border-radius: 16px;
  position: relative; display: grid; flex: none; place-items: center; overflow: hidden;
  background: rgba(170, 182, 168, 0.10); border: 1px solid var(--c-glass-border);
}
footer .logo-mark { width: 72px; height: 72px; }
.logo-video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.logo-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 38px; font-weight: 600; color: var(--c-accent); }
footer .logo-mark { border: 0; border-radius: 0; background: transparent; }
@media (max-width: 520px) {
  .nav { height: 72px; }
  .logo { gap: 8px; font-size: 9px; letter-spacing: 0; }
  .logo-mark { width: 56px; height: 56px; }
  .logo-fallback { font-size: 30px; }
}
@media (max-width: 360px) {
  .nav { height: 64px; }
  .logo { font-size: 8px; }
  .logo-mark { width: 48px; height: 48px; }
  .logo-fallback { font-size: 26px; }
}

/* PRESIDENT black, white and turquoise refresh */
:root {
  --c-abyss: #050707;
  --c-pine: #0A1111;
  --c-moss: #111A1A;
  --c-birch-mute: #647473;
  --c-smoke: #7DE8DF;
  --c-birch: #E8F4F2;
  --c-glass-border: rgba(225, 244, 241, 0.13);
  --c-text: #F8FBFA;
  --c-text-2: #C1CCCA;
  --c-text-3: #82908E;
  --c-ink: #051111;
  --c-accent: #65DED3;
  --glass-dark: rgba(8, 14, 14, 0.48);
  --glass-light: rgba(233, 247, 244, 0.065);
  --glass-nav: rgba(7, 13, 13, 0.76);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 40px rgba(0, 0, 0, 0.20);
  --shadow-soft: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 7px 22px rgba(0, 0, 0, 0.14);
  --divider: rgba(225, 244, 241, 0.09);
}
.backdrop {
  background: linear-gradient(125deg, #030505 0%, #080D0D 42%, #111A1A 70%, #040707 100%);
}
.backdrop::before {
  background: radial-gradient(circle, rgba(54, 199, 187, 0.16), rgba(54, 199, 187, 0.045) 45%, transparent 70%);
}
.backdrop span:nth-child(1) {
  background: radial-gradient(circle, rgba(68, 215, 202, 0.10), transparent 70%);
}
.backdrop span:nth-child(2) {
  background: radial-gradient(circle, rgba(220, 240, 237, 0.055), transparent 70%);
}
.nav {
  height: 76px;
  background: rgba(4, 9, 9, 0.80);
  border-color: rgba(101, 222, 211, 0.22);
}
.logo-mark {
  border-color: rgba(101, 222, 211, 0.30);
  background: rgba(101, 222, 211, 0.055);
}
.logo-fallback { color: var(--c-accent); }
.hero {
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: 28px;
  border-radius: var(--r-lg);
  background: rgba(7, 13, 13, 0.38) !important;
  box-shadow: var(--shadow-soft);
}
.hero h1 { max-width: 760px; }
.hero p { max-width: 660px; margin-bottom: 22px; }
.hero-accent { color: #00A994; }
.hero .hero-discussions {
  color: var(--c-text);
  background: rgba(5, 7, 7, 0.42);
  border-color: rgba(0, 169, 148, 0.62);
}
.hero .hero-discussions:hover { background: rgba(0, 169, 148, 0.12); }
.section { margin-bottom: 52px; }
.section-head { margin-bottom: 16px; }
.ask {
  padding: 22px 26px;
  background: rgba(7, 13, 13, 0.36);
  box-shadow: var(--shadow-soft);
}
.post {
  padding: 18px 20px;
  margin-bottom: 10px;
  border-color: rgba(225, 244, 241, 0.10);
  box-shadow: var(--shadow-soft);
}
.topic-grid { gap: 12px; }
.topic-tile {
  min-height: 164px;
  padding: 20px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}
.topic-icon {
  width: 46px;
  height: 46px;
  color: var(--c-accent);
  background: rgba(101, 222, 211, 0.065);
  border-color: rgba(101, 222, 211, 0.19);
}
.btn-light {
  background: var(--c-accent);
}
.btn-ghost {
  border-color: rgba(225, 244, 241, 0.16);
}
.footer {
  background: rgba(7, 13, 13, 0.44);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 640px) {
  .nav { height: 68px; }
  .section { margin-bottom: 40px; }
  .hero { padding: 24px 20px; margin-bottom: 24px; }
  .ask { padding: 20px; }
  .topic-grid { gap: 10px; }
  .topic-tile { padding: 16px 12px; }
}

/* Light PRESIDENT header */
.nav {
  background: rgba(245, 246, 243, 0.96);
  border-color: #D9DEDA;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px) saturate(110%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
}
.nav .logo { color: #101311; }
.nav .logo-mark {
  overflow: visible;
  border: 0;
  background: transparent;
}
.nav .logo-video { object-fit: contain; }
.nav-links a { color: #303633; }
.nav-links a:hover { color: #101311; background: rgba(16, 19, 17, 0.06); }
.nav-links a[aria-current="page"],
.nav-links a[aria-current] {
  color: #101311;
  background: #DDF3EF;
}
.nav .btn-light {
  color: #071311;
  background: #55D8C8;
  border-color: rgba(16, 19, 17, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.nav .btn-light:hover { background: #70E2D4; }
.nav .burger {
  color: #101311;
  background: rgba(16, 19, 17, 0.045);
  border-color: #D9DEDA;
}
.nav .burger:hover { background: rgba(16, 19, 17, 0.09); }
.mobile-menu {
  background: rgba(245, 246, 243, 0.98);
  border-color: #D9DEDA;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mobile-menu a { color: #303633; }
.mobile-menu a[aria-current="page"] {
  color: #101311;
  background: #DDF3EF;
}
.mobile-menu a[href="#ask"] {
  color: #071311;
  background: #55D8C8;
}

/* Header colors must take precedence over the base component styles above. */
.nav {
  background: radial-gradient(ellipse 105% 145% at 50% 5%,
    rgba(245, 246, 243, 0.90) 0%,
    rgba(245, 246, 243, 0.74) 52%,
    rgba(245, 246, 243, 0.38) 82%,
    rgba(245, 246, 243, 0.10) 100%);
  border-color: #D9DEDA;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
}
.nav .logo { color: #008F7A; }
.nav .logo-mark { border: 0; background: transparent; }
.nav .logo-video { object-fit: contain; }
.nav .nav-links a { color: #303633; }
.nav .nav-links a:hover { color: #101311; background: rgba(16, 19, 17, 0.06); }
.nav .nav-links a[aria-current="page"],
.nav .nav-links a[aria-current] { color: #101311; background: #DDF3EF; }
.nav .btn-light {
  color: #071311;
  background: #55D8C8;
  border-color: rgba(16, 19, 17, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.nav .btn-light:hover { background: #70E2D4; }
.nav .burger {
  color: #101311;
  background: rgba(16, 19, 17, 0.045);
  border-color: #D9DEDA;
}
.nav .burger:hover { background: rgba(16, 19, 17, 0.09); }
.mobile-menu {
  background: rgba(245, 246, 243, 0.98);
  border-color: #D9DEDA;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mobile-menu a { color: #303633; }
.mobile-menu a[aria-current="page"] { color: #101311; background: #DDF3EF; }
.mobile-menu a[href="#ask"] { color: #071311; background: #55D8C8; }

/* Reference-scale layout at the browser's default 100% zoom. */
:root { --container: 840px; }
.nav { max-width: min(var(--container), 100%); height: 58px; }
.nav-wrap { padding-inline: 12px; }
.nav .logo { gap: 8px; font-size: 0.68rem; }
.nav .logo-mark { width: 40px; height: 40px; }
.nav-links a { padding: 7px 10px; font-size: 0.78rem; }
.nav .btn { height: 36px; padding-inline: 14px; font-size: 0.76rem; }
main.container { padding-top: 98px; padding-bottom: 48px; }
.hero { padding: 28px; margin-bottom: 34px; }
.hero h1 { font-size: clamp(1.8rem, 3.1vw, 2.35rem); line-height: 1.12; }
.hero p { font-size: 0.94rem; line-height: 1.55; }
.hero .chips .btn { height: 40px; padding-inline: 16px; font-size: 0.82rem; }
.section { margin-bottom: 64px; }
.section-head h2 { font-size: 1.3rem; }
.ask { padding: 20px 22px; }
.ask h2 { font-size: 1.2rem; }
.ask p { font-size: 0.88rem; }
.ask .btn { height: 38px; font-size: 0.8rem; }
.post { padding: 16px; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.post .avatar { width: 36px; height: 36px; }
.post-head, .post p { font-size: 0.88rem; }
.topic-grid { gap: 12px; }
.topic-tile { min-height: 140px; padding: 16px; gap: 10px; }
.topic-tile h3 { font-size: 0.84rem; }
.topic-more { font-size: 0.72rem; }
.topic-icon { width: 38px; height: 38px; border-radius: 12px; }
.topic-icon svg { width: 21px; height: 21px; }
.footer { padding: 20px; gap: 22px; }
.footer .logo-mark { width: 44px; height: 44px; }
.footer h5, .footer a, .footer p { font-size: 0.72rem; }
@media (max-width: 860px) {
  .nav { height: 56px; }
  .nav .logo-mark { width: 38px; height: 38px; }
  .nav .logo { font-size: 0.62rem; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  main.container { padding-top: 84px; }
  .hero { padding: 22px 18px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .section { margin-bottom: 48px; }
  .ask { padding: 18px; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post .avatar { display: none; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-tile { min-height: 112px; padding: 13px 10px; }
  .footer { grid-template-columns: minmax(0, 1fr); }
}
.avatar-picker {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--c-glass-border);
  border-radius: var(--r-sm);
  background: rgba(5, 14, 12, 0.24);
}
.avatar-picker legend { padding: 0 6px; color: var(--c-text-2); font-size: 0.84rem; }
.avatar-options { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.avatar-option {
  width: 48px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 2px solid var(--c-glass-border);
  border-radius: 50%;
  color: var(--c-text-2);
  background: rgba(245, 246, 243, 0.06);
  cursor: pointer;
}
.avatar-option img { width: 100%; height: 100%; object-fit: cover; }
.avatar-option.selected { border-color: #00A994; box-shadow: 0 0 0 2px rgba(0, 169, 148, 0.2), 0 0 14px rgba(0, 169, 148, 0.28); }
.avatar-default { font-size: 0.82rem; }
.avatar-upload { position: relative; display: inline-flex; align-items: center; min-height: 44px; overflow: hidden; color: var(--c-accent); font-size: 0.82rem; cursor: pointer; }
.avatar-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.avatar-preview { min-height: 34px; display: flex; align-items: center; gap: 9px; margin-top: 10px; color: var(--c-text-3); font-size: 0.78rem; }
.avatar-preview img, .avatar-preview-default { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.avatar-preview-default { display: grid; place-items: center; color: var(--c-ink); background: linear-gradient(135deg, var(--c-birch), var(--c-birch-mute)); font-size: 0.72rem; }
.avatar-picker [data-avatar-status]:empty { display: none; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
img.avatar { object-fit: cover; }
.post > .avatar.avatar { display: block; }
.post-head .avatar-small {
  width: 24px;
  height: 24px;
  display: inline-grid;
  margin-right: -4px;
  border: 1px solid var(--c-glass-border);
  font-size: 9px;
}
@media (max-width: 640px) {
  .post.glass { grid-template-columns: 36px minmax(0, 1fr); }
  .post > .avatar.avatar { display: block; width: 34px; height: 34px; }
  .avatar-picker { padding: 12px; }
  .post-head .avatar-small.avatar { display: inline-grid; }
}
@media (max-width: 480px) {
  .section, .post, .answer, .topic-grid, .topic-tile { min-width: 0; max-width: 100%; }
  .section-head { flex-wrap: wrap; }
  .section-head > * { min-width: 0; }
  .post p, .answer p { overflow-wrap: anywhere; }
  .post.reply { margin-left: 0; }
}

/* Reference-scale layout; keep the browser zoom at 100%. */
:root { --container: 840px; }
.nav { max-width: min(var(--container), 100%); height: 58px; }
.nav-wrap { padding-inline: 12px; }
.nav .logo { gap: 8px; font-size: 0.68rem; letter-spacing: 0.02em; }
.nav .logo-mark { width: 40px; height: 40px; }
.nav-links a { padding: 7px 10px; font-size: 0.78rem; }
.nav .btn { height: 36px; padding-inline: 14px; font-size: 0.76rem; }
main.container { padding-top: 98px; padding-bottom: 48px; }
.hero { padding: 28px; margin-bottom: 34px; }
.hero h1 { font-size: clamp(1.8rem, 3.1vw, 2.35rem); line-height: 1.12; }
.hero p { font-size: 0.94rem; line-height: 1.55; }
.hero .chips .btn { height: 40px; padding-inline: 16px; font-size: 0.82rem; }
.section { margin-bottom: 64px; }
.section-head h2 { font-size: 1.3rem; }
.ask { padding: 20px 22px; }
.ask h2 { font-size: 1.2rem; }
.ask p { font-size: 0.88rem; }
.ask .btn { height: 38px; font-size: 0.8rem; }
.post { padding: 16px; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.post .avatar { width: 36px; height: 36px; }
.post-head, .post p { font-size: 0.88rem; }
.topic-grid { gap: 12px; }
.topic-tile { min-height: 140px; padding: 16px; gap: 10px; }
.topic-tile h3 { font-size: 0.84rem; }
.topic-more { font-size: 0.72rem; }
.topic-icon { width: 38px; height: 38px; border-radius: 12px; }
.topic-icon svg { width: 21px; height: 21px; }
.footer { padding: 20px; gap: 22px; }
.footer .logo-mark { width: 44px; height: 44px; }
.footer h5, .footer a, .footer p { font-size: 0.72rem; }
@media (max-width: 860px) {
  .nav { height: 56px; }
  .nav .logo-mark { width: 38px; height: 38px; }
  .nav .logo { font-size: 0.62rem; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  main.container { padding-top: 84px; }
  .hero { padding: 22px 18px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .section { margin-bottom: 48px; }
  .ask { padding: 18px; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post .avatar { display: none; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-tile { min-height: 112px; padding: 13px 10px; }
  .footer { grid-template-columns: minmax(0, 1fr); }
}

/* Compact centered layout matching the supplied reference at 100% zoom. */
:root { --container: 840px; }
.nav { max-width: min(var(--container), 100%); height: 58px; }
.nav-wrap { padding-inline: 12px; }
.nav .logo { gap: 8px; font-size: 0.68rem; letter-spacing: 0.02em; }
.nav .logo-mark { width: 40px; height: 40px; }
.nav-links a { padding: 7px 10px; font-size: 0.78rem; }
.nav .btn { height: 36px; padding-inline: 14px; font-size: 0.76rem; }
main.container { padding-top: 98px; padding-bottom: 48px; }
.container { padding-inline: 24px; }
.hero { padding: 28px; margin-bottom: 34px; }
.hero h1 { font-size: clamp(1.8rem, 3.1vw, 2.35rem); line-height: 1.12; }
.hero p { font-size: 0.94rem; line-height: 1.55; }
.hero .chips .btn { height: 40px; padding-inline: 16px; font-size: 0.82rem; }
.section { margin-bottom: 64px; }
.section-head h2 { font-size: 1.3rem; }
.ask { padding: 20px 22px; }
.ask h2 { font-size: 1.2rem; }
.ask p { font-size: 0.88rem; }
.ask .btn { height: 38px; font-size: 0.8rem; }
.post { padding: 16px; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.post .avatar { width: 36px; height: 36px; }
.post-head { font-size: 0.88rem; }
.post p { font-size: 0.88rem; }
.topic-grid { gap: 12px; }
.topic-tile { min-height: 140px; padding: 16px; gap: 10px; }
.topic-tile h3 { font-size: 0.84rem; }
.topic-more { font-size: 0.72rem; }
.topic-icon { width: 38px; height: 38px; border-radius: 12px; }
.topic-icon svg { width: 21px; height: 21px; }
.footer { padding: 20px; gap: 22px; }
.footer .logo-mark { width: 44px; height: 44px; }
.footer h5 { font-size: 0.72rem; }
.footer a, .footer p { font-size: 0.72rem; }
@media (max-width: 860px) {
  .nav { height: 56px; }
  .nav .logo-mark { width: 38px; height: 38px; }
  .nav .logo { font-size: 0.62rem; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  main.container { padding-top: 84px; }
  .hero { padding: 22px 18px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .hero .chips .btn { height: 40px; }
  .section { margin-bottom: 48px; }
  .ask { padding: 18px; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post .avatar { display: none; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-tile { min-height: 112px; padding: 13px 10px; }
  .footer { grid-template-columns: minmax(0, 1fr); }
}

/* Final default-zoom layout overrides */
:root { --container: 1120px; --read: 680px; }
.container { max-width: min(var(--container), 100%); }
main.container { padding-top: clamp(104px, 8vw, 120px); padding-bottom: clamp(40px, 5vw, 64px); }
.section { margin-bottom: clamp(68px, 7vw, 92px); }
.section-head h2 { font-size: clamp(1.25rem, 1.7vw, 1.45rem); }
.nav { height: 64px; }
.logo { gap: 9px; font-size: 0.76rem; }
.nav .logo-mark { width: 48px; height: 48px; }
.hero { padding: clamp(28px, 3.2vw, 40px); margin-bottom: clamp(32px, 4vw, 48px); }
.hero h1 { font-size: clamp(2.15rem, 3.3vw, 2.9rem); line-height: 1.12; }
.hero p { max-width: min(100%, 850px); font-size: clamp(1rem, 1.12vw, 1.08rem); line-height: 1.6; }
.ask { padding: clamp(20px, 2.4vw, 28px); }
.post { padding: clamp(16px, 1.8vw, 20px); margin-bottom: 12px; gap: 12px; }
.topic-grid { gap: clamp(12px, 1.4vw, 16px); }
.topic-tile { min-height: 150px; padding: clamp(16px, 1.8vw, 21px); gap: 12px; }
.topic-tile h3 { font-size: clamp(0.95rem, 1.2vw, 1.05rem); }
.topic-icon { width: 44px; height: 44px; border-radius: 14px; }
.footer {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: clamp(16px, 2.5vw, 30px);
  padding: clamp(20px, 2.2vw, 26px);
}
.footer .logo-mark { width: 54px; height: 54px; }
.footer h5 { font-size: 0.8rem; }
.footer a, .footer p { font-size: 0.82rem; }
@media (min-width: 1600px) { :root { --container: 1180px; } }
@media (max-width: 1024px) {
  .section { margin-bottom: 72px; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav { height: 60px; }
  .nav .logo-mark { width: 44px; height: 44px; }
}
@media (max-width: 640px) {
  main.container { padding-top: 92px; }
  .section { margin-bottom: 54px; }
  .hero { padding: 24px 20px; margin-bottom: 28px; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.25rem); }
  .hero p { font-size: 0.98rem; }
  .topic-tile { min-height: 0; }
  .footer { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* Comfortable default-zoom layout */
:root { --container: 1120px; --read: 680px; }
.container { max-width: min(var(--container), 100%); }
main.container { padding-top: clamp(104px, 8vw, 120px); padding-bottom: clamp(40px, 5vw, 64px); }
.section { margin-bottom: clamp(68px, 7vw, 92px); }
.section-head h2 { font-size: clamp(1.25rem, 1.7vw, 1.45rem); }
.nav { height: 64px; }
.logo { gap: 9px; font-size: 0.76rem; }
.nav .logo-mark { width: 48px; height: 48px; }
.hero { padding: clamp(28px, 3.2vw, 40px); margin-bottom: clamp(32px, 4vw, 48px); }
.hero h1 { font-size: clamp(2.15rem, 3.3vw, 2.9rem); line-height: 1.12; }
.hero p { max-width: min(100%, 850px); font-size: clamp(1rem, 1.12vw, 1.08rem); line-height: 1.6; }
.ask { padding: clamp(20px, 2.4vw, 28px); }
.post { padding: clamp(16px, 1.8vw, 20px); margin-bottom: 12px; gap: 12px; }
.topic-grid { gap: clamp(12px, 1.4vw, 16px); }
.topic-tile { min-height: 150px; padding: clamp(16px, 1.8vw, 21px); gap: 12px; }
.topic-tile h3 { font-size: clamp(0.95rem, 1.2vw, 1.05rem); }
.topic-icon { width: 44px; height: 44px; border-radius: 14px; }
.footer {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: clamp(16px, 2.5vw, 30px);
  padding: clamp(20px, 2.2vw, 26px);
}
.footer .logo-mark { width: 54px; height: 54px; }
.footer h5 { font-size: 0.8rem; }
.footer a, .footer p { font-size: 0.82rem; }
@media (min-width: 1600px) {
  :root { --container: 1180px; }
}
@media (max-width: 1024px) {
  .section { margin-bottom: 72px; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav { height: 60px; }
  .nav .logo-mark { width: 44px; height: 44px; }
}
@media (max-width: 640px) {
  main.container { padding-top: 92px; }
  .section { margin-bottom: 54px; }
  .hero { padding: 24px 20px; margin-bottom: 28px; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.25rem); }
  .hero p { font-size: 0.98rem; }
  .topic-tile { min-height: 0; }
  .footer { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* Balanced page scale at the browser's default zoom. */
:root { --container: 1120px; --read: 680px; }
.container { max-width: min(var(--container), 100%); }
main.container { padding-top: clamp(108px, 9vw, 124px); padding-bottom: clamp(40px, 6vw, 72px); }
.section { margin-bottom: clamp(72px, 8vw, 104px); }
.section-head h2 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.nav { height: 66px; }
.logo { gap: 10px; font-size: 0.78rem; }
.logo-mark { width: 52px; height: 52px; border-radius: 12px; }
.footer .logo-mark { width: 56px; height: 56px; }
.hero {
  padding: clamp(28px, 3.5vw, 40px);
  margin-bottom: clamp(28px, 4vw, 44px);
  border-radius: var(--r-lg);
}
.hero h1 {
  font-size: clamp(2.15rem, 3.5vw, 3rem);
  line-height: 1.12;
}
.hero p {
  max-width: min(100%, 780px);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.65;
  margin-bottom: 22px;
}
.hero .chips { gap: 12px; }
.hero .chips .btn { height: 44px; padding-inline: 18px; }
.ask { padding: clamp(20px, 2.6vw, 28px); }
.post { padding: clamp(16px, 2vw, 20px); margin-bottom: 12px; gap: 14px; }
.topic-grid { gap: clamp(12px, 1.5vw, 18px); }
.topic-tile { min-height: 148px; padding: clamp(16px, 2vw, 22px); gap: 12px; }
.topic-tile h3 { font-size: clamp(0.95rem, 1.25vw, 1.08rem); }
.topic-icon { width: 44px; height: 44px; border-radius: 14px; }
.footer {
  max-width: 100%;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(20px, 2.5vw, 28px);
}
.footer h5 { font-size: 0.8rem; }
.footer a, .footer p { font-size: 0.82rem; }
@media (min-width: 1600px) {
  :root { --container: 1180px; }
}
@media (max-width: 1024px) {
  main.container { padding-top: 112px; }
  .section { margin-bottom: 76px; }
  .hero { padding: 32px; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav { height: 62px; }
  .logo-mark { width: 48px; height: 48px; }
}
@media (max-width: 640px) {
  main.container { padding-top: 96px; }
  .section { margin-bottom: 56px; }
  .hero { padding: 24px 20px; margin-bottom: 28px; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.35rem); }
  .hero p { font-size: 0.98rem; margin-bottom: 18px; }
  .hero .chips { flex-wrap: wrap; }
  .hero .chips .btn { flex: 1 1 auto; }
  .ask { padding: 20px; }
  .topic-tile { min-height: 0; }
  .footer { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
.nav-links { display: flex; gap: 4px; margin: 0 auto; list-style: none; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--c-text-2);
  transition: background .2s, color .2s;
}
.nav-links a:hover { color: var(--c-text); background: rgba(255, 255, 255, 0.08); }
.nav-links a[aria-current="page"] { color: var(--c-ink); background: rgba(247, 251, 251, 0.86); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--c-glass-border);
  transition: background .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.16); }
.icon-btn svg { width: 18px; height: 18px; }
.burger { display: none; }

.mobile-menu {
  display: none; max-width: var(--container); margin: 10px auto 0; padding: 10px;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 14px; border-radius: var(--r-sm); color: var(--c-text-2); }
.mobile-menu a[aria-current="page"] { background: rgba(247, 251, 251, 0.86); color: var(--c-ink); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--c-accent); color: var(--c-ink); border-color: rgba(255, 255, 255, 0.35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-light:hover { background: #8BE7D7; }
.btn-dark { background: rgba(22, 25, 25, 0.82); color: var(--c-text); border-color: rgba(255, 255, 255, 0.16); }
.btn-dark:hover { background: rgba(22, 25, 25, 0.95); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--c-text); border-color: var(--c-glass-border); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }

/* ---------- Чипы / фильтры ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  color: var(--c-text-2); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--c-glass-border);
  transition: background .2s, color .2s;
}
.chip:hover { color: var(--c-text); background: rgba(255, 255, 255, 0.12); }
.chip.active { background: rgba(247, 251, 251, 0.88); color: var(--c-ink); border-color: transparent; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px; margin-bottom: 22px; }
.select {
  height: 38px; padding: 0 34px 0 14px; border-radius: 999px; cursor: pointer; font-size: 13px;
  background: rgba(22, 25, 25, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23C3C6C0' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--c-glass-border); appearance: none;
}
.select option { background: var(--c-pine); }

/* ---------- Поиск ---------- */
.search { position: relative; }
.search input {
  width: 100%; height: 56px; padding: 0 130px 0 52px; border-radius: 999px; font-size: 15px;
  background: rgba(22, 25, 25, 0.40); border: 1px solid var(--c-glass-border); color: var(--c-text);
}
.search input::placeholder { color: var(--c-text-3); }
.search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--c-text-3); }
.search .btn { position: absolute; right: 6px; top: 6px; }

/* ---------- Hero ---------- */
.hero { padding: 48px; margin-bottom: 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; border-radius: var(--r-xl); }
.hero h1 { margin: 10px 0 14px; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; }
.hero p { margin: 0 0 28px; color: var(--c-text-2); max-width: 520px; }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 20px; border-radius: var(--r-md); }
.stat b { display: block; font-size: 26px; font-weight: 600; }
.stat span { font-size: 13px; color: var(--c-text-2); }
.cats { margin-bottom: 64px; }

/* ---------- Карточки статей ---------- */
.card { display: flex; flex-direction: column; overflow: hidden; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.32); }
.cover {
  aspect-ratio: 16 / 10; position: relative; display: grid; place-items: center;
  color: rgba(247, 251, 251, 0.38); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--c-moss), var(--c-pine) 55%, #353B3B);
  border-bottom: 1px solid var(--divider);
}
.cover.t2 { background: linear-gradient(135deg, #3A4141, var(--c-moss) 60%, var(--c-pine)); }
.cover.t3 { background: linear-gradient(135deg, var(--c-pine), #2F3434 50%, var(--c-birch-mute)); }
.cover .tag { position: absolute; left: 14px; top: 14px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 14px; color: var(--c-text-2); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--c-text-3); margin-top: auto; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; color: var(--c-text);
  background: rgba(22, 25, 25, 0.45); border: 1px solid var(--c-glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ---------- Списки ---------- */
.list { padding: 6px; }
.list-item { display: flex; gap: 14px; padding: 14px; border-radius: var(--r-sm); transition: background .2s; }
.list-item + .list-item { border-top: 1px solid var(--divider); }
.list-item:hover { background: rgba(255, 255, 255, 0.05); }
.list-item .num { font-size: 13px; color: var(--c-text-3); width: 22px; flex: none; padding-top: 2px; }
.list-item h4 { margin: 0 0 4px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.list-item .meta { margin: 0; }

/* ---------- Форум ---------- */
.forum-cat { padding: 6px; margin-bottom: 18px; }
.forum-cat-head { padding: 16px 18px 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.forum-cat-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.sub { display: grid; grid-template-columns: 1fr 90px 90px 200px; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--divider); border-radius: var(--r-sm); }
.sub:hover { background: rgba(255, 255, 255, 0.04); }
.sub h4 { margin: 0 0 2px; font-size: 15px; font-weight: 500; }
.sub p { margin: 0; font-size: 13px; color: var(--c-text-3); }
.sub .n { text-align: center; font-size: 14px; }
.sub .n small { display: block; font-size: 11px; color: var(--c-text-3); }
.sub .last { font-size: 12.5px; color: var(--c-text-3); }
.topic-row { display: grid; grid-template-columns: 1fr 80px 80px 140px; gap: 14px; align-items: center; padding: 14px 18px; border-radius: var(--r-sm); }
.topic-row + .topic-row { border-top: 1px solid var(--divider); }
.topic-row:hover { background: rgba(255, 255, 255, 0.04); }
.topic-row h4 { margin: 0 0 4px; font-size: 15px; font-weight: 500; }
.topic-row .n { text-align: center; font-size: 14px; }
.topic-row .n small { display: block; font-size: 11px; color: var(--c-text-3); }
.pin { font-size: 11px; color: var(--c-ink); background: var(--c-birch); padding: 2px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 2px; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: var(--c-ink);
  background: linear-gradient(135deg, var(--c-birch), var(--c-birch-mute));
}
.post { padding: 22px; margin-bottom: 14px; display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.post.reply { margin-left: 48px; }
.post-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; margin-bottom: 8px; }
.post-head b { font-weight: 600; }
.post p { margin: 0 0 12px; color: var(--c-text-2); }
.post-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 6px 10px; border-radius: 999px; font-size: 13px; color: var(--c-text-3); cursor: pointer; }
.link-btn:hover { color: var(--c-text); background: rgba(255, 255, 255, 0.06); }

/* ---------- Формы ---------- */
.form { padding: 26px; display: grid; gap: 14px; }
.form h3 { margin: 0; font-size: 18px; font-weight: 600; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--c-text-2); }
.publication-type { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; padding: 14px 16px; border: 1px solid var(--c-glass-border); border-radius: var(--r-sm); }
.publication-type legend { padding: 0 6px; color: var(--c-text-2); font-size: 13px; }
.publication-type label { display: inline-flex; align-items: center; gap: 8px; color: var(--c-text); font-size: 14px; cursor: pointer; }
.publication-type input { accent-color: var(--c-accent); }
.input, .textarea {
  width: 100%; padding: 12px 16px; border-radius: var(--r-sm);
  background: rgba(22, 25, 25, 0.40); border: 1px solid var(--c-glass-border); color: var(--c-text);
}
.input::placeholder, .textarea::placeholder { color: var(--c-text-3); }
.textarea { min-height: 120px; resize: vertical; }
.note { font-size: 12.5px; color: var(--c-text-3); }
.hp { position: absolute; left: -9999px; }

/* ---------- Состояния ---------- */
.empty { padding: 40px 28px; text-align: center; }
.empty .empty-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--c-glass-border);
}
.empty h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.empty p { margin: 0 auto 18px; max-width: 380px; font-size: 14px; color: var(--c-text-2); }
.skeleton { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.07); border-radius: 8px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.alert { padding: 14px 18px; border-radius: var(--r-sm); font-size: 14px; border: 1px solid var(--c-glass-border); background: rgba(22, 25, 25, 0.45); }
.alert.error { border-color: rgba(240, 150, 150, 0.40); }
.alert.ok { border-color: rgba(230, 240, 238, 0.50); }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pagination a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; color: var(--c-text-2); }
.pagination a:hover { background: rgba(255, 255, 255, 0.08); }
.pagination a.active { background: rgba(247, 251, 251, 0.88); color: var(--c-ink); }

/* ---------- Статья ---------- */
.article { max-width: var(--read); margin: 0 auto; }
.breadcrumbs { font-size: 13px; color: var(--c-text-3); margin-bottom: 22px; }
.breadcrumbs a:hover { color: var(--c-text); }
.article h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; margin: 12px 0 16px; }
.article .lead { font-size: 19px; color: var(--c-text-2); margin: 0 0 22px; }
.article .cover { border-radius: var(--r-lg); border: 1px solid var(--divider); margin: 28px 0 8px; }
.figcap { font-size: 13px; color: var(--c-text-3); margin-bottom: 30px; }
.prose { font-size: 17.5px; line-height: 1.75; color: #E6EAE9; }
.prose h2 { font-size: 24px; line-height: 1.3; margin: 40px 0 12px; font-weight: 600; color: var(--c-text); }
.prose p { margin: 0 0 20px; }
.prose ul { padding-left: 22px; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 32px 0; padding: 22px 26px; border-radius: var(--r-md); font-size: 19px; line-height: 1.55; color: var(--c-text);
  background: rgba(230, 240, 238, 0.10); border: 1px solid var(--c-glass-border);
}
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0; padding-top: 24px; border-top: 1px solid var(--divider); }
.author-bar { display: flex; align-items: center; gap: 12px; }

/* ---------- Модалка ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; background: rgba(22, 25, 25, 0.55); }
.modal.open { display: grid; }
.modal .form { width: 100%; max-width: 420px; background: rgba(40, 44, 44, 0.78); }
#rules-modal { background: rgba(0, 0, 0, 0.35); }
.rules-dialog {
  width: 100%; max-width: 360px; padding: 24px; display: grid; gap: 12px; justify-items: center; text-align: center;
  background: rgba(10, 16, 16, 0.45); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r-md);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.rules-dialog h3 { margin: 0; font-size: 17px; font-weight: 600; }
.rules-dialog p { margin: 0; font-size: 14px; line-height: 1.55; }
.rules-dialog .btn { margin-top: 4px; min-width: 110px; }

/* ---------- Подвал ---------- */
footer { padding: 0 0 32px; }
.footer { padding: 28px; display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 24px; }
.footer h5 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--c-text); }
.footer a { display: block; font-size: 14px; color: var(--c-text-2); padding: 3px 0; }
.footer a:hover { color: var(--c-text); }
.footer p { margin: 8px 0 0; font-size: 13px; color: var(--c-text-3); max-width: 280px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 36px; }
  .sub { grid-template-columns: 1fr 80px 80px; }
  .sub .last { display: none; }
  .footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-actions .btn { display: none; }
  .burger { display: grid; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  :root { --blur: 16px; --blur-strong: 20px; }
  .container { padding: 0 16px; }
  main.container { padding-top: 100px; }
  .section { margin-bottom: 52px; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { gap: 8px; }
  .stat { padding: 14px; }
  .stat b { font-size: 18px; }
  .hero { padding: 26px 20px; border-radius: var(--r-lg); }
  .search input { height: 50px; padding-right: 16px; padding-left: 46px; }
  .search .btn { display: none; }
  .sub, .topic-row { grid-template-columns: 1fr 60px; }
  .sub .n:nth-of-type(3), .topic-row .n:nth-of-type(3), .topic-row .last { display: none; }
  .post { grid-template-columns: 1fr; padding: 18px; }
  .post .avatar { display: none; }
  .post.reply { margin-left: 16px; }
  .prose { font-size: 16.5px; }
  .footer { grid-template-columns: 1fr; }
  .backdrop::before, .backdrop::after, .backdrop span { filter: blur(70px); }
  .backdrop span:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Одностраничник: вопрос-ответ и темы ---------- */
.ask { padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ask h2 { margin: 0 0 6px; font-size: 24px; font-weight: 600; }
.ask p { margin: 0; }
.q-text { color: var(--c-text) !important; font-size: 16px; }
.answer { margin: 4px 0 12px; padding: 12px 16px; border-left: 2px solid var(--c-accent); background: rgba(255, 255, 255, 0.04); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.answer p { margin: 0; }
.reply-form { display: grid; gap: 10px; margin-top: 10px; }
.reply-form .textarea { min-height: 80px; }
.topic { margin-bottom: 12px; padding: 0; overflow: hidden; }
.topic summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.topic summary::-webkit-details-marker { display: none; }
.topic summary h3 { margin: 0; font-size: 18px; font-weight: 600; }
.topic summary:hover { background: rgba(255, 255, 255, 0.04); }
.chev { width: 10px; height: 10px; flex: none; border-right: 1.5px solid var(--c-text-2); border-bottom: 1.5px solid var(--c-text-2); transform: rotate(45deg); transition: transform .2s; }
.topic[open] .chev { transform: rotate(-135deg); }
.topic-answer { padding: 16px 24px 22px; border-top: 1px solid var(--divider); }
.topic-answer p { margin: 6px 0 0; color: var(--c-text-2); }
.nav-links a[aria-current] { color: var(--c-ink); background: rgba(247, 251, 251, 0.86); }
.hero .chips .btn { height: 46px; }
section[id] { scroll-margin-top: 96px; }
@media (max-width: 860px) { .nav-actions .btn { display: inline-flex; } }
@media (max-width: 640px) { .ask { padding: 22px 20px; } .ask .btn { width: 100%; } .nav-actions .btn { display: none; } }

/* ---------- Темы плитками ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topic-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; cursor: pointer;
  padding: 26px; min-height: 200px; transition: transform .25s, border-color .25s;
}
.topic-tile:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.32); }
.topic-tile h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; }
.topic-more { margin-top: auto; font-size: 13px; color: var(--c-text-2); }
.topic-icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: var(--c-accent);
  background: rgba(170, 182, 168, 0.10); border: 1px solid var(--c-glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.topic-icon svg { width: 26px; height: 26px; }
.topic-dialog { max-width: 520px; }
@media (max-width: 520px) {
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .topic-tile { padding: 14px 10px; min-height: 0; align-items: center; text-align: center; gap: 10px; }
  .topic-tile h3 { font-size: 13px; }
  .topic-more { display: none; }
  .topic-icon { width: 46px; height: 46px; border-radius: 15px; }
}
#tm-answer { white-space: pre-line; line-height: 1.65; }
.hero { grid-template-columns: minmax(0, 1fr); }
.topic-dialog { max-width: 620px; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; }
.topic-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; }
.topic-opinions { display: grid; gap: 12px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--divider); }
.topic-count { margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; color: var(--c-ink); background: var(--c-accent); }
@media (max-width: 520px) { .topic-count { display: none; } }

/* Comfortable default-zoom layout */
:root { --container: 1120px; --read: 680px; }
.container { max-width: min(var(--container), 100%); }
main.container { padding-top: clamp(104px, 8vw, 120px); padding-bottom: clamp(40px, 5vw, 64px); }
.section { margin-bottom: clamp(68px, 7vw, 92px); }
.section-head h2 { font-size: clamp(1.25rem, 1.7vw, 1.45rem); }
.nav { height: 64px; }
.logo { gap: 9px; font-size: 0.76rem; }
.nav .logo-mark { width: 48px; height: 48px; }
.hero { padding: clamp(28px, 3.2vw, 40px); margin-bottom: clamp(32px, 4vw, 48px); }
.hero h1 { font-size: clamp(2.15rem, 3.3vw, 2.9rem); line-height: 1.12; }
.hero p { max-width: min(100%, 850px); font-size: clamp(1rem, 1.12vw, 1.08rem); line-height: 1.6; }
.ask { padding: clamp(20px, 2.4vw, 28px); }
.post { padding: clamp(16px, 1.8vw, 20px); margin-bottom: 12px; gap: 12px; }
.topic-grid { gap: clamp(12px, 1.4vw, 16px); }
.topic-tile { min-height: 150px; padding: clamp(16px, 1.8vw, 21px); gap: 12px; }
.topic-tile h3 { font-size: clamp(0.95rem, 1.2vw, 1.05rem); }
.topic-icon { width: 44px; height: 44px; border-radius: 14px; }
.footer {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: clamp(16px, 2.5vw, 30px);
  padding: clamp(20px, 2.2vw, 26px);
}
.footer .logo-mark { width: 54px; height: 54px; }
.footer h5 { font-size: 0.8rem; }
.footer a, .footer p { font-size: 0.82rem; }
@media (min-width: 1600px) { :root { --container: 1180px; } }
@media (max-width: 1024px) {
  .section { margin-bottom: 72px; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav { height: 60px; }
  .nav .logo-mark { width: 44px; height: 44px; }
}
@media (max-width: 640px) {
  main.container { padding-top: 92px; }
  .section { margin-bottom: 54px; }
  .hero { padding: 24px 20px; margin-bottom: 28px; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.25rem); }
  .hero p { font-size: 0.98rem; }
  .topic-tile { min-height: 0; }
  .footer { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* Keep the light header theme after the base navigation rules. */
.nav {
  background: radial-gradient(ellipse 105% 145% at 50% 5%,
    rgba(245, 246, 243, 0.90) 0%,
    rgba(245, 246, 243, 0.74) 52%,
    rgba(245, 246, 243, 0.38) 82%,
    rgba(245, 246, 243, 0.10) 100%);
  border-color: #D9DEDA;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
}
.nav .logo { color: #008F7A; }
.nav .logo-mark { border: 0; background: transparent; }
.nav .logo-video { object-fit: contain; }
.nav .nav-links a { color: #303633; }
.nav .nav-links a:hover { color: #101311; background: rgba(16, 19, 17, 0.06); }
.nav .nav-links a[aria-current="page"],
.nav .nav-links a[aria-current] { color: #101311; background: #DDF3EF; }
.nav .btn-light {
  color: #071311;
  background: #55D8C8;
  border-color: rgba(16, 19, 17, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.nav .btn-light:hover { background: #70E2D4; }
.nav .burger {
  color: #101311;
  background: rgba(16, 19, 17, 0.045);
  border-color: #D9DEDA;
}
.nav .burger:hover { background: rgba(16, 19, 17, 0.09); }
.mobile-menu {
  background: rgba(245, 246, 243, 0.98);
  border-color: #D9DEDA;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mobile-menu a { color: #303633; }
.mobile-menu a[aria-current="page"] { color: #101311; background: #DDF3EF; }
.mobile-menu a[href="#ask"] { color: #071311; background: #55D8C8; }

/* Final compact sizing overrides for the supplied 100% zoom reference. */
.nav .nav-links a[aria-current="page"],
.nav .nav-links a[aria-current] { background: transparent; }

:root {
  --c-abyss: #000000;
  --c-pine: #0A1815;
  --c-moss: #10231F;
  --c-birch-mute: #7B8984;
  --c-smoke: #B8C1BD;
  --c-birch: #DCE5E0;
  --c-milk: rgba(210, 240, 232, 0.08);
  --c-glass-border: rgba(210, 240, 232, 0.14);
  --c-text: #F5F6F3;
  --c-text-2: #B8C1BD;
  --c-text-3: #87938E;
  --c-ink: #071311;
  --c-accent: #00A994;
  --glass-dark: rgba(8, 14, 14, 0.48);
  --glass-light: rgba(233, 247, 244, 0.065);
  --glass-nav: rgba(4, 9, 9, 0.80);
  --blur: 24px;
  --blur-strong: 24px;
  --divider: rgba(210, 240, 232, 0.12);
}
body { background: #000000; }
.backdrop { background: #000000; animation: none; }
.backdrop::before, .backdrop::after, .backdrop span { animation: none; background: none; }
.glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 38%),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 8px 24px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}
.glass.light,
.hero.glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 40%),
    rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.14);
}
.glass.dark-soft { background: rgba(255, 255, 255, 0.035); }
.nav {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 70%),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 8px 24px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.topic-icon { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }
.nav .logo { color: #00A994; }
.nav .nav-links a { color: #B8C1BD; }
.nav .nav-links a:hover { color: #F5F6F3; background: rgba(0, 169, 148, 0.10); }
.nav .nav-links a[aria-current="page"],
.nav .nav-links a[aria-current] { color: #F5F6F3; background: transparent; }
.nav .btn-light {
  color: #071311;
  background: #00A994;
  border-color: rgba(210, 240, 232, 0.14);
}
.nav .btn-light:hover { background: #20BBA8; }
.nav .burger {
  color: #F5F6F3;
  background: rgba(245, 246, 243, 0.06);
  border-color: var(--c-glass-border);
}
.mobile-menu {
  color: var(--c-text);
  background: rgba(7, 13, 13, 0.96);
  border-color: var(--c-glass-border);
}
.mobile-menu a { color: var(--c-text-2); }
.mobile-menu a[aria-current="page"] { color: var(--c-text); background: transparent; }
.mobile-menu a[href="#ask"] { color: #071311; background: #00A994; }
.ask.glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 45%),
    rgba(255, 255, 255, 0.045);
}
.mobile-menu {
  background: rgba(5, 12, 12, 0.90);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.select { background-color: rgba(6, 14, 13, 0.36); }
.search input, .input, .textarea { background: rgba(6, 14, 13, 0.40); }
.tag { background: rgba(6, 14, 13, 0.42); border-color: rgba(225, 250, 244, 0.14); }
.alert { background: rgba(6, 14, 13, 0.42); }
.btn-dark { background: rgba(6, 14, 13, 0.78); border-color: rgba(225, 250, 244, 0.14); }
.btn-dark:hover { background: rgba(6, 14, 13, 0.92); }
.modal { background: rgba(2, 6, 6, 0.55); }
.modal .form { background: rgba(8, 18, 17, 0.80); }
.cover { background: linear-gradient(135deg, var(--c-moss), var(--c-pine) 55%, #16302B); }
.cover.t2 { background: linear-gradient(135deg, #1A3530, var(--c-moss) 60%, var(--c-pine)); }
.cover.t3 { background: linear-gradient(135deg, var(--c-pine), #132925 50%, #2C4A44); }
@media (prefers-reduced-transparency: reduce) {
  .glass, .nav, .mobile-menu { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
:root { --container: 840px; }
.nav { max-width: min(var(--container), 100%); height: 58px; }
.nav-wrap { padding-inline: 12px; }
.nav .logo { gap: 8px; font-size: 0.68rem; }
.nav .logo-mark { width: 40px; height: 40px; }
.nav-links a { padding: 7px 10px; font-size: 0.78rem; }
.nav .btn { height: 36px; padding-inline: 14px; font-size: 0.76rem; }
main.container { padding-top: 98px; padding-bottom: 48px; }
.hero { padding: 28px; margin-bottom: 34px; }
.hero h1 { font-size: clamp(1.8rem, 3.1vw, 2.35rem); line-height: 1.12; }
.hero p { font-size: 0.94rem; line-height: 1.55; }
.hero .chips .btn { height: 40px; padding-inline: 16px; font-size: 0.82rem; }
.section { margin-bottom: 64px; }
.section-head h2 { font-size: 1.3rem; }
.ask { padding: 20px 22px; }
.ask h2 { font-size: 1.2rem; }
.ask p { font-size: 0.88rem; }
.ask .btn { height: 38px; font-size: 0.8rem; }
.post { padding: 16px; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.post .avatar { width: 36px; height: 36px; }
.post-head, .post p { font-size: 0.88rem; }
.topic-grid { gap: 12px; }
.topic-tile { min-height: 140px; padding: 16px; gap: 10px; }
.topic-tile h3 { font-size: 0.84rem; }
.topic-more { font-size: 0.72rem; }
.topic-icon { width: 38px; height: 38px; border-radius: 12px; }
.topic-icon svg { width: 21px; height: 21px; }
.footer { padding: 20px; gap: 22px; }
.footer .logo-mark { width: 44px; height: 44px; }
.footer h5, .footer a, .footer p { font-size: 0.72rem; }
@media (max-width: 860px) {
  .nav { height: 56px; }
  .nav .logo-mark { width: 38px; height: 38px; }
  .nav .logo { font-size: 0.62rem; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  main.container { padding-top: 84px; }
  .hero { padding: 22px 18px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .section { margin-bottom: 48px; }
  .ask { padding: 18px; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post .avatar { display: none; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-tile { min-height: 112px; padding: 13px 10px; }
  .footer { grid-template-columns: minmax(0, 1fr); }
}
.welcome {
  padding: 28px;
  border-radius: var(--r-lg);
}
.welcome h2 {
  margin: 0 0 14px;
  text-align: center;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.edu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 22px;
  padding: 4px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.edu-card.glass {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "tag link" "title link" "text link";
  align-items: center;
  gap: 4px 20px;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background .2s;
}
.edu-card + .edu-card { box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.07); }
.edu-card.glass:hover { background: rgba(255, 255, 255, 0.05); }
.edu-card:hover + .edu-card, .edu-card:hover { box-shadow: none; }
.edu-tag {
  grid-area: tag;
  justify-self: start;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  color: var(--c-accent);
  background: rgba(0, 169, 148, 0.10);
  border: 1px solid rgba(0, 169, 148, 0.28);
}
.edu-card h3 { grid-area: title; margin: 2px 0 0; font-size: 0.95rem; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.edu-card p { grid-area: text; margin: 0; font-size: 0.84rem; line-height: 1.5; color: var(--c-text-2); }
.edu-link {
  grid-area: link;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-accent);
}
.edu-link:hover { color: #20BBA8; text-decoration: underline; }
.welcome-income-cta { display: grid; justify-items: center; gap: 9px; margin-top: 20px; text-align: center; }
.welcome-income-cta .welcome-income-button { height: auto; min-height: 44px; max-width: 100%; padding: 10px 22px; white-space: normal; text-align: center; text-decoration: none; line-height: 1.35; }
.welcome-income-cta .welcome-income-button::after { content: "↗"; font-size: 0.82em; }
.welcome-income-cta .welcome-income-button:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.welcome-income-cta p { max-width: 620px; margin: 0; color: rgba(235, 244, 242, 0.42); font-size: 0.75rem; line-height: 1.5; }
.welcome-income-cta p a { color: inherit; text-decoration-color: rgba(0, 169, 148, 0.48); text-underline-offset: 3px; }
.welcome-income-cta p a:hover, .welcome-income-cta p a:focus-visible { color: var(--c-text); }
.welcome-income-cta p a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
@media (max-width: 640px) {
  .welcome { padding: 22px 18px; }
  .welcome h2 { font-size: clamp(1.45rem, 6.2vw, 1.8rem); }
  .edu-grid { padding: 2px; }
  .edu-card.glass {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "tag" "title" "text" "link";
    padding: 12px;
  }
  .edu-link { justify-self: start; margin-top: 4px; }
}
.reader-modal { background: rgba(0, 0, 0, 0.92); padding: 24px 16px; }
.reader {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 24px 40px 44px;
  border-radius: var(--r-lg);
}
.reader-back { height: 36px; padding-inline: 14px; font-size: 0.8rem; }
.reader-title {
  max-width: 640px;
  margin: 26px auto 22px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.reader-body {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--c-text);
  overflow-wrap: anywhere;
}
.reader-body p { margin: 0 0 1.05em; }
.reader-body h3, .reader-body h4 { margin: 1.6em 0 0.6em; font-size: 1.15rem; line-height: 1.35; font-weight: 600; }
.reader-body h4 { font-size: 1.02rem; }
.reader-body ul, .reader-body ol { margin: 0 0 1.05em; padding-left: 1.3em; }
.reader-body li { margin-bottom: 0.4em; }
.reader-body li::marker { color: var(--c-accent); }
.reader-body hr { margin: 1.8em 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.reader-body a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }
.reader-body blockquote, .reader-body aside { margin: 0 0 1.05em; padding: 4px 0 4px 16px; border-left: 2px solid var(--c-accent); color: var(--c-text-2); }
.reader-body img { display: block; max-width: 100%; height: auto; margin: 0 auto 1em; border-radius: var(--r-sm); }
.reader-body pre { white-space: pre-wrap; }
.reader-note { color: var(--c-text-2); }
@media (max-width: 640px) {
  .reader-modal { padding: 0; }
  .reader {
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    padding: 16px 18px 36px;
    border-radius: 0;
    border-width: 0;
  }
  .reader-title { margin: 20px 0 16px; }
  .reader-body { font-size: 1rem; line-height: 1.7; }
}
#topic-list.topic-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
#topic-list .topic-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 10px 16px 10px 10px;
  text-align: left;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  transition: background .2s, border-color .2s;
}
#topic-list .topic-tile:hover,
#topic-list .topic-tile:focus-visible {
  transform: none;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(0, 169, 148, 0.45);
}
#topic-list .topic-icon { width: 34px; height: 34px; border-radius: 10px; }
#topic-list .topic-icon svg { width: 18px; height: 18px; }
#topic-list .topic-tile h3 { margin: 0; font-size: 0.92rem; line-height: 1.35; overflow-wrap: anywhere; }
#topic-list .topic-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--c-text-2);
  transition: color .2s;
}
#topic-list .topic-count { margin-left: 2px; }
#topic-list .topic-tile:hover .topic-more,
#topic-list .topic-tile:focus-visible .topic-more { color: var(--c-accent); }
@media (max-width: 520px) {
  #topic-list .topic-tile {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
    padding: 10px 12px 10px 10px;
  }
  #topic-list .topic-icon { grid-row: span 2; }
  #topic-list .topic-tile h3 { font-size: 0.88rem; }
  #topic-list .topic-more { grid-column: 2; font-size: 0.74rem; }
}

/* Мобильная версия: непрозрачный чёрный фон под всей страницей — в том числе
   за краем прокрутки и под системными панелями, где во встроенных браузерах
   (Telegram, Instagram) иначе просвечивает приложение. Слой с градиентами не нужен. */
@media (max-width: 860px) {
  html, body { background: #000000; }
  .backdrop { display: none; }
}

/* ---------- PRESIDENT AI SEARCH ---------- */
.ai-panel { padding: 18px; display: grid; gap: 14px; border-radius: var(--r-lg); }
.ai-panel .search input, .ai-follow .search input { padding-right: 112px; }
.ai-options { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ai-history { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; }
.ai-history .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ai-thread { display: grid; gap: 14px; margin-top: 14px; }
#ai-thread > .link-btn { justify-self: start; }
.ai-turn { padding: clamp(18px, 3vw, 28px); border-radius: var(--r-lg); display: grid; gap: 14px; scroll-margin-top: 110px; }
.ai-q { display: grid; gap: 8px; justify-items: start; }
.ai-q h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.ai-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--c-text-2); }
.ai-steps li { position: relative; padding-left: 22px; overflow-wrap: anywhere; }
.ai-steps li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); opacity: .45; }
.ai-steps li.active { color: var(--c-text); }
.ai-steps li.active::before { opacity: 1; animation: ai-pulse 1.1s ease-in-out infinite; }
@keyframes ai-pulse { 0%, 100% { transform: scale(.7); box-shadow: 0 0 0 0 rgba(0, 169, 148, .5); } 50% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(0, 169, 148, 0); } }
.ai-answer { font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.ai-answer:empty { display: none; }
.ai-answer h3 { margin: 22px 0 8px; font-size: 1.05rem; font-weight: 600; color: var(--c-text); }
.ai-answer h3:first-child { margin-top: 0; }
.ai-answer h4 { margin: 16px 0 6px; font-size: 1rem; font-weight: 600; }
.ai-answer p, .ai-answer ul, .ai-answer ol { margin: 0 0 12px; }
.ai-answer ol { padding-left: 22px; }
.ai-answer a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
#ai-thread > *, .ai-turn > * { min-width: 0; }
.ai-table { margin: 0 0 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ai-table table { border-collapse: collapse; min-width: 100%; font-size: 14.5px; line-height: 1.45; }
.ai-table th, .ai-table td { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; vertical-align: top; overflow-wrap: normal; }
.ai-table th { font-weight: 600; white-space: nowrap; border-bottom-color: rgba(255,255,255,.22); }
.ai-caret { display: inline-block; width: 8px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--c-accent); animation: ai-blink 1s steps(2) infinite; }
@keyframes ai-blink { 50% { opacity: 0; } }
.ai-sources { border-top: 1px solid var(--c-glass-border); padding-top: 14px; display: grid; gap: 10px; font-size: 14px; }
.ai-sources h4 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-2); }
.ai-sources ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.ai-sources li { overflow-wrap: anywhere; }
.ai-sources li a { color: var(--c-text); }
.ai-sources li a:hover { color: var(--c-accent); }
.ai-sources li span { margin-left: 8px; font-size: 12.5px; color: var(--c-text-3); }
.ai-sources summary { cursor: pointer; color: var(--c-text-2); }
.ai-sources details ol { margin-top: 8px; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-follow { padding: 12px; border-radius: var(--r-lg); display: grid; gap: 10px; }
@media (max-width: 640px) {
  .ai-panel { padding: 14px; }
  .ai-panel .search input, .ai-follow .search input { height: 52px; padding-left: 46px; padding-right: 96px; }
  .ai-follow .search input { padding-left: 18px; }
  .ai-panel .search .btn, .ai-follow .search .btn { display: inline-flex; height: 40px; padding: 0 16px; }
  .ai-answer { font-size: 15.5px; }
}

/* Шапка — светлое жидкое стекло (перекрывает тёмные варианты выше) */
.nav {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.28) 55%, rgba(255, 255, 255, 0.18) 100%),
    rgba(235, 244, 242, 0.30);
  border-color: rgba(255, 255, 255, 0.70);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 22px rgba(255, 255, 255, 0.35),
    0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(28px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.08);
}
.nav .logo { color: #00796A; }
.nav .nav-links a { color: #1E2523; }
.nav .nav-links a:hover { color: #0B0F0E; background: rgba(255, 255, 255, 0.45); }
.nav .nav-links a[aria-current="page"],
.nav .nav-links a[aria-current] { color: #0B0F0E; background: rgba(255, 255, 255, 0.55); }
.nav .burger {
  color: #101311;
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.nav .burger:hover { background: rgba(255, 255, 255, 0.65); }
.mobile-menu {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.70) 0%, rgba(255, 255, 255, 0.40) 100%),
    rgba(235, 244, 242, 0.35);
  border-color: rgba(255, 255, 255, 0.70);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 12px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(28px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.08);
}
.mobile-menu a { color: #1E2523; }
.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] { color: #0B0F0E; background: rgba(255, 255, 255, 0.50); }
.mobile-menu a[href="#ask"] { color: #071311; background: #00A994; }
@media (prefers-reduced-transparency: reduce) {
  .nav, .mobile-menu { background: rgba(240, 245, 244, 0.96); }
}

/* Боковые баннеры — только на широких экранах, стоят на месте при прокрутке.
   Заполняют боковые поля: верх на уровне шапки, ширина — поле минус отступы. */
.side-banner { display: none; }
@media (min-width: 1200px) and (min-height: 560px) {
  .side-banner {
    --gutter: calc((100vw - var(--container)) / 2);
    --side-w: min(calc(var(--gutter) - 36px), calc((100vh - 48px) / 2.73));
    display: block;
    position: fixed;
    top: 16px;
    z-index: 5;
    width: var(--side-w);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 28px rgba(0, 169, 148, 0.25), 0 12px 32px rgba(0, 0, 0, 0.45);
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .side-banner img { display: block; width: 100%; height: auto; }
  .side-banner:hover { transform: scale(1.015); box-shadow: 0 0 36px rgba(0, 169, 148, 0.40), 0 14px 36px rgba(0, 0, 0, 0.5); }
  .side-banner-left { left: calc((var(--gutter) - var(--side-w)) / 2); }
  .side-banner-right { right: calc((var(--gutter) - var(--side-w)) / 2); }
}

/* ---------- Разделы: вопросы / отзывы ---------- */
.qa-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.qa-tab {
  height: 38px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer;
  color: var(--c-text-2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--c-glass-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.qa-tab:hover { color: var(--c-text); }
.qa-tab.active { color: var(--c-ink); background: var(--c-accent); border-color: transparent; }
.qa-tab span { margin-left: 4px; opacity: 0.7; font-size: 12px; }
.qa-tab span:empty { display: none; }
@media (max-width: 520px) { .qa-tab { flex: 1 1 auto; padding: 0 12px; font-size: 13px; } }

/* ---------- Фото или GIF к записи ---------- */
.attach { display: grid; gap: 8px; justify-items: start; }
.attach-btn {
  position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; color: var(--c-accent); cursor: pointer; overflow: hidden;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--c-glass-border);
}
.attach-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.attach-preview { position: relative; }
.attach-preview img { display: block; max-width: 220px; max-height: 160px; border-radius: var(--r-sm); border: 1px solid var(--c-glass-border); }
.attach-remove {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer;
  color: #fff; background: rgba(0, 0, 0, 0.55); font-size: 12px;
}
.post-image { display: block; width: fit-content; margin: 10px 0 6px; }
.post-image img { display: block; max-width: min(100%, 420px); max-height: 360px; border-radius: var(--r-sm); border: 1px solid var(--c-glass-border); }

/* ---------- Персонажи на блоках (только мобильная версия) ---------- */
.mascot, .m-duo, .m-bubble { display: none; }
@media (max-width: 720px) {
  .hero, .ask, .welcome, .m-ai-wrap, .m-qa-wrap { position: relative; }
  .mascot { display: block; position: absolute; z-index: 3; pointer-events: none; user-select: none; height: auto; }
  .m-duo { display: block; }

  /* висит на ниточке под первым блоком, в пустом месте справа от заголовка AI SEARCH */
  .m-hero { width: 64px; right: 14px; top: calc(100% - 6px); }
  /* выглядывает справа из-за блока AI-поиска */
  .m-ai-wrap { height: 0; }
  .m-peek { width: 78px; right: -46px; top: 36px; transform: scaleX(-1); }
  /* лежит на ленте с телефоном */
  .m-qa-wrap { margin-top: 34px; }
  .m-lie { width: 104px; right: 10px; top: -44px; }

  /* двое сидят на верхнем крае блока и болтают */
  #ask, .welcome { margin-top: 108px; }
  .m-sit { width: 74px; bottom: calc(100% - 26px); }
  .m-left { left: 18px; }
  .m-right { right: 18px; }
  .m-bubble {
    display: block; position: absolute; z-index: 4; bottom: calc(100% + 62px); padding: 5px 10px; border-radius: 12px;
    font-size: 11.5px; line-height: 1.2; white-space: nowrap; color: var(--c-text);
    background: rgba(255, 255, 255, 0.08); border: 1px solid var(--c-glass-border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .m-bubble::after {
    content: ""; position: absolute; bottom: -5px; width: 8px; height: 8px; transform: rotate(45deg);
    background: inherit; border-right: 1px solid var(--c-glass-border); border-bottom: 1px solid var(--c-glass-border);
  }
  .m-bubble-left { left: 86px; bottom: calc(100% + 74px); }
  .m-bubble-left::after { left: 10px; }
  .m-bubble-right { right: 90px; bottom: calc(100% + 40px); }
  .m-bubble-right::after { right: 10px; }

  /* висит на ниточке под блоком «Добро пожаловать» */
  .welcome { margin-bottom: 150px; }
  .m-below { width: 66px; left: 50%; top: calc(100% - 4px); }

  .m-hang { transform-origin: 50% 0; animation: m-swing 3.4s ease-in-out infinite; }
  .m-below { animation-name: m-swing-c; }
  .m-bubble { animation: m-bob 3s ease-in-out infinite; }
  .m-bubble-right { animation-delay: 1.5s; }
}
@keyframes m-swing { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-4deg); } }
@keyframes m-swing-c { 0%, 100% { transform: translateX(-50%) rotate(4deg); } 50% { transform: translateX(-50%) rotate(-4deg); } }
@keyframes m-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) { .m-hang, .m-bubble { animation: none; } .m-below { transform: translateX(-50%); } }

/* ---------- Обсуждения ---------- */

/* ---------- Мобильная оптимизация: без горизонтального сдвига, читаемые размеры ---------- */
html, body { overflow-x: hidden; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 720px) {
  /* персонаж сбоку больше не выходит за экран */
  .m-peek { width: 64px; right: -16px; top: 112px; }

  /* поля ввода не меньше 16px — иначе iPhone увеличивает страницу при нажатии */
  input, textarea, select, #ai-query { font-size: 16px !important; }

  /* текст */
  body { line-height: 1.55; }
  .post p, .answer p, .q-text { font-size: 15px !important; line-height: 1.55; }
  .post-head b { font-size: 14.5px; }
  .meta { font-size: 13px; }
  .note, .muted { font-size: 14px; }
  .eyebrow { font-size: 12.5px; letter-spacing: 0.08em; }
  .edu-card p { font-size: 14.5px; line-height: 1.5; }
  .edu-tag { font-size: 12px; }
  .m-bubble { font-size: 12.5px; }
  .welcome-income-cta p, .welcome-income-cta p a { font-size: 13px; line-height: 1.5; }
  .footer, .footer p, .footer a { font-size: 14px; }
  .footer h5 { font-size: 14px; }

  /* кнопки и ссылки — удобно попадать пальцем */
  .btn, .hero .chips .btn { font-size: 14.5px; min-height: 44px; }
  .chip, .qa-tab { font-size: 14px; min-height: 40px; }
  .link-btn { min-height: 40px; font-size: 14px; }
  .edu-link { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; }
  .footer a { padding: 8px 0; }
  .logo span { font-size: 11.5px !important; }
  .footer .logo span { font-size: 13px !important; }
  .ask .btn, .welcome .btn { font-size: 14.5px !important; }
}

/* ---------- Вкладки в один ряд на телефоне ---------- */
.qa-tab .qa-short { display: none; }
.qa-tab .qa-full, .qa-tab .qa-short { margin: 0; opacity: 1; font-size: inherit; }
@media (max-width: 720px) {
  .qa-tabs { flex-wrap: nowrap; gap: 6px; }
  .qa-tab { flex: 1 1 0; min-width: 0; padding: 0 6px; font-size: 13.5px; white-space: nowrap; }
  .qa-tab .qa-full { display: none; }
  .qa-tab .qa-short { display: inline; }
}
