/* Прелоадер */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
/* Анимация загрузки */
.loader {
    position: relative;
    width: 150px;
    height: 150px;
}
.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loader-circle:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #7b2cbf;
    animation: spin 1.5s linear infinite reverse;
}
.loader-circle:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #ff006e;
    animation: spin 2s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
/* Прогресс бар */
.progress-bar {
    position: absolute;
    bottom: 20%;
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
    animation: progress 2s ease-in-out forwards;
}
@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Cuprum', sans-serif;
    overflow-x: hidden;
    background: #000;
    color: #fff;
}
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
#ui-layer {
    position: relative;
    z-index: 10;
    pointer-events: none;
}
#ui-layer > * {
    pointer-events: auto;
}
/* Header 3D */
.header-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    z-index: 100;
    backdrop-filter: blur(10px);
}
.logo-3d {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-3d img {
    height: 50px;
    filter: drop-shadow(0 0 10px #007cba);
    transition: transform 0.3s;
}
.logo-3d img:hover {
    transform: scale(1.1) rotate(5deg);
}
.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: #007cba;
    text-transform: uppercase;
    text-shadow: 0 0 20px #007cba;
}
.nav-3d {
    display: flex;
    gap: 30px;
}
.nav-3d a {
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 1px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.nav-3d a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,124,186,0.3), transparent);
    transition: left 0.5s;
}
.nav-3d a:hover::before {
    left: 100%;
}
.nav-3d a:hover {
    color: #007cba;
    border-color: #007cba;
    box-shadow: 0 0 20px rgba(0,124,186,0.5);
}
.contact-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00d084;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    border: 1px solid #00d084;
    border-radius: 30px;
    transition: all 0.3s;
}
.contact-phone:hover {
    background: #00d084;
    color: #000;
    box-shadow: 0 0 30px #00d084;
}

/*HEADER*/


/* ===== Header Base ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 198, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 26, 0.98);
    box-shadow: 0 4px 30px rgba(0, 198, 255, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* ===== Logo ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) translateZ(10px);
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 198, 255, 0.5));
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 198, 255, 0.3);
}

/* ===== Desktop Navigation ===== */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link:hover {
    color: #00c6ff;
    text-shadow: 0 0 15px rgba(0, 198, 255, 0.5);
    transform: translateY(-2px);
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
}

.nav-phone svg {
    width: 18px;
    height: 18px;
}

.nav-phone:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.5);
}

/* ===== Burger Button ===== */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    transition: transform 0.3s ease;
}

.burger-btn:hover {
    transform: scale(1.1);
}

.burger-btn:active {
    transform: scale(0.95);
}

.burger-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
    transform-origin: center;
}

/* Burger Animation - Open State */
.burger-btn.active .burger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
    background: linear-gradient(90deg, #00c6ff, #6610f2);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
    background: linear-gradient(90deg, #00c6ff, #6610f2);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.98) 0%, rgba(16, 20, 40, 0.98) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    border-left: 1px solid rgba(0, 198, 255, 0.2);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-inner {
    padding: 80px 30px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Mobile Nav Links */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    color: #fff;
    text-decoration: none;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00c6ff, #0072ff);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.mobile-nav-link:hover::before {
    transform: scaleY(1);
}

.mobile-nav-link:hover {
    background: linear-gradient(145deg, rgba(0, 198, 255, 0.15) 0%, rgba(0, 114, 255, 0.1) 100%);
    border-color: rgba(0, 198, 255, 0.3);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 198, 255, 0.2);
}

.mobile-nav-link:active {
    transform: translateX(10px) scale(0.98);
}

.link-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
}

.link-text {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
}

.link-arrow {
    font-size: 20px;
    color: #00c6ff;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-nav-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Phone Button */
.mobile-phone {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    border: none;
    margin-top: 10px;
    justify-content: center;
}

.mobile-phone:hover {
    transform: translateX(0) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.4);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.social-link:hover {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 198, 255, 0.4);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    text-align: center;
}

/* ===== Overlay ===== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Link Animation Stagger ===== */
.mobile-nav-link {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s ease;
}

.mobile-menu.active .mobile-nav-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-link:nth-child(4) { transition-delay: 0.4s; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .nav-desktop {
        display: none;
    }

    .burger-btn {
        display: flex;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 12px 15px;
    }

    .logo-img {
        width: 38px;
        height: 38px;
    }

    .logo-text {
        font-size: 20px;
    }

    .mobile-menu {
        max-width: 100%;
    }

    .mobile-menu-inner {
        padding: 70px 20px 20px;
    }

    .mobile-nav-link {
        padding: 15px 16px;
    }

    .link-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .link-text {
        font-size: 16px;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    .burger-line,
    .mobile-menu,
    .mobile-nav-link,
    .menu-overlay,
    .nav-link,
    .nav-phone,
    .logo {
        transition: none;
    }

    .mobile-nav-link {
        opacity: 1;
        transform: none;
    }
}

/* ===== Focus States ===== */
.burger-btn:focus,
.nav-link:focus,
.nav-phone:focus,
.mobile-nav-link:focus,
.social-link:focus {
    outline: 2px solid #00c6ff;
    outline-offset: 3px;
}



/* Hero Section 3D */
.hero-3d {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
}
.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards 0.5s;
    text-shadow: 0 0 30px #007cba;
}
.hero-subtitle {
    font-size: 1.5rem;
    color: #00d084;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards 1s;
}
.hero-cta {
    padding: 15px 50px;
    background: transparent;
    border: 2px solid #007cba;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards 1.5s;
    border-radius: 5px;
}
.hero-cta:hover {
    background: #007cba;
    box-shadow: 0 0 40px #007cba;
    transform: scale(1.05);
}
/* Services 3D Cubes Section */
.services-3d {
    padding: 100px 50px;
    position: relative;
    min-height: 100vh;
}
.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: #007cba;
    text-shadow: 0 0 20px #007cba;
}
.cubes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1000px;
}
.cube-wrapper {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: grab;
}
.cube-wrapper:active {
    cursor: grabbing;
}
.cube-wrapper:hover {
    transform: scale(1.05);
}
.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeFloat 3s ease-in-out infinite;
    transition: transform 0.1s ease-out;
}
@keyframes cubeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.cube-face {
    position: absolute;
    width: 280px;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 124, 186, 0.15);
    border: 2px solid rgba(0, 124, 186, 0.5);
    backdrop-filter: blur(10px);
    padding: 20px;
    transition: all 0.5s;
    backface-visibility: visible;
}
.cube-face:hover {
    background: rgba(0, 124, 186, 0.3);
    border-color: #007cba;
    box-shadow: 0 0 40px rgba(0, 124, 186, 0.5);
}
.cube-front  { transform: rotateY(0deg) translateZ(140px); }
.cube-back   { transform: rotateY(180deg) translateZ(140px); }
.cube-right  { transform: rotateY(90deg) translateZ(140px); }
.cube-left   { transform: rotateY(-90deg) translateZ(140px); }
.cube-top    { transform: rotateX(90deg) translateZ(140px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(140px); }
.cube-icon {
    font-size: 4rem;
    color: #007cba;
    margin-bottom: 20px;
    transition: all 0.3s;
    text-shadow: 0 0 20px #007cba;
}
.cube-wrapper:hover .cube-icon {
    color: #00d084;
    transform: scale(1.2);
    text-shadow: 0 0 30px #00d084;
}
.cube-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.cube-description {
    color: #aaa;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
}
.cube-btn {
    margin-top: 15px;
    padding: 8px 25px;
    border: 1px solid #007cba;
    color: #007cba;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.cube-btn:hover {
    background: #007cba;
    color: #fff;
    box-shadow: 0 0 20px #007cba;
}
/* About Section 3D */
.about-3d {
    padding: 100px 50px;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
}
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: #007cba;
    margin-bottom: 30px;
}
.about-text p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #007cba;
    box-shadow: 0 0 40px rgba(0, 124, 186, 0.3);
}
.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}
.about-image:hover img {
    transform: scale(1.1);
}
/* NEW: Portfolio 3D Section */
.portfolio-3d {
    padding: 100px 50px;
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,124,186,0.1) 100%);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1500px;
}
.portfolio-card {
    position: relative;
    height: 300px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    cursor: pointer;
}
.portfolio-card:hover {
    transform: rotateY(180deg);
}
.portfolio-card-front,
.portfolio-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(0, 124, 186, 0.5);
}
.portfolio-card-front {
    background: linear-gradient(135deg, rgba(0,124,186,0.2) 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.portfolio-card-back {
    background: linear-gradient(135deg, rgba(0,208,132,0.2) 0%, rgba(0,0,0,0.8) 100%);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}
.portfolio-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}
.portfolio-card h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #007cba;
    margin-bottom: 10px;
}
.portfolio-card p {
    color: #ccc;
    text-align: center;
    line-height: 1.6;
}
.portfolio-tech {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.tech-badge {
    padding: 5px 15px;
    background: rgba(0, 124, 186, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #00d084;
}
/* NEW: Team 3D Section */
.team-3d {
    padding: 100px 50px;
    position: relative;
    min-height: 100vh;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}
.team-member {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}
.team-member:hover {
    transform: translateY(-10px) rotateY(10deg);
}
.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #007cba;
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 124, 186, 0.5);
}
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-member h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    color: #007cba;
    text-align: center;
    margin-bottom: 5px;
}
.team-member .position {
    color: #00d084;
    text-align: center;
    margin-bottom: 15px;
}
.team-member .bio {
    color: #aaa;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
}
.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.team-social a {
    width: 40px;
    height: 40px;
    border: 1px solid #007cba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007cba;
    transition: all 0.3s;
}
.team-social a:hover {
    background: #007cba;
    color: #fff;
    box-shadow: 0 0 20px #007cba;
}



/* ========== STATS SECTION - 3D CAROUSEL ========== */
.stats-section {
    padding: 120px 20px;
    background:
            radial-gradient(ellipse at top, #0a0a1a 0%, #050510 50%, #000 100%),
            url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    position: relative;
    overflow: hidden;
    perspective: 2000px;
}

/* Фоновые неоновые волны */
.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
            radial-gradient(circle at 20% 30%, rgba(0, 124, 186, 0.12) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(0, 208, 132, 0.1) 0%, transparent 40%),
            radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.06) 0%, transparent 50%);
    animation: statsBgPulse 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes statsBgPulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(3%, -3%) scale(1.05); }
    66% { transform: translate(-2%, 4%) scale(0.98); }
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ========== ЗАГОЛОВОК ========== */
.stats-title {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.title-text {
    color: #fff;
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: 'Oswald', sans-serif;
    text-shadow:
            0 0 10px rgba(0, 124, 186, 0.8),
            0 0 30px rgba(0, 124, 186, 0.4);
    display: inline-block;
    position: relative;
}

.title-line {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00d084, transparent);
    margin: 15px auto 0;
    box-shadow: 0 0 20px rgba(0, 208, 132, 0.6);
    position: relative;
    overflow: hidden;
}

.title-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: lineShine 3s ease-in-out infinite;
}

@keyframes lineShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.stats-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
    font-family: 'Cuprum', sans-serif;
}

/* ========== CAROUSEL CONTROLS ========== */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 124, 186, 0.3), rgba(0, 208, 132, 0.3));
    border: 2px solid rgba(0, 208, 132, 0.5);
    color: #00d084;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: linear-gradient(135deg, rgba(0, 124, 186, 0.6), rgba(0, 208, 132, 0.6));
    border-color: #00d084;
    box-shadow: 0 0 30px rgba(0, 208, 132, 0.6);
    transform: scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(0, 208, 132, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #00d084;
    border-color: #00d084;
    box-shadow: 0 0 15px rgba(0, 208, 132, 0.8);
    transform: scale(1.3);
}

.indicator:hover {
    background: rgba(0, 208, 132, 0.6);
    transform: scale(1.2);
}

/* ========== CAROUSEL TRACK ========== */
.carousel-track-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    perspective: 1500px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

/* ========== STAT CARD - CAROUSEL ITEM ========== */
.stat-card {
    position: absolute;
    width: 320px;
    height: 380px;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}

.stat-card.active {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0) translateZ(0) scale(1) rotateY(0deg);
    z-index: 10;
}

.stat-card.prev {
    opacity: 0.6;
    transform: translateX(-150%) translateZ(-300px) scale(0.7) rotateY(30deg);
    z-index: 5;
    filter: blur(3px);
}

.stat-card.next {
    opacity: 0.6;
    transform: translateX(150%) translateZ(-300px) scale(0.7) rotateY(-30deg);
    z-index: 5;
    filter: blur(3px);
}

.stat-card.far-prev {
    opacity: 0.3;
    transform: translateX(-250%) translateZ(-600px) scale(0.5) rotateY(45deg);
    z-index: 3;
    filter: blur(5px);
}

.stat-card.far-next {
    opacity: 0.3;
    transform: translateX(250%) translateZ(-600px) scale(0.5) rotateY(-45deg);
    z-index: 3;
    filter: blur(5px);
}

/* ========== 3D CARD STYLES ========== */
.stat-card-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: statFloat 6s ease-in-out infinite;
}

@keyframes statFloat {
    0%, 100% { transform: rotateX(5deg) rotateY(-5deg) translateY(0); }
    50% { transform: rotateX(-5deg) rotateY(5deg) translateY(-15px); }
}

.stat-card.active .stat-card-3d {
    animation-play-state: running;
}

.stat-card:not(.active) .stat-card-3d {
    animation-play-state: paused;
}

/* ========== FRONT FACE ========== */
.stat-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transform: translateZ(20px);
    overflow: hidden;
}

/* Неоновая рамка */
.stat-card-front::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    padding: 2px;
    background: linear-gradient(135deg,
    rgba(0, 124, 186, 0.6),
    rgba(0, 208, 132, 0.4),
    rgba(102, 126, 234, 0.6));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    animation: borderGlow 4s ease-in-out infinite;
}

.stat-card.active:hover .stat-card-front::before {
    opacity: 1;
}

@keyframes borderGlow {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(25deg); }
}

/* Эффект блика */
.stat-card-front::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 55%);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s;
    pointer-events: none;
}

.stat-card.active:hover .stat-card-front::after {
    transform: translateX(100%) rotate(45deg);
}

/* ========== PUSH EFFECT (ВЫТАЛКИВАНИЕ) ========== */
.push-effect {
    position: absolute;
    inset: -10px;
    border-radius: 30px;
    background: radial-gradient(circle, rgba(0, 208, 132, 0.4) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.stat-card.active .push-effect {
    opacity: 1;
    transform: scale(1.2);
    animation: pushPulse 2s ease-in-out infinite;
}

@keyframes pushPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Анимация выталкивания при смене слайда */
.stat-card.pushing-out {
    animation: pushOut 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes pushOut {
    0% {
        transform: translateX(0) translateZ(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateZ(-100px) scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-150%) translateZ(-300px) scale(0.7);
        opacity: 0.6;
    }
}

.stat-card.pushing-in {
    animation: pushIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes pushIn {
    0% {
        transform: translateX(150%) translateZ(-300px) scale(0.7);
        opacity: 0.6;
    }
    50% {
        transform: translateX(50%) translateZ(-100px) scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0) translateZ(0) scale(1);
        opacity: 1;
    }
}

/* ========== ICON STYLES ========== */
.stat-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(30px);
    transition: transform 0.3s;
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.2), rgba(0, 124, 186, 0.2));
    border-radius: 50%;
    border: 2px solid rgba(0, 208, 132, 0.3);
}

.stat-card.active:hover .stat-icon-wrapper {
    transform: translateZ(50px) scale(1.1);
}

.icon-glow {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d084, #007cba);
    filter: blur(15px);
    opacity: 0.5;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.stat-icon-wrapper svg {
    width: 40px;
    height: 40px;
    stroke: url(#iconGradient);
    stroke-width: 2;
    fill: none;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(0, 208, 132, 0.6));
}

/* ========== NUMBER STYLES ========== */
.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
    transform: translateZ(25px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    background: linear-gradient(135deg, #00d084 0%, #007cba 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 208, 132, 0.5);
    line-height: 1;
    min-width: 80px;
    text-align: center;
}

.stat-number-suffix {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Cuprum', sans-serif;
}

/* ========== LABEL STYLES ========== */
.stat-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Cuprum', sans-serif;
    transform: translateZ(20px);
}

/* ========== PROGRESS BAR ========== */
.stat-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    transform: translateZ(15px);
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d084, #007cba);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 15px rgba(0, 208, 132, 0.6);
}

.stat-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: barPulse 1s ease-in-out infinite;
}

@keyframes barPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========== 3D SIDES ========== */
.stat-card-side {
    position: absolute;
    background: linear-gradient(145deg,
    rgba(0, 124, 186, 0.3),
    rgba(0, 208, 132, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.stat-card-right {
    width: 20px;
    height: 100%;
    right: -20px;
    top: 0;
    transform: rotateY(90deg);
    transform-origin: left;
    border-radius: 0 12px 12px 0;
}

.stat-card-bottom {
    width: 100%;
    height: 20px;
    bottom: -20px;
    left: 0;
    transform: rotateX(-90deg);
    transform-origin: top;
    border-radius: 0 0 12px 12px;
}

/* ========== PARTICLES ========== */
.stat-particles {
    position: absolute;
    inset: -30px;
    pointer-events: none;
    z-index: -1;
}

.stat-particles::before,
.stat-particles::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(0, 208, 132, 0.6);
    border-radius: 50%;
    animation: particleOrbit 8s linear infinite;
}

.stat-particles::before {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.stat-particles::after {
    bottom: 10%;
    right: 10%;
    animation-delay: -4s;
}

@keyframes particleOrbit {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(100px, -100px) scale(0); opacity: 0; }
}

/* ========== NEON RING ========== */
.stat-ring {
    position: absolute;
    inset: -10px;
    border-radius: 30px;
    border: 2px solid transparent;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-ring::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 32px;
    background: conic-gradient(from 0deg, #00d084, #007cba, #667eea, #00d084);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 2px));
    animation: ringRotate 4s linear infinite;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stat-card.active:hover .stat-ring {
    opacity: 1;
}

/* ========== BACKGROUND PARTICLES ========== */
.stats-bg-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.stats-bg-particles .bg-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 208, 132, 0.5);
    border-radius: 50%;
    animation: bgParticleFloat 15s infinite linear;
    opacity: 0;
}

@keyframes bgParticleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ========== INDIVIDUAL CARD COLORS ========== */
.stat-card[data-index="0"] .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.25), rgba(0, 124, 186, 0.15));
    border-color: rgba(0, 208, 132, 0.4);
}
.stat-card[data-index="0"] .stat-bar-fill {
    background: linear-gradient(90deg, #00d084, #00a86b);
}

.stat-card[data-index="1"] .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 124, 186, 0.25), rgba(102, 126, 234, 0.15));
    border-color: rgba(0, 124, 186, 0.4);
}
.stat-card[data-index="1"] .stat-bar-fill {
    background: linear-gradient(90deg, #007cba, #667eea);
}

.stat-card[data-index="2"] .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(240, 147, 251, 0.15));
    border-color: rgba(102, 126, 234, 0.4);
}
.stat-card[data-index="2"] .stat-bar-fill {
    background: linear-gradient(90deg, #667eea, #f093fb);
}

.stat-card[data-index="3"] .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.25), rgba(0, 208, 132, 0.15));
    border-color: rgba(240, 147, 251, 0.4);
}
.stat-card[data-index="3"] .stat-bar-fill {
    background: linear-gradient(90deg, #f093fb, #00d084);
}

/* ========== HOVER EFFECTS ========== */
.stat-card.active:hover .stat-card-3d {
    filter: drop-shadow(0 20px 60px rgba(0, 208, 132, 0.3));
}

.stat-card.active:hover .stat-number {
    text-shadow: 0 0 40px rgba(0, 208, 132, 0.8);
    transform: scale(1.05);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .stats-section {
        padding: 80px 20px;
    }

    .carousel-track-container {
        height: 350px;
    }

    .stat-card {
        width: 280px;
        height: 340px;
    }

    .stat-number {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 60px 15px;
    }

    .title-text {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .stats-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .carousel-controls {
        gap: 15px;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
    }

    .carousel-track-container {
        height: 320px;
    }

    .stat-card {
        width: 260px;
        height: 320px;
    }

    .stat-card.prev,
    .stat-card.next {
        transform: translateX(-100%) translateZ(-200px) scale(0.75) rotateY(20deg);
        opacity: 0.5;
    }

    .stat-card.next {
        transform: translateX(100%) translateZ(-200px) scale(0.75) rotateY(-20deg);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-card-3d {
        animation: statFloatMobile 4s ease-in-out infinite;
    }

    @keyframes statFloatMobile {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }
}

@media (max-width: 480px) {
    .title-text {
        font-size: 1.6rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .carousel-track-container {
        height: 300px;
    }

    .stat-card {
        width: 240px;
        height: 300px;
    }

    .stat-icon-wrapper {
        width: 65px;
        height: 65px;
    }

    .stat-icon-wrapper svg {
        width: 32px;
        height: 32px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* На мобильных показываем только активный слайд */
    .stat-card.prev,
    .stat-card.next,
    .stat-card.far-prev,
    .stat-card.far-next {
        display: none;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .stat-card-3d {
        transform: none !important;
        animation: none !important;
    }

    .stat-card {
        transition: none !important;
    }
}

.stat-card:focus-visible {
    outline: 2px solid #00d084;
    outline-offset: 4px;
    border-radius: 20px;
}

/* ========== CAROUSEL TRANSITION EFFECTS ========== */
.carousel-track.is-animating .stat-card {
    pointer-events: none;
}

/* Swipe indicator for mobile */
.swipe-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: swipePulse 2s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

@keyframes swipePulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%); }
    50% { opacity: 1; transform: translateX(-50%) translateY(-5px); }
}

@media (max-width: 768px) {
    .swipe-hint {
        opacity: 1;
    }
}

/* ===== Mobile Adaptation ===== */
@media (max-width: 768px) {

    .cube-title {
        font-size: 1.1em;
    }

    .stats-section {
        padding: 60px 15px;
        margin-top: 70px;
    }

    .stats-title {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .stats-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
        padding: 10px;
    }

    .stat-card {
        height: 280px;
    }

    .stat-card-inner {
        padding: 30px 20px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .stat-icon svg {
        width: 30px;
        height: 30px;
    }

    .stat-number {
        font-size: 48px;
    }

    .stat-number::after {
        font-size: 30px;
        right: -20px;
        top: 5px;
    }

    .stat-label {
        font-size: 14px;
    }

    /* Отключаем сложные 3D эффекты на мобильных для производительности */
    .stat-card:hover .stat-card-inner {
        transform: translateZ(15px);
    }

    .stat-card:hover .stat-icon {
        transform: translateZ(30px) scale(1.05);
    }
}

@media (max-width: 480px) {
    .stats-title {
        font-size: 26px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        height: 260px;
    }

    .stat-number {
        font-size: 42px;
    }
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
    .stats-section {
        background: linear-gradient(135deg, #050510 0%, #0a0a2073 50%, #05051047 100%);
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    .stat-card,
    .stat-card-inner,
    .stat-icon,
    .stat-number,
    .stat-label,
    .stat-glow {
        transition: none;
        animation: none;
    }

    .stats-title {
        animation: none;
    }
}




/* ========== 3D CONTACT CARDS - VOLUMETRIC EFFECT ========== */
.contact-3d {
    padding: 100px 20px;
    background:
            radial-gradient(ellipse at top, #0a0a1a 0%, #050510 50%, #000 100%),
            url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    perspective: 2000px;
    perspective-origin: center;
    position: relative;
    overflow: hidden;
}

/* Фоновые неоновые волны */
.contact-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
            radial-gradient(circle at 20% 30%, rgba(0, 124, 186, 0.15) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(0, 208, 132, 0.12) 0%, transparent 40%),
            radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%);
    animation: bgPulse 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgPulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(2%, -2%) scale(1.05); }
    66% { transform: translate(-1%, 3%) scale(0.98); }
}

.section-title {
    text-align: center;
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 70px;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    z-index: 2;
    text-shadow:
            0 0 10px rgba(0, 124, 186, 0.8),
            0 0 30px rgba(0, 124, 186, 0.4);
    font-family: 'Oswald', sans-serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00d084, transparent);
    box-shadow: 0 0 20px rgba(0, 208, 132, 0.6);
}

/* ========== GRID ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ========== 3D CUBE CARD ========== */
.contact-item {
    position: relative;
    width: 100%;
    height: 280px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    cursor: grab;
}

.contact-item:active {
    cursor: grabbing;
}

/* Внутренний контейнер куба */
.contact-card {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: cubeFloat 8s ease-in-out infinite;
}

.contact-item:hover .contact-card {
    animation-play-state: paused;
}

@keyframes cubeFloat {
    0%, 100% { transform: rotateX(5deg) rotateY(-0deg) translateY(0) }
    50% { transform: rotateX(-5deg) rotateY(5deg) translateY(-15px) }
}

/* ========== ГРАНИ КУБА ========== */
.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    text-align: center;
    overflow: hidden;
}

/* Свечение по краям */
.cube-face::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg,
    rgba(0, 124, 186, 0.6),
    rgba(0, 208, 132, 0.4),
    rgba(102, 126, 234, 0.6));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    animation: borderGlow 3s ease-in-out infinite;
}

.contact-item:hover .cube-face::before {
    opacity: 1;
}

@keyframes borderGlow {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

/* Эффект блика при наведении */
.cube-face::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 55%);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s;
    pointer-events: none;
}

.contact-item:hover .cube-face::after {
    transform: translateX(100%) rotate(45deg);
}

/* ========== ПОЗИЦИОНИРОВАНИЕ ГРАНЕЙ ========== */
.cube-face.front  { transform: translateZ(140px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(140px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(140px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(140px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(140px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(140px); }

/* ========== КОНТЕНТ ГРАНЕЙ ========== */
.cube-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00d084, #007cba);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(0, 208, 132, 0.5));
    transition: transform 0.3s, filter 0.3s;
}

.contact-item:hover .cube-icon {
    transform: scale(1.15) translateZ(30px);
    filter: drop-shadow(0 0 25px rgba(0, 208, 132, 0.8));
}

.cube-title {
    color: #fff;
    font-size: 1.4rem;
    margin: 10px 0 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transform: translateZ(20px);
}

.cube-description,
.cube-item p,
.cube-item a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    transform: translateZ(15px);
}

.cube-item a {
    color: #00d084;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 8px;
}

.cube-item a:hover {
    color: #007cba;
    text-shadow: 0 0 15px rgba(0, 124, 186, 0.8);
    transform: translateZ(25px) scale(1.05);
}

/* ========== ИНДИВИДУАЛЬНЫЕ СТИЛИ ДЛЯ КАЖДОГО БЛОКА ========== */
/* Телефон */
.contact-item:nth-child(1) .cube-face {
    border-top: 3px solid #00d084;
}
.contact-item:nth-child(1) .cube-icon {
    background: linear-gradient(135deg, #00d084, #00a86b);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Email */
.contact-item:nth-child(2) .cube-face {
    border-top: 3px solid #007cba;
}
.contact-item:nth-child(2) .cube-icon {
    background: linear-gradient(135deg, #007cba, #005fa3);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Адрес */
.contact-item:nth-child(3) .cube-face {
    border-top: 3px solid #667eea;
}
.contact-item:nth-child(3) .cube-icon {
    background: linear-gradient(135deg, #667eea, #5568d3);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Режим работы */
.contact-item:nth-child(4) .cube-face {
    border-top: 3px solid #f093fb;
}
.contact-item:nth-child(4) .cube-icon {
    background: linear-gradient(135deg, #f093fb, #d67ee8);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ========== ПЛАВАЮЩИЕ ЧАСТИЦЫ ВОКРУГ КАРТОЧЕК ========== */
.contact-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 20px;
    pointer-events: none;
    background: radial-gradient(circle at 30% 30%,
    rgba(0, 208, 132, 0.1) 0%,
    transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.contact-item:hover::before {
    opacity: 1;
    animation: particlePulse 2s ease-in-out infinite;
}

@keyframes particlePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* ========== ПОДСКАЗКА ДЛЯ ВРАЩЕНИЯ ========== */
.rotation-hint {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    z-index: 3;
}

.rotation-hint i {
    animation: rotateHint 2s linear infinite;
}

@keyframes rotateHint {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact-item:hover .rotation-hint {
    opacity: 1;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
    .contact-card {
        animation-duration: 8s;
    }
}

/*@media (max-width: 768px) {*/
/*    .contact-3d {*/
/*        padding: 60px 15px;*/
/*    }*/

/*    .section-title {*/
/*        font-size: 2rem;*/
/*        margin-bottom: 50px;*/
/*    }*/

/*    .contact-grid {*/
/*        gap: 30px;*/
/*    }*/

/*    .contact-item {*/
/*        height: 260px;*/
/*    }*/

/*    .cube-face {*/
/*        padding: 20px;*/
/*    }*/

/*    .cube-icon {*/
/*        font-size: 2.5rem;*/
/*    }*/

/*    .cube-title {*/
/*        font-size: 1.25rem;*/
/*    }*/

/*    !* Отключаем 3D вращение на мобильных для производительности *!*/
/*    .contact-item {*/
/*        transform-style: flat;*/
/*        cursor: default;*/
/*    }*/

/*    .contact-card {*/
/*        transform: none !important;*/
/*        animation: cubeFloatMobile 4s ease-in-out infinite;*/
/*    }*/

/*    @keyframes cubeFloatMobile {*/
/*        0%, 100% { transform: translateY(0); }*/
/*        50% { transform: translateY(-10px); }*/
/*    }*/
/*}*/

@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .contact-item {
        height: 240px;
    }

    .cube-icon {
        font-size: 2.2rem;
    }

    .cube-title {
        font-size: 1.1rem;
    }

    .cube-description,
    .cube-item p,
    .cube-item a {
        font-size: 0.95rem;
    }
}

/* ========== ДОСТУПНОСТЬ ========== */
/*@media (prefers-reduced-motion: reduce) {*/
/*    *, *::before, *::after {*/
/*        animation-duration: 0.01ms !important;*/
/*        animation-iteration-count: 1 !important;*/
/*        transition-duration: 0.01ms !important;*/
/*    }*/

/*    .contact-card {*/
/*        transform: none !important;*/
/*        animation: none !important;*/
/*    }*/
/*}*/

/*.contact-item a:focus-visible,*/
/*.contact-item:focus-visible {*/
/*    outline: 2px solid #00d084;*/
/*    outline-offset: 4px;*/
/*    border-radius: 18px;*/
/*}*/

/*!* ========== ТЕНЬ ПРИ НАВЕДЕНИИ ========== *!*/
/*.contact-item:hover {*/
/*    filter: drop-shadow(0 20px 50px rgba(0, 208, 132, 0.3));*/
/*}*/




/* Footer 3D */
.footer-3d {
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, #000 100%);
    padding: 60px 50px 30px;
    border-top: 1px solid rgba(0, 124, 186, 0.3);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 40px;
}
.footer-col h5 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    color: #007cba;
    margin-bottom: 20px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s;
}
.footer-col ul li a:hover {
    color: #007cba;
    padding-left: 10px;
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.social-links a {
    width: 50px;
    height: 50px;
    border: 1px solid #007cba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007cba;
    font-size: 1.3rem;
    transition: all 0.3s;
}
.social-links a:hover {
    background: #007cba;
    color: #fff;
    box-shadow: 0 0 20px #007cba;
    transform: translateY(-5px);
}
/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.floating {
    animation: cubeFloat 3s ease-in-out infinite;
}
/* Loading Screen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s;
}
.loader-content {
    text-align: center;
}
.loader-spinner {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(0, 124, 186, 0.3);
    border-top-color: #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loader-text {
    font-family: 'Oswald', sans-serif;
    color: #007cba;
    font-size: 1.5rem;
    letter-spacing: 3px;
}
/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #007cba, #00d084);
    z-index: 1001;
    transition: width 0.1s;
}
/* Responsive */
@media (max-width: 768px) {
    .header-3d {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    .nav-3d {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .services-3d, .about-3d, .contact-3d, .portfolio-3d, .team-3d, .stats-3d {
        padding: 60px 20px;
    }
    .cube-wrapper {
        width: 220px;
        height: 220px;
    }
    .cube-front, .cube-back, .cube-right, .cube-left, .cube-top, .cube-bottom {
        width: 220px;
        height: 220px;
    }
    .cube-front  { transform: rotateY(0deg) translateZ(110px); }
    .cube-back   { transform: rotateY(180deg) translateZ(110px); }
    .cube-right  { transform: rotateY(90deg) translateZ(110px); }
    .cube-left   { transform: rotateY(-90deg) translateZ(110px); }
    .cube-top    { transform: rotateX(90deg) translateZ(110px); }
    .cube-bottom { transform: rotateX(-90deg) translateZ(110px); }


    .cube-wrapper:last-child {
        .cube-front {
            transform: rotateY(0deg) rotateX(0deg) translateZ(80px);
        }

        .cube-back {
            transform: rotateY(180deg) rotateX(-45deg) translateZ(100px);
        }

        .cube-right {
            display: none
        }

        .cube-left {
            display: none
        }

        .cube-top {
            transform: rotateX(110deg) rotateX(2deg) translateZ(70px);
        }

        .cube-bottom {
            transform: rotateX(-90deg) rotateX(-35deg) translateZ(110px);
        }
    }

}
/* Particle Effect Container */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}
/* Glitch Effect */
.glitch {
    position: relative;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.glitch::before {
    animation: glitch-1 0.3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    color: #007cba;
    z-index: -1;
}
.glitch::after {
    animation: glitch-2 0.3s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    color: #00d084;
    z-index: -2;
}
@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}
@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}
/* Cube Glow Effect */
.cube-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,124,186,0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
}
.cube-wrapper:hover .cube-glow {
    opacity: 1;
}
/* Rotation Controls */
.rotation-hint {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #007cba;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}
.cube-wrapper:hover .rotation-hint {
    opacity: 1;
}

.forCubeHref {
    text-decoration: none;
}






















