/* Определение CSS-переменных */
:root {
    --primary-color: #b9975b;
    --secondary-color: #1c1c1c;
    --text-color: #e0e0e0;
    --background-color: #121212;
    --font-family: 'Montserrat', sans-serif;
}

/* Общие стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Шапка сайта */
header {
    background-color: var(--secondary-color);
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    transition: top 0.3s;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 50%;
}

nav {
    flex-grow: 1;
    margin-left: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-links li a:hover::after {
    width: 100%;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
}

/* Секция героя */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background-image: url('background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(2px);
    z-index: -2;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.5);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.hero-text {
    margin-bottom: 30px;
}

.hero-text h2 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeIn 1.5s forwards;
    color: var(--primary-color);
    text-transform: uppercase;
}

.hero-text p {
    font-size: 24px;
    margin-bottom: 20px;
    animation: fadeIn 1.5s forwards 0.5s;
    color: var(--text-color);
}

.hero-text .fade-in-delay-2 {
    animation-delay: 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопки */
.button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    background-color: var(--primary-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease-in-out;
    text-decoration: none;
}

.button:hover {
    background-color: #d1a96f;
}

/* Секция "О нас" */
#about {
    padding: 100px 0;
    background-color: var(--background-color);
}

#about h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

#about p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

#about p, #about h2 {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* Секция "Наши преимущества" */
#advantages {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

/* Секция "Наши преимущества" */
#advantages h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
    letter-spacing: 2px;
    text-transform: uppercase;
    word-wrap: break-word; /* Добавлено для переноса длинных слов */
}

/* Адаптивность */
@media (max-width: 768px) {
    #advantages h2 {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    #advantages h2 {
        font-size: 28px;
    }
}

.advantages-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.advantage-item {
    width: calc(25% - 40px);
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
    overflow: hidden;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.advantage-item h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.advantage-item p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Секция "Продукция" */
#products {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

#products h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.product-item {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    width: calc(25% - 40px);
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.3s;
    overflow: hidden;
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.product-item h3 {
    margin-top: 20px;
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
}

.product-item p {
    font-size: 16px;
    margin: 15px 0;
    color: var(--text-color);
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 10px;
}
/* Секция "Точки продаж" */
#sales-points {
    padding: 80px 0;
    background-color: var(--background-color);
}

#sales-points h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
}

.sales-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.sales-item {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    width: calc(33.333% - 40px);
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sales-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
}

.sales-item h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.sales-item p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .sales-item {
        width: calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    .sales-item {
        width: 100%;
    }
}

.premium-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    color: var(--secondary-color);
    background-color: var(--primary-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.premium-button:hover {
    background-color: #d1a96f;
    transform: translateY(-3px);
}

/* Секция "Контакты" */
.footer {
    padding: 60px 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-top: 1px solid #333;
}

.footer h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer p, .footer a {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s;
}

.social-links img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center; /* Центрирование иконок */
    }

    .social-links a {
        display: inline-block;
    }
}

@media (max-width: 576px) {
    .social-links {
        flex-direction: column; /* Расположение иконок вертикально */
        align-items: center;
        gap: 15px; /* Расстояние между иконками */
    }

    .social-links a {
        width: 40px;
        height: 40px;
    }

    .social-links img {
        width: 100%;
        height: 100%;
    }
}
/* Модальное окно проверки возраста */
.age-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.age-modal-content {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    color: var(--text-color);
}

.age-modal-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.age-modal-content p {
    font-size: 16px;
    margin-bottom: 30px;
}

.age-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.age-button {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    background-color: var(--primary-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.age-button:hover {
    background-color: #d1a96f;
}

.age-button-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.age-button-outline:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .product-item,
    .advantage-item,
    .news-card {
        width: calc(33.333% - 40px);
    }
}

@media (max-width: 768px) {
    .logo-img {
        width: 40px;
        height: 40px;
    }

    .hero-text h2 {
        font-size: 36px;
    }

    .hero-text p {
        font-size: 20px;
    }

    .product-item,
    .advantage-item,
    .news-card {
        width: calc(50% - 40px);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        padding: 20px;
        border-top: 1px solid #333;
    }

    .nav-links.show {
        display: flex;
    }

    .burger-menu {
        display: flex;
    }

}

@media (max-width: 576px) {
    .hero-text h2 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .product-item,
    .advantage-item,
    .news-card {
        width: 100%;
    }

    .age-modal-content {
        padding: 30px 20px;
    }

    .age-modal-content h2 {
        font-size: 24px;
    }

    .age-modal-content p {
        font-size: 14px;
    }

    .age-button {
        padding: 12px 20px;
        font-size: 14px;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
}

.hover-zoom {
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.phone-link {
    color: var(--primary-color); /* Использование вашей основной цветовой переменной */
    text-decoration: none;
    font-weight: 600;
}

.phone-link:hover {
    text-decoration: underline;
    color: #d1a96f; /* Легкий эффект при наведении */
}
/* Обновление стилей для секции "Рекомендуемые продукты" */
#recommended-products {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

#recommended-products h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

.recommended-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.recommended-item {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    width: calc(25% - 40px);
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.3s;
    overflow: hidden;
}

.recommended-item img {
    width: 100%;
    height: 250px; /* Установите фиксированную высоту для выравнивания */
    object-fit: cover; /* Обеспечивает заполнение изображения без искажения */
    border-radius: 8px;
    transition: transform 0.3s;
}

.recommended-item h3 {
    margin-top: 20px;
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
}

.recommended-item p {
    font-size: 16px;
    margin: 15px 0;
    color: var(--text-color);
}

.recommended-item:hover {
    transform: translateY(-10px);
}

.recommended-item:hover img {
    transform: scale(1.05);
}

/* Улучшение стиля текста в секции "Описание продукта" */
.product-description h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.product-description p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: justify; /* Выравнивание текста по ширине для лучшей читаемости */
}

/* Обновление стилей для изображений продукта */
.product-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.product-images img {
    width: 100%;
    height: 300px; /* Установите фиксированную высоту для выравнивания */
    object-fit: cover; /* Обеспечивает заполнение изображения без искажения */
    border-radius: 12px;
}

/* Адаптивность для секции "Рекомендуемые продукты" */
@media (max-width: 1024px) {
    .recommended-item,
    .product-item,
    .advantage-item {
        width: calc(33.333% - 40px);
    }

    .product-images img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .recommended-item,
    .product-item,
    .advantage-item {
        width: calc(50% - 40px);
    }

    .product-images img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .recommended-item,
    .product-item,
    .advantage-item {
        width: 100%;
    }

    .product-images img {
        height: 150px;
    }

    .product-description p {
        font-size: 16px;
    }

    #recommended-products h2 {
        font-size: 28px;
    }
}

/* Дополнительные улучшения для секции "Описание продукта" */
.product-detail-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
}

.product-images,
.product-description {
    flex: 1 1 45%;
}

@media (max-width: 768px) {
    .product-detail-content {
        flex-direction: column;
        align-items: center;
    }

    .product-images,
    .product-description {
        flex: 1 1 100%;
    }
}
