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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f9fbfd;
  color: #333;
  line-height: 1.6;
}

/* === Навигация === */
nav {
  background: linear-gradient(135deg, #0a2c47, #1a4b70);
  padding: 15px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  gap: 40px;
  padding: 0 20px;
}

.logo {
  color: white;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 25px;
  flex-wrap: nowrap;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
  white-space: nowrap;
  font-size: 15px;
}

.nav-links a:hover {
  opacity: 0.8;
}

.nav-links a.active {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  padding: 5px 10px;
}

/* === Герой-блок (бывший рекламный) === */
/* Компонент */
.rb-hero-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.rb-hero {
  background: linear-gradient(45deg, #0088cc, #0055aa);
  color: white;
  padding: 15px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rb-hero-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rb-hero-image {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

.rb-hero-icon { 
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.rb-hero-text { text-align: left; }
.rb-hero-title { font-weight: bold; font-size: 16px; }
.rb-hero-description { font-size: 14px; }

.rb-hero-button {
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  font-size: 12px;
  white-space: nowrap;
}

/* Вариант promo: крупнее, текст сверху */
.rb-hero--promo {
  min-height: 200px;
  padding: 24px;
}
.rb-hero--promo .rb-hero-content {
  align-items: flex-start; /* текст у верхней границы */
  width: 100%;
}
.rb-hero--promo .rb-hero-title {
  font-size: 26px;
  line-height: 1.25;
}

/* Контейнер текста: не на весь блок, с подложкой для контраста */
.rb-hero--promo .rb-hero-text {
  max-width: 70%;
  background: rgba(0, 0, 0, 0.45);
  padding: 12px 16px;
  border-radius: 10px;
  backdrop-filter: saturate(110%) blur(2px);
}

.rb-hero--promo .rb-hero-title,
.rb-hero--promo .rb-hero-description {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
  .rb-hero--promo {
    min-height: 160px;
    padding: 18px;
  }
  .rb-hero--promo .rb-hero-text {
    max-width: 100%;
    padding: 10px 12px;
  }
  .rb-hero--promo .rb-hero-title {
    font-size: 20px;
  }
}

/* === Опрос недели === */
.poll-banner {
  margin-top: 12px;
  background: #f3f6f9;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.poll-text { color: #0a2c47; font-weight: 600; }
.poll-actions { display: flex; gap: 8px; }
.poll-btn { border: none; border-radius: 6px; padding: 8px 12px; cursor: pointer; font-weight: 600; }
.poll-btn.up { background: #e9f7ef; color: #28a745; }
.poll-btn.down { background: #fdeaea; color: #dc3545; }
.poll-snooze { background: transparent; color: #666; border: 1px solid #ccc; border-radius: 6px; padding: 8px 12px; cursor: pointer; }

#community-expectations { margin-top: 12px; }
.expect-bar { position: relative; height: 16px; background: #eee; border-radius: 8px; overflow: hidden; display: flex; }
.expect-down { background: #ffd9d9; height: 100%; }
.expect-up { background: #c8f7dc; height: 100%; }
.expect-legend { display: flex; justify-content: space-between; margin-top: 6px; color: #666; font-size: 12px; }
.expect-legend .down { color: #dc3545; }
.expect-legend .up { color: #28a745; }
.expect-legend .down svg, .expect-legend .up svg {
  margin-right: 2px;
  vertical-align: middle;
}

/* === Основной контейнер === */
.container {
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 300px 1fr 320px;
  gap: 20px;
}

/* Двухколоночный вариант (контент + правый сайдбар) */
.container.two-col {
  grid-template-columns: 1fr 320px;
}

@media (max-width: 768px) {
  .container.two-col {
      grid-template-columns: 1fr;
  }
}

/* Глобальные улучшения адаптивности */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, video, canvas {
  max-width: 100%;
  height: auto;
}

.ad-banner, .ad-sidebar {
  width: 100%;
  box-sizing: border-box;
}

.event-feed-sidebar {
  display: grid;
  grid-template-rows: 1fr;
  gap: 20px;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.sidebar {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
}

/* === Общий стиль карточек === */
.card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #0a2c47;
}

/* === Индексы === */
.indices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.index-card {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.index-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.index-value {
  font-size: 18px;
  font-weight: bold;
}

.index-change {
  font-size: 14px;
  margin-top: 5px;
}

/* === Акции (голубые фишки) === */
.stocks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2x2 для 4 акций */
  gap: 15px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .stocks-grid {
    grid-template-columns: 1fr; /* На мобильных - по 1 */
  }
}

.stock-card.linkable {
  cursor: pointer;
}

.stock-card.linkable:hover {
  border-color: #007bff;
}

.stock-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stock-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.stock-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stock-name {
  font-weight: 600;
}

.stock-price {
  font-weight: bold;
}

/* === Сектора (тепловая карта) === */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.sector-card {
  background: #f8f9fa;
  border: 1px solid #e0e0e0; /* Добавлена граница */
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: visible; /* Позволяем теням выходить за границы */
}

.sector-card:hover {
  border-color: #007bff; /* Меняем цвет границы при наведении */
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 123, 255, 0.2); /* Более яркая тень */
}

/* Иконка при наведении */
.sector-card::after {
  content: '↗️'; /* или можете использовать SVG-иконку */
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  color: #007bff;
}

.sector-card:hover::after {
  opacity: 1;
}

.sector-name {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  color: #0a2c47;
}

/* Анимация загрузки для спиннера */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

.sector-change {
  font-size: 18px;
  font-weight: bold;
}

.positive {
  color: #28a745;
}

.negative {
  color: #dc3545;
}

/* === Новости === */
.news-list {
  list-style: none;
}

.news-item {
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.news-item:last-child {
  border-bottom: none;
}

.news-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.news-time {
  font-size: 12px;
  color: #666;
}

.news-excerpt {
  margin-top: 8px;
  color: #4b5563;
  line-height: 1.5;
}

.news-page .news-title a {
  color: #0a2c47;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  display: block;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.news-page .news-title a:hover {
  color: #007bff;
  text-decoration: underline;
}

.news-ticker-link {
  display: inline-block;
  background: linear-gradient(90deg, #007bff 60%, #0056b3 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-right: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,123,255,0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: none;
  outline: none;
  vertical-align: middle;
}

.news-ticker-link:hover {
  background: linear-gradient(90deg, #0056b3 60%, #007bff 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,123,255,0.18);
  text-decoration: none;
}

/* === Компании (новый блок) === */
.companies-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.company-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.company-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.company-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.company-name {
  font-size: 18px;
  font-weight: 600;
  color: #0a2c47;
}

.company-ticker {
  background: #e9f7ef;
  color: #28a745;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
}

.company-price {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0;
}

.company-change {
  font-size: 14px;
  margin-bottom: 15px;
}

.rating-section,
.personal-rating,
.honesty-scale {
  margin: 15px 0;
}

.rating-label,
.honesty-label,
.personal-rating label {
  font-weight: 600;
  margin-bottom: 5px;
}

.rating-value {
  font-size: 18px;
  font-weight: bold;
  color: #0a2c47;
}

.honesty-bar {
  height: 20px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.honesty-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc3545, #ffc107, #28a745);
  transition: width 0.5s ease;
}

.honesty-percent {
  position: absolute;
  top: 0;
  right: 10px;
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.vote-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.vote-btn {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.vote-up {
  background: #e9f7ef;
  color: #28a745;
}

.vote-up:hover {
  background: #28a745;
  color: white;
}

.vote-down {
  background: #fdeaea;
  color: #dc3545;
}

.vote-down:hover {
  background: #dc3545;
  color: white;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.action-btn {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.view-btn {
  background: #007bff;
  color: white;
}

.view-btn:hover {
  background: #0056b3;
}

.news-btn {
  background: #6f42c1;
  color: white;
}

.news-btn:hover {
  background: #5a32a3;
}

.reports-btn {
  background: #17a2b8;
  color: white;
}

.reports-btn:hover {
  background: #138496;
}

.company-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid #e0e0e0;
}

.company-info {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.star-rating {
  display: flex;
  gap: 3px;
}

.star {
  font-size: 20px;
  color: #e0e0e0;
  cursor: pointer;
  transition: color 0.2s;
}

.star.active {
  color: #ffc107;
}

.rating-average {
  margin-top: 5px;
  font-size: 14px;
  color: #666;
}

/* === Страница деталей компании === */
.company-detail-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.company-detail-name {
  font-size: 24px;
  font-weight: bold;
  color: #0a2c47;
}

.company-detail-ticker {
  background: #e9f7ef;
  color: #28a745;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.company-detail-price {
  font-size: 28px;
  font-weight: bold;
  margin: 15px 0;
}

.company-detail-change {
  font-size: 16px;
  margin-bottom: 20px;
}

.company-detail-description {
  margin: 20px 0;
  line-height: 1.6;
}

.company-detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.stat-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.stat-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 18px;
  font-weight: bold;
  color: #0a2c47;
}

.articles-section {
  margin-top: 30px;
}

.articles-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #0a2c47;
}

.article-list {
  list-style: none;
}

.article-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.article-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.article-date {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.article-excerpt {
  color: #555;
  line-height: 1.5;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

/* === Модальные окна === */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 30px 24px 24px 24px;
  max-width: 500px;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 32px;
  color: #888;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #d32f2f;
}

#modal-title {
  margin-bottom: 18px;
  font-size: 22px;
  color: #0a2c47;
  font-weight: 600;
}

#modal-body ul {
  padding-left: 0;
  list-style: none;
}

#modal-body li {
  margin-bottom: 18px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* === Состояния голосования === */
.vote-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.voted-animate {
  animation: votedPulse 0.4s;
}

@keyframes votedPulse {
  0% {
      transform: scale(1);
      background: inherit;
  }
  50% {
      transform: scale(1.12);
      background: #e9f7ef;
  }
  100% {
      transform: scale(1);
      background: inherit;
  }
}

.voted-up {
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 8px 2px #43e97b44;
  font-weight: bold;
  border: none !important;
  filter: none;
}

.voted-down {
  background: linear-gradient(90deg, #ff5858 0%, #f09819 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 8px 2px #ff585844;
  font-weight: bold;
  border: none !important;
  filter: none;
}

.vote-status {
  margin-left: 10px;
  color: #007bff;
  font-weight: 600;
  font-size: 14px;
  vertical-align: middle;
}

/* === Боковая реклама === */
.rb-feature-block {
  display: grid;            /* объединяем заголовок и баннер в один блок */
  grid-template-rows: auto 1fr;
  row-gap: 6px;             /* контролируем отступ между ними */
  width: 100%;
  margin: 0; padding: 0;
}
.rb-feature-image { width: 100%; height: auto; display: block; border-radius: 10px; }

/* Заголовок под баннером */
.rb-feature-title {
  display: block;            /* занимает всю ширину блока */
  margin: 0; padding: 0;     /* без лишних отступов */
  text-align: center;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  font-size: 16px;
}

.ad-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.ad-content {
  font-size: 14px;
  margin-bottom: 15px;
}

.ad-button {
  background: white;
  color: #2575fc;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.ad-button:hover {
  background: #f0f8ff;
}

/* === Адаптивность === */
@media (max-width: 1200px) {
  .container:not(.two-col) {
      grid-template-columns: 1fr 320px;
      gap: 15px;
  }
  
  .event-feed-sidebar {
      display: none; /* Скрываем ленту на планшетах */
  }
}

@media (max-width: 768px) {
  .container:not(.two-col) {
      grid-template-columns: 1fr;
      padding: 0 6px;
      gap: 12px;
  }
  
  .sidebar {
      display: none; /* Скрываем правую боковую панель на мобильных */
  }
  
  /* Двухколоночная верстка на мобильных */
  .container.two-col {
      padding: 0 6px;
      gap: 12px;
  }
  
  .event-feed-sidebar {
      display: none; /* Скрываем ленту на мобильных */
  }
  
  .nav-container {
      flex-direction: column;
      gap: 15px;
      padding: 0 15px;
  }

  .nav-links {
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px;
  }
  
  .nav-links a {
      font-size: 14px;
  }
  
  .sectors-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
  }
  
  /* Улучшенная адаптивность для секторов */
  .sector-card {
      padding: 12px;
      min-height: 80px;
  }
  
  .sector-name {
      font-size: 13px;
      line-height: 1.3;
  }
  
  .companies-container {
      grid-template-columns: 1fr;
      gap: 16px;
      padding: 0 4px;
  }

  .company-card,
  .stock-card,
  .sector-card {
      padding: 16px;
      margin-bottom: 12px;
      border-radius: 10px;
  }
  
  /* Улучшения для карточек на мобильных */
  .card {
      padding: 16px;
      margin-bottom: 16px;
      border-radius: 10px;
  }
  
  .info-block {
      padding: 18px;
      border-radius: 10px;
  }
  
  /* Адаптация для аналитики */
  .chart-section-full {
      max-width: 100%;
      margin: 16px 0;
      padding: 0;
  }
  
  /* Дополнительные улучшения для мобильной версии */
  .container {
      padding: 0 6px;
      gap: 12px;
  }
  
  .chart-card {
      padding: 14px;
      margin-bottom: 14px;
      border-radius: 10px;
  }
  
  .chart-title {
      font-size: 18px;
      margin-bottom: 16px;
  }
  
  .total-turnover-small {
      font-size: 16px;
      padding: 12px;
      border-radius: 8px;
  }
  
  .period-selector {
      margin: 16px 0;
      gap: 8px;
  }
  
  .period-btn {
      padding: 10px 16px;
      font-size: 14px;
      border-radius: 8px;
  }
  
  .back-button {
      padding: 12px 20px;
      font-size: 16px;
      margin-bottom: 20px;
  }
  
  .comparison-dates {
      padding: 16px;
      border-radius: 12px;
      margin: 16px 0;
  }
  
  .date-prev, .date-current {
      font-size: 16px;
      padding: 12px;
  }
  
  .sidebar {
      padding: 20px;
      border-radius: 12px;
  }
  
  .chart-card {
      padding: 15px;
  }
  
  .total-turnover-small {
      font-size: 14px;
      margin-bottom: 10px;
  }
  
  .period-selector {
      margin-bottom: 15px;
  }
  
  .period-btn {
      padding: 8px 20px;
      font-size: 13px;
  }
  
  /* Улучшения для акций */
  .stocks-grid {
      grid-template-columns: 1fr;
      gap: 10px;
  }
  
  .stock-item {
      grid-template-columns: 60px 1fr 80px 60px;
      gap: 10px;
      padding: 10px;
  }
  
  .stock-item .ticker {
      font-size: 12px;
  }
  
  .stock-item .name {
      font-size: 13px;
  }
  
  .stock-item .price {
      font-size: 14px;
  }
  
  .stock-item .change {
      font-size: 13px;
  }
  
  /* Улучшения для индексов */
  .indices {
      grid-template-columns: 1fr;
      gap: 12px;
  }
  
  .index-card {
      padding: 15px;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  
  .index-name {
      font-size: 14px;
      margin-bottom: 8px;
  }
  
  .index-value {
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 5px;
  }
  
  .index-change {
      font-size: 14px;
      font-weight: 600;
  }
}

  .news-page .news-item:hover {
      margin: 0 -10px;
      padding: 15px 10px;
  }

  .news-ticker-link {
      font-size: 11px;
      padding: 3px 6px;
  }

  /* Мобильные стили для карточек новостей */
  .main-news .news-item {
      padding: 12px;
      margin-bottom: 10px;
  }

  .main-news .news-title a {
      font-size: 14px;
      line-height: 1.4;
  }

  .news-description {
      font-size: 12px !important;
      line-height: 1.4 !important;
      margin: 8px 0 !important;
  }

  .main-news .news-meta {
      flex-wrap: nowrap;
      gap: 10px;
      font-size: 11px;
      justify-content: flex-start;
      align-items: center;
  }

  .news-date {
      font-size: 11px;
  }

  .news-impact-display {
      font-size: 11px !important;
  }

  .news-rating-buttons {
      flex-wrap: wrap !important;
      gap: 4px !important;
      margin-top: 8px !important;
  }

  .news-rating-buttons span {
      font-size: 11px !important;
  }

  .news-rating-button,
  .news-share-button {
      font-size: 18px !important;
      padding: 6px 8px !important;
      min-width: auto !important;
  }

  .news-share-button {
      font-size: 11px !important;
      padding: 6px 10px !important;
      white-space: nowrap;
  }

  .news-share-button svg {
      width: 14px !important;
      height: 14px !important;
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
  .container {
      padding: 0 10px;
  }
  
  .sectors-grid {
      grid-template-columns: 1fr;
      gap: 10px;
  }
  
  .sector-card {
      padding: 12px;
  }
  
  .sector-name {
      font-size: 13px;
  }
  
  .sector-change {
      font-size: 16px;
  }
  
  .main-news .news-item {
      padding: 10px;
      border-radius: 6px;
  }

  .main-news .news-title a {
      font-size: 13px;
  }

  .news-description {
      font-size: 11px !important;
  }

  .main-news .news-meta {
      font-size: 10px;
      gap: 4px;
  }

  .news-date {
      font-size: 10px;
      width: 100%;
      margin-top: 4px;
  }

  .news-impact-display {
      font-size: 10px !important;
  }

  .news-rating-buttons {
      gap: 3px !important;
  }

  .news-rating-button {
      font-size: 16px !important;
      padding: 5px 6px !important;
  }

  .news-share-button {
      font-size: 10px !important;
      padding: 5px 8px !important;
  }

  .news-share-button svg {
      width: 12px !important;
      height: 12px !important;
  }
  
  /* Дополнительные улучшения для очень маленьких экранов */
  .chart-card {
      padding: 10px;
  }
  
  .period-btn {
      padding: 6px 15px;
      font-size: 12px;
  }
  
  .stock-item {
      grid-template-columns: 50px 1fr 70px 50px;
      gap: 8px;
      padding: 8px;
  }
  
  .stock-item .ticker {
      font-size: 11px;
  }
  
  .stock-item .name {
      font-size: 12px;
  }
  
  .stock-item .price {
      font-size: 13px;
  }
  
  .stock-item .change {
      font-size: 12px;
  }
  
  .company-card {
      padding: 24px;
  }
  
  .company-name {
      font-size: 18px;
      line-height: 1.4;
      margin-bottom: 8px;
  }
  
  .company-price {
      font-size: 20px;
      font-weight: bold;
  }
  
  .company-ticker {
      font-size: 14px;
      padding: 6px 12px;
      border-radius: 6px;
  }
  
  .company-description {
      font-size: 14px;
      line-height: 1.5;
      margin: 12px 0;
  }
}

.main-news .news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-news .news-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.main-news .news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #007bff;
}

.main-news .news-title a {
  color: #0a2c47;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  display: block;
  margin-bottom: 6px;
}

.main-news .news-title a:hover {
  color: #007bff;
  text-decoration: underline;
}

.main-news .news-date {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  font-style: italic;
}

.main-news .news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.company-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-right: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* === Модальное окно опроса недели === */
.poll-modal {
  position: fixed;
  z-index: 99999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.poll-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px 24px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  min-width: 320px;
  max-width: 90vw;
  text-align: center;
}
.poll-modal-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #0a2c47;
}
.poll-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.poll-modal .poll-btn.up {
  background: #e9f7ef;
  color: #28a745;
}
.poll-modal .poll-btn.down {
  background: #fdeaea;
  color: #dc3545;
}
.poll-modal .poll-btn, .poll-modal .poll-snooze {
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.poll-modal .poll-snooze {
  background: transparent;
  color: #666;
  border: 1px solid #ccc;
}
.poll-modal .poll-btn.up:hover { background: #28a745; color: #fff; }
.poll-modal .poll-btn.down:hover { background: #dc3545; color: #fff; }
.poll-modal .poll-snooze:hover { background: #eee; color: #222; }

/* === Блоки информации === */
.info-block {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.info-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #0a2c47;
}

.sectors-block {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.news-block {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* === Элементы акций (для stocks-grid) === */
.stock-item {
  display: grid;
  grid-template-columns: 80px 1fr 100px 80px;
  gap: 15px;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stock-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stock-item .ticker {
  font-weight: 700;
  color: #007bff;
  font-size: 14px;
}

.stock-item .name {
  color: #555;
  font-size: 14px;
}

.stock-item .price {
  font-weight: 600;
  text-align: right;
  font-size: 15px;
}

.stock-item .change {
  font-weight: 600;
  text-align: right;
  font-size: 14px;
}

/* ============================================= */
/* === КРАСИВОЕ ГОЛОСОВАНИЕ === */
/* ============================================= */

/* === Модальное окно голосования (компактное, ненавязчивое) === */
.poll-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
}

.poll-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    min-width: 320px;
    max-width: 440px;
    width: 90%;
    text-align: center;
}

.poll-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.poll-modal-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.poll-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0a2c47;
    line-height: 1.4;
}

.poll-modal-meta {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    margin-top: 6px;
}

.poll-modal-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 22px;
    font-weight: 400;
}

.poll-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.poll-modal .poll-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s;
}

.poll-modal .poll-btn.up {
    background: #e9f7ef;
    color: #28a745;
}

.poll-modal .poll-btn.down {
    background: #fdeaea;
    color: #dc3545;
}

.poll-modal .poll-btn.up:hover {
    background: #28a745;
    color: white;
    transform: translateY(-1px);
}

.poll-modal .poll-btn.down:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
}

.poll-modal .poll-snooze {
    background: transparent;
    color: #999;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-weight: 400;
    font-size: 13px;
    transition: color 0.2s;
}

.poll-modal .poll-snooze:hover {
    color: #555;
    text-decoration: underline;
}

/* === Плашка сбоку (компактная) === */
.poll-banner {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: #f8f9fa;
    padding: 16px;
    padding-right: 40px; /* Место для кнопки */
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    max-width: 260px;
    z-index: 1000;
    border: 1px solid #e3e7ec;
    transition: right 0.3s ease;
}

/* Скрытое состояние плашки */
.poll-banner.poll-banner-hidden {
    right: -280px;
}

/* Кнопка показать/скрыть плашку (внутри плашки) */
.poll-banner-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1001;
    font-size: 16px;
    transition: all 0.2s ease;
    opacity: 0;
}

/* Показываем кнопку при наведении на плашку */
.poll-banner:hover .poll-banner-toggle {
    opacity: 1;
}

.poll-banner-toggle:hover {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

/* Когда плашка скрыта, показываем кнопку у края экрана */
.poll-banner-toggle.poll-banner-toggle-visible {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 50px;
    border-radius: 10px 0 0 10px;
    background: #007bff;
    color: white;
    opacity: 1;
    font-size: 20px;
}

.poll-banner-toggle.poll-banner-toggle-visible:hover {
    width: 45px;
    background: #0056b3;
}

.poll-banner .poll-text {
    color: #0a2c47;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.poll-banner .poll-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.poll-banner .poll-btn {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.poll-banner .poll-btn.up {
    background: #e9f7ef;
    color: #28a745;
}

.poll-banner .poll-btn.down {
    background: #fdeaea;
    color: #dc3545;
}

.poll-banner .poll-btn.up:hover {
    background: #28a745;
    color: white;
}

.poll-banner .poll-btn.down:hover {
    background: #dc3545;
    color: white;
}

.poll-results-box {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    margin-top: 12px;
}

.poll-result-badge {
    padding: 12px;
    margin-top: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.poll-result-badge.correct {
    background: linear-gradient(135deg, #e9f7ef 0%, #d4edda 100%);
    color: #28a745;
    border: 2px solid #28a745;
}

.poll-result-badge.incorrect {
    background: linear-gradient(135deg, #fdeaea 0%, #f8d7da 100%);
    color: #dc3545;
    border: 2px solid #dc3545;
}

.poll-your-vote {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    padding: 8px;
    background: white;
    border-radius: 8px;
}

/* === Блок голосования внутри info-block === */
#community-expectations {
    /* Блок внутри info-block, без дополнительных стилей фона */
}

/* Мобильная версия (отдельный блок) */
.poll-block-mobile {
    display: none;
    margin: 15px 0;
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 8px;
    padding: 16px;
}

/* Мобильная версия рекламного блока - по умолчанию скрыта */
body .rb-feature-block-mobile {
    display: none !important;
    visibility: hidden !important;
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.rb-feature-block-mobile .rb-feature-title {
    display: block;
    margin: 0 0 10px 0;
    padding: 0;
    text-align: center;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    font-size: 16px;
}

.rb-feature-block-mobile .rb-feature-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Скрываем мобильную версию на десктопе */
@media (min-width: 769px) {
    .poll-block-mobile {
        display: none !important;
    }
    
    /* Скрываем мобильную версию баннера на десктопе */
    .rb-feature-block-mobile {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* Дополнительное правило для очень больших экранов */
@media (min-width: 1024px) {
    .rb-feature-block-mobile {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* Дополнительное правило для планшетов */
@media (min-width: 769px) and (max-width: 1023px) {
    .rb-feature-block-mobile {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
}

#community-expectations .info-title,
.poll-block-mobile .info-title {
    color: #0a2c47;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
}

#community-expectations .expect-bar,
.poll-block-mobile .expect-bar {
    position: relative;
    height: 16px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    margin: 10px 0 6px;
}

#community-expectations .expect-down,
.poll-block-mobile .expect-down {
    background: #ffd9d9;
    height: 100%;
    transition: width 0.4s ease;
}

#community-expectations .expect-up,
.poll-block-mobile .expect-up {
    background: #c8f7dc;
    height: 100%;
    transition: width 0.4s ease;
}

#community-expectations .expect-legend,
.poll-block-mobile .expect-legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    color: #666;
    font-size: 12px;
    font-weight: 600;
}

#community-expectations .expect-legend .down,
.poll-block-mobile .expect-legend .down {
    color: #dc3545;
}

#community-expectations .expect-legend .up,
.poll-block-mobile .expect-legend .up {
    color: #28a745;
}

#community-expectations .expect-legend svg,
.poll-block-mobile .expect-legend svg {
    margin-right: 2px;
    vertical-align: middle;
}

/* Мобильная версия баннера из sidebar */
.sidebar-banner-mobile {
    display: none;
    margin: 20px 0;
}


@media (max-width: 768px) {
    /* Скрываем плашку сбоку и кнопку на мобильных */
    .poll-banner,
    .poll-banner-toggle {
        display: none !important;
    }
    
    /* На мобильных скрываем версию в sidebar (внутри info-block) */
    #community-expectations {
        display: none !important;
    }
    
    /* Показываем мобильную версию голосования (отдельный блок сверху) */
    .poll-block-mobile {
        display: block !important;
        margin: 15px auto;
        max-width: 100%;
    }
    
    /* Показываем мобильную версию рекламного баннера */
    body .rb-feature-block-mobile {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        margin: 20px 0 !important;
        padding: 15px !important;
        background: #fff !important;
        border: 1px solid #e3e7ec !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
    
    /* Мобильная версия баннера из sidebar (управляется через JS) */
    .sidebar-banner-mobile {
        margin: 20px 0;
        padding: 0 15px;
    }
    
    .poll-block-mobile .info-title {
        font-size: 15px;
        text-align: center;
    }
    
    .poll-block-mobile .expect-legend {
        font-size: 12px;
    }
    
    /* Модальное окно на мобильных */
    .poll-modal-content {
        padding: 28px 22px 20px;
        margin: 15px;
        border-radius: 12px;
        min-width: 280px;
    }
    
    .poll-modal-title {
        font-size: 18px;
    }
    
    .poll-modal-subtitle {
        font-size: 13px;
    }
    
    .poll-modal-actions {
        gap: 10px;
    }
    
    .poll-modal .poll-btn {
        padding: 12px 18px;
        font-size: 14px;
    }
}
/* ═══════════════════════════════════════════════════════════════
   МОДАЛЬНОЕ ОКНО ДЛЯ РЕКЛАМЫ
   ═══════════════════════════════════════════════════════════════ */

.ad-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ad-modal-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ad-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: inherit;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.ad-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    object-fit: cover;
}

.ad-modal-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 15px;
}

.ad-modal-description {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px;
    opacity: 0.9;
}

.ad-modal-button {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.ad-modal-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   INLINE БАННЕРЫ (между контентом)
   ═══════════════════════════════════════════════════════════════ */

.inline-banner {
    margin: 20px 0;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.inline-banner:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.inline-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.inline-banner-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.inline-banner-text {
    flex: 1;
}

.inline-banner-text h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: bold;
}

.inline-banner-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.inline-banner-button {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.inline-banner-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .ad-modal-content {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .ad-modal-title {
        font-size: 24px;
    }
    
    .ad-modal-description {
        font-size: 14px;
    }
    
    .inline-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .inline-banner-icon {
        margin: 0 auto;
    }
}

/* ═══════════════════════════════════════════════════════════════
   МОБИЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ НОВОСТЕЙ
   ═══════════════════════════════════════════════════════════════ */

/* Общие стили для страницы новостей */
.news-page-container,
.container.two-col {
    grid-template-columns: 1fr 320px;
}

.news-page .news-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.news-page .news-item:last-child {
    border-bottom: none;
}

.news-page .news-title a {
    color: #0a2c47;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
    display: block;
    transition: color 0.2s ease;
}

.news-page .news-title a:hover {
    color: #007bff;
    text-decoration: underline;
}

.news-page .news-description {
    margin: 10px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.news-page .news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.news-page .news-meta-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-page .news-meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-page .news-ticker-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 2px 6px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.news-page .news-ticker-link:hover {
    background: #e9ecef;
    color: #0056b3;
}

.news-page .news-date {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.news-page .news-rating-buttons {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.news-page .news-rating-button {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-page .news-rating-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.news-page .news-share-button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s ease;
}

.news-page .news-share-button:hover {
    background: #0056b3;
}

.news-page .news-impact-display {
    margin-top: 8px;
    font-size: 13px;
}

/* === Детальная страница новости === */
.news-detail-block {
  background: #fff;
  border: 1px solid #e3e7ec;
  border-radius: 10px;
}

.news-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.news-breadcrumbs .link {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.news-breadcrumbs .link:hover { text-decoration: underline; }

.news-detail-title {
  font-size: 24px;
  line-height: 1.35;
  margin: 10px 0 12px 0;
  color: #0a2c47;
}

.news-description {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  margin: 10px 0 12px;
}

.with-divider { padding: 12px 0; border-bottom: 1px solid #e3e7ec; }

.news-meta {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3e7ec;
}

.news-meta-left { color: #6c757d; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.news-meta-left .dot { color: #adb5bd; }
.news-meta-right { color: #6c757d; font-size: 12px; display: flex; align-items: center; gap: 10px; }
.news-meta-right .separator { color: #dee2e6; }

.news-impact-section {
  background: #f8f9fa;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.news-impact-title {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
}

.news-impact-display { margin-bottom: 10px; }
.impact-positive { color: #28a745; font-weight: 700; font-size: 14px; }
.impact-neutral { color: #6c757d; font-weight: 700; font-size: 14px; }
.impact-negative { color: #dc3545; font-weight: 700; font-size: 14px; }
.impact-counts { color: #6c757d; font-size: 11px; margin-left: 8px; }
.impact-legend { margin-top: 6px; font-size: 11px; color: #6c757d; }
.impact-empty { color: #6c757d; font-size: 13px; }

.news-rating-buttons {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.news-rating-buttons .label { margin-right: 6px; color: #6c757d; font-size: 12px; }
.news-rating-button {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 18px;
  cursor: pointer;
}
.news-rating-button:hover { background: #f1f3f5; }
.news-rating-button[disabled] { opacity: .6; cursor: not-allowed; }
.news-share-button {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.news-share-button:hover { background: #0056b3; }
.rating-done { color: #28a745; font-size: 11px; margin-left: 6px; }

.news-source-link {
  display: inline-block;
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}
.news-source-link:hover { filter: brightness(1.05); }

.related-news { margin-top: 20px; }
.news-list.related { list-style: none; padding: 0; margin: 0; }
.news-item.related { padding: 12px 0; border-bottom: 1px solid #eef2f5; }
.news-item.related:last-child { border-bottom: none; }
.news-item.related .title { color: #0a2c47; text-decoration: none; font-weight: 700; line-height: 1.4; display: block; margin-bottom: 4px; }
.news-item.related .title:hover { color: #007bff; text-decoration: underline; }

/* Мобильные стили для страницы новостей */
@media (max-width: 768px) {
    .news-page-container,
    .container.two-col {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .news-page .news-item {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        background: #fff;
    }

    .news-page .news-title a {
        font-size: 16px;
        line-height: 1.3;
    }

    .news-page .news-description {
        font-size: 13px;
        margin: 8px 0;
    }

    .news-page .news-meta {
        font-size: 12px;
        gap: 8px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
    
    .news-page .news-meta-left {
        gap: 3px;
    }
    
    .news-page .news-meta-right {
        gap: 6px;
    }

    .news-page .news-ticker-link {
        font-size: 11px;
        padding: 2px 4px;
    }

    .news-page .news-date {
        font-size: 11px;
        margin-top: 4px;
    }

    .news-page .news-rating-buttons {
        margin-top: 8px;
        gap: 4px;
    }

    .news-page .news-rating-button {
        padding: 3px 6px;
        font-size: 12px;
    }

    .news-page .news-share-button {
        padding: 3px 6px;
        font-size: 11px;
    }

    .news-page .news-impact-display {
        font-size: 12px;
        margin-top: 6px;
    }
}

/* Детальная новость — мобильные правки */
@media (max-width: 768px) {
  .news-detail-title { font-size: 20px; }
  .news-meta { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
  .news-rating-buttons { gap: 4px; }
  .news-rating-button { font-size: 16px; padding: 5px 6px; }
}

/* === SPOT PROMO CARD (right sidebar) === */
.rb-spot-card { background: #fff; border: 1px solid #e3e7ec; border-radius: 10px; padding: 10px; margin: 12px 0; }
.rb-spot-link { display: grid; grid-template-rows: auto 36px; text-decoration: none; color: inherit; gap: 8px; }
.rb-spot-image { width: 100%; height: auto; border-radius: 8px; display: block; }
.rb-spot-cta { display: grid; place-items: center; background: linear-gradient(45deg,#2563eb,#22c55e); color:#fff; font-weight:700; border-radius:8px; }

@media (max-width: 768px) {
  .rb-spot-card { margin-top: 14px; }
}
