/* ─── HERO (светлый, со значками МойСклад/1С) ─── */
.page-history #hero {
  background: var(--n900);
  position: relative;
  padding: 120px 56px 80px;
  text-align: center;
  overflow: hidden;
}
.page-history .hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.page-history .section-label { justify-content: center; }
.page-history .hero-product-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 32px;
}
.page-history .hero-logo-badge {
  background: #fff;
  border: 1px solid rgba(29,78,216,.18);
  border-radius: 14px;
  padding: 10px 22px;
  font-size: 17px; font-weight: 700; color: var(--bp);
  box-shadow: 0 2px 12px rgba(29,78,216,.08);
}
.page-history .hero-plus { font-size: 26px; font-weight: 300; color: var(--g6); }
.page-history .hero-title {
  font-size: 52px; font-weight: 700;
  letter-spacing: -.03em; line-height: .95;
  color: #0A1A35; margin-bottom: 20px;
}
.page-history .hero-title span { color: var(--bn); }
.page-history .hero-sub {
  font-size: 18px; font-weight: 400; color: var(--g4);
  line-height: 1.65; margin-bottom: 0;
}

/* ─── YEAR STICKY NAV ─── */
.year-nav {
  position: sticky; top: 68px; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(29,78,216,.1);
  padding: 0 56px;
  display: flex; align-items: center; gap: 8px;
  height: 52px; overflow-x: auto;
}
.year-nav { scrollbar-width: auto; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); }
.year-nav::-webkit-scrollbar { height: 10px; }
.year-nav::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
.year-tab {
  color: var(--g4); text-decoration: none;
  font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: 20px;
  border: 1.5px solid transparent;
  transition: all .2s; white-space: nowrap;
}
.year-tab:hover { color: var(--bp); border-color: rgba(29,78,216,.3); }
.year-tab.active { background: var(--bp); color: #fff; border-color: var(--bp); }

/* ─── HISTORY CONTENT ─── */
.history-wrap { max-width: 900px; margin: 0 auto; padding: 60px 56px 80px; }

/* секция-аккордеон по году: старые годы свёрнуты по умолчанию */
details.year-section { margin-bottom: 56px; }
details.year-section > summary {
  display: inline-flex; align-items: center;
  cursor: pointer; outline: none;
  list-style: none;
  gap: 12px;
  font-size: 13px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--bp);
  margin-bottom: 24px;
  transition: color .15s;
}
details.year-section > summary::-webkit-details-marker { display: none; }
details.year-section > summary::marker { content: ''; }
details.year-section > summary:hover { color: var(--bp); }
details.year-section > summary::after {
  content: ''; display: inline-block;
  width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--bp), var(--be));
  border-radius: 2px;
}
details.year-section:not([open]) > summary { margin-bottom: 0; padding: 8px 0; }
details.year-section:not([open]) > summary::before {
  content: '▸';
  font-size: 14px; letter-spacing: 0;
  color: var(--g6);
}
details.year-section[open] > summary::before {
  content: '▾';
  font-size: 14px; letter-spacing: 0;
  color: var(--bp);
}

/* ─── VERSION CARD ─── */
.ver-card {
  background: #fff;
  border: 1px solid rgba(29,78,216,.1);
  border-radius: 16px;
  padding: 24px 28px; margin-bottom: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.ver-card:hover {
  border-color: rgba(29,78,216,.22);
  box-shadow: 0 8px 32px rgba(29,78,216,.08);
}
.ver-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.ver-num {
  font-size: 17px; font-weight: 700; color: var(--bp);
  background: var(--n900);
  border: 1px solid rgba(29,78,216,.15);
  padding: 4px 14px; border-radius: 20px;
  letter-spacing: .02em; white-space: nowrap;
}
.ver-date { font-size: 13px; color: var(--g6); font-weight: 500; }
.ver-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.tag-new, .tag-upd, .tag-fix {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 12px;
  letter-spacing: .02em;
}
.tag-new { background: rgba(29,78,216,.08); color: var(--bp); }
.tag-upd { background: rgba(191,87,0,.08); color: var(--bn); }
.tag-fix { background: rgba(22,163,74,.1); color: var(--success-text); }

.ver-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ver-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--g4); line-height: 1.55;
}
.ver-icon { flex-shrink: 0; font-size: 13px; margin-top: 1px; }
.ver-empty { font-size: 14px; color: var(--g6); font-style: italic; }

/* ─── LEGEND ─── */
.legend {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 14px 20px;
  background: var(--n900);
  border-radius: 12px;
  border: 1px solid rgba(29,78,216,.08);
}
.legend-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--g4);
}

/* ─── RESPONSIVE спец-стили ─── */
@media (max-width: 900px) {
  .page-history #hero { padding: 100px 24px 32px; }
  .page-history .hero-title { font-size: 38px; }
  .year-nav { padding: 0 20px; }
  .history-wrap { padding: 40px 20px 60px; }
}
@media (max-width: 640px) {
  .page-history .hero-title { font-size: var(--fs-h1-mobile); line-height: var(--lh-h1-mobile); }
}
