/*:root {
    --color-primary-bg: #0f1929;
    --color-secondary-bg: #323a48;
    --color-tertiary-bg: #262e3a;
    --color-white: #f6f7f8;
    --color-gold: #c7ab6b;
    --color-gray: #8d97a6;
    --color-gray-dark: #7a848f;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-primary-bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
}
*/
.compass-container {
    position: relative;
    width: 480px;
    height: 480px;
}

/* Внешний круг */
.outer-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-primary-bg);
    border: 1px solid rgba(199, 171, 107, 0.2);
    box-shadow:
            inset 0 0 30px rgba(15, 25, 41, 0.8);
    overflow: hidden;
}

/* Активная зона во внешнем кольце */
.active-sector-zone {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%);
    transform-origin: 50% 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.active-sector-zone.active {
    opacity: 0.4;
    background: radial-gradient(
            circle at 70% 20%,
            rgba(199, 171, 107, 0.3) 0%,
            rgba(199, 171, 107, 0.1) 40%,
            transparent 70%
    );
}

/* Правильное позиционирование 8 секторов */
.active-sector-zone:nth-child(1) { transform: rotate(0deg); }
.active-sector-zone:nth-child(2) { transform: rotate(45deg); }
.active-sector-zone:nth-child(3) { transform: rotate(90deg); }
.active-sector-zone:nth-child(4) { transform: rotate(135deg); }
.active-sector-zone:nth-child(5) { transform: rotate(180deg); }
.active-sector-zone:nth-child(6) { transform: rotate(225deg); }
.active-sector-zone:nth-child(7) { transform: rotate(270deg); }
.active-sector-zone:nth-child(8) { transform: rotate(315deg); }

/* Внутренний круг */
.inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45%;
    height: 45%;
    border-radius: 50%;
    background: linear-gradient(135deg,
    var(--color-primary-bg) 0%,
    var(--color-tertiary-bg) 100%);
    border: 1px solid rgba(199, 171, 107, 0.1);
    box-shadow:
            inset 0 0 15px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

/* Секторы для кликов */
.sectors-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.sector {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%);
    transform-origin: 50% 50%;
    cursor: pointer;
}

/* Правильное позиционирование 8 секторов */
.sector:nth-child(1) { transform: rotate(0deg); }
.sector:nth-child(2) { transform: rotate(45deg); }
.sector:nth-child(3) { transform: rotate(90deg); }
.sector:nth-child(4) { transform: rotate(135deg); }
.sector:nth-child(5) { transform: rotate(180deg); }
.sector:nth-child(6) { transform: rotate(225deg); }
.sector:nth-child(7) { transform: rotate(270deg); }
.sector:nth-child(8) { transform: rotate(315deg); }

/* Эффект при наведении */
.sector:hover::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%);
    background: radial-gradient(
            circle at 70% 20%,
            rgba(199, 171, 107, 0.15) 0%,
            rgba(199, 171, 107, 0.05) 40%,
            transparent 70%
    );
    pointer-events: none;
}

/* Линии разделения по краям секторов */
.division-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.division-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 50%;
    background: linear-gradient(to bottom,
    transparent 0%,
    rgba(199, 171, 107, 0.15) 30%,
    rgba(199, 171, 107, 0.05) 70%,
    transparent 100%);
    transform-origin: 50% 100%;
    z-index: 3;
}

/* Линии по краям секторов (0°, 45°, 90°, и т.д.) */
.division-line:nth-child(1) { transform: rotate(0deg); }
.division-line:nth-child(2) { transform: rotate(45deg); }
.division-line:nth-child(3) { transform: rotate(90deg); }
.division-line:nth-child(4) { transform: rotate(135deg); }
.division-line:nth-child(5) { transform: rotate(180deg); }
.division-line:nth-child(6) { transform: rotate(225deg); }
.division-line:nth-child(7) { transform: rotate(270deg); }
.division-line:nth-child(8) { transform: rotate(315deg); }

/* Контейнер для названий секторов */
.labels-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sector-label {
    position: absolute;
    top: 50%;
    left: 50%;
    color: var(--color-gray);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    z-index: 4;
    background: rgba(15, 25, 41, 0.8);
    padding: 3px 6px;
    border-radius: 2px;
    transform-origin: center;
}

/* Позиционирование названий в центре каждого сектора */
.sector-label:nth-child(1) { /* Инвестиции - 22.5° */
    transform:
            translate(-50%, -50%)
            rotate(22.5deg)
            translateY(-170px)
            rotate(-22.5deg);
}
.sector-label:nth-child(2) { /* Рост - 67.5° */
    transform:
            translate(-50%, -50%)
            rotate(67.5deg)
            translateY(-170px)
            rotate(-67.5deg);
}
.sector-label:nth-child(3) { /* Технологии - 112.5° */
    transform:
            translate(-50%, -50%)
            rotate(112.5deg)
            translateY(-170px)
            rotate(-112.5deg);
}
.sector-label:nth-child(4) { /* Стратегия - 157.5° */
    transform:
            translate(-50%, -50%)
            rotate(157.5deg)
            translateY(-170px)
            rotate(-157.5deg);
}
.sector-label:nth-child(5) { /* Надежность - 202.5° */
    transform:
            translate(-50%, -50%)
            rotate(202.5deg)
            translateY(-170px)
            rotate(-202.5deg);
}
.sector-label:nth-child(6) { /* Опыт - 247.5° */
    transform:
            translate(-50%, -50%)
            rotate(247.5deg)
            translateY(-170px)
            rotate(-247.5deg);
}
.sector-label:nth-child(7) { /* Результаты - 292.5° */
    transform:
            translate(-50%, -50%)
            rotate(292.5deg)
            translateY(-170px)
            rotate(-292.5deg);
}
.sector-label:nth-child(8) { /* Инновации - 337.5° */
    transform:
            translate(-50%, -50%)
            rotate(337.5deg)
            translateY(-170px)
            rotate(-337.5deg);
}

/* Цвет активных меток - золотой */
.sector-label.active {
    color: var(--color-gold);
    opacity: 1;
    text-shadow: 0 0 6px rgba(199, 171, 107, 0.2);
    background: rgba(15, 25, 41, 0.9);
}

/* Центральный дисплей */
.center-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: linear-gradient(135deg,
    rgba(15, 25, 41, 0.95) 0%,
    rgba(38, 46, 58, 0.95) 100%);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(199, 171, 107, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px;
    text-align: center;
    z-index: 15;
    box-shadow:
            inset 0 0 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    cursor: pointer;
}

/* Текст в центре */
.info-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.info-content {
    font-size: 9px;
    color: var(--color-gray);
    line-height: 1.2;
    max-height: 32px;
    overflow: hidden;
    padding: 0 6px;
    font-weight: 300;
}

/* Буква в центре */
.center-letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    font-weight: 700;
    color: rgba(199, 171, 107, 0.08);
    z-index: 5;
    user-select: none;
    pointer-events: none;
}

/* Индикатор активного сектора (точка) */
.active-indicator {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}

.indicator-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--color-gold);
    border-radius: 50%;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 5px var(--color-gold);
}

/* Позиционирование индикаторов в центрах секторов */
.indicator-dot:nth-child(1) { transform: translateX(-50%) rotate(22.5deg); }
.indicator-dot:nth-child(2) { transform: translateX(-50%) rotate(67.5deg); }
.indicator-dot:nth-child(3) { transform: translateX(-50%) rotate(112.5deg); }
.indicator-dot:nth-child(4) { transform: translateX(-50%) rotate(157.5deg); }
.indicator-dot:nth-child(5) { transform: translateX(-50%) rotate(202.5deg); }
.indicator-dot:nth-child(6) { transform: translateX(-50%) rotate(247.5deg); }
.indicator-dot:nth-child(7) { transform: translateX(-50%) rotate(292.5deg); }
.indicator-dot:nth-child(8) { transform: translateX(-50%) rotate(337.5deg); }

.indicator-dot.active {
    opacity: 1;
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(199, 171, 107, 0.3),
        0 0 5px var(--color-gold);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(199, 171, 107, 0),
        0 0 8px var(--color-gold);
    }
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.compass-container {
    animation: fadeIn 1s ease-out;
}

/* Мобильная адаптивность (для экранов меньше 480px) */
@media (max-width: 520px) {
    .compass-container {
        width: 90vmin;
        height: 90vmin;
        max-width: 480px;
        max-height: 480px;
    }

    .sector-label {
        font-size: 10px;
        padding: 2px 5px;
        transform:
                translate(-50%, -50%)
                rotate(var(--rot))
                translateY(-42%)
                rotate(calc(-1 * var(--rot))) !important;
    }

    .info-title {
        font-size: 11px;
    }

    .info-content {
        font-size: 8px;
    }

    .center-letter {
        font-size: 40px;
    }
}

@media (max-width: 380px) {
    .compass-container {
        width: 85vmin;
        height: 85vmin;
    }

    .sector-label {
        font-size: 9px;
        padding: 2px 4px;
    }

    .info-title {
        font-size: 10px;
    }

    .info-content {
        font-size: 7px;
    }
}