/* siteGlobalStyles */
/* Закругление всех товарных карточек сайта */
.product-card {
    border-radius: 12px !important;
}

/* В теме Stroyka контур часто формируется псевдоэлементом */
.product-card::before {
    border-radius: 12px !important;
}

/* Дополнительные внешние обёртки карточек */
.products-list__item,
.block-products-carousel__cell,
.block-products__featured-item,
.block-products__list-item,
.block-product-columns__item {
    border-radius: 12px !important;
}

/* Жёлтый контур при наведении */
.product-card:hover::before {
    border-color: #e5c72e !important;
}

/* Телефоны */
@media (max-width: 575.98px) {
    .product-card,
    .product-card::before,
    .products-list__item,
    .block-products-carousel__cell,
    .block-products__featured-item,
    .block-products__list-item,
    .block-product-columns__item {
        border-radius: 10px !important;
    }
}

/* TenShopMessengerChoice */
.ts-messenger-choice {
    margin: 0;
}
.ts-messenger-choice__label {
    margin: 0 0 12px;
    color: #52637a;
    font-size: 14px;
    line-height: 1.4;
}
.ts-messenger-choice__buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
#exit-photo-popup .ts-messenger-choice__buttons > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    margin: 0;
    padding: 12px 14px;
    color: #fff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
}
#exit-photo-popup .ts-messenger-choice__max {
    background: #1268d4;
}
#exit-photo-popup .ts-messenger-choice__max:hover {
    background: #0d55ae;
}
#exit-photo-popup .ts-messenger-choice__whatsapp {
    background: #087c5b;
}
#exit-photo-popup .ts-messenger-choice__whatsapp:hover {
    background: #056147;
}
.ts-messenger-choice__buttons img {
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.ts-messenger-choice__buttons .fa-whatsapp {
    font-size: 24px;
    line-height: 1;
}
.topbar-dropdown__text-icons > a.ts-whatsapp-link {
    flex: 0 0 28px;
    margin-left: 6px;
    margin-right: 2px;
    color: #fff;
    background: #087c5b;
}
.footer-newsletter__social-link--whatsapp > a.ts-whatsapp-link {
    color: #fff;
    background: #087c5b;
}
a.ts-whatsapp-link .fa-whatsapp {
    font-size: 22px;
    line-height: 1;
}
.ts-messenger-choice__buttons > a:focus-visible,
a.ts-whatsapp-link:focus-visible {
    outline: 3px solid #173758;
    outline-offset: 3px;
}
#exit-photo-popup[data-ts-messengers="1"] .exit-photo-popup__window {
    font-family: Roboto, Arial, sans-serif;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
@media (max-width: 575px) {
    .ts-messenger-choice__buttons {
        grid-template-columns: minmax(0, 1fr);
    }
    #exit-photo-popup[data-ts-messengers="1"] .exit-photo-popup__window {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }
}

/* TenShopReadableText */
/* Ten-Shop Readable Text 1.0.0. Подключается только в публичных шаблонах сайта. */
body {
    --ts-read-body: 1.125rem;
    --ts-read-label: 1rem;
    --ts-read-muted: #46586a;
    font-family: "Roboto", Arial, sans-serif;
    font-size: var(--ts-read-body);
    line-height: 1.55;
    color: #24364b;
}
/* Текст страниц, статей, контактов и характеристик. */
.site__body :is(.typography, .post__content, .contact-us__address, .contact-page-modern__info,
    .ts-store-detail, .ts-store-entry, .ts-store-note, .contact-requisite,
    .ts-store-address, .ts-store-phones, .product__description, .product__features,
    .spec, .spec__row, .product__specs-full, .podbor_cta p, .podbor-model-description,
    .home-parts-help-card p, .home-category-card__description,
    .block-features__subtitle, .footer-contacts__text) {
    font-size: var(--ts-read-body) !important;
    line-height: 1.55 !important;
}
.site__body :is(.typography, .post__content) :is(p, li, td, th, dt, dd) {
    font-size: inherit;
    line-height: 1.6;
}
.site__body :is(.spec__name, .ts-store-detail, .ts-store-note,
    .home-category-card__description, .product__description) { color: var(--ts-read-muted); }
.site__body :is(h1, h2, h3, h4) { line-height: 1.25; }
.site__body small { font-size: var(--ts-read-label) !important; line-height: 1.5 !important; }
.site__body :is(.spec__name, .spec__value, .product__specs-title,
    .contact-location__badge, .ten-review-invite__label, .ten-review-invite__note) {
    font-size: var(--ts-read-label) !important;
    line-height: 1.5 !important;
}
.site__body :is(.product__specs-object, .product__specs-object a,
    .home-parts-help-card li, .contact-requisite strong) { font-size: var(--ts-read-body) !important; line-height: 1.5 !important; }
.site__body :is(.product__specs-title a, .product__prices a[href="#found-cheaper"],
    .product__variants .nav-links__item-body) { font-size: var(--ts-read-label) !important; line-height: 1.45 !important; }

/* Ссылки, кнопки и подписи в карточках главной. */
.site__body .home-category-card :is(.home-category-card__types a,
    .home-category-card__categories a, .home-category-card__categories span,
    .home-category-card__button) {
    font-size: var(--ts-read-label) !important;
    line-height: 1.4 !important;
}
.site__body .home-category-card__title { font-size: 1.5rem !important; }
.site__body :is(.category-card__name, .post-card__name) { font-size: 1.25rem !important; line-height: 1.35 !important; }
.site__body :is(.category-card__all a, .home-articles-widget__header a,
    .home-article-slide__date, .post-card__date, .post-card__content) {
    font-size: var(--ts-read-label) !important;
    line-height: 1.45 !important;
}
.site__body :is(.home-product-columns .block-header__title,
    .home-articles-widget__header) { white-space: normal; }
.site__body .home-articles-widget { height: auto !important; min-height: 280px; flex-basis: auto !important; }
@media (min-width: 992px) {
    .site__body .home-articles-column { padding-top: var(--ts-readable-menu-space, 0px); }
}
.site__body .home-articles-widget__header { height: auto; min-height: 48px; flex-wrap: wrap; gap: 8px; }
.site__body .home-articles-widget__header>span { font-size: var(--ts-read-label) !important; }
.site__body .home-article-slide__title {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    font-size: var(--ts-read-body) !important;
    line-height: 1.4 !important;
}

/* Название товара полностью, цены и технические подписи. */
.site__body .product-card .product-card__name {
    font-size: var(--ts-read-body) !important;
    line-height: 1.4 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    overflow-wrap: anywhere;
}
.site__body .product-card .product-card__name a { font-size: inherit !important; line-height: inherit !important; }
.site__body .product-card :is(.product-card__article, .product-card__article span,
    .product-card__article small, .product-card__sku, .product-card__meta,
    .product-card__rating-legend, .product-card__features-list,
    .product-card__availability, .product-card__stock-status,
    .product-card__dopOpisanie, .product-card__old-price,
    .product-card__badge, .podbor-stock) {
    font-size: var(--ts-read-label) !important;
    line-height: 1.4 !important;
}
.site__body .product-card :is(.product-card__article, .product-card__article span,
    .product-card__article small, .product-card__meta, .product-card__rating-legend,
    .product-card__features-list, .product-card__old-price) { color: var(--ts-read-muted) !important; }
.site__body .product-card .product-card__prices { font-size: 1.375rem !important; line-height: 1.35 !important; }
.site__body .product-card__dopOpisanie { display: block; margin-top: 10px; }
.site__body .product-card--layout--horizontal .product-card__info { padding-bottom: 72px; }
.site__body .product-card .product-card__buttons { flex-wrap: wrap; gap: 8px; }
.site__body .product-card .product-card__buttons .btn:not(.btn-svg-icon) { margin: 0; }
.site__body .product.product--layout--standard {
    --ts-product-muted: #46586a;
    --ts-product-green: #196c3b;
}
.site__body .product.product--layout--standard :is(.product__rating-legend,
    .product__meta, .product__meta li, .product__option-label,
    .product__specs-title, .product__specs-object, .product__tags,
    .product__meta-availability, .product__options, .product-modern-benefit__text) {
    font-size: var(--ts-read-label) !important;
    line-height: 1.5 !important;
}
.site__body .product.product--layout--standard .product__description { font-size: var(--ts-read-body) !important; line-height: 1.6 !important; }
.site__body .product.product--layout--standard .product__prices { font-size: 2rem !important; line-height: 1.25 !important; }
.site__body .product.product--layout--standard .product__prices-item { font-size: inherit; }
.site__body .product.product--layout--standard .product__prices-item--old { font-size: var(--ts-read-body) !important; }
.site__body .product.product--layout--standard .product__actions { flex-wrap: wrap; }
.site__body :is(.product-tabs__item, .product__variants a) { font-size: var(--ts-read-label) !important; line-height: 1.4 !important; }
.site__body .podbor_cta { font-size: var(--ts-read-body) !important; line-height: 1.55 !important; }
.site__body .podbor-stock { padding-block: 4px; }

/* Фильтры, сортировка и страницы. Закрытые панели сохраняют свою высоту. */
.site__body :is(.filter__title, .filter-categories__list, .filter-categories-alt__list,
    .filter-list__title, .filter-list__counter, .filter-categories__counter,
    .filter-price__title, .view-options, .view-options__control label,
    .filters-button__title, .breadcrumb, .breadcrumb-item,
    .filter-list__item, .filter-label__name) {
    font-size: var(--ts-read-label) !important;
    line-height: 1.45 !important;
}
.site__body :is(.filter-list__counter, .filter-categories__counter,
    .breadcrumb, .view-options__legend) { color: var(--ts-read-muted); }
.site__body .view-options { flex-wrap: wrap; row-gap: 10px; height: auto; }
.site__body .view-options__control { min-width: 0; flex-wrap: wrap; }
.site__body .page-link { font-size: var(--ts-read-label); height: auto; min-width: 44px; min-height: 44px; line-height: 1.4; }
.site__body .pagination { flex-wrap: wrap; row-gap: 6px; }
.site__body .cart-table__product-name { font-size: var(--ts-read-body); line-height: 1.45; }
.site__body :is(.cart-table__options, .checkout__cart-product-title, .checkout__cart-product-price,
    .checkout__cart-product-count, .checkout__cart-product-total, .checkout__agree) { font-size: var(--ts-read-label); line-height: 1.5; }
.site__body :is(.cart__totals-table, .cart__totals, .checkout__totals-table, .checkout__totals) { font-size: var(--ts-read-body); line-height: 1.5; }
.site :is(.dropcart__product-name, .dropcart__product-price, .suggestions__item-info) { font-size: var(--ts-read-body); line-height: 1.4; }
.site :is(.dropcart__product-options, .dropcart__product-meta, .suggestions__item-meta) { font-size: var(--ts-read-label); line-height: 1.4; }
.suggestions .suggestions__list { font-size: var(--ts-read-label); line-height: 1.45; }
.suggestions .suggestions__item-meta { font-size: var(--ts-read-label); color: var(--ts-read-muted); line-height: 1.4; }
.suggestions .suggestions__item-price { font-size: var(--ts-read-body); line-height: 1.4; }
.dropcart :is(.dropcart__product-options, .dropcart__product-meta) { color: var(--ts-read-muted); }
#quickview-modal .product :is(.product__description, .product__features) { font-size: var(--ts-read-body); line-height: 1.55; }
#quickview-modal .product :is(.product__meta, .product__option-label, .product__rating-legend) { font-size: var(--ts-read-label); line-height: 1.45; }

/* Обычные поля и текстовые кнопки. */
.site :is(.form-control, .form-control-sm, .form-control-lg, .input-number__input),
.ozon-order-form :is(input[type="text"], input[type="tel"], input[type="email"], textarea),
.modal .form-control, .fancybox__content .form-control {
    font-size: var(--ts-read-body) !important;
    line-height: 1.4 !important;
    min-height: 46px;
    height: auto;
}
.site :is(input, textarea)::placeholder, .ozon-order-form input::placeholder { color: #536173; opacity: 1; }
.site :is(label, .form-text, .invalid-feedback, .valid-feedback, .alert),
.ozon-order-form :is(label, .ozon-order-form__consent, .ozon-order-form__error),
.modal :is(label, .form-text, .invalid-feedback), .fancybox__content :is(label, .form-text, .invalid-feedback) { font-size: var(--ts-read-label) !important; line-height: 1.5 !important; }
.site .btn:not(.btn-svg-icon), .modal .btn:not(.btn-svg-icon), .fancybox__content .btn:not(.btn-svg-icon),
.site__body :is(.home-category-card__button, .home-parts-help-card__button,
    .ts-store-button, .ozon-order-form__button, .podbor_cta .btn),
.ozon-order-form__button {
    font-size: var(--ts-read-label) !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 44px;
    white-space: normal;
}
.site .form-control + .select2-container .select2-selection--single { min-height: 46px; height: auto; }
.site .form-control + .select2-container .select2-selection__rendered { font-size: var(--ts-read-body); line-height: 1.4; padding-block: 10px; }
.select2-results__option { font-size: var(--ts-read-label); line-height: 1.4; }

/* Верхняя полоса, меню и поиск. */
.site__header :is(.topbar, .topbar small, .topbar-dropdown__text,
    .topbar-dropdown__btn, .topbar-link, .departments__item-link,
    .departments__button, .menu__item-link, .nav-links__item-body,
    .tsb-trigger, .tsb-trigger>a, .tsb-panel a, .ts-spb-store-header__inner) {
    font-size: var(--ts-read-label) !important;
    line-height: 1.35 !important;
}
.site__header :is(.topbar, .topbar__row, .topbar-dropdown__text) { height: auto; min-height: 36px; }
.site__header .topbar__row { flex-wrap: wrap; row-gap: 5px; padding-block: 4px; }
.site__header .topbar-dropdown__text { flex-wrap: wrap; gap: 4px 10px; }
.site__header .site-header__phone { line-height: 1.3; }
.site :is(.indicator__value, .indicator__value strong) { font-size: var(--ts-read-label); line-height: 1.4; }
.site .indicator__value { width: auto; min-width: 24px; height: auto; min-height: 24px; padding-inline: 3px; }
.site__header .nav-links__item-body { padding-inline: 10px; }
.site__header .departments__item-link { padding-block: 9px; }
.site__header .departments.departments--open.departments--fixed > .departments__body { height: auto !important; max-height: none !important; }
.site__header .departments.departments--open.departments--fixed > .departments__body > .departments__links-wrapper { max-height: none !important; }
.site-header .search__input, .mobile-header .search__input { font-size: var(--ts-read-body) !important; }
.site-header .search__form { min-height: 46px; }
.mobile-links .mobile-links__item-link { font-size: var(--ts-read-label) !important; line-height: 1.4 !important; min-width: 0; overflow-wrap: anywhere; }
.mobile-links--level--0 > .mobile-links__item > .mobile-links__item-title { height: auto; min-height: 48px; }
.mobile-header__phones { font-size: var(--ts-read-label); line-height: 1.4; }

/* Футер и сообщения форм. */
.site__footer :is(.footer-contacts__text, .footer-contacts__contacts,
    .footer-links__list, .footer-newsletter__text, .ts-footer-stores,
    .ts-footer-stores p, .ts-store-entry, .ts-store-note) {
    font-size: var(--ts-read-body) !important;
    line-height: 1.5 !important;
}
.site__footer :is(.site-footer__copyright, .ts-footer-secondary) { font-size: var(--ts-read-label) !important; line-height: 1.5 !important; }
.site__footer .site-footer__bottom { height: auto; min-height: 54px; flex-wrap: wrap; gap: 12px; padding-block: 16px; }
.ozon-delivery-modal :is(p, .ozon-delivery-modal__text) { font-size: var(--ts-read-body) !important; line-height: 1.55 !important; }
.ozon-order-form__consent { align-items: flex-start; }

/* Собственный каталог Ten-Shop. */
.site__body :is(.tsb-product h3, .tsb-lead, .tsb-product-desc) { font-size: var(--ts-read-body) !important; line-height: 1.5 !important; }
.site__body :is(.tsb-product-brand, .tsb-product-article, .tsb-product-link,
    .tsb-sort, .tsb-tabs a, .tsb-chips a, .tsb-filter-group label, .tsb-stock) { font-size: var(--ts-read-label) !important; line-height: 1.45 !important; }
.site__body .tsb-product-price { font-size: 1.375rem !important; line-height: 1.35; }
.site__body .tsb-product-desc { display: block; overflow: visible; -webkit-line-clamp: unset; max-height: none; }

/* Радиаторный подбор: собственные мелкие подписи. */
.tr-picker { --tr-muted: #46586a; font-size: var(--ts-read-body) !important; line-height: 1.55 !important; }
.tr-picker :is(.tr-eyebrow, .tr-progress__text strong, .tr-progress__text small,
    .tr-progress__number, .tr-stage__top, .tr-stage .tr-muted, .tr-choice small, .tr-help p,
    .tr-help__links a, .tr-text-button, .tr-product__kind, .tr-article,
    .tr-specs, .tr-stock, .tr-detail, .tr-button, .tr-result-note,
    .tr-chips button, .tr-unclassified, .tr-results__heading .tr-muted,
    .tr-result-help) { font-size: var(--ts-read-label) !important; line-height: 1.45 !important; }
.tr-picker .tr-product h3 { font-size: var(--ts-read-body) !important; line-height: 1.4 !important; }
.tr-picker .tr-product__actions, .tr-picker .tr-stage__bottom { flex-wrap: wrap; }
.tr-picker .tr-progress button { align-items: flex-start; }
.tr-picker .tr-product__kind { letter-spacing: normal; text-transform: none; }
.tr-picker .tr-stock--yes, .site__body .podbor-stock--available { color: #196c3b !important; }
.tr-picker .tr-stock--order { color: #735300; }
.tr-picker .tr-stock--no { color: #a12a2a; }

/* Видимый фокус помогает при навигации с клавиатуры. */
.site :is(a, button, input, select, textarea):focus-visible,
.mobilemenu :is(a, button):focus-visible,
.tr-picker :is(a, button):focus-visible {
    outline: 3px solid #245b8f;
    outline-offset: 3px;
}
@media (max-width: 1199.98px) and (min-width: 992px) {
    .site__header .nav-links__item-body { padding-inline: 6px; }
}
@media (max-width: 767.98px) {
    .site__body .home-category-card__title { font-size: 1.5rem !important; }
    .tr-picker .tr-product { display: flex; flex-direction: column; }
    .tr-picker .tr-product__image { height: 190px; padding: 14px; }
    .tr-picker .tr-product__body { padding: 12px 18px 18px; }
    .tr-picker .tr-options--power { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tr-picker .tr-help__links { grid-template-columns: 1fr; }
    .tr-picker .tr-results__heading { flex-wrap: wrap; }
    .tr-picker .tr-results__heading>button { max-width: none; text-align: left; }
    .site__body .product.product--layout--standard .product__name { font-size: 1.75rem; }
}
@media (max-width: 575.98px) {
    .site__body .product-card--layout--horizontal .product-card__image { width: 90px; flex-shrink: 0; }
    [dir="ltr"] .site__body .product-card--layout--horizontal .product-card__actions { left: 90px; }
    .site__body .product-card--layout--horizontal .product-card__info { padding-right: 12px; }
    .site__body .view-options__control { width: 100%; }
    .tr-picker .tr-specs>div { flex-wrap: wrap; gap: 3px 12px; }
    .tr-picker .tr-specs dd { max-width: 100%; }
    .tr-picker .tr-options:not(.tr-options--power) { grid-template-columns: 1fr; }
    .tr-picker .tr-choice--kind { min-height: 0; padding: 18px 20px 34px; }
}
