body {
    background-size: cover;
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}
/* Хедер и навигация */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: #121212;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

nav a:hover {
    color: #3A3DF0;
}

/* Основной экран */
.hero {
    height: 100vh;
    background: url('../images/background.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-content .cta-button {
    display: inline-block;
    padding: 12px 24px; /* Отступы внутри кнопки */
    font-size: 16px; /* Размер текста */
    font-weight: bold; /* Жирный текст */
    color: #fff; /* Белый цвет текста */
    text-align: center;
    text-decoration: none; /* Убираем подчеркивание */
    border: none; /* Убираем границу */
    border-radius: 30px; /* Закругленные углы */
    background: linear-gradient(90deg, #6a11cb, #2575fc); /* Градиентный фон */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Тень для объема */
    transition: all 0.3s ease; /* Плавный переход для hover-эффекта */
    /* background: #3A3DF0;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.3s; */
}

.hero-content .cta-button:hover {
    background: linear-gradient(90deg, #2575fc, #6a11cb); /* Инвертируем градиент при наведении */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Увеличиваем тень при наведении */
    transform: translateY(-2px); /* Легкий подъем кнопки */
    /* background: #2a2fcc; */
}

/* Секция "Наши услуги" */
.services {
    padding: 60px 50px;
    background: #f9f9f9;
    text-align: center;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.services .service {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.services .service h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.services .service p {
    font-size: 16px;
    color: #555;
}

/* Общие стили для кнопок "Узнать больше" */
.cta-button {
    background: transparent;
    color: #333; /* Цвет текста */
    padding: 15px 30px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 20px;
    border: 2px solid; /* Рамка */
}

.services .cta-button {
    color: #555;
    padding: 5px 5px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 10px;
    transition: background 0.9s;
}

.services .cta-button:hover {
    font-size: 18px;
    padding: 5px 5px;
    color: #f9f9f9;
    background: #555;
}

/* Секция о нас */
.about {
    padding: 60px 50px;
    text-align: center;
    background: #121212;
    color: #fff;
}

.about h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.about p {
    font-size: 18px;
    margin-bottom: 20px;
}

.about .about-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.about .stat {
    text-align: center;
}

.about .stat h3 {
    font-size: 28px;
    margin-bottom: 10px;
}
.about a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    transition: color 2s;
}

.about .cta-button {  
    color: #fff;
    padding: 5px 5px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 10px;
    transition: background 0.9s;
}

.about .cta-button:hover {
    font-size: 18px;
    padding: 5px 5px;
    color: #000000;
    background: #fff;
}

/* Секция "Наши продукты" */
.our_products {
    padding: 60px 50px;
    background: #f9f9f9;
    text-align: center;
}

.our_products h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.our_products .our_product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.our_products .our_product {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.our_products .our_product h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.our_products .our_product p {
    font-size: 16px;
    color: #555;
}

/* Секция "Контакты" */
.contact {
    padding: 60px 0px;
    text-align: center;
    background: #121212;
    color: #fff;
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact p {
    font-size: 18px;
    margin-bottom: 20px;
}

.contact .contact-stats {
    display: flex; /* Включаем Flexbox */
    justify-content: center; /* Равномерное распределение блоков */
    flex-wrap: wrap; /* Перенос блоков на новую строку, если не хватает места */
    gap: 0px; /* Расстояние между блоками */

    /* display: flex;
    justify-content: center;
    gap: 30px; */
}

.contact .stat {
    flex: 1;
    text-align: center;
}

.contact .stat h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* Футер */
footer {
    background: #3A3DF0;
    color: #fff;
    text-align: center;
    padding: 20px;
    white-space: nowrap;
}

/* Адаптив */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .services h2, .about h2, .our_products h2, .contact h2 {
        font-size: 30px;
    }

    .about h3 {
        font-size: 22px;
    }

    .services .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .about .about-stats, .contact .contact-stats {
        flex-direction: column;
        align-items: center;
    }

    .about .stat, .contact .stat {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .services h2, .about h2, .our_products h2, .contact h2 {
        font-size: 28px;
    }

    .about h3 {
        font-size: 20px;
    }

    .services .service-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cta-button {
        padding: 10px 20px;
    }

    .about .stat h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px;
    }

    nav a {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 12px;
    }

    .services h2, .about h2, .our_products h2, .contact h2 {
        font-size: 28px;
    }

    .services .service-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    footer {
        padding: 15px;
        font-size: 14px;
    }
}
