/* ==========================================================
   1. RESET & БАЗОВЫЕ СТИЛИ
   ========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================
   2. ЦВЕТОВАЯ СХЕМА (переменные)
   ========================================================== */
:root {
    --primary: #1a4d3e;
    --primary-dark: #143c30;
    --primary-light: #2a6a55;
    --accent: #d4a843;
    --accent-hover: #c49a3a;
    --gray-light: #f5f5f5;
    --gray-border: #e0e0e0;
    --white: #ffffff;
    --black: #222;
}

/* ==========================================================
   3. TOP BAR (служебная полоса)
   ========================================================== */
.top-bar {
    background: var(--gray-light);
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--gray-border);
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-links {
    display: flex;
    gap: 20px;
}
.top-bar-links a {
    color: #333;
    transition: color 0.2s;
}
.top-bar-links a:hover {
    color: var(--primary);
}
/* --- мобильная адаптация top-bar --- */
@media (max-width: 768px) {
    .top-bar-links {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12px;
    }
    .top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================
   4. MAIN HEADER (основная шапка)
   ========================================================== */
.main-header {
    background: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.logo img {
    max-height: 45px;
}
.search-box {
    flex: 1;
    max-width: 500px;
    min-width: 200px;
}
.search-box form {
    display: flex;
}
.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--primary);
    border-radius: 30px 0 0 30px;
    outline: none;
    font-size: 14px;
}
.search-box button {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.search-box button:hover {
    background: var(--primary-dark);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.btn-order {
    background: var(--accent);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.2s;
    display: inline-block;
}
.btn-order:hover {
    background: var(--accent-hover);
}
.cart-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
}
/* --- мобильная адаптация header --- */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .logo {
        text-align: center;
    }
    .logo img {
        max-height: 35px;
    }
    .search-box {
        max-width: 100%;
        min-width: unset;
    }
    .search-box input {
        font-size: 13px;
        padding: 8px 12px;
    }
    .search-box button {
        padding: 8px 16px;
        font-size: 13px;
    }
    .header-actions {
        justify-content: center;
        gap: 15px;
    }
    .btn-order {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    .cart-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================================
   5. NAVIGATION (основное меню)
   ========================================================== */
.main-nav {
    background: var(--primary);
}
.nav-inner {
    display: flex;
}
.nav-menu {
    display: flex;
    flex-wrap: wrap;
}
.nav-menu > li {
    position: relative;
}
.nav-menu > li > a {
    display: block;
    padding: 14px 20px;
    color: var(--white);
    font-weight: 500;
    transition: background 0.2s;
}
.nav-menu > li > a:hover {
    background: var(--primary-dark);
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    color: var(--black);
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 100;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: var(--black);
    transition: background 0.2s;
}
.dropdown-menu li a:hover {
    background: var(--gray-light);
}
.arrow {
    font-size: 10px;
    margin-left: 4px;
}
/* --- мобильная адаптация навигации --- */
@media (max-width: 768px) {
    .nav-inner {
        flex-direction: column;
    }
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    .nav-menu > li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-menu > li > a {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        background: var(--primary-dark);
    }
    .dropdown-menu li a {
        color: #ddd;
        padding: 8px 16px;
    }
    .dropdown-menu li a:hover {
        background: transparent;
        color: white;
    }
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* ==========================================================
   6. FOOTER
   ========================================================== */
.main-footer {
    background: var(--primary);
    color: #ccc;
    padding-top: 40px;
    margin-top: 40px;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--primary-light);
}
.footer-col h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 16px;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: #ccc;
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: var(--white);
}
.payment-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.payment-icons img {
    height: 30px;
    background: var(--white);
    padding: 4px 6px;
    border-radius: 4px;
}
.shipping-info {
    margin-top: 16px;
    font-size: 14px;
}
.footer-bottom {
    background: var(--primary-dark);
    padding: 16px 0;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}
/* --- мобильная адаптация футера --- */
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-col h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    .payment-icons {
        justify-content: center;
    }
    .footer-bottom {
        font-size: 12px;
        padding: 12px 0;
    }
}

/* ==========================================================
   7. ГЛАВНАЯ СТРАНИЦА – ОБЩИЕ БЛОКИ
   ========================================================== */

/* 7.1 HERO */
.hero {
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--gray-border);
}
.hero h1 {
    font-size: 2.8rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto;
    color: #555;
}
/* --- мобильная адаптация hero --- */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0 30px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
        margin: 15px auto;
    }
}

/* 7.2 CATEGORIES */
.section-title {
    text-align: center;
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: -0.3px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    padding: 40px 0;
}
.category-card {
    display: block;
    text-align: center;
    padding: 28px 20px;
    background: var(--gray-light);
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}
.category-card:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}
.category-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 6px;
}
.category-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}
/* --- мобильная адаптация категорий --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
        padding: 20px 0;
    }
    .category-card {
        padding: 20px 12px;
    }
    .category-card h3 {
        font-size: 1rem;
    }
    .category-card p {
        font-size: 0.8rem;
    }
}

/* 7.3 PRODUCT GRID (каталог, популярные, похожие) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    padding: 40px 0;
}
.product-card {
    display: block;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--gray-border);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}
.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.product-image {
    position: relative;
    padding-top: 100%;
    background: #f9f9f9;
}
.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.product-info {
    padding: 16px;
}
.product-info h3 {
    font-size: 1rem;
    margin: 0 0 8px 0;
    color: var(--primary);
    font-weight: 500;
}
.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.product-price .old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
}
.product-price .new {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}
/* --- мобильная адаптация product grid --- */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
        padding: 20px 0;
    }
    .product-info {
        padding: 12px;
    }
    .product-info h3 {
        font-size: 0.9rem;
    }
    .product-price .new {
        font-size: 1rem;
    }
    .product-price .old {
        font-size: 0.75rem;
    }
    .product-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
        top: 6px;
        left: 6px;
    }
}

/* 7.4 SEO-БЛОК */
.seo-block {
    padding: 40px 0;
    border-top: 1px solid var(--gray-border);
    margin-top: 20px;
}
.seo-block h2 {
    color: var(--primary);
    text-align: center;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.3px;
}
.seo-block .content {
    max-width: 800px;
    margin: 20px auto 0;
    color: #444;
    line-height: 1.8;
    font-size: 0.95rem;
}
.seo-block .content p {
    margin-bottom: 16px;
}
/* --- мобильная адаптация seo-блока --- */
@media (max-width: 768px) {
    .seo-block {
        padding: 30px 0;
    }
    .seo-block h2 {
        font-size: 1.3rem;
    }
    .seo-block .content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* ==========================================================
   8. СТРАНИЦА ТОВАРА (дополнительные стили)
   ========================================================== */
/* основные стили для страницы товара уже используются из общих,
   но добавим специфические для формы и картинки */
.product-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 20px 0 40px;
}
.product-image-wrapper {
    position: relative;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}
.product-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}
.product-image-wrapper .discount-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}
.product-info-block .product-category-label {
    color: #777;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.product-info-block h1 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 500;
    margin: 0 0 12px 0;
}
.product-info-block .price-block {
    margin: 20px 0;
}
.product-info-block .price-block .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
}
.product-info-block .price-block .new-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-left: 12px;
}
.order-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
}
.order-form input,
.order-form select {
    padding: 12px;
    border: 1px solid var(--gray-border);
    border-radius: 4px;
    font-size: 1rem;
}
.order-form button {
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 14px;
}
.benefits-block {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-border);
}
/* --- мобильная адаптация страницы товара --- */
@media (max-width: 768px) {
    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-image-wrapper {
        padding: 10px;
    }
    .product-image-wrapper img {
        max-height: 250px;
    }
    .product-info-block h1 {
        font-size: 1.5rem;
    }
    .product-info-block .price-block .new-price {
        font-size: 1.5rem;
    }
    .order-form {
        max-width: 100%;
    }
    .order-form input,
    .order-form select {
        font-size: 0.95rem;
        padding: 10px;
    }
}

/* ==========================================================
   9. ХЛЕБНЫЕ КРОШКИ (breadcrumbs)
   ========================================================== */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.9rem;
    color: #777;
}
.breadcrumbs a {
    color: var(--primary);
}
.breadcrumbs span {
    color: #777;
}
@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 0.8rem;
        padding: 12px 0;
    }
}

/* ==========================================================
   10. ПАГИНАЦИЯ
   ========================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-border);
}
.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid var(--gray-border);
    border-radius: 4px;
    color: var(--primary);
    transition: background 0.2s;
}
.pagination a:hover {
    background: var(--gray-light);
}
.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
@media (max-width: 768px) {
    .pagination a,
    .pagination span {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* ==========================================================
   11. ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ ТОВАРА (бенефиты, контент)
   ========================================================== */

/* Блок преимуществ (benefits) */
.product-benefits {
    background: var(--gray-light);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0;
}
.product-benefits h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 12px 0;
}
.product-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-benefits ul li {
    padding: 6px 0 6px 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%231a4d3e" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') left center no-repeat;
    background-size: 18px;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Основной контент (main_content_html) */
.product-content {
    padding: 20px 0 40px;
    border-top: 1px solid var(--gray-border);
    margin-top: 20px;
}
.product-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin: 30px 0 16px 0;
}
.product-content h3:first-of-type {
    margin-top: 0;
}
.product-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin: 0 0 16px 0;
}
.product-content ul {
    margin: 0 0 20px 0;
    padding-left: 24px;
}
.product-content ul li {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 8px;
    list-style-type: disc;
}
.product-content ul li ul {
    margin-top: 4px;
    padding-left: 20px;
}
.product-content hr {
    border: none;
    border-top: 1px solid var(--gray-border);
    margin: 30px 0;
}
.product-content .faq-item {
    margin-bottom: 20px;
}
.product-content .faq-question {
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 4px 0;
}
.product-content .faq-answer {
    margin: 0 0 0 20px;
    color: #444;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .product-benefits {
        padding: 16px;
    }
    .product-benefits ul li {
        padding: 5px 0 5px 28px;
        font-size: 0.9rem;
    }
    .product-content h3 {
        font-size: 1.2rem;
    }
    .product-content p,
    .product-content ul li {
        font-size: 0.95rem;
    }
}


/* ==========================================================
   12. ОЖИВЛЕНИЕ ДИЗАЙНА: ЦЕНЫ, ЗВЁЗДЫ, БЕЙДЖИ, КНОПКИ
   ========================================================== */

/* --- ЗВЁЗДЫ --- */
.stars-inner {
    display: inline-block;
    font-size: 1.2rem;
    letter-spacing: 2px;
}
.star.full {
    color: #f5b342;
}
.star.empty {
    color: #ddd;
}
.star.half {
    color: #ddd;
    position: relative;
}
.star.half::before {
    content: '★';
    color: #f5b342;
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}

/* ===== ЦЕНЫ ===== */
/* Карточки товаров (каталог, категории) */
.product-price .old {
    color: #999 !important;
    text-decoration: line-through !important;
    font-size: 0.85rem !important;
}
.product-price .new {
    color: #e67e22 !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
}

/* Страница товара (крупные цены) */
.price-block .old-price {
    color: #999 !important;
    text-decoration: line-through !important;
    font-size: 1.2rem !important;
}
.price-block .new-price {
    color: #e67e22 !important;
    font-weight: 700 !important;
    font-size: 2.2rem !important;
}

/* Бейдж скидки */
.discount-percent {
    display: inline-block;
    background: #e53e3e !important;
    color: white !important;
    padding: 2px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin-left: 10px !important;
}

/* --- БЕЙДЖИ --- */
.product-badge {
    background: #e53e3e !important;
    color: white !important;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}
.top-badge {
    background: #2b6cb0;
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}
.discount-percent {
    display: inline-block;
    background: #e53e3e;
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

/* --- КНОПКИ --- */
.btn-order {
    background: var(--accent);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}
.btn-order:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    text-decoration: none;
}
.btn-order:active {
    transform: translateY(0);
}

/* --- ССЫЛКА "Show all reviews" --- */
.show-all-reviews {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    transition: background 0.2s;
    text-decoration: none;
}
.show-all-reviews:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

/* --- ЗАГОЛОВКИ НА СТРАНИЦЕ ТОВАРА --- */
.product-info-block h1 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 600;
}
.product-content h3 {
    color: var(--primary);
    font-weight: 600;
}
.product-reviews-section h2 {
    color: var(--primary);
    font-weight: 600;
}

/* --- РАЗДЕЛИТЕЛИ --- */
hr {
    border: none;
    border-top: 1px solid var(--gray-border);
    margin: 30px 0;
}

/* ==========================================================
   ЛОГОТИП (текстовый)
   ========================================================== */
.logo {
    display: flex;
    align-items: center;
}
.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    transition: color 0.2s;
}
.logo-text:hover {
    color: var(--primary-dark);
}
.logo-tagline {
    font-size: 0.65rem;
    font-weight: 400;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}
/* Адаптив для мобильных */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.6rem;
    }
    .logo-tagline {
        font-size: 0.55rem;
    }
}

/* ==========================================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ (до 768px)
   ========================================================== */
@media (max-width: 768px) {
    /* --- ГАМБУРГЕР --- */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin-left: auto;
    }
    .hamburger span {
        display: block;
        width: 28px;
        height: 3px;
        background: var(--primary);
        transition: 0.3s;
        border-radius: 2px;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* --- НАВИГАЦИЯ (скрыта, открывается по клику) --- */
    .main-nav {
        display: none;
        width: 100%;
        background: var(--primary);
    }
    .main-nav.open {
        display: block;
    }
    .nav-inner {
        flex-direction: column;
    }
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    .nav-menu > li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-menu > li > a {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        background: var(--primary-dark);
    }
    .dropdown-menu li a {
        color: #ddd;
        padding: 8px 16px;
    }
    .dropdown-menu li a:hover {
        background: transparent;
        color: white;
    }
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }

    /* --- КАРТОЧКИ ТОВАРОВ (по 1 в ряд) --- */
    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 20px 0 !important;
    }
    .category-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        padding: 20px 0 !important;
    }
    /* Категории на главной можно в 2 колонки, но если хотите тоже в 1 — измените на 1fr */
    /* Если хотите категории в 1 колонку, замените на grid-template-columns: 1fr !important; */

    /* --- ОТСТУПЫ И РАЗМЕРЫ --- */
    .hero h1 {
        font-size: 1.8rem !important;
    }
    .hero p {
        font-size: 1rem !important;
    }
    .section-title {
        font-size: 1.3rem !important;
    }
    .product-info h3 {
        font-size: 0.95rem !important;
    }
    .product-price .new {
        font-size: 1.1rem !important;
    }

    /* --- ХЕДЕР --- */
    .header-inner {
        flex-wrap: nowrap !important;
    }
    .search-box {
        min-width: 120px !important;
        flex: 1 !important;
    }
    .search-box input {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
    .search-box button {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    .logo-text {
        font-size: 1.2rem !important;
    }
    .logo-tagline {
        font-size: 0.5rem !important;
    }
    .top-bar-links {
        font-size: 11px !important;
        gap: 10px !important;
    }
}


/* ==========================================================
   ФИНАЛЬНЫЕ ПРАВКИ ДЛЯ МОБИЛЬНОГО МЕНЮ
   ========================================================== */
@media (max-width: 768px) {
    /* Гамбургер – всегда виден и кликабелен */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin-left: auto;
        z-index: 30;
        position: relative;
    }
    .hamburger span {
        display: block !important;
        width: 28px;
        height: 3px;
        background: var(--primary, #1a4d3e);
        transition: 0.3s;
        border-radius: 2px;
        transform-origin: center;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Навигация – скрыта, открывается классом open */
    .main-nav {
        display: none !important;
        width: 100%;
        background: var(--primary, #1a4d3e);
    }
    .main-nav.open {
        display: block !important;
    }

    /* Категории на мобильных – раскрываются по клику */
    .dropdown-menu {
        display: none !important;
        position: static !important;
        box-shadow: none !important;
        background: var(--primary-dark, #143c30) !important;
        padding-left: 20px;
    }
    .dropdown.active .dropdown-menu {
        display: block !important;
    }
    .dropdown-toggle {
        cursor: pointer;
    }
    .dropdown-toggle .arrow {
        transition: transform 0.2s;
        display: inline-block;
    }
    .dropdown.active .dropdown-toggle .arrow {
        transform: rotate(180deg);
    }
}
:root{--ink:#17202a;--muted:#667085;--line:#e6e8eb;--brand:#0b6b4f;--bg:#fff;--soft:#f6f8f7}
*{box-sizing:border-box}body{margin:0;font-family:Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.65}a{color:var(--brand);text-decoration:none}.container{width:min(1120px,92%);margin:auto}.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.nav{min-height:72px;display:flex;align-items:center;justify-content:space-between}.logo{font-size:23px;font-weight:800;color:var(--ink)}.logo span{color:var(--brand)}nav{display:flex;gap:24px}nav a{color:var(--ink);font-weight:600}.menu{display:none;border:0;background:none;font-size:26px}.hero{padding:90px 0;background:linear-gradient(135deg,#eef8f3,#fff)}.hero h1{font-size:clamp(38px,6vw,68px);line-height:1.05;max-width:780px;margin:12px 0}.hero p{font-size:19px;color:var(--muted);max-width:700px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.14em;color:var(--brand)}.btn{display:inline-block;background:var(--brand);color:#fff!important;padding:12px 20px;border-radius:8px;border:0;font-weight:700;cursor:pointer}.secondary{background:#364152}.section{padding:65px 0}.alt{background:var(--soft)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.section h2{font-size:32px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}.card img{width:100%;height:220px;object-fit:cover}.card-body{padding:22px}.card h3{margin-top:0;font-size:21px}.card p{color:var(--muted)}.text-link{display:block;margin-top:15px;font-weight:700}.breadcrumbs{padding:25px 0;color:var(--muted)}.product-hero{width:min(1120px,92%);margin:0 auto 50px;display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}.product-image{width:100%;max-height:520px;object-fit:contain}.product-hero h1{font-size:48px;line-height:1.1}.price{font-size:30px;font-weight:800;margin:20px 0}.content{max-width:850px}.content h2{font-size:30px;margin-top:40px}.content p,.content li{font-size:17px}.page{padding:75px 0}.lead{font-size:20px;color:var(--muted)}.reviews{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.reviews blockquote{margin:0;padding:24px;border:1px solid var(--line);border-radius:12px;background:#fff}.stars{letter-spacing:2px}footer{padding:35px 0;border-top:1px solid var(--line);color:var(--muted)}.admin-wrap{min-height:100vh;display:grid;place-items:center;background:var(--soft)}.admin-card,.editor{background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px;box-shadow:0 10px 35px rgba(0,0,0,.05)}.admin-card{width:min(430px,92%)}.admin-card label,.editor label{display:block;font-weight:700;margin:14px 0}.admin-card input,.editor input,.editor textarea,.editor select{width:100%;margin-top:7px;padding:12px;border:1px solid #ccd1d7;border-radius:7px;font:inherit}.editor{max-width:850px;margin-bottom:60px}.editor small{color:var(--muted)}.two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.admin-header{padding:18px 0;border-bottom:1px solid var(--line)}.admin-header .container{display:flex;justify-content:space-between}.admin-main{padding:45px 0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stats div{padding:25px;border:1px solid var(--line);border-radius:12px}.stats b,.stats span{display:block}.stats b{font-size:32px}.stats span{color:var(--muted)}.admin-actions{display:flex;gap:12px;margin:25px 0}.admin-links{display:grid;gap:12px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:13px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.error{background:#fff0f0;color:#a00;padding:10px;border-radius:7px}@media(max-width:760px){nav{display:none}.menu{display:block}.nav-open nav{display:flex;position:absolute;left:0;right:0;top:72px;background:#fff;padding:20px;flex-direction:column;border-bottom:1px solid var(--line)}.grid,.reviews,.stats,.product-hero{grid-template-columns:1fr}.hero{padding:60px 0}.product-hero h1{font-size:38px}.two{grid-template-columns:1fr}}
