/* Physical Music — hi-fi пространство. Демо-вёрстка, без зависимостей. */
:root {
  --bg: #0b0d10;
  --bg-soft: #101319;
  --panel: #141922;
  --panel-2: #1a202a;
  --line: #262d38;
  --line-soft: #1e242e;
  --text: #e9e7e3;
  --muted: #98a1ac;
  --accent: #e2a866;
  --accent-deep: #c98a3f;
  --ok: #86b571;
  --warn: #e0b25f;
  --radius: 14px;
  --max: 1120px;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 78% -10%, rgba(226, 168, 102, .10), transparent 62%),
    radial-gradient(900px 520px at 6% 0%, rgba(105, 140, 190, .10), transparent 58%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.015em; font-weight: 650; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small { color: var(--muted); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- бета-плашка ---------- */
.beta-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 44px 9px 22px;
  font-size: 13.5px; color: #241a0c;
  background: linear-gradient(90deg, #f0c184, var(--accent) 55%, #d99a55);
  position: relative; z-index: 30;
}
.beta-bar strong { letter-spacing: .02em; }
.beta-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #241a0c; box-shadow: 0 0 0 3px rgba(36, 26, 12, .18);
  animation: pulse 2.4s ease-in-out infinite; flex: 0 0 auto;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.beta-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: #241a0c; font-size: 20px;
  line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; opacity: .65;
}
.beta-close:hover { opacity: 1; background: rgba(36, 26, 12, .1); }
body.beta-hidden .beta-bar { display: none; }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 22px;
  background: rgba(11, 13, 16, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #1b2029 0 2px, #0f1319 2px 4px);
  border: 1px solid var(--line);
  position: relative; flex: 0 0 auto;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(226, 168, 102, .18);
}
.brand-text { font-weight: 650; letter-spacing: -.01em; display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .13em; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 12px; border-radius: 9px; font-size: 14.5px; color: var(--muted);
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--text); background: var(--panel); }
.site-nav a.is-active { color: var(--text); background: var(--panel-2); }
.nav-cta { margin-left: 6px; color: #241a0c !important; font-weight: 650; background: var(--accent); padding: 8px 14px !important; }
.nav-cta:hover { background: #f0bd85 !important; }

.nav-toggle {
  display: none; width: 40px; height: 36px; border: 1px solid var(--line);
  background: var(--panel); border-radius: 9px; cursor: pointer; padding: 9px 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
.nav-toggle span + span { margin-top: 4px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding: 58px 0 44px; }
.pill {
  display: inline-block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(226, 168, 102, .35);
  background: rgba(226, 168, 102, .07); padding: 5px 11px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.075rem; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 11px; font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; transition: transform .12s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #241a0c; }
.btn-primary:hover { background: #f0bd85; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: #35404f; background: var(--panel-2); }

.hero-stats { display: flex; gap: 30px; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line-soft); }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { order: 2; font-size: 12.5px; color: var(--muted); }
.hero-stats dd { order: 1; margin: 0 0 2px; font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; }

.hero-art { display: flex; justify-content: center; }
.vinyl {
  width: min(330px, 74vw); aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #171c24 0 1.5px, #0e1218 1.5px 3px);
  box-shadow: 0 0 0 1px var(--line), 0 30px 70px -30px rgba(0, 0, 0, 1);
  display: grid; place-items: center; position: relative;
  animation: spin 26s linear infinite;
}
.vinyl-label {
  width: 38%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #241a0c; font-weight: 700; letter-spacing: .04em;
  display: grid; place-items: center; font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- секции ---------- */
.section { padding: 44px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.section-head .link-more { font-size: 14px; color: var(--accent); white-space: nowrap; }
.section-head .link-more:hover { text-decoration: underline; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- карточки ---------- */
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px 18px 16px; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: #333d4b; transform: translateY(-2px); box-shadow: var(--shadow); }
.card .tagrow { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.tag {
  font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: rgba(226, 168, 102, .1);
  border: 1px solid rgba(226, 168, 102, .22); padding: 3px 8px; border-radius: 999px;
}
.tag--muted { color: var(--muted); background: var(--panel-2); border-color: var(--line); }
.card h3 a:hover { color: var(--accent); }
.card p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.card .meta {
  margin-top: auto; display: flex; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--muted);
}

/* ---------- фильтры и поиск ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 22px; }
.chip {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  padding: 7px 13px; border-radius: 999px; font-size: 13.5px; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.chip:hover { color: var(--text); border-color: #35404f; }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #241a0c; font-weight: 600; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.input, .select {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 8px 12px; font-size: 14px; min-width: 190px;
  font-family: inherit;
}
.input::placeholder { color: #6f7883; }
.input:focus, .select:focus { outline: 2px solid rgba(226, 168, 102, .5); outline-offset: 1px; }

/* ---------- полка ---------- */
.listing { position: relative; display: flex; flex-direction: column; gap: 10px; }
.listing h3 { padding-right: 78px; }
.type {
  position: absolute; top: 15px; right: 15px; font-size: 11.5px; font-weight: 650;
  letter-spacing: .04em; padding: 3px 9px; border-radius: 999px;
}
.type--sell { color: #0e2412; background: var(--ok); }
.type--buy { color: #0c1b26; background: #7fb3d5; }
.type--swap { color: #241a0c; background: var(--accent); }
.price { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.price span { font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.spec {
  font-size: 12.5px; color: var(--muted); background: var(--panel-2);
  border: 1px solid var(--line-soft); padding: 3px 8px; border-radius: 7px;
}
.empty { padding: 36px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- страница «О проекте» ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 34px; }
.prose ul { padding-left: 20px; color: var(--muted); }
.prose li + li { margin-top: 6px; }
.beta-box {
  border: 1px solid rgba(226, 168, 102, .35);
  background: linear-gradient(160deg, rgba(226, 168, 102, .12), rgba(226, 168, 102, .03));
  border-radius: var(--radius); padding: 20px 22px; margin: 26px 0;
}
.beta-box h3 { color: var(--accent); margin-top: 0; }
.beta-box ul { margin: 0; padding-left: 20px; color: var(--muted); }
.beta-box li + li { margin-top: 6px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { position: relative; padding-left: 44px; color: var(--muted); margin: 0; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 9px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--accent);
  display: grid; place-items: center; font-weight: 650; font-size: 14px;
}
.steps strong { color: var(--text); }

/* ---------- подвал ---------- */
.site-footer { margin-top: 38px; border-top: 1px solid var(--line-soft); background: rgba(9, 11, 14, .6); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; padding: 30px 22px; max-width: var(--max); margin: 0 auto; }
.footer-brand { max-width: 330px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin: 8px 0 0; }
.footer-cols { display: flex; gap: 46px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.footer-cols a { display: block; font-size: 14px; color: var(--text); opacity: .82; padding: 3px 0; }
.footer-cols a:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line-soft); padding: 14px 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 12.5px; color: var(--muted); max-width: var(--max); margin: 0 auto;
}
.beta-inline { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; }
  .hero-art { order: -1; }
  .vinyl { width: min(210px, 58vw); }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 10px 14px 16px;
    background: rgba(11, 13, 16, .98); border-bottom: 1px solid var(--line); display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-cta { margin: 6px 0 0; text-align: center; justify-content: center; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .section { padding: 30px 0; }
  .toolbar { margin-left: 0; width: 100%; }
  .input, .select { flex: 1; min-width: 0; }
  .beta-bar { font-size: 12.5px; padding-right: 38px; }
  .footer-cols { gap: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .vinyl { animation: none; }
  .beta-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- дополнения: фильтры, форма ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.link-more { color: var(--accent); }
.link-more:hover { text-decoration: underline; }

.post-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.post-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.post-form .input, .post-form .select { width: 100%; min-width: 0; }
.post-form textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 9px 12px; font: inherit; resize: vertical;
}
.post-form textarea:focus { outline: 2px solid rgba(226, 168, 102, .5); outline-offset: 1px; }
.post-form .full { grid-column: 1 / -1; }
.post-form button[disabled] { opacity: .55; cursor: not-allowed; }

@media (max-width: 720px) {
  .post-form { grid-template-columns: 1fr; }
}

/* якоря на карточках не должны уезжать под липкую шапку */
#newsList .card, #marketList .card, #post { scroll-margin-top: 84px; }





