/*
Theme Name: Astra Child
Template: astra
Version: 1.0

Назначение:
Стили кастомной карточки товара WooCommerce (B2B-каталог датчиков).
Сделано без JS-эффектов и без тяжелых визуальных элементов — приоритет скорость.
*/

/* =========================
   Карточка товара: верх
   ========================= */

/* Подзаголовок под названием товара: "Бренд · Артикул" */
.sensors-subtitle{
  margin: .4rem 0 1rem;
  opacity: .85;
  font-size: .95rem;
}

/* Блок "Ключевые характеристики" */
.sensors-key-specs{
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
}

.sensors-key-specs__title{
  font-weight: 600;
  margin-bottom: 8px;
}

.sensors-key-specs ul{
  margin: 0;
  padding-left: 18px;
}

/* Ссылка "Смотреть все характеристики" */
.sensors-key-specs__more{
  margin-top: 6px;
  font-size: 14px;
}

.sensors-key-specs__more a{
  text-decoration: none;
  color: #666;
}

.sensors-key-specs__more a:hover{
  text-decoration: underline;
  color: #333;
}

/* =========================
   Документация
   ========================= */

/* Ссылки на документы (даташит/сертификат/декларация) */
.sensors-docs ul li a{
  text-decoration: none;
}

.sensors-docs ul li a::before{
  content: "PDF";
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 6px;
  margin-right: 10px;
  border: 1px solid currentColor;
  border-radius: 6px;
  opacity: .85;
  transform: translateY(-1px);
}

/* =========================
   Хлебные крошки и устранение дублей
   ========================= */

/* Breadcrumbs: базовый вид на карточке товара */
.single-product .woocommerce-breadcrumb{
  margin: 0 0 12px;
  opacity: .8;
  font-size: 14px;
}

.single-product .woocommerce-breadcrumb a{
  text-decoration: none;
}

/* =========================
   Cart buttons: qty + add-to-cart + consult
   ========================= */

.single-product form.cart{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Элементы ряда */
.single-product form.cart .quantity,
.single-product form.cart button.single_add_to_cart_button,
.single-product form.cart .st-consult-cta{
  flex: 0 0 auto;
}

/* ЖЁСТКОЕ выравнивание высоты (пиксель-в-пиксель) */
.single-product form.cart button.single_add_to_cart_button,
.single-product form.cart .st-consult-cta{
  height: 44px;                 /* ключ: одинаковая высота */
  padding: 0 1.6em;             /* одинаковая ширина “по ощущениям” */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;               /* чтобы текст не раздувал высоту */
  box-sizing: border-box;
  border-radius: 6px;           /* если у Astra другой — скажи, подгоню */
  white-space: nowrap;
}

/* Педантика: одинаковая геометрия бордера */
.single-product form.cart button.single_add_to_cart_button{
  border: 1px solid transparent !important;
}

.single-product form.cart .st-consult-cta{
  background: transparent;
  border: 1px solid rgba(0,0,0,.25) !important;
  color: inherit;
}

.single-product form.cart .st-consult-cta:hover{
  border-color: rgba(0,0,0,.45) !important;
}

/* === Убираем кнопку обновить корзину === */
.woocommerce-cart button[name="update_cart"]{
  display:none !important;
}

/* === Quantity spinner: не прячем стрелки вверх/вниз
   на карточке товара и на cart === */
.single-product form.cart input.qty[type="number"],
.woocommerce-cart input.qty[type="number"]{
  appearance: auto;
  -moz-appearance: auto;
  -webkit-appearance: auto;
}

/* Chrome / Safari / Edge: вернуть спиннеры */
.single-product form.cart input.qty[type="number"]::-webkit-outer-spin-button,
.single-product form.cart input.qty[type="number"]::-webkit-inner-spin-button,
.woocommerce-cart input.qty[type="number"]::-webkit-outer-spin-button,
.woocommerce-cart input.qty[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: inner-spin-button;
  opacity: 1;
  height: auto;
}

/* Компенсация исчезающего скроллбара после очистки корзины, чтобы страница не "прыгала" */
html {
  scrollbar-gutter: stable;
}

/* =========================================
   CHECKOUT — новый чистый вариант
   Каркас: form-checkout.php
   Блок заказа: review-order.php
   ========================================= */

/* -----------------------------------------
   Базовые сбросы
   ----------------------------------------- */
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .st-orderbox-title{
  display: none !important;
}

.woocommerce-checkout #order_review::before{
  content: none !important;
  display: none !important;
}

.woocommerce-checkout .st-checkout-form,
.woocommerce-checkout .st-checkout,
.woocommerce-checkout .st-checkout__main,
.woocommerce-checkout .st-checkout__aside,
.woocommerce-checkout .st-checkout__panel,
.woocommerce-checkout .st-checkout-orderbox{
  box-sizing: border-box;
}

.woocommerce-checkout .st-checkout-orderbox,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-checkout-review-order-table,
.woocommerce-checkout #payment{
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* -----------------------------------------
   Общий каркас страницы
   ----------------------------------------- */
.woocommerce-checkout .st-checkout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 40px;
  align-items: start;
}

.woocommerce-checkout .st-checkout__main,
.woocommerce-checkout .st-checkout__aside{
  min-width: 0;
}

.woocommerce-checkout .st-checkout__aside{
  padding-left: 42px !important;
  border-left: 1px solid #d7dde5;
}

/* -----------------------------------------
   Заголовки секций
   ----------------------------------------- */
.woocommerce-checkout .st-section-title,
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-additional-fields > h3,
.woocommerce-checkout .woocommerce-shipping-fields > h3{
  margin: 0 0 18px !important;
  padding: 0 0 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #d7dde5 !important;
  background: transparent !important;
  box-shadow: none !important;

  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  color: var(--ast-global-color-2);
}

.woocommerce-checkout .st-section-title{
  display: block;
}

/* -----------------------------------------
   Левая колонка: Woo-поля
   ----------------------------------------- */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2{
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  max-width: none !important;
}

.woocommerce-checkout #customer_details .col-2{
  margin-top: 22px !important;
}

.woocommerce-checkout #customer_details input[type="text"],
.woocommerce-checkout #customer_details input[type="email"],
.woocommerce-checkout #customer_details input[type="tel"],
.woocommerce-checkout #customer_details input[type="number"],
.woocommerce-checkout #customer_details textarea{
  width: 100%;
  box-sizing: border-box;
}

/* -----------------------------------------
   Блок "Ваш заказ"
   ----------------------------------------- */
.woocommerce-checkout .st-order-table{
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.woocommerce-checkout .st-order-table thead th,
.woocommerce-checkout .st-order-table tfoot th,
.woocommerce-checkout .st-order-table tfoot td{
  font-size: 15px;
  line-height: 1.45;
}

.woocommerce-checkout .st-order-table thead th{
  font-weight: 600;
  color: var(--ast-global-color-2);
}

.woocommerce-checkout .st-order-table th,
.woocommerce-checkout .st-order-table td{
  padding: 14px 0;
  vertical-align: top;
  border-top: 1px solid #d7dde5;
}

.woocommerce-checkout .st-order-table thead tr:first-child th{
  border-top: 0;
}

.woocommerce-checkout .st-order-table th.product-name,
.woocommerce-checkout .st-order-table td.product-name{
  width: auto;
  padding-right: 12px;
  overflow: hidden;
}

.woocommerce-checkout .st-order-table th.product-total,
.woocommerce-checkout .st-order-table td.product-total{
  width: 120px;
  text-align: right;
  white-space: nowrap;
  padding-left: 0;
}

.woocommerce-checkout .st-order-table .product-total,
.woocommerce-checkout .st-order-table .product-total *,
.woocommerce-checkout .st-order-table tfoot td,
.woocommerce-checkout .st-order-table tfoot td *,
.woocommerce-checkout .woocommerce-Price-amount,
.woocommerce-checkout .woocommerce-Price-currencySymbol{
  white-space: nowrap !important;
}

/* -----------------------------------------
   Строка товара
   ----------------------------------------- */
.woocommerce-checkout .b2b-review-item{
  vertical-align: top;
}

.woocommerce-checkout .st-order-item__top{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  column-gap: 12px;
  align-items: start;
  min-width: 0;
}

.woocommerce-checkout .st-order-item__name{
  display: block;
  min-width: 0;
  flex: 1 1 auto;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ast-global-color-1);
  text-decoration: none;
}

.woocommerce-checkout .st-order-item__name:hover{
  text-decoration: underline;
}

.woocommerce-checkout .st-order-item__meta{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  column-gap: 14px;
  align-items: center;
  min-width: 0;
  margin-top: 8px;
}

.woocommerce-checkout .st-order-item__sku{
  min-width: 0;
  flex: 1 1 auto;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 14px;
  line-height: 1.4;
  color: inherit;
}

.woocommerce-checkout .st-order-item__qty-wrap{
  width: 58px;
  margin-left: 0;
  justify-self: end;
  display: flex;
  justify-content: flex-end;
}

.woocommerce-checkout .st-order-item__remove{
  justify-self: end;
}

/* -----------------------------------------
   Поле количества
   ----------------------------------------- */
.woocommerce-checkout .b2b-review-qty{
  display: block;
}

.woocommerce-checkout form #order_review td.product-name{
  display: table-cell !important;
  vertical-align: top !important;
}

.woocommerce-checkout .b2b-review-qty .b2b-qty-btn{
  display: none !important;
}

.woocommerce-checkout .b2b-review-qty .b2b-qty-input{
  width: 58px;
  min-width: 58px;
  height: 40px;
  text-align: center;
  font-size: 15px;
  line-height: 1;
  box-sizing: border-box;
  padding: .3em !important;

  appearance: auto !important;
  -webkit-appearance: auto !important;
  -moz-appearance: auto !important;
}

.woocommerce-checkout .b2b-review-qty .b2b-qty-input::-webkit-outer-spin-button,
.woocommerce-checkout .b2b-review-qty .b2b-qty-input::-webkit-inner-spin-button{
  -webkit-appearance: inner-spin-button !important;
  opacity: 1 !important;
  margin: 0;
}

/* -----------------------------------------
   Кнопка удаления
   ----------------------------------------- */
.woocommerce-checkout .b2b-review-remove{
  margin: 0 !important;
  text-decoration: none !important;
}

/* -----------------------------------------
   Итоги
   ----------------------------------------- */
.woocommerce-checkout .st-order-table tfoot th{
  font-weight: 600;
  color: var(--ast-global-color-2);
}

.woocommerce-checkout .st-order-table tfoot td{
  text-align: right;
}

.woocommerce-checkout .st-order-table .order-total th,
.woocommerce-checkout .st-order-table .order-total td{
  font-size: 16px;
  font-weight: 600;
}

/* -----------------------------------------
   Платёжный блок
   ----------------------------------------- */
.woocommerce-checkout #payment{
  margin-top: 24px;
}

.woocommerce-checkout #payment ul.payment_methods{
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  list-style: none;
}

.woocommerce-checkout #payment .payment_box{
  margin-top: 12px;
  border: 0;
  box-shadow: none;
}

.woocommerce-checkout #payment .place-order{
  margin-top: 18px;
}

/* -----------------------------------------
   Mobile / tablet
   Сначала заказ, потом форма
   ----------------------------------------- */
@media (max-width: 921px){

  .woocommerce-checkout .st-checkout{
    display: flex;
    flex-direction: column;
  }

  .woocommerce-checkout .st-checkout__aside{
    order: 1;
    margin-bottom: 26px;
    padding-left: 0;
    border-left: 0;
  }

  .woocommerce-checkout .st-checkout__main{
    order: 2;
  }

  .woocommerce-checkout .st-section-title,
  .woocommerce-checkout .woocommerce-billing-fields > h3,
  .woocommerce-checkout .woocommerce-additional-fields > h3,
  .woocommerce-checkout .woocommerce-shipping-fields > h3{
    margin-bottom: 16px !important;
    padding-bottom: 10px !important;
    font-size: 20px !important;
  }

  .woocommerce-checkout .st-order-table th,
  .woocommerce-checkout .st-order-table td{
    padding: 12px 0;
  }

  .woocommerce-checkout .st-order-table thead th,
  .woocommerce-checkout .st-order-table tfoot th,
  .woocommerce-checkout .st-order-table tfoot td,
  .woocommerce-checkout .st-order-item__name{
    font-size: 14px;
  }

  .woocommerce-checkout .st-order-item__sku{
    font-size: 13px;
  }

  .woocommerce-checkout .b2b-review-qty .b2b-qty-input{
    width: 84px;
    min-width: 84px;
    height: 18px;
    font-size: 14px;
  }

  .woocommerce-checkout #payment{
    margin-top: 20px;
  }
}

/* =========================================
   FIX: checkout order review не должен жить по старым Woo-правилам
   ========================================= */

.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout .st-checkout__aside #payment {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: none !important;
  border: 0 !important;
  padding: 0 0 0 0 !important;
}

.woocommerce-checkout .st-checkout__aside .st-checkout-orderbox,
.woocommerce-checkout .st-checkout__aside .shop_table,
.woocommerce-checkout .st-checkout__aside ul.payment_methods,
.woocommerce-checkout .st-checkout__aside .payment_box,
.woocommerce-checkout .st-checkout__aside .place-order {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.woocommerce-checkout .st-checkout__aside .wc_payment_method > label {
  display: block;
  width: 100%;
}

.woocommerce-checkout .st-checkout__aside #payment .payment_box::before {
  left: 24px;
}

/* Применение + FAQ по категориям товара (шаблонно, без ручного заполнения) */
.sensors-faq{
  max-width: none;
  margin: 24px 0;
}

.sensors-faq__item{
  margin-top: 12px;
}
.sensors-faq__item h3{
  margin: 0 0 6px;
  font-size: 1.05em;
}
.sensors-faq__item p{
  margin: 0;
  opacity: .95;
}

.sensors-faq details[open] > p{
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 10px;
}

/* =========================================================
   THANK YOU PAGE — B2B cleanup
   ========================================================= */

body.woocommerce-order-received .woocommerce-order .woocommerce-bacs-bank-details,
body.woocommerce-order-received .woocommerce-order .woocommerce-customer-details{
  display: none !important;
}

/* =========================================================
   Доставка / Оплата — единая сетка карточек
   ========================================================= */

/* Отступы между смысловыми секциями карточки товара */
.st-product-block{
  margin-top: 2rem;
}

/* Общая сетка: 4 колонки на десктопе */
.st-tiles{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 1rem;
}

/* Карточка */
.st-tile{
  height: 100%;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.st-tile:hover{
  border-color: rgba(0,0,0,.20);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

/* Логотип: бейдж */
.st-tile__logo{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.st-tile__logo img{
  width: 22px;
  height: 22px;
  display: block;
  opacity: .9;
}

/* Текст */
.st-tile__title{
  font-weight: 700;
  margin-bottom: 6px;
}

.st-tile__text{
  line-height: 1.35;
  opacity: .9;
  font-size: 14px;
}

/* Оплата: 3 карточки → последняя занимает 2 колонки (на десктопе) */
.st-payment .st-pay .st-tile:last-child{
  grid-column: span 2;
}

/* Планшет: 2 в ряд */
@media (max-width: 1024px){
  .st-tiles{
    grid-template-columns: repeat(2, 1fr);
  }
  .st-payment .st-pay .st-tile:last-child{
    grid-column: auto;

  }
}

/* Отступ после блока "Оплата" */
.st-payment{
  margin-bottom: 32px;
}

/* Мобила: 1 в ряд */
@media (max-width: 560px){
  .st-tiles{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Универсальная форма консультации — единый вид как на /kontakty/
   Используется: товар, категория, бренд, контакты, главная
   ========================================================= */

.st-consult{
  --st-consult-accent: #2f6da5;
  --st-consult-accent-hover: #255b8b;
  --st-consult-accent-soft: rgba(47,109,165,.08);
  --st-consult-text: #111;
  --st-consult-muted: #555;
  --st-consult-border: #eee;
  --st-consult-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* FAQ: заголовок вопроса */
.sensors-faq__item h3{
  margin: 0 0 6px;
  font-size: 1.05em;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: normal;
}

/* Общая карточка формы — как карточки на странице Контакты */
.st-consult__wrap{
  margin: 34px 0;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--st-consult-border);
  border-radius: 12px;
  box-shadow: var(--st-consult-shadow);
  box-sizing: border-box;
}

/* Если форма уже стоит внутри карточки контактов — не делаем двойную рамку */
.st-contacts__card .st-consult__wrap{
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Заголовок формы */
.st-consult__title{
  margin: 0 0 10px;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.2;
  font-weight: 600;
  color: var(--st-consult-text);
}

/* Подзаголовок */
.st-consult__subtitle{
  max-width: 820px;
  margin: 0 0 16px;
  color: var(--st-consult-muted);
  line-height: 1.6;
}

/* Сетка формы и правого блока */
.st-consult__grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 12px;
}

.st-consult__col{
  min-width: 0;
  height: 100%;
}

/* Сама форма */
.st-consult__form{
  display: grid;
  gap: 10px;
}

.st-consult__row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Поля */
.st-consult .st-input{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--st-consult-text);
  font-size: 15px;
  line-height: 1.35;
  box-shadow: none;
}

.st-consult .st-input:focus{
  outline: none;
  border-color: rgba(47,109,165,.45);
  box-shadow: 0 0 0 3px rgba(47,109,165,.08);
}

.st-consult textarea.st-input{
  min-height: 108px;
  resize: vertical;
}

/* Файл */
.st-consult__filebox{
  display: grid;
  gap: 6px;
}

.st-consult__file{
  padding: 10px 14px !important;
}

.st-consult__filehint{
  font-size: 13px;
  line-height: 1.35;
  color: #66758b;
}

/* Согласие */
.st-check{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--st-consult-text);
}

.st-check input{
  flex: 0 0 auto;
  margin: 3px 0 0;
}

.st-check a{
  color: var(--st-consult-accent);
  text-decoration: none;
}

.st-check a:hover{
  color: var(--st-consult-accent-hover);
  text-decoration: underline;
}

/* Кнопка */
.st-consult .st-consult__btn,
.st-consult button.st-consult__btn,
.st-consult .button.st-consult__btn{
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 16px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: var(--st-consult-accent) !important;
  color: #fff !important;

  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
  text-shadow: none !important;

  transition: background .15s ease, transform .15s ease;
}

.st-consult .st-consult__btn:hover,
.st-consult button.st-consult__btn:hover,
.st-consult .button.st-consult__btn:hover{
  background: var(--st-consult-accent-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Правая колонка — спокойная карточка без прыжка */
.st-consult__stepsbox{
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 20px 18px;
  background: linear-gradient(180deg, #fcfdff 0%, #f7f9fb 100%);
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: none;

  transition: border-color .15s ease, box-shadow .15s ease;
}

.st-consult__stepsbox:hover{
  border-color: #e1e6ee;
  box-shadow: none;
  transform: none;
}

.st-consult__steps-title{
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--st-consult-text);
  letter-spacing: normal;
}

/* Список шагов */
.st-consult-steps{
  list-style: none;
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.st-consult-steps li{
  position: relative;
  margin: 0;
  color: var(--st-consult-muted);
  font-size: 15px;
  line-height: 1.5;
  opacity: 1;
}

.st-consult-steps li::before{
  content: "";
  position: absolute;
  left: -18px;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
}

/* Уведомления */
.st-consult__notice{
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
  font-weight: 600;
  line-height: 1.4;
}

.st-consult__notice--ok{
  border: 1px solid rgba(16,185,129,.35);
  background: rgba(16,185,129,.08);
}

.st-consult__notice--fail{
  border: 1px solid rgba(239,68,68,.28);
  background: rgba(239,68,68,.08);
}

.st-consult__notice--warn{
  border: 1px solid rgba(245,158,11,.35);
  background: rgba(245,158,11,.10);
}

/* Honeypot */
.st-hp{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Адаптив */
@media (max-width: 900px){
  .st-consult__grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 768px){
  .st-consult__wrap{
    padding: 20px 16px;
  }

  .st-contacts__card .st-consult__wrap{
    padding: 0;
  }

  .st-consult__row{
    grid-template-columns: 1fr;
  }

  .st-consult__stepsbox{
    padding: 18px 16px;
  }
}


/* Категория: SEO-текст снизу */
.sensors-cat-seo{
  margin: 28px 0;
}
.sensors-cat-seo h2{
  margin: 0 0 10px;
}
.sensors-cat-seo p{
  margin: 0 0 10px;
  opacity: .95;
}

/* =========================
   ПАСПОРТ ХАРАКТЕРИСТИК (#all-specs)
   Визуально как единая таблица с ровной сеткой
   ========================= */

.sensors-specs{
  margin: 24px 0;
}

.sensors-specs > h2{
  margin: 0 0 12px;
}

/* Раскладка групп: 2 колонки без “пустот” (как у тебя) */
@media (min-width: 992px){
  .sensors-specs__grid{
    column-count: 2;
    column-gap: 24px;
  }
  .sensors-specs__group{
    break-inside: avoid;
  }
}

/* Секция-группа: никаких внешних отступов, чтобы сетка выглядела цельной */
.sensors-specs__group{
  margin: 0;
}

/* Заголовок группы = “строка таблицы” (ровно по высоте строки) */
.sensors-specs__group-title{
  margin: 0;
  padding: 8px 10px;            /* = как у ячеек ниже */
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  background: #fafafa;

  border: 1px solid rgba(0,0,0,.10);
  border-bottom: 0;             /* стыкуем с таблицей */
  border-radius: 10px 10px 0 0; /* верх скруглён */
}

/* Таблица группы */
.sensors-specs__table{
  width: 100%;
  border-collapse: collapse;
  margin: 0;                    /* убираем отступ после таблицы */
  border: 1px solid rgba(0,0,0,.10);
  border-top: 0;                /* стык с заголовком */
  border-radius: 0 0 10px 10px; /* низ скруглён */
  overflow: hidden;             /* чтобы скругления работали */
}

/* Ячейки: компактно и одинаковая “высота строки” */
.sensors-specs__table th,
.sensors-specs__table td{
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.25;
  vertical-align: top;
}

/* Сетка строк */
.sensors-specs__table tr + tr th,
.sensors-specs__table tr + tr td{
  border-top: 1px solid rgba(0,0,0,.08);
}

/* Разделение колонок */
.sensors-specs__table th{
  width: 44%;
  font-weight: 600;
  opacity: .9;
  border-right: 1px solid rgba(0,0,0,.08);
}

.sensors-specs__table td{
  width: 56%;
}

/* На мобиле чуть плотнее, чтобы влезало */
@media (max-width: 480px){
  .sensors-specs__group-title,
  .sensors-specs__table th,
  .sensors-specs__table td{
    padding: 7px 9px;
    font-size: 13px;
  }
}

/* =========================================
   Короткое примечание после характеристик
   ========================================= */

.sensors-specs-note{
  margin: 14px 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  background: #fafbfd;
  max-width: 100%;
}

.sensors-specs-note__text{
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #66758b;
}

.sensors-specs-note__actions{
  flex: 0 0 auto;
}

.sensors-specs-note__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d5dfec;
  border-radius: 8px;
  background: #fff;
  color: #1e73d8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: .2s ease;
}

@media (max-width: 767px){
  .sensors-specs-note{
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .sensors-specs-note__btn{
    width: auto;
  }
}

/* =========================
   Каталог: сетка категорий
   ========================= */

.sensors-catgrid{
  display: grid;
  gap: 14px;
  margin: 18px 0 28px;
  align-items: stretch;
}

.sensors-catgrid--cols-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sensors-catgrid--cols-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sensors-catgrid--cols-4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px){
  .sensors-catgrid--cols-3,
  .sensors-catgrid--cols-4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px){
  .sensors-catgrid{ grid-template-columns: 1fr !important; }
}

.sensors-catcard{
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  height: 100%;
}

.sensors-catcard:hover{
  border-color: rgba(0,0,0,.20);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.sensors-catcard__thumb img{
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  opacity: .95;
}

.sensors-catcard__title{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.sensors-catcard__count{
  font-size: 12px;
  font-weight: 700;
  opacity: .75;
  white-space: nowrap;
  flex: 0 0 auto;
}

.sensors-catcard__desc{
  font-size: 14px;
  line-height: 1.35;
  opacity: .9;

  /* 3 строки + троеточие */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;

  /* на случай длинных слов */
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sensors-catcard:hover .sensors-catcard__title{
  color:#000;
}

/* Title: clamp to 2 lines, keep count on the right */
.sensors-catcard__title{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 10px;
}

/* Оборачиваем текст названия в clamp (нужно чуть правки HTML — см. ниже) */
.sensors-catcard__title-text{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* <= 2 строки */
  overflow: hidden;
  line-height: 1.2;
  min-height: calc(1.2em * 2); /* фиксируем высоту в 2 строки */
}

/* Счётчик */
.sensors-catcard__count{
  align-self: start;
  white-space: nowrap;
}

/* =========================
   Кнопка "Сбросить фильтры" — на всю ширину сайдбара
   ========================= */

.st-sidebar-filter-actions{
  min-height: 44px;
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  box-sizing: border-box;
}

/* сама кнопка */
.st-sidebar-filter-actions .st-filter-reset{
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;          /* ← ВАЖНО: на всю ширину */
  height: 44px;

  padding: 0 12px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  background: #fff;

  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

/* hover — аккуратно */
.st-sidebar-filter-actions .st-filter-reset:hover{
  border-color: rgba(0,0,0,.35);
  background: #fafafa;
}

/* =========================
   Legacy WooCommerce filters (Layered Nav) — final pack
   ========================= */

/* Длинные списки фильтров: ограничить высоту + скролл */
.woocommerce-widget-layered-nav ul,
.widget_layered_nav ul,
.widget_product_categories ul{
  max-height: 260px;
  overflow: auto;
  padding-right: 8px; /* чтобы скролл не налезал на текст */
}

/* Типографика фильтров */
.woocommerce .sidebar-main .woocommerce-widget-layered-nav,
.woocommerce .sidebar-main .widget_layered_nav,
.woocommerce .sidebar-main .widget_price_filter,
.woocommerce .sidebar-main .widget_product_categories{
  font-size: 13px;
  line-height: 1.35;
}

/* Выбранные фильтры */
.woocommerce .widget_layered_nav .chosen,
.woocommerce .woocommerce-widget-layered-nav .chosen{
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
}

/* Ссылка выбранного значения: flex, чтобы кнопка не наезжала */
.woocommerce .widget_layered_nav .chosen a,
.woocommerce .woocommerce-widget-layered-nav .chosen a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-bottom: 0;
  text-decoration: none;
  font-weight: 600;
}

/* Убираем стандартный крестик Woo */
.woocommerce .widget_layered_nav .chosen a::before,
.woocommerce .woocommerce-widget-layered-nav .chosen a::before{
  content: none !important;
  background: none !important;
}

/* Наша кнопка “снять” — квадрат с ✕, по центру */
.woocommerce .widget_layered_nav .chosen a::after,
.woocommerce .woocommerce-widget-layered-nav .chosen a::after{
  content: "✕";
  order: -1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 22px;

  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.22);
  background: #fff;

  font-size: 12px;
  font-weight: 800;
  line-height: 1; /* фикс вертикали */

  flex: 0 0 auto;
}

.woocommerce .widget_layered_nav .chosen a:hover::after,
.woocommerce .woocommerce-widget-layered-nav .chosen a:hover::after{
  border-color: rgba(0,0,0,.45);
}


/* =========================
   Фильтры (Astra) — заголовки групп
   ========================= */
.ast-filter-wrap .widget.woocommerce .widget-title,
.ast-filter-wrap .widget .widget-title{
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  margin: 0 0 10px !important;
  letter-spacing: .2px !important;

  /* чтобы "Производитель" не ломался на "Производител\nь" */
  word-break: normal !important;
  overflow-wrap: anywhere !important; /* если реально узко — аккуратно переносим */
}

/* Чуть компактнее расстояние между блоками фильтров */
.ast-filter-wrap .widget{
  margin-bottom: 20px !important;
}

/* =========================================================
   Manufacturer index (/manufacturer/)
   ========================================================= */

.st-brand-search{
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 10px 12px !important;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  background: #fff;
  font-size: 15px !important;
  line-height: 1.2;
}
.st-brand-search:focus{
  outline: none;
  border-color: rgba(0,0,0,.35);
}

/* Адаптивная сетка без “магических” media */
.sensors-brands__list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

/* Карточка бренда */
.sensors-brands__item{
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.sensors-brands__item:hover{
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

/* Лого слева */
.sensors-brands__logo{
  width: 48px;
  height: 48px;
  flex: 0 0 48px;

  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sensors-brands__logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Текстовый блок */
.sensors-brands__text{
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sensors-brands__name{
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sensors-brands__item .count{
  opacity: .65;
  font-size: 12px;
  white-space: nowrap;
}

/* =========================================================
 * BRANDS: Popular categories block on /brand/{slug}/
 * ========================================================= */
 
.brand-topcats{margin:14px 0 18px}
.brand-topcats__list{display:flex;flex-wrap:wrap;gap:8px}
.brand-topcats__item{
  padding:6px 10px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  text-decoration:none;
  line-height:1.2;
}
.brand-topcats__item:hover{border-color:rgba(0,0,0,.22)}

/* Более спокойный заголовок блока производителей в категории */
.brand-topcats__title{
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
}

/* Более спокойный счётчик в категории */
.brand-topcats__count{
  margin-left: 6px;
  font-size: 12px;
  opacity: .6;
}


/* =========================================================
 * BRANDS: SEO bottom block on /brand/{slug}/ (no FAQ yet)
 * ========================================================= */
 .sensors-brand-seo-bottom{
  margin: 22px 0 10px;
  padding: 16px 18px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
}
.sensors-brand-seo-bottom h2{margin:0 0 10px}
.sensors-brand-seo-bottom p{margin:0 0 10px}
.sensors-brand-seo-bottom__bullets{
  margin: 0;
  padding-left: 18px;
}
.sensors-brand-seo-bottom__bullets li{margin:6px 0}

/* =========================================================
   FAQ на странице производителя
   ========================================================= */
/*
.sensors-manufacturer-faq{
  margin: 18px 0 10px;
  padding: 16px 18px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
}
*/
.sensors-manufacturer-faq h2{
  margin: 0 0 14px;
}

/* Карточка вопроса */
.sensors-faq details{
  border: 0px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0;
  transition: background .2s ease, border-color .2s ease;
}

/* Hover */
.sensors-faq details:hover{
  background: rgba(0,0,0,.02);
  border-color: rgba(0,0,0,.15);
}

/* Заголовок */
.sensors-faq summary{
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 22px;
}

.sensors-faq summary::-webkit-details-marker{
  display:none;
}

/* Стрелка */
.sensors-faq summary::after{
  content: "▸";
  position: absolute;
  right: 0;
  top: 0;
  transition: transform .2s ease;
  font-size: 14px;
  opacity: .7;
}

.sensors-faq details[open] summary::after{
  transform: rotate(90deg);
}

/* ===== Плавная анимация ===== */

/* Оборачиваем ответ в анимируемый контейнер */
.sensors-faq details > p{
  overflow: hidden;
  margin: 0;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease, opacity .2s ease;
  opacity: 0;
}

/* Когда открыто */
.sensors-faq details[open] > p{
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 10px;
}

/* Внутренний текст */
.sensors-faq details > p > *{
  overflow: hidden;
}

/* Если у тебя просто <p> без вложенности — добавим безопасный fallback */
.sensors-faq details[open] > p{
  line-height: 1.5;
}

/* =========================
   Sticky CTA – floating top-right (B2B calm)
   ========================= */

.st-stickybar{
  position: fixed;
  top: 90px; /* ниже хедера Astra */
  right: 24px;
  z-index: 9999;

  width: 340px;
  max-width: calc(100vw - 32px);

  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;

  background: rgba(255,255,255,.97);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);

  padding: 14px 16px;
  backdrop-filter: blur(6px);
}

.st-stickybar.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.st-stickybar__inner{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st-stickybar__title{
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.st-stickybar__meta{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  opacity: .82;
}

.st-stickybar__sku{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 62%;
}

/* Цена в одну строку, без переносов */
.st-stickybar__price,
.st-stickybar__price .amount,
.st-stickybar__price .woocommerce-Price-amount,
.st-stickybar__price .woocommerce-Price-currencySymbol{
  white-space: nowrap !important;
}

.st-stickybar__price{
  font-weight: 600;
}

/* =========================
   Button: лёгкая, не "primary"
   ========================= */

/* Сильнее перебиваем Astra/Woo (.button.alt обычно очень жирный) */
.st-stickybar a.st-stickybar__btn.button,
.st-stickybar a.st-stickybar__btn.button.alt{
  width: 100%;
  min-height: 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  background: transparent !important;
  color: #111 !important;
  border: 1px solid rgba(0,0,0,.25) !important;
  border-radius: 10px;

  font-weight: 500 !important;
  box-shadow: none !important;
  text-shadow: none !important;

  padding: 0 14px !important;
  line-height: 1.1 !important;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.st-stickybar a.st-stickybar__btn.button:hover,
.st-stickybar a.st-stickybar__btn.button.alt:hover{
  background: rgba(0,0,0,.05) !important;
  border-color: rgba(0,0,0,.40) !important;
  transform: translateY(-1px);
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 768px){
  .st-stickybar{
    top: auto;
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }

  .st-stickybar__sku{
    max-width: 55%;
  }
}

/* =========================================
   Строгая подсветка якорного блока
   ========================================= */

#consultation.st-anchor-flash{
  position: relative;
  border-radius: 18px;
  outline: 3px solid rgba(0,0,0,.18);
  outline-offset: 6px;
  animation: stAnchorStrict 1.4s ease;
}

/* лёгкое затухание */
@keyframes stAnchorStrict{
  0%{
    outline-color: rgba(0,0,0,.35);
    outline-offset: 2px;
  }
  40%{
    outline-color: rgba(0,0,0,.28);
  }
  100%{
    outline-color: rgba(0,0,0,.18);
    outline-offset: 6px;
  }
}

/* лёгкий акцент на заголовок внутри */
#consultation.st-anchor-flash h2{
  transition: color .4s ease !important;
  color: #000;
}

/* =========================================
   SHOP GRID – ровная сетка, 3 строки заголовка (Astra + Woo)
   ========================================= */

/* 1) Превращаем список товаров в CSS Grid */
.woocommerce ul.products,
.woocommerce-page ul.products{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
}

/* Адаптив */
@media (max-width: 1024px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns: 1fr;
  }
}

/* 2) Карточка товара: grid (превью + контент) */
.woocommerce ul.products > li.product,
.woocommerce-page ul.products > li.product{
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  clear: none;

  display: grid;
  grid-template-rows: auto 1fr; /* высота превью + контент */
  box-sizing: border-box;
  min-width: 0;
}

/* 3) Превью (центрируем “железно”) */
.woocommerce ul.products > li.product .astra-shop-thumbnail-wrap,
.woocommerce-page ul.products > li.product .astra-shop-thumbnail-wrap{
  height: 170px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   Внутренние отступы карточки
   ========================================= */

.woocommerce ul.products > li.product{
  padding: 10px 10px 2px;   /* основной внутренний отступ */
}

.woocommerce ul.products > li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products > li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link{
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.woocommerce ul.products > li.product .astra-shop-thumbnail-wrap img,
.woocommerce-page ul.products > li.product .astra-shop-thumbnail-wrap img{
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 4) Нижняя часть карточки */
.woocommerce ul.products > li.product .astra-shop-summary-wrap,
.woocommerce-page ul.products > li.product .astra-shop-summary-wrap{
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  min-width: 0;
}

/* 5) Заголовок — 3 строки (на мобиле 2) */
.woocommerce ul.products > li.product a.ast-loop-product__link > h2.woocommerce-loop-product__title,
.woocommerce-page ul.products > li.product a.ast-loop-product__link > h2.woocommerce-loop-product__title{
  line-height: 1.25;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;

  overflow: hidden;
  max-height: calc(1.25em * 3);
  min-height: calc(1.25em * 3);

  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 480px){
  .woocommerce ul.products > li.product a.ast-loop-product__link > h2.woocommerce-loop-product__title,
  .woocommerce-page ul.products > li.product a.ast-loop-product__link > h2.woocommerce-loop-product__title{
    -webkit-line-clamp: 2;
    max-height: calc(1.25em * 2);
    min-height: calc(1.25em * 2);
  }
}

/* 6) Цена */
.woocommerce ul.products > li.product .price,
.woocommerce-page ul.products > li.product .price{
  margin: 8px 0 12px;
}

/* 7) Кнопка всегда внизу */
.woocommerce ul.products > li.product .astra-shop-summary-wrap > a.button,
.woocommerce-page ul.products > li.product .astra-shop-summary-wrap > a.button{
  margin-top: auto;
  width: 100%;
}

/* 8) Убираем верхнюю “иконку сумки” на карточке */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a.ast-on-card-button{
  display: none !important;
}

/* =========================================
   CARD HOVER EFFECT
   ========================================= */

.woocommerce ul.products > li.product{
  background: #fff;
  border-radius: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* лёгкий подъём */
.woocommerce ul.products > li.product:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* Кнопка мягче */
.woocommerce ul.products > li.product .astra-shop-summary-wrap > a.button{
  border-radius: 8px;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

/* Hover кнопки */
.woocommerce ul.products > li.product .astra-shop-summary-wrap > a.button:hover{
  transform: translateY(-0px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.woocommerce ul.products > li.product .astra-shop-thumbnail-wrap{
  background: #f7f9fb;
  border-radius: 10px;
}

/* =========================================
   Кнопка "В корзину" в сетке – компактнее и по центру
   ========================================= */

.woocommerce ul.products > li.product 
.astra-shop-summary-wrap > a.button{
  height: 40px;
  min-height: 40px;
  padding: 0 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  line-height: 1;
}

/* =========================================
   Лёгкое отделение карточек от фона в сетке товаров
   ========================================= */

.woocommerce ul.products > li.product{
  background: #fff;
  border-radius: 10px;

  /* очень мягкая тень */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.09);

  transition: box-shadow .2s ease, transform .2s ease;
}

/* Чуть усиливаем при hover */
.woocommerce ul.products > li.product:hover{
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* =========================================
   TABLET HARD OVERRIDE: карточка всегда вертикальная (превью сверху)
   ========================================= */
@media (min-width: 545px) and (max-width: 921px){

  /* 1) сам li делаем grid с одной колонкой */
  .woocommerce ul.products > li.product,
  .woocommerce-page ul.products > li.product{
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 170px auto !important; /* превью + контент */
    align-items: start !important;
  }

  /* 2) оба прямых ребёнка занимают 1 колонку */
  .woocommerce ul.products > li.product > .astra-shop-thumbnail-wrap,
  .woocommerce ul.products > li.product > .astra-shop-summary-wrap,
  .woocommerce-page ul.products > li.product > .astra-shop-thumbnail-wrap,
  .woocommerce-page ul.products > li.product > .astra-shop-summary-wrap{
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    flex: none !important;
    flex-basis: auto !important;
  }

  /* 3) превью по центру */
  .woocommerce ul.products > li.product > .astra-shop-thumbnail-wrap,
  .woocommerce-page ul.products > li.product > .astra-shop-thumbnail-wrap{
    height: 170px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 4) summary — колонка */
  .woocommerce ul.products > li.product > .astra-shop-summary-wrap,
  .woocommerce-page ul.products > li.product > .astra-shop-summary-wrap{
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
  }
}

/* /manufacturer/{slug}/ — логотип внутри term-description */
.tax-pa_manufacturer .term-description .mfr-inline-logo{
  float: left;              
  width: 140px;
  height: 140px;
  margin: 6px 18px 12px 0;
  display: block;
}

.tax-pa_manufacturer .term-description .mfr-inline-logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  padding: 14px;
  box-sizing: border-box;
}

.tax-pa_manufacturer .term-description::after{
  content:"";
  display:block;
  clear:both;
}

@media (max-width: 544px){
  .tax-pa_manufacturer .term-description .mfr-inline-logo{
    float:none;
    margin: 10px 0 12px;
    width: 140px;
    height: 140px;
  }
}

/* Product: inline brand logo in short description */
.single-product .woocommerce-product-details__short-description .product-brand-inline-logo{
  float: left;
  width: 86px;
  height: 86px;
  margin: 4px 14px 10px 0;
  display: block;
}

.single-product .woocommerce-product-details__short-description .product-brand-inline-logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  padding: 10px;
  box-sizing: border-box;
}

/* чтобы блок не схлопывался из-за float */
.single-product .woocommerce-product-details__short-description::after{
  content:"";
  display:block;
  clear:both;
}

/* Мобилка: без обтекания */
@media (max-width: 544px){
  .single-product .woocommerce-product-details__short-description .product-brand-inline-logo{
    float: none;
    margin: 10px 0 12px;
    width: 110px;
    height: 110px;
  }
}

/* =========================
   О компании — компактная версия
   ========================= */

.st-about--compact{
  --st-about-accent: #2f6da5;
  --st-about-accent-hover: #255b8b;
  --st-about-accent-soft: rgba(47,109,165,.08);
  margin: 0 0 36px;
}

.st-about--compact .st-about__section{
  margin: 0 0 32px;
}

.st-about--compact .st-about__top{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: center;
  margin: 0 0 32px;
}

.st-about--compact h1{
  margin: 0 0 14px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
}

.st-about--compact h2{
  margin: 0 0 10px;
  line-height: 1.2;
}

.st-about--compact h3{
  margin: 0 0 8px;
  line-height: 1.25;
  font-size: 20px;
}

.st-about--compact p{
  margin: 0 0 12px;
  color: #555;
}

.st-about--compact .st-about__lead{
  font-size: 17px;
  line-height: 1.6;
  max-width: 760px;
}

.st-about--compact .st-about__head{
  margin: 0 0 18px;
  text-align: left;
}

.st-about--compact .st-about__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 20px 0 0;
}

.st-about--compact .st-about__btn{
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.st-about--compact .st-about__btn:hover{
  transform: translateY(-1px);
}

.st-about--compact .st-about__btn--primary{
  background: var(--st-about-accent);
  color: #fff;
  border: 1px solid transparent;
}

.st-about--compact .st-about__btn--primary:hover{
  background: var(--st-about-accent-hover);
  color: #fff;
}

.st-about--compact .st-about__btn--ghost{
  background: transparent;
  color: var(--st-about-accent);
  border: 1px solid rgba(47,109,165,.28);
}

.st-about--compact .st-about__btn--ghost:hover{
  background: var(--st-about-accent-soft);
  border-color: rgba(47,109,165,.45);
  color: var(--st-about-accent-hover);
}

.st-about--compact .st-about__facts,
.st-about--compact .st-about__cards,
.st-about--compact .st-about__steps{
  display: grid;
  gap: 16px;
}

.st-about--compact .st-about__facts--compact{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.st-about--compact .st-about__cards--2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.st-about--compact .st-about__steps--compact{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.st-about--compact .st-about__fact-card,
.st-about--compact .st-about__card,
.st-about--compact .st-about__step,
.st-about--compact .st-about__mini-cta-box{
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.st-about--compact .st-about__fact-card{
  padding: 18px 16px;
}

.st-about--compact .st-about__fact-value{
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--st-about-accent);
}

.st-about--compact .st-about__fact-label{
  color: #666;
  line-height: 1.45;
}

.st-about--compact .st-about__card{
  padding: 20px 16px;
}

.st-about--compact .st-about__step{
  padding: 20px 16px;
}

.st-about--compact .st-about__step-num{
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
  border-radius: 999px;
  background: var(--st-about-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.st-about--compact .st-about__mini-cta{
  margin: 0;
}

.st-about--compact .st-about__mini-cta-box{
  padding: 24px 20px;
  text-align: left;
}

.st-about--compact .st-about__top-media{
  min-width: 0;
}

.st-about--compact .st-about__image{
  display: block;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 500 / 260;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  box-sizing: border-box;
  border: 1px solid rgba(47,109,165,.12);
  filter: drop-shadow(0 4px 8px rgba(16, 24, 40, .10));
  transition: filter .15s ease, transform .15s ease;
}

@media (max-width: 1024px){
  .st-about--compact .st-about__top{
    grid-template-columns: 1fr;
  }

  .st-about--compact .st-about__facts--compact,
  .st-about--compact .st-about__steps--compact{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px){
  .st-about--compact .st-about__facts--compact,
  .st-about--compact .st-about__cards--2,
  .st-about--compact .st-about__steps--compact{
    grid-template-columns: 1fr;
  }

  .st-about--compact .st-about__actions{
    flex-direction: column;
  }

  .st-about--compact .st-about__btn{
    width: 100%;
  }

  .st-about--compact .st-about__image-placeholder--small{
    min-height: 220px;
  }
}

/* =========================
   Контакты
   ========================= */

.st-contacts{
  --st-contacts-accent: #2f6da5;
  --st-contacts-accent-hover: #255b8b;
  --st-contacts-accent-soft: rgba(47,109,165,.08);
  margin: 0 0 36px;
}

.st-contacts__section{
  margin: 0 0 32px;
}

.st-contacts__top{
  margin: 0 0 28px;
}

.st-contacts h1{
  margin: 0 0 14px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
}

.st-contacts h2{
  margin: 0 0 16px;
  line-height: 1.2;
}

.st-contacts p{
  margin: 0 0 12px;
  color: #555;
}

.st-contacts__lead{
  max-width: 820px;
  font-size: 17px;
  line-height: 1.6;
}

.st-contacts__text{
  max-width: 760px;
}

.st-contacts__grid{
  display: grid;
  gap: 16px;
}

.st-contacts__grid--2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.st-contacts__card{
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  padding: 22px 18px;
}

.st-contacts__card--form{
  padding: 24px 20px;
}

.st-contacts__list{
  display: grid;
  gap: 14px;
}

.st-contacts__item{
  display: grid;
  gap: 4px;
  padding: 0 0 12px;
  border-bottom: 1px solid #f1f1f1;
}

.st-contacts__item:last-child{
  padding-bottom: 0;
  border-bottom: 0;
}

.st-contacts__item strong{
  color: #111;
  font-size: 15px;
  line-height: 1.35;
}

.st-contacts__item span{
  color: #555;
  line-height: 1.5;
}

.st-contacts__item a,
.st-contacts__links a{
  color: var(--st-contacts-accent);
  text-decoration: none;
}

.st-contacts__item a:hover,
.st-contacts__links a:hover{
  color: var(--st-contacts-accent-hover);
  text-decoration: underline;
}

.st-contacts__form-placeholder,
.st-contacts__photos-placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed rgba(47,109,165,.22);
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfdff 0%, #f5f9fd 100%);
  color: #6c7b88;
  text-align: center;
}

.st-contacts__photos-placeholder{
  min-height: 180px;
}

.st-contacts__map{
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-top: 10px;
}

.st-contacts__map iframe{
  display: block;
  width: 100%;
  height: 460px;
}

.st-contacts__links{
  margin: 0;
  padding-left: 18px;
}

.st-contacts__links li{
  margin: 0 0 10px;
}

.st-contacts__links li:last-child{
  margin-bottom: 0;
}

@media (max-width: 900px){
  .st-contacts__grid--2{
    grid-template-columns: 1fr;
  }

  .st-contacts__map iframe{
    height: 380px;
  }
}

@media (max-width: 768px){
  .st-contacts__map iframe{
    height: 300px;
  }

  .st-contacts__card{
    padding: 20px 16px;
  }

  .st-contacts__card--form{
    padding: 22px 16px;
  }
}

/* Ссылка назад под записью */
.single-post .sensors-post-back{
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.single-post .sensors-post-back a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

.single-post .sensors-post-back a:hover{
  text-decoration: underline;
}

/* =========================================================
   ПУБЛИКАЦИИ — привести H1 и ширину архива к обычным страницам
   ========================================================= */

/* Та же ширина, что у обычных страниц, а не 1200 */
@media (min-width: 922px){
  .blog .site-content > .ast-container{
    max-width: 1240px !important;
  }
}

/* Контейнер заголовка архива */
body.blog:not(.single-post) .sensors-posts-header{
  margin: 0 0 18px !important;
}

/* Крошки над H1 */
body.blog:not(.single-post) .sensors-breadcrumbs{
  margin: 0 0 5px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  color: #8a94a6 !important;
}

body.blog:not(.single-post) .sensors-breadcrumbs a{
  color: #8a94a6 !important;
  text-decoration: none !important;
}

body.blog:not(.single-post) .sensors-breadcrumbs a:hover{
  text-decoration: underline !important;
}

/* H1 как на обычных страницах Astra */
body.blog:not(.single-post) .sensors-posts-header .entry-title{
  font-size: 2rem !important;
  line-height: 1.1 !important;
  font-weight: 600 !important;
  margin: 0 !important;
  color: var(--ast-global-color-2) !important;
}

/* Планшет */
@media (max-width: 921px){
  body.blog:not(.single-post) .sensors-posts-header{
    margin-bottom: 16px !important;
  }

  body.blog:not(.single-post) .sensors-posts-header .entry-title{
    font-size: 30px !important;
    line-height: 1.0 !important;
  }
}

/* Мобилка */
@media (max-width: 767px){
  body.blog:not(.single-post) .sensors-posts-header{
    margin-bottom: 14px !important;
  }

  body.blog:not(.single-post) .sensors-breadcrumbs{
    margin-bottom: 8px !important;
    font-size: 13px !important;
  }

  body.blog:not(.single-post) .sensors-posts-header .entry-title{
    font-size: 30px !important;
    line-height: 1.0 !important;
  }
}

/* =========================================================
   Нижняя строка шапки: фиксируется после прокрутки
   ========================================================= */

@media (min-width: 922px) {

  :root{
    --sensors-below-top: 0px;
    --sensors-below-height: 56px;
  }

  /* Базовый вид нижней строки */
  #ast-desktop-header .ast-below-header-wrap{
    position: relative;
    z-index: 50;
    background: #fff;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
  }

  #ast-desktop-header .site-below-header-wrap{
    min-height: 56px;
  }

  /* Когда строка стала фиксированной */
  body.sensors-below-fixed #ast-desktop-header .ast-below-header-wrap{
    position: fixed;
    top: var(--sensors-below-top);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 120;
    background: #fff;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  }

  /* Чтобы контент не подпрыгивал */
  body.sensors-below-fixed{
    padding-top: var(--sensors-below-height);
  }

  /* Если есть админ-бар */
  body.admin-bar{
    --sensors-below-top: 32px;
  }

  /* ===== Поиск всегда открыт ===== */

  #ast-desktop-header .ast-header-search{
    display: flex;
    align-items: center;
  }

  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search{
    display: flex;
    align-items: center;
    width: 100%;
  }

  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search .search-form{
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    pointer-events: auto !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search label{
    display: block;
    position: relative;
    margin: 0 0 5px 0;
  }

  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search .search-field{
    width: 450px;
    min-width: 450px;
    height: 34px;
    padding: 0 42px 0 14px;
    border: 1px solid #d7dde5;
    border-radius: 8px;
    background: #fff;
    margin: 0;
  }

  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search .search-field:focus{
    outline: none;
    border-color: #9fb3c8;
  }

  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search .search-submit{
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search .ast-search-icon{
    display: none !important;
  }

  #ast-desktop-header .ast-builder-menu-2 .main-header-menu{
    gap: 6px;
  }

  #ast-desktop-header .ast-builder-menu-2 .menu-link{
    white-space: nowrap;
  }
}

@media (min-width: 922px) and (max-width: 1180px){
  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search .search-field{
    width: 220px;
    min-width: 220px;
  }
}

@media (min-width: 922px){

  /* Убираем синий focus у всей поисковой конструкции Astra */
  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search .search-form,
  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search .search-form:focus,
  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search .search-form:focus-within,
  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search label,
  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search label:focus,
  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search label:focus-within{
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background: transparent !important;
  }

  /* Само поле: всегда одна и та же спокойная рамка */
  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search input.search-field,
  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search input.search-field:hover,
  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search input.search-field:focus,
  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search input.search-field:focus-visible,
  #ast-desktop-header .ast-header-search .ast-search-menu-icon.slide-search input.search-field:active{
    border: 1px solid #d7dde5 !important;
    border-color: #d7dde5 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }
}

/* =========================================================
   Главная страница — общий каркас
   Используется всеми модулями: Hero, категории, бренды,
   форма, схема работы, доверие, FAQ, публикации
   ========================================================= */

.st-home{
  --st-home-accent: #2f6da5;
  --st-home-accent-hover: #255b8b;
  --st-home-accent-soft: rgba(47,109,165,.08);
  --st-home-text: #111;
  --st-home-muted: #555;
  --st-home-border: #e6ebf2;
  --st-home-shadow: 0 6px 18px rgba(0,0,0,.06);

  margin: 0 0 36px;
  color: var(--st-home-text);
}

/* Универсальный отступ секций главной */
.st-home__section{
  margin: 0 0 42px;
}

/* Общая шапка секций */
.st-home__head{
  max-width: 820px;
  margin: 0 0 18px;
}

.st-home__kicker{
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 5px 10px;
  border: 1px solid rgba(47,109,165,.18);
  border-radius: 999px;
  background: var(--st-home-accent-soft);
  color: var(--st-home-accent-hover);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.st-home__title{
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--st-home-text);
}

.st-home__lead{
  margin: 0;
  color: var(--st-home-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Общие кнопки главной */
.st-home__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.st-home__btn{
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.st-home__btn:hover{
  transform: translateY(-1px);
}

.st-home__btn--primary{
  background: var(--st-home-accent);
  border: 1px solid transparent;
  color: #fff !important;
}

.st-home__btn--primary:hover{
  background: var(--st-home-accent-hover);
  color: #fff !important;
}

.st-home__btn--ghost{
  background: #fff;
  border: 1px solid rgba(47,109,165,.28);
  color: var(--st-home-accent) !important;
}

.st-home__btn--ghost:hover{
  background: var(--st-home-accent-soft);
  border-color: rgba(47,109,165,.45);
  color: var(--st-home-accent-hover) !important;
}

/* Универсальная карточка главной */
.st-home__card{
  background: #fff;
  border: 1px solid var(--st-home-border);
  border-radius: 12px;
  box-shadow: var(--st-home-shadow);
}

/* =========================================================
   Главная страница — Hero
   ========================================================= */

.st-home-hero{
  margin: 0 0 34px;
}

.st-home-hero__content{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 30px;
  align-items: center;
}

.st-home-hero__text{
  min-width: 0;
}

.st-home-hero__title{
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--st-home-text);
}

.st-home-hero__lead{
  max-width: 820px;
  margin: 0;
  color: var(--st-home-muted);
  font-size: 16px;
  line-height: 1.55;
}

.st-home-hero__actions{
  margin: 20px 0 0;
}

.st-home-hero__point{
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 11px 13px;
  color: #3f4a5a;
  font-size: 13px;
  line-height: 1.35;
}

.st-home-hero__notice{
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(47,109,165,.24);
  border-left: 4px solid var(--st-home-accent);
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfdff 0%, #f5f9fd 100%);
  color: #24384d;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.st-home-hero__media{
  min-width: 0;
}

/* Правая область: сейчас место под картинку, позже заменим на WebP */
.st-home-hero__image,
.st-home-hero__image-placeholder{
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  box-sizing: border-box;
}

.st-home-hero__image{
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(47,109,165,.12);
  filter: drop-shadow(0 4px 8px rgba(16, 24, 40, .10));
  transition: filter .15s ease, transform .15s ease;
}

.st-home-hero__image-placeholder{
  min-height: 330px;
  border: 1px dashed rgba(47,109,165,.22);
  background:
    linear-gradient(135deg, rgba(47,109,165,.08), rgba(47,109,165,0) 42%),
    linear-gradient(180deg, #fcfdff 0%, #f5f9fd 100%);
  box-shadow: var(--st-home-shadow);
}

/* =========================================================
   Главная страница — основные категории датчиков
   ========================================================= */

.st-home-cats__grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.st-home-cats__card{
  min-height: 116px;
  display: grid;
  grid-template-rows: 56px auto;
  gap: 10px;
  align-items: start;
  padding: 14px;
  text-decoration: none !important;
  color: var(--st-home-text);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.st-home-cats__card:hover{
  border-color: rgba(47,109,165,.28);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.st-home-cats__thumb{
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(47,109,165,.24);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(47,109,165,.08), rgba(47,109,165,0) 58%),
    #fff;
  overflow: hidden;
}

.st-home-cats__thumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.st-home-cats__name{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  min-height: calc(1.25em * 2);
  overflow: hidden;

  color: var(--st-home-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.st-home-cats__card--all{
  background: linear-gradient(180deg, #fcfdff 0%, #f5f9fd 100%);
}

.st-home-cats__card--all .st-home-cats__thumb{
  border-style: solid;
  background: var(--st-home-accent-soft);
}

.st-home-cats__card--all .st-home-cats__thumb::before{
  content: "→";
  color: var(--st-home-accent);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

/* Планшет */
@media (max-width: 1024px){
  .st-home-hero__content{
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .st-home-brands__grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .st-home-hero__media{
    max-width: 680px;
  }

  .st-home-cats__grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Средние экраны */
@media (max-width: 768px){
  .st-home__section,
  .st-home-hero{
    margin-bottom: 34px;
  }

  .st-home-brands__top{
    display: grid;
    gap: 14px;
  }


  .st-home-brands__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .st-home__actions,
  .st-home-hero__actions{
    flex-direction: column;
  }

  .st-home__btn{
    width: 100%;
  }

  .st-home-hero__title{
    font-size: clamp(28px, 7.5vw, 36px);
  }

  .st-home-hero__lead{
    font-size: 16px;
    line-height: 1.6;
  }

   .st-home-hero__image-placeholder{
     min-height: 220px;
   }

  .st-home-cats__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Мобилка */
@media (max-width: 520px){
  .st-home-cats__grid{
    grid-template-columns: 1fr;
  }

  .st-home-brands__grid{
    grid-template-columns: 1fr;
  }
  
  .st-home-cats__card{
    min-height: auto;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }

  .st-home-cats__thumb{
    width: 52px;
    height: 52px;
  }

  .st-home-cats__name{
    min-height: auto;
  }
}

/* =========================================================
   Главная страница — производители и бренды
   ========================================================= */

.st-home-brands__top{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin: 0 0 18px;
}

.st-home-brands__top .st-home__head{
  margin-bottom: 0;
}

.st-home-brands__all{
  width: 100%;
}
  
.st-home-brands__all{
  align-self: end;
  flex: 0 0 auto;
  min-width: 124px;
  margin: 0 0 2px;
  white-space: nowrap;
}

.st-home-brands__grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

/* Карточка бренда: логотип крупнее, но сетка остаётся компактной */
.st-home-brands__card{
  min-height: 84px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  color: var(--st-home-text);
  text-decoration: none !important;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.st-home-brands__card:hover{
  border-color: rgba(47,109,165,.28);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.st-home-brands__logo{
  width: 76px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--st-home-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.st-home-brands__logo img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.st-home-brands__logo-placeholder{
  color: #66758b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.st-home-brands__name{
  min-width: 0;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;

  color: var(--st-home-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

/* =========================================================
   Главная — бренды: жёсткий адаптив сетки
   Фикс: чтобы 6 колонок не сохранялись на узких экранах
   ========================================================= */

.st-home-brands__grid{
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

/* Ноутбук / узкий десктоп */
@media (max-width: 1180px){
  .st-home-brands__grid{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Планшет */
@media (max-width: 900px){
  .st-home-brands__grid{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Узкий планшет / крупная мобилка */
@media (max-width: 680px){
  .st-home-brands__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .st-home-brands__top{
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .st-home-brands__all{
    width: 100%;
  }
  .st-home-brands__top{
    grid-template-columns: 1fr !important;
    gap: 14px;
    align-items: stretch;
  }

  .st-home-brands__all{
    width: 100%;
    margin: 0;
  }
}

/* Мобилка */
@media (max-width: 430px){
  .st-home-brands__grid{
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   Главная страница — заявка на оборудование
   ========================================================= */

.st-home-request .st-consult__wrap{
  margin: 0;
}

/* =========================================================
   Якорь формы: компенсация фиксированной шапки
   Работает надёжнее, чем scroll-margin-top
   ========================================================= */

#consultation{
  padding-top: 90px;
  margin-top: -90px;
}

/* На главной форма стоит внутри секции .st-home-request:
   убираем возможный лишний визуальный зазор */
.st-home-request #consultation .st-consult__wrap{
  margin-top: 0;
}

@media (max-width: 768px){
  #consultation{
    padding-top: 60px;
    margin-top: -60px;
  }
}

/* =========================================================
   Главная — универсальная иконка в карточках
   Используем сейчас в "Как мы работаем", позже можно в "Доверие"
   ========================================================= */

.st-home__icon{
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;

  border: 1px solid rgba(47,109,165,.22);
  border-radius: 12px;
  background: var(--st-home-accent-soft);
  color: var(--st-home-accent);
  box-sizing: border-box;
}

.st-home__icon svg{
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* =========================================================
   Главная — Как мы работаем
   ========================================================= */

.st-home-workflow__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.st-home-workflow__item{
  min-height: 230px;
  padding: 16px 14px;
}

.st-home-workflow__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.st-home-workflow__num{
  color: rgba(47,109,165,.28);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.st-home-workflow__title{
  margin: 0 0 8px;
  color: var(--st-home-text);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: normal;
}

.st-home-workflow__text{
  margin: 0;
  color: var(--st-home-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Адаптив: 2×2 */
@media (max-width: 1024px){
  .st-home-workflow__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-home-workflow__item{
    min-height: auto;
  }
}

/* Мобилка: 1 колонка */
@media (max-width: 520px){
  .st-home-workflow__grid{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Главная — Поставка для предприятий
   Формат: информационная панель, не плитки
   ========================================================= */

.st-home-supply__panel{
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;

  padding: 24px 22px;
  border: 1px solid var(--st-home-border);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(47,109,165,.08), rgba(47,109,165,0) 38%),
    linear-gradient(180deg, #fcfdff 0%, #f7f9fb 100%);
  box-shadow: var(--st-home-shadow);
}

.st-home-supply__intro{
  min-width: 0;
}

.st-home-supply__actions{
  margin-top: 20px;
}

.st-home-supply__list{
  margin: 0;
  padding: 0;
}

.st-home-supply__row{
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(0,0,0,.08);
}

.st-home-supply__row:first-child{
  padding-top: 0;
  border-top: 0;
}

.st-home-supply__row:last-child{
  padding-bottom: 0;
}

.st-home-supply__label{
  margin: 0;
  color: var(--st-home-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.st-home-supply__text{
  margin: 0;
  color: var(--st-home-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Планшет */
@media (max-width: 1024px){
  .st-home-supply__panel{
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* Мобилка */
@media (max-width: 680px){
  .st-home-supply__panel{
    padding: 20px 16px;
  }

  .st-home-supply__row{
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 13px 0;
  }
}

/* Hover строк в правом блоке "Поставка для предприятий" */
.st-home-supply__row{
  position: relative;
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 10px;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.st-home-supply__row::before{
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: var(--st-home-accent);
  opacity: 0;
  transform: scaleY(.4);
  transition: opacity .18s ease, transform .18s ease;
}

.st-home-supply__row:hover{
  background: rgba(47,109,165,.06);
  transform: translateX(1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.04);
}

.st-home-supply__row:hover::before{
  opacity: 1;
  transform: scaleY(1);
}

.st-home-supply__row:hover .st-home-supply__label{
  color: var(--st-home-accent-hover);
}

.st-home-supply__row:hover .st-home-supply__text{
  color: #334155;
}

@media (max-width: 680px){
  .st-home-supply__row{
    margin-left: -6px;
    margin-right: -6px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* =========================================================
   Главная — FAQ
   Формат: компактный справочный аккордеон
   ========================================================= */

.st-home-faq__head{
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Только кикер уходит влево в пределах широкой зоны */
.st-home-faq__head .st-home__kicker{
  display: flex;
  width: fit-content;
  margin-left: 0;
  margin-right: auto;
}

/* H2 и вводный текст остаются в центральной зоне */
.st-home-faq__head .st-home__title,
.st-home-faq__head .st-home__lead{
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.st-home-faq__list{
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--st-home-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--st-home-shadow);
  overflow: hidden;
}

.st-home-faq__item{
  margin: 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
  background: #fff;
}

.st-home-faq__item:last-child{
  border-bottom: 0;
}

.st-home-faq__question{
  position: relative;
  display: block;
  cursor: pointer;
  padding: 16px 52px 16px 20px;
  color: var(--st-home-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  transition: background .18s ease, color .18s ease;
}

.st-home-faq__question::-webkit-details-marker{
  display: none;
}

.st-home-faq__question::after{
  content: "＋";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--st-home-accent);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.st-home-faq__item[open] .st-home-faq__question::after{
  content: "−";
}

.st-home-faq__item:hover .st-home-faq__question{
  background: rgba(47,109,165,.045);
  color: var(--st-home-accent-hover);
}

.st-home-faq__answer{
  padding: 0 20px 16px;
  color: var(--st-home-muted);
  font-size: 14px;
  line-height: 1.55;
}

.st-home-faq__answer p{
  max-width: 860px;
  margin: 0;
}

.st-home-faq__footer{
  max-width: 980px;
  margin: 14px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  color: #66758b;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.st-home-faq__link{
  color: var(--st-home-accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.st-home-faq__link:hover{
  color: var(--st-home-accent-hover);
  text-decoration: underline;
}

/* Мобилка */
@media (max-width: 680px){
  .st-home-faq__head{
    text-align: left;
  }

  .st-home-faq__head .st-home__kicker{
    margin-left: 0;
    margin-right: 0;
  }

  .st-home-faq__question{
    padding: 15px 44px 15px 16px;
  }

  .st-home-faq__question::after{
    right: 16px;
  }

  .st-home-faq__answer{
    padding: 0 16px 15px;
  }

  .st-home-faq__footer{
    justify-content: flex-start;
    text-align: left;
  }
}

/* =========================================================
   Главная — Публикации
   Финальный лёгкий блок: последние записи без картинок
   ========================================================= */

.st-home-posts__top{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin: 0 0 18px;
}

.st-home-posts__top .st-home__head{
  margin-bottom: 0;
}

.st-home-posts__all{
  align-self: end;
  flex: 0 0 auto;
  min-width: 142px;
  margin: 0 0 2px;
  white-space: nowrap;
}

.st-home-posts__list{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.st-home-posts__item{
  min-height: 188px;
  display: flex;
  flex-direction: column;
  padding: 16px 15px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.st-home-posts__item:hover{
  border-color: rgba(47,109,165,.28);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.st-home-posts__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 10px;
  color: #66758b;
  font-size: 13px;
  line-height: 1.35;
}

.st-home-posts__meta span + span{
  position: relative;
  padding-left: 10px;
}

.st-home-posts__meta span + span::before{
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(102,117,139,.55);
}

.st-home-posts__title{
  margin: 0 0 9px;
  min-height: calc(1.3em * 2);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: normal;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.st-home-posts__title a{
  color: var(--st-home-text);
  text-decoration: none;
}

.st-home-posts__title a:hover{
  color: var(--st-home-accent-hover);
  text-decoration: underline;
}

.st-home-posts__excerpt{
  margin: 0;
  min-height: calc(1.5em * 3);
  color: var(--st-home-muted);
  font-size: 14px;
  line-height: 1.5;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.st-home-posts__more{
  margin-top: 12px;
  padding-top: 0;
  color: var(--st-home-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.st-home-posts__more:hover{
  color: var(--st-home-accent-hover);
  text-decoration: underline;
}

/* Планшет */
@media (max-width: 1024px){
  .st-home-posts__list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Мобилка */
@media (max-width: 680px){
  .st-home-posts__top{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .st-home-posts__all{
    width: 100%;
    margin: 0;
  }

  .st-home-posts__list{
    grid-template-columns: 1fr;
  }

  .st-home-posts__item{
    min-height: auto;
  }
}

/* =========================================================
   Главная — широкая фоновая зона:
   категории + бренды + заявка
   ========================================================= */

.st-home-band{
  --st-home-band-bg: #f7f9fb;

  margin: 0 0 42px;
  padding: 34px 0;

  background: var(--st-home-band-bg);
  box-shadow: 0 0 0 100vmax var(--st-home-band-bg);
  clip-path: inset(0 -100vmax);
}

/* Единая зона навигации и заявки */
.st-home-band--catalog-request{
  --st-home-band-bg: #f7f9fb;
}

/* Секции внутри фоновой зоны */
.st-home-band > .st-home__section{
  margin-bottom: 42px;
}

.st-home-band > .st-home__section:last-child{
  margin-bottom: 0;
}

/* Форма уже имеет свою карточку, убираем внешний margin формы */
.st-home-band .st-home-request .st-consult__wrap{
  margin: 0;
}

@media (max-width: 768px){
  .st-home-band{
    margin-bottom: 34px;
    padding: 28px 0;
  }

  .st-home-band > .st-home__section{
    margin-bottom: 34px;
  }
}

/* =========================================================
   Главная — иконки категорий через WEBP sprite
   Файл: /wp-content/uploads/category/cat-icons.webp

   Sprite 1200×1200, сетка 3×3, ячейка 400×400.
   Порядок:
   1 ряд: давление, температура, уровень
   2 ряд: расход, положение, энкодеры
   3 ряд: климат, тензо, пламя
   ========================================================= */

/* Чуть увеличиваем верхнюю зону карточки под полноценную иконку */
.st-home-cats__card{
  grid-template-rows: 76px auto;
  min-height: 138px;
}

/* Обычные категории: вместо плейсхолдера показываем фрагмент sprite */
.st-home-cats__thumb--sprite{
  width: 70px;
  height: 70px;
  flex: 0 0 70px;

  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image: url('/wp-content/uploads/category/cat-icons.webp') !important;
  background-repeat: no-repeat !important;
  background-size: 300% 300% !important;
  box-shadow: none !important;
}

/* 1 ряд */
.st-home-cats__thumb--pressure{
  background-position: 0% 0% !important;
}

.st-home-cats__thumb--temperature{
  background-position: 50% 0% !important;
}

.st-home-cats__thumb--level{
  background-position: 100% 0% !important;
}

/* 2 ряд */
.st-home-cats__thumb--flow{
  background-position: 0% 50% !important;
}

.st-home-cats__thumb--position{
  background-position: 50% 50% !important;
}

.st-home-cats__thumb--encoder{
  background-position: 100% 50% !important;
}

/* 3 ряд */
.st-home-cats__thumb--climate{
  background-position: 0% 100% !important;
}

.st-home-cats__thumb--force{
  background-position: 50% 100% !important;
}

.st-home-cats__thumb--flame{
  background-position: 100% 100% !important;
}

/* Карточку "Весь каталог" оставляем в старой логике со стрелкой */
.st-home-cats__card--all .st-home-cats__thumb{
  width: 64px;
  height: 64px;
}

/* Мобилка: возвращаем компактность */
@media (max-width: 520px){
  .st-home-cats__card{
    min-height: auto;
    grid-template-rows: auto;
  }

  .st-home-cats__thumb--sprite{
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .st-home-cats__card--all .st-home-cats__thumb{
    width: 56px;
    height: 56px;
  }
}

/* Лёгкая глубина для иконок категорий */
.st-home-cats__thumb--sprite{
  filter: drop-shadow(0 4px 8px rgba(16, 24, 40, .20));
  transition: filter .15s ease, transform .15s ease;
}

.st-home-cats__card:hover .st-home-cats__thumb--sprite{
  filter: drop-shadow(0 7px 14px rgba(16, 24, 40, .14));
  transform: translateY(-1px);
}

/* =========================================================
   Header responsive fix: зона 922–936px
   Убираем текст названия сайта и не даём шапкам дублироваться
   ========================================================= */

/* Текст рядом с логотипом не нужен на узких экранах */
@media (max-width: 1180px){

  .site-branding .site-title,
  .site-branding .ast-site-title-wrap{
    display: none !important;
  }

}

/* Строго разводим desktop/mobile header */
@media (min-width: 922px){

  #ast-mobile-header{
    display: none !important;
  }

}

@media (max-width: 921px){

  #ast-desktop-header{
    display: none !important;
  }

}

/* =========================================================
   Футер: верхние колонки
   ========================================================= */

/* Единый сброс списков для HTML-блоков футера */
.site-above-footer-wrap .st-footer-pop-cats-cols ul,
.site-above-footer-wrap .st-footer-brand-cols ul{
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-above-footer-wrap .st-footer-pop-cats-cols li,
.site-above-footer-wrap .st-footer-brand-cols li{
  margin: 0;
  padding: 0;
}

/* Единый вид ссылок: убираем синий цвет Astra */
.site-above-footer-wrap .st-footer-pop-cats-cols a,
.site-above-footer-wrap .st-footer-brand-cols a{
  color: inherit !important;
  text-decoration: none;
}

/* Hover одинаковый для всех колонок */
.site-above-footer-wrap .st-footer-pop-cats-cols a:hover,
.site-above-footer-wrap .st-footer-pop-cats-cols a:focus,
.site-above-footer-wrap .st-footer-brand-cols a:hover,
.site-above-footer-wrap .st-footer-brand-cols a:focus{
  color: inherit !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Средняя колонка: бренды в 2 колонки */
.site-above-footer-wrap .st-footer-brand-cols{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 34px;
}

/* На мобильных — в одну колонку */
@media (max-width: 544px){
  .site-above-footer-wrap .st-footer-brand-cols{
    grid-template-columns: 1fr;
  }
}

/* Статьи / публикации */
.single-post .entry-content {
  font-size: 16px;
  line-height: 1.75;
  color: #1f2937;
}

.single-post .entry-content p {
  margin: 0 0 18px;
}

.single-post .entry-content h2 {
  margin: 42px 0 18px;
  font-size: 28px;
  line-height: 1.25;
  color: #111827;
}

.single-post .entry-content h3 {
  margin: 30px 0 14px;
  font-size: 21px;
  line-height: 1.3;
  color: #111827;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
  margin: 0 0 22px 22px;
  padding: 0;
}

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

.single-post .entry-content a {
  color: #2563eb;
  text-decoration: none;
}

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

/* Картинки внутри статей */
.single-post .entry-content figure {
  margin: 34px 0;
}

.single-post .entry-content figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  background: #f8fafc;
}

.single-post .entry-content figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
}

/* Чтобы большие картинки не прилипали к тексту */
.single-post .entry-content figure + h2,
.single-post .entry-content figure + h3 {
  margin-top: 42px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .single-post .entry-content {
    font-size: 15.5px;
    line-height: 1.7;
  }

  .single-post .entry-content h2 {
    font-size: 24px;
    margin-top: 34px;
  }

  .single-post .entry-content h3 {
    font-size: 19px;
  }

  .single-post .entry-content figure {
    margin: 26px 0;
  }

  .single-post .entry-content figure img {
    border-radius: 12px;
  }
}

/* =========================================================
   Бренд: усиленный нижний SEO-блок
   ========================================================= */

.sensors-brand-seo-bottom{
  margin-top: 32px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.sensors-brand-seo-bottom h2{
  margin-top: 0;
}

.sensors-brand-seo-bottom__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.sensors-brand-seo-bottom__card{
  padding: 18px;
  border: 1px solid #edf0f3;
  border-radius: 12px;
  background: #f9fafb;
}

.sensors-brand-seo-bottom__card h3{
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.sensors-brand-seo-bottom__card ul{
  margin-bottom: 0;
}

.sensors-brand-seo-bottom__note{
  margin: 22px 0 0;
}

@media (max-width: 768px){
  .sensors-brand-seo-bottom{
    padding: 20px;
  }

  .sensors-brand-seo-bottom__grid{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Архивы товаров: краткие характеристики в карточке
   Этап 1: визуальная заглушка
   ========================================================= */

.woocommerce ul.products > li.product .st-loop-specs,
.woocommerce-page ul.products > li.product .st-loop-specs{
  margin: 8px 0 9px;
  padding: 6px 0 7px;

  border-top: 1px solid rgba(0,0,0,.055);
  border-bottom: 1px solid rgba(0,0,0,.055);

  display: grid;
  gap: 2px;

  font-size: 12.5px;
  line-height: 1.3;
  color: #6b7280;
}

.woocommerce ul.products > li.product .st-loop-specs__row,
.woocommerce-page ul.products > li.product .st-loop-specs__row{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 5px;
  align-items: baseline;
  min-width: 0;
}

.woocommerce ul.products > li.product .st-loop-specs__label,
.woocommerce-page ul.products > li.product .st-loop-specs__label{
  color: #7b8491;
  font-weight: 400;
  white-space: nowrap;
}

.woocommerce ul.products > li.product .st-loop-specs__value,
.woocommerce-page ul.products > li.product .st-loop-specs__value{
  min-width: 0;
  color: #263241;
  font-weight: 400;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 480px){
  .woocommerce ul.products > li.product .st-loop-specs,
  .woocommerce-page ul.products > li.product .st-loop-specs{
    font-size: 12px;
    gap: 2px;
    margin: 7px 0 8px;
    padding: 6px 0;
  }
}