/* Своє — the look of concept C: white, ink, one blue, a yellow for «соло». Unbounded headings, Inter text. */
:root {
  --ink: #16181D;
  --ink-2: #2E3138;
  --muted: #5B5E66;
  --line: #E4E4E0;
  --line-2: #D6D6D1;
  --soft: #F7F7F5;
  --soft-2: #F1F1EE;
  --soft-3: #ECECE8;
  --bg: #FFFFFF;
  --blue: #2446D8;
  --blue-d: #1A33A0;
  --yellow: #FFD43B;
  --solo-bg: #FFF3C4;
  --solo-fg: #6B4E00;
  --ok-bg: #E3F4E8;
  --ok-fg: #14532D;
  --bad-bg: #FDE8E8;
  --bad-fg: #8B1A1A;
  --r: 14px;
  --head: 'Unbounded', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
a { color: var(--blue); }
a:hover { color: var(--blue-d); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 460px; margin: 48px auto; }
.narrow-w { max-width: 760px; margin: 40px auto; }
.row-gap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lim { max-width: 680px; }
.show-m { display: none; }
@media (max-width: 640px) { .show-m { display: inline; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.big { height: 52px; padding: 0 22px; border-radius: 14px; }
.btn.wide { width: 100%; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-d); color: #fff; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; color: #fff; }
.btn.yellow { background: var(--yellow); color: var(--ink); }
.btn.ghost { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn.danger { color: var(--bad-fg); }
.icon-btn { width: 44px; padding: 0; font-size: 20px; }
.linkish { background: none; border: 0; padding: 12px; font: inherit; color: inherit; cursor: pointer; text-align: left; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--yellow); display: flex; align-items: center;
  justify-content: center; font-family: var(--head); font-weight: 700; font-size: 16px; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 19px; }
.top-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: 8px; }
.top-nav a { padding: 10px 14px; border-radius: 10px; color: #4A4D55; text-decoration: none; font-weight: 500; font-size: 14px; }
.top-nav a.on, .top-nav a:hover { background: var(--soft-2); color: var(--ink); font-weight: 600; }
.top-gap { flex: 1 1 auto; }
.top-link { padding: 10px 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--ok-bg); color: var(--ok-fg); font-weight: 500; }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--solo-bg); color: var(--solo-fg); }
.error { padding: 10px 14px; border-radius: 10px; background: var(--bad-bg); color: var(--bad-fg); margin: 0 0 12px; }

/* Hero */
.hero { padding-top: 40px; padding-bottom: 8px; }
.hero h1 { font-family: var(--head); font-weight: 700; font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -0.01em; max-width: 820px; }
.hero p { margin: 12px 0 0; font-size: 17px; color: #4A4D55; max-width: 680px; }
.hero-s h1 { font-size: clamp(26px, 4vw, 34px); }

/* Two columns */
.two-col { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 24px; padding-bottom: 64px; }
.col-main { flex: 999 1 600px; min-width: 0; }
.col-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }

/* Filters */
.filters { margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg);
  color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); margin-top: 12px; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--soft-3); border-radius: 12px; padding: 4px; gap: 2px; }
.seg a { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.seg a.on { background: var(--bg); box-shadow: 0 1px 3px rgba(22,24,29,.15); }
.small-seg a { height: 30px; font-size: 13px; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--soft-2); color: var(--muted); flex: 1 1 200px; max-width: 320px; }
.search input { border: 0; background: transparent; font: inherit; font-size: 14px; width: 100%; outline: none; color: var(--ink); }
.search:focus-within { outline: 2px solid var(--blue); }
.reset { font-size: 14px; font-weight: 600; padding: 8px; }

/* Feed */
.day { margin: 24px 0 8px; }
.day-title { font-family: var(--head); font-weight: 500; font-size: 20px; margin-bottom: 6px; }
.launches, .mine { list-style: none; margin: 0; padding: 0; }
.launch { display: flex; align-items: center; gap: 16px; padding: 14px 12px; border-radius: 16px; }
.launch:hover { background: var(--soft); }
.rank { width: 22px; flex: none; text-align: right; font-size: 14px; color: #8A8D95; }
.launch-ic { flex: none; display: block; line-height: 0; }
.launch-body { flex: 1 1 auto; min-width: 0; }
.launch-name { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
.launch-name:hover { color: var(--blue); }
.launch-tag { font-size: 14px; color: #4A4D55; margin-top: 2px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.meta-link { color: var(--muted); text-decoration: none; }
.meta-link:hover { color: var(--blue); }
.maker { font-weight: 600; color: var(--ink); }
.ava { width: 20px; height: 20px; border-radius: 50%; background: var(--soft-3); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; flex: none; }
.ava-l { width: 40px; height: 40px; font-size: 14px; background: var(--ink); color: var(--yellow); }
.ava-xl { width: 52px; height: 52px; font-size: 17px; background: var(--ink); color: var(--yellow); }
.badge-solo { background: var(--solo-bg); color: var(--solo-fg); border-radius: 6px; padding: 2px 6px; font-weight: 700; font-size: 12px; }
.badge-solo.big { font-size: 13px; padding: 4px 10px; border-radius: 8px; }
.tag { background: var(--soft-3); color: var(--ink); border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 600; text-decoration: none; }
.vote-f { margin: 0; flex: none; }
.vote { flex: none; width: 60px; height: 64px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); display: inline-flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.vote:hover { border-color: var(--ink); color: var(--ink); }
.vote.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager { display: flex; gap: 12px; margin-top: 24px; }
.empty { padding: 40px 24px; border: 1px dashed var(--line-2); border-radius: 20px; text-align: center; color: #4A4D55; margin: 24px 0; }

/* Icons */
.ic { display: block; object-fit: cover; flex: none; background: var(--soft-2); }
.ic-glyph { display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--head); font-weight: 700; }
.ic-s { width: 48px; height: 48px; border-radius: 13px; font-size: 17px; }
.ic-m { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }
.ic-l { width: 88px; height: 88px; border-radius: 24px; font-size: 28px; box-shadow: 0 2px 6px rgba(22,24,29,.12); }
.ic-xl { width: 128px; height: 128px; border-radius: 32px; font-size: 44px; box-shadow: 0 6px 18px rgba(22,24,29,.15); }

/* Sidebar */
.side-cta { background: var(--ink); color: #F2F2EE; border-radius: 20px; padding: 24px; }
.side-cta-title { font-family: var(--head); font-weight: 700; font-size: 18px; line-height: 1.3; }
.side-cta p { margin: 8px 0 16px; font-size: 14px; color: #C9CBD1; line-height: 1.5; }
.side-box { border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin: 0; }
.side-box.dashed { border-style: dashed; border-color: #C9C9C3; }
.side-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.makers, .spotted { list-style: none; margin: 0; padding: 0; }
.makers li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.makers-who { flex: 1 1 auto; min-width: 0; }
.makers-name { font-weight: 600; font-size: 14px; }
.spotted li { padding: 10px 0; border-top: 1px solid var(--soft-2); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.spotted-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.side-total { margin: 0 4px; }

/* Catalog grid */
.grid-sort { display: flex; gap: 12px; align-items: center; margin: -4px 0 20px; font-size: 14px; }
.grid-sort a { color: var(--muted); text-decoration: none; font-weight: 600; }
.grid-sort a.on { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.shelf { list-style: none; margin: 0; padding: 8px 0 64px; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 32px 16px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); text-align: center; }
.tile .ic { transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover .ic { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(22,24,29,.18); }
.tile:hover { color: var(--ink); }
.tile-name { font-size: 14px; font-weight: 600; line-height: 1.25; }
.tile-meta { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin-top: -4px; }

/* Project page */
.proj { padding-top: 40px; }
.proj-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.proj-title { flex: 1 1 300px; }
.proj-title h1 { font-family: var(--head); font-weight: 700; font-size: clamp(28px, 4vw, 36px); line-height: 1.15; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.lead { margin: 8px 0 0; font-size: 18px; color: #4A4D55; }
.proj-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.proj-actions .vote { height: 52px; width: auto; flex-direction: row; padding: 0 18px; gap: 8px; }
.sub { font-size: 16px; font-weight: 700; margin: 36px 0 12px; }
.shots { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.shot { flex: none; scroll-snap-align: start; line-height: 0; }
.shot img { height: 420px; width: auto; border-radius: 20px; border: 1px solid var(--line); }
.prose { font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 700px; overflow-wrap: anywhere; }
.story { margin: 0; padding: 16px 20px; background: var(--soft); border-radius: 16px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 700px; }
.story a { display: inline-block; margin-top: 8px; text-decoration: none; }
.maker-card { display: flex; align-items: center; gap: 12px; margin: 12px 0 16px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.mini-icons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.mini-icons a { line-height: 0; }
.side-box textarea { margin: 10px 0; }

/* Forms */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.form h1 { font-family: var(--head); font-weight: 700; font-size: 26px; margin-bottom: 8px; }
.form label, .lbl { display: block; font-size: 13px; font-weight: 600; color: #4A4D55; margin: 14px 0 6px; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=url], .form input:not([type]), .form select, .form textarea,
.card textarea, .card input[type=url], .side-box textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); }
.form textarea, .card textarea { resize: vertical; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus, .card textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form button[type=submit] { margin-top: 20px; }
.form fieldset { border: 0; padding: 0; margin: 24px 0 0; }
.form legend { font-weight: 700; font-size: 16px; padding: 0; }
.form .radio { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); margin: 8px 0; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.invite h1 { font-family: var(--head); font-weight: 700; font-size: 28px; margin-bottom: 12px; }
.ticks { padding-left: 20px; margin: 16px 0 24px; line-height: 1.7; }
.about h1 { font-family: var(--head); font-weight: 700; font-size: 34px; margin-bottom: 12px; }
.about p { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.h1-s { font-family: var(--head); font-weight: 700; font-size: 26px; margin-bottom: 16px; }
.st { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; background: var(--soft-3); color: #3A3D45; white-space: nowrap; }
.st-live, .st-q-live { background: var(--ok-bg); color: var(--ok-fg); }
.st-review, .st-q-ready { background: var(--solo-bg); color: var(--solo-fg); }
.st-rejected, .st-hidden, .st-q-dup, .st-q-ask { background: var(--bad-bg); color: var(--bad-fg); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 24px; margin-top: 40px; background: var(--soft); }
.foot-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; margin-bottom: 16px; }
.foot-row > div { max-width: 520px; font-size: 14px; }
.foot-brand { font-family: var(--head); font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.foot-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }

/* Admin */
body.admin { background: var(--soft-2); }
.adm { display: flex; flex-wrap: wrap; min-height: 100vh; }
.adm-nav { flex: 1 1 220px; max-width: 260px; background: var(--ink); color: #F2F2EE; padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.adm-nav a, .adm-nav .linkish { padding: 11px 12px; border-radius: 10px; color: #C9CBD1; text-decoration: none; font-size: 14px; }
.adm-nav a.on, .adm-nav a:hover { background: #2A2D37; color: #fff; }
.adm-brand { font-family: var(--head); font-weight: 700; font-size: 15px; color: #fff !important; margin-bottom: 12px; }
.adm-gap { flex: 1 1 auto; min-height: 16px; }
.cnt { background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 1px 7px; font-size: 12px; font-weight: 700; margin-left: 4px; }
.adm-main { flex: 999 1 640px; min-width: 0; padding: 32px; }
.adm-main h1 { font-family: var(--head); font-weight: 700; font-size: 26px; margin-bottom: 8px; }
.adm-main h2 { font-size: 18px; }
.adm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; justify-content: space-between; margin: 28px 0 14px; }
.adm-head:first-child { margin-top: 0; }
.adm-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.q-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; }
.q-body { flex: 1 1 300px; min-width: 0; }
.q-raw { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-raw a { color: var(--muted); }
.q-note { margin-top: 4px; color: var(--bad-fg); }
.q-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.q-actions form { margin: 0; }
.row-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.row-form .lbl { margin: 0; }
.row-form input { flex: 1 1 320px; }
.adm-form { margin-top: 8px; }
.adm-danger { margin-top: 16px; }
.table-box { overflow-x: auto; background: var(--bg); border-radius: 16px; border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--soft-2); vertical-align: middle; }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 600; }
.tbl form { margin: 0; }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hide-m { display: none; }
  .top-nav { order: 5; width: 100%; margin-left: 0; }
  .top-row .btn.primary { height: 40px; padding: 0 12px; font-size: 14px; }
  .hero { padding-top: 24px; }
  .launch { gap: 12px; padding: 12px 4px; }
  .rank { display: none; }
  .ic-m { width: 52px; height: 52px; border-radius: 15px; font-size: 18px; }
  .vote { width: 52px; height: 56px; }
  .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 8px; }
  .shelf .ic-l { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }
  .tile-name { font-size: 12px; }
  .tile-meta { display: none; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .shot img { height: 360px; }
  .adm-nav { max-width: none; flex-direction: row; flex-wrap: wrap; }
  .adm-gap { display: none; }
  .adm-main { padding: 20px 16px; }
  .search { max-width: none; }
}
