@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #6A0DAD; /* Фиолетовый */
    --secondary-color: #00FFFF; /* Неоновый синий */
    --accent-color: #39FF14; /* Ярко-зеленый */
    --text-light: #E0E0E0;
    --text-dark: #333;
    --background-dark: #1A1A2E;
    --card-background-dark: #2C2C4A;
    --gradient-start: #1A1A2E;
    --gradient-end: #0F0F1A;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5em;
    text-shadow: 0 0 15px var(--secondary-color);
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-color);
}

.btn-primary:hover {
    background-color: #7B2DCE; /* Немного темнее */
    box-shadow: 0 0 20px var(--primary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--background-dark);
    box-shadow: 0 0 10px var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #00E5E5; /* Немного темнее */
    box-shadow: 0 0 15px var(--secondary-color);
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: rgba(26, 26, 46, 0.9); /* Полупрозрачный фон */
    color: var(--text-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: url('../img/hero.png') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Затемнение */
    backdrop-filter: blur(2px);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s forwards 0.5s;
}

.hero-subtitle {
    font-size: 1.5em;
    margin-top: 15px;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s forwards 0.7s;
}

.hero-section .btn {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s forwards 0.9s;
}

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* General Section Styling */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Reveal on Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about-section {
    background: var(--card-background-dark);
    border-radius: 10px;
    margin: 40px auto;
    padding: 60px 0;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    width: 40%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    object-fit: cover;
}

.about-content p {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.8;
}

/* Products Section */
.products-section {
    padding-top: 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: var(--card-background-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.4);
}

.product-card img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-bottom: 2px solid var(--primary-color);
}

.product-card h3 {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 1.4em;
    padding: 0 15px;
}

.product-card .price {
    font-size: 1.6em;
    color: var(--accent-color);
    font-weight: bold;
    margin: 10px 0 20px;
}

/* Advantages Section */
.advantages-section {
    background: radial-gradient(circle at center, #2C2C4A, #1A1A2E);
    padding: 80px 0;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: var(--card-background-dark);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    background-color: #3B3B60;
}

.advantage-card .icon {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--accent-color);
}

.advantage-card h3 {
    color: var(--secondary-color);
    font-size: 1.5em;
}

.advantage-card p {
    color: var(--text-light);
}

/* Reviews Section */
.reviews-section {
    padding: 80px 0;
}

.review-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    overflow-x: auto; /* Enable horizontal scrolling for smaller screens */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px; /* Space for scrollbar */
}

.review-card {
    background-color: var(--card-background-dark);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0; /* Prevent cards from shrinking */
    width: 100%; /* Take full width for scrolling effect */
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(106, 13, 173, 0.5);
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text-light);
}

.review-author {
    font-weight: bold;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-section {
    background: var(--card-background-dark);
    padding: 80px 0;
    border-radius: 10px;
    margin: 40px auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    color: var(--text-light);
    font-size: 1.1em;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info p .fas {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 1.3em;
}

.contact-form {
    flex: 1.5;
    min-width: 300px;
    background-color: #1A1A2E;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.contact-form h3 {
    color: var(--accent-color);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #222;
    color: var(--text-light);
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(106, 13, 173, 0.6);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

.form-message {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

.form-message.success {
    color: var(--accent-color);
}

.form-message.error {
    color: #FF6347; /* Tomato */
}

/* Footer */
.footer {
    background-color: rgba(26, 26, 46, 0.9);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
    margin-top: auto; /* Push footer to the bottom */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-contacts p {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.social-links {
    margin-top: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.8em;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8em;
    }
    h2 {
        font-size: 2em;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-image {
        width: 80%;
    }
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav ul li {
        margin: 0 10px 10px;
    }
    .hero-title {
        font-size: 2.2em;
    }
    .hero-subtitle {
        font-size: 1.2em;
    }
    h2 {
        font-size: 1.8em;
    }
    .product-grid, .advantage-grid, .review-carousel {
        grid-template-columns: 1fr;
    }
    .review-carousel {
        padding: 0 10px; /* Add padding for better scroll on small screens */
    }
    .product-card, .advantage-card, .review-card {
        margin: 0 auto;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    h2 {
        font-size: 1.5em;
    }
    .logo a {
        font-size: 1.5em;
    }
}   .policy-content {
            padding: 80px 0;
            color: var(--text-light);
            line-height: 1.8;
        }

        .policy-content h1 {
            text-align: center;
            margin-bottom: 50px;
            color: var(--accent-color);
            text-shadow: 0 0 10px var(--accent-color);
        }

        .policy-content h2 {
            font-size: 2em;
            margin-top: 40px;
            margin-bottom: 20px;
            color: var(--secondary-color);
            text-shadow: 0 0 8px var(--secondary-color);
            border-bottom: 1px solid rgba(0, 255, 255, 0.2);
            padding-bottom: 10px;
        }

        .policy-content h3 {
            font-size: 1.5em;
            margin-top: 30px;
            margin-bottom: 15px;
            color: var(--primary-color);
        }

        .policy-content p, .policy-content ul, .policy-content ol {
            margin-bottom: 20px;
        }

        .policy-content ul, .policy-content ol {
            padding-left: 25px;
        }

        .policy-content li {
            margin-bottom: 10px;
        }

        .policy-content a {
            color: var(--secondary-color);
            text-decoration: underline;
        }