/* ============================================
   История музыки — общий стиль
   ============================================ */

:root {
  --bg:        #0f0e13;
  --bg-soft:   #17151d;
  --bg-card:   #1c1a24;
  --line:      #2b2836;
  --text:      #e8e4dc;
  --text-dim:  #9b95a8;
  --gold:      #c9a227;
  --gold-soft: #e0bf52;
  --serif:     "Georgia", "Times New Roman", serif;
  --sans:      "Helvetica Neue", Arial, sans-serif;
  --maxw:      1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(15,14,19,.92);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
header.site .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .5px;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.logo .mark { color: var(--gold); font-size: 1.5rem; }
.logo:hover { text-decoration: none; color: var(--text); }

nav.main { display: flex; gap: 22px; flex-wrap: wrap; }
nav.main a {
  color: var(--text-dim);
  font-size: .93rem;
  letter-spacing: .3px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
nav.main a:hover, nav.main a.active {
  color: var(--text); text-decoration: none;
  border-bottom-color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 76px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 380px at 15% -10%, rgba(201,162,39,.10), transparent 60%),
    var(--bg);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.18;
  margin: 0 0 20px;
  font-weight: 400;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead {
  font-size: 1.12rem; color: var(--text-dim);
  max-width: 680px; margin: 0;
}
.kicker {
  display: inline-block;
  font-size: .78rem; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}

/* ---------- Sections ---------- */
section.block { padding: 68px 0; border-bottom: 1px solid var(--line); }
section.block:last-of-type { border-bottom: none; }
section.block h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
}
section.block h2 .num { color: var(--gold); font-size: .7em; margin-right: 10px; }
section.block p.sub { color: var(--text-dim); margin: 0 0 34px; max-width: 720px; }

/* ---------- Grid cards ---------- */
.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: #3d3850; transform: translateY(-2px); }
.card h3 {
  font-family: var(--serif); font-weight: 400; font-size: 1.2rem;
  margin: 0 0 10px; color: var(--text);
}
.card .era {
  font-size: .74rem; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 8px;
}
.card p { color: var(--text-dim); font-size: .95rem; margin: 0; }
.card a.more { display: inline-block; margin-top: 14px; font-size: .9rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 10px 0 0; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line);
}
.tl-item { position: relative; padding: 0 0 30px 22px; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 8px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold);
}
.tl-item .year {
  font-family: var(--serif); color: var(--gold);
  font-size: 1.05rem; display: block; margin-bottom: 2px;
}
.tl-item h4 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 600; }
.tl-item p { margin: 0; color: var(--text-dim); font-size: .93rem; }

/* ---------- Article prose ---------- */
.prose { max-width: 760px; }
.prose h2 {
  font-family: var(--serif); font-weight: 400; font-size: 1.7rem;
  margin: 44px 0 14px;
}
.prose h3 { font-size: 1.15rem; margin: 30px 0 8px; }
.prose p { color: #cfc9c0; }
.prose ul { color: #cfc9c0; }
.prose blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif); font-size: 1.1rem; color: var(--text);
}
.prose .lead-in {
  font-size: 1.1rem; color: var(--text);
}

/* ---------- Page header (internal pages) ---------- */
.page-head {
  padding: 62px 0 44px; border-bottom: 1px solid var(--line);
  background: radial-gradient(700px 300px at 20% -20%, rgba(201,162,39,.08), transparent 60%), var(--bg);
}
.page-head h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 12px;
}
.page-head p { color: var(--text-dim); max-width: 640px; margin: 0; }
.breadcrumbs { font-size: .82rem; color: var(--text-dim); margin-bottom: 16px; }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs span { color: var(--gold); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0; color: var(--text-dim); font-size: .88rem;
}
footer.site .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
footer.site a { color: var(--text-dim); }

/* ---------- Misc ---------- */
.btn {
  display: inline-block; padding: 11px 22px;
  border: 1px solid var(--gold); color: var(--gold-soft);
  border-radius: 3px; font-size: .92rem; letter-spacing: .4px;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--gold); color: #14120c; text-decoration: none; }

.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tag {
  font-size: .76rem; letter-spacing: .8px; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 20px;
}

@media (max-width: 640px) {
  .hero { padding: 68px 0 54px; }
  header.site .inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  nav.main { gap: 16px; }
  section.block { padding: 50px 0; }
}
