/* Общие стили и сброс */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

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

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: #222;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 40px; /* Размер логотипа */
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-item {
    margin-left: 20px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
}

.burger-menu {
    display: none; /* Скрываем бургер-меню по умолчанию */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #333;
}

/* Hero секция */
.hero {
    background-color: #e9ecef;
}

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

.hero-content {
    flex: 1;
    padding-right: 30px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #222;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Services секция */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
}

.service-image {
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #222;
}

.service-description {
    color: #555;
    margin-bottom: 20px;
}

/* Products секция */
.products {
    background-color: #f0f0f0;
}

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

.product-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
}

.product-image {
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #222;
}

.product-description {
    color: #555;
    margin-bottom: 15px;
}


/* Footer */
.footer {
    background-color: #343a40;
    color: white;
    padding: 30px 0;
}

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

.footer-text {
    font-size: 0.9rem;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.footer-nav-item {
    margin-left: 20px;
}

.footer-nav-link {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav-link:hover {
    color: #ccc;
}


/* Адаптивность */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px; /* Высота header */
        right: 0;
        bottom: 0;
        left: 0;
        background-color: white;
        padding-top: 30px;
        transform: translateX(100%); /* Скрываем меню за экраном */
        transition: transform 0.3s ease;
    }

    .nav.open {
        transform: translateX(0); /* Показываем меню */
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-item {
        margin-left: 0;
        margin-bottom: 20px;
    }

    .burger-menu {
        display: block; /* Показываем бургер-меню на мобильных */
    }

    .header-container {
        position: relative; /* Для позиционирования бургер-меню */
    }

    .burger-menu {
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }

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

    .footer-nav-list {
        margin-top: 20px;
        flex-direction: column;
        align-items: center;
    }

    .footer-nav-item {
        margin-left: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }
}