/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.dark ::-webkit-scrollbar-thumb { background: #334155; }

/* Contrast Glass Nav */
.nav-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.dark .nav-glass {
  background: rgba(11, 17, 32, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.math-formula {
  font-family: 'Fira Code', monospace;
}

/* Эффект подскока и интерактивная подсветка карточек */
.glow-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s ease, 
              border-color 0.3s ease;
}

/* Подскок вверх и тень при наведении */
.glow-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 32px -10px rgba(79, 70, 229, 0.15);
}
.dark .glow-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 16px 32px -10px rgba(6, 182, 212, 0.25);
}

/* Пятно света, следующее за мышкой */
.glow-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, -200px);
  left: var(--mouse-x, -200px);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.14) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.dark .glow-card::before {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
}

.glow-card:hover::before {
  opacity: 1;
}

/* Чтобы текст и кнопки были поверх светового пятна */
.glow-card > * {
  position: relative;
  z-index: 1;
}

@keyframes floatBadge {
  0%, 100% {
    transform: translateY(0) rotate(3deg);
  }
  50% {
    transform: translateY(-7px) rotate(3deg);
  }
}

.badge-floating {
  animation: floatBadge 2.8s ease-in-out infinite;
}

.skrytvrv{display:none !important;}

.form_vrv{display:none !important;}
.form_vrv2{border:0 !important; width:1px !important; height:1px !important;padding: 0 0 0 0!important; background: #0DC0BC !important; float: left;}
.form_vrv3{border:0 !important; width:1px !important; height:1px !important;padding: 0 0 0 0!important; background: #0DC0BC !important; float: left;}

/* Пульсирует ровно 5 секунд (2.5 цикла по 2 сек) и останавливается */
.pulse-5s {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) 2.5;
}

/* ТУМБЛЕР ПЕРЕКЛЮЧЕНИЯ ТЕМЫ */
.theme-toggle-switch {
  width: 48px;
  height: 26px;
  border-radius: 9999px;
  background-color: #cbd5e1;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  outline: none;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.dark .theme-toggle-switch {
  background-color: #334155;
  border-color: rgba(255, 255, 255, 0.15);
}
.theme-toggle-knob {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
  transform: translateX(0);
}
.dark .theme-toggle-knob {
  background-color: #0f172a;
  transform: translateX(22px);
}

/* ШАПКА: АДАПТИВНОСТЬ И СКУКОЖИВАНИЕ ПРИ СКРОЛЛЕ */
#mainHeader {
  transition: all 0.25s ease;
}
#mainHeader.is-scrolled {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.12);
}

/* Мобильный скролл */
#headerInner {
  min-height: 52px;
  transition: all 0.25s ease;
}
#mainHeader.is-scrolled #headerInner {
  min-height: 46px;
  padding-top: 3px;
  padding-bottom: 3px;
}
#mainHeader.is-scrolled #logoImg {
  width: 32px;
  height: 32px;
}
#mainHeader.is-scrolled #logoSubtitle {
  display: none;
}

/* ПК скролл (>= 1024px) */
@media (min-width: 1024px) {
  #headerInner {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  
  /* Скукоживание высоты при скролле */
  #mainHeader.is-scrolled #headerInner {
    min-height: 48px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  
  /* Верхнее горизонтальное меню убирается при скролле */
  #mainHeader.is-scrolled #navRow {
    display: none !important;
  }
  
  /* Вместо меню появляется компактная кнопка/иконка */
  #scrolledMenuBtn {
    display: none;
  }
  #mainHeader.is-scrolled #scrolledMenuBtn {
    display: inline-flex !important;
  }
  
  /* Скукоживание логотипа */
  #logoImg {
    width: 44px;
    height: 44px;
  }
  #mainHeader.is-scrolled #logoImg {
    width: 34px;
    height: 34px;
  }
  #mainHeader.is-scrolled #logoTitle {
    font-size: 15px;
  }
  #mainHeader.is-scrolled #logoSubtitle {
    display: none;
  }
  
  /* Скукоживание телефонов */
  .phone-link {
    font-size: 14px;
    line-height: 1.2;
  }
  #mainHeader.is-scrolled .phone-link {
    font-size: 12.5px;
  }
  
  /* Скукоживание кнопки записи */
  #headerCtaBtn {
    transition: all 0.25s ease;
  }
  #mainHeader.is-scrolled #headerCtaBtn {
    padding: 6px 14px;
    font-size: 11px;
    border-radius: 8px;
  }
}

/* Стили для CSS-спрайтов 32x32 */
.sprite-icon {
  width: 32px;
  height: 32px;
  display: block;
  background-repeat: no-repeat;
  background-position: 0 0;
}
.group:hover .sprite-icon {
  background-position: -32px 0;
}
.icon-house { background-image: url('/data/_uploaded/image/design/event/btn_img_32-house.png'); }
.icon-edu { background-image: url('/data/_uploaded/image/design/event/btn_img_32-education.png'); }
.icon-wiki { background-image: url('/data/_uploaded/image/design/event/btn_img_32-wikipedia.png'); }
.icon-test { background-image: url('/data/_uploaded/image/design/event/btn_img_32-check.png'); }
.icon-help { background-image: url('/data/_uploaded/image/design/event/btn_img_32-help.png'); }

/* Предупреждение о cookie */
.warning {
  position: fixed;
  bottom: 0;
  left: 0;
  display: none;
  justify-content: center;
  width: 100%;
  padding: 20px 10px 5px;
  box-sizing: border-box;
  background-color: #f2fbfe;
  z-index: 30;
  box-shadow: 0 0 15px 0 rgb(54 61 77 / 25%);
}
.warning--active { display: flex; }
.warning__text {
  margin-right: 30px;
  font-size: 17px;
  color: #000;
  text-shadow: none;
}
.warning__apply {
  background-color: #033748;
  border: 2px solid #033748;
  font-size: 16px;
  color: #fff;
  padding: 8px 20px;
  position: relative;
  float: right;
  height: auto;
  top: -8px;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
}
.warning__apply:hover { box-shadow: 1px 1px #8e8e8e; }
@media only screen and (max-width: 900px) {
  .warning__apply { padding: 2px 5px; height: 50px; top: 0; margin-right: 5px; }
  .warning__text { margin-left: 5px; font-size: 12px; line-height: 14px; }
}

/* Скрытие скроллбара для горизонтальных табов */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
