/* ============================================================
   Карточка товара — catalog.element/new_v4
   ПОЧИЩЕННАЯ ВЕРСИЯ (проверено в браузере на live-страницах)
   ------------------------------------------------------------
   Что сделано (только безопасные, не меняющие рендер правки):
     1. Удалён мёртвый блок ms-font-swap-v1 (@font-face
        "FontFaceObserver-Override" — нигде не используется,
        в браузере числится unloaded).
     2. Удалён дубль `.product__detail-property{margin-top:20px}`
        (был объявлен дважды, оставлен один).
     3. Удалено избыточное `.offers ul li:last-child{border-bottom}`
        — базовое `.offers ul li` уже имеет border со всех сторон.
     4. Блок ms-font-swap-v2 ЗАКОММЕНТИРОВАН (не удалён): FontAwesome
        на сайте не используется (0 элементов), хак инертен. Оставлен
        в комментарии на случай, если FA появится на других шаблонах.

   ЧТО НАМЕРЕННО НЕ ТРОНУТО (работает, удаление/слияние рискованно):
     - Слои ms-offer / ms-product — активны каждый на своём типе
       страницы (body.ms-offer-page / body.ms-product-page), это не
       мусор, а условная вёрстка.
     - sign-partner — подтверждён живым на партнёрских товарах.
     - cat_lvl1 / catalog_right_item (v20–v22) — AJAX-блок «Покупатели
       также интересуются», наполняется по данным рекомендаций.
     - Наслоённые !important-переопределения v8/v9 для
       `.simple-product-buy-js > .offers__buy:first-child` — оставлены
       как есть: финальный результат собирается каскадом, ручное
       слияние без перепроверки в браузере может сдвинуть вёрстку.

   Для более глубокого рефакторинга: Chrome DevTools → Coverage на
   обоих типах страниц + товар с наполненным cat_lvl1, затем правки на
   staging-копии.
   ============================================================ */

/* === Переменные === */
:root {
    --c-text: #0f1f32;
    --c-text-soft: #1a2332;
    --c-text-muted: #6b7280;
    --c-text-light: #9ca3af;
    --c-primary: #1B8CD3;
    --c-primary-dark: #1571af;
    --c-primary-soft: #f0f7fc;
    --c-accent: #EC5A49;
    --c-success: #10B981;
    --c-success-dark: #0ea271;
    --c-border: #e5e9ef;
    --c-border-light: #f0f3f7;
    --c-bg-soft: #f7f9fc;
    --shadow-card: 0 2px 12px rgba(15, 30, 50, 0.05);
    --shadow-img: 0 8px 24px rgba(15, 30, 50, 0.08);
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* === Шрифт основной части === */
.product, .product *,
.tab-content__text, .tab-content__text * {
    font-family: var(--font-body);
}

/* === Базовая разметка === */
.product {
    margin-bottom: 50px;
}

.product_name {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.15;
    color: var(--c-text);
    margin: 15px 0 16px;
}

/* === Шапка товара === */
.product__header {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 0;
}

/* Слайдер с одной картинкой — стрелки и точки спрятаны */
.product__slider {
    width: 260px;
    height: 210px;
    flex-basis: 0;
    padding-top: 11px;
    padding-bottom: 0;
    box-sizing: content-box;
}
.product__slider .splide__arrow,
.product__slider .splide__pagination,
.product__slider .splide__arrows {
    display: none;
}

.product__slide-container {
    width: 260px;
    height: 210px;
    display: flex;
    justify-content: center;
    align-content: center;
}
.product__slide-container a {
    display: flex;
    align-items: center;
}
.product__slide-container a img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-img);
}

/* === Инфо-блоки === */
.product__info {
    width: 100%;
}
.product__info-more {
    display: none;
}
.product__info.product__info_detail {
    width: 324px;
}

/* Правый блок «Запросить» (карточка без цены) */
.product__info.product__info_buy {
    width: auto;
    min-width: 320px;
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: var(--shadow-card);
    align-self: flex-start;
}
.product__info_buy .product__info-row {
    padding: 8px 0;
    border-bottom: 1px solid var(--c-border-light);
    font-size: 14px;
    line-height: 1.5;
}
.product__info_buy .product__info-row:last-of-type {
    border-bottom: none;
}
.product__info_buy .product__info-row strong {
    color: var(--c-text-muted);
    font-weight: 500;
}

/* Блок цены — обёртка без рамки, "от XXX руб." скрыто, только кнопка */
.product__price {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0 0 24px;
}
.product__price strong {
    display: none;
}

/* === Строки информации === */
.product__info-row {
    font-size: 15px;
    line-height: 1.55;
    color: var(--c-text-soft);
}
.product__info-row a {
    color: var(--c-primary);
    font-weight: 600;
    text-decoration: none;
}
.product__info-row strong {
    color: var(--c-text-muted);
    font-weight: 500;
    margin-right: 6px;
}
.product__info-row.product__info-row_manufactor {
    margin: 10px 0;
}
.product__info-row.product__info-row_category {
    margin-top: 2px;
}
.product__info-row.product__info-row_about {
    display: block;
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.65;
    color: #37352F;
}

.product__info_detail .product__info-row {
    margin-bottom: 6px;
}
.product__info_detail .product__info-row strong {
    color: var(--c-text-muted);
    font-weight: 500;
}

/* (дубль этого правила из секции «Прочее» удалён — см. changelog #2) */
.product__detail-property {
    margin-top: 20px;
}

/* === Кнопки === */
.link {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    text-decoration: none;
}
.link:hover {
    opacity: 0.8;
}

/* Кнопка «Посмотреть все варианты» — синяя CTA со стрелкой ↓ */
.link.link_product-more {
    min-width: 240px;
    width: auto;
    height: 44px;
    padding: 0 22px;
    background: var(--c-primary);
    border: none;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(27, 140, 211, 0.2);
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}
.link.link_product-more:hover {
    background: var(--c-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(27, 140, 211, 0.3);
    opacity: 1;
}
.link.link_product-more span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 14px;
}
.link.link_product-more span::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 7 8 11 12 7'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.2s;
}
.link.link_product-more:hover span::after {
    transform: translateY(2px);
}

/* «Запросить» и «В корзину» */
.link.link_offers-buy,
.link.link_offers-request {
    height: 36px;
    padding: 0 14px;
    background: var(--c-success);
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.1s;
}
.link.link_offers-buy:hover,
.link.link_offers-request:hover {
    background: var(--c-success-dark);
    opacity: 1;
}
.link.link_offers-buy:active,
.link.link_offers-request:active {
    transform: translateY(1px);
}
.link.link_offers-buy span,
.link.link_offers-request span {
    font-size: 12px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
    white-space: nowrap;
}

/* «Запросить» внутри правой карточки — крупнее */
.product__info_buy .link.link_offers-request,
.product__info_buy .link.link_offers-buy {
    width: 100%;
    height: 50px;
    margin-bottom: 16px;
}
.product__info_buy .link.link_offers-request span,
.product__info_buy .link.link_offers-buy span {
    font-size: 15px;
}

.link.link_offers-buy-full {
    background: var(--c-success);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 8px 20px;
    width: 100%;
    height: 44px;
    margin-top: 21px;
    box-sizing: border-box;
}
.link.link_offers-buy-full span {
    font-size: 14px;
    font-weight: 600;
    line-height: 14px;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
}

.offers__buy,
.offers__request,
.offers_request {
    display: flex;
    justify-content: space-between;
}

/* === Доставка === */
.delivery-info {
    display: flex;
    align-items: center;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 28px;
}
.delivery-info svg {
    min-width: 18px;
    margin-right: 18px;
}
.delivery-info__text {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 16px;
    color: #4a5260;
}

/* === Сайдбар === */
.tabs__sidebar {
    position: relative;
    align-self: flex-start;
    width: 220px;
    min-width: 220px;
}
.tabs__sidebar > div {
    position: static;
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.tabs__sidebar > div + div,
.tabs__sidebar > .help {
    margin-top: 16px;
}

/* === Карточка «Мы официальный поставщик» (Силвер реселлер) === */
/* ВАЖНО: !important нужен, чтобы перебить встроенные стили
   компонента sign-partner (он подключает свой CSS и inline-стили
   c margin-top:8px, margin-bottom:31px, height:229px) */
.tabs__sidebar .sign-partner__wrapper,
.tabs__sidebar:first-child .sign-partner__wrapper,
.sign-partner__wrapper {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    width: 100% !important;
}
.tabs__sidebar .sign-partner,
.sign-partner {
    border: none !important;
    padding: 18px 14px !important;
    text-align: left !important;
    margin: 0 !important;
    position: static !important;
}
.sign-partner__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.35;
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--c-border-light);
    text-align: left;
    display: block;
    width: 100%;
}
.sign-partner__image {
    max-width: 90px;
    margin: 0 auto;
    display: block;
    text-align: center;
}
.sign-partner__image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}
.sign-partner__footer,
.sign-partner > *:not(.sign-partner__title):not(.sign-partner__image) {
    font-size: 11px;
    font-weight: 500;
    color: var(--c-text-muted);
    text-align: center;
    margin-top: 6px;
    display: block;
}

/* === Карточка «Нужна помощь?» — список с иконками === */
.help {
    border: none;
    background: #ffffff;
    padding: 18px 14px;
    margin-bottom: 0;
    align-items: stretch;
    border-radius: 14px;
}
.help__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-border-light);
    text-align: left;
    width: 100%;
}
.help .link.link_help {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 36px;
    padding: 8px 6px;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 8px;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
}
.help .link.link_help:hover {
    background: var(--c-bg-soft);
    opacity: 1;
}
.help .link.link_help span {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text-soft);
    line-height: 1.2;
    letter-spacing: 0;
}

/* Иконки слева — outline 1.5–2px, разные для каждой ссылки.
   ВНИМАНИЕ: завязаны на :nth-child(порядок ссылок). Если в шаблоне
   изменится порядок ссылок в .help — иконки разъедутся. Это известная
   хрупкость; при доработке шаблона лучше перейти на классы-модификаторы. */
.help .link.link_help::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
/* Phone — outline */
.help .link.link_help:nth-child(2)::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B8CD3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>");
}
/* Mail — outline */
.help .link.link_help:nth-child(3)::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B8CD3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='m22 7-10 5L2 7'/></svg>");
}
/* WhatsApp — зелёная заливка */
.help .link.link_help:nth-child(4)::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2325D366'><path d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z'/></svg>");
}
/* Telegram — голубая заливка */
.help .link.link_help:nth-child(5)::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23229ED9'><path d='M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/></svg>");
}
/* Max — outline сообщение */
.help .link.link_help:nth-child(6)::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B8CD3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>");
}

/* === Табы === */
.tabs__header {
    position: relative;
    display: flex;
    gap: 4px;
    padding: 0;
    border-bottom: 2px solid var(--c-border);
    margin-bottom: 0;
}
.tabs__header-item {
    cursor: pointer;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 18px;
    color: var(--c-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.tabs__header-item:hover {
    color: var(--c-primary);
}
.tabs__header-item.active {
    color: var(--c-text);
    border-bottom: 3px solid var(--c-accent);
    margin-bottom: -2px;
}

.tab-content {
    margin-top: 25px;
    display: none;
}
.tab-content.active {
    display: block;
}
.tab-content_with-sidebar.active {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-start;
    width: 950px;
    max-width: 950px;
}
.tab-content_blue {
    background: #ffffff;
}

.tab-content__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;
    color: var(--c-text);
}

.tab-content__text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--c-text-soft);
    margin-top: 27px;
}
.tab-content__text.tab-content__text_padding {
    padding: 30px;
}
.tab-content__text.tab-content__text_no-tr {
    margin-top: 0;
    width: 100%;
    max-width: 880px;
}
.tab-content__text h3,
.tab-content__text h4 {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    color: var(--c-text);
    letter-spacing: -0.2px;
    margin: 28px 0 12px;
}
.tab-content__text p {
    margin: 0 0 14px;
}
.tab-content__text strong {
    color: var(--c-text);
    font-weight: 600;
}
.tab-content__text a {
    color: rgba(25, 23, 17, 0.6);
    text-decoration: none;
    font-size: 12px;
    line-height: 15px;
    margin-bottom: 5px;
    width: fit-content;
}

.tab-content__text :not(.offers) ul {
    margin: 12px 0 22px;
    padding-left: 22px;
    list-style: none;
}
.tab-content__text :not(.offers) ul li {
    position: relative;
    padding-left: 4px;
    margin-bottom: 6px;
    line-height: 1.55;
}
.tab-content__text :not(.offers) ul li:before {
    position: absolute;
    width: 6px;
    height: 6px;
    content: " ";
    background: var(--c-primary);
    border-radius: 50%;
    top: 14px;
    left: -16px;
}

/* === Список предложений (варианты лицензий) === */
.offers__section {
    margin-bottom: 36px;
}
.section__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--c-text);
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}
.section__description {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5260;
    margin: 0 0 20px;
    max-width: 720px;
}

.offers ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 0;
    margin-left: 0;
    counter-reset: list 0;
}
.offers ul li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 18px 22px;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
}
.offers ul li:hover {
    border-color: #d4d6da;
    background: #fafafa;
}
/* (избыточное `.offers ul li:last-child{border-bottom}` удалено —
   базовый li уже имеет border со всех сторон, см. changelog #3) */
.offers ul li:before {
    content: counter(list);
    counter-increment: list;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    max-width: 28px;
    min-width: 28px;
    padding: 0;
    background: var(--c-primary-soft);
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--c-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
    margin-right: 6px;
}

.offers__description {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.45;
    color: var(--c-text);
}
.offers__description-sku {
    font-size: 11px;
    font-weight: 500;
    color: var(--c-text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: ui-monospace, SF Mono, Monaco, monospace;
    margin-bottom: 4px;
}
.offers__description-name,
.offers__description span:not(.offers__description-sku) {
    font-size: 14px;
    font-weight: 400;
    color: var(--c-text-soft);
    line-height: 1.45;
}

.offers__quantity {
    margin: 0 0 0 8px;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.offers__quantity input {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    height: 36px;
    padding: 0 10px;
    margin-right: 6px;
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text);
    text-align: center;
}

.offers__quantity-input-wrapper {
    display: flex;
    position: relative;
}
.offers__quantity-input-wrapper input::-webkit-outer-spin-button,
.offers__quantity-input-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.offers__quantity-input-wrapper input[type=number] {
    -moz-appearance: textfield;
}

.offers__quantity-input__minus,
.offers__quantity-input__plus {
    display: flex;
    position: absolute;
    width: 25px;
    height: 100%;
    background-size: contain;
    cursor: pointer;
}
.offers__quantity-input__minus {
    background: url(/local/templates/mig/components/bitrix/catalog.element/new_v2/images/minus.svg) no-repeat 12px center;
}
.offers__quantity-input__plus {
    right: 7px;
    background: url(/local/templates/mig/components/bitrix/catalog.element/new_v2/images/plus.svg) no-repeat 3px center;
}

.offers__price {
    min-width: 80px;
    flex-shrink: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
}
.offers__price strong {
    font-size: 17px;
    font-weight: 500;
    color: var(--c-text);
    text-align: right;
}
.offers__price strong.offers__result-price_big {
    font-weight: 500;
    font-size: 26px;
    line-height: 26px;
}
.offers__price.offers__price_full {
        flex: 1;
    margin-top: 7px;
}

.offers__result-price-additinal {
    display: none;
}
.offers__result-price-additinal.offers__result-price-additinal__active {
    display: block;
    font-size: 12px;
    text-align: end;
    color: rgba(25, 23, 17, 0.6);
}

.offers__info {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}

/* === Прочее === */
span.blue {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 18px;
    color: var(--c-primary);
    cursor: pointer;
}
.mt-small {
    margin-top: 10px;
}

/* (дубль `.product__detail-property{margin-top:20px}` удалён здесь —
   правило оставлено выше, в секции инфо-блоков, см. changelog #2) */

/* === Адаптив === */
@media (max-width: 1024px) {
    .tab-content_with-sidebar.active {
        width: 100%;
        max-width: 100%;
    }
}
@media (max-width: 900px) {
    .product__header {
        flex-direction: column;
        gap: 18px;
    }
    .product__info.product__info_buy,
    .product__info.product__info_detail {
        width: 100%;
        margin-left: 0;
    }
    .product__slider,
    .product__slide-container {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        height: auto;
    }
    .tabs__sidebar {
        width: 100%;
        min-width: 0;
    }
    .tab-content__text.tab-content__text_no-tr {
        width: 100%;
    }
    .tabs__header {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .tabs__header-item {
        white-space: nowrap;
        padding: 12px 16px;
        font-size: 15px;
    }
    .link.link_product-more {
        min-width: 0;
        width: 100%;
    }
    .product__price {
        justify-content: stretch;
    }
}

/*# sourceMappingURL=style.css.map */


/* ===== ms-offer-v7: финальная вёрстка страницы оффера ===== */

/* Скрываем лишние элементы на странице оффера */
.ms-offer-page .tabs__sidebar,
.ms-offer-page .tabs__header {
  display: none !important;
}
.ms-offer-page .tab-content.tab-content_with-sidebar > .tab-content__text {
  width: 100% !important;
  margin-left: 0 !important;
}

/* Две колонки */
.ms-offer-page .product__header {
  display: flex !important;
  flex-direction: row !important;
  gap: 30px !important;
  align-items: flex-start !important;
}
.ms-offer-page .ms-offer-left-col {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ms-offer-page .ms-offer-right-col {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* БЛОК-КАРТОЧКИ в левой колонке — все три с рамкой и тенью */
.ms-offer-page .ms-offer-left-col .product__slider,
.ms-offer-page .ms-offer-left-col .sign-partner__wrapper,
.ms-offer-page .ms-offer-left-col .help {
  background: #fff !important;
  border: 1px solid #e5e9ef !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(15,30,50,0.05) !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* Картинка товара — с выравниванием по центру */
.ms-offer-page .ms-offer-left-col .product__slider {
  padding: 24px 16px !important;
  flex: 0 0 auto !important;
  min-height: 180px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.ms-offer-page .ms-offer-left-col .product__slider .splide,
.ms-offer-page .ms-offer-left-col .product__slider .splide__track,
.ms-offer-page .ms-offer-left-col .product__slider .splide__list,
.ms-offer-page .ms-offer-left-col .product__slider .splide__slide {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}
.ms-offer-page .ms-offer-left-col .product__slider img {
  max-width: 160px !important;
  max-height: 130px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Оформление внутри .sign-partner */
.ms-offer-page .ms-offer-left-col .sign-partner {
  padding: 20px 16px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: center !important;
  border-radius: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  display: block !important;
  height: auto !important;
}
.ms-offer-page .ms-offer-left-col .sign-partner__title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #002C56 !important;
  text-align: center !important;
  margin: 0 0 16px !important;
  padding: 0 0 16px !important;
  border-bottom: 1px solid #f0f3f7 !important;
  line-height: 1.3 !important;
}
.ms-offer-page .ms-offer-left-col .sign-partner__image {
  margin: 0 auto 16px !important;
  padding: 0 !important;
  text-align: center !important;
  display: block !important;
  max-width: 109px !important;
  width: auto !important;

  min-height: 78px !important;
  height: auto !important;
  overflow: visible !important;
}
.ms-offer-page .ms-offer-left-col .sign-partner__image picture {
  height: auto !important;
  line-height: 0 !important;
  display: block !important;
  margin: 0 auto !important;
  width: 100% !important;
}
.ms-offer-page .ms-offer-left-col .sign-partner__image img {
  display: block !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 109px !important;
  height: auto !important;
}
.ms-offer-page .ms-offer-left-col .sign-partner__image img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 4px;
  display: inline-block;
}
.ms-offer-page .ms-offer-left-col .sign-partner__footer {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #8e93a0 !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 16px 0 0 !important;
  border-top: 1px solid #f0f3f7 !important;
}

/* Оформление внутри .help */
.ms-offer-page .ms-offer-left-col .help {
  padding: 18px 16px !important;
}
.ms-offer-page .ms-offer-left-col .help__title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #002C56 !important;
  margin: 0 0 14px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #f0f3f7 !important;
}

/* ПРАЙС-БЛОК: оборачиваем оба .offers__buy в карточку, располагаем в строку */
.ms-offer-page .ms-offer-right-col .product__info_buy,
.ms-offer-page .ms-offer-right-col .simple-product-buy-js {
  background: transparent !important;
  border: 0 !important;
  border-radius: 5px !important;
  padding: 10px !important;
}
/* Внутри одного контейнера — флекс-ряд */
.ms-offer-page .simple-product-buy-js {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}
.ms-offer-page .simple-product-buy-js > .offers__buy {
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  width: auto !important;
}
.ms-offer-page .simple-product-buy-js .offers__price {
  margin: 0 !important;
}
.ms-offer-page .simple-product-buy-js .offers__result-price_big {
  font-size: 30px !important;
  font-weight: 700 !important;
  color: #0f1f32 !important;
}
/* Скрываем пустой .product__detail-property (мы перенесли его строки) */
.ms-offer-page .simple-product-buy-js .product__detail-property:empty {
  display: none !important;
}

/* Кнопка «в корзину» — синий стиль, не зелёный */
.ms-offer-page .simple-product-buy-js .add2basket,
.ms-offer-page .simple-product-buy-js [class*="add-to-basket"],
.ms-offer-page .simple-product-buy-js .product__buy-button,
.ms-offer-page .simple-product-buy-js a[href*="basket"],
.ms-offer-page .simple-product-buy-js .btn-success {
  background: #1B8CD3 !important;
  border-color: #1B8CD3 !important;
  color: #fff !important;
}

/* ===== ms-product-page: single-TP buy block, matching offer page style ===== */
.ms-product-page .simple-product-buy-js { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; gap: 16px !important; padding: 10px 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; }
.ms-product-page .simple-product-buy-js > .offers__buy { margin: 0 !important; background: transparent !important; border: 0 !important; padding: 0 !important; width: auto !important; align-items: center !important; gap: 16px !important; }
.ms-product-page .simple-product-buy-js .offers__price { margin: 0 !important; flex: 0 0 auto !important; width: auto !important; }
.ms-product-page .simple-product-buy-js .offers__result-price-big { font-size: 30px !important; font-weight: 700 !important; color: #0f1f32 !important; }
.ms-product-page .simple-product-buy-js .offers__quantity { flex-shrink: 0 !important; }
.ms-product-page .simple-product-buy-js .link_offers-buy-full,
.ms-product-page .simple-product-buy-js .link_buy-js { background: #1B8CD3 !important; border-color: #1B8CD3 !important; color: #fff !important; border-radius: 8px !important; padding: 12px 28px !important; font-size: 14px !important; font-weight: 600 !important; height: 44px !important; width: auto !important; flex: 0 1 auto !important; white-space: nowrap !important; }
.ms-product-page .simple-product-buy-js .link_offers-request { display: flex !important; align-items: center !important; justify-content: center !important; background: #10B981 !important; color: #fff !important; border-radius: 8px !important; padding: 12px 28px !important; font-size: 14px !important; font-weight: 600 !important; height: 44px !important; width: 100% !important; cursor: pointer !important; }
.ms-product-page .simple-product-buy-js .product__detail-property:empty { display: none !important; }

/* Кнопка «Посмотреть все товары» */
.ms-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  background: #fff;
  border: 2px solid #1B8CD3;
  border-radius: 8px;
  color: #1B8CD3;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.15s;
  box-sizing: border-box;
  width: 100%;
}
.ms-back-btn:hover { background: #1B8CD3; color: #fff; }

@media (max-width: 768px) {
  .ms-offer-page .product__header { flex-direction: column !important; }
  .ms-offer-page .ms-offer-left-col { width: 100% !important; }
}

/* Кнопка «в корзину» — синий стиль */
.ms-offer-page .link_offers-buy-full,
.ms-offer-page .link_buy-js {
  background: #1B8CD3 !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  text-decoration: none !important;
  transition: background 0.15s;
}
.ms-offer-page .link_offers-buy-full:hover,
.ms-offer-page .link_buy-js:hover {
  background: #1571af !important;
}
.ms-offer-page .link_offers-buy-full span,
.ms-offer-page .link_buy-js span {
  color: #fff !important;
  font-weight: 600 !important;
}

/* Контейнер кнопки .offers__buy — без лишнего padding/margin */
.ms-offer-page .simple-product-buy-js > .offers__buy:nth-child(2) {
  align-self: center;
}


/* QTY-блок — в рамочной обёртке как на превью */
.ms-offer-page .offers__quantity-input-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #e8e3db !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fff !important;
  height: 44px !important;
  padding: 0 !important;
}
.ms-offer-page .offers__quantity-input-wrapper .offers__quantity-input__minus,
.ms-offer-page .offers__quantity-input-wrapper .offers__quantity-input__plus {
  width: 38px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 18px !important;
  color: #0f1f32 !important;
  user-select: none !important;
  position: relative !important;
}
.ms-offer-page .offers__quantity-input-wrapper .offers__quantity-input__minus::before {
  content: "−" !important;
  font-size: 18px;
}
.ms-offer-page .offers__quantity-input-wrapper .offers__quantity-input__plus::before {
  content: "+" !important;
  font-size: 18px;
}
.ms-offer-page .offers__quantity-input-wrapper input.offers__quantity-input {
  border: 0 !important;
  width: 44px !important;
  height: 44px !important;
  text-align: center !important;
  font-size: 16px !important;
  background: transparent !important;
  outline: none !important;
  padding: 0 !important;
  -moz-appearance: textfield;
}
.ms-offer-page .offers__quantity-input-wrapper input.offers__quantity-input::-webkit-outer-spin-button,
.ms-offer-page .offers__quantity-input-wrapper input.offers__quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
/* Иконка «инфо» в .offers__quantity — скрываем на странице оффера */
.ms-offer-page .offers__quantity .offers__info {
  display: none !important;
}
.ms-offer-page .offers__quantity {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
}
/* Между ценой, qty и кнопкой — комфортный зазор */
.ms-offer-page .simple-product-buy-js > .offers__buy:first-child {
  flex: 1 1 auto;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}
.ms-offer-page .simple-product-buy-js > .offers__buy:first-child .offers__price {
  flex: 0 0 auto;
}
.ms-offer-page .simple-product-buy-js > .offers__buy:first-child .offers__quantity {
  flex: 0 0 auto;
}

/* v8: разделители строк в таблице параметров */
.ms-offer-page .ms-offer-right-col .product__info .product__info-row {
  display: flex !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #e8e3db !important;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  gap: 16px !important;
}
/* Строка описания — без flex, полная ширина */
.ms-offer-page .ms-offer-right-col .product__info .product__info-row_about {
  display: block !important;
}
.ms-offer-page .ms-offer-right-col .product__info .product__info-row_about > span:first-child:empty {
  display: none !important;
}
.ms-offer-page .ms-offer-right-col .product__info .product__info-row:last-child {
  border-bottom: 0 !important;
}
/* Strong (ключ столбца) — фиксированная ширина, серый */
.ms-offer-page .ms-offer-right-col .product__info .product__info-row > strong {
  flex: 0 0 180px;
  font-weight: 400 !important;
  color: #8e93a0 !important;
}
.ms-offer-page .ms-offer-right-col .product__info .product__info-row > span,
.ms-offer-page .ms-offer-right-col .product__info .product__info-row > a {
  flex: 1 1 auto;
  color: #0f1f32;
}
.ms-offer-page .ms-offer-right-col .product__info .product__info-row a {
  color: #1B8CD3 !important;
  text-decoration: none;
}

/* v8: ГРУППА qty + кнопка внутри второго .offers__buy */
.ms-offer-page .simple-product-buy-js > .offers__buy:nth-child(2) {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-direction: row !important;
}
/* Первый .offers__buy теперь содержит только цену */
.ms-offer-page .simple-product-buy-js > .offers__buy:first-child {
  flex: 0 0 auto !important;
  display: block !important;
  justify-content: flex-start !important;
}
/* qty в втором blocks — без изменения */
.ms-offer-page .simple-product-buy-js > .offers__buy:nth-child(2) .offers__quantity {
  margin: 0 !important;
}

/* v9: исправление прайс-блока — всё на одной строке */
.ms-offer-page .simple-product-buy-js > .offers__buy {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.ms-offer-page .link_offers-buy-full,
.ms-offer-page .link_buy-js {
  margin: 0 !important;
}
.ms-offer-page .simple-product-buy-js > .offers__buy:first-child {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
}
.ms-offer-page .simple-product-buy-js > .offers__buy:first-child .offers__price {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
}
.ms-offer-page .simple-product-buy-js > .offers__buy:first-child .offers__price-full {
  display: none !important;
}

/* v12: крошки (breadcrumbs) — ссылки синие, последний элемент серый */
.breadcrumbs a[href]:not([href=""]):not([href="#"]) {
  color: #1B8CD3 !important;
  text-decoration: none;
}
.breadcrumbs a[href]:not([href=""]):not([href="#"]):hover {
  color: #1571af !important;
  text-decoration: underline;
}
.breadcrumbs a:not([href]),
.breadcrumbs a[href=""],
.breadcrumbs a[href="#"] {
  color: #0f1f32 !important;
  cursor: default;
  pointer-events: none;
}

/* v20: блок «Покупатели также интересуются» — минималистичные карточки
   (AJAX-блок: контейнер #cat_lvl1 инжектится скриптом и наполняется по
   данным рекомендаций; на части товаров может быть пустым) */
.ms-offer-page #cat_lvl1 .catalog_right_item,
#cat_lvl1 .catalog_right_item {
  border: 1px solid #e5e9ef !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 12px rgba(15,30,50,0.05) !important;
  padding: 20px 16px !important;
  background: #fff !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  overflow: hidden;
}
.ms-offer-page #cat_lvl1 .catalog_right_item:hover,
#cat_lvl1 .catalog_right_item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15,30,50,0.10) !important;
  border-color: #1B8CD3 !important;
}
.ms-offer-page #cat_lvl1 .catalog_right_item .cri_text,
#cat_lvl1 .catalog_right_item .cri_text {
  display: none !important;
}
.ms-offer-page #cat_lvl1 .catalog_right_item .cri_more,
#cat_lvl1 .catalog_right_item .cri_more {
  display: none !important;
}
.ms-offer-page #cat_lvl1 .catalog_right_item .cri_img,
#cat_lvl1 .catalog_right_item .cri_img {
  text-align: center !important;
  margin-bottom: 16px !important;
  padding: 12px !important;
  background: #faf9f7 !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 140px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.ms-offer-page #cat_lvl1 .catalog_right_item .cri_img img,
#cat_lvl1 .catalog_right_item .cri_img img {
  max-width: 140px !important;
  max-height: 120px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 auto !important;
  display: block !important;
  object-fit: contain;
}
.ms-offer-page #cat_lvl1 .catalog_right_item .cri_head,
#cat_lvl1 .catalog_right_item .cri_head {
  display: block !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1B8CD3 !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  padding: 4px 0 !important;
}
.ms-offer-page #cat_lvl1 .catalog_right_item .cri_head:hover,
#cat_lvl1 .catalog_right_item .cri_head:hover {
  color: #1571af !important;
  text-decoration: none !important;
}

/* v21: финальное центрирование картинки в .cri_img */
.ms-offer-page #cat_lvl1 .catalog_right_item .cri_img > a,
#cat_lvl1 .catalog_right_item .cri_img > a,
.ms-offer-page #cat_lvl1 .catalog_right_item .cri_img picture,
#cat_lvl1 .catalog_right_item .cri_img picture {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}
.ms-offer-page #cat_lvl1 .catalog_right_item .cri_img img,
#cat_lvl1 .catalog_right_item .cri_img img {
  display: block !important;
  margin: 0 auto !important;
  max-width: 120px !important;
  max-height: 100px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* v22: карточки похожих товаров — в ряд слева-направо */
#cat_lvl1 .cat_lvl1_cont {
  justify-content: flex-start !important;
  gap: 20px !important;
}

/* ms-qty-wider-v2: расширяем только инпут цифры на родительской странице — кнопки без изменений */
.ms-product-page .offers__quantity-input.quantity-input-js,
.ms-product-page .offers__quantity-input {
  width: 100px !important;
  min-width: 100px !important;
  font-size: 16px !important;
  text-align: center !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
  box-sizing: border-box !important;
}
/* ===== end ms-offer-v7 ===== */


/* ===== ms-product-v1: 2-колоночная вёрстка карточки товара-родителя ===== */

.ms-product-page .product__header {
  display: flex !important;
  flex-direction: row !important;
  gap: 30px !important;
  align-items: flex-start !important;
}
.ms-product-page .ms-offer-left-col {
  width: 220px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
.ms-product-page .ms-offer-right-col {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

/* Карточки в left-col */
.ms-product-page .ms-offer-left-col .product__slider,
.ms-product-page .ms-offer-left-col .sign-partner__wrapper,
.ms-product-page .ms-offer-left-col .help {
  background: #fff !important;
  border: 1px solid #e5e9ef !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(15,30,50,0.05) !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Картинка товара */
.ms-product-page .ms-offer-left-col .product__slider {
  padding: 24px 16px !important;
  min-height: 180px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.ms-product-page .ms-offer-left-col .product__slider img {
  max-width: 160px !important;
  max-height: 130px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Sign-partner */
.ms-product-page .ms-offer-left-col .sign-partner {
  padding: 20px 16px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: center !important;
  border-radius: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  display: block !important;
  height: auto !important;
}
.ms-product-page .ms-offer-left-col .sign-partner__title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #002C56 !important;
  text-align: center !important;
  margin: 0 0 16px !important;
  padding: 0 0 16px !important;
  border-bottom: 1px solid #f0f3f7 !important;
  line-height: 1.3 !important;
}
.ms-product-page .ms-offer-left-col .sign-partner__image {
  margin: 0 auto 16px !important;
  padding: 0 !important;
  text-align: center !important;
  display: block !important;
  max-width: 109px !important;
  width: auto !important;
  min-height: 78px !important;
  height: auto !important;
  line-height: 0 !important;
}
.ms-product-page .ms-offer-left-col .sign-partner__image img {
  display: block !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 109px !important;
  height: auto !important;
}
.ms-product-page .ms-offer-left-col .sign-partner__footer {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #8e93a0 !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 16px 0 0 !important;
  border-top: 1px solid #f0f3f7 !important;
}

/* Help */
.ms-product-page .ms-offer-left-col .help {
  padding: 20px 16px !important;
}
.ms-product-page .ms-offer-left-col .help__title {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #002C56 !important;
  margin: 0 0 16px !important;
  padding: 0 0 16px !important;
  border-bottom: 1px solid #f0f3f7 !important;
}

/* Скрываем оригинальный tabs__sidebar (там partner и help уже перенесены) */
.ms-product-page .tabs__sidebar {
  display: none !important;
}

/* product__info — без обёртки */
.ms-product-page .ms-offer-right-col .product__info {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* FIX OVERFLOW: вписываем контент таба в правую колонку 700px */
.ms-product-page .tab-content.tab-content_with-sidebar,
.ms-product-page .tab-content.tab-content_with-sidebar > .tab-content__text,
.ms-product-page .tab-content.tab-content_with-sidebar > div {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.ms-product-page .ms-offer-right-col .tabs__body,
.ms-product-page .ms-offer-right-col .tab-content,
.ms-product-page .ms-offer-right-col .tab-content__text,
.ms-product-page .ms-offer-right-col .offers,
.ms-product-page .ms-offer-right-col .offers__section,
.ms-product-page .ms-offer-right-col #cat_table,
.ms-product-page .ms-offer-right-col .product__detail-property {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}
.ms-product-page .ms-offer-right-col #cat_table {
  overflow-x: auto !important;
}
.ms-product-page .ms-offer-right-col table {
  max-width: 100% !important;
}
.ms-product-page .ms-offer-right-col img {
  max-width: 100% !important;
  height: auto !important;
}

/* Мобильный стек */
@media (max-width: 768px) {
  .ms-product-page .product__header { flex-direction: column !important; }
  .ms-product-page .ms-offer-left-col { width: 100% !important; }
}
/* ===== end ms-product-v1 ===== */


/* ===== ms-mobile-v1: мобильная адаптация страницы товара и оффера ===== */

/* На планшетах (≤960px) контейнер сжимаем */
@media (max-width: 960px) {
  .ms-offer-page .container,
  .ms-product-page .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }
}

/* На мобильных (≤768px) — стекаем колонки и адаптируем шрифты */
@media (max-width: 768px) {
  /* Колонки в столбик */
  .ms-offer-page .product__header,
  .ms-product-page .product__header {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .ms-offer-page .ms-offer-left-col,
  .ms-product-page .ms-offer-left-col,
  .ms-offer-page .ms-offer-right-col,
  .ms-product-page .ms-offer-right-col {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* H1 поменьше */
  .ms-offer-page h1,
  .ms-product-page h1,
  .ms-offer-page .product_name,
  .ms-product-page .product_name {
    font-size: 22px !important;
    line-height: 1.25 !important;
    margin-bottom: 16px !important;
  }
  
  /* Info-row: ключ сверху, значение снизу (а не в строку) */
  .ms-offer-page .product__info-row,
  .ms-product-page .product__info-row {
    flex-direction: column !important;
    gap: 4px !important;
    padding: 10px 0 !important;
  }
  .ms-offer-page .product__info-row strong,
  .ms-product-page .product__info-row strong {
    flex: none !important;
    width: 100% !important;
    font-size: 13px !important;
  }
  
  /* Tabs header — горизонтальный скролл если не помещаются */
  .ms-product-page .tabs__header {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .ms-product-page .tabs__header-item {
    flex-shrink: 0 !important;
    font-size: 13px !important;
    padding: 12px 14px !important;
    white-space: nowrap !important;
  }
  
  /* Таблица сравнения — горизонтальный скролл */
  .ms-product-page #cat_table,
  .ms-offer-page #cat_table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* Cart-блок: цена и кнопка стекаются */
  .ms-offer-page .product__info_buy,
  .ms-offer-page .simple-product-buy-js {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .ms-offer-page .link_offers-buy-full,
  .ms-offer-page .link_buy-js {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Кнопка возврата на оффере */
  .ms-offer-page .ms-back-btn {
    font-size: 14px !important;
    padding: 12px 16px !important;
  }
  
  /* Картинка товара поменьше */
  .ms-offer-page .ms-offer-left-col .product__slider,
  .ms-product-page .ms-offer-left-col .product__slider {
    min-height: 140px !important;
    padding: 16px 12px !important;
  }
  .ms-offer-page .ms-offer-left-col .product__slider img,
  .ms-product-page .ms-offer-left-col .product__slider img {
    max-width: 130px !important;
    max-height: 100px !important;
  }
  
  /* Карточки похожих товаров — по 1 в ряд */
  #cat_lvl1 .cat_lvl1_cont {
    flex-direction: column !important;
    gap: 12px !important;
  }
  #cat_lvl1 .catalog_right_item {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Заголовок "Покупатели также интересуются" */
  .cat_wwd_head {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }
  
  /* Body — отключаем горизонтальный скролл на странице */
  body.ms-offer-page,
  body.ms-product-page {
    overflow-x: hidden !important;
  }
}

/* На совсем маленьких экранах (≤480px) */
@media (max-width: 480px) {
  .ms-offer-page h1,
  .ms-product-page h1,
  .ms-offer-page .product_name,
  .ms-product-page .product_name {
    font-size: 20px !important;
  }
  .ms-product-page .tabs__header-item {
    font-size: 12px !important;
    padding: 10px 12px !important;
  }
  .ms-offer-page .ms-offer-left-col .help__title,
  .ms-product-page .ms-offer-left-col .help__title,
  .ms-offer-page .ms-offer-left-col .sign-partner__title,
  .ms-product-page .ms-offer-left-col .sign-partner__title {
    font-size: 14px !important;
  }
}

/* ms-mobile-v2-fix: нейтрализуем декоративные div'ы 9999px рисующие фон вокруг блока «Покупатели...» */
@media (max-width: 960px) {
  body div[style*="width:9999px"],
  body div[style*="width: 9999px"] {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: auto !important;
    margin-left: calc(50% - 50vw) !important;
  }
}
@media (max-width: 480px) {
  body div[style*="width:9999px"],
  body div[style*="width: 9999px"] {
    width: 100vw !important;
  }
}
/* ===== end ms-mobile-v1 ===== */

/* ms-img-stability-v1: aspect-ratio для img — предотвращает CLS пока JS не проставил width/height */
.ms-offer-page img[width][height],
.ms-product-page img[width][height] {
  height: auto;
}
/* Для img без явных размеров — не допускаем вырождения верстки */
.ms-offer-page img:not([width]):not([height]),
.ms-product-page img:not([width]):not([height]) {
  max-width: 100% !important;
}
/* ===== end ms-img-stability-v1 ===== */

/* ===== ms-font-swap-v1: УДАЛЁН (changelog #1) =====
   Содержал @font-face "FontFaceObserver-Override" с src: local("Arial"),
   который нигде не использовался (в браузере — статус unloaded).
   ================================================================ */

/* ===== ms-font-swap-v2: ЗАКОММЕНТИРОВАН (changelog #4) =====
   FontAwesome и перечисленные семейства на сайте не используются
   (0 FA-элементов на проверенных страницах; семейства — unloaded).
   Хак инертен. Если FontAwesome появится на других шаблонах и нужно
   будет форсировать font-display:swap — раскомментируйте блок ниже
   и предварительно проверьте, что иконки FA не ломаются.

@font-face { font-family: "Open Sans";        font-display: swap; src: local("Open Sans"), local("Arial"); }
@font-face { font-family: "OpenSans";         font-display: swap; src: local("OpenSans"), local("Arial"); }
@font-face { font-family: "OpenSans-Regular"; font-display: swap; src: local("OpenSans-Regular"), local("Arial"); }
@font-face { font-family: "OpenSans-Light";   font-display: swap; src: local("OpenSans-Light"), local("Arial"); }
@font-face { font-family: "OpenSans-Semibold";font-display: swap; src: local("OpenSans-Semibold"), local("Arial"); }
@font-face { font-family: "OpenSans-Bold";    font-display: swap; src: local("OpenSans-Bold"), local("Arial"); }
@font-face { font-family: "FontAwesome";      font-display: swap; src: local("FontAwesome"), local("Arial"); }
@font-face { font-family: "ArialMT";          font-display: swap; src: local("ArialMT"), local("Arial"); }
@font-face { font-family: "HelveticaBold";    font-display: swap; src: local("HelveticaBold"), local("Arial"); }
@font-face { font-family: "HelveticaRegular"; font-display: swap; src: local("HelveticaRegular"), local("Arial"); }
@font-face { font-family: "GothamProBold";    font-display: swap; src: local("GothamProBold"), local("Arial"); }
@font-face { font-family: "Binance";          font-display: swap; src: local("Binance"), local("Arial"); }
   ================================================================ */

/* ===== ms-presentability-v1: блок доверия, buy-box, карточка изображения ===== */
.ms-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.ms-trust__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; line-height: 1.2; border-radius: 7px; padding: 5px 11px; }
.ms-trust__badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.ms-trust__badge_reestr { background: #eaf6ef; color: var(--c-success-dark, #0ea271); }
.ms-trust__badge_reseller { background: var(--c-primary-soft, #f0f7fc); color: var(--c-primary-dark, #1571af); }
.ms-trust__rating { display: inline-flex; align-items: center; gap: 2px; color: #f0a020; font-size: 13px; }
.ms-trust__rating-count { color: var(--c-text-muted, #6b7280); font-size: 12px; margin-left: 5px; }

.ms-buybox { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; border: 1px solid #cfe3f3; background: #f5fafe; border-radius: 12px; padding: 14px 18px; margin: 0 0 22px; }
.ms-buybox__price-label { font-size: 12px; color: var(--c-text-muted, #6b7280); margin-bottom: 2px; }
.ms-buybox__price { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; color: var(--c-text, #0f1f32); }
.ms-buybox__price small { font-size: 13px; font-weight: 500; color: var(--c-text-muted, #6b7280); }
.ms-buybox__note { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--c-success, #10B981); margin-top: 5px; }
.ms-buybox__note svg { width: 12px; height: 12px; }
.ms-buybox .link.link_product-more { margin: 0 !important; flex-shrink: 0; }

.ms-figure-caption { display: block; text-align: center; font-size: 13px; font-weight: 600; color: var(--c-text, #0f1f32); margin-top: 10px; line-height: 1.3; }

@media (max-width: 768px) {
  .ms-buybox { flex-direction: column; align-items: stretch; }
  .ms-buybox .link.link_product-more { width: 100% !important; }
  .ms-buybox__cta { width: 100%; }
}
/* ===== end ms-presentability-v1 ===== */

/* ===== ms-mobile-fixes-v1: варианты лицензий и таблица сравнения под мобайл ===== */
@media (max-width: 768px) {
  /* Варианты лицензий: артикул+название сверху на всю ширину, qty/цена/кнопка — второй строкой */
  .offers ul li { flex-wrap: wrap !important; row-gap: 14px; column-gap: 10px; }
  .offers__description { flex: 1 1 calc(100% - 42px) !important; min-width: 0; }
  .offers__quantity { margin-left: 0 !important; }
  .offers__price { margin-left: auto !important; text-align: right; }

  /* Таблица «Сравнение тарифов»: горизонтальный скролл вместо обрезки */
  .card_disc_tab_dicription_tab {
    width: auto !important;
    max-width: 100% !important;
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .card_disc_tab_dicription_tab > * { min-width: 760px; }
}
/* ===== end ms-mobile-fixes-v1 ===== */
