/* Общие стили */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #1a1a1a; /* Темный фон для контраста с частицами */
    overflow-x: hidden; /* Убираем горизонтальный скролл */
}

#particles-js {
    position: fixed; /* Фиксируем частицы на фоне */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* Отправляем частицы на задний план */
}

header {
    padding: 20px;
    position: relative;
    z-index: 1000;
    background-color: transparent; /* Прозрачный фон */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Логотип в левом углу */
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff; /* Белый текст */
    margin-left: 40px; /* Увеличиваем отступ слева */
}

.hero {
    height: 70vh; /* Уменьшаем высоту до 70% экрана */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 40px; /* Увеличиваем отступы по бокам */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px; /* Ширина содержимого */
    margin: 0 auto;
    padding: 0 40px; /* Увеличиваем отступы по бокам */
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in-out;
    color: #fff;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeIn 3s ease-in-out;
    color: #fff;
}

.cta-button {
    padding: 15px 30px;
    background-color: #ff6f61;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ff3b2f;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.features, .about, .links, .image-text, .faq, .process, .values {
    padding: 50px 40px; /* Увеличиваем отступы по бокам */
    text-align: center;
    background-color: rgba(51, 51, 51, 0.8); /* Полупрозрачный серый фон */
    margin: 20px 160px; /* Увеличиваем отступы от границ экрана */
    border-radius: 10px; /* Скругленные углы */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Граница */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Тень */
}

.features h2, .about h2, .links h2, .image-text h2, .faq h2, .process h2, .values h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff; /* Белый текст */
}

.features p, .about p, .links p, .image-text p, .faq p, .process p, .values p {
    font-size: 18px;
    color: #ddd; /* Светло-серый текст */
    max-width: 1200px; /* Ширина содержимого */
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Полупрозрачный фон */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff; /* Белый текст */
}

.feature-card p {
    font-size: 16px;
    color: #ddd; /* Светло-серый текст */
}

.links-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.link-button {
    padding: 15px 30px;
    background-color: #ff6f61;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.link-button:hover {
    background-color: #ff3b2f;
}

.image-text-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.image-text .text {
    flex: 1;
    text-align: left;
}

.image-text .image {
    flex: 1;
    text-align: right;
}

.image-text img {
    max-width: 100%;
    border-radius: 10px;
}

.faq .accordion {
    max-width: 1200px; /* Ширина содержимого */
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.accordion-button {
    width: 100%;
    padding: 15px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #fff; /* Белый текст */
    transition: background-color 0.3s ease;
}

.accordion-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.accordion-content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content p {
    font-size: 16px;
    color: #ddd; /* Светло-серый текст */
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding: 15px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(51, 51, 51, 0.8); /* Полупрозрачный серый фон */
    color: #fff; /* Белый текст */
    margin: 20px 80px; /* Увеличиваем отступы от границ экрана */
    border-radius: 10px; /* Скругленные углы */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Граница */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Тень */
}

/* Адаптивность */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-images {
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .features, .about, .links, .image-text, .faq, .process, .values, footer {
        margin: 10px; /* Уменьшаем отступы на мобильных устройствах */
        padding: 20px; /* Уменьшаем отступы на мобильных устройствах */
    }

    .image-text-content {
        flex-direction: column;
        text-align: center;
    }

    .image-text .text {
        text-align: center;
    }

    .image-text .image {
        text-align: center;
    }
}