/* ============================================================
   TRADING NEWS — style.css
   Фон: #000000 | Контейнер: 1366px | Шрифт: Montserrat
   ============================================================ */

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

html {
  background-color: #000000;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background-color: #000000;
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
}


/* Canvas и img — явно разделяем правила */
img { display: block; max-width: 100%; height: auto; }
canvas { display: block; } /* БЕЗ max-width:100% — иначе растянет глобус */

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
}

/* ---------- ЗВЁЗДНЫЙ ФОН ---------- */
#stars-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- СТРАНИЦА И КОНТЕЙНЕР ---------- */
/* ВАЖНО: НЕТ z-index — иначе конкурирует с глобусом */
/* ВАЖНО: НЕТ transform — иначе ломает position:fixed */
.page-wrapper {
  width: 100%;
  position: relative;
  overflow-x: clip;
}

.container {
  width: 1366px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- ГЕРОЙ ---------- */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: visible;
}

/* Видео-глобус (заменил three.js).
   Два числа для подгонки:
   - width/height = размер глобуса (больше = крупнее);
   - right (отрицательный) = насколько глобус прячется за правый край экрана
     (по модулю больше = прячется сильнее; ~ -280px ≈ половина, ~ -190px ≈ треть). */
.hero-globe {
  position: absolute;
  top: 50%;
  right: -190px;
  transform: translateY(-50%);
  /* filter форсит постоянный композитинг видео (overlay принимает только «чистое»
     прямоугольное видео, а с фильтром оно туда не попадает) — убирает скачок
     яркости при скролле в Chrome. brightness(1.001) визуально незаметно. */
  filter: brightness(1.001);
  width: 560px;
  height: 560px;
  z-index: 2;
  pointer-events: none;
  object-fit: contain;
}

.hero-btn-wrapper {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

@property --a1 {
  syntax: '<angle>';
  inherits: true;
  initial-value: 270deg;
}
@property --a2 {
  syntax: '<angle>';
  inherits: true;
  initial-value: 100deg;
}

.hero-btn {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 15px 35px;
  min-width: 311px;
  height: 57px;
  background: #000000;
  border: none;
  border-radius: 12px;
  font-family: 'Science Gothic', sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  outline: none;
  --a1: 270deg;
  --a2: 100deg;
  transition: --a1 0.5s linear, --a2 0.6s linear;
}

.hero-btn:hover {
  --a1: 450deg;
  --a2: 280deg;
}

.hero-btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: conic-gradient(
    from var(--a1) at 50% 50%,
    #111112 0deg,
    #898C9A 3deg,
    #898C9A 20deg,
    #111112 40deg,
    #111112 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-btn::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: conic-gradient(
    from var(--a2) at 50% 50%,
    #111112 0deg,
    #575963 10deg,
    #575963 20deg,
    #111112 90deg,
    #111112 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ---------- ВЕРХНИЕ ТАБЫ ---------- */
.market-tabs {
  display: flex;
  gap: 20px;
  margin-top: 50px;
}

.market-tab {
  flex: 1;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  border: 1px solid #3B3C41;
  border-radius: 12px;
  background: transparent;
  font-family: 'Science Gothic', sans-serif;
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  transition: background 200ms ease, border-color 200ms ease;
}

.market-tab.active {
  border-color: #3B3C41;
  background: #18191C;
}

.market-tab:hover:not(.active) {
  border-color: #6C6F80;
}

/* ---------- НИЖНИЕ ТАБЫ ---------- */
.section-tabs {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

.section-tab {
  flex: 1;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3B3C41;
  border-radius: 12px;
  background: transparent;
  font-family: 'Science Gothic', sans-serif;
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  transition: background 200ms ease, border-color 200ms ease;
}

/* Крипто: виден только один подтаб — даём ему ширину обычного таба (треть
   ряда, как у рынков) и центрируем, чтобы он не растягивался на всю ширину */
.section-tabs.single .section-tab {
  flex: 0 0 calc((100% - 40px) / 3);
}

.section-tab.active {
  border-color: #3B3C41;
  background: #18191C;
}

.section-tab:hover:not(.active) {
  border-color: #6C6F80;
}

/* ---------- КОНТЕНТ ---------- */
.content-area { margin-top: 90px;
overflow: visible;
}


.news-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.news-filters {
  display: flex;
  align-items: center;
  gap: 30px;
}

.news-section-wrapper { position: relative; }

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 60px;
}

/* ---------- СПИДОМЕТРЫ НАСТРОЕНИЯ ---------- */
.sentiment-gauges {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  margin: 0 0 40px;
}

.gauge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 18px 16px;
  border: 1px solid #3B3C41;
  border-radius: 12px;
  background: #000000;
  transition: border-color 200ms ease, box-shadow 300ms ease;
}
.gauge:hover {
  border-color: #6C6F80;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.55);
}

.gauge-icon {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.gauge-icon svg { display: block; }

.gauge-dial { display: block; }

/* стрелка: плавный замах при отрисовке (значение задаётся из JS) */
.gauge-needle {
  transform-box: view-box;
  transition: transform 1.15s cubic-bezier(0.34, 1.32, 0.5, 1);
}

/* hover: стрелка мягко «подгазовывает» — короткий затухающий замах вокруг значения */
.gauge:hover .gauge-needle {
  animation: needleRev 0.7s ease-out;
}
@keyframes needleRev {
  0%   { transform: rotate(var(--rot)); }
  22%  { transform: rotate(calc(var(--rot) + 6deg)); }
  50%  { transform: rotate(calc(var(--rot) - 4deg)); }
  76%  { transform: rotate(calc(var(--rot) + 2deg)); }
  100% { transform: rotate(var(--rot)); }
}

.gauge-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 4px;
}

/* Пустой период (новостей нет) — текст вместо крупного «0%» */
.gauge-value--empty {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #6C6F80;
}

.gauge-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6C6F80;
  margin-top: 10px;
}

/* hover-подсказка с разбивкой бычьих/медвежьих */
.gauge-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #000000;
  border: 1px solid #3B3C41;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  color: #C7CBE0;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 6;
}
.gauge:hover .gauge-tip { opacity: 1; }

.news-card {
  background: #0E0F11;
  border: 1px solid #3B3C41;
  border-radius: 12px;
  padding: 30px;
  transition: background 400ms ease;
}

.news-card.viewed {
  background: #040506;
}

/* Просмотренные: приглушаем содержимое на 30%, обводку (на .news-card) не трогаем */
.news-card > * { transition: opacity 400ms ease; }
.news-card.viewed > * { opacity: 0.6; }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  max-width: 1000px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}

.card-date {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-text {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.6;
  margin: 0;
}

.card-text.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #158AFF;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.read-more:hover { text-decoration: underline; }

.card-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 20px;
}

.card-viewed-label {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #6C6F80;
  pointer-events: none;
  white-space: nowrap;
}

.news-card.viewed .card-viewed-label { display: block; }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: #1C2631;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.tag:hover { opacity: 0.8; }

.tag.active {
  background: #FFEF03;
  color: #1C2631;
  font-weight: 500;
}

.card-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 170px;
  justify-content: flex-end;
}

.card-icons img { width: 28px; height: 28px; }

.card-icons svg {
  width: 28px !important;
  height: 28px !important;
  flex-shrink: 0;
  overflow: visible;
}

/* ---------- ПУСТОЕ СОСТОЯНИЕ ---------- */
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ---------- КНОПКА ОБНОВИТЬ ---------- */
.refresh-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #3B3C41;
  border-radius: 12px;
  padding: 12px 24px;
  background: transparent;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
  cursor: pointer;
  transition: border-color 200ms ease;
  white-space: nowrap;
  margin-left: auto;
}

.refresh-btn:hover { border-color: #6C6F80; }

/* ============================================================
   ФИЛЬТРЫ СОБЫТИЙ
   ============================================================ */

.events-filters {
  display: flex;
  gap: 30px;
  align-items: center;
  overflow: visible;
}

.filter-dropdown { position: relative; flex-shrink: 0; }

/* Фиксированная ширина каждого фильтра под его самый длинный пункт.
   Так кнопка не «прыгает» при выборе, а меню всегда ровно по фильтру. */
#filter-day            { width: 210px; }
#filter-currency       { width: 150px; }
#filter-impact         { width: 160px; }
#filter-news-sentiment { width: 200px; }
#filter-news-impact    { width: 160px; }
#filter-news-tag       { width: 210px; }
#filter-news-tag-us    { width: 260px; }

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  border: 1px solid #3B3C41;
  border-radius: 12px;
  padding: 12px 20px;
  background: transparent;
  cursor: pointer;
  transition: border-color 200ms ease;
}

.filter-btn:hover { border-color: #6C6F80; }

.filter-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: nowrap;
}

.filter-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.filter-dropdown.open .filter-arrow { transform: rotate(180deg); }

.filter-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #000000;
  border: 1px solid #3B3C41;
  border-radius: 12px;
  overflow: hidden;
  z-index: 100;
}

.filter-dropdown.open .filter-menu { display: block; }

.filter-item {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
  padding: 12px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease;
}

.filter-item:hover { background: #0E0F11; }

/* ============================================================
   БЛОК ОЖИДАЕМЫХ СОБЫТИЙ
   ============================================================ */

#events-container {
  position: relative;
  overflow: visible;
}

.events-header,
.event-card {
  display: flex;
  align-items: center;
  background: #0E0F11;
  border: 1px solid #3B3C41;
  border-radius: 12px;
}

.events-header { height: 60px; margin-top: 20px; }

.events-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
  padding-bottom: 60px;
}

.event-card { min-height: 73px; }

.ev-col {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.events-header .ev-col { color: rgba(255, 255, 255, 0.6); }

.ev-col--time {
  padding-left: 30px;
  padding-right: 30px;
  min-width: 140px;
  width: 140px;
  text-align: center;
}

.ev-col--currency {
  padding-right: 30px;
  min-width: 100px;
  width: 100px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-col--title {
  flex: 1;
  min-width: 0;
  white-space: normal;
  line-height: 1.4;
  overflow: visible;            /* чтобы подсказка «?» не обрезалась краем колонки */
  padding-right: 70px;
}

/* Иконка «?» с пояснением к событию (на расстоянии 20px от названия) */
.ev-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 20px;
  border-radius: 50%;
  border: 1px solid #3B3C41;
  background: #000000;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  vertical-align: middle;
  cursor: default;
  position: relative;
  flex-shrink: 0;
  user-select: none;
  transition: border-color 150ms ease;
}

.ev-help:hover { border-color: #6C6F80; }

/* Подсказка: чёрный фон + обводка как у табов, чуть правее «?», по центру по вертикали */
.ev-tip {
  display: none;
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  transform: translateY(-50%);
  width: 400px;                 /* базовая; JS сужает, если упирается в край контейнера */
  box-sizing: border-box;
  background: #000000;
  border: 1px solid #3B3C41;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: normal;
  text-align: left;
  z-index: 100;
}

.ev-help:hover .ev-tip { display: block; }

.ev-col--previous {
  min-width: 160px;
  width: 160px;
  padding-right: 30px;
  text-align: center;
  overflow: visible;
  white-space: nowrap;
}

.ev-col--forecast {
  min-width: 130px;
  width: 130px;
  padding-right: 30px;
  text-align: center;
}

.ev-col--impact {
  padding-right: 30px;
  padding-left: 10px;
  min-width: 120px;
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: visible;
}

.forecast-better { color: #4CAF50; }
.forecast-worse  { color: #F44336; }

.impact-icon { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }

.currency-badge {
  display: inline-block;
  background: #1C2631;
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
  white-space: nowrap;
}

.events-day-divider {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  padding: 10px 0 4px 4px;
}

.event-card .ev-col--time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
  white-space: nowrap;
}

.ev-time-val { font-size: 16px; font-weight: 500; color: #ffffff; }
.ev-time-label { font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, 0.45); }

/* ============================================================
   ДИВИДЕНДЫ (рынок РФ)
   ============================================================ */

#dividends-container { position: relative; overflow: visible; }

.div-filters {
  display: flex;
  gap: 30px;
  align-items: center;
  overflow: visible;
}

/* Фикс. ширины под самый длинный пункт (как у фильтров «Событий») — чтобы кнопка
   не «прыгала» при выборе и стрелка не вылезала: «Потребительский»/«По актуальности» (15
   симв.) ≈ 260px, «Предстоящие» (11) ≈ 210px. */
#filter-div-sector { width: 260px; }
#filter-div-status { width: 210px; }
#filter-div-sort   { width: 260px; }

.div-header {
  display: flex;
  align-items: center;
  height: 60px;
  margin-top: 20px;
  background: #0E0F11;
  border: 1px solid #3B3C41;
  border-radius: 12px;
}

.div-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
  padding-bottom: 60px;
}

.div-card {
  display: flex;
  flex-direction: column;
  background: #0E0F11;
  border: 1px solid #3B3C41;
  border-radius: 12px;
  transition: border-color 200ms ease;
}

.div-card:hover { border-color: #6C6F80; }

.div-row {
  display: flex;
  align-items: center;
  min-height: 73px;
  cursor: pointer;
}

.dv-col {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

/* В шапке все заголовки одинаковые (модификаторы веса .dv-col--value/--yield не применяем) */
.div-header .dv-col { color: rgba(255, 255, 255, 0.6); font-size: 16px; font-weight: 400; }

.dv-col--name {
  flex: 1;
  min-width: 0;
  padding-left: 30px;
  padding-right: 20px;
  white-space: normal;
  overflow: visible;
}

.dv-name-line { display: flex; align-items: baseline; gap: 8px; }
.dv-ticker { font-size: 18px; font-weight: 600; color: #fff; letter-spacing: 0.03em; flex-shrink: 0; }
.dv-cname  { font-size: 15px; font-weight: 400; color: rgba(255,255,255,.6);
             overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-sector { font-size: 12px; font-weight: 400; color: rgba(255,255,255,.35); letter-spacing: .04em; margin-top: 3px; }

.dv-col--value  { width: 160px; text-align: center; font-weight: 500; }
.dv-col--yield  { width: 185px; text-align: center; font-weight: 600; }
.dv-col--record { width: 160px; text-align: center; }
.dv-col--buy    { width: 160px; text-align: center; }
.dv-col--status { width: 180px; display: flex; align-items: center; justify-content: center; }
.dv-col--exp    { width: 60px; display: flex; align-items: center; justify-content: flex-end; padding-right: 30px; }

.dv-muted { color: rgba(255,255,255,.3); }

/* статус-бейдж */
.dv-status {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 12px;
  white-space: nowrap;
  border: 1px solid transparent;   /* резервируем рамку — высота таблеток одинакова с обводкой и без */
}
.dv-status--up    { background: #18191C; color: #fff; }
.dv-status--today { background: #18191C; color: #fff; }
.dv-status--paid  { background: #18191C; color: rgba(255,255,255,.45); }

/* кнопка раскрытия «?» (как у «Событий») */
.dv-exp-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid #3B3C41;
  background: #000;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: border-color 150ms ease, color 150ms ease;
}
.dv-exp-btn:hover { border-color: #6C6F80; }
.div-card.open .dv-exp-btn { border-color: #6C6F80; color: #FFEF03; }

/* раскрываемая панель */
.div-detail { display: none; border-top: 1px solid #26272B; padding: 24px 30px; }
.div-card.open .div-detail { display: block; }

.div-detail-top { display: flex; gap: 44px; flex-wrap: wrap; align-items: flex-start; }

.div-spark-wrap { flex-shrink: 0; }
.div-spark-cap { font-size: 12px; color: rgba(255,255,255,.4); letter-spacing: .04em; margin-top: 8px; }
.div-spark text { font-family: 'Montserrat', sans-serif; }

.div-facts { display: flex; flex-direction: column; gap: 12px; padding-top: 2px; }
.div-fact { font-size: 15px; color: #C7CBE0; line-height: 1.4; }
.div-fact b { color: #fff; font-weight: 600; }
.div-fact .dv-muted { color: rgba(255,255,255,.4); }

.div-payouts {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 9px 28px;
}
.div-payouts-lbl { font-size: 12px; color: rgba(255,255,255,.4); letter-spacing: .05em; text-transform: uppercase; margin-top: 22px; margin-bottom: -10px; }
.div-payout {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 14px; padding-bottom: 6px; border-bottom: 1px solid #1A1B1E;
}
.div-payout .d { color: rgba(255,255,255,.5); }
.div-payout .v { color: #fff; font-weight: 500; white-space: nowrap; }

/* ============================================================
   СПИННЕР
   ============================================================ */

.spinner-wrapper {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Плавная подмена контента при обновлении */
@keyframes contentFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.content-fade { animation: contentFade 240ms ease both; }

@media (prefers-reduced-motion: reduce) {
  .content-fade { animation: none; }
}


/* ============================================================
   ТЕПЛОВАЯ КАРТА — стили
   ============================================================ */

.heatmap-section {
  padding-bottom: 60px;
}

.hm-header {
  position: relative;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: #000000;
  border: 1px solid #3B3C41;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: .04em;
}

.hm-bc {
  height: 34px;
  background: #0c1620;
  border-left: 1px solid #3B3C41;
  border-right: 1px solid #3B3C41;
  border-top: none;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
}

.hm-ov {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #000000;
  z-index: 30;
  padding: 30px;
  text-align: center;
}

.hm-ring {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,.07);
  border-top-color: rgba(255,255,255,.5);
  border-radius: 50%;
  animation: spin .85s linear infinite;
}

.hm-otxt {
  font-size: 13px;
  color: rgba(255,255,255,.24);
  letter-spacing: .04em;
  line-height: 1.7;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.hm-bc.hidden { display: none; }
.hm-bc-back { cursor: pointer; display: flex; align-items: center; gap: 6px; color: #fff; transition: opacity 140ms; }
.hm-bc-back:hover { opacity: .75; }
.hm-bc-sep { color: rgba(255,255,255,.25); }
.hm-bc-cur { color: rgba(255,255,255,.42); font-weight: 400; }

.hm-filter {
  display: flex; align-items: center;
  border-left: 1px solid #3B3C41; border-right: 1px solid #3B3C41;
  background: #07101a; padding: 6px 10px; gap: 3px; position: relative;
}
.hm-fall {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 6px; border: none; background: transparent;
  font-family: 'Montserrat', sans-serif; cursor: pointer; transition: background 130ms;
  position: relative; flex-shrink: 0;
}
.hm-fall:not(.active):hover { background: rgba(255,255,255,.05); }
.hm-fall.active { background: rgba(255,255,255,.1); }
.hm-fall-lbl { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: .03em; line-height: 1; white-space: nowrap; }
.hm-fall.active .hm-fall-lbl { color: #fff; }
.hm-fall-bar { height: 7px; border-radius: 3px; width: 38px; background: linear-gradient(to right,#c62828,#1b7a3c); opacity: .4; }
.hm-fsep { width: 1px; background: rgba(255,255,255,.08); height: 26px; flex-shrink: 0; margin: 0 2px; }
.hm-fbtn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; padding: 3px 2px; border-radius: 6px; border: none; background: transparent;
  font-family: 'Montserrat', sans-serif; transition: background 130ms; position: relative; min-width: 0;
}
.hm-fbtn:not(.sel):hover { background: rgba(255,255,255,.05); }
.hm-fbtn.sel { background: rgba(255,255,255,.08); }
.hm-fbtn.sel .hm-fbar { opacity: 1; outline: 2px solid rgba(255,255,255,.55); outline-offset: 1px; }
.hm-flbl { font-size: 10px; font-weight: 700; letter-spacing: .03em; line-height: 1; }
.hm-fbar { height: 7px; border-radius: 3px; width: 100%; opacity: .5; transition: opacity 130ms; }
.hm-ftip {
  display: none; position: absolute; bottom: calc(100% + 8px);
  background: rgba(9,17,28,.97); border: 1px solid #2e4460; border-radius: 8px;
  padding: 6px 10px; white-space: nowrap; font-size: 11px; color: rgba(255,255,255,.7);
  letter-spacing: .02em; z-index: 200; pointer-events: none;
}
.hm-fall .hm-ftip { left: 0; }
.hm-fbtn .hm-ftip { left: 50%; transform: translateX(-50%); }
.hm-fbtn:hover .hm-ftip, .hm-fall:hover .hm-ftip { display: block; }

.hm-body {
  width: 100%;
  height: 700px;
  background: #000000;
  border: 1px solid #3B3C41;
  border-top: none;
  position: relative;
  overflow: hidden;
}
.hm-body > svg { display: block; cursor: grab; }
.hm-body > svg:active { cursor: grabbing; }

.hm-ctrl { position: absolute; top: 50px; right: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 20; }
.hm-cbtn {
  width: 28px; height: 28px; background: rgba(10,18,28,.92);
  border: 1px solid #2c3e52; border-radius: 7px; color: rgba(255,255,255,.6);
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 130ms, color 130ms; font-family: 'Montserrat', sans-serif;
}
.hm-cbtn:hover { background: rgba(45,58,72,.97); color: #fff; }
.hm-cbtn.sm { font-size: 10px; font-weight: 700; }

.hm-foot {
  border: 1px solid #3B3C41; border-top: none; border-radius: 0 0 12px 12px;
  background: #000000; padding: 7px 14px; display: flex; justify-content: center;
}
.hm-upd { font-size: 11px; color: rgba(255,255,255,.2); letter-spacing: .03em; text-align: center; }

/* ТУЛТИП АКЦИИ */
#hm-tip {
  position: fixed; background: rgba(9,17,28,.97); border: 1px solid #2e4460;
  border-radius: 12px; padding: 13px 17px; pointer-events: none; opacity: 0;
  transition: opacity 100ms; z-index: 9999; min-width: 210px; max-width: 250px;
  backdrop-filter: blur(10px);
}
#hm-tip.show { opacity: 1; }
.t-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3px; }
.t-ticker { font-size: 17px; font-weight: 700; letter-spacing: .05em; }
.t-pct { font-size: 15px; font-weight: 600; }
.t-name { font-size: 11px; color: rgba(255,255,255,.36); margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-sec { font-size: 9px; color: rgba(255,255,255,.22); letter-spacing: .06em; margin-bottom: 10px; }
.t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; margin-bottom: 10px; }
.t-lbl { font-size: 9px; color: rgba(255,255,255,.3); letter-spacing: .06em; margin-bottom: 2px; }
.t-val { font-size: 13px; font-weight: 500; }
.t-slbl { font-size: 9px; color: rgba(255,255,255,.26); letter-spacing: .06em; margin-bottom: 6px; }
.t-sph { font-size: 11px; color: rgba(255,255,255,.17); font-style: italic; }

/* ============================================================
   ФУТЕР
   ============================================================ */

.site-footer {
  margin-top: 160px;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-slogan {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.15em;
  text-align: center;
  position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 90%;
}

.footer-planet {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  line-height: 0;
}