/* Общие стили */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    line-height: 1.6;
    background: #000000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    text-align: center;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

.orange {
    color: #ff6600;
}

.white {
    color: #ffffff;
}

.yellow {
    color: #ffd700;
}

.btn {
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.primary-btn {
    background: #ff4500;
    color: #ffffff;
}

.primary-btn:hover {
    background: #cc3700;
}

.secondary-btn {
    background: transparent;
    border: 2px solid #ff4500;
    color: #ff4500;
}

.secondary-btn:hover {
    background: #ff4500;
    color: #ffffff;
}

/* Header */
/* Header */
.header {
    background: #000000;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100; /* Увеличен для избежания перекрытия */
    box-shadow: 0 2px 10px rgba(255,102,0,0.2);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.logo img {
    width: 200px;
    height: auto;
}

.nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav li {
    margin: 0 15px;
    position: relative;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav a:hover {
    color: #ff6600;
}

.nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #333333;
    padding: 10px;
    border-radius: 5px;
    list-style: none;
    min-width: 150px;
    z-index: 101; /* Выше хедера */
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Тень для видимости */
}

.nav .dropdown-menu li {
    margin: 5px 0;
}

.nav .dropdown:hover .dropdown-menu {
    display: block; /* Базовая поддержка hover */
}

/* Улучшение для всех браузеров */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.contacts-header a {
    color: #ffffff;
    margin-left: 10px;
    font-size: 18px;
}

.burger {
    display: none;
    font-size: 24px;
    color: #ff6600;
    cursor: pointer;
}

.primary-btn {
    padding: 10px 20px;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.7));
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    position: relative;
}

.hero-text {
    width: 45%;
    z-index: 1;
}


/* hero-image {
    width: 35%;
    height: 100%;
    z-index: ;
}*/

.hero h1 {
    font-size: 60px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin: 20px 0;
}

.benefits {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.benefits li {
    font-size: 18px;
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.benefits i {
    margin-right: 10px;
}

.hero-buttons {
    margin-top: 30px;
}

.hero-buttons .btn {
    margin-right: 15px;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
    background: transparent;
    z-index: 0;
}

/* Services */
.services {
    padding: 100px 0;
    background: #111111;
    text-align: center;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background: #222222;
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    transition: transform 0.3s;
}

.card:hover {
    transform: scale(1.05);
}

.card i {
    font-size: 40px;
    margin-bottom: 20px;
}

/* Portfolio */
.portfolio {
    padding: 100px 0;
    background: #000000;
    text-align: center;
}

.portfolio-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project img {
    border-radius: 10px;
}

/* Product Page Styles */
.product-hero {
    background: #000000; /* Тёмный фон */
    padding: 100px 0;
    text-align: center;
}

.product-features {
    margin-top: 50px;
}

.product-cta {
    margin-top: 40px;
}

.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
}

.product-details {
    padding: 100px 0;
    background: #111111;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: #111111;
    text-align: center;
}

.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.avatar {
    border-radius: 50%;
}

/* About */
.about {
    padding: 100px 0;
    background: #000000;
    text-align: center;
}

.facts {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.facts li {
    list-style: none;
}

/* Team */
.team {
    padding: 100px 0;
    background: #111111;
    text-align: center;
}

.team-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* CTA */
.cta {
    padding: 100px 0;
    background: #111111;
}

.cta-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.map, .cta-content {
    width: 45%;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: none;
    background: #222222;
    color: #ffffff;
}

/* Footer */
.footer {
    background: linear-gradient(to right, #00008b, #000000);
    padding: 50px 0;
    color: #ffffff;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-left {
    width: 30%;
    text-align: left;
}

.footer-column {
    width: 20%;
    text-align: left;
}

.footer-column h4 {
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column a {
    color: #ff0000;
    text-decoration: none;
}

.social i {
    margin-right: 10px;
    color: #ffffff;
}

.copyright {
    width: 100%;
    text-align: left;
    margin-top: 20px;
}

/* Анимации */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header .container {
        padding: 15px;
    }

    .nav {
        display: flex;
    }

    .burger {
        display: none;
    }

    .logo img {
        width: 180px;
    }

    .primary-btn {
        padding: 8px 15px;
    }

    .cta-container {
        flex-direction: row;
    }

    .map, .cta-content {
        width: 45%;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-text, .hero-image {
        width: 100%;
    }

    .hero-image {
        margin-top: 30px;
        position: relative;
        height: auto;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 15px;
        justify-content: space-between;
        position: relative;
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100%;
        background: #333333;
        padding-top: 70px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
    }

    .nav li {
        margin: 15px 0;
    }

    .nav a {
        font-size: 18px;
    }

    .contacts-header {
        display: none;
    }

    .burger {
        display: block;
        position: absolute;
        right: 15px;
    }

    .primary-btn {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 10px;
        padding: 8px 15px;
        font-size: 14px;
    }

    .logo {
        position: relative;
        z-index: 1001;
    }

    .logo img {
        width: 150px;
    }

    .cta-container {
        flex-direction: column;
    }

    .map, .cta-content {
        width: 100%;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-text, .hero-image {
        width: 100%;
    }

    .hero-image {
        margin-top: 30px;
        position: relative;
        height: auto;
    }
}