body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}
.header {
    background-color: #17a2b8;
    color: white;
    text-align: center;
    padding: 1rem 0;
}
.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.carousel img {
    width: 100%;
    scroll-snap-align: start;
    flex-shrink: 0;
}
.video {
    text-align: center;
    margin: 2rem 0;
}
.video video {
    width: 80%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
}
.product {
    border: 1px solid #ccc;
    border-radius: 10px;
    margin: 0.5rem;
    padding: 1rem;
    text-align: center;
    width: calc(25% - 2rem); /* 4 товара в ряд */
    box-sizing: border-box;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.product img {
    max-width: 100%;
    height: 150px; /* фиксированная высота для всех изображений */
    border-radius: 10px;
    object-fit: cover; /* сохранение пропорций изображения */
}
.product h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}
.product p {
    font-size: 1rem;
    margin: 0.5rem 0;
}
.product button {
    background-color: #28a745;
    border: none;
    border-radius: 20px;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.product button:hover {
    background-color: #218838;
}
.footer {
    background-color: #17a2b8;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    flex-wrap: wrap;
}
.footer div, .footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer a {
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .product {
        width: calc(50% - 2rem); /* 2 товара в ряд на мобильных устройствах */
    }
}
