/* ---------------------------------------------------- */
/* ГЛОБАЛЬНЫЕ СТИЛИ: ТЕМА BLANKET COMFORT (Одеяла) */
/* ---------------------------------------------------- */
:root {
    /* Глубокий, премиальный марсала/темно-коричневый для фона и темного текста */
    --primary-deep: #582C40; 
    /* Теплый, роскошный золотисто-желтый для акцентов (заменил неоновый синий) */
    --accent-neon: #E7B84A; 
    --text-dark: #383838; /* Более теплый темно-серый */
    --text-light: #ffffff; 
    --bg-light: #F7F4F0; /* Кремовый/Off-White для светлого фона */
    --bg-secondary: #EDE8E0; /* Светлый бежевый для второстепенного фона */
    
    /* Современная, мягкая тень (на основе нового primary цвета) */
    --shadow-soft: 0 10px 30px rgba(88, 44, 64, 0.15); 
}

* {
    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; 
}

.container {
    max-width: 1280px; 
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------------------------------------------- */
/* НАВИГАЦИЯ И ШАПКА */
/* ---------------------------------------------------- */
.navbar {
    background-color: var(--text-light);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8em;
    font-weight: 900;
    color: var(--primary-deep);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-neon);
}

/* Иконка корзины */
.cart-icon {
    background: none;
    border: none;
    color: var(--primary-deep);
    font-size: 1.5em;
    cursor: pointer;
    position: relative;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cart-icon:hover {
    background-color: var(--bg-secondary);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-neon);
    color: var(--primary-deep);
    font-size: 0.7em;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---------------------------------------------------- */
/* HERO СЕКЦИЯ (Одеяла) */
/* ---------------------------------------------------- */
.main-hero { 
    background: linear-gradient(135deg, var(--primary-deep), #7a3e59); 
    color: var(--text-light);
    padding: 80px 0;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 40px;
}

.hero-image {
    height: 300px; 
    margin-top: 50px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-neon);
    color: var(--primary-deep);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 15px rgba(231, 184, 74, 0.4); 
    margin: 20px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(231, 184, 74, 0.6);
}

/* ---------------------------------------------------- */
/* ОБЩИЕ СЕКЦИИ */
/* ---------------------------------------------------- */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5em;
    font-weight: 900;
    color: var(--primary-deep);
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    font-size: 1.2em;
    font-weight: 400;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 30px;
}

/* ---------------------------------------------------- */
/* ПРЕИМУЩЕСТВА */
/* ---------------------------------------------------- */
.comfort-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.advantage-card {
    padding: 30px;
    background-color: var(--text-light);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 3em;
    color: var(--accent-neon);
    margin-bottom: 15px;
}

.advantage-card h3 {
    font-size: 1.4em;
    color: var(--primary-deep);
    margin-bottom: 10px;
}

/* ---------------------------------------------------- */
/* КАТАЛОГ (Одеяла) */
/* ---------------------------------------------------- */
.blanket-catalog { 
    padding: 80px 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--text-light);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(88, 44, 64, 0.25);
}

.product-image {
    width: 100%;
    height: 250px; 
    background-size: cover;
    background-position: center;
}

.product-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-deep);
    padding: 15px 20px 5px;
}

.product-description {
    color: #6c757d;
    padding: 0 20px 10px;
    font-size: 0.95em;
}

.product-price {
    font-size: 1.8em;
    font-weight: 900;
    color: var(--accent-neon);
    padding: 0 20px 15px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-deep);
    color: var(--text-light);
    border: none;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 0 0 15px 15px;
}

.add-to-cart-btn:hover {
    background-color: var(--accent-neon);
    color: var(--primary-deep);
}

/* ---------------------------------------------------- */
/* ОТЗЫВЫ (Glassmorphism) */
/* ---------------------------------------------------- */
.client-reviews { 
    background-color: var(--bg-secondary);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-deep);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-name {
    font-weight: 700;
    font-size: 1.2em;
}

.review-rating {
    color: gold; 
}

.review-text {
    font-style: italic;
    line-height: 1.8;
}


/* ---------------------------------------------------- */
/* НОВЫЙ БЛОК СТАТЕЙ (БЛОГ) */
/* ---------------------------------------------------- */
.article-blog-section {
    background-color: var(--bg-light); 
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--text-light);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(88, 44, 64, 0.25);
}

.article-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 20px;
}

.article-tag {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 700;
    color: var(--primary-deep);
    background-color: var(--accent-neon);
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.article-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-deep);
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 0.9em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.read-more-link {
    color: var(--accent-neon);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more-link:hover {
    color: var(--primary-deep);
}


/* ---------------------------------------------------- */
/* ДОСТАВКА И ИНФОБЛОКИ */
/* ---------------------------------------------------- */
.delivery-columns, .info-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.delivery-info, .info-block {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.delivery-icon, .info-icon {
    font-size: 3em;
    color: var(--accent-neon);
    margin-bottom: 15px;
}

.delivery-info h3, .info-block h3 {
    color: var(--primary-deep);
    margin-bottom: 10px;
}

/* FAQ Аккордеон */
.faq-title {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-deep);
    text-align: center;
    margin-bottom: 30px;
    margin-top: 20px;
}

.faq-accordion {
    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: #f0f3f2;
}

.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 {
    padding: 0 20px;
    background-color: var(--bg-light);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 15px 0 20px 0;
    color: var(--text-dark);
}

/* ---------------------------------------------------- */
/* МОДАЛЬНЫЕ ОКНА (Корзина и Товар) */
/* ---------------------------------------------------- */
.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);
}

.modal-content {
    background-color: var(--bg-light);
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-btn {
    color: var(--primary-deep);
    float: right;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--accent-neon);
    text-decoration: none;
}

/* Стили для просмотра товара */
.product-modal-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 30px;
    align-items: center;
}

.modal-image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.modal-info-container {
    padding-top: 20px;
}

.modal-info-container h2 {
    font-size: 2.5em;
    color: var(--primary-deep);
    margin-bottom: 10px;
}

.modal-variant {
    font-size: 1.2em;
    color: #6c757d;
    margin-bottom: 15px;
}

.modal-price {
    font-size: 2.5em;
    font-weight: 900;
    color: var(--accent-neon);
    margin-bottom: 25px;
}

.modal-description {
    font-size: 1.1em;
    margin-bottom: 30px;
}

#modal-add-to-cart-btn {
    width: 80%;
}

/* Стили для корзины */
.cart-items-list {
    list-style: none;
    padding: 0;
    border-top: 1px solid var(--bg-secondary);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--bg-secondary);
}

.cart-item-info {
    font-weight: 600;
    color: var(--primary-deep);
    flex-grow: 1;
}

.cart-item-price {
    font-weight: 700;
    color: var(--text-dark);
    margin-right: 20px;
}

.remove-item-btn {
    background: none;
    border: 1px solid var(--primary-deep);
    color: var(--primary-deep);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.remove-item-btn:hover {
    background-color: var(--primary-deep);
    color: var(--text-light);
}

.cart-empty-message {
    text-align: center;
    padding: 30px 0;
    font-style: italic;
    color: #6c757d;
}

.cart-summary {
    text-align: right;
    padding: 20px 0;
    font-size: 1.5em;
    font-weight: 700;
    border-top: 2px solid var(--primary-deep);
    margin-top: 20px;
}

.cart-summary span {
    color: var(--accent-neon);
    margin-left: 10px;
}

#checkout-btn {
    width: 100%;
    margin-top: 20px;
}

/* Стили для оформления заказа */
.checkout-form {
    padding: 20px 0;
}

.checkout-form h4 {
    color: var(--primary-deep);
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--bg-secondary);
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-neon);
    outline: none;
}

.back-to-cart-btn {
    background: none;
    border: none;
    color: var(--primary-deep);
    font-size: 1em;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
}

/* ---------------------------------------------------- */
/* FOOTER */
/* ---------------------------------------------------- */
.footer {
    background-color: var(--primary-deep);
    color: var(--bg-secondary);
    padding: 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-block h3, .footer-block h4 {
    color: var(--accent-neon);
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-block p, .footer-block li {
    font-size: 0.9em;
    margin-bottom: 10px;
}

.footer-block a {
    color: var(--bg-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-block a:hover {
    color: var(--accent-neon);
}

.footer-block ul {
    list-style: none;
    padding: 0;
}

/* ---------------------------------------------------- */
/* УВЕДОМЛЕНИЯ */
/* ---------------------------------------------------- */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-deep);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.notification.show {
    opacity: 1;
    visibility: visible;
}

.notification i {
    color: var(--accent-neon);
    margin-right: 10px;
    font-size: 1.2em;
}

.notification.error {
    background-color: #e74c3c;
}

.notification.error i {
    color: var(--text-light);
}

/* ---------------------------------------------------- */
/* АДАПТИВНОСТЬ */
/* ---------------------------------------------------- */
@media (max-width: 992px) {
    .nav-links {
        display: none; 
    }
    .navbar-content {
        justify-content: space-around;
    }
    .hero-title {
        font-size: 2.5em;
    }
    .hero-subtitle {
        font-size: 1.2em;
    }
    .modal-content {
        margin: 10% auto;
    }
    .product-modal-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    #modal-add-to-cart-btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 2em;
    }
    .navbar-content {
        padding: 10px 0;
    }
    .logo {
        font-size: 1.5em;
    }
    .hero-title {
        font-size: 2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .modal-content {
        margin: 5% 10px;
        width: calc(100% - 20px);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-block h3, .footer-block h4 {
        margin-top: 20px;
    }
}
/* Стили для блока "Как заказать" */
.how-to-order-section {
    padding: 60px 0;
    background-color: var(--bg-light); /* Светлый фон */
    text-align: center;
}

.order-steps {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--text-light); /* Белый фон внутри */
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.order-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: left;
    counter-reset: step-counter; /* Инициализация счетчика */
}

.order-list li {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.5;
}

.order-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.3em;
    font-weight: 900;
    color: var(--primary-deep); /* Цвет номера шага */
}

.order-icon-step {
    color: var(--accent-neon);
    margin-right: 5px;
}

.order-note {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-deep);
    padding: 15px;
    border: 2px solid var(--accent-neon);
    border-radius: 8px;
    display: inline-block;
}
/* ---------------------------------------------------- */
/* COOKIE CONSENT PLANK СТИЛИ */
/* ---------------------------------------------------- */
.cookie-consent-plank {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-deep); /* Темный фон, как у навигации */
    color: var(--text-light);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%); /* Скрыто по умолчанию */
    transition: transform 0.5s ease-out;
}

.cookie-consent-plank.show {
    transform: translateY(0); /* Показать плашку */
}

.cookie-plank-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.cookie-plank-content p {
    flex-grow: 1;
    margin-right: 20px;
    line-height: 1.4;
}

.cookie-plank-content a {
    color: var(--accent-neon);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-accept-btn {
    flex-shrink: 0;
    padding: 10px 25px;
    background: var(--accent-neon);
    color: var(--primary-deep);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}

.cookie-accept-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .cookie-plank-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-plank-content p {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .cookie-accept-btn {
        width: 100%;
        max-width: 250px;
    }
}