/* ========== СБРОС И БАЗА ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0e17;
    color: #e0e0e0;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(28, 58, 83, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(100, 255, 218, 0.05) 0%, transparent 20%);
}

/* ========== ЗАЩИТА ОТ КОПИРОВАНИЯ ========== */
.protection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9998;
    pointer-events: none;
}

.protection-watermark {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 11px;
    color: rgba(100, 255, 218, 0.3);
    z-index: 9999;
}

/* ========== ШЕСТЕРНЯ-ЛОГОТИП ========== */
.gear-logo {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 120px;
    height: 120px;
    z-index: 1000;
    filter: drop-shadow(0 0 15px rgba(0, 150, 255, 0.5));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gear-logo:hover {
    transform: scale(1.15) rotate(180deg);
    filter: drop-shadow(0 0 25px rgba(0, 200, 255, 0.8));
}

.gear-main {
    width: 100%;
    height: 100%;
    position: relative;
    animation: rotateGear 40s linear infinite;
}

.gear-tooth {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16%;
    height: 50%;
    background: linear-gradient(180deg, 
        #00a8ff 0%,
        #0097e6 30%,
        #0078b3 70%,
        #005a87 100%);
    border-radius: 4px;
    transform-origin: 0% 50%;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 0 8px rgba(0, 168, 255, 0.6);
}

.gear-tooth:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.gear-tooth:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg); }
.gear-tooth:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg); }
.gear-tooth:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg); }
.gear-tooth:nth-child(5) { transform: translate(-50%, -50%) rotate(180deg); }
.gear-tooth:nth-child(6) { transform: translate(-50%, -50%) rotate(225deg); }
.gear-tooth:nth-child(7) { transform: translate(-50%, -50%) rotate(270deg); }
.gear-tooth:nth-child(8) { transform: translate(-50%, -50%) rotate(315deg); }

.gear-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28%;
    height: 28%;
    background: #0a0e17;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 6px solid #00a8ff;
    box-shadow: 
        0 0 20px rgba(0, 168, 255, 0.7),
        inset 0 0 10px rgba(0, 168, 255, 0.3);
}

.gear-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12%;
    height: 12%;
    background: #00a8ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite alternate;
}

@keyframes rotateGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    from { box-shadow: 0 0 5px #00a8ff; }
    to { box-shadow: 0 0 15px #00a8ff; }
}

/* ========== НАВИГАЦИЯ ========== */
.navigation {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
    padding: 20px 5%;
    z-index: 1001;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-icon {
    font-size: 28px;
    color: #00a8ff;
}

.brand-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(45deg, #00a8ff, #64ffda);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-link {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00a8ff, #64ffda);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-active {
    color: #00a8ff;
}

.nav-active::before {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    color: #00a8ff;
    cursor: pointer;
    transition: transform 0.3s;
}

.menu-toggle:hover {
    transform: rotate(90deg);
}

/* ========== ГЕРОЙ СЕКЦИЯ ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 180px 5% 100px;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(45deg, 
        #00a8ff 0%,
        #64ffda 50%,
        #00a8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 40px rgba(0, 168, 255, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #a0a0a0;
    max-width: 600px;
    margin-bottom: 50px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 80px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(45deg, #00a8ff, #64ffda);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, #00a8ff 0%, #0078b3 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 
        0 10px 30px rgba(0, 168, 255, 0.3),
        0 0 0 1px rgba(0, 168, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.7s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(0, 168, 255, 0.4),
        0 0 0 1px rgba(0, 168, 255, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, #2d3436 0%, #1a1e23 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 5% 80px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #00a8ff, #64ffda);
    border-radius: 2px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    max-width: 700px;
    margin-bottom: 60px;
    line-height: 1.8;
}

/* ========== СЕТКИ И КАРТОЧКИ ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin: 80px 0;
}

.service-card {
    background: rgba(20, 25, 40, 0.6);
    border-radius: 20px;
    padding: 50px 35px;
    border: 1px solid rgba(0, 168, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        transparent 0%,
        rgba(0, 168, 255, 0.05) 50%,
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.8s;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:hover {
    transform: translateY(-15px);
    border-color: #00a8ff;
    box-shadow: 
        0 25px 50px rgba(0, 168, 255, 0.15),
        0 0 30px rgba(0, 168, 255, 0.1);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 30px;
    color: #00a8ff;
    display: inline-block;
    transition: transform 0.5s;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
}

.service-card p {
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    margin-top: 25px;
}

.service-features li {
    padding: 8px 0;
    color: #888;
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #00a8ff;
    font-size: 0.8rem;
}

/* ========== ПРОЕКТЫ ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    margin: 80px 0;
}

.project-card {
    background: rgba(20, 25, 40, 0.6);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 168, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #00a8ff;
    box-shadow: 
        0 20px 40px rgba(0, 168, 255, 0.2),
        0 0 30px rgba(0, 168, 255, 0.1);
}

.project-image {
    height: 250px;
    background: linear-gradient(135deg, #1a1e23, #2d3436);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #00a8ff;
}

.project-content {
    padding: 35px;
}

.project-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.project-meta {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    color: #888;
    font-size: 0.9rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== О КОМПАНИИ ========== */
.company-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin: 80px 0;
}

.company-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 80px 0;
}

.value-card {
    text-align: center;
    padding: 40px;
}

.value-icon {
    font-size: 3rem;
    color: #00a8ff;
    margin-bottom: 25px;
    display: inline-block;
}

/* ========== КОНТАКТЫ ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    margin: 80px 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    font-size: 1.5rem;
    color: #00a8ff;
    min-width: 30px;
}

.contact-form {
    background: rgba(20, 25, 40, 0.6);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(0, 168, 255, 0.15);
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: #00a8ff;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 18px 20px;
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #00a8ff;
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

/* ========== ФУТЕР ========== */
.site-footer {
    background: rgba(10, 14, 23, 0.95);
    border-top: 1px solid rgba(0, 168, 255, 0.2);
    margin-top: 150px;
    padding: 80px 5% 40px;
    position: relative;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
}

.footer-section h3 {
    color: #00a8ff;
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-section p {
    color: #888;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: #00a8ff;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 168, 255, 0.1);
    color: #666;
    font-size: 0.9rem;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
    .company-section,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .gear-logo {
        width: 90px;
        height: 90px;
        bottom: 25px;
        left: 25px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px 5%;
        gap: 25px;
        border-top: 1px solid rgba(0, 168, 255, 0.2);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        gap: 40px;
        justify-content: center;
    }
    
    .page-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 150px 5% 60px;
    }
    
    .btn {
        padding: 16px 30px;
        font-size: 0.9rem;
    }
    
    .service-card,
    .project-card,
    .contact-form {
        padding: 30px 20px;
    }
    
    .gear-logo {
        width: 70px;
        height: 70px;
        bottom: 20px;
        left: 20px;
    }
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* ========== УТИЛИТЫ ========== */
.text-gradient {
    background: linear-gradient(45deg, #00a8ff, #64ffda);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient {
    background: linear-gradient(135deg, #0a0e17 0%, #1a1e23 100%);
}

.shadow-glow {
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.2);
}

.separator {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 168, 255, 0.3) 50%,
        transparent 100%);
    margin: 60px 0;
}
