* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f9f9f9;
    color: #1e1e2a;
    line-height: 1.6;
}

h1, h2, h3, h4, .logo, .menu-list a, .cart-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
header {
    background: #0b0b15;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo a {
    font-size: 28px;
    font-weight: 800;
    color: #ffc107;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: white;
    font-size: 14px;
    display: block;
    font-weight: 400;
}

.phone {
    font-size: 22px;
    font-weight: 700;
    background: #2a2a3a;
    padding: 8px 18px;
    border-radius: 40px;
    border: 1px solid #ffc107;
    color: #ffc107;
    text-decoration: none;
    transition: 0.2s;
}

.phone i {
    margin-right: 8px;
    color: white;
}

.phone:hover {
    background: #ffc107;
    color: #0b0b15;
}

.phone:hover i {
    color: #0b0b15;
}

.search-box {
    flex: 1;
    max-width: 400px;
    display: flex;
    background: white;
    border-radius: 40px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
}

.search-box button {
    background: #ffc107;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 18px;
    color: #0b0b15;
    transition: 0.2s;
}

.search-box button:hover {
    background: #e0a800;
}

.cart-icon {
    position: relative;
    margin-left: 5px;
}

.cart-icon a {
    color: white;
    font-size: 26px;
    display: block;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffc107;
    color: #0b0b15;
    font-size: 14px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Меню под шапкой */
.main-menu {
    background: #1a1a28;
    border-top: 1px solid #2f2f40;
    border-bottom: 1px solid #2f2f40;
    position: relative;
    z-index: 99;
}

.menu-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.menu-list li a {
    display: block;
    padding: 14px 18px;
    color: #ddd;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: 0.2s;
    border-bottom: 3px solid transparent;
}

.menu-list li a:hover,
.menu-list li a.active {
    color: #ffc107;
    border-bottom-color: #ffc107;
    background: rgba(255,193,7,0.05);
}

/* Основной контент */
main {
    min-height: 70vh;
    padding: 30px 0;
}

.page {
    display: none;
}

.page.active-page {
    display: block;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-header h1 {
    font-size: 48px;
    font-weight: 800;
    color: #0b0b15;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.category-header h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 4px;
    background: #ffc107;
}

.section-title {
    font-size: 36px;
    margin: 40px 0 20px;
    text-align: center;
    color: #0b0b15;
}

/* Стили SEO-текста */
.seo-text {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    font-size: 16px;
    color: #333;
}

.seo-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #0b0b15;
    font-weight: 800;
    border-left: 5px solid #ffc107;
    padding-left: 15px;
}

.seo-text h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #0b0b15;
}

.seo-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.seo-text .lead {
    font-size: 20px;
    font-weight: 300;
    color: #555;
    font-style: italic;
}

.seo-text .highlight {
    background: #fff3cd;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 600;
}

.seo-text ul, .seo-text ol {
    margin: 20px 0 20px 40px;
}

.seo-text li {
    margin-bottom: 10px;
}

.seo-text img {
    max-width: 100%;
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.seo-text .quote {
    font-size: 24px;
    font-family: 'Georgia', serif;
    color: #0b0b15;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 30px;
    margin: 30px 0;
    text-align: center;
}

.seo-text .columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Сетка товаров */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border-radius: 24px;
    padding: 20px 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: 0.2s;
    text-align: center;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
}

.product-img {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    margin-bottom: 15px;
    object-fit: cover;
    background: #f0f0f5;
}

.product-title {
    font-weight: 700;
    font-size: 18px;
    margin: 10px 0 5px;
}

.product-price {
    font-size: 22px;
    font-weight: 800;
    color: #0b0b15;
    margin: 10px 0;
}

.add-to-cart {
    background: #ffc107;
    border: none;
    padding: 12px 0;
    width: 100%;
    border-radius: 40px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    color: #0b0b15;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart:hover {
    background: #e0a800;
}

/* Форма заявки */
.order-form-block {
    background: white;
    border-radius: 30px;
    padding: 40px;
    margin: 50px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #ffc107;
}

.order-form-block h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #0b0b15;
}

.order-form-block form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
    gap: 15px;
}

.order-form-block input {
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: 0.2s;
}

.order-form-block input:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255,193,7,0.2);
}

.order-form-block button {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.order-form-block button:hover {
    background: #218838;
}

.order-message {
    margin-top: 20px;
    font-weight: 600;
    color: green;
}

/* Корзина */
.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
    transition: 0.3s;
    z-index: 1000;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.cart-panel.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.cart-header h3 {
    font-size: 24px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin: 20px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cart-item-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: 700;
}

.cart-item-remove {
    color: red;
    cursor: pointer;
    font-size: 18px;
}

.cart-total {
    font-size: 22px;
    font-weight: 800;
    margin: 15px 0;
    text-align: right;
}

.cart-form input, .cart-form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-family: inherit;
}

.cart-form button {
    background: #28a745;
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 40px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.cart-form button:hover {
    background: #218838;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.overlay.show {
    display: block;
}

/* Футер */
footer {
    background: #0b0b15;
    color: #aaa;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: 0.2s;
}

.footer-col ul li a:hover {
    color: #ffc107;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2a2a3a;
    font-size: 14px;
}

/* Стили для FAQ (аккордеон) */
.faq-item {
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}
.faq-question {
    background: #f7f7f7;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    transition: background 0.3s;
}
.faq-question:hover {
    background: #f0f0f0;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    font-weight: 400;
}
.faq-item.active .faq-question::after {
    content: '−';
}
.faq-answer {
    max-height: 0;
    padding: 0 20px;
    background: #fff;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-item.active .faq-answer {
    max-height: 500px; /* Достаточно для длинного ответа */
    padding: 15px 20px;
}
.reviews-block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}
.review-item {
    flex: 1 1 250px;
    background: #f9f9f9;
    border-left: 4px solid #e53e3e;
    padding: 15px;
    border-radius: 8px;
    font-style: italic;
}
.review-item p {
    margin: 0;
}

/* Адаптивность */
@media (max-width: 992px) {
    .header-row {
        justify-content: center;
    }
    .search-box {
        max-width: 100%;
        order: 3;
    }
    .menu-list li a {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    /* Скрываем поиск на мобильных устройствах */
    .search-box {
        display: none;
    }
}

@media (max-width: 576px) {
    .cart-panel {
        width: 100%;
        right: -100%;
    }
    .category-header h1 {
        font-size: 32px;
    }
}
