.product-card__out-of-stock {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(162, 161, 161, 0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-card__in-stock {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-02);
    color: #fff;
    padding: 4px 10px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-card__out-of-stock.out-of-stock {
    color: #D61111;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

.product-card__out-of-stock.onbackorder {
    background: rgba(255, 152, 0, 0.9);
}

.main-product__actions-instock .product-card__in-stock {
    position: static;
    display: inline-block;
    background: var(--accent-02);
    color: #fff;
    padding: 4px 10px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.main-product__actions-instock .product-card__out-of-stock.out-of-stock {
    position: static;
    display: inline-block;
    background: rgba(162, 161, 161, 0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.main-product__actions-instock .product-card__out-of-stock.onbackorder {
    display: inline-block;
    background: rgba(255, 152, 0, 0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.customExclusive {
    margin-bottom: 36px;
}

.customExclusive .swiper .swiper-slide {
    margin-right: 16px;
}

@media screen and (min-width: 991.98px) {
    .customExclusive .swiper .swiper-slide {
        max-width: 32% !important;
        margin-right: 32px;
    }
}

.customExclusive .swiper[data-slider="exclusive"] .swiper-scrollbar {
    bottom: 3px;
}

.count.is-hidden {
    display: none !important;
}

.product-card__heading-labels {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    z-index: 3;
    pointer-events: none;
    gap: 5px;
}

.product-card__heading-discount,
.product-card__in-stock,
.product-card__out-of-stock {
    position: static;
    margin: 0;
}

.add-to-cart.in-cart {
    background: var(--accent-02);
    border-color: var(--white);
}

.reviews-empty p {
    color: #8e8e8e;
    margin-top: 9px;
}

.reviews-empty {
    text-align: center;
    padding: 28px 32px;
    background-color: var(--bg-01);
    border-radius: 20px;
}

@media screen and (min-width: 768px) {
    .servicesItemCart__img {
        height: 260px;
    }
}


/* ============================================
   VERTICAL CARDS STYLES
   ============================================ */

/* Стили для вертикального типа карточек - БОЛЬШОЙ вид (5 колонок) */
@media screen and (min-width: 1200px) {
    .products__cards.product-grid--vertical {
        -ms-grid-columns: (1fr)[5];
        grid-template-columns: repeat(5, 1fr);
        gap: 32px 0;
    }
}

/* Стили для вертикального типа карточек - МАЛЕНЬКИЙ вид (6 колонок) */
@media screen and (min-width: 1200px) {
    .products__cards.product-grid--vertical.product-grid--small {
        -ms-grid-columns: (1fr)[6];
        grid-template-columns: repeat(6, 1fr);
        gap: 32px 0;
    }
}

/* ============================================
   АДАПТИВ ДЛЯ ПЛАНШЕТОВ (768px - 1199px)
   ============================================ */
@media screen and (max-width: 1199px) and (min-width: 768px) {
    /* Обычная сетка */
    .products__cards {
        -ms-grid-columns: (1fr)[3];
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 16px;
    }

    /* Вертикальный тип - большой вид */
    .products__cards.product-grid--vertical {
        -ms-grid-columns: (1fr)[3];
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 16px;
    }

    /* Вертикальный тип - маленький вид (4 колонки на планшете) */
    .products__cards.product-grid--vertical.product-grid--small {
        -ms-grid-columns: (1fr)[4];
        grid-template-columns: repeat(4, 1fr);
        gap: 20px 12px;
    }
}

/* ============================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ (до 767px)
   ============================================ */
@media screen and (max-width: 767px) {
    /* Обычная сетка */
    .products__cards {
        -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
    }

    /* Вертикальный тип - оба вида по 2 колонки на мобильных */
    .products__cards.product-grid--vertical,
    .products__cards.product-grid--vertical.product-grid--small {
        -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
    }
}

/* ============================================
   ОПЦИОНАЛЬНО: Стили для карточек в вертикальном режиме
   ============================================ */

/* Для vertical карточек можно уменьшить отступы и шрифты */
.products__cards.product-grid--vertical .product-card {
    /* Уменьшаем отступы внутри карточки */
    padding: 12px;
}

.products__cards.product-grid--vertical .product-card__title {
    /* Уменьшаем размер шрифта заголовка */
    font-size: 14px;
    line-height: 1.3;
}

.products__cards.product-grid--vertical .product-card__price {
    /* Цена чуть меньше */
    font-size: 16px;
}

.products__cards.product-grid--vertical .product-card__color {
    /* Уменьшаем размер переключателей цветов */
    gap: 6px;
}

.products__cards.product-grid--vertical .product-card__color li {
    width: 20px;
    height: 20px;
}

/* Для маленького вида (6 колонок) делаем карточки еще компактнее */
.products__cards.product-grid--vertical.product-grid--small .product-card {
    padding: 8px;
}

.products__cards.product-grid--vertical.product-grid--small .product-card__title {
    font-size: 12px;
    margin-bottom: 6px;
}

.products__cards.product-grid--vertical.product-grid--small .product-card__price {
    font-size: 14px;
}

.products__cards.product-grid--vertical.product-grid--small .product-card__color {
    gap: 4px;
}

.products__cards.product-grid--vertical.product-grid--small .product-card__color li {
    width: 16px;
    height: 16px;
}

.products__cards.product-grid--vertical.product-grid--small .btn-l,
.products__cards.product-grid--vertical.product-grid--small .btn-l-gray {
    padding: 6px 10px;
    font-size: 12px;
}

/* ============================================
   ДЛЯ КРУПНЫХ ЭКРАНОВ (1440px+)
   ============================================ */
@media screen and (min-width: 1440px) {
    .products__cards.product-grid--vertical {
        gap: 40px 0;
    }

    .products__cards.product-grid--vertical.product-grid--small {
        gap: 40px 0;
    }
}

/* ============================================
   ДЛЯ ОЧЕНЬ КРУПНЫХ ЭКРАНОВ (1920px+)
   ============================================ */
@media screen and (min-width: 1920px) {
    .products__cards.product-grid--vertical {
        gap: 48px 0;
    }

    .products__cards.product-grid--vertical.product-grid--small {
        gap: 48px 0;
    }
}

.woocommerce-Price-currencySymbol {
	font-family: BYNSymbol;
}



.contacts__phone-numbers {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.messenger-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
}

.top-header__actions-numbers.numbers-action {
    padding-left: 16px;
}



@media screen and (max-width: 1440px) {
    .main-header__panel {
        width: 100%;
        order: 3;
        padding: 24px 0
    }

    .headerMini .main-header__panel > ul {
        padding-left: 0;
    }

    .main-header__wrapper {
        flex-wrap: wrap;
    }

}
.basket__content_left .cart-item__additional .cart-item__cost-sale {
    white-space: nowrap;
    letter-spacing: 0 !important;
    padding-bottom: 0;
}

.cart-quantity-block {
    display: none;
}
.cart-quantity-block.is-visible {
    display: flex;
}
.add-to-cart.is-hidden {
    display: none;
}
.cart-quantity-block {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.cart-quantity-block.is-visible {
    display: flex;
    border-radius: 12px;
}

.cart-quantity-block .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--bg-01);
}

.cart-quantity-block .count__down {
    border-radius: 12px 0 0 12px;
}

.cart-quantity-block .count__up {
    border-radius: 0 12px 12px 0;
}

.cart-quantity-block input {
    flex: 1;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    height: 48px;
    min-width: calc(88% - 96px);
    background: var(--bg-01);
    -moz-appearance: textfield;
}

.cart-quantity-block input::-webkit-outer-spin-button,
.cart-quantity-block input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart.is-hidden {
    display: none !important;
}

/* ============================================
   ТАБЛИЦА ВСЕХ СТРАНИЦ
   ============================================ */

.all-pages-list {
    max-width: 900px;
    margin: 20px auto;
}

.all-pages-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a1a;
}

/* Обертка таблицы */
.pages-table-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* Таблица */
.pages-table {
    width: 100%;
    border-collapse: collapse;
}

/* Заголовки */
.pages-table thead th {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pages-table__col-icon {
    width: 40px;
}

.pages-table__col-title {
    width: auto;
}

.pages-table__col-date {
    width: 120px;
}

.pages-table__col-link {
    width: 60px;
    text-align: center;
}

/* Строки */
.page-row td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.page-row:hover td {
    background: #f0f4ff;
}

.page-row:last-child td {
    border-bottom: none;
}

/* Родительские строки */
.page-row--parent > td {
    background: #fafbfc;
    font-weight: 600;
}

.page-row--parent > td:first-child {
    border-left: 3px solid #3498db;
}

/* Дочерние строки */
.page-row--child > td {
    background: #f8f9fa;
    font-size: 14px;
}

.page-row--child:hover td {
    background: #eef1f5;
}

/* Дерево линий */
.page-row__tree-line {
    position: absolute;
    left: 8px;
    top: 50%;
    width: 12px;
    height: 1px;
    background: #ccc;
}

/* Иконка */
.page-row__icon {
    color: #3498db;
    text-align: center;
}

.page-row--child .page-row__icon {
    color: #999;
}

.page-row__icon svg {
    display: block;
    margin: 0 auto;
}

/* Название */
.page-row__title {
    position: relative;
}

.page-row__title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.page-row--child .page-row__title a {
    color: #555;
    font-size: 14px;
}

.page-row__title a:hover {
    color: #3498db;
}

/* Бейдж приватной страницы */
.page-row__badge {
    display: inline-block;
    padding: 1px 6px;
    background: #fff3cd;
    color: #856404;
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
    margin-left: 8px;
}

/* Дата */
.page-row__date {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

.page-row--child .page-row__date {
    color: #bbb;
    font-size: 12px;
}

/* Кнопка ссылки */
.page-row__link {
    text-align: center;
}

.page-row__link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #999;
    transition: all 0.2s;
}

.page-row__link-btn:hover {
    background: #3498db;
    color: #fff;
}

/* Итого */
.pages-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    color: #666;
}

.pages-summary strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Адаптив */
@media (max-width: 768px) {
    .pages-table__col-date {
        display: none;
    }

    .pages-table thead th {
        padding: 10px 12px;
        font-size: 12px;
    }

    .page-row td {
        padding: 8px 12px;
    }

    .page-row__title a {
        font-size: 14px;
    }

    .page-row--child .page-row__title a {
        font-size: 13px;
    }
}

/* ============================================
   СЕКЦИИ ТАБЛИЦЫ ВСЕХ СТРАНИЦ
   ============================================ */

.pages-section {
    margin-bottom: 40px;
}

.pages-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.pages-section__icon {
    display: flex;
    align-items: center;
    color: #3498db;
}

/* Кастомные строки */
.page-row--custom td {
    background: #fafbfc;
}

.page-row--custom:hover td {
    background: #f0f4ff;
}
/* ============================================
   ТАБЛИЦА ТОВАРОВ
   ============================================ */

.pages-table--products {
    min-width: 800px;
}

.pages-table__col-sku {
    width: 100px;
    white-space: nowrap;
}

.pages-table__col-price {
    width: 120px;
    white-space: nowrap;
    text-align: right;
}

.pages-table__col-stock {
    width: 130px;
    white-space: nowrap;
    text-align: center;
}

/* Строки товаров */
.page-row--product td {
    background: #fafbfc;
}

.page-row--product:hover td {
    background: #f0f4ff;
}

/* Артикул */
.page-row__sku {
    color: #666;
    font-size: 13px;
    font-family: monospace;
}

/* Цена */
.page-row__price {
    text-align: right;
    font-weight: 600;
    color: #2c3e50;
}

.page-row__price del {
    color: #999;
    font-weight: 400;
    font-size: 13px;
}

.page-row__price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* Статус наличия */
.stock-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.stock-badge--in {
    background: #d4edda;
    color: #155724;
}

.stock-badge--out {
    background: #f8d7da;
    color: #721c24;
}

.stock-badge--back {
    background: #fff3cd;
    color: #856404;
}

/* Адаптив для товаров */
@media (max-width: 768px) {
    .pages-table--products {
        min-width: auto;
    }

    .pages-table__col-sku,
    .pages-table__col-price,
    .pages-table__col-stock,
    .pages-table__col-date {
        display: none;
    }
}

/* ============================================
   СЧЕТЧИКИ ПОД ТАБЛИЦАМИ
   ============================================ */

.pages-section__total {
    margin-top: 12px;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: right;
    font-size: 14px;
    color: #666;
}

.pages-section__total strong {
    color: #1a1a1a;
    font-weight: 600;
    margin-left: 4px;
}

.servicesItemCart {
    height: auto;
}

.price__now bdi {
	font-size: 32px;
}

.price__now .woocommerce-Price-currencySymbol {
	font-size: inherit;
}

.main-header__panel.main-header__panel--v1 ul {
	display: flex;
	gap: 14px;
}

.simple-card-product__img picture img {
	object-fit: cover;
	border-radius: 14px;
}

@media screen and (min-width: 767px) {
    .top-search__col {
        max-width: 50%;
    }
}

@media screen and (min-width: 991px) {
    .top-search__col {
        max-width: 25%;
    }
}
@media screen and (min-width: 1440px) {
    .serviceItem__service_all .serviceAll__slider .swiper-slide {
        max-width: 430px;
    }
}

.serviceAll__slider .servicesItemCart {
	height: 100%;
}

.serviceAll__slider .swiper-slide,
.serviceAll__slider .swiper-wrapper {
	height: auto;
}

.servicesItemCart__btns {
	margin-top: auto;
}

.servicesItemCart__price_now span,
.servicesItemCart__price_now bdi {
  font-size: inherit;
}

.main-header__wrapper{
    gap:20px;
}
.search-index{
    max-width: 100%;
}
@media (max-width: 767px) {
    .headerMini .main-header__panel {
        display: none;
    }
}
@media (min-width: 767px) {
    .services__content {
        padding-top: 48px;
        padding-bottom: 48px;
        gap: 30px;
    }
} 

.services .tabs {
	overflow-x: auto;
	scrollbar-width: none;
}

/* Вариант 2 */
.banner--v2 {
    border-radius: 20px;
    overflow: hidden;
}

@media screen and (min-width: 991.98px) {
    .banner--v2 {
        max-height: 540px;
    }

    .banner--v2 .banner__slider-card {
        height: 500px;
    }

    .banner--v2 .banner__slider-card-content h1 {
        font-size: 48px;
    }

    .banner.banner--v2 .swiper[data-slider="banner"] .swiper-button-next span {
        background-image: url(/wp-content/themes/proshop/img/svg/ic_arrow-right.svg) !important;
        height: 40px;
    }
    .banner.banner--v2 .swiper[data-slider="banner"] .swiper-button-prev span {
        background-image: url(/wp-content/themes/proshop/img/svg/ic_arrow-right.svg) !important;
        height: 40px;
    }
}

.banner--v2 .swiper[data-slider="banner"] .swiper-wrapper {
    padding-bottom: 0 !important;
}
/* Десктоп */
.tabs-custom {
    width: 100%;
}

.tabs-custom__tabs {
    width: 100%;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: 40px;
}

/* Мобильные */
/* Мобильные */
@media (max-width: 767px) {
    /* Предотвращаем горизонтальный скролл всей страницы */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Контейнер табов */
    .tabs-custom {
        width: 100%;
        max-width: 100%;
        overflow: hidden; /* Обрезаем всё что выходит */
    }

    /* Скролл-контейнер */
    .tabs-custom__tabs {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        position: relative;
    }

    .tabs-custom__tabs::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Opera */
    }

    /* Сами табы */
    .tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        width: max-content !important;
        min-width: 100%;
    }

    .tabs li {
        flex-shrink: 0 !important;
    }
}

.ad-block--large .ad-container {
    width: 100%;
    min-height: 250px; /* Минимальная высота для большого баннера */
}

.ad-grid {
    display: grid;
    gap: 20px;
}

.ad-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.ad-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.ad-container {
    min-height: 200px; /* Базовая минимальная высота */
}

/* Адаптивность */
@media (max-width: 768px) {
    .ad-grid--3 {
        grid-template-columns: 1fr;
    }

    .ad-grid--2 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .ad-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Базовые стили для всех изображений */
.formated-text img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 15px 0;
}

/* Специфичные классы - картинка заполняет контейнер */
.formated-text img.size-medium,
.formated-text img.size-large,
.formated-text img.size-full,
.formated-text .wp-image-4092 {
    max-width: 100%;
    width: 100%;
    max-height: 500px;
    height: 100%;
    object-fit: cover; /* Заполняет контейнер, сохраняя пропорции, обрезая лишнее */
    display: block;
    border-radius: 8px;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .formated-text img.size-medium,
    .formated-text img.size-large,
    .formated-text img.size-full,
    .formated-text .wp-image-4092 {
        max-height: 300px; /* Меньше на мобилках */
    }
}

/* Для очень больших экранов */
@media (min-width: 1200px) {
    .formated-text img.size-medium,
    .formated-text img.size-large,
    .formated-text img.size-full,
    .formated-text .wp-image-4092 {
        max-height: 600px;
    }
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ ТЕКСТА ===== */
.formated-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    max-width: 100%;
    overflow-wrap: break-word;
}

.formated-text h2,
.formated-text h3,
.formated-text h4 {
    margin: 30px 0 15px 0;
    font-weight: 600;
    line-height: 1.3;
}

.formated-text h2 {
    font-size: 26px;
    color: #222;
}

.formated-text h3 {
    font-size: 22px;
    color: #333;
}

.formated-text h4 {
    font-size: 18px;
    color: #444;
}

.formated-text p {
    margin: 0 0 15px 0;
    line-height: 1.8;
}

.formated-text strong {
    font-weight: 700;
    color: #222;
}

/* ===== ИЗОБРАЖЕНИЯ ===== */
.formated-text img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px 0;
}

.formated-text p img {
    max-width: 40%;
    width: auto;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 15px 20px 15px 0;
    border-radius: 8px;
    float: left; /* Обтекание текстом слева */
}

/* ===== СПИСКИ БЕЗ МАРКЕРОВ ===== */



.formated-text ul li:last-child,
.formated-text ol li:last-child {
    margin-bottom: 0;
}

.formated-text ul li p,
.formated-text ol li p {
    margin: 0;
    display: block;
}

/* Вложенные списки */
.formated-text ul ul,
.formated-text ol ol,
.formated-text ul ol,
.formated-text ol ul {
    margin: 5px 0 5px 20px;
    padding-left: 0;
    list-style: none;
}

/* ===== ССЫЛКИ ===== */
.formated-text a {
    color: #33c5a9;
    text-decoration: underline;
    transition: color 0.2s;
}

.formated-text a:hover {
    color: #1a8a7a;
    text-decoration: none;
}

/* ===== ЦИТАТЫ ===== */
.formated-text blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    border-left: 4px solid #33c5a9;
    background: #f8f9fa;
    font-style: italic;
    border-radius: 4px;
}

.formated-text blockquote p {
    margin: 0;
}

/* ===== ТАБЛИЦЫ ===== */
.formated-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.formated-text table td,
.formated-text table th {
    border: 1px solid #ddd;
    padding: 10px 15px;
    text-align: left;
}

.formated-text table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .formated-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .formated-text h2 {
        font-size: 22px;
    }

    .formated-text h3 {
        font-size: 19px;
    }

    .formated-text ul,
    .formated-text ol {
        padding-left: 0;
    }

    .formated-text ul li,
    .formated-text ol li {
        margin-bottom: 6px;
        padding-bottom: 0px;
    }

    .formated-text ul ul,
    .formated-text ol ol,
    .formated-text ul ol,
    .formated-text ol ul {
        margin: 5px 0 5px 15px;
    }

    .formated-text img {
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .formated-text {
        font-size: 14px;
    }

    .formated-text h2 {
        font-size: 20px;
    }

    .formated-text h3 {
        font-size: 17px;
    }

    .formated-text blockquote {
        padding: 10px 15px;
    }

    .formated-text table {
        font-size: 13px;
    }

    .formated-text table td,
    .formated-text table th {
        padding: 6px 8px;
    }
}

//* ===== СПИСКИ ===== */
.formated-text ul,
.formated-text ol {
    padding-left: 0;
    margin: 15px 0 20px 0;
    list-style: none;
    text-align: left; /* Сам список по левому краю */
}

.formated-text ul li,
.formated-text ol li {
    padding-bottom: 16px;
    line-height: 1.7;
    text-align: left; /* Элементы списка по левому краю */
}

.formated-text ul li:last-child,
.formated-text ol li:last-child {
    padding-bottom: 0;
}

/* Текст внутри p в списках - по левому краю */
.formated-text ul li p,
.formated-text ol li p {
    margin: 0;
    display: block;
    text-align: left;
}

/* Вложенные списки */
.formated-text ul ul,
.formated-text ol ol,
.formated-text ul ol,
.formated-text ol ul {
    margin: 5px 0 5px 20px;
    padding-left: 0;
    list-style: none;
}

.formated-text ul li::before{
    top: 1em;
}

@media screen and (min-width: 1440.98px) {
    .formated-text ul li {
        padding-bottom: 0px;
        padding-left: 30px;
    }
}
.formated-text ul li, .formated-text ol li {
    padding-bottom: 0px;
    line-height: 1.7;
    text-align: left;
}

@media screen and (min-width: 769.98px) {
    .categories-products__category-header h2,
    .categories-products__category-header h2 a {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
}

/* Базовые стили */
.categories-products__category-header {
    margin-bottom: 20px;
}

.categories-products__category-header h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0;
    padding-bottom: 10px;
    position: relative;
}

.categories-products__category-header h2 a {
    font-size: inherit;
    line-height: inherit;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top:40px;
}
.blog__content{
    margin-bottom: 40px;
    padding-top: 0;
}
/* ============================================
   МОБИЛЬНОЕ МЕНЮ - КАТЕГОРИИ БЛОГА
   ============================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu__container {
    padding: 20px 16px;
}

/* Заголовок */
.mobile-menu__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu__heading .h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.mobile-menu__heading-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    background: #f5f5f5;
    transition: all 0.3s;
}

.mobile-menu__heading-close:hover {
    background: #e0e0e0;
}

.mobile-menu__heading-close i {
    position: relative;
    width: 20px;
    height: 2px;
    background: #333;
    display: block;
}

.mobile-menu__heading-close i:first-child {
    transform: rotate(45deg);
    position: absolute;
}

.mobile-menu__heading-close i:last-child {
    transform: rotate(-45deg);
}

/* Каталог */
.mobile-menu__catalog {
    margin-top: 20px;
}

.mobile-menu__catalog-list {
    padding: 20px;
}

.mobile-menu__catalog-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #33c5a9;
    position: relative;
}

.mobile-menu__catalog-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #33c5a9;
}

/* Список категорий */
.mobile-menu__categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu__categories-list li {
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.mobile-menu__categories-list li:last-child {
    border-bottom: none;
}

.mobile-menu__categories-list li a {
    display: flex;
    align-items: center;
    padding: 16px 40px 16px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.mobile-menu__categories-list li a::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #33c5a9;
}

.mobile-menu__categories-list li a::after {
    content: '→';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #ccc;
    transition: all 0.3s;
}

.mobile-menu__categories-list li a:hover,
.mobile-menu__categories-list li a:active {
    color: #33c5a9;
    padding-left: 10px;
}

.mobile-menu__categories-list li a:hover::before {
    height: 100%;
}

.mobile-menu__categories-list li a:hover::after {
    color: #33c5a9;
    right: 5px;
}



/* Активный пункт */
.mobile-menu__categories-list li.is-active a {
    color: #33c5a9;
    font-weight: 600;
}

.mobile-menu__categories-list li.is-active a::before {
    height: 100%;
}

/* Анимация появления */
.mobile-menu__catalog-list {
    animation: slideIn 0.3s ease-out;
}

.mobile-menu__categories-list li {
    animation: fadeIn 0.3s ease-out;
    animation-fill-mode: both;
}

.mobile-menu__categories-list li:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu__categories-list li:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu__categories-list li:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu__categories-list li:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu__categories-list li:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu__categories-list li:nth-child(6) { animation-delay: 0.3s; }
.mobile-menu__categories-list li:nth-child(7) { animation-delay: 0.35s; }
.mobile-menu__categories-list li:nth-child(8) { animation-delay: 0.4s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* С подкатегориями */
.mobile-menu__subcategories {
    list-style: none;
    padding: 0 0 0 20px;
    margin: 0;
    background: #f5f7fa;
    border-radius: 8px;
    margin-bottom: 10px;
    display: none;
}

.mobile-menu__categories-list li.has-children.is-open .mobile-menu__subcategories {
    display: block;
    animation: slideIn 0.3s ease-out;
}

.mobile-menu__subcategories li {
    border-bottom: 1px solid #e8ecf1;
}

.mobile-menu__subcategories li:last-child {
    border-bottom: none;
}

.mobile-menu__subcategories li a {
    padding: 12px 30px 12px 15px;
    font-size: 14px;
    color: #666;
}

.mobile-menu__subcategories li a::before {
    display: none;
}

.mobile-menu__subcategories li a::after {
    font-size: 16px;
    right: 5px;
}

/* Стрелка для пунктов с подкатегориями */
.mobile-menu__categories-list li.has-children > a::after {
    content: '▾';
    font-size: 16px;
    transition: transform 0.3s;
}

.mobile-menu__categories-list li.has-children.is-open > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Адаптив */
@media (max-width: 480px) {
    .mobile-menu__container {
        padding: 15px 12px;
    }

    .mobile-menu__catalog-list {
        padding: 5px;
    }

    .mobile-menu__catalog-name {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .mobile-menu__categories-list li a {
        padding: 14px 35px 14px 0;
        font-size: 15px;
    }
}

/* ============================================
   АДАПТИВНАЯ РЕКЛАМА НА СТРАНИЦЕ РЕЦЕПТА
   ============================================ */

/* Базовая структура */
.blog-article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.blog-article-content {
    min-width: 0;
}

.blog-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.blog-sidebar-ads {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Скрываем мобильную рекламу на десктопе */
.blog-mobile-ads {
    display: none;
}

/* Общие стили для рекламных блоков */
.blog-ad-block {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.blog-ad-block--full-width {
    width: 100%;
}

.sidebar-ad-item {
    border-radius: 12px;
    overflow: hidden;
}

.sidebar-ad-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ============================================ */
@media (max-width: 991px) {
    .blog-article-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Скрываем сайдбар на мобильных */
    .blog-sidebar {
        display: none;
    }

    /* Показываем мобильную рекламу */
    .blog-mobile-ads {
        display: block;
        margin: 25px 0;
    }

    .blog-mobile-ads .sidebar-ad-item {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 12px;
    }

    /* Позиционирование мобильной рекламы */
    .blog-mobile-ads--after-title {
        margin-top: 20px;
    }

    .blog-mobile-ads--after-content {
        margin-top: 30px;
    }

    .blog-mobile-ads--after-gallery {
        margin-top: 30px;
    }

    .blog-mobile-ads--after-related {
        margin-top: 30px;
    }
}

/* Для маленьких мобильных */
@media (max-width: 480px) {
    .blog-mobile-ads {
        margin: 20px 0;
    }

    .blog-mobile-ads .sidebar-ad-item {
        padding: 10px;
    }

    .blog-ad-block {
        padding: 15px;
        margin: 20px 0;
    }
}
