/* ==========================================================================
   АНИМИРОВАННЫЙ КОМПАС - ПОЛНЫЙ CSS КОД
   ========================================================================== */

/* ==========================================================================
   CSS-ПЕРЕМЕННЫЕ ДЛЯ КОМПАСА
   ========================================================================== */

:root {
  /* Основные размеры */
  --compass-size: 450px;
  --compass-scale: 1;
  
  /* Кольца */
  --outer-ring-size: 410px;
  --outermost-ring-size: 460px;
  --inner-ring-size: 390px; 
  
  /* Буквы сторон света */
  --degree-radius: 250px;
  
  /* Деления */
  --tick-radius: 180px;
  
  /* Стрелка */
  --needle-length: 160px;
  --needle-width: 23px;
  
  /* Центр */
  --center-size: 75px;
  
  /* Точки */
  --point-radius: 150px;
  --point-icon-size: 65px;
  
  /* Расстояние от центра до точек */
  --point-distance: 130px;
  
  /* Базовая позиция точек */
  --point-base-angle: 45deg;
  
  /* Амплитуда анимации точек */
  --point-float-amplitude: 10px;
  
  /* Цвета */
  --compass-color-primary: #f39200;
  --compass-color-accent: #ff9100;
  --compass-color-light: #ffaa33;
  --compass-color-dark: #ff6f00;
  
  /* Дополнительные переменные */
  --gray-800: #444;
  --gray-900: #333;
  --radius-sm: 4px;
  --radius-full: 999px;
}

/* ==========================================================================
   СТИЛИ ГЕРОЙ-СЕКЦИИ
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 1000px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1f1914 0%, #332a20 100%);
  padding: var(--header-height, 80px) 0 50px;
  /* Добавляем гарантированный отступ сверху */
  padding-top: calc(var(--header-height) + 20px) !important;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Левая колонка с текстом */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0px;
  background: rgba(226, 126, 11, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(243, 146, 0, 0.3);
  padding: 10px 20px;
  border-radius: var(--radius-full, 999px);
  margin-bottom: 2rem;
  width: fit-content;
  color: #ff6f00;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
}

.title-line.gradient-text {
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin: 0.5rem 0;
  background: linear-gradient(90deg, #f39200 0%, #ffaa33 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  color: rgba(255, 248, 240, 0.9);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #f39200 0%, #ffaa33 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 204, 128, 0.9);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Правая колонка с компасом */
.hero-side-column {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

/* ==========================================================================
   ОСНОВНЫЕ СТИЛИ КОМПАСА
   ========================================================================== */

.hero-compass-wrapper {
  position: relative;
  z-index: 20;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-compass {
  position: relative;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  width: 100%;
  max-width: 550px;
}

/* Контейнер компаса */
.compass-container {
  position: relative;
  width: var(--compass-size);
  height: var(--compass-size);
  margin: 0 auto;
}

/* ==========================================================================
   КОЛЬЦА КОМПАСА
   ========================================================================== */

/* Общий стиль для колец */
.compass-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(243, 146, 0, 0.3);
}

/* Внешнее кольцо */
.outer-ring {
  width: var(--outer-ring-size);
  height: var(--outer-ring-size);
  background: rgba(243, 146, 0, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    inset 0 0 30px rgba(243, 146, 0, 0.1),
    0 0 40px rgba(243, 146, 0, 0.2);
  animation: ring-rotate 120s linear infinite;
  z-index: 2;
}

/* Внутреннее кольцо с делениями */
.inner-ring {
  width: var(--inner-ring-size);
  height: var(--inner-ring-size);
  background: rgba(243, 146, 0, 0.03);
  border: 1px solid rgba(243, 146, 0, 0.2);
  box-shadow: 
    inset 0 0 20px rgba(243, 146, 0, 0.1),
    0 0 20px rgba(243, 146, 0, 0.15);
  z-index: 1;
}

/* Самое внешнее кольцо */
.outermost-ring {
  width: var(--outermost-ring-size);
  height: var(--outermost-ring-size);
  background: rgba(243, 146, 0, 0.02);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 
    inset 0 0 40px rgba(243, 146, 0, 0.05),
    0 0 60px rgba(243, 146, 0, 0.1);
  animation: ring-rotate 120s linear infinite;
  z-index: 0;
}

/* Анимация вращения внешнего кольца */
@keyframes ring-rotate {
  0% { 
    transform: translate(-50%, -50%) rotate(20deg);
  }
  100% { 
    transform: translate(-50%, -50%) rotate(380deg);
  }
}

/* ==========================================================================
   ДЕЛЕНИЯ КОМПАСА
   ========================================================================== */

/* Контейнер для делений */
.compass-ticks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  /* УБРАЛИ АНИМАЦИЮ - деления статичны */
}

/* Стиль для каждого деления */
.compass-tick {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  background: rgba(243, 146, 0, 0.4);
  transform-origin: center center;
  pointer-events: none;
}

/* Высота обычных делений */
.compass-tick {
  height: 25px;
}

/* Более длинные деления каждые 30 градусов */
.compass-tick:nth-child(3n) {
  height: 35px;
  background: var(--compass-color-primary);
}

/* Позиционирование делений (12 штук, каждые 30 градусов) - ВЕРНУЛИ ОРИГИНАЛЬНЫЕ ПОВОРОТЫ */
.compass-tick:nth-child(1) { 
  transform: translate(-50%, -50%) rotate(30deg) translateY(calc(-1 * var(--tick-radius)));
}
.compass-tick:nth-child(2) { 
  transform: translate(-50%, -50%) rotate(60deg) translateY(calc(-1 * var(--tick-radius)));
}
.compass-tick:nth-child(3) { 
  transform: translate(-50%, -50%) rotate(90deg) translateY(calc(-1 * var(--tick-radius)));
}
.compass-tick:nth-child(4) { 
  transform: translate(-50%, -50%) rotate(120deg) translateY(calc(-1 * var(--tick-radius)));
}
.compass-tick:nth-child(5) { 
  transform: translate(-50%, -50%) rotate(150deg) translateY(calc(-1 * var(--tick-radius)));
}
.compass-tick:nth-child(6) { 
  transform: translate(-50%, -50%) rotate(180deg) translateY(calc(-1 * var(--tick-radius)));
}
.compass-tick:nth-child(7) { 
  transform: translate(-50%, -50%) rotate(210deg) translateY(calc(-1 * var(--tick-radius)));
}
.compass-tick:nth-child(8) { 
  transform: translate(-50%, -50%) rotate(240deg) translateY(calc(-1 * var(--tick-radius)));
}
.compass-tick:nth-child(9) { 
  transform: translate(-50%, -50%) rotate(270deg) translateY(calc(-1 * var(--tick-radius)));
}
.compass-tick:nth-child(10) { 
  transform: translate(-50%, -50%) rotate(300deg) translateY(calc(-1 * var(--tick-radius)));
}
.compass-tick:nth-child(11) { 
  transform: translate(-50%, -50%) rotate(330deg) translateY(calc(-1 * var(--tick-radius)));
}
.compass-tick:nth-child(12) { 
  transform: translate(-50%, -50%) rotate(0deg) translateY(calc(-1 * var(--tick-radius)));
}

/* ==========================================================================
   СТОРОНЫ СВЕТА
   ========================================================================== */

/* Контейнер для букв сторон света */
.compass-cardinals {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  transform-origin: 50% 50%;
  animation: cardinals-rotate 120s linear infinite;
}

@keyframes cardinals-rotate {
  from { transform: rotate(20deg); }
  to   { transform: rotate(380deg); }
}

/* Общий стиль для всех букв */
.compass-degree {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(243, 146, 0, 0.5);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 50%;
}

/* Север (N) */
.compass-degree:nth-child(1) {
  color: var(--compass-color-dark);
  transform: translate(-50%, -50%) rotate(0deg)
             translateY(calc(-1 * var(--degree-radius))) rotate(0deg);
}
/* Восток (E) */
.compass-degree:nth-child(2) {
  color: var(--compass-color-light);
  transform: translate(-50%, -50%) rotate(90deg)
             translateY(calc(-1 * var(--degree-radius))) rotate(-90deg);
}
/* Юг (S) */
.compass-degree:nth-child(3) {
  color: var(--compass-color-accent);
  transform: translate(-50%, -50%) rotate(180deg)
             translateY(calc(-1 * var(--degree-radius))) rotate(-180deg);
}
/* Запад (W) */
.compass-degree:nth-child(4) {
  color: var(--compass-color-primary);
  transform: translate(-50%, -50%) rotate(270deg)
             translateY(calc(-1 * var(--degree-radius))) rotate(-270deg);
}

/* ==========================================================================
   СТРЕЛКА КОМПАСА
   ========================================================================== */

.compass-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  animation: needle-rotate 20s ease-in-out infinite alternate;
  z-index: 5;
}

@keyframes needle-rotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  25% { transform: translate(-50%, -50%) rotate(15deg); }
  50% { transform: translate(-50%, -50%) rotate(0deg); }
  75% { transform: translate(-50%, -50%) rotate(-15deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}

.needle-north {
  position: absolute;
  top: calc(-1 * var(--needle-length));
  left: calc(-1 * var(--needle-width));
  width: 0;
  height: 0;
  border-left: var(--needle-width) solid transparent;
  border-right: var(--needle-width) solid transparent;
  border-bottom: var(--needle-length) solid var(--compass-color-dark);
  border-radius: 50% 50% 0 0;
  filter: drop-shadow(0 0 10px rgba(255, 111, 0, 0.5));
}

.needle-south {
  position: absolute;
  top: 0;
  left: calc(-1 * var(--needle-width));
  width: 0;
  height: 0;
  border-left: var(--needle-width) solid transparent;
  border-right: var(--needle-width) solid transparent;
  border-top: var(--needle-length) solid rgba(255, 145, 0, 0.7);
  border-radius: 0 0 50% 50%;
  filter: drop-shadow(0 0 10px rgba(255, 145, 0, 0.3));
}

/* ==========================================================================
   ЦЕНТР КОМПАСА
   ========================================================================== */

.compass-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--center-size);
  height: var(--center-size);
  background: linear-gradient(135deg, var(--compass-color-light), var(--compass-color-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gray-900, #333);
  border: 3px solid rgba(255, 255, 255, 0.3);
  z-index: 6;
  box-shadow: 
    0 0 30px rgba(243, 146, 0, 0.5),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  animation: center-pulse 2s ease-in-out infinite;
}

@keyframes center-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 
      0 0 30px rgba(243, 146, 0, 0.5),
      inset 0 0 20px rgba(255, 255, 255, 0.2);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 
      0 0 50px rgba(243, 146, 0, 0.7),
      inset 0 0 30px rgba(255, 255, 255, 0.3);
  }
}

.center-glow {
  position: absolute;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(243, 146, 0, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
  z-index: 5;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.2); }
}

/* ==========================================================================
   ТОЧКИ КОМПАСА
   ========================================================================== */

/* Контейнер точек */
.compass-points {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translateZ(0);
  z-index: 10;
}

/* Базовая структура точки */
.compass-point {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--point-icon-size);
  height: var(--point-icon-size);
  transform-origin: center center;
  pointer-events: auto;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}

/* Расчет позиции для 4 точек */
.compass-point:nth-child(1) {
  --point-angle: calc(var(--point-base-angle) + 0deg);
  --translate-distance: calc(-1 * var(--point-distance));
  transform: 
    translate(-50%, -50%)
    scale(0.1)
    rotate(var(--point-angle))
    rotate(calc(-1 * var(--point-angle)));
}

.compass-point:nth-child(2) {
  --point-angle: calc(var(--point-base-angle) + 90deg);
  --translate-distance: calc(-1 * var(--point-distance));
  transform: 
    translate(-50%, -50%)
    scale(0.1)
    rotate(var(--point-angle))
    rotate(calc(-1 * var(--point-angle)));
}

.compass-point:nth-child(3) {
  --point-angle: calc(var(--point-base-angle) + 180deg);
  --translate-distance: calc(-1 * var(--point-distance));
  transform: 
    translate(-50%, -50%)
    scale(0.1)
    rotate(var(--point-angle))
    rotate(calc(-1 * var(--point-angle)));
}

.compass-point:nth-child(4) {
  --point-angle: calc(var(--point-base-angle) + 270deg);
  --translate-distance: calc(-1 * var(--point-distance));
  transform: 
    translate(-50%, -50%)
    scale(0.1)
    rotate(var(--point-angle))
    rotate(calc(-1 * var(--point-angle)));
}

/* Анимация появления точек */
.compass-points.loaded .compass-point {
  opacity: 1;
  animation: 
    point-appear 0.8s ease-out forwards,
    point-float 4s ease-in-out 0.8s infinite;
}

.compass-points.loaded .compass-point:nth-child(2) { 
  animation: 
    point-appear 0.8s ease-out 0.1s forwards,
    point-float 4s ease-in-out 0.9s infinite; 
}

.compass-points.loaded .compass-point:nth-child(3) { 
  animation: 
    point-appear 0.8s ease-out 0.2s forwards,
    point-float 4s ease-in-out 1.0s infinite; 
}

.compass-points.loaded .compass-point:nth-child(4) { 
  animation: 
    point-appear 0.8s ease-out 0.3s forwards,
    point-float 4s ease-in-out 1.1s infinite; 
}

/* Ключевые кадры анимации */
@keyframes point-appear {
  0% {
    transform: 
      translate(-50%, -50%)
      scale(0.1)
      rotate(var(--point-angle))
      rotate(calc(-1 * var(--point-angle)));
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: 
      translate(-50%, -50%)
      rotate(var(--point-angle))
      translateY(var(--translate-distance))
      rotate(calc(-1 * var(--point-angle)));
    opacity: 1;
  }
}

@keyframes point-float {
  0%, 100% {
    transform: 
      translate(-50%, -50%)
      rotate(var(--point-angle))
      translateY(var(--translate-distance))
      rotate(calc(-1 * var(--point-angle)));
  }
  50% {
    transform: 
      translate(-50%, -50%)
      rotate(var(--point-angle))
      translateY(calc(var(--translate-distance) - var(--point-float-amplitude)))
      rotate(calc(-1 * var(--point-angle)));
  }
}

/* Стили иконки точки */
.point-icon {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--compass-color-primary), var(--compass-color-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 5px 15px rgba(243, 146, 0, 0.4),
    0 0 0 2px rgba(243, 146, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  transform: translateZ(0);
}

.point-icon:hover {
  transform: scale(1.2) rotate(10deg);
  box-shadow: 
    0 8px 25px rgba(243, 146, 0, 0.6),
    0 0 0 4px rgba(243, 146, 0, 0.2);
}

/* ВЕРНУЛИ ПОДПИСИ К ТОЧКАМ */
.point-label {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  white-space: nowrap;
  color: var(--gray-800, #444);
  font-weight: 600;
  font-size: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 6px 12px;
  background: rgba(255, 248, 240, 0.95);
  border-radius: var(--radius-sm, 4px);
  border: 1px solid rgba(243, 146, 0, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 100;
}

.compass-point:hover .point-label {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

/* ==========================================================================
   ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ
   ========================================================================== */

/* Подсказка компаса */
.compass-hint-wrapper {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.compass-hint {
  padding: 14px 28px;
  background: rgba(243, 146, 0, 0.15);
  border: 1px solid rgba(243, 146, 0, 0.4);
  border-radius: var(--radius-full, 999px);
  backdrop-filter: blur(12px);
  color: #ffcc80;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  animation: hint-pulse 3s ease-in-out infinite;
  text-align: center;
  width: auto;
  display: inline-block;
}

@keyframes hint-pulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(243, 146, 0, 0.2);
  }
  50% {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(243, 146, 0, 0.4);
  }
}

/* Скролл индикатор */
.hero-scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 204, 128, 0.9);
  animation: bounce 2s infinite;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(243, 146, 0, 0.5);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--compass-color-primary);
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* ==========================================================================
   АДАПТИВНОСТЬ КОМПАСА И ТОЧЕК
   ========================================================================== */

/* Большие экраны (1400px и больше) */
@media (max-width: 1400px) {
  :root {
    --compass-size: 420px;
    --outer-ring-size: 400px;
    --outermost-ring-size: 440px;
    --inner-ring-size: 360px;
    --degree-radius: 230px;
    --tick-radius: 180px;
    --needle-length: 140px;
    --center-size: 68px;
    --point-distance: 120px;
    --point-icon-size: 58px;
    --point-float-amplitude: 9px;
  }
  
  .compass-degree {
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
  }

  
  .point-icon {
    font-size: 1.2rem;
  }
  
  .compass-tick {
    height: 22px;
  }
  
  .compass-tick:nth-child(3n) {
    height: 32px;
  }
  
  .point-label {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
}

/* Средние экраны (1200px - 1399px) */
@media (max-width: 1200px) {
  :root {
    --compass-size: 380px;
    --outer-ring-size: 360px;
    --outermost-ring-size: 390px;
    --inner-ring-size: 320px;
    --degree-radius: 210px;
    --tick-radius: 160px;
    --needle-length: 140px;
    --needle-width: 18px;
    --center-size: 55px;
    --point-distance: 110px;
    --point-icon-size: 48px;
    --point-float-amplitude: 8px;
  }
  
  .compass-degree {
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
  }
  
  .compass-degree:nth-child(3) { 
    transform: 
      translate(-50%, -50%) 
      rotate(180deg) 
      translateY(calc(-1 * var(--degree-radius) + 3px)) 
      rotate(-180deg);
  }
  
  .point-icon {
    font-size: 1.1rem;
  }
  
  .compass-tick {
    height: 20px;
  }
  
  .compass-tick:nth-child(3n) {
    height: 30px;
  }
  
  .point-label {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  
  .hero-section .container {
    gap: 50px;
  }
}

/* Планшеты (1024px - 1199px) */
@media (max-width: 1024px) {
  :root {
    --compass-size: 350px;
    --outer-ring-size: 330px;
    --outermost-ring-size: 360px;
    --inner-ring-size: 290px;
    --degree-radius: 190px;
    --tick-radius: 145px;
    --needle-length: 120px;
    --needle-width: 11px;
    --center-size: 50px;
    --point-distance: 100px;
    --point-icon-size: 45px;
    --point-float-amplitude: 7px;
  }
  
  .compass-degree {
    font-size: 1rem;
    width: 30px;
    height: 30px;
  }
  
  .compass-center {
    font-size: 1.7rem;
  }
  
  .compass-tick {
    height: 18px;
  }
  
  .compass-tick:nth-child(3n) {
    height: 25px;
  }
  
  .point-icon {
    font-size: 1rem;
  }
  
  .point-label {
    font-size: 0.7rem;
    padding: 3px 6px;
    bottom: calc(100% + 8px);
  }
  
  .hero-section .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-badge,
  .hero-description,
  .hero-buttons,
  .hero-stats {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

/* Маленькие планшеты (768px - 1023px) */
@media (max-width: 768px) {
  :root {
    --compass-size: 300px;
    --outer-ring-size: 280px;
    --outermost-ring-size: 310px;
    --inner-ring-size: 250px;
    --degree-radius: 165px;
    --tick-radius: 125px;
    --needle-length: 105px;
    --needle-width: 8px;
    --center-size: 45px;
    --point-distance: 85px;
    --point-icon-size: 40px;
    --point-base-angle: 45deg;
    --point-float-amplitude: 6px;
  }


 .hero-section {
        padding-top: calc(70px + 20px) !important;
 }

  
  .compass-degree {
    font-size: 0.9rem;
    width: 28px;
    height: 28px;
  }
  
  .compass-center {
    font-size: 1.5rem;
  }
  
  .compass-tick {
    height: 16px;
  }
  
  .compass-tick:nth-child(3n) {
    height: 22px;
  }
  
  .point-icon {
    font-size: 0.95rem;
  }
  
  .point-label {
    display: none; /* На мобильных скрываем подписи */
  }
  
  .hero-section {
    padding-top: calc(var(--header-height) + 20px);
    min-height: auto;
  }
  
  .hero-stats {
    gap: 2rem;
  }
}

/* Мобильные (576px - 767px) */
@media (max-width: 576px) {
  :root {
    --compass-size: 260px;
    --outer-ring-size: 240px;
    --outermost-ring-size: 260px;
    --inner-ring-size: 210px;
    --degree-radius: 140px;
    --tick-radius: 105px;
    --needle-length: 90px;
    --needle-width: 7px;
    --center-size: 40px;
    --point-distance: 75px;
    --point-icon-size: 38px;
    --point-base-angle: 45deg;
    --point-float-amplitude: 5px;
  }
  
  .compass-degree {
    font-size: 0.8rem;
    width: 25px;
    height: 25px;
  }
  
  .compass-center {
    font-size: 1.3rem;
  }
  
  .compass-tick {
    height: 14px;
  }
  
  .compass-tick:nth-child(3n) {
    height: 20px;
  }
  
  .point-icon {
    font-size: 0.9rem;
  }
  
  .compass-hint {
    font-size: 0.85rem;
    padding: 12px 20px;
  }
}

/* Очень маленькие экраны (до 400px) */
@media (max-width: 400px) {
  :root {
    --compass-size: 220px;
    --outer-ring-size: 200px;
    --outermost-ring-size: 220px;
    --inner-ring-size: 175px;
    --degree-radius: 120px;
    --tick-radius: 90px;
    --needle-length: 75px;
    --needle-width: 6px;
    --center-size: 35px;
    --point-distance: 65px;
    --point-icon-size: 35px;
    --point-float-amplitude: 4px;
  }
  
  .compass-points {
    display: none;
  }
  
  .compass-degree {
    font-size: 0.7rem;
    width: 22px;
    height: 22px;
  }
  
  .compass-center {
    font-size: 1.1rem;
  }
  
  .compass-tick {
    height: 12px;
  }
  
  .compass-tick:nth-child(3n) {
    height: 18px;
  }
  
  .point-icon {
    font-size: 0.8rem;
  }
}

/* Отключение анимаций для пользователей с настройкой */
@media (prefers-reduced-motion: reduce) {
  .compass-point,
  .compass-points.loaded .compass-point,
  .compass-hint,
  .center-glow,
  .compass-center,
  .compass-needle,
  .outer-ring,
  .compass-cardinals,
  .compass-ticks {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   ДОПОЛНИТЕЛЬНАЯ АДАПТИВНОСТЬ ДЛЯ ВСЕЙ СЕКЦИИ
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-section .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  .hero-content {
    align-items: center;
    padding-top: 20px;
  }
  
  .hero-badge {
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
  }
  
  .hero-buttons {
    justify-content: center;
    margin-top: 10px;
  }
  
  .hero-stats {
    justify-content: center;
    margin-top: 20px;
  }
  
  .hero-compass {
    margin: 0 auto;
    margin-bottom: 40px;
  }

  .hero-scroll-indicator {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: calc(70px + 20px);
    min-height: auto;
  }
  
  .hero-section .container {
    gap: 30px;
  }
  
  .hero-content {
    padding-top: 0px;
  }
  
  .hero-badge {
    margin-top: 0;
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .hero-description {
    margin-top: 10px;
    font-size: 1rem;
  }
  
  .hero-buttons {
    margin-top: 0px;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .hero-stats {
    margin-top: 20px;
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .hero-compass {
    margin-bottom: 20px;
  }
  
  .compass-hint {
    font-size: 0.85rem;
    padding: 10px 18px;
  }
  
  .hero-scroll-indicator {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: calc(70px + 15px);
    padding-bottom: 30px;
  }
  
  .hero-section .container {
    gap: 25px;
  }
  
  .hero-title .title-line {
    font-size: 2rem;
  }
  
  .hero-title .title-line.gradient-text {
    font-size: 2.2rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
}