body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #0D0D0D;
    color: #ffffff;
    overflow-x: hidden;
}
main {
    padding-top: 80px;
}
.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}
.section-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 60px auto;
    text-align: center;
    line-height: 1.6;
}

/* === СТИЛИ ДЛЯ СТРАНИЦЫ КОНТАКТОВ === */
.contact-hero {
    position: relative;
    padding: 120px 5vw;
    background-color: #111;
    border-bottom: 1px solid #222;
    overflow: hidden;
}
.particle-canvas-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

.team-contact-section {
    padding: 100px 5vw;
    background-color: #0D0D0D;
}
.team-gallery-track {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}
.team-member-item {
    width: 400px;
    flex-shrink: 0;
    text-align: center;
}
.team-image-container {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background-color: #222;
    cursor: pointer;
}
.team-canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.team-info {
    margin-top: 20px;
}
.team-info h3 {
    font-size: 1.8rem;
    color: white;
    margin: 0 0 5px 0;
}
.team-info h5 {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
}
/* Адаптивность */
@media (max-width: 992px) {
    .team-gallery-track {
        flex-direction: column;
        gap: 50px;
    }
    .team-member-item {
        width: 100%;
        max-width: 400px;
    }
}
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 99999; 
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    min-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.toast-success {
    background: rgba(30, 130, 76, 0.8);
    backdrop-filter: blur(5px);
}
.toast-error {
    background: rgba(192, 57, 43, 0.8);
    backdrop-filter: blur(5px);
}
.toast i {
    font-size: 1.5rem;
}
.toast p {
    margin: 0;
    font-weight: 500;
}
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
}
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5vw;
    box-sizing: border-box;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}
.logo a {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
}
.logo span {
    display: inline-block;
    animation: neon-flicker 3s infinite;
    animation-delay: calc(var(--i) * 0.15s);
}
@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 0 0 4px #fff, 0 0 11px #FF6B00, 0 0 19px #FF6B00;
        color: #fff;
    }
    20%, 24%, 55% { text-shadow: none; color: #888; }
}
.main-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}
.main-nav a:hover {
    color: #FF6B00;
}
.dropdown > a i {
    font-size: 0.7em;
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.dropdown:hover > a i {
    transform: rotate(180deg);
}

/* Стили для "Мега-меню" */
.mega-menu {
    position: static; /* Важно для полноэкранного меню */
}
.mega-menu-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 5vw;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    gap: 40px;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}
.mega-menu:hover .mega-menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-menu-column {
    flex: 1;
    max-width: 350px;
}
.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}
.mega-menu-item:hover {
    background-color: rgba(255, 107, 0, 0.1);
}
.mega-menu-item i {
    font-size: 1.8rem;
    color: #FF6B00;
    margin-top: 5px;
}
.mega-menu-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px 0;
}
.mega-menu-text p {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0;
    line-height: 1.5;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Адаптивность хедера */
@media (max-width: 992px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-top: 1px solid #222;
        box-sizing: border-box; /* ИСПРАВЛЕНИЕ: Добавлено для корректного расчета ширины */
    }
    .main-nav.is-open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav li {
        width: 100%;
    }
    .main-nav a {
        display: flex;
        justify-content: space-between;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .mega-menu {
        position: relative;
    }
    /* Переделываем мега-меню в простой аккордеон */
    .mega-menu-content {
        position: static;
        display: block;
        flex-direction: column;
        background: none;
        backdrop-filter: none;
        border: none;
        padding: 0 0 0 20px;
        margin-top: 10px;
        gap: 0;
        
        /* Логика аккордеона */
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.5s ease-in-out;
    }
    .mega-menu:hover .mega-menu-content {
        /* Отключаем ховер на десктопе */
    }
    .dropdown.is-open .mega-menu-content {
        max-height: 500px; /* Максимальная высота для раскрытия */
    }
    .mega-menu-column {
        max-width: 100%;
    }
    .mega-menu-item {
        padding: 10px;
    }
    .dropdown.is-open > a i {
        transform: rotate(180deg);
    }
    .mobile-menu-toggle {
        display: block;
    }
}