@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700&display=swap');

:root {
    --primary: #ff8c00;
    --primary-light: #ffaa33;
    --primary-glow: rgba(255, 140, 0, 0.4);
    --bg-dark: #0f1115;
    --bg-darker: #08090b;
    --surface: #1a1d23;
    --text: #ffffff;
    --text-muted: #b0b8c4;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    --transition: 0.5s cubic-bezier(0.2, 0, 0, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Golos Text', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

input, textarea, button {
    font-family: inherit;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: transparent;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.5px;
}

.logo-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-glow);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Carousel / Slider */
.carousel-wrapper {
    position: relative;
    margin-bottom: 4rem;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem 0 2rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scroll-behavior: smooth;
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.carousel-item {
    flex: 0 0 320px;
    scroll-snap-align: start;
    transition: var(--transition);
}

.carousel-item .card {
    height: 100%;
    margin: 0;
}

.carousel-item:hover {
    transform: translateY(-5px);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: white;
    transition: var(--transition);
}

.carousel-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.carousel-nav.prev { left: -25px; }
.carousel-nav.next { right: -25px; }

@media (max-width: 1200px) {
    .carousel-nav { display: none; }
    .carousel-item { flex: 0 0 280px; }
}

/* Специальное выделение для Продукции */
.nav-links a[href*="produkciya"] {
    color: var(--primary);
    opacity: 1;
    font-weight: 700;
    text-shadow: 0 0 10px var(--primary-glow);
}

.contact-button {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 0 100px;
    overflow: visible;
    background-attachment: fixed !important;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 130, 32, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    z-index: 5;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 8px 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

/* Stats/Advantages */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 10; /* Поднял выше */
    margin-top: 60px;
}

.vibrant-strip {
    background: linear-gradient(135deg, rgba(255,140,0,0.15) 0%, rgba(255,140,0,0.05) 100%);
    padding: 2.5rem 2rem; /* Увеличил вертикальные отступы внутри */
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); /* Добавил тень для объема */
}

.stat-item {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.stat-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    transition: var(--transition);
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) translateY(-5px);
    color: var(--primary-light);
}

.stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff; /* Белый для максимального контраста */
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.stat-num span {
    font-size: 1.1rem;
    opacity: 0.7;
    font-weight: 600;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Service Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
}

.card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--surface) 0%, transparent 100%);
}

.card-content {
    padding: 2rem;
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hide-mobile {
    display: inline-block;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

[data-aos].active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .grid-3, .stats, .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .footer-grid { gap: 2rem; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    
    .menu-toggle { display: flex; }
    
    .hide-mobile { display: none; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.5s ease-in-out;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li a {
        font-size: 1.2rem;
    }
    
    .hero { height: auto; padding: 160px 0 100px; }
    .stats { 
        grid-template-columns: 1fr; 
        margin-top: 50px;
        gap: 1rem;
    }
    
    .grid-3 { grid-template-columns: 1fr; }
    
    .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 2rem;
        text-align: center;
    }
    
    .footer-col .logo { justify-content: center; }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* Technology Pages Grid fix */
    .section div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .card-img { height: 200px; }
    
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.4rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }
    .section { padding: 40px 0; }
}
