/* Общие стили */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --white: #fff;
    --black: #000;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif; /* Замените на шрифт по вашему выбору */
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-top: 40px;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: #0056b3;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color var(--transition-speed) ease;
}

.btn:hover {
    background-color: #0056b3;
}
.btn2 {
    display: inline-block;
    background-color: #25D366;
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color var(--transition-speed) ease;
}
.btn2:hover {
    background-color: #0056b3;
}

/* Header */
header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-gray);
}

.logo img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.header-icons {
    display: flex;
    align-items: center;
}

.header-icons .cart-icon {
    position: relative;
    font-size: 1.5rem;
    margin-right: 20px;
    color: var(--dark-gray);
}

.header-icons .cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

.hamburger-menu {
    display: none; /* Изначально скрыт на десктопе */
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark-gray);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./imgwww/123.gif') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* About Section */
.about-section {
    padding: 60px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background-color: var(--light-gray);
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./.gif') no-repeat center center/cover;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card img {
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-card .add-to-cart-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.product-card .add-to-cart-btn:hover {
    background-color: #0056b3;
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
}

.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider img {
    min-width: 100%;
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    transition: background-color var(--transition-speed) ease;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

/* Video Module */
.video-module-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--black);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Feedback Section */
.feedback-section {
    padding: 60px 0;
}

.feedback-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap; /* Для адаптивности */
}

.feedback-form, .contact-info {
    flex: 1;
    min-width: 300px; /* Минимальная ширина для корректного отображения */
}

.feedback-form form .form-group {
    margin-bottom: 20px;
}

.feedback-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.feedback-form input[type="text"],
.feedback-form input[type="email"],
.feedback-form input[type="tel"],
.feedback-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.feedback-form textarea {
    resize: vertical;
}

.feedback-form button {
    width: auto; /* Чтобы кнопка была по размеру контента */
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Cart Modal */
.modal {
    display: none; /* Скрыт по умолчанию */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 60px;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.close-button:hover {
    color: var(--black);
}

.modal-content h2 {
    text-align: left;
    margin-bottom: 25px;
}

#cart-items {
    margin-top: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.cart-item-details .price {
    font-size: 1rem;
    color: var(--primary-color);
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-quantity button {
    background: none;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 1rem;
}

.cart-quantity span {
    font-size: 1rem;
    font-weight: bold;
}

.cart-total {
    margin-top: 25px;
    text-align: right;
    font-size: 1.3rem;
    font-weight: bold;
}

.checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* Messenger Button */
.messenger-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.messenger-button a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #25D366; /* WhatsApp green */
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.messenger-button a:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Footer */
footer {
    background-color: #333;
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

footer p {
    margin-bottom: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 1.3rem;
    margin: 0 10px;
    transition: color var(--transition-speed) ease;
    border-radius: 10px;
}

.social-links a:hover {
    color: var(--primary-color);
    border-radius: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* Скрываем навигацию на мобильных */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 15px 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .hamburger-menu {
        display: block; /* Показываем кнопку-гамбургер */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about-content, .feedback-content {
        flex-direction: column;
    }

    .about-image, .feedback-form, .contact-info {
        width: 100%;
        margin-bottom: 30px;
    }

    h2 {
        font-size: 2rem;
    }

    .modal-content {
        width: 90%;
    }
}

/* Поместите навигационную панель в нижней части страницы и закрепите ее */
.navbar {
  background-color: #333;
  overflow: hidden;
  position: fixed;
  bottom: 0;
  width: 100%;
  border-radius: 10px;
}

/* Стиль ссылок внутри панели навигации */
.navbar a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  border-radius: 10px;
}

/* Изменение цвета ссылок при наведении курсора */
.navbar a:hover {
  background-color: #ddd;
  color: black;
  border-radius: 10px;
}

/* Добавить зеленый цвет фона для активной ссылки */
.navbar a.active {
  background-color: #133984;
  color: white;
  border-radius: 10px;
}

/* Скрыть ссылку, которая должна открывать и закрывать навигационную панель на небольших экранах */
.navbar .icon {
  display: none;
  border-radius: 10px;
}