/* ---------------------------------------------------- */
/* ГЛОБАЛЬНЫЕ СТИЛИ: ПРЕМИУМ-ДИЗАЙН И НОВЫЕ ЦВЕТА */
/* ---------------------------------------------------- */
:root {
  /* Глубокий Какао для фона и темного текста */
  --primary-deep: #5e351f;
  /* Мягкое Золото для акцентов и привлечения внимания */
  --accent-neon: #FFC300;
  --text-dark: #4a433e; /* Темный Кофе для читаемости */
  --text-light: #ffffff;
  --bg-light: #fffaf0; /* Кремовый/Ванильный фон */
  --bg-secondary: #e8e4db; /* Светлый Тауп/Бежевый для чередования секций */
  
  /* Современная, мягкая тень */
  --shadow-soft: 0 10px 30px rgba(94, 53, 31, 0.15);
  /* Теплый цвет для цен со скидкой */
  --sale-price-color: #cc4422;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
  scroll-behavior: smooth;
}
.img_banner {
    display:none;
}
/* КОНЕЦ ИЗМЕНЕНИЯ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5em;
  font-weight: 900;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-deep);
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  font-size: 1.1em;
  color: var(--text-dark);
}


/* ---------------------------------------------------- */
/* HEADER & NAVIGATION */
/* ---------------------------------------------------- */
header {
  background-color: var(--text-light);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo a {
  font-size: 1.5em;
  font-weight: 900;
  color: var(--primary-deep);
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav ul {
  list-style: none;
  display: flex;
}

.main-nav ul li a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  padding: 10px 15px;
  transition: color 0.3s;
}

.main-nav ul li a:hover {
  color: var(--accent-neon);
}

.header-actions {
  display: flex;
  align-items: center;
}

.phone-link {
  color: var(--primary-deep);
  text-decoration: none;
  font-weight: 700;
  margin-right: 20px;
  padding: 5px 0;
  transition: color 0.3s;
}

.phone-link:hover {
  color: var(--accent-neon);
}

.cart-button {
  background: var(--accent-neon);
  color: var(--primary-deep); /* Цвет иконки меняем на темный, чтобы был контраст */
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1em;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cart-button:hover {
  background-color: #e0ac00; /* Темнее золотой при наведении */
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--primary-deep);
  color: var(--text-light);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7em;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  color: var(--primary-deep);
  cursor: pointer;
}


/* ---------------------------------------------------- */
/* HERO SECTION (Баннер) */
/* ---------------------------------------------------- */
.hero {
    position: relative;
    color: #fff; /* Цвет текста на баннере */
    text-align: center;
    padding: 100px 20px; /* Отступы сверху/снизу */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Минимальная высота секции */
    background-image: url('img/hero_blanket.jpg'); /* Укажите путь к вашему изображению */
    background-size: cover; /* Изображение будет покрывать всю секцию */
    background-position: center; /* Центрируем изображение */
    background-repeat: no-repeat; /* Запрещаем повторение */
    box-shadow: inset 0 0 0 2000px rgb(94 53 31 / 40%); /* Полупрозрачная темная накладка для лучшей читаемости текста */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 45%;
  color: var(--text-light);
  padding: 40px 0;
}

.hero-title {
  font-size: 3.5em;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.3em;
  margin-bottom: 30px;
  font-weight: 400;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 0.3s, opacity 0.3s;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
}

.primary-cta {
  background-color: var(--accent-neon);
  color: var(--primary-deep);
  box-shadow: 0 5px 15px rgba(255, 195, 0, 0.4); /* Теплая тень */
}

.primary-cta:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* ---------------------------------------------------- */
/* PRODUCTS SECTION (Каталог) */
/* ---------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--text-light);
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.product-name {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-deep);
}

.product-desc {
  color: #666;
  margin-bottom: 15px;
  height: 40px;
  overflow: hidden;
}

.price-block {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 1em;
}

.current-price {
  font-size: 1.6em;
  font-weight: 900;
  color: var(--sale-price-color); /* Используем теплый красный/терракотовый */
}

.add-to-cart-btn {
  width: 100%;
  background-color: var(--primary-deep);
  color: var(--text-light);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
  background-color: #7b4530; /* Чуть светлее какао */
}

/* ---------------------------------------------------- */
/* СТИЛИ ДЛЯ БЛОКА WILDВERRIES (Карточки-ссылки) */
/* ---------------------------------------------------- */

.marketplace-card {
    text-decoration: none; /* Убираем подчеркивание для ссылки */
    color: var(--text-dark); /* Сохраняем цвет текста */
    display: flex; /* Делаем гибким контейнером */
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Занимает всю высоту в сетке */
    cursor: pointer;
}

/* Изменение стиля кнопки для маркетплейса */
.marketplace-card .add-to-cart-btn {
    background-color: var(--accent-neon); /* Используем золотой акцент */
    color: var(--primary-deep);
    font-size: 1.1em;
    font-weight: 700;
    margin-top: auto; /* Прижимаем кнопку вниз */
    /* Важно: отключаем клик по кнопке, так как клик по всей карточке-ссылке сработает */
    pointer-events: none; 
}

.marketplace-card .add-to-cart-btn:hover {
    background-color: #e0ac00; /* Темнее золотой при наведении */
}

/* Стиль для текста-артикула, чтобы он отличался от описания */
.marketplace-card .product-desc {
    font-weight: 600;
    color: var(--primary-deep); /* Используем глубокий какао для артикула */
    height: auto; /* Убираем фиксированную высоту */
    font-size: 1em;
}


/* ---------------------------------------------------- */
/* FEATURES SECTION (Преимущества) */
/* ---------------------------------------------------- */
.bg-secondary {
  background-color: var(--bg-secondary);
}
/* ... (остальные стили, которые были ранее, остаются без изменений) */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.feature-item {
  padding: 30px;
  background-color: var(--text-light);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-item i {
  font-size: 2.5em;
  color: var(--accent-neon);
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 10px;
}


/* ---------------------------------------------------- */
/* REVIEWS SECTION (Отзывы) */
/* ---------------------------------------------------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.review-card {
  background-color: var(--text-light);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
  border-left: 5px solid var(--accent-neon);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.review-rating {
  color: gold;
  font-size: 1em;
}

.review-text {
  font-style: italic;
  margin-bottom: 15px;
}

.review-author {
  font-weight: 600;
  text-align: right;
  color: var(--primary-deep);
}

.secondary-cta {
  background-color: var(--text-dark);
  color: var(--text-light);
  border: 2px solid var(--text-dark);
  display: block;
  width: 250px;
  margin: 0 auto;
  text-align: center;
}

.secondary-cta:hover {
  background-color: #6b625c; /* Чуть светлее Dark Coffee */
  transform: translateY(-3px);
}

/* ---------------------------------------------------- */
/* BLOG/POSTS SECTION */
/* ---------------------------------------------------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  display: block;
  text-decoration: none;
  background-color: var(--text-light);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(94, 53, 31, 0.2);
}

.post-image-placeholder {
  height: 150px;
  background-color: var(--primary-deep);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3em;
  color: var(--accent-neon);
}

.post-card .post-title {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text-dark);
  padding: 15px 20px 10px 20px;
}

.post-card .post-meta {
  padding: 0 20px 20px 20px;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-meta i {
  color: var(--accent-neon);
}

/* СТИЛИ ДЛЯ ОТДЕЛЬНЫХ СТРАНИЦ ПОСТОВ */
.post-header {
  background-color: var(--primary-deep);
  color: var(--text-light);
  padding: 60px 0 40px 0;
  margin-bottom: 40px;
  text-align: center;
}

.post-title-page {
  font-size: 2.5em;
  font-weight: 900;
  margin-bottom: 15px;
}

.post-meta-page {
  font-size: 1.1em;
  opacity: 0.8;
}

.post-content {
  max-width: 800px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.post-content h2 {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--primary-deep);
  margin: 30px 0 15px 0;
  border-left: 5px solid var(--accent-neon);
  padding-left: 10px;
}

.post-content h3 {
  font-size: 1.3em;
  font-weight: 600;
  margin: 20px 0 10px 0;
  color: var(--text-dark);
}

.post-content p {
  margin-bottom: 15px;
}

.post-content ul {
  margin: 15px 0 15px 20px;
  list-style: disc;
}

.post-content li {
  margin-bottom: 5px;
}

/* ---------------------------------------------------- */
/* FAQ SECTION (Аккордеон) */
/* ---------------------------------------------------- */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--primary-deep);
  background-color: var(--text-light);
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: #fcf6f0; /* Светлее кремового при наведении */
}

.faq-icon {
  font-size: 0.8em;
  transition: transform 0.3s;
  color: var(--accent-neon);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background-color: #fcfcfc;
}

.faq-answer-text {
  padding: 0 20px 20px 20px;
  color: #555;
}

/* ---------------------------------------------------- */
/* FOOTER */
/* ---------------------------------------------------- */
.footer {
  padding: 50px 0;
  color: rgba(255, 255, 255, 0.8);
}

.bg-primary-deep {
  background-color: var(--primary-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-block h4 {
  color: var(--accent-neon);
  font-size: 1.2em;
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-block p, .footer-block ul {
  margin-bottom: 10px;
}

.footer-block ul {
  list-style: none;
  padding: 0;
}

.footer-block ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  line-height: 2;
  transition: color 0.3s;
}

.footer-block ul li a:hover {
  color: var(--text-light);
}

.footer-block i {
  margin-right: 10px;
  color: var(--accent-neon);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------------------------------------------------- */
/* MODAL & CART STYLES (ОБНОВЛЕНО) */
/* ---------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* Чуть темнее фон для премиальности */
    backdrop-filter: blur(8px); /* Увеличим размытие */
}

.modal-content {
    background-color: var(--text-light);
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px; /* Ограничим ширину корзины */
    position: relative;
    
    /* НОВЫЙ ДИЗАЙН: Акцентная рамка и яркая тень в стилистике Какао/Золото */
    border: 2px solid var(--accent-neon); 
    box-shadow: 0 15px 45px rgba(94, 53, 31, 0.4); 
    
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    color: var(--primary-deep);
    float: right;
    font-size: 40px; /* Сделаем чуть крупнее */
    font-weight: 200; /* Более тонкий крестик */
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s, color 0.2s;
}

.close-button:hover,
.close-button:focus {
    color: var(--sale-price-color);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2.2em; /* Чуть больше */
    font-weight: 900;
    color: var(--primary-deep);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent-neon); /* Золотая линия-разделитель */
    padding-bottom: 10px;
    text-align: center;
}

/* ------------------ СТИЛИ ДЛЯ СПИСКА ТОВАРОВ КОРЗИНЫ (cart-list) ------------------ */

.cart-list { /* Стиль для тега <ul>, генерируемого JS */
    list-style: none;
    padding: 0;
    max-height: 350px; 
    overflow-y: auto;
    margin-bottom: 20px;
}

/* Улучшенный скроллбар для эстетики */
.cart-list::-webkit-scrollbar {
    width: 6px;
}
.cart-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-deep);
    border-radius: 3px;
}
.cart-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}


.cart-item-row { /* Целевой класс из JS для строки товара */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed var(--bg-secondary);
    font-size: 16px;
}
.cart-item-row:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 700;
    color: var(--primary-deep);
    flex-basis: 35%; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: var(--bg-secondary);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px; /* Более угловатый, премиальный дизайн */
    color: var(--primary-deep);
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px; /* Увеличим размер символов */
    line-height: 1;
}
.quantity-btn:hover {
    background-color: var(--accent-neon);
    color: var(--primary-deep);
    transform: scale(1.05);
}

.item-quantity {
    min-width: 35px;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
}

.item-price {
    font-weight: 900;
    color: var(--primary-deep);
    min-width: 90px;
    text-align: right;
    font-size: 18px;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--sale-price-color); /* Используем цвет скидки для удаления */
    font-size: 26px; 
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 0 5px;
    line-height: 1;
}

.remove-item-btn:hover {
    color: var(--primary-deep);
    transform: rotate(15deg);
}

/* ------------------ ИТОГОВАЯ СУММА ------------------ */
.cart-summary {
    text-align: right;
    padding-top: 15px;
    padding-bottom: 5px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-deep);
    border-top: 2px solid var(--primary-deep); /* Жирная линия */
    
    /* Стили для выравнивания суммы и кнопки "Оформить заказ" */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#cart-total-amount {
    color: var(--sale-price-color); 
    font-size: 1.8em; 
    font-weight: 900;
}

.checkout-button {
    /* Должен быть primary-cta */
    width: 100%;
    margin-top: 20px;
    font-size: 1.1em;
    padding: 15px 0;
}

.cart-empty-message {
    text-align: center;
    color: #999;
    padding: 30px 0;
    font-style: italic;
    font-size: 1.1em;
    color: var(--text-dark);
}

/* ---------------------------------------------------- */
/* CHECKOUT MODAL STYLES (ОБНОВЛЕНО) */
/* ---------------------------------------------------- */
#checkout-modal .modal-content {
    max-width: 700px;
    /* Убираем акцентную рамку, оставляем мягкую тень */
    border: none;
    box-shadow: var(--shadow-soft);
}

.order-summary-block {
    margin-bottom: 30px;
    padding: 20px; /* Увеличим отступы */
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border-left: 5px solid var(--accent-neon); /* Акцентная линия */
}

.checkout-list { /* Стили для списка товаров на странице оформления */
    list-style: none;
    padding: 0;
}

.checkout-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
    font-size: 1em;
    color: var(--text-dark);
}

.checkout-list li:last-child {
    border-bottom: none;
}

.checkout-list .item-name {
    font-weight: 600;
}

.checkout-list .item-details {
    font-weight: 700;
    color: var(--primary-deep);
}


.checkout-form .form-group {
    margin-bottom: 20px;
}

.checkout-form label {
    display: block;
    font-weight: 700; /* Чуть жирнее */
    margin-bottom: 8px;
    color: var(--primary-deep);
}

.checkout-form input[type="text"],
.checkout-form input[type="tel"],
.checkout-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--bg-secondary);
    border-radius: 8px; /* Чуть больше радиус */
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: var(--accent-neon);
    box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.3);
    outline: none;
}

.final-summary {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--accent-neon);
    font-size: 1.5em;
    font-weight: 900;
}

.confirm-order-btn {
    width: 100%;
    margin-bottom: 15px;
    padding: 15px;
    font-size: 1.1em;
}

.back-to-cart-btn {
    width: 100%;
    background-color: var(--bg-secondary);
    color: var(--primary-deep);
    border: none; /* Убираем рамку */
    padding: 12px 0;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.back-to-cart-btn:hover {
    background-color: #d1cbc1; /* Темнее бежевый */
}

/* ---------------------------------------------------- */
/* УВЕДОМЛЕНИЯ И ПРЕДУПРЕЖДЕНИЯ */
/* ---------------------------------------------------- */
.notification-area {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3000;
}

.notification {
  background-color: #38c172;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.4s ease-out;
  font-weight: 600;
}

.notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.incognito-warning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--sale-price-color); /* Теплый красный для предупреждения */
  color: var(--text-light);
  padding: 15px;
  text-align: center;
  z-index: 5000;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.incognito-warning button {
  background: var(--text-light);
  color: var(--sale-price-color);
  border: none;
  padding: 5px 15px;
  margin-left: 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
}


/* ---------------------------------------------------- */
/* MEDIA QUERIES (Адаптивность) */
/* ---------------------------------------------------- */
@media (max-width: 1024px) {
  .main-nav ul li a {
    padding: 10px 10px;
  }

  .hero-title {
    font-size: 3em;
  }
  
  .hero-content {
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .header-actions .phone-link {
    display: none;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--text-light);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 10px 0;
  }

  .main-nav ul li a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--bg-secondary);
  }
  
  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 400px;
    padding: 50px 0;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    padding: 20px;
  }
  
  .hero-title {
    font-size: 2.5em;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-block ul {
    padding-left: 0;
  }
  
  .footer-block i {
    display: none;
  }
  
  .modal-content {
    margin: 5% auto;
    padding: 20px;
  }
}
/* ---------------------------------------------------- */
/* БЛОК С ОТЗЫВАМИ-КАРТИНКАМИ (Wildberries) */
/* ---------------------------------------------------- */

/* Сетка для отзывов: 3 колонки на больших экранах, адаптивная */
.reviews-grid {
    display: grid;
    /* auto-fit создаст столько колонок, сколько поместится, но не меньше 280px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.review-item {
    background-color: var(--text-light); /* Белый фон */
    border-radius: 12px;
    overflow: hidden; /* Обрезаем углы изображения */
    box-shadow: var(--shadow-soft); /* Мягкая тень, определенная в :root */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-item:hover {
    transform: translateY(-5px); /* Небольшой эффект "подъема" при наведении */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.review-item img {
    width: 100%;
    height: auto;
    display: block;
    /* Если ваши скриншоты имеют разное соотношение сторон, 
        object-fit: cover; поможет им выглядеть единообразно, 
        но лучше, если все картинки будут одного размера (например, квадратные). */
}

/* Центрирование кнопки призыва к действию */
.review-cta {
    text-align: center;
    margin-top: 20px;
}

/* Адаптивность для мобильных устройств (ширина меньше 768px) */
@media (max-width: 768px) {
    .reviews-grid {
        /* На мобильных устройствах делаем одну колонку */
        grid-template-columns: 1fr; 
        gap: 20px;
    }
}
/* ---------------------------------------------------- */
/* СТИЛИ ДЛЯ КНОПОК В КАРТОЧКЕ ТОВАРА */
/* ---------------------------------------------------- */

/* Контейнер для двух кнопок */
.product-actions {
    display: flex;
    gap: 10px; /* Расстояние между кнопками */
    margin-top: 15px;
    justify-content: space-between;
}

/* Обновление стиля для существующей кнопки 'В корзину' */
.product-actions .add-to-cart-btn {
    /* Если ваша кнопка 'В корзину' имеет класс 'add-to-cart-btn' */
    flex-grow: 1; 
    margin-top: 0; 
    font-weight: 700;
}

/* Стиль для новой кнопки 'Подробнее' (ссылка) */
.product-action-link {
    /* Стилизация под кнопку */
    display: block;
    flex-grow: 1; /* Чтобы кнопка заняла вторую половину места */
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap; /* Не переносить текст */
    
    /* Цветовая схема: делаем ее менее яркой, чем основная CTA, но видимой */
    background-color: transparent;
    color: var(--primary-deep); /* Темно-синий текст */
    border: 2px solid var(--primary-deep); /* Темно-синяя рамка */
    transition: all 0.3s ease;
}

.product-action-link:hover {
    background-color: var(--primary-deep); /* При наведении заливаем темно-синим */
    color: var(--text-light); /* Белый текст */
    border-color: var(--primary-deep); 
}

/* Адаптивность для мобильных: кнопки друг под другом */
@media (max-width: 576px) {
    .product-actions {
        flex-direction: column;
        gap: 8px;
    }
}
/* ---------------------------------------------------- */
/* СТИЛИ ГАЛЕРЕИ ТОВАРА */
/* ---------------------------------------------------- */

/* Обновление стиля контейнера галереи */
.product-gallery {
    padding: 10px;
    border: 1px solid var(--bg-secondary);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    position: sticky; /* Сохраняем "прилипание" */
    top: 30px; 
}

/* Контейнер для основного изображения */
.main-image-container {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

#main-product-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Сетка для миниатюр */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 миниатюры в ряд */
    gap: 10px;
}

.thumbnail-grid img {
    width: 100%;
    height: 80px; /* Фиксированная высота для единообразия */
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumbnail-grid img:hover {
    opacity: 1;
    border-color: var(--bg-secondary);
}

/* Активная миниатюра */
.thumbnail-grid img.active {
    opacity: 1;
    border-color: var(--accent-neon); /* Золотая рамка для активного фото */
    box-shadow: 0 0 5px rgba(255, 195, 0, 0.6);
}

/* Адаптивность: 3 колонки на очень маленьких экранах */
@media (max-width: 480px) {
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* =======================================
   Секция "О компании"
   ======================================= */

.about-us {
    /* section-padding уже добавлен в HTML, но можно добавить фон, если нужно выделить */
    background-color: var(--bg-secondary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #4a4a4a;
    font-size: 1.1em;
}

.about-content h4 {
    color: var(--primary-deep);
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.3em;
}

.about-content p {
    margin-bottom: 15px;
}

.about-list {
    margin-top: 20px;
    padding-left: 0;
}

.about-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-left: 0;
}

.about-list li i {
    color: var(--primary-deep);
    font-size: 1.2em;
    margin-right: 10px;
}

/* Стилизация жирного текста для выделения ключевых моментов */
.about-content p strong {
    font-weight: 600;
    color: #333;
}

/* Адаптация для мобильных устройств, если необходимо */
@media (max-width: 768px) {
    .about-content {
        font-size: 1em;
    }
}
/* =======================================
   СТИЛИ ДЛЯ ОТДЕЛЬНОЙ СТРАНИЦЫ СТАТЬИ
   ======================================= */

/* 1. Блок заголовка статьи */
.post-header {
    background-color: var(--primary-deep);
    color: var(--text-light);
    padding: 60px 0 40px 0;
    margin-bottom: 40px;
    text-align: center;
}

.post-title-page {
    font-size: 2.8em; /* Немного крупнее */
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
}

.post-meta-page {
    font-size: 1.1em;
    opacity: 0.8;
}

.post-meta-page i {
    color: var(--accent-neon); /* Золотые иконки */
    margin-right: 5px;
}

/* 2. Контент статьи */
.post-content {
    max-width: 1200px; /* Шире, для лучшей читаемости */
    margin: 0 auto 60px auto;
    padding: 0 20px;
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-dark);
}

.post-content h2 {
    font-size: 2em;
    font-weight: 800;
    color: var(--primary-deep);
    margin: 40px 0 20px 0;
    /* Акцентная золотая полоса слева */
    border-left: 5px solid var(--accent-neon);
    padding-left: 15px;
    line-height: 1.2;
}

.post-content h3 {
    font-size: 1.4em;
    font-weight: 700;
    margin: 25px 0 10px 0;
    color: var(--text-dark);
}

.post-content p {
    margin-bottom: 18px;
}

.post-content ul {
    margin: 15px 0 25px 20px;
    list-style: none; /* Убираем стандартные маркеры */
    padding: 0;
}

.post-content ul li {
    margin-bottom: 10px;
    padding-left: 1.5em;
    position: relative;
}

/* Кастомные золотые маркеры для списка */
.post-content ul li::before {
    content: "\2713"; /* Unicode галочка */
    font-family: 'Font Awesome 6 Free'; /* Используем Font Awesome */
    font-weight: 900;
    color: var(--accent-neon);
    position: absolute;
    left: 0;
}


/* 3. Таблица внутри статьи */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden; /* Для красивых углов */
}

.article-table th, .article-table td {
    padding: 15px;
    border: 1px solid var(--bg-secondary);
}

.article-table thead th {
    background-color: var(--primary-deep);
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
}

.article-table tbody tr:nth-child(even) {
    background-color: var(--bg-light); /* Кремовый фон */
}

.article-table tbody tr:hover {
    background-color: var(--bg-secondary); /* Светлый тауп при наведении */
}

/* 4. Кнопка в конце статьи (CTA) */
.article-cta {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

/* 5. Ссылка "Вернуться на главную" */
.back-link {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--primary-deep);
    font-weight: 600;
    margin-top: 30px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent-neon);
}

/* 6. Адаптивность для статьи */
@media (max-width: 768px) {
    .post-title-page {
        font-size: 2em;
    }
    .post-header {
        padding: 40px 0 20px 0;
    }
    .post-content h2 {
        font-size: 1.6em;
    }
    .post-content {
        font-size: 1em;
    }
    .article-table th, .article-table td {
        padding: 10px;
        font-size: 0.9em;
    }
}
    @media screen and (max-width: 600px) {
    .img_banner {
        display:block;
        width: 100%;
        height: auto;
    }

    #target-block {
        width: 100%;
    }
}