:root {
  --bg: #f4f4f2;
  --card: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e6e6e2;
  --orange: #e85a1a;
  --orange-soft: #fff1e8;
  --sidebar: 232px;
  --header: 64px;
  --radius: 16px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: var(--sidebar) 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 20px 0 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 20px;
  min-width: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--orange) 50%, #2a2a2a 50%);
  flex-shrink: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--orange);
  text-transform: uppercase;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-name small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.search {
  position: relative;
  max-width: 560px;
  width: 100%;
  justify-self: center;
}

.search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 42px 0 16px;
  background: #fafafa;
  outline: none;
}

.search input:focus { border-color: #ccc; background: #fff; }
.search-btn {
  position: absolute;
  right: 8px;
  top: 4px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.15s ease;
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: #bbb; }

.btn-orange {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-orange:hover { filter: brightness(0.95); }

.btn-line {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: calc(100vh - var(--header));
}

.sidebar {
  position: sticky;
  top: var(--header);
  height: calc(100vh - var(--header));
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 18px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 12px 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--ink);
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.nav-link:hover { background: #f5f5f3; }
.nav-link.is-active {
  background: var(--orange-soft);
  color: var(--orange);
  box-shadow: inset 3px 0 0 var(--orange);
}

.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }

.sidebar-actions {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  padding: 0 4px;
}

.sidebar-actions .btn { width: 100%; font-size: 13px; height: 38px; }

.sidebar-foot {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.content {
  min-width: 0;
  padding: 22px 24px 40px;
}

.page-head { margin-bottom: 18px; }
.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #ebebe8;
  color: #444;
  font-size: 13px;
  font-weight: 600;
}
.tag:hover, .tag.is-active {
  background: var(--orange);
  color: #fff;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.pill.is-active, .pill:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Feed masonry */
.feed {
  columns: 3 280px;
  column-gap: 14px;
}

.post {
  break-inside: avoid;
  margin-bottom: 14px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.post.pinned {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.post-cover {
  background: #ddd;
  position: relative;
}
.post-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.post.tall .post-cover img { aspect-ratio: 3 / 5; }
.post.wide .post-cover img { aspect-ratio: 16 / 10; }

.pin-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 8px;
}

.post-body { padding: 12px 14px 14px; }
.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.post-title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}
.post-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-stats {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* Info pages */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-bottom: 16px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.panel h2 { margin: 0 0 10px; font-size: 24px; }
.panel p { color: var(--muted); margin: 0 0 10px; }
.hero-visual {
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.fact b {
  display: block;
  font-size: 28px;
  margin-bottom: 4px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.program-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}
.tab.is-active, .tab:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.partner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  min-height: 200px;
}
.partner-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 12px;
}
.partner .role {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.partner h3 { margin: 0 0 8px; font-size: 18px; }
.partner p { margin: 0; color: var(--muted); font-size: 14px; }

.prize-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 12px;
  margin-bottom: 12px;
}
.prize {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  min-height: 180px;
}
.prize.gold {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}
.prize .place {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.prize p { color: inherit; opacity: 0.8; margin: 8px 0 0; font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.legal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  max-width: none;
  width: 100%;
}
.legal h1 { margin-top: 0; }
.legal p { color: var(--muted); }

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #f2f2f2;
  padding: 36px 24px 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer h3 { margin: 0 0 10px; font-size: 16px; }
.requisites, .footer-note { color: #bdbdbd; font-size: 14px; line-height: 1.7; margin: 0; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.soc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: grid;
  place-items: center;
  color: #fff;
}
.soc:hover { background: #fff; color: #1a1a1a; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #9a9a9a;
  font-size: 13px;
  flex-wrap: wrap;
}

/* Modals */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.overlay.is-open { display: flex; }

/* Авторизация всегда поверх просмотрщика поста */
#post-viewer { z-index: 100; }
#auth { z-index: 130; }
#question,
#join,
#sponsor,
#ads,
#write { z-index: 120; }

.auth-modal {
  width: min(860px, 100%);
  min-height: 480px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: #fff;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.auth-side {
  background: linear-gradient(180deg, #2a211c 0%, #15110f 100%);
  color: #fff;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.auth-side .brand-name { color: #fff; }
.auth-side .brand-name small { color: rgba(255,255,255,0.55); }
.auth-side p {
  margin: 28px 0 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
  font-size: 15px;
}
.auth-checks {
  margin-top: auto;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}
.auth-checks div {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.auth-checks span {
  color: var(--orange);
  font-weight: 800;
}

.auth-form {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
}
.auth-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.auth-tab {
  border: 0;
  background: transparent;
  padding: 0 0 12px;
  font-weight: 700;
  color: var(--muted);
  position: relative;
}
.auth-tab.is-active { color: var(--orange); }
.auth-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--orange);
}

.auth-form h2 {
  margin: 0 0 18px;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.btn-yandex {
  height: 48px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-yandex:hover { background: #fafafa; }
.ya-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fc3f1d;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.auth-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.auth-switch {
  margin-top: auto;
  padding-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.auth-switch button {
  border: 0;
  background: transparent;
  color: var(--orange);
  font-weight: 700;
  padding: 0;
}

.modal {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  position: relative;
}
.modal.wide { width: min(560px, 100%); }
.modal h2 { margin: 0 0 8px; font-size: 24px; }
.modal > p { margin: 0; color: var(--muted); font-size: 14px; }
.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f0f0ee;
  font-size: 20px;
  line-height: 1;
}
.auth-modal .close {
  background: transparent;
  color: #999;
}

.form { display: grid; gap: 12px; margin-top: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: #444; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #f7f7f5;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: #ccc;
  background: #fff;
}
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
}
.check a { color: var(--orange); font-weight: 700; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #1a1a1a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  display: none;
  z-index: 140;
  font-size: 14px;
}
.toast.is-open { display: block; }

/* Post viewer */
.post-viewer {
  width: min(1100px, 100%);
  height: min(720px, calc(100vh - 40px));
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.pv-media {
  position: relative;
  background: #111;
  min-height: 320px;
}
.pv-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.pv-nav.prev { left: 14px; }
.pv-nav.next { right: 14px; }
.pv-nav:hover { background: rgba(0,0,0,0.7); }
.pv-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.pv-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.pv-dots span.is-active { background: #fff; }

.pv-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
}
.pv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 0 16px;
}
.pv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-chip {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f5f5f3;
  font-weight: 700;
  font-size: 13px;
  color: #333;
}
.pv-chip:hover { background: #eee; }
.pv-side .close {
  position: static;
  flex-shrink: 0;
}

.pv-from {
  margin: 14px 16px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.pv-from-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--orange-soft);
  display: grid;
  place-items: center;
}
.pv-from-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}
.pv-from-title {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
}

.pv-author {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px 0;
}
.pv-author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--orange-soft);
}
.pv-author strong { display: block; font-size: 15px; }
.pv-author span { color: var(--muted); font-size: 12px; }

.pv-body {
  padding: 12px 16px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.pv-body p {
  margin: 0 0 10px;
  color: #333;
  font-size: 14px;
  line-height: 1.55;
}
.pv-tags {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}

.pv-comments {
  border-top: 1px solid var(--line);
  padding: 12px 16px 16px;
  max-height: 220px;
  overflow: auto;
}
.pv-comments h4 {
  margin: 0 0 10px;
  font-size: 14px;
}
.pv-comment {
  margin-bottom: 10px;
  font-size: 13px;
}
.pv-comment strong { display: block; margin-bottom: 2px; }
.pv-comment p { margin: 0; color: #444; }
.pv-comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}
.pv-comment-form input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  height: 40px;
  background: #f7f7f5;
  outline: none;
}

@media (max-width: 900px) {
  .post-viewer {
    grid-template-columns: 1fr;
    height: auto;
    max-height: calc(100vh - 24px);
    overflow: auto;
  }
  .pv-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
    max-height: 42vh;
  }
  .pv-media img {
    max-height: 42vh;
    object-fit: cover;
  }
  .pv-side {
    display: block;
    overflow: visible;
  }
  .pv-body {
    flex: none;
    overflow: visible;
    max-height: none;
    min-height: auto;
  }
  .pv-comments {
    max-height: none;
    overflow: visible;
  }
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: none;
  z-index: 40;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.search-results.is-open { display: block; }
.search-results a {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: #444;
}
.search-results a:hover { background: #fafafa; color: var(--ink); }
.search-results .empty { padding: 16px; color: var(--muted); font-size: 14px; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  max-width: 220px;
}
.user-chip--yandex {
  border-color: #ffd6cc;
  background: #fff8f5;
}
.user-chip img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--orange-soft);
}
.user-chip-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.user-chip-meta strong {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.user-chip-meta small {
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-yandex-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
}
.btn-yandex-top:hover { background: #fafafa; border-color: #ccc; }
.btn-yandex-top .ya-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #fc3f1d;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.profile-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.profile-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--orange-soft);
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .feed { columns: 2 240px; }
  .facts, .partner-grid, .prize-grid, .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto auto;
    padding: 0 12px;
  }
  .brand { padding-left: 0; }
  .search, .phone, .layout { display: block; }
  .sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: var(--header);
    width: min(300px, 88vw);
    z-index: 60;
    box-shadow: 20px 0 40px rgba(0,0,0,0.15);
  }
  .sidebar.is-open { display: flex; }
  .burger { display: grid; place-items: center; }
  .content { padding: 16px 14px 32px; }
  .btn-yandex-top span:not(.ya-icon) { display: none; }
  .btn-yandex-top { padding: 0 10px; width: 40px; }
  .user-chip-meta strong { max-width: 90px; }
  .hero, .split, .footer-grid, .auth-modal { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-modal { min-height: auto; }
  .facts, .partner-grid, .prize-grid, .steps { grid-template-columns: 1fr; }
  .feed { columns: 1; }

  /* На мобиле обложки ниже — без «башен» 3:5 */
  .post-cover img,
  .post.tall .post-cover img,
  .post.wide .post-cover img {
    aspect-ratio: 16 / 10;
    max-height: 220px;
    width: 100%;
    object-fit: cover;
  }
}
