/* ============================================================
   Bass History — общий стиль сайта
   ============================================================ */

:root {
  --bg:          #0e1013;
  --bg-soft:     #14171c;
  --panel:       #191d23;
  --panel-2:     #1f242b;
  --line:        #2b313a;
  --text:        #e6e2da;
  --text-dim:    #a3a49f;
  --text-faint:  #6f7378;
  --amber:       #e0a458;
  --amber-soft:  #f2c98a;
  --copper:      #b5683c;
  --teal:        #6fa8a0;
  --radius:      10px;
  --maxw:        1080px;
  --serif:       Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -200px, #1a1f26 0%, rgba(26,31,38,0) 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Типографика ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.95rem); margin-top: 2.2em; }
h3 { font-size: 1.18rem; margin-top: 1.6em; color: var(--amber-soft); }

p { margin: 0 0 1.1em; }

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

strong { color: #fff; font-weight: 600; }

em { color: var(--text-dim); }

ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5em 0;
}

blockquote {
  margin: 1.8em 0;
  padding: 0.4em 0 0.4em 1.4em;
  border-left: 3px solid var(--amber);
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--amber-soft);
}
blockquote cite {
  display: block;
  margin-top: 0.5em;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: var(--amber-soft);
}

/* ---------- Каркас ---------- */

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

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 16, 19, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  transform: translateY(-1px);
}
.brand small {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  font-size: 0.86rem;
}

.nav a {
  color: var(--text-dim);
  padding: 6px 11px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav a:hover {
  color: var(--text);
  background: var(--panel-2);
  text-decoration: none;
}
.nav a.active {
  color: #14171c;
  background: var(--amber);
  font-weight: 600;
}

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 54px;
  border-bottom: 1px solid var(--line);
}

.hero .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1em;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  color: var(--text-dim);
  max-width: 62ch;
  font-family: var(--serif);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 6px;
  border: 1px solid var(--amber);
  background: var(--amber);
  color: #14171c;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.btn:hover { background: var(--amber-soft); border-color: var(--amber-soft); text-decoration: none; }

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-dim);
}
.btn.ghost:hover { background: var(--panel-2); color: var(--text); border-color: var(--text-faint); }

/* ---------- Секции ---------- */

main { padding-bottom: 80px; }

section { padding: 8px 0; }

.page-head {
  padding: 60px 0 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.page-head .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9em;
}
.page-head p {
  color: var(--text-dim);
  max-width: 66ch;
  font-family: var(--serif);
  font-size: 1.1rem;
}

/* ---------- Сетка карточек ---------- */

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin: 26px 0 10px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.card:hover {
  border-color: var(--copper);
  background: var(--panel-2);
  transform: translateY(-2px);
}
.card h3 {
  margin-top: 0;
  margin-bottom: 0.35em;
  color: var(--text);
}
.card .tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.9em;
}
.card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 0; }

.card.link { display: block; color: inherit; }
.card.link:hover { text-decoration: none; }

/* ---------- Таймлайн ---------- */

.timeline {
  position: relative;
  margin: 34px 0 10px;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.timeline .item {
  position: relative;
  padding-bottom: 34px;
}
.timeline .item:last-child { padding-bottom: 6px; }

.timeline .item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 9px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--amber);
}

.timeline .year {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--amber);
  display: block;
  margin-bottom: 0.15em;
}

.timeline h3 { margin: 0 0 0.35em; color: var(--text); font-size: 1.05rem; }
.timeline p { color: var(--text-dim); font-size: 0.96rem; margin-bottom: 0; }

/* ---------- Таблица ---------- */

.table-scroll { overflow-x: auto; margin: 26px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}
th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  border-bottom-color: var(--text-faint);
}
tbody tr:hover { background: var(--panel); }
td:first-child { color: var(--amber-soft); white-space: nowrap; }

/* ---------- Заметки / врезки ---------- */

.note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 26px 0;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.note strong { color: var(--text); }
.note.warn { border-left-color: var(--copper); }

/* ---------- Хлебные крошки / навигация между страницами ---------- */

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.pager .next { text-align: right; margin-left: auto; }
.pager small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Факты списком ---------- */

.facts {
  list-style: none;
  padding: 0;
  margin: 26px 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.facts li {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.facts li b {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--amber);
  font-weight: 400;
  line-height: 1.2;
}

/* ---------- Подвал ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 44px 0 40px;
  font-size: 0.88rem;
  color: var(--text-faint);
}
.site-footer .cols {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.71rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.9em;
}
.site-footer a { color: var(--text-faint); display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--amber); text-decoration: none; }
.site-footer .fine {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

/* ---------- Адаптив ---------- */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 18px;
    gap: 10px;
  }
  .nav { font-size: 0.82rem; }
  .nav a { padding: 5px 9px; }
  .hero { padding: 46px 0 38px; }
  .timeline { padding-left: 22px; }
  .timeline .item::before { left: -27px; }
}
