/* 
 * Темная тема для главной страницы
 * Применяется когда body имеет класс .theme-dark
 * 
 * Этот файл содержит стили темной темы для всех секций главной страницы:
 * - Hero Carousel
 * - About Section (Facts)
 * - Services Section (Тарифы)
 * - News Section
 */

/* ============================================
   Базовые переменные для темной темы
   ============================================ */
html.theme-dark body,
html[data-theme="dark"] body,
body.theme-dark {
  --bg-dark: #0f172a;
  --fg-dark: #f1f5f9;
  --muted-dark: #94a3b8;
  --border-dark: #1e293b;
  --card-bg-dark: #1e293b;
  --card-border-dark: #334155;
}

/* ============================================
   Hero Carousel - Темная тема
   ============================================ */
body.theme-dark .hero-carousel {
  background: transparent; /* Прозрачный фон, чтобы было видно фоновое изображение */
}

body.theme-dark .hero-slide {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

body.theme-dark .hero-slide__content {
  color: #f1f5f9;
}

body.theme-dark .hero-slide h2 {
  color: #ffffff;
  text-shadow: 
    0 2px 16px rgba(0, 0, 0, 0.6),
    0 1px 8px rgba(0, 0, 0, 0.7),
    0 4px 20px rgba(59, 130, 246, 0.3);
}

body.theme-dark .hero-slide p {
  color: #e2e8f0;
  text-shadow: 
    0 1px 12px rgba(0, 0, 0, 0.5),
    0 1px 6px rgba(0, 0, 0, 0.6),
    0 3px 16px rgba(59, 130, 246, 0.2);
}

body.theme-dark .hero-slide__brand {
  /* Убираем фон и рамку, чтобы тег выглядел как в светлой теме */
  background: none;
  border: none;
  color: #ffffff; /* Белый цвет текста как в светлой теме */
}

body.theme-dark .btn-hero {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

body.theme-dark .btn-hero:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* ============================================
   About Section (Facts) - Темная тема
   ============================================ */
body.theme-dark .about {
  background: transparent; /* Прозрачный фон, чтобы было видно фоновое изображение */
}

body.theme-dark .about .facts-cloud {
  background: transparent;
}

/* ОТКЛЮЧЕНО: Карточки фактов отображаются как настроено в админке, независимо от темы */
/* Все переопределения темной темы для карточек фактов отключены, чтобы сохранить настройки из админки */

/* Явное правило: карточки фактов не переопределяются темной темой */
body.theme-dark .about .fact-card,
body.theme-dark .about .fact-card:hover,
body.theme-dark .about .fact-card__title,
body.theme-dark .about .fact-card__body,
body.theme-dark .about .fact-card__badge,
body.theme-dark .about .fact-card__number,
body.theme-dark .about .fact-card__text {
  /* Все стили берутся из основного файла facts.css и настроек админки */
  /* Переопределения темной темы не применяются */
}

/* 
body.theme-dark .fact-card {
  --card-fg: #f1f5f9;
  --card-shadow: 0 14px 32px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--card-fg);
}

body.theme-dark .fact-card:not(.fact-card--clients):not(.fact-card--worksince):not(.fact-card--kaspersky):not(.fact-card--quality):not(.fact-card--lowprices):not(.fact-card--hosting):not(.fact-card--telephony):not(.fact-card--mtspartnership):not(.fact-card--iptv):not(.fact-card--fastsupport) {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
}

body.theme-dark .fact-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(59, 130, 246, 0.2);
  transform: scale(1.01);
}

body.theme-dark .fact-card__title {
  color: #f1f5f9;
}

body.theme-dark .fact-card__number {
  color: #60a5fa;
}

body.theme-dark .fact-card__text {
  color: #cbd5e1;
}

body.theme-dark .fact-card__badge {
  background: rgba(255, 255, 255, 0.86);
  color: #0b1020;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.theme-dark .fact-card:hover .fact-card__badge {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
*/

/* Иконки тарифов в темной теме */
body.theme-dark .tariff-icon {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.2), inset 0 0 0 1px rgba(59, 130, 246, 0.1);
}

/* Иконка на зеленой карточке (featured) */
body.theme-dark .tariff-card.tariff-featured .tariff-icon {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.2), inset 0 0 0 1px rgba(16, 185, 129, 0.1);
}

/* Иконка на золотой карточке (popular) */
body.theme-dark .tariff-card.tariff-card--popular .tariff-icon {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.2), inset 0 0 0 1px rgba(245, 158, 11, 0.1);
}

/* Hover эффект для иконок */
body.theme-dark .tariff-card:hover .tariff-icon {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
  color: #93c5fd;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3), inset 0 0 0 1px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
  transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease, opacity 300ms ease;
}

body.theme-dark .tariff-card.tariff-featured:hover .tariff-icon {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3), inset 0 0 0 1px rgba(16, 185, 129, 0.2);
}

body.theme-dark .tariff-card.tariff-card--popular:hover .tariff-icon {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fcd34d;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3), inset 0 0 0 1px rgba(245, 158, 11, 0.2);
}

/* ОТКЛЮЧЕНО: Все переопределения для конкретных карточек фактов отключены */
/* Карточки отображаются как настроено в админке, независимо от темы */

/*
body.theme-dark .fact-card--clients.gradient-blue {
  border-color: rgba(59, 130, 246, 0.3);
}

body.theme-dark .fact-card--worksince.gradient-ink {
  border-color: rgba(99, 102, 241, 0.3);
}

body.theme-dark .fact-card--kaspersky.gradient-slate {
  border-color: rgba(100, 116, 139, 0.3);
}

body.theme-dark .fact-card--mtspartnership.gradient-blue {
  border-color: rgba(59, 130, 246, 0.3);
}

body.theme-dark .fact-card--quality.gradient-slate {
  border-color: rgba(100, 116, 139, 0.3);
}

body.theme-dark .fact-card--iptv.gradient-blue {
  border-color: rgba(59, 130, 246, 0.3);
}

body.theme-dark .fact-card--fastsupport.gradient-ink {
  border-color: rgba(99, 102, 241, 0.3);
}

body.theme-dark .fact-card--lowprices.gradient-slate {
  border-color: rgba(100, 116, 139, 0.3);
}

body.theme-dark .fact-card--telephony.gradient-slate {
  border-color: rgba(100, 116, 139, 0.3);
}

body.theme-dark .fact-card--hosting.gradient-slate {
  border-color: rgba(100, 116, 139, 0.3);
}

body.theme-dark .fact-card--clients,
body.theme-dark .fact-card--worksince,
body.theme-dark .fact-card--kaspersky,
body.theme-dark .fact-card--quality,
body.theme-dark .fact-card--lowprices,
body.theme-dark .fact-card--hosting,
body.theme-dark .fact-card--telephony,
body.theme-dark .fact-card--mtspartnership,
body.theme-dark .fact-card--iptv,
body.theme-dark .fact-card--fastsupport {
  background-size: 105%;
  background-position: center;
  background-repeat: no-repeat;
  filter: none;
  opacity: 1;
}

body.theme-dark .fact-card--clients:hover,
body.theme-dark .fact-card--worksince:hover,
body.theme-dark .fact-card--kaspersky:hover,
body.theme-dark .fact-card--quality:hover,
body.theme-dark .fact-card--lowprices:hover,
body.theme-dark .fact-card--hosting:hover,
body.theme-dark .fact-card--telephony:hover,
body.theme-dark .fact-card--mtspartnership:hover,
body.theme-dark .fact-card--iptv:hover,
body.theme-dark .fact-card--fastsupport:hover {
  background-size: 115%;
}
*/

/* ============================================
   Services Section (Тарифы) - Темная тема
   ============================================ */
body.theme-dark .services {
  background: transparent; /* Прозрачный фон, чтобы было видно фоновое изображение */
}

body.theme-dark .section-head h2 {
  color: #f1f5f9;
}

body.theme-dark .section-head.center h2::before {
  background: #60a5fa;
}

body.theme-dark .section-head p {
  color: #94a3b8;
}

/* Переключатель тарифов */
body.theme-dark .bundle-switch {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

body.theme-dark .bundle-switch__btn {
  color: #e2e8f0;
}

body.theme-dark .bundle-switch__telcom {
  color: #94a3b8;
}

body.theme-dark .bundle-switch__btn.is-active {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

body.theme-dark .bundle-switch__btn:hover:not(.is-active) {
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
}

/* Карточки комплексных пакетов */
body.theme-dark .package-card {
  --package-divider: rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-color: rgba(148, 163, 184, 0.16);
  color: #f1f5f9;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
}

body.theme-dark .package-card--base:hover {
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.46);
}

body.theme-dark .package-card--promo {
  border-color: rgba(251, 146, 60, 0.38);
  background: linear-gradient(180deg, rgba(67, 20, 7, 0.92) 0%, #111827 52%, #0f172a 100%);
  box-shadow:
    0 26px 52px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(249, 115, 22, 0.1);
}

body.theme-dark .package-card__badge {
  background: var(--package-badge-bg, var(--package-accent, #2563eb));
  color: var(--package-badge-fg, #fff);
}

body.theme-dark .package-card__brand--logo {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.theme-dark .package-card__badge--promo {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, #f43f5e 0%, #e11d48 55%, #be123c 100%);
  color: #fff;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.theme-dark .package-card__badge--newyear {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, #fb7185 0%, #e11d48 50%, #9f1239 100%);
  color: #fff;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.theme-dark .package-card--newyear {
  border-color: rgba(251, 146, 60, 0.42);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.24) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.18) 0 1.5px, transparent 3px),
    linear-gradient(165deg, #071526 0%, #0f2744 48%, #151c2e 100%);
  box-shadow:
    0 28px 58px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(251, 146, 60, 0.1);
}

body.theme-dark .package-card__title,
body.theme-dark .package-card__benefit-value,
body.theme-dark .package-card__price-row strong {
  color: #f8fafc;
}

body.theme-dark .package-card--promo .package-card__price-row strong {
  color: #fdba74;
}

body.theme-dark .package-card__desc,
body.theme-dark .package-card__benefit-eyebrow,
body.theme-dark .package-card__benefit-unit,
body.theme-dark .package-card__benefit-note,
body.theme-dark .package-card__price-row small {
  color: #94a3b8;
}

body.theme-dark .package-card__benefit {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.theme-dark .package-card__speed-meter {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .package-card__price-old {
  color: #94a3b8;
}

body.theme-dark .package-card__cta--quiet {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.28);
  color: #bfdbfe;
}

body.theme-dark .package-card__cta--quiet:hover,
body.theme-dark .package-card--base:hover .package-card__cta--quiet {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.38);
}

body.theme-dark .package-card__quality--hd {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(96, 165, 250, 0.3);
  color: #bfdbfe;
}

body.theme-dark .package-card__quality--uhd {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(216, 180, 254, 0.28);
  color: #e9d5ff;
}

/* Карточки тарифов */
body.theme-dark .tariff-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #f1f5f9;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(59, 130, 246, 0.1);
}

body.theme-dark .tariff-shelf {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(59, 130, 246, 0.1);
}

body.theme-dark .tariff-shelf__title {
  color: #f8fafc;
}

body.theme-dark .tariff-shelf__note {
  color: #94a3b8;
}

body.theme-dark .tariff-shelf__btn,
body.theme-dark .tariff-shelf__btn:hover,
body.theme-dark .tariff-shelf__btn:focus-visible {
  border: none;
  color: #fff;
}

body.theme-dark .tariff-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(59, 130, 246, 0.2);
  transform: none;
}

body.theme-dark .tariff-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

body.theme-dark .tariff-title {
  color: #f1f5f9;
}

body.theme-dark .tariff-tagline {
  color: #94a3b8;
}

body.theme-dark .tariff-speed {
  color: #60a5fa;
}

body.theme-dark .tariff-speed span {
  color: #93c5fd;
}

/* Полоски скорости - стильный дизайн для темной темы */
body.theme-dark .tariff-meter {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 8px rgba(59, 130, 246, 0.1);
  position: relative;
  overflow: hidden; /* Важно: скрывает переполнение, чтобы полоска не выходила за границы */
}

/* Базовая заполненная часть - неоновый эффект */
body.theme-dark .tariff-meter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--meter); /* Важно: определяет процент заполнения в зависимости от класса meter-20, meter-40, meter-100 */
  background: linear-gradient(90deg, 
    #3b82f6 0%, 
    #60a5fa 30%,
    #93c5fd 60%, 
    #3b82f6 100%);
  background-size: 200% 100%;
  box-shadow: 
    0 0 12px rgba(59, 130, 246, 0.6),
    0 0 24px rgba(96, 165, 250, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  animation: meterGlow 3s ease-in-out infinite;
  transition: width .4s ease; /* Плавная анимация изменения ширины */
  z-index: 1;
}

/* Анимация свечения для базовой полоски */
@keyframes meterGlow {
  0%, 100% {
    background-position: 0% 50%;
    box-shadow: 
      0 0 12px rgba(59, 130, 246, 0.6),
      0 0 24px rgba(96, 165, 250, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 
      0 0 16px rgba(59, 130, 246, 0.8),
      0 0 32px rgba(96, 165, 250, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

/* Полоска на зеленой карточке (Мега 500) */
body.theme-dark .tariff-card.tariff-featured .tariff-meter {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 8px rgba(16, 185, 129, 0.15);
}

body.theme-dark .tariff-card.tariff-featured .tariff-meter::before {
  background: linear-gradient(90deg, 
    #10b981 0%, 
    #34d399 30%,
    #6ee7b7 60%, 
    #10b981 100%);
  background-size: 200% 100%;
  box-shadow: 
    0 0 12px rgba(16, 185, 129, 0.6),
    0 0 24px rgba(52, 211, 153, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: meterGlowGreen 3s ease-in-out infinite;
}

@keyframes meterGlowGreen {
  0%, 100% {
    background-position: 0% 50%;
    box-shadow: 
      0 0 12px rgba(16, 185, 129, 0.6),
      0 0 24px rgba(52, 211, 153, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 
      0 0 16px rgba(16, 185, 129, 0.8),
      0 0 32px rgba(52, 211, 153, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

/* Полоска на золотой карточке (Мега 200) */
body.theme-dark .tariff-card.tariff-card--popular .tariff-meter {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 8px rgba(245, 158, 11, 0.15);
}

body.theme-dark .tariff-card.tariff-card--popular .tariff-meter::before {
  background: linear-gradient(90deg, 
    #f59e0b 0%, 
    #fbbf24 30%,
    #fcd34d 60%, 
    #f59e0b 100%);
  background-size: 200% 100%;
  box-shadow: 
    0 0 12px rgba(245, 158, 11, 0.6),
    0 0 24px rgba(251, 191, 36, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: meterGlowGold 3s ease-in-out infinite;
}

@keyframes meterGlowGold {
  0%, 100% {
    background-position: 0% 50%;
    box-shadow: 
      0 0 12px rgba(245, 158, 11, 0.6),
      0 0 24px rgba(251, 191, 36, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 
      0 0 16px rgba(245, 158, 11, 0.8),
      0 0 32px rgba(251, 191, 36, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

/* Эффект при наведении на карточку */
body.theme-dark .tariff-card:hover .tariff-meter::before {
  animation-duration: 1.5s;
  box-shadow: 
    0 0 20px rgba(59, 130, 246, 0.8),
    0 0 40px rgba(96, 165, 250, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.theme-dark .tariff-card.tariff-featured:hover .tariff-meter::before {
  box-shadow: 
    0 0 20px rgba(16, 185, 129, 0.8),
    0 0 40px rgba(52, 211, 153, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.theme-dark .tariff-card.tariff-card--popular:hover .tariff-meter::before {
  box-shadow: 
    0 0 20px rgba(245, 158, 11, 0.8),
    0 0 40px rgba(251, 191, 36, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.theme-dark .tariff-price {
  color: #f1f5f9;
}

body.theme-dark .price-value {
  color: #60a5fa;
}

body.theme-dark .price-currency {
  color: #94a3b8;
}

body.theme-dark .chip {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Кнопки в карточках тарифов */

body.theme-dark .btn-primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

body.theme-dark .btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

body.theme-dark .tariff-shelf__btn {
  background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
  border: none;
  box-shadow:
    0 4px 20px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.theme-dark .tariff-shelf__btn:hover,
body.theme-dark .tariff-shelf__btn:focus-visible {
  background: linear-gradient(135deg, #1d4ed8, #2563eb, #3b82f6);
  border: none;
  color: #fff;
  transform: none;
  box-shadow:
    0 8px 24px rgba(37, 99, 235, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* Кнопки в карточках тарифов - используем те же анимации, что и в светлой теме */
body.theme-dark .tariff-card .btn-primary {
  position: relative;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff !important;
  overflow: hidden;
}

/* Текст всегда поверх эффектов */
body.theme-dark .tariff-card .btn-primary * {
  position: relative;
  z-index: 10;
}

/* Сбрасываем базовые стили для карточек тарифов */
body.theme-dark .tariff-card .btn-primary::before {
  content: none;
}

/* Кнопка на стандартной карточке (Турбо) - синяя */
body.theme-dark .tariff-card.tariff-card--entry .btn-primary {
  background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
  background-size: 300% 300%;
  border: none;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: ambientGlow 3s ease-in-out infinite;
}

/* Пульсирующее неоновое свечение по краям */
body.theme-dark .tariff-card.tariff-card--entry .btn-primary::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(45deg, #60a5fa, #3b82f6, #2563eb, #1d4ed8);
  background-size: 400% 400%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: borderRotate 4s linear infinite;
  z-index: -1;
}

/* Расходящиеся волны */
body.theme-dark .tariff-card.tariff-card--entry .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
  opacity: 0;
  transform: scale(0);
  z-index: 0;
}

body.theme-dark .tariff-card.tariff-card--entry .btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 35px rgba(37, 99, 235, 0.5),
              0 15px 50px rgba(59, 130, 246, 0.4),
              0 0 80px rgba(96, 165, 250, 0.3),
              inset 0 2px 5px rgba(255, 255, 255, 0.3);
  background-position: 100% 50%;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
  border: none;
}

/* Включаем неоновое свечение */
body.theme-dark .tariff-card.tariff-card--entry .btn-primary:hover::before {
  opacity: 1;
}

/* Волны расходятся */
body.theme-dark .tariff-card.tariff-card--entry .btn-primary:hover::after {
  animation: rippleWave 1s ease-out;
}

body.theme-dark .tariff-card.tariff-card--entry .btn-primary:active {
  transform: scale(1);
  box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

/* Кнопка на зеленой карточке Мега 500 */
body.theme-dark .tariff-card.tariff-featured .btn-primary {
  background: linear-gradient(135deg, #047857, #10b981, #34d399);
  background-size: 300% 300%;
  border: none;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: ambientGlow 3s ease-in-out infinite;
}

/* Пульсирующее неоновое свечение по краям */
body.theme-dark .tariff-card.tariff-featured .btn-primary::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(45deg, #34d399, #10b981, #059669, #047857);
  background-size: 400% 400%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: borderRotate 4s linear infinite;
  z-index: -1;
}

/* Расходящиеся волны */
body.theme-dark .tariff-card.tariff-featured .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
  opacity: 0;
  transform: scale(0);
  z-index: 0;
}

body.theme-dark .tariff-card.tariff-featured .btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 35px rgba(5, 150, 105, 0.5),
              0 15px 50px rgba(16, 185, 129, 0.4),
              0 0 80px rgba(52, 211, 153, 0.3),
              inset 0 2px 5px rgba(255, 255, 255, 0.3);
  background-position: 100% 50%;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #047857, #10b981, #34d399);
  border: none;
}

/* Включаем неоновое свечение */
body.theme-dark .tariff-card.tariff-featured .btn-primary:hover::before {
  opacity: 1;
}

/* Волны расходятся */
body.theme-dark .tariff-card.tariff-featured .btn-primary:hover::after {
  animation: rippleWave 1s ease-out;
}

body.theme-dark .tariff-card.tariff-featured .btn-primary:active {
  transform: scale(1);
  box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

/* Кнопка на золотой карточке Мега 200 */
body.theme-dark .tariff-card.tariff-card--popular .btn-primary {
  background: linear-gradient(135deg, #b45309, #f59e0b, #fbbf24);
  background-size: 300% 300%;
  border: none;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: ambientGlow 3s ease-in-out infinite;
}

/* Пульсирующее неоновое свечение по краям */
body.theme-dark .tariff-card.tariff-card--popular .btn-primary::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706, #b45309);
  background-size: 400% 400%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: borderRotate 4s linear infinite;
  z-index: -1;
}

/* Расходящиеся волны */
body.theme-dark .tariff-card.tariff-card--popular .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
  opacity: 0;
  transform: scale(0);
  z-index: 0;
}

body.theme-dark .tariff-card.tariff-card--popular .btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 35px rgba(217, 119, 6, 0.5),
              0 15px 50px rgba(245, 158, 11, 0.4),
              0 0 80px rgba(251, 191, 36, 0.3),
              inset 0 2px 5px rgba(255, 255, 255, 0.3);
  background-position: 100% 50%;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #b45309, #f59e0b, #fbbf24);
  border: none;
}

/* Включаем неоновое свечение */
body.theme-dark .tariff-card.tariff-card--popular .btn-primary:hover::before {
  opacity: 1;
}

/* Волны расходятся */
body.theme-dark .tariff-card.tariff-card--popular .btn-primary:hover::after {
  animation: rippleWave 1s ease-out;
}

body.theme-dark .tariff-card.tariff-card--popular .btn-primary:active {
  transform: scale(1);
  box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

/* Специальные карточки тарифов */
body.theme-dark .tariff-card--flagship {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e293b 50%, #1e3a8a 100%);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(59, 130, 246, 0.3);
}

body.theme-dark .tariff-card--popular {
  border-color: rgba(99, 102, 241, 0.4);
}

body.theme-dark .tariff-card--entry {
  border-color: rgba(100, 116, 139, 0.3);
}

/* Антивирус карточки */
body.theme-dark .antivirus-card {
  background: linear-gradient(135deg, 
    rgba(30, 41, 59, 0.85) 0%,
    rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(0, 168, 142, 0.2);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 0 rgba(0, 168, 142, 0.1);
  color: #f1f5f9;
}

body.theme-dark .antivirus-card::before {
  background: linear-gradient(135deg, 
    rgba(0, 168, 142, 0.05) 0%, 
    rgba(0, 168, 142, 0.02) 50%,
    rgba(255, 255, 255, 0.02) 100%);
  border-radius: 24px;
}

body.theme-dark .antivirus-card:hover {
  transform: none;
  border-color: rgba(0, 168, 142, 0.4);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 2px 0 rgba(0, 168, 142, 0.3);
  background: linear-gradient(135deg, 
    rgba(30, 41, 59, 0.9) 0%,
    rgba(15, 23, 42, 0.95) 100%);
}

body.theme-dark .antivirus-head h3,
body.theme-dark .antivirus-head h4 {
  color: #f1f5f9 !important;
}

body.theme-dark .antivirus-chip {
  background: linear-gradient(135deg, #00A88E 0%, #00C9A7 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 4px 20px rgba(0, 168, 142, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.theme-dark .antivirus-text {
  color: #cbd5e1;
}

body.theme-dark .antivirus-list li {
  color: #94a3b8;
}

body.theme-dark .antivirus-link {
  color: #00A88E;
}

body.theme-dark .antivirus-link:hover {
  color: #00C9A7;
  background: rgba(0, 168, 142, 0.15);
}

/* Кнопки в темной теме - зеленые как в светлой */
body.theme-dark .antivirus-actions .btn {
  background: linear-gradient(135deg, #00A88E 0%, #00C9A7 100%) !important;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

body.theme-dark .antivirus-actions .btn:hover {
  background: linear-gradient(135deg, #00C9A7 0%, #00E5BF 100%) !important;
  color: white !important;
}

body.theme-dark .antivirus-actions .btn-primary:hover {
  background: linear-gradient(135deg, #00C9A7 0%, #00E5BF 100%) !important;
  color: white !important;
}

body.theme-dark .antivirus-actions .btn-primary:hover::before,
body.theme-dark .antivirus-actions .btn-primary:hover::after {
  display: none !important;
}

/* Цена в темной теме */
body.theme-dark .antivirus-price-value {
  color: #f1f5f9 !important;
}

body.theme-dark .antivirus-price-currency {
  color: #94a3b8 !important;
}

/* Названия поставщиков */
body.theme-dark .antivirus-provider-name {
  color: #f1f5f9 !important;
}

body.theme-dark .antivirus-provider-description {
  color: #cbd5e1;
}

/* Группы поставщиков в темной теме */
body.theme-dark .antivirus-provider-group {
  border-bottom-color: rgba(0, 168, 142, 0.2);
}

/* MTS предложение */
body.theme-dark .mts-offer {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #1e1b4b 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #f1f5f9;
}

body.theme-dark .promotions-grid .mts-offer__content {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.94) 100%);
}

body.theme-dark .mts-offer__badge {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

body.theme-dark .mts-offer__title {
  color: #f1f5f9;
}

body.theme-dark .mts-offer__subtitle {
  color: #cbd5e1;
}

body.theme-dark .mts-offer__list li {
  color: #94a3b8;
}

body.theme-dark .promotion-card__description p,
body.theme-dark .promotion-card__description li {
  color: #cbd5e1;
}

body.theme-dark .promotion-card__media {
  border-color: rgba(148, 163, 184, 0.38);
  background: rgba(15, 23, 42, 0.42);
}

body.theme-dark .mts-offer__code {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

body.theme-dark .btn-mts {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.46);
}

body.theme-dark .btn-mts:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.56);
}

body.theme-dark .mts-offer__note {
  color: #94a3b8;
}

/* Дополнительные услуги */
/* Карточка должна выглядеть как в светлой теме, но с адаптацией для темной темы */
body.theme-dark .addon-callout {
  /* Используем те же эффекты прозрачности, что и в светлой теме */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 32px 64px rgba(15, 23, 42, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 8px 32px rgba(37, 99, 235, 0.1);
  color: #f1f5f9;
}

/* Градиентный слой ::before - как в светлой теме */
body.theme-dark .addon-callout::before {
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.08) 0%, 
    rgba(59, 130, 246, 0.12) 50%, 
    rgba(147, 197, 253, 0.06) 100%);
  opacity: 0.7;
}

/* Анимированное свечение ::after - как в светлой теме */
/* Эффект при наведении - как в светлой теме */
body.theme-dark .addon-callout:hover {
  transform: scale(1.02);
  box-shadow: 
    0 48px 96px rgba(15, 23, 42, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 16px 48px rgba(37, 99, 235, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

body.theme-dark .addon-callout:hover::before {
  opacity: 1;
}

/* Иконка телефона - улучшенная видимость в темной теме */
body.theme-dark .addon-callout .addon-icon {
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.25) 0%, 
    rgba(59, 130, 246, 0.2) 100%);
  border: 2px solid rgba(96, 165, 250, 0.5);
  color: #60a5fa;
  box-shadow: 
    0 8px 32px rgba(37, 99, 235, 0.3),
    0 0 0 1px rgba(96, 165, 250, 0.2) inset,
    0 0 20px rgba(96, 165, 250, 0.15);
}

body.theme-dark .addon-callout .addon-icon svg {
  color: #60a5fa;
  filter: drop-shadow(0 2px 4px rgba(96, 165, 250, 0.3));
}

body.theme-dark .addon-callout .addon-icon:hover {
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.35) 0%, 
    rgba(59, 130, 246, 0.3) 100%);
  border-color: rgba(96, 165, 250, 0.7);
  color: #93c5fd;
  box-shadow: 
    0 12px 40px rgba(37, 99, 235, 0.4),
    0 0 0 1px rgba(96, 165, 250, 0.3) inset,
    0 0 30px rgba(96, 165, 250, 0.25);
}

body.theme-dark .addon-callout .addon-icon:hover svg {
  color: #93c5fd;
  filter: drop-shadow(0 2px 6px rgba(96, 165, 250, 0.4));
}

/* Кнопка в карточке - улучшенная видимость в темной теме */
body.theme-dark .addon-callout .btn {
  border: 2px solid rgba(96, 165, 250, 0.5);
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.2) 0%, 
    rgba(59, 130, 246, 0.15) 100%);
  color: #60a5fa;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 8px 24px rgba(37, 99, 235, 0.25),
    0 0 0 1px rgba(96, 165, 250, 0.2) inset,
    0 0 15px rgba(96, 165, 250, 0.1);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Эффект блеска на кнопке при наведении - как в светлой теме */
body.theme-dark .addon-callout .btn::before {
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
}

body.theme-dark .addon-callout .btn:hover {
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.95) 0%, 
    rgba(59, 130, 246, 0.95) 100%);
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.8);
  transform: scale(1.05);
  box-shadow: 
    0 16px 40px rgba(37, 99, 235, 0.5),
    0 0 0 1px rgba(96, 165, 250, 0.3) inset,
    0 0 25px rgba(96, 165, 250, 0.3);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.theme-dark .addon-callout .btn:hover::before {
  left: 100%;
}

body.theme-dark .addon-head h3 {
  color: #f1f5f9;
}

body.theme-dark .addon-head p {
  color: #94a3b8;
}

/* Улучшенная видимость текста "Межгород — выгодно" и других strong элементов */
body.theme-dark .addon-line__text strong {
  color: #ffffff;
  text-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(96, 165, 250, 0.2);
  font-weight: 700;
}

body.theme-dark .addon-line__text span {
  color: #cbd5e1;
}

body.theme-dark .addon-price-aside__value {
  color: #5ddb3a;
}

body.theme-dark .addon-price-aside__unit {
  color: #94a3b8;
}

body.theme-dark .addon-price-aside__note {
  color: #64748b;
}

body.theme-dark .btn-outline {
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  background: transparent;
}

body.theme-dark .btn-outline:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.6);
  color: #93c5fd;
}

/* ============================================
   News Section - Темная тема
   ============================================ */
body.theme-dark .news {
  background: transparent; /* Прозрачный фон, чтобы было видно фоновое изображение */
}

body.theme-dark .news-title {
  color: #f1f5f9;
}

body.theme-dark .news-title::before {
  background: linear-gradient(90deg, 
    #60a5fa 0%, 
    #93c5fd 50%,
    transparent 100%);
}

body.theme-dark .news-subtitle {
  color: #94a3b8;
}

/* Новые стили для карточек новостей */
body.theme-dark .news-item__link {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.12) 0%, 
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
}

body.theme-dark .news-item__link::before {
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.06) 0%, 
    rgba(59, 130, 246, 0.04) 50%,
    rgba(147, 197, 253, 0.02) 100%);
}

body.theme-dark .news-item:hover .news-item__link,
body.theme-dark .news-item:focus-within .news-item__link {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 48px 96px rgba(15, 23, 42, 0.2),
    0 16px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 0 60px rgba(37, 99, 235, 0.15);
}

body.theme-dark .news-item:hover .news-item__link::before,
body.theme-dark .news-item:focus-within .news-item__link::before {
  opacity: 1;
}

body.theme-dark .news-item__image-wrapper {
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.08) 0%, 
    rgba(59, 130, 246, 0.05) 100%);
}

body.theme-dark .news-item__date {
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.95) 0%, 
    rgba(59, 130, 246, 0.9) 100%);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 24px rgba(37, 99, 235, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.theme-dark .news-item:hover .news-item__date,
body.theme-dark .news-item:focus-within .news-item__date {
  box-shadow: 
    0 12px 32px rgba(37, 99, 235, 0.5),
    0 6px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

body.theme-dark .news-item__date-day {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.theme-dark .news-item__date-month {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

body.theme-dark .news-item__excerpt {
  color: #94a3b8;
}

body.theme-dark .news-item__title {
  color: #f1f5f9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.theme-dark .news-item__arrow {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.25) 0%, 
    rgba(255, 255, 255, 0.15) 100%);
  border-color: rgba(255, 255, 255, 0.3);
  color: #60a5fa;
}

body.theme-dark .news-item__arrow::before {
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.15) 0%, 
    rgba(59, 130, 246, 0.2) 100%);
}

body.theme-dark .news-item:hover .news-item__arrow,
body.theme-dark .news-item:focus-within .news-item__arrow {
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.95) 0%, 
    rgba(59, 130, 246, 0.95) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 12px 32px rgba(37, 99, 235, 0.4),
    0 6px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.theme-dark .news-item:hover .news-item__arrow::before,
body.theme-dark .news-item:focus-within .news-item__arrow::before {
  opacity: 1;
}


body.theme-dark .news-empty {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.12) 0%, 
    rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 24px 48px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.theme-dark .news-empty p {
  color: #94a3b8;
}

body.theme-dark .news-view-all {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.12) 0%, 
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 
    0 20px 60px rgba(15, 23, 42, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 0 50px rgba(96, 165, 250, 0.12);
}

body.theme-dark .news-view-all:hover {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 
    0 32px 80px rgba(15, 23, 42, 0.25),
    0 16px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 70px rgba(96, 165, 250, 0.2);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.18) 0%, 
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.12) 100%);
}

body.theme-dark .news-view-all__line {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(96, 165, 250, 0.5) 20%,
    rgba(96, 165, 250, 0.8) 50%,
    rgba(96, 165, 250, 0.5) 80%,
    transparent 100%);
}

body.theme-dark .news-view-all:hover .news-view-all__line {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(96, 165, 250, 0.7) 20%,
    rgba(96, 165, 250, 1) 50%,
    rgba(96, 165, 250, 0.7) 80%,
    transparent 100%);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.6);
}

body.theme-dark .news-view-all__text {
  color: #f1f5f9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.theme-dark .news-view-all__text::after {
  background: linear-gradient(90deg, 
    rgba(96, 165, 250, 1) 0%, 
    rgba(147, 197, 253, 1) 100%);
  box-shadow: 0 2px 12px rgba(96, 165, 250, 0.6);
}

body.theme-dark .news-view-all:hover .news-view-all__text {
  color: rgba(96, 165, 250, 1);
  text-shadow: 0 2px 15px rgba(96, 165, 250, 0.4);
}

body.theme-dark .news-view-all__arrow {
  background: linear-gradient(135deg, 
    rgba(96, 165, 250, 0.18) 0%, 
    rgba(147, 197, 253, 0.15) 100%);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 
    0 4px 12px rgba(96, 165, 250, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

body.theme-dark .news-view-all__arrow::before {
  background: linear-gradient(135deg, 
    rgba(96, 165, 250, 0.25) 0%, 
    rgba(147, 197, 253, 0.22) 100%);
}

body.theme-dark .news-view-all__arrow .news-view-all__arrow-icon {
  color: rgba(96, 165, 250, 1);
  filter: drop-shadow(0 2px 6px rgba(96, 165, 250, 0.4));
}

body.theme-dark .news-view-all:hover .news-view-all__arrow {
  background: linear-gradient(135deg, 
    rgba(96, 165, 250, 0.3) 0%, 
    rgba(147, 197, 253, 0.25) 100%);
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 
    0 12px 32px rgba(96, 165, 250, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 0 25px rgba(96, 165, 250, 0.5);
}

body.theme-dark .news-view-all:hover .news-view-all__arrow .news-view-all__arrow-icon {
  color: rgba(147, 197, 253, 1);
  filter: drop-shadow(0 2px 10px rgba(96, 165, 250, 0.6));
}

/* Пагинация в темной теме */
body.theme-dark .pagination-container {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .pagination-arrow {
  color: #60a5fa;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

body.theme-dark .pagination-arrow::before {
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.2) 0%, 
    rgba(59, 130, 246, 0.25) 100%);
}

body.theme-dark .pagination-arrow:hover {
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.95) 0%, 
    rgba(59, 130, 246, 0.95) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 12px 32px rgba(37, 99, 235, 0.5),
    0 6px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.theme-dark .pagination-counter {
  color: #f1f5f9;
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.25);
}

body.theme-dark .pagination-current {
  color: #60a5fa;
}

body.theme-dark .pagination-separator,
body.theme-dark .pagination-total {
  color: #94a3b8;
}

/* ============================================
   Дополнительные элементы
   ============================================ */
body.theme-dark .contact-fab {
  /* Убираем рамку, чтобы выглядело как в светлой теме */
  border: none;
}

body.theme-dark .contact-fab:hover {
  /* Убираем рамку при наведении */
  border: none;
}


/* ============================================
   TV Providers block - Dark theme
   ============================================ */
body.theme-dark .tv-provider-card {
  background: #0b1220;
  border-color: #1e293b;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

body.theme-dark .tv-provider-card__logo {
  background: #111827;
  border-color: #1f2937;
}

body.theme-dark .tv-provider-card__logo-placeholder {
  color: #cbd5e1;
}

body.theme-dark .tv-provider-card__services li {
  color: #e2e8f0;
}

body.theme-dark .tv-provider-card__service-channels,
body.theme-dark .tv-provider-card__more {
  color: #94a3b8;
}

body.theme-dark .tv-provider-card__price {
  color: #22c55e;
}

body.theme-dark .tv-provider-card__chips .chip {
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(96, 165, 250, 0.28);
  color: #dbeafe;
}

body.theme-dark .tv-provider-card__services li {
  background: #0f172a;
  border-color: #1f2937;
}

body.theme-dark .tv-provider-card__service-price {
  color: #f8fafc;
}

body.theme-dark .tv-provider-card__hint {
  color: #cbd5e1;
}

body.theme-dark .tv-selector-card__inner {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.65);
}

body.theme-dark .tv-selector-card__body {
  background: rgba(15, 23, 42, 0.96);
  border-top-color: rgba(51, 65, 85, 1);
}

body.theme-dark .tv-selector-card__meta {
  color: #cbd5e1;
}

body.theme-dark .tv-selector__services {
  background: #1e293b;
  border-color: rgba(51, 65, 85, 1);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

body.theme-dark .tv-selector__services-header {
  border-bottom-color: rgba(51, 65, 85, 1);
}

body.theme-dark .tv-selector__back {
  background: #334155;
  color: #cbd5e1;
  border-color: rgba(51, 65, 85, 1);
}

body.theme-dark .tv-selector__back:hover {
  background: #475569;
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

body.theme-dark .tv-selector__cta {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(96, 165, 250, 0.4);
  color: #e2e8f0;
}

body.theme-dark .tv-selector {
  background: rgba(11, 20, 36, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 35px 90px rgba(2, 6, 23, 0.8);
}

body.theme-dark .tv-selector__label {
  background: rgba(59, 130, 246, 0.25);
  color: #dbeafe;
}

body.theme-dark .tv-selector__hero-text h3,
body.theme-dark .tv-selector__hero-text p {
  color: #f8fafc;
}

body.theme-dark .tv-selector__stats li {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

body.theme-dark .tv-selector__stats span {
  color: rgba(226, 232, 240, 0.85);
}

body.theme-dark .tv-selector__hero-perks span {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #dbeafe;
}

body.theme-dark .tv-selector-card__inner {
  background: #1e293b;
  border-color: rgba(51, 65, 85, 1);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

body.theme-dark .tv-selector-card:hover .tv-selector-card__inner {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.3);
}

body.theme-dark .tv-selector-card.is-active .tv-selector-card__inner {
  border-color: rgba(96, 165, 250, 1);
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.2),
    0 12px 32px rgba(59, 130, 246, 0.15);
}

body.theme-dark .tv-selector-card__logo {
  background: #1e293b;
}

body.theme-dark .tv-selector-card:hover .tv-selector-card__logo {
  background: #334155;
}

body.theme-dark .tv-selector-card__logo-placeholder {
  color: #94a3b8;
}

body.theme-dark .tv-selector-card__description {
  color: #cbd5e1;
}

body.theme-dark .tv-selector-card__cta {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

body.theme-dark .tv-selector-card:hover .tv-selector-card__cta {
  background: #3b82f6;
  color: #ffffff;
}

body.theme-dark .tv-selector-card__meta {
  color: #cbd5e1;
}

body.theme-dark .tv-selector-card__pill {
  background: #334155;
  color: #cbd5e1;
}

body.theme-dark .tv-selector-card:hover .tv-selector-card__pill {
  background: #475569;
  color: #e2e8f0;
}

body.theme-dark .tv-selector__services {
  background: rgba(10, 16, 30, 0.92);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75);
}

@media (max-width: 640px) {
  body.theme-dark .tv-selector {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.theme-dark .tv-selector__services {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
}

body.theme-dark .tv-selector__comparison h4 {
  color: #f5f6ff;
}

body.theme-dark .tv-selector__comparison-table {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(30, 41, 59, 0.6);
}

body.theme-dark .tv-selector__comparison-table table,
body.theme-dark .tv-selector__comparison-table-container table {
  background: transparent;
}

body.theme-dark .tv-selector__comparison-table thead,
body.theme-dark .tv-selector__comparison-table-container table thead {
  background: rgba(30, 41, 59, 0.8);
}

body.theme-dark .tv-selector__comparison-table th,
body.theme-dark .tv-selector__comparison-table-container table th {
  color: #f5f6ff;
  border-bottom-color: rgba(59, 130, 246, 0.2);
  border-right-color: rgba(59, 130, 246, 0.1);
}

body.theme-dark .tv-selector__comparison-table td,
body.theme-dark .tv-selector__comparison-table-container table td {
  color: rgba(255, 255, 255, 0.8);
  border-bottom-color: rgba(59, 130, 246, 0.15);
  border-right-color: rgba(59, 130, 246, 0.1);
}

body.theme-dark .tv-selector__comparison-table tbody tr:hover,
body.theme-dark .tv-selector__comparison-table-container table tbody tr:hover {
  background: rgba(30, 41, 59, 0.9);
}

body.theme-dark .tv-selector__comparison-table tbody tr:first-child th,
body.theme-dark .tv-selector__comparison-table-container table tbody tr:first-child th {
  color: #f5f6ff;
}

body.theme-dark .tv-selector__single-card {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(59, 130, 246, 0.25);
  color: #e2e8f0;
}

body.theme-dark .tv-selector__single-card h4 {
  color: #ffffff;
}

body.theme-dark .tv-selector__single-description {
  color: rgba(226, 232, 240, 0.8);
}

body.theme-dark .tv-selector__single-meta li {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
}

body.theme-dark .tv-selector__single-meta span {
  color: rgba(226, 232, 240, 0.7);
}

body.theme-dark .tv-selector__single-meta strong,
body.theme-dark .tv-selector__single-meta a {
  color: #dbeafe;
}

body.theme-dark .tv-selector__services-head h4 {
  color: #ffffff;
}

body.theme-dark .tv-selector__provider-logo {
  background: transparent;
  border-color: transparent;
}

/* ============================================
   Адаптивность для темной темы
   ============================================ */
@media (max-width: 768px) {
  body.theme-dark .hero-carousel {
    background: #0f172a;
  }
  
  body.theme-dark .about {
    background: #0f172a;
  }
  
  body.theme-dark .services {
    background: #0f172a;
  }
  
  body.theme-dark .news {
    background: #0f172a;
  }
}

