/* Стили для секции организаций */
#organizations {
    background: transparent !important;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

#organizations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Основной контейнер */
.org-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Галактика с орбитами */
.org-galaxy {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    z-index: 10;
}

/* Центральная сцена */
.org-center-stage {
    position: relative;
    z-index: 15;
}

.org-main-image {
    position: relative;
    width: 280px;
    height: 350px;
    border-radius: 20px;
    overflow: visible;
    transform-style: preserve-3d;
    perspective: 1000px;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.org-hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 15px;
}

.org-hero-image.active {
    opacity: 1;
    transform: scale(1);
}

.org-image-clean {
    width: 85%;
    height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
    position: relative;
    z-index: 5;
}

/* Динамическое свечение фона для изображений */
.org-hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: var(--org-color, #ffa500);
    border-radius: 25px;
    filter: blur(35px);
    opacity: 0.25;
    z-index: 1;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.org-hero-image.active::before {
    opacity: 0.35;
    filter: blur(45px);
}

.org-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    /*background: conic-gradient(
        from 0deg at 50% 50%,
        var(--org-color, #ffa500),
        #ffffff,
        var(--org-color, #ffa500)
    );*/
    border-radius: 30px;
    filter: blur(30px);
    opacity: 0.2;
    z-index: 0;
    animation: rotateGlow 8s linear infinite;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Орбита */
.org-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 550px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: rotateOrbit 120s linear infinite;
    z-index: 20;
}

.org-orbital-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    z-index: 25;
}

/* Орбитальные кнопки */
.org-orbital-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
    z-index: 30;
}

.org-orbital-btn:hover {
    transform: scale(1.2);
}

.org-orbital-btn.active {
    transform: scale(1.6);
    z-index: 35;
}

.org-btn-frame {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.org-btn-icon {
    width: 65%;
    height: 65%;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.9) saturate(0.9);
}

.org-orbital-btn:not(.active) .org-btn-icon {
    filter: brightness(0.7) saturate(0.7) grayscale(0.2);
}

.org-orbital-btn.active .org-btn-icon {
    filter: brightness(1.3) saturate(1.3) drop-shadow(0 0 12px var(--org-color, #ffa500));
}

/* Цветной фильтр для иконок */
.org-orbital-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--org-color, #ffa500);
    border-radius: 50%;
    mix-blend-mode: overlay;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.org-orbital-btn.active::after {
    opacity: 0.4;
}

.org-btn-glow {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: var(--org-color, #ffa500);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.org-orbital-btn.active .org-btn-glow {
    opacity: 0.6;
}

/* Позиционирование орбитальных элементов */
.org-orbital-item[data-angle="0"] { transform: translate(-50%, -50%) rotate(0deg) translate(275px) rotate(-0deg); }
.org-orbital-item[data-angle="60"] { transform: translate(-50%, -50%) rotate(60deg) translate(275px) rotate(-60deg); }
.org-orbital-item[data-angle="120"] { transform: translate(-50%, -50%) rotate(120deg) translate(275px) rotate(-120deg); }
.org-orbital-item[data-angle="180"] { transform: translate(-50%, -50%) rotate(180deg) translate(275px) rotate(-180deg); }
.org-orbital-item[data-angle="240"] { transform: translate(-50%, -50%) rotate(240deg) translate(275px) rotate(-240deg); }
.org-orbital-item[data-angle="300"] { transform: translate(-50%, -50%) rotate(300deg) translate(275px) rotate(-300deg); }

@keyframes rotateOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Декоративные частицы с цветом организации */
.org-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.particle {
    position: absolute;
    background: var(--org-color, #ffa500);
    border-radius: 50%;
    animation: floatParticle 20s infinite linear;
    opacity: 0;
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 3px;
    height: 3px;
    top: 60%;
    left: 70%;
    animation-delay: -3s;
}

.particle:nth-child(3) {
    width: 5px;
    height: 5px;
    top: 40%;
    left: 10%;
    animation-delay: -7s;
}

.particle:nth-child(4) {
    width: 2px;
    height: 2px;
    top: 80%;
    left: 40%;
    animation-delay: -12s;
}

.particle:nth-child(5) {
    width: 4px;
    height: 4px;
    top: 10%;
    left: 80%;
    animation-delay: -5s;
}

.particle:nth-child(6) {
    width: 3px;
    height: 3px;
    top: 70%;
    left: 20%;
    animation-delay: -9s;
}

@keyframes floatParticle {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translate(200px, -200px) rotate(360deg);
        opacity: 0;
    }
}

/* Контент организаций */
.org-content-wrapper {
    position: relative;
    z-index: 2;
}

.org-content {
    display: none;
    animation: slideInContent 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.org-content.active {
    display: block;
}

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

.org-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.org-badge {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--org-color, #ffa500), rgba(255, 255, 255, 0.1));
}

.org-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    filter: blur(10px);
    opacity: 0.6;
    z-index: -1;
}

.org-title {
    flex: 1;
}

.org-title-prefix {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.org-title-main {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    display: block;
    background: linear-gradient(135deg, var(--org-color, #ffa500), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.org-description {
    font-size: 1.3rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    font-weight: 300;
}

.org-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.org-feature-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.org-feature-card:hover {
    transform: translateX(10px);
    border-color: var(--org-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--org-color, #ffa500), rgba(255, 255, 255, 0.15));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.org-feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--org-color), var(--org-color));
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .org-hero {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .org-orbit {
        width: 500px;
        height: 500px;
    }
    
    .org-orbital-item[data-angle="0"] { transform: translate(-50%, -50%) rotate(0deg) translate(250px) rotate(-0deg); }
    .org-orbital-item[data-angle="60"] { transform: translate(-50%, -50%) rotate(60deg) translate(250px) rotate(-60deg); }
    .org-orbital-item[data-angle="120"] { transform: translate(-50%, -50%) rotate(120deg) translate(250px) rotate(-120deg); }
    .org-orbital-item[data-angle="180"] { transform: translate(-50%, -50%) rotate(180deg) translate(250px) rotate(-180deg); }
    .org-orbital-item[data-angle="240"] { transform: translate(-50%, -50%) rotate(240deg) translate(250px) rotate(-240deg); }
    .org-orbital-item[data-angle="300"] { transform: translate(-50%, -50%) rotate(300deg) translate(250px) rotate(-300deg); }
}

@media (max-width: 768px) {
    .org-galaxy {
        min-height: 500px;
    }
    
    .org-main-image {
        width: 240px;
        height: 300px;
    }
    
    .org-orbit {
        width: 420px;
        height: 420px;
    }
    
    .org-orbital-item[data-angle="0"] { transform: translate(-50%, -50%) rotate(0deg) translate(210px) rotate(-0deg); }
    .org-orbital-item[data-angle="60"] { transform: translate(-50%, -50%) rotate(60deg) translate(210px) rotate(-60deg); }
    .org-orbital-item[data-angle="120"] { transform: translate(-50%, -50%) rotate(120deg) translate(210px) rotate(-120deg); }
    .org-orbital-item[data-angle="180"] { transform: translate(-50%, -50%) rotate(180deg) translate(210px) rotate(-180deg); }
    .org-orbital-item[data-angle="240"] { transform: translate(-50%, -50%) rotate(240deg) translate(210px) rotate(-240deg); }
    .org-orbital-item[data-angle="300"] { transform: translate(-50%, -50%) rotate(300deg) translate(210px) rotate(-300deg); }
    
    .org-btn-frame {
        width: 60px;
        height: 60px;
    }
    
    .org-title-main {
        font-size: 2.5rem;
    }
    
    .org-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .org-main-image {
        width: 200px;
        height: 250px;
    }
    
    .org-orbit {
        width: 350px;
        height: 350px;
    }
    
    .org-orbital-item[data-angle="0"] { transform: translate(-50%, -50%) rotate(0deg) translate(175px) rotate(-0deg); }
    .org-orbital-item[data-angle="60"] { transform: translate(-50%, -50%) rotate(60deg) translate(175px) rotate(-60deg); }
    .org-orbital-item[data-angle="120"] { transform: translate(-50%, -50%) rotate(120deg) translate(175px) rotate(-120deg); }
    .org-orbital-item[data-angle="180"] { transform: translate(-50%, -50%) rotate(180deg) translate(175px) rotate(-180deg); }
    .org-orbital-item[data-angle="240"] { transform: translate(-50%, -50%) rotate(240deg) translate(175px) rotate(-240deg); }
    .org-orbital-item[data-angle="300"] { transform: translate(-50%, -50%) rotate(300deg) translate(175px) rotate(-300deg); }
    
    .org-btn-frame {
        width: 50px;
        height: 50px;
    }
    
    .org-badge {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .org-title-main {
        font-size: 2rem;
    }
    
    .org-title-prefix {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}