*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg: #0f1724;
  --panel: #121d2d;
  --panel-2: #172538;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.12);
  --text: #edf2f8;
  --muted: #99a6b9;
  --accent: #2fb2ff;
  --accent-2: #7ad0ff;
  --good: #7ed9a3;
  --warn: #f2b36f;
  --shadow: 0 24px 70px rgba(0,0,0,.30);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1440px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47,178,255,.16), transparent 30%),
    linear-gradient(180deg, #0b1320 0%, #0f1724 100%);
}

a { color: inherit; text-decoration: none; }

.page-shell,
.analytics-page {
  min-height: 100vh;
  max-width: var(--container);
  margin: 0 auto;
}

.page-shell { padding: 18px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(10,16,26,.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.brand-block { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #115b88);
  color: #fff; font-weight: 700; letter-spacing: .06em;
}
.brand-name { font-size: 1.08rem; font-weight: 700; }
.brand-domain { color: var(--muted); font-size: .92rem; }

.top-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.top-nav a {
  padding: 10px 14px; border-radius: 999px; color: var(--muted); transition: .22s ease;
}
.top-nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }

.menu-toggle {
  display: none;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px; background: var(--panel); cursor: pointer;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; margin: 5px auto;
  background: #fff; border-radius: 999px;
}

.layout { display: grid; grid-template-columns: 310px 1fr; gap: 18px; }

.sidebar, .content > section, .analytics-shell, .hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(18,29,45,.95), rgba(14,24,38,.92));
  box-shadow: var(--shadow);
}

.sidebar {
  position: sticky;
  top: 98px;
  height: fit-content;
  padding: 24px 18px;
}

.sidebar-kicker, .section-kicker, .hero-kicker {
  margin: 0 0 8px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
}

.sidebar-head h2, .section-heading h2 { margin: 0 0 12px; }

.bulletin-list { display: flex; flex-direction: column; gap: 12px; }

.bulletin-card {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(24,38,58,.9), rgba(16,26,40,.9));
  text-align: left;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.bulletin-card--active { cursor: pointer; }
.bulletin-card--active:hover {
  transform: translateY(-2px);
  border-color: rgba(122,208,255,.35);
  background: linear-gradient(180deg, rgba(28,48,74,.98), rgba(18,32,50,.98));
}
.bulletin-card--disabled {
  opacity: .45; filter: grayscale(.35) blur(.25px); cursor: not-allowed;
}
.bulletin-title, .bulletin-status { display: block; }
.bulletin-title { font-weight: 700; margin-bottom: 6px; }
.bulletin-status { color: var(--muted); font-size: .92rem; }

.content { display: flex; flex-direction: column; gap: 18px; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  padding: 34px;
  display: flex;
  align-items: end;
  background:
    linear-gradient(120deg, rgba(8,15,24,.9), rgba(8,15,24,.62)),
    url("../pic/hero-transport.jpg") center/cover no-repeat,
    linear-gradient(135deg, #10253b, #163a57);
}
.hero--compact { min-height: 280px; margin-bottom: 18px; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(47,178,255,.20), transparent 20%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.15) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.05; }
.hero-text { margin: 0 0 22px; max-width: 720px; font-size: 1.06rem; color: #d6dfeb; line-height: 1.65; }

.hero-actions, .action-center {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.action-center { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; transition: .22s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #1a8cc9); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.btn-secondary:hover { background: rgba(255,255,255,.08); }

.section, .analytics-shell { padding: 28px; }
.section-heading { max-width: 860px; margin-bottom: 20px; }
.section-heading p:last-child { color: var(--muted); line-height: 1.7; }

.wide-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22,35,54,.86), rgba(14,24,38,.92));
}
.wide-card p { margin: 0; color: #d1dae6; line-height: 1.65; }

.accordion { display: flex; flex-direction: column; gap: 16px; }

.accordion-item,
.quarter-item {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(13, 23, 36, 0.5);
  overflow: hidden;
}

.accordion-trigger,
.quarter-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.accordion-trigger {
  padding: 22px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(27, 43, 65, 0.95), rgba(16, 29, 45, 0.95));
}

.accordion-trigger:hover { background: linear-gradient(180deg, rgba(32, 51, 76, 0.98), rgba(18, 33, 51, 0.98)); }

.accordion-trigger.is-open {
  background: linear-gradient(135deg, rgba(47,178,255,.20), rgba(20,42,64,.96));
}

.quarter-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.quarter-trigger {
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 700;
  background: rgba(255,255,255,.04);
}

.quarter-trigger:hover { background: rgba(255,255,255,.07); }
.quarter-trigger.is-open { background: rgba(122,208,255,.12); }

.accordion-icon,
.quarter-icon {
  flex: 0 0 auto;
  transition: transform .25s ease;
}

.accordion-trigger.is-open .accordion-icon,
.quarter-trigger.is-open .quarter-icon {
  transform: rotate(180deg);
}

.accordion-panel,
.quarter-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}

.table-wrap {
  padding: 0 18px 18px;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.02);
}

.rate-table th,
.rate-table td {
  padding: 12px 10px;
  border: 1px solid rgba(255,255,255,.08);
  vertical-align: top;
  font-size: 14px;
}

.rate-table th {
  background: #162639;
  color: #f5f8fc;
  text-align: center;
  font-weight: 700;
}

.rate-table tbody tr:nth-child(even):not(.group-row):not(.subgroup-row):not(.subgroup-row-light) {
  background: rgba(255,255,255,.02);
}

.rate-table tbody tr:hover:not(.group-row):not(.subgroup-row):not(.subgroup-row-light) {
  background: rgba(47,178,255,.06);
}

.group-row td {
  background: rgba(122,208,255,.10);
  color: #eef7ff;
  font-weight: 700;
}

.group-row-soft td {
  background: rgba(255, 205, 128, 0.08);
}

.subgroup-row td {
  background: rgba(255,255,255,.06);
  color: #f6e6d0;
  font-weight: 700;
}

.subgroup-row-light td {
  background: rgba(255,255,255,.04);
  color: #d8e4f1;
  font-weight: 700;
}

.ta-center { text-align: center; }
.price-main {
  text-align: right;
  font-weight: 700;
  color: var(--good);
}
.price-back {
  text-align: right;
  color: var(--warn);
  font-weight: 700;
}
.note { color: #b8c5d6; font-style: italic; }

.table-footnote {
  padding: 16px 4px 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.table-footnote p { margin: 0 0 6px; }

.empty-state {
  margin: 0 18px 18px;
  padding: 24px 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  color: #d4dce7;
  line-height: 1.7;
  text-align: center;
}

.empty-state a {
  color: var(--accent-2);
  text-decoration: underline;
}

.analytics-page { padding: 18px; }
.analytics-shell { margin-bottom: 18px; }

.filters-panel {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.03);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
  transition: .22s ease;
}

.filter-chip:hover {
  background: rgba(255,255,255,.08);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, rgba(47,178,255,.24), rgba(32,95,140,.28));
  border-color: rgba(122,208,255,.28);
}

.article-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.article-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20,33,51,.88), rgba(14,24,38,.94));
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(47,178,255,.10);
  color: var(--accent-2);
  font-size: .86rem;
  font-weight: 700;
}

.article-card h3 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.2;
}

.article-lead {
  margin: 0 0 20px;
  color: #d9e3ef;
  font-size: 1.03rem;
  line-height: 1.75;
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.article-section {
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
}

.article-section h4 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.article-section p {
  margin: 0 0 12px;
  color: #d3dde9;
  line-height: 1.78;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.no-results {
  padding: 22px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,.02);
}

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 820px) {
  .topbar { grid-template-columns: 1fr auto; }
  .top-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 4px;
  }
  .topbar.nav-open .top-nav { display: flex; }
  .menu-toggle { display: block; }

  .hero { min-height: 320px; padding: 24px; }
  .hero--compact { min-height: 240px; }
  .section, .analytics-shell { padding: 22px; }

  .rate-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .accordion-trigger { padding: 18px 18px; }
  .quarter-trigger { padding: 14px 16px; }
  .table-wrap { padding: 0 12px 12px; }
  .article-card { padding: 20px; }
}

/* Надёжная механика аккордеонов без самозахлопывания */
.accordion-panel[hidden],
.quarter-panel[hidden] {
  display: none !important;
}

.accordion-panel,
.quarter-panel {
  max-height: none !important;
  overflow: visible !important;
  transition: none !important;
}\n\n.catalog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.catalog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: .95rem;
}

.article-backlink {
  margin-bottom: 18px;
}

.article-backlink a {
  color: var(--accent-2);
  text-decoration: none;
}

.article-backlink a:hover {
  text-decoration: underline;
}

.article-card--catalog h3 {
  margin-bottom: 12px;
}

.article-card--full {
  padding: 28px;
}

@media (max-width: 820px) {
  .catalog-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-card--full {
    padding: 20px;
  }
}\n