/* Основные переменные цветовой палитры */
:root {
    --primary-color: #007BFF;      /* Electric Blue */
    --secondary-color: #A8E10C;    /* Lime Green */
    --background-color: #0B1F33;   /* Midnight Blue */
    --accent-color: #FF4E50;       /* Neon Coral */
    --text-color: #FFFFFF;         /* Snow White */
    --secondary-text: #C5C5C5;     /* Silver Mist */
    --transition: all 0.3s ease;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные стили */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Отступ для якорей */
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: var(--primary-color);
}

h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
}

main {
    flex: 1;
}

/* Хедер и навигация */
.main-header {
    background-color: rgba(11, 31, 51, 0.9); /* Полупрозрачный фон */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo a:hover {
    color: var(--secondary-color);
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav li {
    margin-left: 30px;
}

.desktop-nav a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--primary-color);
}

.desktop-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.desktop-nav a:hover:after, .desktop-nav a.active:after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-toggle a {
    color: var(--text-color);
}

.mobile-nav {
    display: none;
    background-color: var(--background-color);
    padding: 20px;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 15px;
}

.mobile-nav a {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 8px 0;
}

.mobile-nav a:hover, .mobile-nav a.active {
    color: var(--primary-color);
}

/* Баннер */
.hero-banner {
    background: linear-gradient(rgba(11, 31, 51, 0.8), rgba(11, 31, 51, 0.9)), url('./img/NCcjad.jpg') no-repeat center center;
    background-size: cover;
    padding: 150px 0;
    text-align: center;
}

.hero-banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--secondary-text);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(168, 225, 12, 0.6);
}

/* О нас */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Преимущества */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.advantage-icon {
    margin-bottom: 20px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    border: 2px solid var(--primary-color);
}

.icon {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Сервисы */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
}

.service-card p {
    padding: 0 20px 20px;
    color: var(--secondary-text);
}

.service-link {
    display: block;
    padding: 15px 20px;
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

/* Почему выбирают нас */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--secondary-text);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.testimonial:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: rgba(0, 123, 255, 0.2);
    line-height: 1;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    color: var(--secondary-text);
    font-weight: 600;
}

/* Форма заказа */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.form-group select option {
    background-color: var(--background-color);
    color: var(--text-color);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.form-checkbox input {
    margin-top: 5px;
    margin-right: 10px;
}

.form-checkbox label a {
    text-decoration: underline;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--secondary-color);
}

/* FAQ секция */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: block;
    position: relative;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.faq-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-icon:before,
.faq-icon:after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.faq-icon:before {
    width: 2px;
    height: 12px;
    top: -6px;
    right: 5px;
}

.faq-icon:after {
    width: 12px;
    height: 2px;
    top: -1px;
    right: 0;
}

.faq-toggle:checked ~ .faq-question {
    background-color: var(--primary-color);
}

.faq-toggle:checked ~ .faq-question .faq-icon:before {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 0 0 5px 5px;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 300px;
    padding: 20px;
}

/* Футер */
.main-footer {
    background-color: rgba(7, 21, 36, 0.8);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-contacts li {
    margin-bottom: 10px;
    color: var(--secondary-text);
    list-style-type: none;
}

.footer-contacts li.contact-white {
    color: var(--text-color);
}

.footer-links li {
    margin-bottom: 10px;
    list-style-type: none;
}

.footer-links a {
    color: var(--secondary-text);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* Cookie Popup */
#cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background-color: var(--background-color);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    padding: 20px;
    z-index: 9999;
    display: none;
}

.cookie-container {
    display: flex;
    flex-direction: column;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

#cookie-accept {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

#cookie-accept:hover {
    background-color: var(--secondary-color);
}

/* Медиа запросы */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    section {
        padding: 60px 0;
    }

    .hero-banner {
        padding: 100px 0;
    }

    .hero-banner h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }

    .hero-banner {
        padding: 80px 0;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .form-container {
        padding: 20px;
    }
}
