body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background: #222;
    padding: 15px 0;
    text-align: center;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to right, #ff8c00, #ff3b3b);
    color: white;
    margin-top: 60px;
}

.catalog {
    padding: 40px 20px;
    text-align: center;
}

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.product img {
    width: 100%;
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

.product .price {
    font-size: 20px;
    font-weight: bold;
    color: #ff3b3b;
    margin: 10px 0;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 1001;
    overflow-y: auto;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.image-container {
    position: relative;
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: contain;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 1002;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    background: #ff3b3b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 10px;
}

footer {
    background: #222;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #ff3b3b;
}

.footer-section p {
    font-size: 14px;
    margin: 5px 0;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 24px; /* Размер иконки */
    margin: 5px 10px; /* Отступы между иконками */
    transition: color 0.3s ease;
    display: inline-block; /* Чтобы иконки были в одной строке */
}

.social-links a:hover {
    color: #ff3b3b; /* Цвет при наведении */
}

form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 14px;
}

form button {
    background: #ff3b3b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}

form button:hover {
    background: #ff8c00;
}

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 12px;
    text-align: center;
}

/* Медиазапросы для мобильных устройств */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 10px 0;
    }

    .logo {
        font-size: 24px;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #222;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 5px 0;
    }

    .hero {
        padding: 60px 10px;
        margin-top: 50px;
    }

    .products {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .product {
        padding: 15px;
    }

    .modal {
        width: 90%;
        max-width: 100%;
        padding: 15px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        margin-bottom: 20px;
    }
}
/* Стили для раздела "Доставка" */
.delivery {
    padding: 40px 20px;
    text-align: center;
    background-color: #fff;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.delivery-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.delivery-info ul {
    list-style: none;
    padding: 0;
}

.delivery-info ul li {
    margin: 10px 0;
    font-size: 16px;
}

.delivery-map {
    margin: 20px 0;
}

.payment-info {
    margin: 20px 0;
    text-align: left;
}

.payment-info ul {
    list-style: none;
    padding: 0;
}

.payment-info ul li {
    margin: 10px 0;
    font-size: 16px;
}

.faq {
    margin: 20px 0;
    text-align: left;
}

.faq-item {
    margin: 20px 0;
}

.faq-item h4 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #ff3b3b;
}

.faq-item p {
    font-size: 16px;
    color: #555;
}
/* Стили для раздела "Доставка" */
.delivery {
    padding: 20px 10px;
    text-align: center;
    background-color: #fff;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.delivery h2 {
    font-size: 24px; /* Уменьшенный размер */
    margin-bottom: 15px;
    color: #ff3b3b;
}

.delivery-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.delivery-info p {
    font-size: 14px; /* Уменьшенный размер */
    color: #555;
    margin-bottom: 20px;
}

.delivery-features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px; /* Уменьшенный отступ */
}

.feature {
    flex: 1;
    min-width: 200px; /* Уменьшенная минимальная ширина */
    padding: 15px; /* Уменьшенный отступ */
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.feature i {
    font-size: 30px; /* Уменьшенный размер иконки */
    color: #ff3b3b;
    margin-bottom: 10px; /* Уменьшенный отступ */
}

.feature h3 {
    font-size: 18px; /* Уменьшенный размер */
    margin-bottom: 8px; /* Уменьшенный отступ */
    color: #333;
}

.feature p {
    font-size: 14px; /* Уменьшенный размер */
    color: #555;
}

.delivery-map {
    margin: 20px 0; /* Уменьшенный отступ */
}

.payment-info {
    margin: 20px 0; /* Уменьшенный отступ */
}

.payment-info h3 {
    font-size: 22px; /* Уменьшенный размер */
    margin-bottom: 15px; /* Уменьшенный отступ */
    color: #ff3b3b;
}

.payment-methods {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px; /* Уменьшенный отступ */
}

.method {
    flex: 1;
    min-width: 200px; /* Уменьшенная минимальная ширина */
    padding: 15px; /* Уменьшенный отступ */
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.method i {
    font-size: 30px; /* Уменьшенный размер иконки */
    color: #ff3b3b;
    margin-bottom: 10px; /* Уменьшенный отступ */
}

.method h4 {
    font-size: 18px; /* Уменьшенный размер */
    margin-bottom: 8px; /* Уменьшенный отступ */
    color: #333;
}

.method p {
    font-size: 14px; /* Уменьшенный размер */
    color: #555;
}

.faq {
    margin: 20px 0; /* Уменьшенный отступ */
}

.faq h3 {
    font-size: 22px; /* Уменьшенный размер */
    margin-bottom: 15px; /* Уменьшенный отступ */
    color: #ff3b3b;
}

.faq-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Уменьшенный отступ */
    margin: 15px 0; /* Уменьшенный отступ */
    padding: 15px; /* Уменьшенный отступ */
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.faq-item i {
    font-size: 24px; /* Уменьшенный размер иконки */
    color: #ff3b3b;
}

.faq-item h4 {
    font-size: 16px; /* Уменьшенный размер */
    margin-bottom: 8px; /* Уменьшенный отступ */
    color: #333;
}

.faq-item p {
    font-size: 14px; /* Уменьшенный размер */
    color: #555;
}
/* Стили для карточки с контактами */
#contactsModal {
    text-align: center;
    padding: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-item:hover {
    background: #ff3b3b;
    color: white;
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 24px;
}

.contact-item span {
    font-size: 16px;
}
/* Стили для карусели */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 400px; /* Высота карусели */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0; /* Отступы сверху и снизу */
}

.carousel-container {
    display: flex;
    width: 300%; /* 3 слайда */
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Текстовый блок поверх изображения */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
    padding: 20px;
    border-radius: 10px;
    max-width: 80%; /* Ограничиваем ширину текстового блока */
}

.slide-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 18px;
}

/* Кнопки управления каруселью */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}
/* Стили для карусели */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 300px; /* Высота карусели */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0; /* Отступы сверху и снизу */
}

.carousel-container {
    display: flex;
    width: 300%; /* 3 слайда */
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Текстовый блок */
.slide-content {
    text-align: center;
    color: #333; /* Тёмный текст для контраста */
    padding: 20px;
    border-radius: 10px;
    max-width: 80%; /* Ограничиваем ширину текстового блока */
    background: rgba(255, 255, 255, 0.8); /* Полупрозрачный белый фон */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.slide-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 18px;
}

/* Кнопки управления каруселью */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}