/*
Theme Name: ruholod
Theme URI: ruholod
Author: ruholod
Description: Тема для сайта Русский Холод
Version: 1.0.2
License: GPLv2 or later
Text Domain: ruholod
*/

/* ----------------------------------------
   CSS-переменные (СТРОГО ПО ТЗ)
---------------------------------------- */
:root {
    --color-bg: #F7F9FB;                /* Основной фон сайта */
    --color-white: #FFFFFF;             /* Фон карточек, фильтров, окон */
    --color-brand: #0B3C5D;            /* Фирменный цвет: шапка, H1-H2, иконки, разделители */
    --color-action: #1ECAD3;           /* Основной цвет кнопок и действий */
    --color-accent: #F59E0B;           /* Цвет акций и выгод (скидки, хиты, счётчики) */
    --color-text: #0F172A;             /* Основной текст */
    --color-text-secondary: #475569;   /* Вторичный текст (описания, подписи) */
    --color-text-muted: #94A3B8;       /* Подсказки, placeholder, неактивные элементы */
    --color-border: #E2E8F0;           /* Мягкая граница */
    --color-hover: #17AAB5;            /* Ховер для кнопок (чуть темнее action) */
    --color-success: #2E7D32;          /* Зелёный для "подойдёт" */
    --color-danger: #C62828;           /* Красный для "не подойдёт" */
    --color-footer-bg: #0B3C5D;        /* Фон подвала = фирменный цвет */
    --color-footer-text: #E2E8F0;      /* Светлый текст в подвале */
    --box-shadow: 0 10px 30px rgba(11, 60, 93, 0.06);
    --box-shadow-hover: 0 20px 40px rgba(11, 60, 93, 0.1);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --swiper-navigation-size: 22px !important;
}

/* ----------------------------------------
   БАЗОВЫЕ СТИЛИ
---------------------------------------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

.woocommerce .site-main,
.woocommerce-page .site-main {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

a {
    color: var(--color-brand);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--color-action);
    text-decoration: underline;
}
a.button:hover {
    text-decoration: none;
}

.site {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}


/* ----------------------------------------
   ШАПКА (финальная версия: адаптив без лишних переносов)
---------------------------------------- */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Верхняя строка: город, меню, телефон, профиль */
.header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    gap: 15px;
    flex-wrap: wrap;
}

/* Селектор города */
.city-selector-block {
    position: relative;
    flex-shrink: 0;
}
.city-selector-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 60px;
    padding: 8px 14px;
    color: var(--color-brand);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.9rem;
}
.city-selector-button i {
    color: var(--color-brand);
}
.city-selector-button:hover {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: var(--color-white);
}
.city-selector-button:hover i {
    color: var(--color-white);
}

.city-selector-select{
    width: 240px;
}

/* Главное меню (скрываем на мобильных, на десктопе показываем) */
.main-navigation {
    flex-shrink: 0;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.main-navigation li {
    position: relative;
}
.main-navigation a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 5px 0;
    display: block;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.main-navigation a:hover {
    color: var(--color-brand);
    border-bottom-color: var(--color-brand);
    text-decoration: none;
}

/* Телефон 24/7 */
.header-247-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 600;
    color: var(--color-brand);
}
.header-247-phone a {
    color: var(--color-brand);
    text-decoration: none;
}

/* Профиль */
.header-profile-icon a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-brand);
    font-weight: 500;
    white-space: nowrap;
}
.header-profile-icon i {
    color: var(--color-brand);
}

/* Средняя строка: логотип, кнопка каталога, описание */
.header-main-bar {
    display: flex;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
    flex-wrap: wrap;
}
.site-branding {
    flex-shrink: 0;
}
.custom-logo {
    max-height: 60px;
    width: auto;
}
.catalog-dropdown {
    position: relative;
}
.catalog-button {
    background: var(--color-action);
    color: var(--color-text);
    border: none;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(30, 202, 211, 0.25);
}
.catalog-button:hover {
    background: var(--color-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 202, 211, 0.35);
}
.catalog-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    min-width: 280px;
    z-index: 1000;
    padding: 10px 0;
}
.catalog-dropdown:hover .catalog-menu {
    display: block;
}
.catalog-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--color-text);
    font-weight: 500;
    transition: var(--transition);
}
.catalog-menu a:hover {
    background: var(--color-bg);
    color: var(--color-brand);
    text-decoration: none;
}

/* Название магазина (опционально скрывается на мобильных) */
.site-description-text h1 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-brand);
    margin: 0;
    line-height: 1.4;
}

/* Нижняя строка: поиск, корзина, избранное, мобильное меню */
.header-search-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0 15px;
    flex-wrap: wrap;
}
.search-wrapper-full {
    flex: 1 1 300px;
    min-width: 200px;
}
.search-form-full {
    display: flex;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 60px;
    overflow: hidden;
    transition: var(--transition);
}
.search-form-full:focus-within {
    border-color: var(--color-action);
    box-shadow: 0 0 0 3px rgba(30, 202, 211, 0.1);
}
.search-input-full {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--color-text);
    outline: none;
}
.search-input-full::placeholder {
    color: var(--color-text-muted);
}
.search-submit-full {
    background: var(--color-action);
    color: var(--color-white);
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}
.search-submit-full:hover {
    background: var(--color-hover);
}

/* Иконки корзины и избранного */
.cart-icon {
    position: relative;
    color: var(--color-brand);
    font-size: 1.4rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    flex-shrink: 0;
}
.cart-icon:hover {
    color: var(--color-action);
    transform: scale(1.1);
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}
.cart-tooltip {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text);
}
.header-wishlist-icon a {
    position: relative;
    color: var(--color-brand);
    font-size: 1.4rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    flex-shrink: 0;
}
.header-wishlist-icon a:hover {
    color: var(--color-action);
    transform: scale(1.1);
}
.wishlist-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}
.wishlist-tooltip {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text);
}

/* Мобильное меню (бургер) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-brand);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ----------------------------------------
   АДАПТИВНОСТЬ ШАПКИ (исправлено)
---------------------------------------- */
@media (max-width: 992px) {
    .site-description-text {
        display: none;            /* скрываем описание магазина */
    }

    .menu-toggle {
        display: block;           /* показываем бургер */
    }

    /* Скрываем десктопное меню, оно будет показано через JS */
    .main-navigation ul {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--color-white);
        box-shadow: var(--box-shadow);
        border-radius: 0 0 16px 16px;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1001;
    }
    .main-navigation.toggled ul {
        display: flex;            /* класс добавляется вашим JS при активации */
    }
    .main-navigation li {
        border-bottom: 1px solid var(--color-border);
    }
    .main-navigation a {
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    /* Верхняя строка: всё в один ряд, навигация скрыта полностью */
    .header-top-bar {
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: space-between;
    }
  

    /* Город остаётся слева, телефон и профиль улетают вправо */
    .city-selector-button {
        font-size: 0.8rem;
        padding: 6px 10px;
        gap: 4px;
    }
    .header-247-phone {
        margin-left: auto;           /* прижимает телефон и следующий за ним профиль вправо */
    }
    .header-247-phone a {
        display: none;               /* скрываем номер, оставляем иконку */
    }
    .header-profile-icon span {
        display: none;               /* скрываем текст "Войти" / "Личный кабинет" */
    }
    .header-247-phone i,
    .header-profile-icon i {
        font-size: 1.3rem;
    }

    /* Средняя строка: лого слева, каталог справа (описание скрыто) */
    .header-main-bar {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .catalog-button {
        width: auto;                 /* убираем полноширинность, пусть подстраивается */
        padding: 10px 20px;
    }

    /* Нижняя строка: поиск растянут, корзина/избранное/бургер — справа */
    .header-search-bar {
        flex-wrap: nowrap;
        gap: 10px;
    }
    .search-wrapper-full {
        flex: 1 1 auto;              /* забирает всё доступное пространство */
    }
    .cart-tooltip,
    .wishlist-tooltip {
        display: none;               /* убираем подписи под иконками */
    }
    .cart-icon,
    .header-wishlist-icon a {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }
    .search-form-full {
        flex-direction: column;
        border-radius: 20px;
    }
    .search-input-full {
        padding: 10px 15px;
    }
    .search-submit-full {
        border-radius: 0 0 20px 20px;
        padding: 10px;
    }
}

/* ----------------------------------------
   ПОПАП ГОРОДА (без изменений)
---------------------------------------- */
.city-popup {
    position: absolute;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0,0,0,0.15);
    padding: 25px;
    z-index: 2000;
    min-width: 300px;
}
.city-popup-content {
    position: relative;
}
.city-popup-close {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
    transition: var(--transition);
}
.city-popup-close:hover {
    color: var(--color-brand);
}
.city-popup p {
    margin: 0 0 20px;
    font-size: 1rem;
}
.city-popup-buttons {
    display: flex;
    gap: 12px;
}
.city-popup-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}
.city-confirm {
    background: var(--color-action);
    color: var(--color-white);
}
.city-confirm:hover {
    background: var(--color-hover);
}
.city-change {
    background: var(--color-bg);
    color: var(--color-brand);
    border: 1px solid var(--color-border);
}
.city-change:hover {
    background: var(--color-border);
}

/* ----------------------------------------
   ПОДВАЛ (обновлённая структура, цвета по ТЗ)
---------------------------------------- */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 40px 20px 20px;
    font-size: 14px;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.footer-logo img {
    max-height: 50px;
    width: auto;
}
.footer-address,
.footer-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-footer-text);
}
.footer-address i,
.footer-phone i {
    color: var(--color-action);
    width: 20px;
    text-align: center;
}
.footer-phone a {
    color: var(--color-footer-text);
    text-decoration: none;
    font-weight: 500;
}
.footer-phone a:hover {
    color: var(--color-white);
}
.footer-payment {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.payment-label {
    color: var(--color-footer-text);
    font-weight: 500;
}
.payment-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.payment-icon {
    height: 30px;
    width: auto;
}
.footer-links {
    margin-bottom: 30px;
    text-align: center;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-nav a {
    color: var(--color-footer-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.footer-nav a:hover {
    color: var(--color-white);
    text-decoration: underline;
}
.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Мессенджеры в футере */
.footer-messengers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0 20px;
}
.footer-messengers .messenger-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-footer-text);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}
.footer-messengers .messenger-link i {
    width: 24px;
    font-size: 1.2rem;
    color: var(--color-action);
}
.footer-messengers .messenger-link:hover {
    color: var(--color-white);
    transform: translateX(5px);
}
.footer-messengers .messenger-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    margin-top: 5px;
}
.footer-messengers .messenger-phone i {
    color: var(--color-action);
    width: 24px;
    font-size: 1.2rem;
}
.footer-messengers .messenger-phone a {
    color: var(--color-footer-text);
    text-decoration: none;
    font-weight: 500;
}
.footer-messengers .messenger-phone a:hover {
    color: var(--color-white);
}
.messenger-widget {
    display: none;
}

/* ----------------------------------------
   АДАПТИВНОСТЬ ПОДВАЛА (и недостающие)
---------------------------------------- */
@media (max-width: 1100px) {
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    .main-navigation ul {
        gap: 12px;
    }
}
@media (max-width: 992px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}
@media (max-width: 480px) {
    .payment-icons {
        gap: 8px;
    }
    .payment-icon {
        height: 24px;
    }
}

/* ----------------------------------------
   КНОПКИ (общие)
---------------------------------------- */
.button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--color-action);
    color: var(--color-text);
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    box-shadow: 0 6px 18px rgba(30, 202, 211, 0.2);
    cursor: pointer;
    font-size: 0.95rem;
}
.button:hover {
    background: var(--color-hover);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(30, 202, 211, 0.3);
    text-decoration: none;
}

/* ----------------------------------------
   ЗАГОЛОВКИ H1-H2
---------------------------------------- */
h1, h2, .section-title, .hero-title, .product_title, .quiz-title, .faq-category-title, .wp-block-heading {
    color: var(--color-brand);
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px;
    text-align: center;
    line-height: 1.2;
    color: var(--color-brand);
}
.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin: 0 0 50px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
h3, h4, h5, h6 {
    color: var(--color-text);
}

/* ----------------------------------------
   ИКОНКИ (цвет по умолчанию — brand)
---------------------------------------- */
i, .fas, .far, .fab {
    color: inherit;
}
.trust-card i,
.delivery-card i,
.advantage-card i,
.step-item i,
.payment-item i,
.contact-item i,
.faq-question i,
.grid-item i {
    color: var(--color-brand);
}

/* Разделительные линии */
hr,
.wp-block-separator,
.faq-category-title,
.product-installation h3,
.product-warranty h3,
.product-engineer h3,
.product-delivery-info h4,
.footer-column h4,
.wc-tabs li.active a,
.main-navigation a:hover,
.trust-card,
.card-item h3 {
    border-color: var(--color-brand);
}

/* ----------------------------------------
   КОНТЕЙНЕР
---------------------------------------- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----------------------------------------
   HERO
---------------------------------------- */
.home-hero {
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    position: relative;
    color: var(--color-white);
}
.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 60, 93, 0.75);
    z-index: 1;
}
.home-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--color-white);
}
.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 35px;
    opacity: 0.9;
    color: var(--color-white);
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-buttons .button {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    font-size: 1.1rem;
    min-width: 220px;
}
.hero-buttons .button:hover {
    background: var(--color-white);
    color: var(--color-brand);
    border-color: var(--color-white);
}

/* ----------------------------------------
   БЛОК ДОВЕРИЯ
---------------------------------------- */
.home-trust {
    padding: 100px 0;
    background: var(--color-white);
}
.trust-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}
.trust-gallery img {
    width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
}
.trust-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.trust-card {
    background: var(--color-bg);
    padding: 35px 25px;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    border-left: 4px solid var(--color-brand);
}
.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}
.trust-card h3 {
    font-size: 1.4rem;
    color: var(--color-brand);
    margin-bottom: 15px;
}
.trust-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.trust-gallery-swiper {
    overflow: hidden;
    margin: 30px 0;
    padding-bottom: 40px;
}
.trust-gallery-swiper .swiper-slide {
    width: auto;
    height: 200px;
}
.trust-gallery-swiper .swiper-slide img {
    height: 100%;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.swiper-pagination {
    display: none;
}

/* ----------------------------------------
   БЛОК ЦИФР (улучшенный)
---------------------------------------- */
.home-stats {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-bg) 0%, #EEF2F6 100%);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.stat-item {
    text-align: center;
    background: var(--color-white);
    padding: 40px 20px 35px;
    border-radius: 32px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--color-action);
    border-radius: 0 0 12px 12px;
}
.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-brand);
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    word-break: break-word;
}
.stat-label {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    font-weight: 500;
}

/* ----------------------------------------
   БЛОК ТИПОВ ОБЪЕКТОВ (object-types)
   И все подобные сетки: последний ряд растягивается
---------------------------------------- */
.home-object-types {
    padding: 100px 0;
    background: var(--color-white);
}
.object-types-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}
.object-type-card {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
    background: var(--color-bg);
    border-radius: 24px;
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}
.object-type-card:hover {
    background: var(--color-brand);
    color: var(--color-white);
    transform: scale(1.02);
    border-color: var(--color-brand);
}
.object-type-card .object-type-icon i {
    font-size: 48px;
    width: 70px;
    height: 70px;
    color: var(--color-brand);
    margin-bottom: 15px;
}
.object-type-card:hover .object-type-icon i {
    color: var(--color-white);
}
.object-type-card .object-type-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 15px;
}
.object-type-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* ----------------------------------------
   БЛОК ОШИБОК
---------------------------------------- */
.home-error {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
    color: var(--color-white);
}
.home-error h2,
.home-error p {
    color: var(--color-white);
}
.home-error a {
    margin: 0 auto;
    display: table;
}
.home-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 60, 93, 0.8);
    z-index: 1;
}
.home-error .container {
    position: relative;
    z-index: 2;
}
.error-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 50px 0;
}
.error-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 30px;
    border-radius: 24px;
    border-left: 4px solid var(--color-action);
}
.error-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-white);
}
.error-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}
.error-button {
    margin-top: 20px;
}

/* ----------------------------------------
   БЛОК ГОТОВЫХ РЕШЕНИЙ
---------------------------------------- */
.home-ready-solutions {
    padding: 100px 0;
    background: var(--color-bg);
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.solution-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}
.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}
.solution-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.solution-card h3 {
    font-size: 1.5rem;
    color: var(--color-brand);
    margin: 25px 25px 10px;
}
.solution-composition {
    font-weight: 600;
    color: var(--color-action);
    margin: 0 25px 10px;
    font-size: 1.1rem;
}
.solution-description {
    color: var(--color-text-secondary);
    margin: 0 25px 20px;
    line-height: 1.6;
    flex: 1;
}
.solution-card .button {
    margin: 0 25px 30px;
    display: block;
    align-self: center;
}

/* ----------------------------------------
   БЛОК ВАЖНЫХ ССЫЛОК
---------------------------------------- */
.home-important-links {
    padding: 80px 0;
    background: var(--color-white);
}
.important-links-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}
.important-links-list li a {
    display: inline-block;
    padding: 16px 32px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 60px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.important-links-list li a:hover {
    background: var(--color-brand);
    color: var(--color-white);
    border-color: var(--color-brand);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(11, 60, 93, 0.2);
}

/* ----------------------------------------
   БЛОК ПРИМЕРОВ РАБОТ
---------------------------------------- */
.home-examples {
    padding: 100px 0;
    background: var(--color-bg);
}
.examples-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.example-item {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: var(--color-white);
    transition: var(--transition);
}
.example-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}
.example-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}
.example-item figcaption {
    padding: 20px;
    text-align: center;
    font-weight: 500;
    color: var(--color-text);
}

/* ----------------------------------------
   PROMO-SLIDER (улучшенный)
---------------------------------------- */
.promo-slider {
    position: relative;
    overflow: hidden;
    margin: 60px 0;
    border-radius: 32px;
}
.promo-slider .swiper-wrapper {
    height: auto;
}
.promo-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    min-height: 500px;
    border-radius: 32px;
    overflow: hidden;
    color: var(--color-white);
}
.promo-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 60, 93, 0.65); /* уменьшил затемнение для более живого фона */
    z-index: 1;
    border-radius: 32px;
}
.promo-slide .container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 60px 40px;
}
.promo-slide h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 35px;
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.3px;
    word-break: break-word;
    min-height: 300px;
}
.promo-slide ul {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.promo-slide ul li {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    padding: 10px 28px;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.promo-slide .button {
    background: var(--color-action);
    color: var(--color-text);
    font-weight: 700;
    padding: 18px 48px;
    font-size: 1.2rem;
    border-radius: 60px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(30, 202, 211, 0.35);
    transition: var(--transition);
    display: inline-block;
}
.promo-slide .button:hover {
    background: var(--color-hover);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 202, 211, 0.45);
}
.promo-slider .swiper-button-prev,
.promo-slider .swiper-button-next {
    color: var(--color-white);
    width: 50px;
    height: 50px;
    background: rgba(11, 60, 93, 0.7);
    border-radius: 50%;
    backdrop-filter: blur(8px);
}
.promo-slider .swiper-button-prev:hover,
.promo-slider .swiper-button-next:hover {
    background: var(--color-brand);
}
.promo-slider .swiper-pagination-bullet {
    background: var(--color-white);
    opacity: 0.5;
}
.promo-slider .swiper-pagination-bullet-active {
    background: var(--color-accent);
    opacity: 1;
}

/* ----------------------------------------
   BRANDS-CAROUSEL
---------------------------------------- */
.brands-carousel {
    padding: 40px 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin: 40px 0;
}
.brands-carousel .swiper-wrapper {
    align-items: center;
}
.brands-carousel .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: var(--transition);
}
.brands-carousel .swiper-slide:hover {
    opacity: 1;
}
.brands-carousel .swiper-slide img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition);
}
.brands-carousel .swiper-slide:hover img {
    filter: grayscale(0%) opacity(1);
}

/* ----------------------------------------
   RECENTLY-VIEWED
---------------------------------------- */
.recently-viewed {
    padding: 60px 0;
    background: var(--color-bg);
    text-align: center;
}
.recently-viewed h2 {
    font-size: 2rem;
    color: var(--color-brand);
    margin-bottom: 40px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.product-item {
    background: var(--color-white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.product-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}
.product-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 12px;
    background: #f8f8f8;
}
.product-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--color-text);
}
.product-item h3 a {
    color: inherit;
    text-decoration: none;
}
.product-item h3 a:hover {
    color: var(--color-action);
}
.product-item .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-action);
    margin-top: auto;
}

/* ----------------------------------------
   REVIEWS-SLIDER
---------------------------------------- */
.reviews-slider {
    padding: 80px 0;
    background: var(--color-white);
    text-align: center;
    overflow: hidden;
}
.reviews-slider h2 {
    font-size: 2rem;
    color: var(--color-brand);
    margin-bottom: 10px;
}
.reviews-slider .subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 50px;
}
.reviews-slider .swiper-wrapper {
    padding-bottom: 30px;
}
.review-card {
    background: var(--color-bg);
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: var(--box-shadow);
    text-align: left;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}
.review-author {
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.review-text {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-style: italic;
}
.reviews-slider .swiper-pagination-bullet {
    background: var(--color-text-muted);
    opacity: 0.5;
}
.reviews-slider .swiper-pagination-bullet-active {
    background: var(--color-accent);
    opacity: 1;
}

/* ----------------------------------------
   BLOG-POSTS
---------------------------------------- */
.blog-posts {
    padding: 80px 0;
    background: var(--color-bg);
    text-align: center;
}
.blog-posts h2 {
    font-size: 2rem;
    color: var(--color-brand);
    margin-bottom: 50px;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.post-item {
    background: var(--color-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.post-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}
.post-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.post-item h3 {
    font-size: 1.3rem;
    margin: 25px 25px 15px;
    color: var(--color-text);
}
.post-item h3 a {
    color: inherit;
    text-decoration: none;
}
.post-item h3 a:hover {
    color: var(--color-action);
}
.post-excerpt {
    color: var(--color-text-secondary);
    margin: 0 25px 25px;
    line-height: 1.6;
    flex: 1;
}

/* ----------------------------------------
   СТРАНИЦА О КОМПАНИИ
---------------------------------------- */
.about-text {
    padding: 80px 0;
    background: var(--color-white);
}
.about-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}
.advantages {
    padding: 100px 0;
    background: var(--color-bg);
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.advantage-card {
    background: var(--color-white);
    padding: 35px 30px;
    border-radius: 24px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}
.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}
.advantage-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 20px;
}
.advantage-icon i {
    font-size: 48px;
    color: var(--color-brand);
    margin-bottom: 20px;
}
.advantage-card h3 {
    font-size: 1.4rem;
    color: var(--color-brand);
    margin-bottom: 15px;
}
.advantage-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.video-block {
    padding: 80px 0;
    background: var(--color-white);
}
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--box-shadow);
}
.video-wrapper iframe,
.video-wrapper embed,
.video-wrapper object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.video-player {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--box-shadow);
}

/* ----------------------------------------
   БЛОК ЭТАПОВ РАБОТ
---------------------------------------- */
.steps,
.work-steps {
    padding: 100px 0;
    background: var(--color-white);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.step-item {
    text-align: center;
    padding: 35px 25px;
    background: var(--color-bg);
    border-radius: 24px;
    position: relative;
    transition: var(--transition);
}
.step-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}
.step-number {
    width: 60px;
    height: 60px;
    background: var(--color-action);
    color: var(--color-text);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}
.step-icon i {
    font-size: 48px;
    color: var(--color-brand);
    margin-bottom: 20px;
}
.step-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 20px;
}
.step-item h3 {
    font-size: 1.4rem;
    color: var(--color-brand);
    margin-bottom: 10px;
}
.step-item p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.work-steps-button {
    text-align: center;
    margin-top: 60px;
}

/* ----------------------------------------
   БЛОК ФОРМЫ
---------------------------------------- */
.form-block {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
    color: var(--color-white);
}
.form-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 60, 93, 0.8);
    z-index: 1;
}
.form-block .container {
    position: relative;
    z-index: 2;
}
.form-block .section-title,
.form-block .section-subtitle {
    color: var(--color-white);
}
.form-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 32px;
}
.form-wrapper input,
.form-wrapper textarea,
.form-wrapper select {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--color-white);
    font-size: 1rem;
}
.form-wrapper select > option {
    color: var(--color-text);
}
.form-wrapper input::placeholder,
.form-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.form-wrapper button,
.form-wrapper input[type="submit"] {
    background: var(--color-action);
    color: var(--color-text);
    padding: 16px 35px;
    border: none;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-size: 1.1rem;
}
.form-wrapper button:hover,
.form-wrapper input[type="submit"]:hover {
    background: var(--color-hover);
    color: var(--color-white);
}

/* ----------------------------------------
   ЧЕКБОКСЫ CONTACT FORM 7
---------------------------------------- */
.wpcf7-form .wpcf7-list-item {
    position: relative;
    display: block;
    margin: 0 0 10px !important;
    padding: 0 !important;
}
.wpcf7-form .wpcf7-list-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding-left: 30px;
    min-height: 24px;
    position: relative;
    margin: 0;
    font-weight: normal;
}
.wpcf7-form .wpcf7-list-item input[type="checkbox"],
.wpcf7-form .wpcf7-list-item input[type="radio"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 3;
}
.wpcf7-form .wpcf7-list-item .wpcf7-list-item-label {
    padding-left: 30px;
    display: inline-block;
    position: relative;
}
.wpcf7-form .wpcf7-list-item .wpcf7-list-item-label::before {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid var(--color-border);
    background: var(--color-white);
    border-radius: 6px;
    content: '';
    position: absolute;
    box-sizing: border-box;
    pointer-events: none;
    transition: var(--transition);
}
.wpcf7-form .wpcf7-list-item .wpcf7-list-item-label::after {
    left: 7px;
    top: 43%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 11px;
    border: solid var(--color-action);
    border-width: 0 2px 2px 0;
    content: '';
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.wpcf7-form .wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
    background: var(--color-action);
    border-color: var(--color-action);
}
.wpcf7-form .wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
    opacity: 1;
    border-color: var(--color-white);
}
.wpcf7-form .wpcf7-list-item:hover .wpcf7-list-item-label::before {
    border-color: var(--color-action);
}
.wpcf7-form .wpcf7-list-item input[type="radio"] + .wpcf7-list-item-label::before {
    border-radius: 50%;
}
.wpcf7-form .wpcf7-list-item input[type="radio"]:checked + .wpcf7-list-item-label::before {
    border-color: var(--color-action);
    background: var(--color-white);
}
.wpcf7-form .wpcf7-list-item input[type="radio"]:checked + .wpcf7-list-item-label::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--color-action);
    border-radius: 50%;
    opacity: 1;
    border: none;
}
.form-block .wpcf7-form .wpcf7-list-item .wpcf7-list-item-label {
    color: var(--color-white);
}
.form-block .wpcf7-form .wpcf7-list-item .wpcf7-list-item-label::before {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}
.form-block .wpcf7-form .wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label::before,
.form-block .wpcf7-form .wpcf7-list-item input[type="radio"]:checked + .wpcf7-list-item-label::before {
    background: var(--color-action);
    border-color: var(--color-action);
}
.form-block .wpcf7-form .wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
    border-color: var(--color-white);
}
.form-block .wpcf7-form .wpcf7-list-item input[type="radio"]:checked + .wpcf7-list-item-label::after {
    background: var(--color-white);
}

/* ----------------------------------------
   БЛОК СПОСОБОВ ОПЛАТЫ
---------------------------------------- */
.payment-methods {
    padding: 100px 0;
    background: var(--color-white);
}
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.payment-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--color-bg);
    padding: 25px;
    border-radius: 24px;
    transition: var(--transition);
}
.payment-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}
.payment-icon i {
    font-size: 48px;
    color: var(--color-brand);
}
.payment-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.payment-content h3 {
    font-size: 1.3rem;
    color: var(--color-brand);
    margin-bottom: 5px;
}
.payment-description {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 5px;
}
.payment-note {
    color: var(--color-action);
    font-size: 0.95rem;
    font-weight: 500;
}
.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    background: var(--color-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}
.payment-table th,
.payment-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.payment-table th {
    background: var(--color-brand);
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem;
}
.payment-table tr:last-child td {
    border-bottom: none;
}
.payment-table td {
    color: var(--color-text);
}
@media (max-width: 768px) {
    .payment-table {
        display: block;
        overflow-x: auto;
    }
}

/* ----------------------------------------
   БЛОК ДОСТАВКИ
---------------------------------------- */
.delivery {
    padding: 100px 0;
    background: var(--color-bg);
}
.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.delivery-card {
    background: var(--color-white);
    padding: 35px 25px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}
.delivery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}
.delivery-icon i {
    font-size: 48px;
    color: var(--color-brand);
    margin-bottom: 20px;
}
.delivery-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 20px;
}
.delivery-card h3 {
    font-size: 1.4rem;
    color: var(--color-brand);
    margin-bottom: 15px;
}
.delivery-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}
.delivery-note {
    color: var(--color-action);
    font-weight: 500;
}
.delivery-additional {
    max-width: 900px;
    margin: 50px auto 0;
    padding: 30px;
    background: var(--color-white);
    border-radius: 24px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text);
    box-shadow: var(--box-shadow);
}

/* ----------------------------------------
   БЛОК ДОКУМЕНТЫ И СЕРТИФИКАТЫ
---------------------------------------- */
.documents {
    padding: 100px 0;
    background: var(--color-white);
}
.documents-text {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}
.documents-button {
    text-align: center;
    margin-bottom: 60px;
}
.documents-button .button {
    background: transparent;
    border: 2px solid var(--color-action);
    color: var(--color-action);
    font-weight: 600;
}
.documents-button .button:hover {
    background: var(--color-action);
    color: var(--color-white);
}
.documents-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.document-item {
    display: block;
    text-decoration: none;
    background: var(--color-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}
.document-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}
.document-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}
.document-caption {
    display: block;
    padding: 15px;
    text-align: center;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
}

/* ----------------------------------------
   FAQ
---------------------------------------- */
.faq {
    padding: 100px 0;
    background: var(--color-white);
}
.faq-categories {
    max-width: 1000px;
    margin: 50px auto 0;
}
.faq-category {
    margin-bottom: 50px;
}
.faq-category-title {
    font-size: 1.8rem;
    color: var(--color-brand);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-brand);
}
.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
}
.faq-question {
    padding: 18px 25px;
    background: var(--color-bg);
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-question:hover {
    background: #E2E8F0;
}
.faq-question.active {
    background: var(--color-brand);
    color: var(--color-white);
}
.faq-toggle {
    width: 22px;
    height: 22px;
    position: relative;
}
.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: transform 0.3s;
}
.faq-toggle::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}
.faq-toggle::after {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}
.faq-question.active .faq-toggle::before {
    transform: translateX(-50%) rotate(90deg);
}
.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
    background: var(--color-white);
}
.faq-answer.active {
    padding: 25px;
    max-height: 800px;
}
.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------
   КОНТАКТНАЯ ИНФОРМАЦИЯ
---------------------------------------- */
.contact-info {
    padding: 80px 0;
    background: var(--color-white);
}
.contact-info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--color-bg);
    padding: 18px 30px;
    border-radius: 60px;
    flex: 0 1 auto;
    transition: var(--transition);
}
.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}
.contact-item i {
    font-size: 26px;
    color: var(--color-brand);
}
.contact-label {
    font-weight: 600;
    color: var(--color-text);
    margin-right: 5px;
}
.contact-item a {
    color: var(--color-action);
    font-weight: 500;
}

/* ----------------------------------------
   АДРЕСА
---------------------------------------- */
.addresses {
    padding: 80px 0;
    background: var(--color-bg);
}
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.address-item {
    background: var(--color-white);
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}
.address-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}
.address-item h3 {
    font-size: 1.3rem;
    color: var(--color-brand);
    margin-bottom: 15px;
}
.address-item p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}
.address-map-link {
    color: var(--color-action);
    font-weight: 500;
    text-decoration: underline;
}

/* ----------------------------------------
   КАРТА
---------------------------------------- */
.map-block {
    padding: 80px 0;
    background: var(--color-white);
}
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ----------------------------------------
   РЕКВИЗИТЫ
---------------------------------------- */
.requisites {
    padding: 80px 0;
    background: var(--color-bg);
}
.requisites-content {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 40px;
    border-radius: 24px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    line-height: 1.8;
    border: 1px solid var(--color-border);
    box-shadow: var(--box-shadow);
}

/* ----------------------------------------
   ФОРМА ОБРАТНОЙ СВЯЗИ
---------------------------------------- */
.contact-form-block {
    padding: 80px 0;
    background: var(--color-white);
}
.contact-form-wrapper {
    max-width: 650px;
    margin: 0 auto;
}
.contact-form-wrapper input,
.contact-form-wrapper textarea,
.contact-form-wrapper select {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
}
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus,
.contact-form-wrapper select:focus {
    border-color: var(--color-action);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 202, 211, 0.1);
}
.contact-form-wrapper input[type="submit"] {
    background: var(--color-action);
    color: var(--color-text);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    padding: 16px 35px;
    border-radius: 60px;
    font-size: 1.1rem;
}
.contact-form-wrapper input[type="submit"]:hover {
    background: var(--color-hover);
    color: var(--color-white);
}

/* ----------------------------------------
   РЕКОМЕНДУЕМОЕ ОБОРУДОВАНИЕ
---------------------------------------- */
.object-recommended {
    padding: 80px 0;
    background: var(--color-bg);
}
.recommended-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.recommended-list li {
    background: var(--color-white);
    border-radius: 60px;
    padding: 12px 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: var(--transition);
}
.recommended-list li:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}
.recommended-list a {
    color: var(--color-action);
    font-weight: 500;
}

/* ----------------------------------------
   КЕЙС
---------------------------------------- */
.object-case {
    padding: 100px 0;
    background: var(--color-white);
}
.case-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}
.case-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--box-shadow);
}
.case-text h3 {
    font-size: 1.3rem;
    color: var(--color-brand);
    margin: 0 0 10px;
}
.case-text p {
    margin-bottom: 25px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ----------------------------------------
   АГРЕГАТОР (ГОРИЗОНТАЛЬНЫЕ КАРТОЧКИ)
---------------------------------------- */
.aggregator {
    padding: 100px 0;
    background: var(--color-white);
}
.aggregator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 60px;
}
.aggregator-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: var(--color-bg);
    border-radius: 24px;
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
    border: 1px solid var(--color-border);
    box-shadow: var(--box-shadow);
}
.aggregator-item:hover {
    background: var(--color-brand);
    color: var(--color-white);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}
.aggregator-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.03);
    transition: var(--transition);
}
.aggregator-item:hover .aggregator-icon {
    background: rgba(255, 255, 255, 0.2);
}
.aggregator-icon i {
    font-size: 36px;
    color: var(--color-brand);
    transition: var(--transition);
}
.aggregator-item:hover .aggregator-icon i {
    color: var(--color-white);
}
.aggregator-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.aggregator-title {
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* ----------------------------------------
   КВИЗ
---------------------------------------- */
.quiz-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 30px;
    background: var(--color-white);
    border-radius: 40px;
    box-shadow: var(--box-shadow);
}
.quiz-step {
    transition: opacity 0.3s;
}
.quiz-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-brand);
    margin: 0 0 20px;
    text-align: center;
}
.quiz-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    margin: 0 0 50px;
    text-align: center;
}
.quiz-start {
    display: block;
    margin: 0 auto;
    padding: 18px 60px;
    font-size: 1.3rem;
}
.quiz-progress {
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}
.quiz-progress-bar {
    height: 10px;
    background: var(--color-action);
    border-radius: 5px;
    transition: width 0.3s;
}
.quiz-progress-text {
    display: block;
    text-align: right;
    margin-top: 10px;
    color: var(--color-text-secondary);
}
.quiz-question-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 40px;
}
.quiz-answers {
    margin-bottom: 40px;
}
.quiz-answer {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    margin-bottom: 12px;
    background: var(--color-bg);
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}
.quiz-answer:hover {
    background: #E2E8F0;
    border-color: var(--color-action);
}
.quiz-answer input[type="radio"],
.quiz-answer input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 18px;
    accent-color: var(--color-action);
}
.quiz-answer-text {
    font-size: 1.2rem;
    color: var(--color-text);
}
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}
.quiz-prev,
.quiz-next {
    min-width: 140px;
    padding: 14px 25px;
}
.quiz-prev:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.quiz-form-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-brand);
    margin: 0 0 20px;
    text-align: center;
}
.quiz-form-text {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin: 0 0 40px;
    text-align: center;
}
.quiz-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

/* ----------------------------------------
   СТИЛИ ДЛЯ ФОРМ В ПОПАПАХ
---------------------------------------- */
.pum-container .wpcf7-form {
    max-width: 100%;
    margin: 0;
    padding: 15px 0 0;
}
.pum-container .wpcf7-form p {
    margin: 0 0 20px;
}
.pum-container .wpcf7-form label {
    display: block;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
    font-size: 1rem;
}
.pum-container .wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 5px;
}
.pum-container .wpcf7-form input[type="text"],
.pum-container .wpcf7-form input[type="tel"],
.pum-container .wpcf7-form input[type="email"],
.pum-container .wpcf7-form input[type="search"],
.pum-container .wpcf7-form input[type="url"],
.pum-container .wpcf7-form input[type="number"],
.pum-container .wpcf7-form textarea,
.pum-container .wpcf7-form select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-white);
    font-size: 1rem;
    color: var(--color-text);
    transition: var(--transition);
    box-sizing: border-box;
}
.pum-container .wpcf7-form input:focus,
.pum-container .wpcf7-form textarea:focus,
.pum-container .wpcf7-form select:focus {
    outline: none;
    border-color: var(--color-action);
    box-shadow: 0 0 0 3px rgba(30, 202, 211, 0.1);
}
.pum-container .wpcf7-form textarea {
    min-height: 100px;
    resize: vertical;
}
.pum-container .wpcf7-form .wpcf7-submit {
    display: inline-block;
    width: 100%;
    padding: 16px 20px;
    background: var(--color-action);
    color: var(--color-text);
    border: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(30, 202, 211, 0.2);
    margin-top: 10px;
}
.pum-container .wpcf7-form .wpcf7-submit:hover {
    background: var(--color-hover);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(30, 202, 211, 0.3);
}
.pum-container .wpcf7-form .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1rem;
    border: none;
    background: var(--color-bg);
    color: var(--color-text);
    text-align: center;
}
.pum-container .wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ok {
    background: #E8F5E9;
    color: #2E7D32;
}
.pum-container .wpcf7-form .wpcf7-response-output.wpcf7-validation-errors,
.pum-container .wpcf7-form .wpcf7-response-output.wpcf7-acceptance-missing {
    background: #FFEBEE;
    color: #C62828;
}
.pum-container .wpcf7-form .wpcf7-not-valid-tip {
    color: #C62828;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ----------------------------------------
   КАТАЛОГ: СЕТКА И САЙДБАР
---------------------------------------- */
.shop-container {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}
.shop-main {
    order: 2;
    flex: 1;
    min-width: 0;
}
.shop-sidebar {
    order: 1;
    width: 300px;
    flex-shrink: 0;
    background: var(--color-white);
    padding: 25px;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    box-shadow: var(--box-shadow);
}
.filter-toggle {
    display: none;
    width: 100%;
    padding: 16px 24px;
    margin-bottom: 30px;
    background: var(--color-action);
    color: var(--color-text);
    border: none;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(30, 202, 211, 0.25);
    transition: var(--transition);
}
.filter-toggle:hover {
    background: var(--color-hover);
    color: var(--color-white);
    transform: translateY(-3px);
}
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    background: rgba(0, 0, 0, 0);
    z-index: 10000;
    transition: background 0.3s ease, visibility 0.3s ease;
}
.mobile-sidebar.active {
    visibility: visible;
    background: rgba(0, 0, 0, 0.5);
}
.mobile-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--color-white);
    padding: 80px 25px 25px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 24px 0 0 24px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}
.mobile-sidebar.active .mobile-sidebar-content {
    transform: translateX(0);
}
.mobile-sidebar-close {
    position: absolute;
    top: 25px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--color-bg);
    border: none;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: var(--transition);
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.mobile-sidebar-close:hover {
    background: #E2E8F0;
    transform: rotate(90deg);
}

/* ----------------------------------------
   КАРТОЧКИ КАТЕГОРИЙ ТОВАРОВ (растягивание последнего ряда)
---------------------------------------- */
.products {
    flex-wrap: wrap !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.products::before,
.products::after {
    display: none !important;
}
.products li.product-category {
    flex: 1 1 280px;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
}
.products li.product-category a {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    background: var(--color-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--color-text);
    height: 100%;
}
.products li.product-category a:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}
.category-image-container {
    height: 220px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.category-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    display: block;
}
.products li.product-category h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-brand);
    margin: 0;
    padding: 20px 15px 25px;
    text-align: center;
    flex: 1;
}
.products li.product-category mark.count {
    display: none !important;
}

/* ----------------------------------------
   КАРТОЧКИ ТОВАРОВ (также гибкие)
---------------------------------------- */
.products li.product {
    flex: 1 1 280px;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--color-white) !important;
    border: none !important;
    border-radius: 24px !important;
    box-shadow: var(--box-shadow) !important;
    transition: var(--transition) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative;
}
.products li.product:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--box-shadow-hover) !important;
}
.products li.product a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    text-decoration: none !important;
    color: var(--color-text) !important;
}
.products li.product .product-image-container {
    position: relative !important;
    height: 220px !important;
    background: #f8f8f8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}
.products li.product .product-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}
.products li.product .onsale {
    position: absolute !important;
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 6px 14px !important;
    border-radius: 60px !important;
    z-index: 10 !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
    pointer-events: none !important;
    top: 15px;
    right: 15px;
}
.products li.product h2 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--color-text) !important;
    margin: 18px 18px 8px !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.4 !important;
}
.products li.product .price {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--color-action) !important;
    margin: 0 18px 15px !important;
    padding: 0 !important;
    text-align: left !important;
}
.products li.product .price del {
    color: var(--color-text-muted) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    margin-right: 6px !important;
}
.products li.product .price ins {
    text-decoration: none !important;
}
.products li.product .button,
.products li.product .added_to_cart {
    display: block !important;
    margin: 0 18px 20px 18px !important;
    padding: 14px 15px !important;
    background: var(--color-action) !important;
    color: var(--color-text) !important;
    border-radius: 60px !important;
    text-align: center !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    transition: var(--transition) !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(30, 202, 211, 0.2) !important;
    text-decoration: none !important;
}
.products li.product .button:hover,
.products li.product .added_to_cart:hover {
    background: var(--color-hover) !important;
    color: var(--color-white) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 28px rgba(30, 202, 211, 0.3) !important;
}
.products li.product .star-rating {
    display: none !important;
}
.product-popularity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg);
    padding: 6px 14px;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    margin: 10px 0;
    width: fit-content;
}
.products .product-popularity {
    margin-left: auto;
    margin-right: auto;
}

/* Предзаказ */
.preorder-btn,
.notify-btn {
    display: inline-block;
    padding: 14px 20px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 60px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.2);
}
.preorder-btn:hover,
.notify-btn:hover {
    background: #E08A0B;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.3);
    color: var(--color-white);
}

/* ----------------------------------------
   ПАГИНАЦИЯ WOOCOMMERCE
---------------------------------------- */
.woocommerce nav.woocommerce-pagination {
    margin: 60px 0 30px;
    width: 100%;
}
.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}
.woocommerce nav.woocommerce-pagination ul li {
    float: none;
    border: none;
    margin: 0;
    padding: 0;
    display: block;
}
.woocommerce nav.woocommerce-pagination ul li .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}
.woocommerce nav.woocommerce-pagination ul li .page-numbers:hover {
    background: #E2E8F0;
    border-color: var(--color-border);
    transform: translateY(-2px);
}
.woocommerce nav.woocommerce-pagination ul li .page-numbers.current {
    background: var(--color-action);
    color: var(--color-white);
    border-color: var(--color-action);
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(30, 202, 211, 0.25);
    cursor: default;
    pointer-events: none;
}
.woocommerce nav.woocommerce-pagination ul li .page-numbers.next,
.woocommerce nav.woocommerce-pagination ul li .page-numbers.prev {
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1.2rem;
}
.woocommerce nav.woocommerce-pagination ul li .page-numbers.next:hover,
.woocommerce nav.woocommerce-pagination ul li .page-numbers.prev:hover {
    background: var(--color-action);
    color: var(--color-white);
}
.woocommerce nav.woocommerce-pagination ul li .page-numbers.dots {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--color-text-muted);
    cursor: default;
    min-width: auto;
    padding: 0 8px;
}

/* ----------------------------------------
   СТРАНИЦА ТОВАРА
---------------------------------------- */
.woocommerce div.product {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}
.product-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}
.product-gallery {
    flex: 1 1 50%;
    min-width: 320px;
}
.product-summary {
    flex: 1 1 40%;
    min-width: 320px;
}
.woocommerce-product-gallery {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #f8f8f8;
    box-shadow: var(--box-shadow);
}
.woocommerce-product-gallery__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 450px;
    background: #f8f8f8;
}
.woocommerce-product-gallery__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}
.flex-control-thumbs li {
    flex: 0 0 90px;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.flex-control-thumbs li.flex-active {
    border-color: var(--color-action);
}
.flex-control-thumbs img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}
.product_title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-brand);
    margin: 0 0 15px;
    line-height: 1.2;
}
.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-action);
    margin: 0 0 20px;
}
.price del {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 400;
    margin-right: 12px;
}
.price ins {
    text-decoration: none;
}
.woocommerce-product-details__short-description {
    background: var(--color-bg);
    border-radius: 24px;
    padding: 30px;
    margin: 30px 0;
    border-left: 4px solid var(--color-brand);
}
.short-description-content,
.install-content,
.warranty-content,
.engineer-content {
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.short-description-content.expanded {
    max-height: none;
}
.short-description-toggle,
.install-toggle,
.warranty-toggle,
.engineer-toggle {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background: var(--color-action);
    color: var(--color-text);
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(30, 202, 211, 0.2);
}
.short-description-toggle:hover {
    background: var(--color-hover);
    color: var(--color-white);
    transform: translateY(-3px);
}
.product_meta {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--color-border);
    font-size: 1rem;
    color: var(--color-text-muted);
}
.product_meta a {
    color: var(--color-action);
    font-weight: 500;
}
.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 35px 0 25px;
}
.quantity {
    display: inline-block;
    width: 130px;
}
.quantity .qty {
    width: 100%;
    padding: 16px 15px;
    border: 2px solid var(--color-border);
    border-radius: 60px;
    font-size: 1rem;
    text-align: center;
    background: var(--color-white);
    color: var(--color-text);
    transition: var(--transition);
    box-sizing: border-box;
}
.quantity .qty:focus {
    outline: none;
    border-color: var(--color-action);
}
.single_add_to_cart_button {
    flex: 1;
    min-width: 220px;
    padding: 16px 28px;
    background: var(--color-action);
    color: var(--color-text);
    border: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(30, 202, 211, 0.25);
}
.single_add_to_cart_button:hover {
    background: var(--color-hover);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(30, 202, 211, 0.35);
}
.product-additional-blocks {
    margin-top: 50px;
}
.product-delivery-info {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 32px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
}
.product-delivery-info h4 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-brand);
    margin: 0 0 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--color-brand);
    padding-bottom: 15px;
}
.product-delivery-info h4 i {
    color: var(--color-brand);
    font-size: 2rem;
}
.delivery-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.delivery-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--color-border);
}
.delivery-item:last-child {
    border-bottom: none;
}
.delivery-item i {
    width: 32px;
    font-size: 1.4rem;
    color: var(--color-brand);
    text-align: center;
}
.delivery-label {
    font-weight: 600;
    color: var(--color-text);
    min-width: 180px;
}
.delivery-value {
    color: var(--color-text-secondary);
    font-weight: 500;
}
.product-fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin: 40px 0;
}
.fit-column,
.not-fit-column {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 32px;
    padding: 30px;
    box-shadow: var(--box-shadow);
}
.fit-column h3,
.not-fit-column h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid;
}
.fit-column h3 {
    border-bottom-color: var(--color-success);
}
.not-fit-column h3 {
    border-bottom-color: var(--color-danger);
}
.fit-list,
.not-fit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fit-list li,
.not-fit-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--color-border);
}
.fit-list li:last-child,
.not-fit-list li:last-child {
    border-bottom: none;
}
.fit-list i {
    color: var(--color-success);
    font-size: 1.1rem;
}
.not-fit-list i {
    color: var(--color-danger);
    font-size: 1.1rem;
}
.product-acf-info {
    margin-top: 40px;
}
.product-installation,
.product-warranty,
.product-engineer {
    background: var(--color-white);
    border-radius: 32px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}
.product-installation:hover,
.product-warranty:hover,
.product-engineer:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}
.product-installation h3,
.product-warranty h3,
.product-engineer h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-brand);
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--color-brand);
    display: flex;
    align-items: center;
    gap: 12px;
}
.product-installation h3 i,
.product-warranty h3 i,
.product-engineer h3 i {
    color: var(--color-brand);
    font-size: 2.2rem;
}
.install-content,
.warranty-content,
.engineer-content {
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}
.install-content ul,
.warranty-content ul,
.engineer-content ul {
    padding-left: 20px;
}
.install-content li,
.warranty-content li,
.engineer-content li {
    margin-bottom: 8px;
}
.product-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 50px;
}
.product-buttons .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    padding: 18px 28px;
}
.woocommerce-tabs {
    margin: 60px 0;
}
.wc-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    border-bottom: 2px solid var(--color-border);
}
.wc-tabs li {
    margin: 0 30px 0 0;
}
.wc-tabs li a {
    display: block;
    padding: 14px 0;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}
.wc-tabs li.active a {
    color: var(--color-brand);
    border-bottom-color: var(--color-brand);
}
.woocommerce-Tabs-panel {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--box-shadow);
}
.woocommerce-Tabs-panel h2 {
    font-size: 1.8rem;
    margin: 0 0 30px;
    color: var(--color-brand);
}
.woocommerce-Tabs-panel table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}
.woocommerce-Tabs-panel table th,
.woocommerce-Tabs-panel table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
.woocommerce-Tabs-panel table th {
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-bg);
    width: 240px;
}
.woocommerce-Tabs-panel table td {
    color: var(--color-text-secondary);
}
.woocommerce-Tabs-panel table tr:last-child th,
.woocommerce-Tabs-panel table tr:last-child td {
    border-bottom: none;
}
.woocommerce-Tabs-panel .woocommerce-product-attributes th,
.woocommerce-Tabs-panel .woocommerce-product-attributes td {
    padding: 14px 20px;
    border-bottom: 1px dashed var(--color-border);
}
.woocommerce-Tabs-panel .woocommerce-product-attributes th {
    font-weight: 600;
    color: var(--color-text);
    background: transparent;
    width: 240px;
}
.woocommerce-Tabs-panel .woocommerce-product-attributes td {
    color: var(--color-text-secondary);
}

/* ----------------------------------------
   СЛАЙДЕР ТОВАРА (Swiper)
---------------------------------------- */
.product-gallery-swiper {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #f8f8f8;
    box-shadow: var(--box-shadow);
    user-select: none;
}
.product-gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 450px;
    background: #f8f8f8;
}
.product-gallery-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}
.swiper-button-prev,
.swiper-button-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand);
    font-size: 26px;
}
.swiper-button-prev:after,
.swiper-button-next:after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 26px;
    content: "";
}
.swiper-button-prev:after {
    content: "\f053";
}
.swiper-button-next:after {
    content: "\f054";
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
    transform: scale(1.1);
}
.swiper-pagination-bullet {
    background: var(--color-brand);
    opacity: 0.5;
    width: 12px;
    height: 12px;
    transition: opacity 0.2s;
}
.swiper-pagination-bullet-active {
    opacity: 1;
}
.product-gallery-thumbs {
    margin-top: 20px;
}
.product-gallery-thumbs .swiper-slide {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    height: 90px;
    background: #f8f8f8;
    opacity: 0.7;
    transition: opacity 0.2s, border-color 0.2s;
}
.product-gallery-thumbs .swiper-slide:hover {
    opacity: 1;
}
.product-gallery-thumbs .swiper-slide-thumb-active {
    border-color: var(--color-action);
    opacity: 1;
}
.product-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.product-gallery .onsale {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 10;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-weight: bold;
    font-size: 1rem;
    padding: 8px 18px;
    border-radius: 60px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    pointer-events: none;
}

/* ----------------------------------------
   ФИЛЬТРЫ В САЙДБАРЕ (WooCommerce Blocks)
---------------------------------------- */
.shop-sidebar .wp-block-search__label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
    display: block;
}
.shop-sidebar .wp-block-search__inside-wrapper {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 60px;
    padding: 4px;
    transition: var(--transition);
}
.shop-sidebar .wp-block-search__inside-wrapper:focus-within {
    border-color: var(--color-action);
    box-shadow: 0 0 0 3px rgba(30, 202, 211, 0.1);
}
.shop-sidebar .wp-block-search__input {
    border: none;
    padding: 12px 18px;
    background: transparent;
    border-radius: 60px;
    font-size: 0.95rem;
    color: var(--color-text);
}
.shop-sidebar .wp-block-search__input::placeholder {
    color: var(--color-text-muted);
}
.shop-sidebar .wp-block-search__input:focus {
    outline: none;
}
.shop-sidebar .wp-block-search__button {
    background: var(--color-action);
    color: var(--color-text);
    border: none;
    border-radius: 60px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.shop-sidebar .wp-block-search__button:hover {
    background: var(--color-hover);
    color: var(--color-white);
}
.shop-sidebar .wp-block-woocommerce-product-filters {
    background: var(--color-white);
    padding: 20px;
}
.shop-sidebar .wp-block-woocommerce-product-filters h3.wp-block-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-brand);
    margin: 20px 0 12px 0 !important;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-border);
}
.wc-block-product-filter-checkbox-list__item {
    margin-bottom: 8px;
}
.wc-block-product-filter-checkbox-list__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: var(--transition);
    cursor: pointer;
}
.wc-block-product-filter-checkbox-list__label:hover {
    color: var(--color-action);
}
.wc-block-product-filter-checkbox-list__mark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-white);
    transition: var(--transition);
}
.wc-block-product-filter-checkbox-list__input:checked + .wc-block-product-filter-checkbox-list__mark {
    background: var(--color-action);
    border-color: var(--color-action);
}
.wc-block-product-filter-checkbox-list__input:checked + .wc-block-product-filter-checkbox-list__mark path {
    stroke: var(--color-white);
}
.wc-block-product-filter-checkbox-list__count {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-left: 4px;
}
.wp-block-button__link.wc-block-product-filter-clear-button {
    background: transparent !important;
    color: var(--color-action) !important;
    border: 2px solid var(--color-action) !important;
    border-radius: 60px !important;
    padding: 10px 18px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
    width: 100%;
    margin: 15px 0 10px;
}
.wp-block-button__link.wc-block-product-filter-clear-button:hover {
    background: var(--color-action) !important;
    color: var(--color-white) !important;
}
.wc-block-product-filter-price-slider__range {
    position: relative;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    margin-bottom: 20px;
}
.wc-block-product-filter-price-slider__range .range-bar {
    position: absolute;
    height: 6px;
    background: var(--color-action);
    border-radius: 3px;
}
.wc-block-product-filter-price-slider__range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--color-white);
    border: 2px solid var(--color-action);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.wc-block-product-filter-price-slider__range input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--color-action);
}
.wc-block-product-filter-price-slider__left.text input,
.wc-block-product-filter-price-slider__right.text input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    font-size: 0.9rem;
    text-align: center;
    background: var(--color-white);
    color: var(--color-text);
}
.wc-block-product-filter-price-slider__left.text input:focus,
.wc-block-product-filter-price-slider__right.text input:focus {
    border-color: var(--color-action);
    outline: none;
}
.wc-block-product-filter-removable-chips__item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 60px;
    padding: 6px 12px 6px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.wc-block-product-filter-removable-chips__item button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 1rem;
}
.wc-block-product-filters__overlay-footer .wc-block-product-filters__apply {
    background: var(--color-action) !important;
    color: var(--color-text) !important;
    border: none !important;
    border-radius: 60px !important;
    padding: 14px 24px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: var(--transition) !important;
}
.wc-block-product-filters__overlay-footer .wc-block-product-filters__apply:hover {
    background: var(--color-hover) !important;
    color: var(--color-white) !important;
}

/* ----------------------------------------
   404 СТРАНИЦА
---------------------------------------- */
.error-404 {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}
.error-404__title {
    font-size: 6rem;
    font-weight: 700;
    color: var(--color-brand);
    margin: 0 0 20px;
    line-height: 1;
}
.error-404__text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}
.error-404 .search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}
.error-404 .search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 1rem;
}
.error-404 .search-form button {
    padding: 12px 24px;
    background: var(--color-action);
    color: var(--color-text);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.error-404 .search-form button:hover {
    background: var(--color-hover);
    color: var(--color-white);
}
.error-404__button {
    display: inline-block;
    padding: 14px 30px;
    background: var(--color-action);
    color: var(--color-text);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.error-404__button:hover {
    background: var(--color-hover);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ----------------------------------------
   ПОИСК
---------------------------------------- */
.search-results {
    margin-top: 40px;
}
.search-result-item {
    padding: 25px 0;
    border-bottom: 1px solid var(--color-border);
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item h2 {
    font-size: 1.6rem;
    margin: 0 0 10px;
}
.search-result-item h2 a {
    color: var(--color-brand);
    text-decoration: none;
}
.search-result-item h2 a:hover {
    color: var(--color-action);
}
.entry-excerpt {
    color: var(--color-text-secondary);
}
.no-results {
    text-align: center;
    padding: 60px 20px;
}
.no-results .search-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 30px auto;
}
.no-results .search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 50px;
}
.no-results .search-form button {
    padding: 12px 24px;
    background: var(--color-action);
    color: var(--color-text);
    border: none;
    border-radius: 50px;
    cursor: pointer;
}

/* ----------------------------------------
   НОВЫЕ БЛОКИ (СЕРВИС, СТАТИСТИКА, ЛИЗИНГ)
---------------------------------------- */
.text-with-title {
    padding: 80px 0;
    background: var(--color-white);
}
.text-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}
.text-content ul,
.text-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}
.text-content li {
    margin-bottom: 0.5rem;
}
.cards-with-button {
    padding: 80px 0;
    background: var(--color-white);
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}
.card-item {
    background: var(--color-bg);
    border-radius: 28px;
    padding: 35px 30px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}
.card-item h3 {
    font-size: 1.6rem;
    color: var(--color-brand);
    margin: 0 0 20px;
    border-left: 4px solid var(--color-brand);
    padding-left: 20px;
}
.card-description {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
    flex: 1;
}
.card-description ul,
.card-description ol {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}
.card-description li {
    margin-bottom: 8px;
}
.card-item .button {
    align-self: flex-start;
    margin-top: auto;
}
.icon-text-grid {
    padding: 80px 0;
    background: var(--color-bg);
}
.grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}
.grid-item {
    text-align: center;
    background: var(--color-white);
    padding: 35px 25px;
    border-radius: 28px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}
.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}
.item-icon {
    margin-bottom: 20px;
}
.item-icon i {
    font-size: 48px;
    color: var(--color-brand);
}
.item-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}
.grid-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin: 0;
}
.list-with-button {
    padding: 80px 0;
    background: var(--color-white);
}
.list-items {
    max-width: 800px;
    margin: 0 auto 40px;
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.list-items li {
    background: var(--color-bg);
    border-radius: 60px;
    padding: 12px 28px;
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.list-items li:hover {
    background: var(--color-brand);
    color: var(--color-white);
    transform: translateY(-2px);
}
.list-with-button .button {
    display: block;
    width: fit-content;
    margin: 0 auto;
}
.price-table-block {
    padding: 80px 0;
    background: var(--color-bg);
}
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin: 30px 0 20px;
}
.price-table th,
.price-table td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.price-table th {
    background: var(--color-brand);
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem;
}
.price-table tr:last-child td {
    border-bottom: none;
}
.price-table td {
    color: var(--color-text);
}
.price-note {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: var(--color-white);
    border-radius: 24px;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    border-left: 4px solid var(--color-brand);
}
.text-with-button-block {
    padding: 80px 0;
    background: var(--color-white);
}
.text-with-button-block .text-content {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}
.text-with-button-block .button {
    display: block;
    width: fit-content;
    margin: 0 auto;
}
.companies-stats {
    padding: 80px 0;
    background: var(--color-white);
}
.companies-stats-list {
    max-width: 800px;
    margin: 40px auto;
}
.company-stat {
    margin-bottom: 30px;
}
.company-name {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}
.progress-bar {
    height: 12px;
    background: var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    margin: 8px 0 12px;
}
.progress {
    height: 100%;
    background: var(--color-action);
    border-radius: 20px;
    width: 0%;
}
.company-cities {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.recent-shipments {
    text-align: center;
    max-width: 800px;
    margin: 60px auto 0;
    padding: 30px;
    background: var(--color-bg);
    border-radius: 28px;
}
.recent-shipments h3 {
    font-size: 1.6rem;
    color: var(--color-brand);
    margin-bottom: 15px;
}
.recent-shipments p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}
.leasing-block {
    padding: 80px 0;
    background: var(--color-bg);
}
.leasing-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    background: var(--color-white);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}
.leasing-left {
    flex: 1 1 50%;
    padding: 50px 40px;
}
.leasing-right {
    flex: 1 1 40%;
    background: var(--color-bg);
    padding: 50px 40px;
}
.trust-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: space-between;
}
.trust-number {
    background: var(--color-action);
    color: var(--color-text);
    padding: 12px 20px;
    border-radius: 60px;
    font-weight: 600;
    text-align: center;
    flex: 1 0 auto;
    font-size: 1rem;
}
.utp-text {
    margin: 30px 0;
    padding: 20px;
    background: var(--color-bg);
    border-left: 4px solid var(--color-brand);
    border-radius: 20px;
}
.how-works h3 {
    font-size: 1.4rem;
    margin: 20px 0 15px;
    color: var(--color-brand);
}
.how-works .steps {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}
.how-works .step {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: var(--color-bg);
    border-radius: 20px;
}
.step-text {
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    color: var(--color-text);
}
.leasing-form-wrapper {
    background: var(--color-white);
    padding: 30px;
    border-radius: 28px;
    box-shadow: var(--box-shadow);
}
.leasing-form .step-2 {
    margin-top: 20px;
}
.leasing-form .small-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 10px;
}
.leasing-next-step {
    width: 100%;
    margin-top: 10px;
}
.leasing-nav {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 20px;
}
.leasing-nav .button {
    flex: 1;
    text-align: center;
}
.leasing-error {
    background: #fee;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 10px 0;
    color: #c0392b;
    font-size: 0.9rem;
    display: none;
}
.leasing-success {
    background: #2ecc71;
    color: var(--color-white);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* ----------------------------------------
   ОТЗЫВЫ (lightGallery)
---------------------------------------- */
.product-reviews-section {
    margin: 60px 0;
    background: var(--color-white);
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--box-shadow);
}
.reviews-filters {
    display: flex;
    gap: 15px;
    margin: 20px 0 20px;
}
.filter-btn {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 8px 20px;
    border-radius: 60px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}
.filter-btn.active {
    background: var(--color-action);
    color: var(--color-text);
    border-color: var(--color-action);
}
.reviews-sort {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}
.reviews-sort select {
    padding: 8px 16px;
    border-radius: 60px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    cursor: pointer;
}
.review-item {
    border-bottom: 1px solid var(--color-border);
    padding: 25px 0;
}
.review-item:last-child {
    border-bottom: none;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.review-rating i {
    color: var(--color-accent);
    font-size: 0.9rem;
}
.review-author {
    font-weight: 600;
    color: var(--color-text);
}
.review-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.review-text {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}
.review-media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}
.media-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--color-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid var(--color-border);
    flex-direction: column;
}
.media-item:hover {
    transform: scale(1.02);
}
.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-item i {
    font-size: 24px;
    color: var(--color-brand);
    margin-bottom: 4px;
}
.media-item span {
    font-size: 0.65rem;
    color: var(--color-text-muted);
}
.media-item:hover i,
.media-item:hover span {
    color: var(--color-white);
}
.media-item:hover {
    background: var(--color-brand);
}

/* ----------------------------------------
   ФОРМА ОТЗЫВА (попап)
---------------------------------------- */
#add-review-popup {
    max-width: 700px;
    margin: 20px auto;
    background: var(--color-white);
    padding: 30px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
#add-review-popup .popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: normal;
    line-height: 1;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}
#add-review-popup .popup-close:hover {
    color: var(--color-brand);
}
#add-review-popup h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--color-brand);
    font-size: 1.5rem;
    text-align: center;
}
#add-review-popup label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--color-text);
}
#add-review-popup input[type="text"],
#add-review-popup input[type="email"],
#add-review-popup textarea,
#add-review-popup select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--color-white);
}
#add-review-popup input[type="text"]:focus,
#add-review-popup input[type="email"]:focus,
#add-review-popup textarea:focus,
#add-review-popup select:focus {
    border-color: var(--color-action);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 202, 211, 0.1);
}
#add-review-popup textarea {
    resize: vertical;
    min-height: 100px;
}
.review-rating-stars {
    display: flex;
    gap: 5px;
    font-size: 24px;
    cursor: pointer;
}
.review-rating-stars .star.fas {
    color: var(--color-accent);
}
.review-rating-stars .star.far {
    color: #ccc;
}
.file-upload-area {
    margin-bottom: 20px;
}
.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 60px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
}
.file-upload-btn:before {
    content: "\f067";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}
.file-upload-btn:hover {
    background: var(--color-action);
    color: var(--color-text);
    border-color: var(--color-action);
}
.file-preview-list {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.preview-item {
    position: relative;
    width: 100px;
    background: var(--color-bg);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding: 5px;
    cursor: pointer;
}
.preview-item .preview-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
}
.preview-item .preview-icon {
    font-size: 40px;
    color: var(--color-brand);
    margin: 15px auto 5px;
    display: block;
    cursor: pointer;
}
.preview-item .preview-name {
    display: block;
    font-size: 0.7rem;
    word-break: break-all;
    padding: 4px;
    background: rgba(0,0,0,0.05);
    margin-top: 5px;
}
.preview-item .remove-file {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.preview-item .remove-file:hover {
    background: #e74c3c;
}
#add-review-popup input[type="submit"] {
    width: 100%;
    background: var(--color-action);
    color: var(--color-text);
    border: none;
    padding: 14px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}
#add-review-popup input[type="submit"]:hover {
    background: var(--color-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 202, 211, 0.2);
}
.review-form-message {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
}

/* ----------------------------------------
   LIGHTGALLERY
---------------------------------------- */
.lg-outer .lg-thumb-item {
    border-radius: 8px;
    border: 2px solid transparent;
}
.lg-outer .lg-thumb-item.active,
.lg-outer .lg-thumb-item:hover {
    border-color: var(--color-action);
}
.lg-outer .lg-video-cont {
    background: #000;
}
.lg-outer .lg-video-object {
    max-width: 100%;
    max-height: 80vh;
}
.lg-outer .lg-close {
    font-size: 28px;
}
.lg-outer .lg-toolbar {
    background: rgba(0,0,0,0.6);
}
.lg-outer .lg-icon {
    color: var(--color-white);
}
.lg-outer .lg-icon:hover {
    color: var(--color-action);
}

/* ----------------------------------------
   НОВЫЕ БЛОКИ ПАРТНЁРСТВА
---------------------------------------- */
.partner-tezisy {
    padding: 80px 0;
    background: var(--color-bg);
}
.partner-tezisy__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}
.partner-tezisy__item {
    flex: 1 1 280px;
    background: var(--color-white);
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--box-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}
.partner-tezisy__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}
.partner-tezisy__item i {
    font-size: 48px;
    color: var(--color-brand);
}
.partner-tezisy__item span {
    font-weight: 500;
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.4;
}

.partner-formats {
    padding: 100px 0;
    background: var(--color-white);
}
.partner-formats__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}
.partner-format-card {
    flex: 1 1 300px;
    background: var(--color-bg);
    padding: 35px 30px;
    border-radius: 28px;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--color-border);
}
.partner-format-card:hover {
    background: var(--color-brand);
    color: var(--color-white);
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--color-brand);
}
.partner-format-card i {
    font-size: 42px;
    color: var(--color-brand);
    margin-bottom: 20px;
    transition: color 0.2s;
}
.partner-format-card:hover i {
    color: var(--color-white);
}
.partner-format-card h3 {
    font-size: 1.4rem;
    color: var(--color-brand);
    margin: 0 0 15px;
    transition: color 0.2s;
}
.partner-format-card:hover h3 {
    color: var(--color-white);
}
.partner-format-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0 0 20px;
    flex: 1;
}
.partner-format-card:hover p {
    color: rgba(255,255,255,0.85);
}
.partner-format-card__link {
    font-weight: 600;
    color: var(--color-action);
    margin-top: auto;
    transition: color 0.2s;
}
.partner-format-card:hover .partner-format-card__link {
    color: var(--color-white);
    text-decoration: underline;
}

.partner-trust {
    padding: 100px 0;
    background: var(--color-bg);
}
.partner-trust__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 40px;
    justify-content: center;
}
.partner-trust__item {
    flex: 1 1 280px;
    background: var(--color-white);
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--box-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}
.partner-trust__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}
.partner-trust__item i {
    font-size: 48px;
    color: var(--color-brand);
}
.partner-trust__item span {
    font-weight: 500;
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.4;
}

/* ----------------------------------------
   АДАПТИВНОСТЬ ОБЩАЯ
---------------------------------------- */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .button {
        width: 100%;
        max-width: 320px;
    }
    .products li.product-category {
        flex: 1 1 280px;
    }
    .products li.product {
        flex: 1 1 280px;
    }
    .product-content-wrapper {
        gap: 40px;
    }
    .product-gallery,
    .product-summary {
        flex: 1 1 100%;
    }
    .shop-container {
        flex-direction: column;
    }
    .shop-sidebar {
        display: none;
    }
    .filter-toggle {
        display: flex;
    }
    .leasing-left,
    .leasing-right {
        flex: 1 1 100%;
        padding: 40px 30px;
    }
    .trust-numbers {
        flex-wrap: wrap;
    }
    .trust-number {
        flex: 1 1 calc(50% - 20px);
    }
    .blog-posts .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1.1rem;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .trust-gallery img {
        width: 100%;
        max-width: 320px;
    }
    .important-links-list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .products li.product-category {
        flex: 1 1 280px;
    }
    .products li.product {
        flex: 1 1 280px;
    }
    .woocommerce-product-gallery__image {
        height: 350px;
    }
    .product-gallery-swiper .swiper-slide {
        height: 350px;
    }
    .product-fit-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .product-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .product-buttons .button {
        width: 100%;
        min-width: auto;
    }
    .wc-tabs {
        flex-wrap: wrap;
        gap: 15px;
    }
    .delivery-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    .delivery-label {
        min-width: 100%;
    }
    .price-table {
        display: block;
        overflow-x: auto;
    }
    .case-content {
        grid-template-columns: 1fr;
    }
    .promo-slide {
        min-height: 380px;
    }
    .promo-slide h2 {
        font-size: 1.6rem;
    }
    .promo-slide ul {
        gap: 10px;
    }
    .promo-slide ul li {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    .reviews-slider h2 {
        font-size: 1.8rem;
    }
    .review-card {
        padding: 25px 20px;
    }
    .blog-posts h2 {
        font-size: 1.8rem;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .stat-number {
        font-size: 2.8rem;
    }
    .product-gallery-swiper .swiper-slide {
        height: 280px;
    }
    .product_title {
        font-size: 2rem;
    }
    .price {
        font-size: 1.2rem;
    }
    .trust-number {
        flex: 1 1 100%;
    }
    .how-works .steps {
        flex-direction: column;
    }
    .woocommerce nav.woocommerce-pagination ul li .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    .promo-slide {
        min-height: 320px;
    }
    .promo-slide h2 {
        font-size: 1.3rem;
    }
    .promo-slide .button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .product-item img {
        height: 150px;
    }
}

/* ===== СТРАНИЦА ОТДЕЛЬНОЙ СТАТЬИ (single-post) ===== */
.single-post-main {
    background-color: #F7F9FB;
    padding: 60px 0;
}

.single-post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.single-post-article {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(11, 60, 93, 0.08);
}

.post-thumbnail {
    margin-bottom: 30px;
    text-align: center;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.entry-title {
    font-size: 36px;
    font-weight: 700;
    color: #0B3C5D;
    margin-bottom: 16px;
    line-height: 1.2;
}

.entry-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #475569;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(11, 60, 93, 0.1);
}

.entry-meta i {
    margin-right: 6px;
    color: #0B3C5D;
}

.entry-content {
    font-size: 16px;
    line-height: 1.7;
    color: #0F172A;
}

.entry-content h2 {
    font-size: 28px;
    color: #0B3C5D;
    margin: 30px 0 15px;
}

.entry-content h3 {
    font-size: 24px;
    color: #0B3C5D;
    margin: 25px 0 12px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul, .entry-content ol {
    margin: 20px 0 20px 30px;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content a {
    text-decoration: none;
}

.entry-content a:hover {
    text-decoration: underline;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(11, 60, 93, 0.1);
    font-size: 14px;
    color: #475569;
}

.entry-footer .cat-links,
.entry-footer .tags-links {
    margin-bottom: 8px;
}

.entry-footer i {
    margin-right: 6px;
    color: #0B3C5D;
}

/* Адаптив */
@media (max-width: 768px) {
    .single-post-main {
        padding: 30px 0;
    }
    .single-post-article {
        padding: 24px;
    }
    .entry-title {
        font-size: 28px;
    }
    .entry-meta {
        flex-direction: column;
        gap: 8px;
    }
    .entry-content {
        font-size: 15px;
    }
}
/* ===== СТРАНИЦА БЛОГА ===== */
.blog-archive {
    background-color: var(--bg-site);
    padding: 60px 0;
}

.blog-archive .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-archive-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--brand-color);
    text-align: center;
    margin-bottom: 12px;
}

.blog-archive-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
}

/* Сетка карточек (такая же, как на главной) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(11, 60, 93, 0.08);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.blog-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-title a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: var(--brand-color);
}

.blog-card-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: var(--btn-color);
    text-decoration: none;
    transition: gap 0.2s;
    align-self: flex-start;
}

.blog-card-link:hover {
    gap: 10px;
    color: #0fabb5;
}

/* Пагинация */
.blog-pagination {
    text-align: center;
    margin-top: 20px;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    transition: 0.2s;
    border: 1px solid transparent;
}

.blog-pagination .page-numbers.current {
    background-color: var(--btn-color);
    color: white;
    border-color: var(--btn-color);
}

.blog-pagination .page-numbers:hover:not(.current) {
    background-color: rgba(30, 202, 211, 0.1);
    border-color: var(--btn-color);
}

/* Сообщение об отсутствии статей */
.blog-no-posts {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    padding: 40px;
}

/* Адаптив */
@media (max-width: 768px) {
    .blog-archive {
        padding: 40px 0;
    }
    .blog-archive-title {
        font-size: 28px;
    }
    .blog-archive-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .blog-card {
        padding: 20px;
    }
    .blog-card-title {
        font-size: 18px;
    }
    .blog-pagination .page-numbers {
        padding: 6px 10px;
        font-size: 13px;
    }
}/* ========================================
   СТРАНИЦА ИЗБРАННОГО (YITH Wishlist)
   Полностью перебивает стандартные стили
   ======================================== */

/* Общий контейнер страницы */
.woocommerce .wishlist_table,
.wishlist_table {
    background: #FFFFFF !important;
    border-radius: 16px !important;
    border: 1px solid rgba(11, 60, 93, 0.08) !important;
    box-shadow: none !important;
    margin-bottom: 30px !important;
    overflow: hidden !important;
}

/* Шапка таблицы */
.wishlist_table thead tr th {
    background: #F7F9FB !important;
    color: #0B3C5D !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 15px 12px !important;
    border-bottom: 2px solid rgba(11, 60, 93, 0.1) !important;
    text-transform: none !important;
}

/* Ячейки таблицы */
.wishlist_table tbody tr td {
    background: #FFFFFF !important;
    padding: 15px 12px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid rgba(11, 60, 93, 0.05) !important;
}

/* Название товара */
.wishlist_table .product-name a {
    color: #0F172A !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    font-size: 15px !important;
}
.wishlist_table .product-name a:hover {
    color: #0B3C5D !important;
}

/* Цена */
.wishlist_table .product-price .amount {
    color: #0F172A !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

/* Статус наличия */
.wishlist_table .product-stock-status .wishlist-in-stock {
    background: rgba(46, 204, 113, 0.12) !important;
    color: #2ecc71 !important;
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 30px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}
.wishlist_table .product-stock-status .wishlist-out-of-stock {
    background: rgba(231, 76, 60, 0.12) !important;
    color: #e74c3c !important;
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 30px !important;
    font-size: 13px !important;
}

/* Кнопка "В корзину" */
.wishlist_table .product-add-to-cart .add_to_cart,
.wishlist_table .product-add-to-cart .add_to_cart_button {
    background: #1ECAD3 !important;
    color: white !important;
    border-radius: 40px !important;
    padding: 8px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
}
.wishlist_table .product-add-to-cart .add_to_cart:hover {
    background: #0fabb5 !important;
    transform: translateY(-1px) !important;
}

/* Кнопка удаления (крестик) */
.wishlist_table .product-remove .remove {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #F59E0B !important;
    font-size: 20px !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    text-align: center !important;
    display: inline-block !important;
    border-radius: 50% !important;
    transition: 0.2s !important;
}
.wishlist_table .product-remove .remove:hover {
    background: #F59E0B !important;
    color: white !important;
    text-decoration: none !important;
}

/* Заголовок "Мой список желаний" */
.wishlist-title h2 {
    color: #0B3C5D !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

/* Кнопка редактирования заголовка */
.wishlist-title .show-title-form {
    background: transparent !important;
    color: #1ECAD3 !important;
    border: 1px solid #1ECAD3 !important;
    border-radius: 30px !important;
    padding: 4px 14px !important;
    font-size: 13px !important;
    margin-left: 15px !important;
}
.wishlist-title .show-title-form:hover {
    background: #1ECAD3 !important;
    color: white !important;
}

/* Форма редактирования названия */
.hidden-title-form {
    margin: 10px 0 20px !important;
}
.hidden-title-form input {
    border: 1px solid #e2e8f0 !important;
    border-radius: 30px !important;
    padding: 8px 16px !important;
}
.hidden-title-form .edit-title-buttons a {
    background: #1ECAD3 !important;
    border-radius: 30px !important;
    color: white !important;
    
}.hidden-title-form .edit-title-buttons{
    position: relative !important;
}

/* Блок "Поделиться" */
.yith-wcwl-share {
    background: #FFFFFF !important;
    border-radius: 16px !important;
    border: 1px solid rgba(11, 60, 93, 0.08) !important;
    padding: 20px !important;
    margin-top: 25px !important;
}
.yith-wcwl-share-title {
    color: #0B3C5D !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}
.yith-wcwl-share ul {
    margin: 0 !important;
    padding: 0 !important;
}
.yith-wcwl-share ul li {
    margin: 0 8px 0 0 !important;
    display: inline-block !important;
}
.yith-wcwl-share ul li a {
    background: #F7F9FB !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #0B3C5D !important;
    transition: 0.2s !important;
}
.yith-wcwl-share ul li a:hover {
    background: #1ECAD3 !important;
    color: white !important;
}

/* Пагинация (если много товаров) */
.wishlist_table .pagination {
    margin-top: 20px !important;
}
.wishlist_table .page-numbers {
    background: #FFFFFF !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 30px !important;
    padding: 6px 12px !important;
    color: #0F172A !important;
}
.wishlist_table .page-numbers.current {
    background: #1ECAD3 !important;
    color: white !important;
    border-color: #1ECAD3 !important;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .wishlist_table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
    .wishlist_table th,
    .wishlist_table td {
        white-space: nowrap !important;
    }
    .wishlist-title h2 {
        font-size: 22px !important;
    }
    .yith-wcwl-share ul li a {
        width: 32px !important;
        height: 32px !important;
    }
}/* ===== ПРИНУДИТЕЛЬНОЕ ИСПРАВЛЕНИЕ ТАБЛИЦЫ ИЗБРАННОГО ===== */
/* Убираем адаптивный режим YITH, возвращаем обычную таблицу */
.wishlist_table.wishlist_view,
.woocommerce .wishlist_table.wishlist_view {
    display: table !important;
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
}

/* Заголовки всегда в одной строке */
.wishlist_table.wishlist_view thead th {
    white-space: nowrap !important;
    background: #F7F9FB !important;
}

/* Ячейки – стандартное отображение */
.wishlist_table.wishlist_view tbody td {
    display: table-cell !important;
    vertical-align: middle !important;
}

/* Для мобильных – горизонтальная прокрутка, чтобы не ломать */
@media (max-width: 768px) {
    .woocommerce .wishlist_table.wishlist_view,
    .wishlist_table.wishlist_view {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
    .wishlist_table.wishlist_view thead,
    .wishlist_table.wishlist_view tbody {
        display: table !important;
        width: 100% !important;
    }
    .wishlist_table.wishlist_view tr {
        display: table-row !important;
    }
    .wishlist_table.wishlist_view th,
    .wishlist_table.wishlist_view td {
        display: table-cell !important;
        white-space: normal !important; /* текст внутри ячеек может переноситься */
        min-width: 100px !important;
    }
    /* Фиксируем ширину колонок, чтобы не сжимались */
    .wishlist_table.wishlist_view .product-thumbnail { width: 80px !important; }
    .wishlist_table.wishlist_view .product-name { min-width: 180px !important; }
    .wishlist_table.wishlist_view .product-price { min-width: 100px !important; }
    .wishlist_table.wishlist_view .product-stock-status { min-width: 110px !important; }
    .wishlist_table.wishlist_view .product-add-to-cart { min-width: 130px !important; }
    .wishlist_table.wishlist_view .product-remove { width: 50px !important; }
}

/* ========================================
   LK (MY ACCOUNT) — Стилизация WooCommerce
   ======================================== */

/* Общий фон и контейнер */
.woocommerce-account {
    background-color: var(--color-bg);
}

.woocommerce-MyAccount-content,
.woocommerce-MyAccount-navigation {
    background-color: var(--color-white);
    border-radius: 24px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

/* Навигация ЛК (меню слева) */
.woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(11, 60, 93, 0.08);
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 18px;
    color: var(--color-text-secondary);
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: rgba(30, 202, 211, 0.1);
    color: var(--color-action);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: var(--color-action);
    color: white;
}

/* Дашборд (приветствие, дата регистрации) */
.woocommerce-MyAccount-content p {
    color: var(--color-text);
    margin-bottom: 16px;
}

.woocommerce-MyAccount-content strong {
    color: var(--color-brand);
}

/* Таблицы (заказы, адреса) */
.woocommerce-MyAccount-content .shop_table {
    width: 100%;
    background: var(--color-white);
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.woocommerce-MyAccount-content .shop_table th {
    background-color: var(--color-bg);
    color: var(--color-brand);
    font-weight: 600;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(11, 60, 93, 0.1);
}

.woocommerce-MyAccount-content .shop_table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(11, 60, 93, 0.05);
    color: var(--color-text);
    vertical-align: middle;
}

.woocommerce-MyAccount-content .shop_table a:not(.button) {
    color: var(--color-action);
    text-decoration: none;
}
.woocommerce-MyAccount-content .shop_table a:not(.button):hover {
    color: var(--color-hover);
    text-decoration: underline;
}

/* Кнопки (смотреть заказ, изменить адрес и т.д.) */
.woocommerce-MyAccount-content .button,
.woocommerce-EditAccountForm .button,
.woocommerce-address-fields .button,
.woocommerce-form-login .button,
.woocommerce-form-register .button {
    background-color: var(--color-action);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-EditAccountForm .button:hover,
.woocommerce-address-fields .button:hover,
.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover {
    background-color: var(--color-hover);
    transform: translateY(-2px);
}

/* Формы (редактирование аккаунта, адреса) */
.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row {
    margin-bottom: 20px;
}

.woocommerce-EditAccountForm label,
.woocommerce-address-fields label,
.woocommerce-form-login label,
.woocommerce-form-register label {
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.woocommerce-EditAccountForm input,
.woocommerce-address-fields input,
.woocommerce-address-fields select,
.woocommerce-form-login input,
.woocommerce-form-register input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    background-color: var(--color-white);
    transition: var(--transition);
    font-size: 14px;
}

.woocommerce-EditAccountForm input:focus,
.woocommerce-address-fields input:focus,
.woocommerce-form-login input:focus {
    border-color: var(--color-action);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 202, 211, 0.2);
}

/* Сообщения об успехе / ошибке */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    background-color: var(--color-white);
    border-left: 4px solid var(--color-action);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 24px;
    box-shadow: var(--box-shadow);
}

.woocommerce-error {
    border-left-color: var(--color-danger);
}

.woocommerce-message {
    border-left-color: var(--color-success);
}

/* Страница заказа (детали) */
.woocommerce-order-details .shop_table,
.woocommerce-customer-details .shop_table {
    border-radius: 16px;
    overflow: hidden;
}

.order-again .button {
    background-color: var(--color-action);
    border-radius: 40px;
    padding: 8px 24px;
}

/* Адреса (доставка / платёж) */
.woocommerce-column__title,
.woocommerce-order-details__title,
.woocommerce-customer-details .woocommerce-column__title {
    color: var(--color-brand);
    font-size: 20px;
    margin-bottom: 16px;
}

/* Ссылка "Выйти" в навигации */
.woocommerce-MyAccount-navigation ul li:last-child a {
    color: var(--color-accent);
}
.woocommerce-MyAccount-navigation ul li:last-child a:hover {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-accent);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .woocommerce-MyAccount-content,
    .woocommerce-MyAccount-navigation {
        padding: 20px;
    }
    .woocommerce-MyAccount-content .shop_table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .woocommerce-MyAccount-navigation ul li a {
        padding: 10px 14px;
        font-size: 14px;
    }
    .woocommerce-EditAccountForm .form-row {
        flex-direction: column;
    }
}

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ЛК (CHECKOUT, ORDER, ADDRESS)
   ======================================== */

/* ----- Страница оформления заказа (Checkout блоки Gutenberg) ----- */
.wc-block-checkout,
.wc-block-components-sidebar-layout {
    background-color: var(--color-bg);
    padding: 20px 0;
}

/* Карточки блоков */
.wp-block-woocommerce-checkout-fields-block,
.wc-block-components-sidebar {
    background-color: var(--color-white);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--box-shadow);
    margin-bottom: 24px;
}

/* Заголовки в checkout */
.wc-block-components-checkout-step__title,
.wc-block-components-title {
    color: var(--color-brand);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Поля ввода в checkout */
.wc-block-components-text-input input,
.wc-block-components-country-input select,
.wc-block-components-address-form input,
.wc-block-components-address-form select {
    border: 1px solid var(--color-border);
    border-radius: 30px;
    padding: 12px 18px;
    background-color: var(--color-white);
    transition: var(--transition);
}
.wc-block-components-text-input input:focus,
.wc-block-components-address-form input:focus,
.wc-block-components-address-form select:focus {
    border-color: var(--color-action);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 202, 211, 0.2);
}
.wc-block-components-text-input label {
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Радиокнопки способов оплаты */
.wc-block-components-radio-control__option {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
}
.wc-block-components-radio-control__option-checked {
    border-color: var(--color-action);
    background-color: rgba(30, 202, 211, 0.05);
}
.wc-block-components-radio-control__label {
    font-weight: 500;
    color: var(--color-text);
}

/* Кнопка оформления заказа */
.wc-block-components-checkout-place-order-button {
    background-color: var(--color-action);
    border: none;
    border-radius: 40px;
    padding: 14px 32px;
    font-weight: 600;
    transition: var(--transition);
}
.wc-block-components-checkout-place-order-button:hover {
    background-color: var(--color-hover);
    transform: translateY(-2px);
}
.wc-block-components-checkout-return-to-cart-button {
    color: var(--color-action);
    text-decoration: none;
}

/* Боковая панель (Детали заказа) */
.wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    color: var(--color-text);
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-brand);
}
.wc-block-components-order-summary-item__description h3 {
    color: var(--color-text);
    font-size: 16px;
}
.wc-block-components-product-price {
    color: var(--color-text-secondary);
}

/* ----- Страница "Спасибо" (Order received) ----- */
.woocommerce-order {
    background-color: var(--color-bg);
    padding: 40px 0;
}
.woocommerce-order .woocommerce-notice--success {
    background-color: var(--color-white);
    border-left: 4px solid var(--color-action);
    border-radius: 16px;
    padding: 20px;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}
.woocommerce-order-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    list-style: none;
    box-shadow: var(--box-shadow);
}
.woocommerce-order-overview li {
    flex: 1;
    border-right: 1px solid rgba(11, 60, 93, 0.1);
    padding: 0 16px;
    margin: 0;
}
.woocommerce-order-overview li:last-child {
    border-right: none;
}
.woocommerce-order-overview li strong {
    color: var(--color-brand);
    display: block;
    margin-top: 8px;
}
.woocommerce-order-details,
.woocommerce-customer-details {
    background-color: var(--color-white);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}
.woocommerce-order-details__title,
.woocommerce-column__title {
    color: var(--color-brand);
    font-size: 22px;
    margin-bottom: 20px;
}
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
}
.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.woocommerce-table--order-details th {
    background-color: var(--color-bg);
    color: var(--color-brand);
}
.woocommerce-table--order-details tfoot th {
    background-color: transparent;
}
.woocommerce-customer-details address {
    background-color: var(--color-bg);
    border-radius: 16px;
    padding: 20px;
    font-style: normal;
    line-height: 1.6;
}

/* ----- Страницы редактирования адресов / Адресная книга ----- */
.woocommerce-Addresses {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.woocommerce-Address {
    flex: 1;
    background-color: var(--color-white);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--box-shadow);
}
.woocommerce-Address-title h2 {
    color: var(--color-brand);
    font-size: 20px;
    margin-bottom: 16px;
}
.woocommerce-Address-title .edit {
    color: var(--color-action);
    text-decoration: none;
    font-size: 14px;
}
.woocommerce-Address address {
    background-color: var(--color-bg);
    border-radius: 16px;
    padding: 20px;
    font-style: normal;
    line-height: 1.6;
}
.woocommerce-address-fields .form-row {
    margin-bottom: 20px;
}
.woocommerce-address-fields label {
    color: var(--color-text);
    font-weight: 500;
}
.woocommerce-address-fields input,
.woocommerce-address-fields select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    background-color: var(--color-white);
}
.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus {
    border-color: var(--color-action);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 202, 211, 0.2);
}
.woocommerce-address-fields .button {
    background-color: var(--color-action);
    border-radius: 40px;
    padding: 10px 28px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.woocommerce-address-fields .button:hover {
    background-color: var(--color-hover);
    transform: translateY(-2px);
}

/* ----- Таблицы заказов в ЛК (повторно, для надёжности) ----- */
.woocommerce-MyAccount-content .shop_table {
    width: 100%;
    background: var(--color-white);
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}
.woocommerce-MyAccount-content .shop_table th {
    background-color: var(--color-bg);
    color: var(--color-brand);
    padding: 12px;
}
.woocommerce-MyAccount-content .shop_table td {
    padding: 12px;
    color: var(--color-text);
}
.woocommerce-MyAccount-content .shop_table a {
    display: block;
}
.woocommerce-MyAccount-content .button {
    background-color: var(--color-action);
    border-radius: 40px;
    padding: 8px 20px;
    font-weight: 500;
}
.woocommerce-MyAccount-content .button:hover {
    background-color: var(--color-hover);
}

/* ----- Уведомления, сообщения об успехах и ошибках ----- */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 24px;
    border-left: 4px solid var(--color-action);
    box-shadow: var(--box-shadow);
}
.woocommerce-error {
    border-left-color: #c62828;
}
.woocommerce-message {
    border-left-color: #2e7d32;
}

/* ----- Адаптив ----- */
@media (max-width: 768px) {
    .wp-block-woocommerce-checkout-fields-block,
    .wc-block-components-sidebar {
        padding: 16px;
    }
    .woocommerce-order-overview {
        flex-direction: column;
        gap: 12px;
    }
    .woocommerce-order-overview li {
        border-right: none;
        border-bottom: 1px solid rgba(11, 60, 93, 0.1);
        padding: 8px 0;
    }
    .woocommerce-Addresses {
        flex-direction: column;
    }
    .wc-block-components-checkout-return-to-cart-button {
        margin-bottom: 12px;
        display: inline-block;
    }
}/* ========================================
   ОФОРМЛЕНИЕ ЗАКАЗА (WOOCOMMERCE CHECKOUT BLOCKS)
   ======================================== */

/* Основной контейнер */
.wc-block-checkout,
.wc-block-components-sidebar-layout {
    background-color: var(--color-bg);
    padding: 30px 0;
}

/* Основная колонка (форма) и сайдбар */
.wp-block-woocommerce-checkout-fields-block,
.wc-block-components-sidebar {
    background-color: var(--color-white);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

/* Заголовки секций */
.wc-block-components-checkout-step__title,
.wc-block-components-title,
.wc-block-components-checkout-order-summary__title-text {
    color: var(--color-brand);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Поля ввода: email, адрес, телефон */
.wc-block-components-text-input input,
.wc-block-components-address-form input,
.wc-block-components-address-form select,
.wc-blocks-components-select__select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    background-color: var(--color-white);
    font-size: 15px;
    transition: var(--transition);
}

.wc-block-components-text-input input:focus,
.wc-block-components-address-form input:focus,
.wc-blocks-components-select__select:focus {
    border-color: var(--color-action);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 202, 211, 0.2);
}

/* Метки (label) – поднимаются при фокусе */
.wc-block-components-text-input label {
    color: var(--color-text-secondary);
    font-weight: 500;
    transform-origin: top left;
}

/* Селект страны */
.wc-block-components-country-input .wc-blocks-components-select {
    margin-bottom: 20px;
}
.wc-blocks-components-select__label {
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

/* Карточка адреса (если адрес уже введён) */
.wc-block-components-address-card {
    background-color: var(--color-bg);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}
.wc-block-components-address-card__edit {
    background-color: var(--color-action);
    color: white;
    border-radius: 40px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}
.wc-block-components-address-card__edit:hover {
    background-color: var(--color-hover);
}

/* Радиокнопки способов оплаты */
.wc-block-components-radio-control__option {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: var(--transition);
}
.wc-block-components-radio-control__option-checked {
    border-color: var(--color-action);
    background-color: rgba(30, 202, 211, 0.05);
}
.wc-block-components-radio-control__label {
    font-weight: 600;
    color: var(--color-text);
}
.wc-block-components-radio-control__input:checked + .wc-block-components-radio-control__option-layout .wc-block-components-radio-control__label {
    color: var(--color-action);
}

/* Детали заказа (сайдбар) */
.wc-block-components-order-summary-item {
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
}
.wc-block-components-product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}
.wc-block-components-product-price,
.wc-block-formatted-money-amount {
    font-weight: 600;
    color: var(--color-brand);
}
.wc-block-components-totals-item__label {
    color: var(--color-text-secondary);
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-brand);
}

/* Кнопка "Оформить заказ" */
.wc-block-components-checkout-place-order-button {
    background-color: var(--color-action);
    border: none;
    border-radius: 40px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    width: 100%;
}
.wc-block-components-checkout-place-order-button:hover {
    background-color: var(--color-hover);
    transform: translateY(-2px);
}
.wc-block-components-checkout-return-to-cart-button {
    color: var(--color-action);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.wc-block-components-checkout-return-to-cart-button:hover {
    color: var(--color-hover);
}

/* Чекбокс "Добавить примечание" и "Согласие с условиями" */
.wc-block-components-checkbox {
    margin: 16px 0;
}
.wc-block-components-checkbox__input {
    margin-right: 12px;
}
.wc-block-components-checkbox__label {
    color: var(--color-text-secondary);
}
.wc-block-checkout__terms .wc-block-components-checkbox__label {
    font-size: 13px;
}

/* Адаптив для checkout */
@media (max-width: 768px) {
    .wp-block-woocommerce-checkout-fields-block,
    .wc-block-components-sidebar {
        padding: 20px;
    }
    .wc-block-components-checkout-step__title,
    .wc-block-components-title {
        font-size: 20px;
    }
    .wc-block-components-text-input input,
    .wc-block-components-address-form input,
    .wc-block-components-address-form select {
        padding: 12px 16px;
    }
}.wc-block-components-radio-control__label{
    margin-left: 28px;
}

/* Статус наличия */
.stock-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
}
.stock-status.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}
.stock-status.out-of-stock {
    background: #ffebee;
    color: #c62828;
}
.stock-status.on-backorder {
    background: #fff3e0;
    color: #ef6c00;
}

/* Основные характеристики */
.product-main-attributes {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    margin: 24px 0;
    border: 1px solid rgba(11,60,93,0.08);
}
.product-main-attributes h3 {
    color: #0B3C5D;
    font-size: 20px;
    margin-bottom: 16px;
}
.main-attributes-table {
    width: 100%;
    border-collapse: collapse;
}
.main-attributes-table th,
.main-attributes-table td {
    padding: 8px 0;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.main-attributes-table th {
    width: 40%;
    font-weight: 600;
    color: #0F172A;
}
.main-attributes-table td {
    color: #475569;
}
@media (max-width: 768px) {
    .main-attributes-table th,
    .main-attributes-table td {
        display: block;
        width: 100%;
        border-bottom: none;
    }
    .main-attributes-table tr {
        margin-bottom: 12px;
        border-bottom: 1px solid #e2e8f0;
    }
}/* ===== СТАТУС НАЛИЧИЯ (добавлено ранее, но продублирую для целостности) ===== */
.stock-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0;
}
.stock-status.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}
.stock-status.out-of-stock {
    background: #ffebee;
    color: #c62828;
}
.stock-status.on-backorder {
    background: #fff3e0;
    color: #ef6c00;
}

/* ===== КНОПКА "КУПИТЬ В 1 КЛИК" ===== */
.oneclick-button {
    display: inline-block;
    background-color: var(--color-action);
    color: white;
    border-radius: 40px;
    padding: 10px 24px;
    font-weight: 600;
    margin: 10px 0;
    transition: var(--transition);
    text-decoration: none;
}
.oneclick-button:hover {
    background-color: var(--color-hover);
    transform: translateY(-2px);
}

/* ===== БЛОК ОСНОВНЫХ ХАРАКТЕРИСТИК ===== */
.product-main-attributes {
    margin: 30px 0;
    padding: 20px 24px;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(11, 60, 93, 0.08);
}
.product-main-attributes h3 {
    color: var(--color-brand);
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
}
.main-attributes-table {
    width: 100%;
    border-collapse: collapse;
}
.main-attributes-table th,
.main-attributes-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(11, 60, 93, 0.1);
}
.main-attributes-table th {
    width: 35%;
    font-weight: 600;
    color: var(--color-text);
}
.main-attributes-table td {
    color: var(--color-text-secondary);
}
@media (max-width: 768px) {
    .main-attributes-table th,
    .main-attributes-table td {
        display: block;
        width: 100%;
        border-bottom: none;
    }
    .main-attributes-table tr {
        display: block;
        margin-bottom: 16px;
        border-bottom: 1px solid rgba(11, 60, 93, 0.1);
    }
    .main-attributes-table th {
        padding-bottom: 4px;
    }
    .main-attributes-table td {
        padding-top: 0;
    }
}

/* ===== БЛОК КОМПЛЕКТАЦИИ ===== */
.product-komplektaciya {
    margin: 30px 0;
    padding: 20px 24px;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(11, 60, 93, 0.08);
}
.product-komplektaciya h3 {
    color: var(--color-brand);
    font-size: 22px;
    margin-bottom: 16px;
}
.komplekt-content {
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.komplekt-content ul {
    margin: 12px 0 12px 24px;
}
.komplekt-content li {
    margin-bottom: 6px;
}

/* ===== БЛОКИ СОПУТСТВУЮЩИХ ТОВАРОВ (Часто покупают вместе / Аксессуары) ===== */
.related-products-block {
    margin: 30px 0;
}
.related-products-block h3 {
    color: var(--color-brand);
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
}
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}
.related-product-item {
    background: var(--color-white);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(11, 60, 93, 0.08);
}
.related-product-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
}
.related-product-item img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}
.related-product-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 12px 0 8px;
    color: var(--color-text);
}
.related-product-item .price {
    display: block;
    font-weight: 600;
    color: var(--color-action);
    margin-bottom: 12px;
}
.related-product-item .add_to_cart {
    background-color: var(--color-action);
    color: white;
    border-radius: 40px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}
.related-product-item .add_to_cart:hover {
    background-color: var(--color-hover);
}
@media (max-width: 768px) {
    .related-products-grid {
        gap: 16px;
    }
}

/* ===== СТАНДАРТНЫЕ ПОХОЖИЕ ТОВАРЫ (WooCommerce) – донастройка, чтобы не ломались ===== */
.related.products {
    margin: 40px 0;
}
.related.products > h2 {
    color: var(--color-brand);
    font-size: 24px;
    margin-bottom: 24px;
}
.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
}
.related.products li.product {
    background: var(--color-white);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    margin: 0;
}

/* ===== Общий отступ для новых блоков (чтобы не слипались) ===== */
.product-main-attributes,
.product-komplektaciya,
.related-products-block,
.related.products {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* ========================================
   КАРТОЧКА ТОВАРА (УЛУЧШЕННАЯ)
   ======================================== */

/* ----- ВКЛАДКИ (табы) ----- */
.product-tabs {
    margin: 50px 0 30px;
}

.tabs-nav {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 28px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 40px 40px 0 0;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-action);
    transition: width 0.3s ease;
}

.tab-btn.active {
    color: var(--color-action);
}

.tab-btn.active::after {
    width: calc(100% - 56px);
}

.tab-btn:hover:not(.active) {
    color: var(--color-brand);
    background-color: rgba(11, 60, 93, 0.04);
}

.tab-pane {
    display: none;
    padding: 10px 0 20px;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ----- Таблица характеристик (внутри вкладок) ----- */
.product-attributes-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.product-attributes-table th,
.product-attributes-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.product-attributes-table th {
    width: 30%;
    background: rgba(11, 60, 93, 0.03);
    font-weight: 600;
    color: var(--color-brand);
}

.product-attributes-table td {
    color: var(--color-text-secondary);
}

.product-attributes-table tr:last-child th,
.product-attributes-table tr:last-child td {
    border-bottom: none;
}

/* ----- Блок «Основные характеристики» ----- */
.product-main-attributes {
    margin: 40px 0;
    background: var(--color-white);
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(11, 60, 93, 0.06);
    transition: var(--transition);
}

.product-main-attributes:hover {
    box-shadow: var(--box-shadow-hover);
}

.product-main-attributes h3 {
    color: var(--color-brand);
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
    padding-left: 8px;
    border-left: 4px solid var(--color-action);
}

.main-attributes-table {
    width: 100%;
    border-collapse: collapse;
}

.main-attributes-table th,
.main-attributes-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.main-attributes-table th {
    width: 40%;
    font-weight: 600;
    color: var(--color-text);
}

.main-attributes-table td {
    color: var(--color-text-secondary);
}

.main-attributes-table tr:last-child th,
.main-attributes-table tr:last-child td {
    border-bottom: none;
}

/* ----- Комплектация ----- */
.product-komplektaciya {
    margin: 30px 0;
    background: var(--color-white);
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(11, 60, 93, 0.06);
}

.product-komplektaciya h3 {
    color: var(--color-brand);
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 600;
    padding-left: 8px;
    border-left: 4px solid var(--color-action);
}

.komplekt-content {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.komplekt-content ul {
    margin: 12px 0 0 20px;
}

.komplekt-content li {
    margin-bottom: 6px;
}

/* ----- Сопутствующие товары (кастомные и стандартные) ----- */
.related.products {
    margin: 50px 0;
}

.related.products > h2 {
    color: var(--color-brand);
    font-size: 26px;
    margin-bottom: 28px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.related.products > h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-action);
    border-radius: 3px;
}

.products.columns-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    list-style: none;
    padding: 0;
}

/* Карточка товара (общая для всех блоков) */
.products.columns-4 .product {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(11, 60, 93, 0.06);
    position: relative;
}

.products.columns-4 .product:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-hover);
}

.products.columns-4 .product a.woocommerce-LoopProduct-link {
    display: block;
    text-decoration: none;
    padding: 20px 16px 12px;
    text-align: center;
}

.products.columns-4 .product .product-image-container {
    margin-bottom: 16px;
}

.products.columns-4 .product img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.products.columns-4 .product h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 12px 0 8px;
    line-height: 1.4;
}

.products.columns-4 .product .price {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-action);
    margin-bottom: 12px;
}

.products.columns-4 .product .button {
    background: var(--color-action);
    color: white;
    border-radius: 40px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin: 0 auto 16px;
    display: inline-block;
    text-decoration: none;
}

.products.columns-4 .product .button:hover {
    background: var(--color-hover);
    transform: scale(1.02);
}

/* ----- Кнопка "Купить в 1 клик" ----- */
.oneclick-button {
    display: inline-block;
    background: var(--color-action);
    color: white;
    border-radius: 40px;
    padding: 10px 26px;
    font-weight: 600;
    font-size: 15px;
    margin-top: 16px;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.oneclick-button:hover {
    background: var(--color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(30, 202, 211, 0.3);
}

/* ----- Статус наличия ----- */
.stock-status {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0;
}

.stock-status.in-stock {
    background: rgba(46, 125, 50, 0.1);
    color: var(--color-success);
}

.stock-status.out-of-stock {
    background: rgba(198, 40, 40, 0.1);
    color: var(--color-danger);
}

.stock-status.on-backorder {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-accent);
}

/* ----- Адаптив для мобильных ----- */
@media (max-width: 768px) {
    .tabs-nav {
        gap: 6px;
        justify-content: center;
    }
    .tab-btn {
        padding: 8px 18px;
        font-size: 14px;
    }
    .tab-btn::after {
        display: none;
    }
    .tab-btn.active {
        background: var(--color-action);
        color: white;
        border-radius: 40px;
    }
    .product-attributes-table,
    .main-attributes-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .product-main-attributes,
    .product-komplektaciya {
        padding: 20px;
    }
    .products.columns-4 {
        gap: 16px;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}/* ========================================
   СТРАНИЦА РАСПРОДАЖА: РЕЗУЛЬТАТЫ И СОРТИРОВКА
   ======================================== */

/* Блок с количеством товаров */
.woocommerce-result-count {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    padding: 8px 0;
    line-height: 1.4;
}

/* Форма сортировки */
.woocommerce-ordering {
    margin-bottom: 20px;
}

.woocommerce-ordering select {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    background-color: var(--color-white);
    color: var(--color-text);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--color-action);
    box-shadow: 0 0 0 2px rgba(30, 202, 211, 0.2);
}

/* Расположение в одной строке (как в каталоге) */
.woocommerce-result-count {
    float: left;
}
.woocommerce-ordering {
    float: right;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .woocommerce-result-count,
    .woocommerce-ordering {
        float: none;
        text-align: center;
        margin-bottom: 15px;
    }
    .woocommerce-ordering select {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }
}

/* Общий контейнер для сортировки и результатов (если нужно) */
.woocommerce-notices-wrapper + .woocommerce-result-count,
.woocommerce-notices-wrapper + form.woocommerce-ordering {
    margin-top: 0;
}

/* Очистка float после этих блоков, чтобы сетка товаров не ломалась */
.woocommerce-result-count + .woocommerce-ordering,
.woocommerce-ordering + .products {
    clear: both;
}/* ========================================
   СТРАНИЦА ПАРТНЁРСТВО – ДЕТАЛЬНЫЕ БЛОКИ
   ======================================== */

.partner-details-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.partner-detail {
    background: var(--color-white);
    border-radius: 28px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.partner-detail:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.partner-detail__inner {
    max-width: 900px;
    margin: 0 auto;
}

.partner-detail h3 {
    font-size: 1.8rem;
    color: var(--color-brand);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-action);
    display: inline-block;
}

.partner-detail__offer,
.partner-detail__for-who {
    margin: 25px 0;
}

.partner-detail__offer strong,
.partner-detail__for-who strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-detail__offer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.partner-detail__offer li {
    background: var(--color-bg);
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    border-left: 3px solid var(--color-action);
    transition: var(--transition);
}

.partner-detail__offer li:hover {
    transform: translateX(5px);
    background: var(--color-action);
    color: var(--color-white);
    border-left-color: var(--color-white);
}

.partner-detail__for-who {
    background: rgba(30, 202, 211, 0.08);
    padding: 15px 25px;
    border-radius: 60px;
    display: inline-block;
    width: auto;
}

.partner-detail__for-who strong {
    display: inline;
    margin-right: 10px;
}

.partner-detail .button {
    display: inline-block;
    margin-top: 20px;
    background: var(--color-action);
    color: var(--color-white);
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(30,202,211,0.3);
}

.partner-detail .button:hover {
    background: var(--color-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30,202,211,0.4);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .partner-detail {
        padding: 25px;
    }
    .partner-detail h3 {
        font-size: 1.4rem;
    }
    .partner-detail__offer ul {
        flex-direction: column;
        gap: 10px;
    }
    .partner-detail__offer li {
        width: 100%;
        text-align: center;
    }
    .partner-detail__for-who {
        display: block;
        text-align: center;
        border-radius: 30px;
    }
    .partner-detail .button {
        width: 100%;
        text-align: center;
    }
}/* ===== ВЫПАДАЮЩЕЕ МЕНЮ КАТАЛОГА ===== */

/* Контейнер меню */
.catalog-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--color-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 1001;
}

/* Показываем при наведении на кнопку */
.catalog-dropdown:hover .catalog-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Список пунктов */
.catalog-menu-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

/* Пункты меню */
.catalog-menu-list li {
    margin: 0;
    padding: 0;
}

/* Ссылки */
.catalog-menu-list li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

/* Ховер */
.catalog-menu-list li a:hover {
    color: var(--color-brand);
    background: rgba(11, 60, 93, 0.04);
    border-left-color: var(--color-action);
    padding-left: 26px;
}

/* Адаптив для мобильных (если меню показывается иначе) */
@media (max-width: 768px) {
    .catalog-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--color-border);
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* скрыто по умолчанию, показывается через JS */
    }
    .catalog-dropdown:hover .catalog-menu {
        display: block;
    }
    .catalog-menu-list li a {
        padding: 12px 20px;
    }
}


/* ========================================
   СТИЛИЗАЦИЯ БЛОКА «НОВИНКИ» И АНАЛОГИЧНЫХ БЛОКОВ WOOCOMMERCE
   ======================================== */

/* Сетка блока */
.wp-block-product-new.wc-block-product-new,
.wp-block-woocommerce-product-new {
    margin: 40px 0;
}

.wc-block-grid__products {
    list-style: none;
    padding: 0;
    margin: 20px;
    gap: 20px;
}

/* Карточка товара */
.wc-block-grid__product {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(11, 60, 93, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.theme-twentytwenty .wc-block-grid.has-4-columns .wc-block-grid__product, .wc-block-grid.has-4-columns .wc-block-grid__product{
    flex: 1 0 23%;
}

.wc-block-grid__product:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-hover);
}

/* Ссылка на товар */
.wc-block-grid__product-link {
    text-decoration: none;
    display: block;
    padding: 20px 16px 12px;
    text-align: center;
    flex: 1;
}

/* Изображение */
.wc-block-grid__product-image {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
}

.wc-block-grid__product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Заголовок */
.wc-block-grid__product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin: 12px 0 8px;
    line-height: 1.4;
}

/* Цена */
.wc-block-grid__product-price.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-action);
    margin-bottom: 12px;
    text-align: center;
}

.wc-block-grid__product-price.price del {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 400;
    margin-right: 6px;
}

.wc-block-grid__product-price.price ins {
    text-decoration: none;
}

/* Бейдж распродажи */
.wc-block-grid__product-onsale {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 30px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    pointer-events: none;
}

/* Кнопка "В корзину" */
.wc-block-grid__product-add-to-cart {
    margin: 0 16px 20px 16px;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link {
    display: block;
    width: 100%;
    background: var(--color-action);
    color: var(--color-white);
    border-radius: 40px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 12px rgba(30, 202, 211, 0.2);
}

.wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
    background: var(--color-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 202, 211, 0.3);
}

/* Адаптив */
@media (max-width: 768px) {
    .wc-block-grid__products {
        gap: 16px;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .wc-block-grid__product-title {
        font-size: 14px;
    }
    .wc-block-grid__product-price.price {
        font-size: 16px;
    }
}

/* ===== ХЛЕБНЫЕ КРОШКИ (BREADCRUMB) ===== */

.woocommerce-breadcrumb {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.woocommerce-breadcrumb a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.woocommerce-breadcrumb a:hover {
    color: var(--color-brand);
    text-decoration: underline;
}

.woocommerce-breadcrumb .breadcrumb-separator,
.woocommerce-breadcrumb .separator {
    margin: 0 4px;
    color: var(--color-text-muted);
}

/* Адаптив */
@media (max-width: 768px) {
    .woocommerce-breadcrumb {
        font-size: 12px;
        margin-bottom: 15px;
    }
}.weapon-license-notice {
    background: #F59E0B;
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
}.reserve-weapon-popup {
    max-width: 480px;
    margin: 20px auto;
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    position: relative;
}
.reserve-weapon-popup .wpcf7-form {
    margin: 0;
}
.reserve-weapon-popup .wpcf7-submit {
    background: #1ECAD3;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}
.reserve-weapon-popup .wpcf7-submit:hover {
    background: #17AAB5;
}/* ===== ФОРМА РЕЗЕРВИРОВАНИЯ ОРУЖИЯ (CF7) ===== */
.reserve-form-fields {
    max-width: 480px;
    margin: 0 auto;
    background: transparent;
}

.reserve-form-fields p {
    margin-bottom: 20px;
}

.reserve-form-fields label {
    display: block;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
    font-size: 14px;
}

.reserve-form-fields input[type="text"],
.reserve-form-fields input[type="tel"],
.reserve-form-fields input[type="email"],
.reserve-form-fields textarea,
.reserve-form-fields select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    background-color: var(--color-white);
    font-size: 14px;
    color: var(--color-text);
    transition: var(--transition);
    box-sizing: border-box;
}

.reserve-form-fields input:focus,
.reserve-form-fields textarea:focus,
.reserve-form-fields select:focus {
    border-color: var(--color-action);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 202, 211, 0.2);
}

.reserve-form-fields textarea {
    border-radius: 20px;
    resize: vertical;
    min-height: 80px;
}

.reserve-form-fields .wpcf7-submit {
    display: inline-block;
    width: 100%;
    background-color: var(--color-action);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    margin-top: 10px;
}

.reserve-form-fields .wpcf7-submit:hover {
    background-color: var(--color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(30, 202, 211, 0.3);
}

/* Скрытые поля не отображаем */
.reserve-form-fields input[type="hidden"] {
    display: none;
}

/* Маленькие экраны */
@media (max-width: 768px) {
    .reserve-form-fields {
        padding: 0 10px;
    }
    .reserve-form-fields .wpcf7-submit {
        font-size: 15px;
        padding: 12px 20px;
    }
}/* ========================================
   ФОРМЫ ЛИЧНОГО КАБИНЕТА (LOGIN, REGISTER, LOST PASSWORD)
   ======================================== */

/* Общий контейнер форм */
.woocommerce-form-login,
.woocommerce-form-register,
.woocommerce-form-track-order,
.woocommerce-form-coupon,
.woocommerce-form-login.register,
.woocommerce-lost-password-form {
    background: var(--color-white);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    max-width: 500px;
    margin: 0 auto 30px;
    border: 1px solid var(--color-border);
}

/* Заголовки форм */
.woocommerce-form-login h2,
.woocommerce-form-register h2,
.woocommerce-lost-password-form h2 {
    color: var(--color-brand);
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Поля ввода */
.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row,
.woocommerce-lost-password-form .form-row {
    margin-bottom: 20px;
}

.woocommerce-form-login label,
.woocommerce-form-register label,
.woocommerce-lost-password-form label {
    display: block;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
    font-size: 14px;
}

.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="email"],
.woocommerce-form-register input[type="password"],
.woocommerce-lost-password-form input[type="text"],
.woocommerce-lost-password-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    background-color: var(--color-white);
    font-size: 14px;
    color: var(--color-text);
    transition: var(--transition);
}

.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus,
.woocommerce-lost-password-form input:focus {
    border-color: var(--color-action);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 202, 211, 0.2);
}

/* Чекбокс "Запомнить меня" */
.woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.woocommerce-form__input-checkbox {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer;
    accent-color: var(--color-action);
}

/* Кнопка входа/регистрации */
.woocommerce-form-login .button,
.woocommerce-form-register .button,
.woocommerce-lost-password-form .button {
    background-color: var(--color-action);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: center;
    display: inline-block;
}

.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover,
.woocommerce-lost-password-form .button:hover {
    background-color: var(--color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(30, 202, 211, 0.3);
}

/* Ссылка "Забыли пароль?" */
.woocommerce-LostPassword a,
.woocommerce-privacy-policy-text a,
.lost_password a {
    color: var(--color-action);
    text-decoration: none;
    font-size: 14px;
}
.woocommerce-LostPassword a:hover,
.woocommerce-privacy-policy-text a:hover {
    color: var(--color-hover);
    text-decoration: underline;
}

/* Сообщения об ошибках и успехе */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    background: var(--color-white);
    border-left: 4px solid var(--color-action);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
    list-style: none;
    color: var(--color-text);
    box-shadow: var(--box-shadow);
}
.woocommerce-error {
    border-left-color: #c62828;
}
.woocommerce-message {
    border-left-color: #2e7d32;
}
.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
    margin: 0;
}

/* Кнопка показать/скрыть пароль (WooCommerce native) */
.password-input {
    position: relative;
    display: block;
    width: 100%;
}
.show-password-input {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 14px;
}
.show-password-input:hover {
    color: var(--color-brand);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .woocommerce-form-login,
    .woocommerce-form-register,
    .woocommerce-lost-password-form {
        padding: 20px;
        margin: 20px 15px;
    }
    .woocommerce-form-login .button,
    .woocommerce-form-register .button,
    .woocommerce-lost-password-form .button {
        font-size: 15px;
        padding: 10px 20px;
    }
}/* ========================================
   ФОРМА ВОССТАНОВЛЕНИЯ ПАРОЛЯ (LOST PASSWORD)
   ======================================== */

.woocommerce-ResetPassword,
.woocommerce-lost-password-form {
    background: var(--color-white);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    max-width: 500px;
    margin: 0 auto 30px;
    border: 1px solid var(--color-border);
}

.woocommerce-ResetPassword p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

.woocommerce-ResetPassword .form-row {
    margin-bottom: 20px;
}

.woocommerce-ResetPassword label {
    display: block;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
    font-size: 14px;
}

.woocommerce-ResetPassword input[type="text"],
.woocommerce-ResetPassword input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    background-color: var(--color-white);
    font-size: 14px;
    color: var(--color-text);
    transition: var(--transition);
}

.woocommerce-ResetPassword input:focus {
    border-color: var(--color-action);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 202, 211, 0.2);
}

.woocommerce-ResetPassword .button {
    background-color: var(--color-action);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: center;
    display: inline-block;
}

.woocommerce-ResetPassword .button:hover {
    background-color: var(--color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(30, 202, 211, 0.3);
}

/* Адаптив */
@media (max-width: 768px) {
    .woocommerce-ResetPassword {
        padding: 20px;
        margin: 20px 15px;
    }
}