/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.98);
    margin-bottom: 10px;
    border-radius: 5px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.section:hover {
    transform: translateY(-5px);
}

.section-header {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-family: 'Roboto', sans-serif;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #3498db;
    margin: 15px auto;
    border-radius: 2px;
}

.dark-bg {
    background-color: rgba(44, 62, 80, 0.98);
    color: white;
}

.dark-bg .section-title {
    color: white;
}

.dark-bg .section-title:after {
    background-color: #3498db;
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

/* STEP-BY-STEP АНИМАЦИЯ */
.assembly-wrapper {
    position: fixed;
    top: 50%;
    right: 50px;
    width: 400px;
    height: 400px;
    z-index: 100;
    pointer-events: none;
    transform: translateY(-50%);
    transition: top 0.3s ease;
}

.assembly-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.assembly-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.assembly-base img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
}

.assembly-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.assembly-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.assembly-layer.active {
    opacity: 1;
    transform: scale(1);
}

/* Точки прогресса */
.assembly-progress {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: #3498db;
    transform: scale(1.3);
}

/* Адаптивность для анимации */
@media (max-width: 1200px) {
    .assembly-wrapper {
        right: 30px;
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 992px) {
    .assembly-wrapper {
        display: none;
    }
}

/* Навигация */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    margin-right: 10px;
    color: #3498db;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2c3e50;
}

/* Герой-секция */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 70px;
    z-index: 2;
    padding: 0 20px;
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.95));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ddd;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* О компании */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 25px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    flex: 1;
    margin: 0 10px;
}

.stat:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.stat h3 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat p {
    font-size: 1rem;
    color: #7f8c8d;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Продукция */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dark-bg .product-card {
    background-color: #34495e;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.product-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.5rem;
}

.dark-bg .product-card h3 {
    color: white;
}

.product-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

.dark-bg .product-card p {
    color: #ecf0f1;
}

/* Услуги */
.services-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service i {
    font-size: 3.5rem;
    color: #3498db;
    margin-bottom: 20px;
}

.service h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.5rem;
}

.service p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Производство */
.production-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.production-image {
    flex: 1;
}

.production-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.production-text {
    flex: 1;
}

.production-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.equipment-list {
    list-style: none;
    margin: 20px 0;
}

.equipment-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.equipment-list i {
    color: #2ecc71;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Контакты */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-right: 15px;
    margin-top: 5px;
    min-width: 30px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.contact-item p {
    color: #7f8c8d;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Футер */
.footer {
    background-color: rgba(44, 62, 80, 0.98);
    color: white;
    padding: 50px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-logo i {
    margin-right: 15px;
    color: #3498db;
    font-size: 2rem;
}

.footer p {
    margin-bottom: 20px;
    opacity: 0.8;
    max-width: 600px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 25px;
}

.social-links a {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: #3498db;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Кнопка "наверх" */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

/* Анимация появления секций */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-animate {
    animation: fadeInUp 0.8s ease forwards;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .assembly-wrapper {
        right: 20px;
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 992px) {
    .about-content, .production-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .products-grid,
    .services-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}