/* ============================================================
   SAY-TEX.RU — Фундамент: глобальная txo-шапка/подвал (Этап 1)
   Подключается дочерней темой ПОСЛЕ style.css и rebrand.css.
   Назначение:
   1) скрыть штатную шапку/подвал Astra (мы выводим свои через хук);
   2) кнопки/флоат MAX — фирменный градиент мессенджера;
   3) мобильный бургер для txo-nav;
   4) мелкие правки адаптива шапки.
   ============================================================ */

/* ── 1. Прячем шапку/подвал Astra (свою выводим через wp_body_open/wp_footer) ── */
.site-header, #masthead,
.ast-mobile-header-wrap, .main-header-bar-wrap,
#colophon, .site-footer, footer.site-footer,
.site-primary-footer-wrap, .site-below-footer-wrap, .ast-below-footer-wrap {
  display: none !important;
}

/* ── 2. MAX — фирменный градиент мессенджера (перебиваем navy из rebrand.css) ── */
.txo-btn--wa,
.txo-nav .txo-btn--wa {
  background: linear-gradient(135deg,#44ccff 0%,#5533ee 58%,#9933dd 100%) !important;
  color: #fff !important;
  border: none !important;
}
.txo-btn--wa:hover,
.txo-nav .txo-btn--wa:hover { filter: brightness(.93) !important; }
.txo-wa-float {
  background: linear-gradient(135deg,#44ccff 0%,#5533ee 58%,#9933dd 100%) !important;
  box-shadow: 0 4px 16px rgba(85,51,238,.45) !important;
}
.txo-wa-float:hover { filter: brightness(.93) !important; box-shadow: 0 6px 20px rgba(85,51,238,.55) !important; }
.txo-footer__social--max {
  background: linear-gradient(135deg,#44ccff 0%,#5533ee 58%,#9933dd 100%) !important;
}

/* ── 3. Мобильный бургер (чистый CSS, чекбокс-хак) ─────────── */
.txo-burger-cb { display: none; }
.txo-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; cursor: pointer; padding: 8px 10px;
}
.txo-burger span {
  display: block; height: 2px; width: 100%;
  background: #fff; border-radius: 2px; transition: .2s ease;
}
.txo-nav__inner { position: relative; }

@media (max-width: 860px) {
  .txo-burger { display: flex; }
  .txo-nav ul {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
    flex-direction: column;
    background: var(--blue);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
  .txo-burger-cb:checked ~ ul { display: flex; }
  .txo-nav ul li a { padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .txo-nav .txo-btn--wa { border-radius: 0; width: 100%; justify-content: center; }
}

/* ── 4. Адаптив шапки ─────────────────────────────────────── */
@media (max-width: 768px) {
  .txo-header__inner { flex-wrap: wrap; gap: 10px; row-gap: 12px; }
  .txo-logo { flex: 1 1 auto; }
  /* поиск — на всю ширину отдельной строкой */
  .txo-search { order: 3; flex: 1 1 100%; max-width: 100%; }
  /* кнопки — на всю ширину отдельной строкой, поровну */
  .txo-header__actions { order: 4; width: 100%; margin: 0; }
  .txo-header__actions .txo-btn { flex: 1; justify-content: center; }
  /* «Позвонить» нужен именно на мобайле — звонок с телефона (перебивает style.css:761) */
  .txo-header__actions .txo-btn--primary { display: inline-flex; }
  .txo-topbar__badges { display: none; }
}
@media (max-width: 480px) {
  .txo-topbar { font-size: 12px; }
  .txo-topbar__contacts { gap: 12px; }
  /* в узкой строке оставляем главный городской + 8-800, прячем второй номер и e-mail */
  .txo-topbar__contacts a:nth-child(2),
  .txo-topbar__contacts a:nth-child(4) { display: none; }
  .txo-logo__text span { display: none; }
}

/* ── 5. Выпадающее подменю в txo-nav («Покупателям»: Прайс/Вопросы/Контакты) ── */
.txo-nav li.menu-item-has-children { position: relative; }
/* Astra впрыскивает свои тогглы-стрелки (span.dropdown-menu-toggle внутри ссылки +
   button.ast-menu-toggle с большим SVG) — прячем, рисуем свою аккуратную ▾ через ::after */
.txo-nav .ast-menu-toggle,
.txo-nav .dropdown-menu-toggle { display: none !important; }
.txo-nav li.menu-item-has-children > a::after { content: "▾"; margin-left: 6px; font-size: 10px; opacity: .85; }
.txo-nav .sub-menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: auto; z-index: 300;
  flex-direction: column; min-width: 220px;
  background: var(--blue);
  border-top: 2px solid var(--blue-med);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
/* «Покупателям» у правого края — выпадашку выравниваем вправо, чтобы не уезжала за экран */
.txo-nav .menu-item-2466 > .sub-menu { left: auto; right: 0; }
.txo-nav li.menu-item-has-children:hover > .sub-menu,
.txo-nav li.menu-item-has-children:focus-within > .sub-menu { display: flex; }
.txo-nav .sub-menu li { border-top: 1px solid rgba(255,255,255,.08); }
.txo-nav .sub-menu li:first-child { border-top: none; }
.txo-nav .sub-menu li a { padding: 11px 18px; font-weight: 500; white-space: nowrap; }

/* «Каталог» (menu-item-2439) — мега-меню на 16 категорий: 2 колонки
   (один столбец на 16 пунктов был бы слишком длинным) */
.txo-nav .menu-item-2439 > .sub-menu { flex-wrap: wrap; max-height: 372px; min-width: 600px; }
.txo-nav .menu-item-2439 > .sub-menu > li { width: 300px; }
/* верхняя граница-разделитель только у первых пунктов каждой колонки (1-й и 9-й) убрана */
.txo-nav .menu-item-2439 > .sub-menu > li:nth-child(9) { border-top: none; }

@media (max-width: 860px) {
  /* в бургере подменю всегда раскрыто, статикой, с отступом (без ховера) */
  .txo-nav li.menu-item-has-children { position: static; }
  .txo-nav .sub-menu { position: static; min-width: 0; box-shadow: none; border-top: none; background: rgba(0,0,0,.18); }
  .txo-burger-cb:checked ~ ul .sub-menu { display: flex; }
  .txo-nav .sub-menu li a { padding-left: 34px; }
  /* «Каталог» на мобайле — обычным стеком (без 2 колонок) */
  .txo-nav .menu-item-2439 > .sub-menu { flex-wrap: nowrap; max-height: none; min-width: 0; }
  .txo-nav .menu-item-2439 > .sub-menu > li { width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   ЭТАП 4: КАРТОЧКА ТОВАРА — правки поверх style.css
   ════════════════════════════════════════════════════════════ */
/* логотип-картинка (ребрендинг 2025) в шапке и подвале */
.txo-logo__img { height: 58px; width: auto; display: block; }
.txo-footer__logo-img { height: 54px; width: auto; display: block; margin-bottom: 6px; }
@media (max-width: 480px){ .txo-logo__img { height: 46px; } }

/* убрать штатный заголовок страницы Astra над товаром (свой h1 в шаблоне) */
.single-product .ast-single-post-order,
.single-product .entry-header.ast-no-thumbnail { display: none; }

/* на главной заголовок страницы отключён (meta site-post-title=disabled),
   но Astra оставляет пустой <header> с margin-top:2em → схлопываем его,
   чтобы наш hero лёг сразу под навигацию */
.home .entry-header.ast-header-without-markup,
.home .entry-header.ast-no-title { display: none !important; }

/* полоса хлебных крошек */
.txo-breadcrumb-strip { background: var(--gray-bg); border-bottom: 1px solid var(--blue-light); padding: 8px 0; margin: 0 0 0; }
/* правка №20: хлебные крошки контрастнее — «плохо видно» */
.txo-breadcrumb { font-size: 13.5px; }
.txo-breadcrumb a { color: var(--blue, #1F4E79) !important; font-weight: 600; }
.txo-breadcrumb a:hover { text-decoration: underline; }
.txo-breadcrumb > span { color: #5F6E80; }
.txo-breadcrumb .txo-breadcrumb__cur { color: #2B2B2B; font-weight: 600; }

/* CTA: форма «В корзину» WooCommerce во всю ширину рядом с нашими кнопками */
.txo-product-ctas form.cart { display: flex; gap: 8px; align-items: stretch; margin: 0; }
.txo-product-ctas form.cart .quantity { flex: 0 0 auto; }
.txo-product-ctas form.cart .quantity input { height: 100%; }
.txo-product-ctas .single_add_to_cart_button { flex: 1; justify-content: center; text-align: center; }
.txo-product-ctas .txo-btn--full { width: 100%; justify-content: center; }

/* вкладка «Доставка» — две колонки */
.txo-delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 14px; }
.txo-delivery-grid strong { color: var(--blue); display: block; margin-bottom: 8px; }
.txo-delivery-grid p { margin-bottom: 6px; }
@media (max-width: 600px){ .txo-delivery-grid { grid-template-columns: 1fr; } }

/* ── КАЛЬКУЛЯТОР лизинг/кредит ───────────────────────────── */
.txo-calc { border: 1px solid var(--blue-light); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.txo-calc__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; background: var(--blue-pale); border-bottom: 1px solid var(--blue-light); }
.txo-calc__head h2 { font-size: 20px; color: var(--blue); margin: 0; }
.txo-calc__switch { display: flex; gap: 4px; background: #fff; border: 1px solid var(--blue-light); border-radius: 30px; padding: 3px; }
.txo-calc__tab { border: none; background: none; padding: 7px 18px; border-radius: 30px; font-size: 13px; font-weight: 600; color: var(--gray-text); cursor: pointer; }
.txo-calc__tab.active { background: var(--blue); color: #fff; }
.txo-calc__panel { display: none; padding: 20px; }
.txo-calc__panel.active { display: block; }
.txo-calc__grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; }
.txo-calc__field { margin-bottom: 18px; }
.txo-calc__field label { font-size: 12px; color: var(--gray-text); font-weight: 600; }
.txo-calc__val { font-size: 22px; font-weight: 700; color: var(--blue); font-family: 'Oswald', sans-serif; margin: 2px 0 6px; }
.txo-calc input[type=range] { width: 100%; accent-color: var(--blue); height: 6px; }
.txo-calc__range-lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--gray-text); margin-top: 4px; }
.txo-calc__result { background: var(--blue-pale); border-radius: var(--radius-md); padding: 18px; align-self: start; }
.txo-calc__res-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--blue-light); }
.txo-calc__res-row span { font-size: 13px; color: var(--gray-text); }
.txo-calc__res-row strong { font-size: 24px; font-weight: 700; color: var(--blue); font-family: 'Oswald', sans-serif; }
.txo-calc__res-row b { font-size: 16px; font-weight: 700; color: var(--blue); }
.txo-calc__res-row b.green { color: var(--green); }
.txo-calc__result .txo-btn { margin-top: 14px; }
.txo-calc__note { font-size: 11px; color: var(--gray-text); margin-top: 10px; line-height: 1.4; }
@media (max-width: 768px){ .txo-calc__grid { grid-template-columns: 1fr; gap: 18px; } }

/* ── ФОРМА ЗАЯВКИ в калькуляторе (лизинг/кредит → бот → MAX/TG/amoCRM) ── */
.txo-lead { border-top: 1px solid var(--blue-light); background: var(--blue-pale); padding: 22px 20px; }
.txo-lead__title { font-family: 'Oswald', sans-serif; font-size: 20px; color: var(--blue); margin-bottom: 4px; }
.txo-lead__sub { font-size: 13px; color: var(--gray-text); margin: 0 0 16px; line-height: 1.5; }
.txo-lead__form { max-width: 720px; }
.txo-lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.txo-lead__form input[type=text],
.txo-lead__form input[type=tel],
.txo-lead__form textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px;
  border: 1px solid var(--blue-light); border-radius: var(--radius-sm, 8px);
  font-size: 15px; font-family: inherit; background: #fff; color: #2B2B2B;
}
.txo-lead__form input:focus,
.txo-lead__form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,78,121,.12); }
.txo-lead__form textarea { margin-bottom: 12px; resize: vertical; min-height: 52px; }
.txo-lead__form .txo-btn--full { width: 100%; justify-content: center; }
.txo-lead__hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.txo-lead__msg { margin-top: 12px; padding: 11px 14px; border-radius: var(--radius-sm, 8px); font-size: 14px; }
.txo-lead__msg.is-ok  { background: #e6f4ea; color: #1a7f37; border: 1px solid #a6dab5; }
.txo-lead__msg.is-err { background: #fdeaea; color: #b32d2e; border: 1px solid #f0b4b4; }
.txo-lead__note { font-size: 11px; color: var(--gray-text); margin-top: 10px; line-height: 1.4; }
.txo-lead__consent { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--gray-text); line-height: 1.45; margin: 0 0 14px; cursor: pointer; }
.txo-lead__consent input[type=checkbox] { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
@media (max-width: 600px){ .txo-lead__row { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════
   СТРАНИЦА «КОНТАКТЫ» (/kontakty/) — собрана из данных подвала
   ════════════════════════════════════════════════════════════ */
.txo-contacts { max-width: 1100px; margin: 0 auto; }
.txo-contacts__lead { font-size: 17px; line-height: 1.6; color: var(--gray-text); margin: 0 0 30px; }
.txo-contacts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 32px; }
.txo-contacts__card { border: 1px solid var(--blue-light); border-radius: var(--radius-md); padding: 22px; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.txo-contacts__card:hover { box-shadow: 0 8px 24px rgba(31,78,121,.10); transform: translateY(-2px); }
.txo-contacts__card-title { font-family: 'Oswald', sans-serif; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; color: var(--blue); margin-bottom: 14px; }
.txo-contacts__line { display: block; font-size: 15px; color: #2B2B2B; text-decoration: none; margin-bottom: 8px; }
a.txo-contacts__line:hover { color: var(--blue); }
.txo-contacts__line--big { font-size: 20px; font-weight: 700; color: var(--blue); font-family: 'Oswald', sans-serif; }
.txo-contacts__note { display: block; font-size: 12px; color: var(--gray-text); margin-top: 4px; }
.txo-contacts__maplink { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; }
.txo-contacts__maplink:hover { text-decoration: underline; }
.txo-contacts__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px){ .txo-contacts__cta .txo-btn { flex: 1; justify-content: center; } }

/* ════════════════════════════════════════════════════════════
   ЭТАП 3: КАТАЛОГ — архив категории (плитки типов + фильтры)
   ════════════════════════════════════════════════════════════ */
.txo-cat__title { font-family: 'Oswald', sans-serif; color: var(--blue); font-size: 30px; margin: 16px 0 6px; }
.txo-cat__desc { color: var(--gray-text); font-size: 15px; line-height: 1.6; margin: 0 0 18px; max-width: 820px; }

/* плитки типов */
.txo-cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 8px 0 36px; }
.txo-cat-tile { background: #fff; border: 1px solid var(--blue-light); border-radius: 12px; padding: 20px 18px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 9px; transition: .18s; }
.txo-cat-tile:hover { box-shadow: 0 10px 26px rgba(31,78,121,.13); transform: translateY(-3px); border-color: var(--blue); }
/* правка №24 (08.07): картинки на плитках категорий крупнее (было 74px) */
.txo-cat-tile__ic { width: 112px; height: 112px; border-radius: 12px; background: var(--blue-pale); display: flex; align-items: center; justify-content: center; color: var(--blue); overflow: hidden; }
.txo-cat-tile__ic img { width: 100%; height: 100%; object-fit: contain; }
.txo-cat-tile__name { font-weight: 700; font-size: 15.5px; color: var(--blue); line-height: 1.25; }
.txo-cat-tile__cnt { font-size: 13px; color: var(--gray-text); }
.txo-cat-tile__cnt b { color: #2B2B2B; }
.txo-cat-tile__go { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--blue-med); }
@media (max-width: 1000px){ .txo-cat-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px){ .txo-cat-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* раскладка тип: сайдбар + товары */
.txo-cat-layout { display: grid; grid-template-columns: 258px 1fr; gap: 24px; align-items: start; padding-bottom: 40px; }
.txo-cat-side { position: sticky; top: 12px; }
.txo-filt-cb, .txo-filt-mobtn { display: none; }
.txo-filters { background: #fff; border: 1px solid var(--blue-light); border-radius: 12px; padding: 4px 16px 16px; }
.txo-fgroup { padding: 14px 0; border-bottom: 1px solid var(--blue-light); }
.txo-fgroup:last-child { border-bottom: none; }
.txo-ftitle { font-family: 'Oswald', sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: .4px; color: var(--blue); margin: 0 0 11px; }
.txo-fck { display: flex; align-items: center; gap: 9px; font-size: 14px; margin-bottom: 9px; cursor: pointer; }
.txo-fck input { width: 16px; height: 16px; accent-color: var(--blue); flex: 0 0 auto; }
.txo-fck .c { margin-left: auto; color: var(--gray-text); font-size: 12px; }
.txo-fprice { display: flex; gap: 8px; }
.txo-fprice input { width: 100%; padding: 9px 10px; border: 1px solid var(--blue-light); border-radius: 7px; font-size: 14px; text-align: center; }
.txo-ftoggle { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.txo-ftoggle input { width: 16px; height: 16px; accent-color: #1a7f37; }
.txo-fbtns { display: flex; gap: 8px; margin-top: 14px; }
.txo-fbtns .txo-btn { flex: 1; justify-content: center; padding: 10px; font-size: 13px; }

/* товары */
.txo-cat-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.txo-cat-count { color: var(--gray-text); font-size: 14px; }
.woocommerce-ordering select, .txo-cat-top select { border: 1px solid var(--blue-light); border-radius: 8px; padding: 8px 12px; background: #fff; font-size: 13px; font-family: inherit; }
.txo-cat-grid2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px){ .txo-cat-grid2 { grid-template-columns: repeat(2, 1fr); } }

.txo-pcard { background: #fff; border: 1px solid var(--blue-light); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: .18s; }
.txo-pcard:hover { box-shadow: 0 10px 24px rgba(31,78,121,.12); transform: translateY(-2px); }
.txo-pcard__img { height: 168px; background: #fff; display: flex; align-items: center; justify-content: center; position: relative; padding: 8px; }
.txo-pcard__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.txo-pcard__badge { position: absolute; top: 8px; left: 8px; background: #1a7f37; color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px; }
.txo-pcard__sale { position: absolute; top: 8px; right: 8px; background: #e23b3b; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
/* стикеры товара (Хит / Акция / Новинка) */
.txo-pcard__stickers { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; z-index: 2; }
.txo-pcard__stk { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; color: #fff; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.2); line-height: 1.35; }
.txo-pcard__stk--hit { background: #F0562E; }
.txo-pcard__stk--sale { background: #E23B3B; }
.txo-pcard__stk--new { background: #2E75B6; }
/* раздел Акции */
.txo-sale__grid { margin-top: 8px; }
.txo-sale__empty { text-align: center; color: #5F5F5F; background: var(--blue-pale, #EBF3FB); border-radius: 12px; padding: 30px 20px; font-size: 15px; margin: 12px 0; }
.txo-sale-home { background: linear-gradient(135deg, #FFF5F2, #FFECE6); padding: 32px 0; margin: 0; }
.txo-sale-home__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.txo-sale-home__head h2 { font-family: 'Oswald', sans-serif; color: var(--blue, #1F4E79); font-size: 26px; margin: 0; }
.txo-sale-home__all { color: var(--blue, #1F4E79); font-weight: 700; text-decoration: none; white-space: nowrap; }
.txo-sale-home__all:hover { text-decoration: underline; }
.txo-pcard__b { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; border-top: 1px solid var(--blue-light); }
.txo-pcard__brand { font-size: 11px; color: var(--blue-med); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.txo-pcard__name { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #2B2B2B; text-decoration: none; min-height: 35px; }
.txo-pcard__name:hover { color: var(--blue); }
.txo-pcard__sku { font-size: 11px; color: var(--gray-text); }
.txo-pcard__price { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 700; color: var(--blue); margin-top: 2px; }
.txo-pcard__price--req { font-size: 16px; }
.txo-pcard__lease { font-size: 11px; color: var(--gray-text); }
.txo-pcard__btn { margin-top: 8px; background: var(--blue); color: #fff; border: none; border-radius: 8px; padding: 9px; font-weight: 600; font-size: 13px; cursor: pointer; text-align: center; text-decoration: none; display: block; }
.txo-pcard__btn:hover { background: #163a5c; color: #fff; }
.txo-pcard__btn--o { background: #fff; color: var(--blue); border: 1px solid var(--blue-light); }
.txo-pcard__btn--o:hover { background: var(--blue-pale); color: var(--blue); }
.txo-cat-pag { margin-top: 24px; }
.txo-cat-empty { padding: 30px 0; color: var(--gray-text); }
.txo-cat-empty a { color: var(--blue); font-weight: 600; }

/* мобайл: фильтры сворачиваются */
@media (max-width: 860px){
  .txo-cat-layout { grid-template-columns: 1fr; }
  .txo-cat-side { position: static; }
  .txo-filt-mobtn { display: inline-block; background: var(--blue); color: #fff; padding: 11px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; margin-bottom: 12px; }
  .txo-filt-mobtn::after { content: " ▾"; }
  .txo-filt-box { display: none; }
  .txo-filt-cb:checked ~ .txo-filt-box { display: block; }
  .txo-cat-grid2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px){ .txo-cat-grid2 { grid-template-columns: 1fr; } }

/* ── Ссылка на личный кабинет в топбаре ── */
.txo-topbar__lk { display: inline-flex; align-items: center; gap: 5px; color: #fff !important; text-decoration: none; font-weight: 600; font-size: 12px; padding: 3px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 20px; margin-left: 6px; transition: background .15s, border-color .15s; white-space: nowrap; }
.txo-topbar__lk:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.7); color: #fff !important; }
@media (max-width: 600px){ .txo-topbar__lk { padding: 3px 10px; } }

/* ── Инфо-страницы (О компании, Доставка, Гарантия, Дилер) ── */
.txo-page { max-width: 980px; margin: 0 auto; color: #2B2B2B; font-size: 16px; line-height: 1.7; }
.txo-page__lead { font-size: 18px; color: #3a3a3a; margin: 0 0 28px; }
.txo-page h2 { font-family: 'Oswald', sans-serif; color: var(--blue, #1F4E79); font-size: 24px; margin: 34px 0 14px; }
.txo-page p { margin: 0 0 14px; }
.txo-page ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.txo-page ul li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.txo-page ul li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--blue-med, #2E75B6); font-weight: 700; }
.txo-page__stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 30px; }
.txo-page__stat { flex: 1; min-width: 140px; background: var(--blue-pale, #EBF3FB); border-radius: 12px; padding: 18px 20px; text-align: center; }
.txo-page__stat b { display: block; font-family: 'Oswald', sans-serif; font-size: 30px; color: var(--blue, #1F4E79); line-height: 1.1; }
.txo-page__stat span { font-size: 13px; color: #5F5F5F; }
.txo-page__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 0 0 24px; }
.txo-page__card { background: #fff; border: 1px solid var(--blue-light, #DEEAF1); border-radius: 12px; padding: 20px; }
.txo-page__card-ic { font-size: 28px; }
.txo-page__card-t { font-weight: 700; color: var(--blue, #1F4E79); margin: 8px 0 6px; font-size: 16px; }
.txo-page__card p { font-size: 14px; color: #5F5F5F; margin: 0; }
.txo-page__note { background: var(--blue-pale, #EBF3FB); border-left: 4px solid var(--blue-med, #2E75B6); border-radius: 0 8px 8px 0; padding: 14px 18px; font-size: 14px; color: #444; margin: 0 0 22px; }
.txo-page__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--blue-light, #DEEAF1); }
@media (max-width: 600px){ .txo-page__stat b { font-size: 24px; } .txo-page { font-size: 15px; } }

/* ── Оснащение по постам (страница-решение) ── */
.txo-post { max-width: 1100px; margin: 0 auto; }
.txo-post__lead { font-size: 18px; line-height: 1.6; color: #3a3a3a; margin: 0 0 22px; }
.txo-post__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--blue-light, #DEEAF1); }
.txo-post__bar-t { font-family: 'Oswald', sans-serif; font-size: 22px; color: var(--blue, #1F4E79); }
.txo-post__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.txo-post__item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--blue-light, #DEEAF1); border-radius: 12px; padding: 14px; text-decoration: none; color: inherit; transition: .18s; }
.txo-post__item:hover { box-shadow: 0 8px 22px rgba(31,78,121,.12); border-color: var(--blue, #1F4E79); transform: translateY(-2px); }
.txo-post__item-img { flex: 0 0 84px; width: 84px; height: 84px; border: 1px solid #eee; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.txo-post__item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.txo-post__item-ph { font-size: 30px; opacity: .5; }
.txo-post__item-b { display: flex; flex-direction: column; min-width: 0; }
.txo-post__item-n { font-weight: 700; font-size: 15px; color: var(--blue, #1F4E79); margin-bottom: 4px; }
.txo-post__item-d { font-size: 13px; color: #5F5F5F; line-height: 1.45; flex: 1; }
.txo-post__item-go { font-size: 13px; font-weight: 600; color: var(--blue-med, #2E75B6); margin-top: 8px; }
.txo-post__cta { margin-top: 26px; background: var(--blue-pale, #EBF3FB); border-radius: 14px; padding: 22px 24px; text-align: center; }
.txo-post__cta-t { font-family: 'Oswald', sans-serif; font-size: 20px; color: var(--blue, #1F4E79); margin-bottom: 14px; }
.txo-post__cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px){ .txo-post__items { grid-template-columns: 1fr; } .txo-post__lead { font-size: 16px; } }

/* ── Витрина «Оснащение по постам» (плитки) ── */
.txo-postsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.txo-postsgrid__tile { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--blue-light, #DEEAF1); border-radius: 14px; padding: 24px 22px; text-decoration: none; color: inherit; transition: .18s; }
.txo-postsgrid__tile:hover { box-shadow: 0 10px 28px rgba(31,78,121,.14); border-color: var(--blue, #1F4E79); transform: translateY(-3px); }
.txo-postsgrid__ic { font-size: 36px; }
.txo-postsgrid__t { font-family: 'Oswald', sans-serif; font-size: 20px; color: var(--blue, #1F4E79); }
.txo-postsgrid__d { font-size: 13px; color: #5F5F5F; line-height: 1.5; flex: 1; }
.txo-postsgrid__go { font-weight: 600; font-size: 14px; color: var(--blue-med, #2E75B6); margin-top: 4px; }
@media (max-width: 600px){ .txo-postsgrid { grid-template-columns: 1fr; } }

/* ── Корзина поста (модалка заявки на КП) ── */
.txo-cart[hidden] { display: none; }
.txo-cart { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.txo-cart__overlay { position: absolute; inset: 0; background: rgba(20,30,50,.55); backdrop-filter: blur(2px); }
.txo-cart__panel { position: relative; z-index: 1; background: #fff; border-radius: 16px; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; padding: 26px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.3); font-family: 'Montserrat', Arial, sans-serif; }
.txo-cart__x { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 28px; line-height: 1; color: #888; cursor: pointer; }
.txo-cart__x:hover { color: #1F4E79; }
.txo-cart__h { font-family: 'Oswald', sans-serif; font-size: 22px; color: var(--blue, #1F4E79); padding-right: 24px; }
.txo-cart__sub { font-size: 13px; color: #5F5F5F; margin: 4px 0 14px; }
.txo-cart__items { display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow: auto; background: var(--blue-pale, #EBF3FB); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.txo-cart__ck { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: #2B2B2B; cursor: pointer; }
.txo-cart__ck input { margin-top: 3px; flex: 0 0 auto; }
.txo-cart__form { display: flex; flex-direction: column; gap: 10px; }
.txo-cart__form input[type=text], .txo-cart__form input[type=tel], .txo-cart__form textarea { width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--blue-light, #DEEAF1); border-radius: 8px; font-size: 14px; font-family: inherit; }
.txo-cart__form input:focus, .txo-cart__form textarea:focus { outline: none; border-color: var(--blue, #1F4E79); }
.txo-cart .tc-website { position: absolute; left: -9999px; }
.txo-cart__consent { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: #5F5F5F; cursor: pointer; }
.txo-cart__consent input { margin-top: 2px; flex: 0 0 auto; }
.txo-cart__msg { padding: 10px 13px; border-radius: 8px; font-size: 14px; }
.txo-cart__msg.is-ok { background: #e6f4ea; color: #1a7f37; border: 1px solid #a6dab5; }
.txo-cart__msg.is-err { background: #fdeaea; color: #b32d2e; border: 1px solid #f0b4b4; }
.txo-cart__or { text-align: center; margin: 18px 0 12px; position: relative; color: #999; font-size: 12px; }
.txo-cart__or::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--blue-light, #DEEAF1); }
.txo-cart__or span { position: relative; background: #fff; padding: 0 12px; }
.txo-cart__channels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.txo-cart__ch { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 10px; border: 1px solid var(--blue-light, #DEEAF1); border-radius: 10px; text-decoration: none; color: var(--blue, #1F4E79); font-weight: 600; font-size: 14px; transition: .15s; }
.txo-cart__ch:hover { background: var(--blue-pale, #EBF3FB); border-color: var(--blue, #1F4E79); color: var(--blue, #1F4E79); }

/* === TXO-LOGO-UNIFY — единый размер логотипа шапки на всех страницах (фикс WooCommerce) === */
.txo-header .txo-logo .txo-logo__img,.txo-header .txo-logo img,body.woocommerce .txo-logo__img,body.archive .txo-logo__img{height:58px!important;width:auto!important;max-width:320px!important;display:block!important}
@media (max-width:480px){.txo-header .txo-logo .txo-logo__img,body.woocommerce .txo-logo__img,body.archive .txo-logo__img{height:46px!important}}

/* ── Партнёрские кнопки лизинг/кредит (правка №4) ── */
.txo-btn--credit{background:#FFDD2D !important;color:#111 !important;border:none !important;font-weight:700}
.txo-btn--credit:hover{background:#f5cf00 !important;color:#111 !important}
.txo-btn--lease{background:linear-gradient(135deg,#0EA36B,#0B7F54) !important;color:#fff !important;border:none !important;font-weight:700}
.txo-btn--lease:hover{background:linear-gradient(135deg,#0B8F5D,#096B47) !important;color:#fff !important}
/* Fera-блок в панели лизинга */
.txo-fera{margin-top:14px;padding:14px;border:1px solid var(--blue-light,#DEEAF1);border-radius:10px;background:#fafafa}
.txo-fera__logo{height:22px;width:auto;display:block;margin-bottom:8px}
.txo-fera__list{margin:0 0 12px;padding-left:18px;font-size:13px;color:#333}
.txo-fera__list li{margin:2px 0}
/* Т-Банк виджет в панели кредита */
.txo-tbank{margin-top:12px;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.txo-tbank__by{font-size:12px;color:var(--gray-text,#5F5F5F)}

/* === Форма заявки лизинг/кредит (txo-finance) === */
.txo-fin__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.txo-fin__btns .txo-btn { flex: 1 1 220px; justify-content: center; font-size: 16px; padding: 14px 18px; }
.txo-fin__hp { position: absolute!important; left: -9999px!important; width: 1px!important; height: 1px!important; opacity: 0!important; }
.txo-fin__modal { position: fixed; inset: 0; z-index: 100000; background: rgba(15,28,48,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.txo-fin__modal[hidden] { display: none; }
.txo-fin__box { background: #fff; border-radius: 14px; max-width: 560px; width: 100%; max-height: 92vh; overflow: auto; padding: 26px 26px 22px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.txo-fin__close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 28px; line-height: 1; color: #999; cursor: pointer; }
.txo-fin__close:hover { color: var(--blue, #1F4E79); }
.txo-fin__title { font-family: 'Oswald', sans-serif; color: var(--blue, #1F4E79); font-size: 24px; margin: 0 34px 6px 0; }
.txo-fin__sub { color: #5F5F5F; margin: 0 0 16px; font-size: 14px; }
.txo-fin__cart { background: var(--blue-pale, #EBF3FB); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.txo-fin__cart-h { font-weight: 700; color: var(--blue, #1F4E79); margin-bottom: 6px; font-size: 14px; }
.txo-fin__cart ul { list-style: none; margin: 0; padding: 0; }
.txo-fin__cart li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; border-bottom: 1px dashed var(--blue-light, #DEEAF1); }
.txo-fin__cart li:last-child { border-bottom: 0; }
.txo-fin__cart li b { white-space: nowrap; }
.txo-fin__total { text-align: right; margin-top: 8px; font-size: 15px; color: var(--blue, #1F4E79); }
.txo-fin__empty { background: var(--blue-pale, #EBF3FB); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; font-size: 14px; color: #5F5F5F; }
.txo-fin__form { display: flex; flex-direction: column; gap: 10px; }
.txo-fin__form input[type=text], .txo-fin__form input[type=tel], .txo-fin__form input[type=email] { padding: 12px 14px; border: 1px solid var(--blue-light, #DEEAF1); border-radius: 10px; font-size: 15px; width: 100%; }
.txo-fin__form input:focus { outline: none; border-color: var(--blue, #1F4E79); }
.txo-fin__consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #5F5F5F; }
.txo-fin__consent input { margin-top: 2px; }
.txo-fin__submit { margin-top: 4px; padding: 14px; font-size: 16px; justify-content: center; }
.txo-fin__msg { padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.txo-fin__msg.is-ok { background: #e6f4ea; color: #1a7f37; border: 1px solid #a6dab5; }
.txo-fin__msg.is-err { background: #fdeaea; color: #b32d2e; border: 1px solid #f0b4b4; }
@media (max-width:480px){ .txo-fin__box { padding: 20px 16px 18px; } .txo-fin__title { font-size: 20px; } }

/* №8 клиентская корзина → КП после лёгкой регистрации */
.txo-ckp{margin:26px 0 8px;padding:20px 22px;border:1px solid var(--blue-light,#DEEAF1);border-radius:14px;background:#fafcff}
.txo-ckp__head{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px}
.txo-ckp__ic{font-size:26px;line-height:1}
.txo-ckp__t{margin:0 0 3px;font-size:19px;color:var(--blue,#1F4E79)}
.txo-ckp__s{margin:0;color:#555;font-size:14px}
.txo-ckp__row{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:10px}
.txo-ckp__row input{width:100%;padding:11px 13px;border:1px solid #cfdbe8;border-radius:9px;font-size:14px;background:#fff}
.txo-ckp__row input:focus{outline:none;border-color:var(--blue,#1F4E79);box-shadow:0 0 0 3px rgba(31,78,121,.12)}
.txo-ckp__consent{display:flex;gap:8px;align-items:center;font-size:13px;color:#555;margin-bottom:12px;cursor:pointer}
.txo-ckp__actions{display:flex;gap:10px;flex-wrap:wrap}
.txo-ckp__msg{margin-top:12px;font-size:14px;font-weight:600}
@media (max-width:560px){ .txo-ckp__row{grid-template-columns:1fr} .txo-ckp{padding:18px 16px} }

/* ============================================================
   №11 — плитки каталога: ровная сетка, кнопка «Запросить цену»,
   иконка корзины в шапке, уведомление о добавлении.
   ============================================================ */
/* ровные карточки: кнопка всегда прижата к низу → одинаковая высота */
.txo-cat-grid2 .txo-pcard, .txo-sale__grid .txo-pcard { height:100%; }
.txo-pcard{ display:flex; flex-direction:column; }
.txo-pcard__b{ display:flex; flex-direction:column; flex:1 1 auto; }
.txo-pcard__b .txo-pcard__btn{ margin-top:auto; }
.txo-pcard__price{ margin-top:6px; }

/* правка №25 (08.07): две кнопки на плитке — «Подробнее» + «В корзину» в один ряд */
.txo-pcard__btns{ display:flex; gap:8px; margin-top:auto; }
.txo-pcard__b .txo-pcard__btns .txo-pcard__btn{ flex:1 1 0; margin-top:8px; padding:9px 4px; }

/* кнопка «Запросить цену» (товары без цены) */
.txo-pcard__btn--req{ background:#f4a520; color:#1b2a4a; border:none; }
.txo-pcard__btn--req:hover{ background:#e5980f; }

/* состояние «Добавлено» */
.txo-pcard__btn.is-added{ background:#1e9e5a !important; color:#fff !important; pointer-events:none; }

/* иконка корзины в шапке — заливка фирменным синим, чтобы была заметна (правка 06.07) */
.txo-cart-ico{ position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:10px; background:#1F4E79; color:#fff; text-decoration:none;
  transition:background .15s; }
.txo-cart-ico:hover{ background:#16305c; }
.txo-cart-ico__cnt{ position:absolute; top:2px; right:2px; min-width:18px; height:18px; padding:0 4px;
  background:#f4a520; color:#1b2a4a; font-size:11px; font-weight:800; line-height:18px;
  text-align:center; border-radius:9px; box-shadow:0 0 0 2px #fff; }
.txo-cart-ico__cnt.is-empty{ display:none; }

/* всплывающее уведомление о добавлении */
#txo-cart-toast{ position:fixed; left:50%; bottom:26px; transform:translate(-50%,20px);
  background:#16305c; color:#fff; padding:13px 22px; border-radius:12px; font-weight:700;
  font-size:15px; box-shadow:0 10px 30px rgba(0,0,0,.25); opacity:0; pointer-events:none;
  z-index:99999; transition:opacity .25s, transform .25s; }
#txo-cart-toast.show{ opacity:1; transform:translate(-50%,0); }

/* №12 — кнопки отправки клиентского КП (страница корзины) */
.txo-ckp__actions{ display:flex; gap:8px; flex-wrap:wrap; }
.txo-ckp__actions .txo-btn{ flex:1 1 auto; }
.txo-btn--tg{ background:#2AABEE; color:#fff; border:none; }
.txo-btn--tg:hover{ background:#1e97d6; }
.txo-btn--max{ background:#7d4dff; color:#fff; border:none; }
.txo-btn--max:hover{ background:#6a3ae6; }

/* №10 — фильтры компрессоров: прокручиваемый список значений */
.txo-fgroup--attr .txo-fscroll{ max-height:180px; overflow-y:auto; padding-right:4px; }
.txo-fgroup--attr .txo-fscroll::-webkit-scrollbar{ width:6px; }
.txo-fgroup--attr .txo-fscroll::-webkit-scrollbar-thumb{ background:#c9d6e5; border-radius:3px; }
.txo-fgroup--attr .txo-fck{ display:flex; align-items:center; gap:6px; }
.txo-fgroup--attr .txo-fck .c{ margin-left:auto; color:#9aa7b8; font-size:12px; }


/* ── правка №14-6: компактный hero на главной ───────────────── */
.txo-hero { padding:26px 0 22px !important; }
.txo-hero h1 { font-size:30px !important; line-height:1.25 !important; margin:10px 0 8px !important; }
.txo-hero__sub { font-size:14px !important; margin-bottom:12px !important; max-width:560px; }
.txo-hero__img { max-width:340px !important; }
.txo-hero__img img { max-height:200px !important; width:auto !important; }
.txo-hero__stats { margin-top:14px !important; gap:20px !important; }
.txo-hero__stat b, .txo-hero__stat strong { font-size:22px !important; }
.txo-hero__actions { margin-top:10px !important; }
.txo-hero::after { width:240px !important; height:240px !important; }
@media (max-width:768px){ .txo-hero { padding:20px 0 16px !important; } .txo-hero h1 { font-size:24px !important; } }

/* ── правка №14-3: фирменные значки соцсетей в подвале ──────── */
.txo-footer__social{display:inline-flex;align-items:center;justify-content:center}
.txo-footer__social svg{width:17px;height:17px;fill:#fff;display:block}
.txo-footer__social--tg{background:#2AABEE !important}
.txo-footer__social--vk{background:#07F !important}

/* ── правка №14-4: клиентский кабинет (WooCommerce My Account) ── */
.woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;border:1px solid #e3e9f0;border-radius:10px;overflow:hidden}
.woocommerce-MyAccount-navigation li{margin:0;border-bottom:1px solid #eef2f7}
.woocommerce-MyAccount-navigation li:last-child{border-bottom:none}
.woocommerce-MyAccount-navigation li a{display:block;padding:11px 16px;color:#1F4E79;font-weight:600;text-decoration:none}
.woocommerce-MyAccount-navigation li.is-active a,.woocommerce-MyAccount-navigation li a:hover{background:#f2f6fb;color:#163a5c}
.woocommerce-MyAccount-content{background:#fff;border:1px solid #e3e9f0;border-radius:10px;padding:20px 22px}
.woocommerce form.login,.woocommerce form.register{border:1px solid #e3e9f0 !important;border-radius:10px !important;padding:22px !important}
#customer_login h2{color:#1F4E79;font-size:20px;font-weight:700}
.woocommerce-form-row label{font-weight:600}
@media(max-width:768px){.woocommerce-MyAccount-navigation ul{display:flex;flex-wrap:wrap}.woocommerce-MyAccount-navigation li{border:none}}

/* ── правки 07.07 ─────────────────────────────────────────── */
/* №28: сервисные плюшки на карточке товара — крупнее и контрастнее */
.txo-trust-icon { font-size: 14px; color: #1b2a4a; font-weight: 600; }
.txo-trust-icon__dot { width: 34px; height: 34px; font-size: 17px; background: #DEEAF1; }

/* №32: корзина в шапке — жёлтый акцент (была синяя, правка Б.3 отменена) */
.txo-cart-ico { background: #f4a520; color: #1b2a4a; }
.txo-cart-ico:hover { background: #e5980f; }
.txo-cart-ico__cnt { background: #1F4E79; color: #fff; }

/* №31: плитки каталога — светлее, фото на белом фоне */
.txo-cat-tile__ic { background: #fff; }
.txo-cat-tile__ic img { object-fit: contain; }

/* ── правки 07.07 ч.2 ─────────────────────────────────────── */
/* №42: вкладки карточки товара — читаемый hover/active */
.txo-tab:hover { background: #EBF3FB; color: #1F4E79; }
.txo-tab.active { background: #1F4E79; color: #fff; border-radius: 8px 8px 0 0; border-bottom-color: #1F4E79; }
/* №42: фильтры — контрастнее заголовки и пункты */
.txo-ftitle { color: #16305c; font-weight: 700; }
.txo-fck .n { color: #1b2a4a; }
/* «сливается»: форма заявки на расчёт — выделить рамкой и тенью */
.txo-lead { background: #fff !important; border: 1px solid #c9d6e5 !important; border-radius: 14px; box-shadow: 0 8px 26px rgba(31,78,121,.10); margin-top: 18px; }
.txo-lead__form input, .txo-lead__form textarea { background: #f7fafd; }
/* №43: логотип в шапке чуть больше */
.txo-header .txo-logo .txo-logo__img, .txo-header .txo-logo img, body.woocommerce .txo-logo__img, body.archive .txo-logo__img { height: 68px !important; }
@media (max-width: 480px){ .txo-header .txo-logo .txo-logo__img, body.woocommerce .txo-logo__img, body.archive .txo-logo__img { height: 50px !important; } }

/* ── правки 13.07 (№37/№38) ─────────────────────────────── */
/* №38: одна кнопка «Оставить заявку на расчёт» с выпадающим меню */
.txo-lead-dd { position: relative; }
.txo-lead-dd__t { width: 100%; }
.txo-lead-dd__ar { font-size: 12px; margin-left: 6px; transition: transform .15s; display: inline-block; }
.txo-lead-dd.open .txo-lead-dd__ar { transform: rotate(180deg); }
.txo-lead-dd__menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid #c9d6e5; border-radius: 12px; box-shadow: 0 10px 30px rgba(31,78,121,.18); z-index: 60; overflow: hidden; }
.txo-lead-dd__menu a { display: block; padding: 12px 16px; color: #16305c; font-weight: 600; text-decoration: none; border-bottom: 1px solid #eef3f8; }
.txo-lead-dd__menu a:last-child { border-bottom: none; }
.txo-lead-dd__menu a:hover { background: #EBF3FB; color: #1F4E79; }
/* №37: форма-минимум — телефон + кнопка в одну строку */
.txo-lead__quick { display: flex; gap: 8px; }
.txo-lead__quick input[type=tel] { flex: 1; min-width: 0; }
.txo-lead__quick .txo-btn { white-space: nowrap; }
@media (max-width: 560px){ .txo-lead__quick { flex-direction: column; } }
.txo-lead__more { margin-top: 4px; }
.txo-lead__more summary { cursor: pointer; color: #1F4E79; font-size: 13px; padding: 4px 0; user-select: none; }
.txo-lead__more summary:hover { text-decoration: underline; }
.txo-lead__more[open] summary { margin-bottom: 8px; }
.txo-lead__more > input, .txo-lead__more > textarea { width: 100%; margin-top: 8px; }

/* ── правки 15.07 (по скринам Алексея) ───────────────────── */
/* кнопка «Оставить заявку на расчёт» — фирменный янтарный, не сливается с «В корзину» */
.txo-lead-dd__t.txo-btn--primary { background: linear-gradient(135deg, #F4A52D, #ED8C00); border-color: #ED8C00; color: #1a2744; font-weight: 700; }
.txo-lead-dd__t.txo-btn--primary:hover { background: linear-gradient(135deg, #ED8C00, #DB7F00); color: #fff; }
/* форма заявки на расчёт — заметное выделение (жёлтая рамка, как акцент Т-Банка) */
.txo-lead { border: 2px solid #F4A52D !important; box-shadow: 0 8px 26px rgba(244, 165, 45, .25) !important; }
.txo-lead__title { color: #1F4E79; }
.txo-lead__quick .txo-btn--primary { background: linear-gradient(135deg, #F4A52D, #ED8C00); border-color: #ED8C00; color: #1a2744; font-weight: 700; }
.txo-lead__quick .txo-btn--primary:hover { background: linear-gradient(135deg, #ED8C00, #DB7F00); color: #fff; }
/* обложки блога: квадратные фото товаров не растягивать в 16/9 */
.ast-article-post .post-thumb-img-content img { object-fit: contain; background: #fff; }

/* 15.07: переключатель Лизинг/Кредит в калькуляторе — крупнее */
.txo-calc__switch .txo-calc__tab { font-size: 16px; padding: 12px 30px; font-weight: 700; }
/* подпись фиксированной ставки */
.txo-calc__fixed { font-size: 12px; color: #5F5F5F; font-weight: 400; margin-left: 8px; }

/* 15.07: кнопка заявки — читаемость: сплошной жёлтый + чёрный текст (стиль банка) */
.txo-lead-dd__t.txo-btn--primary,
.txo-lead__quick .txo-btn--primary { background: #FFC400 !important; border-color: #FFC400 !important; color: #111 !important; font-weight: 800; font-size: 15px; text-shadow: none; }
.txo-lead-dd__t.txo-btn--primary:hover,
.txo-lead__quick .txo-btn--primary:hover { background: #F4A52D !important; border-color: #F4A52D !important; color: #111 !important; }
.txo-lead-dd__t .txo-lead-dd__ar { color: #111; }

/* ===== Правки 21.07: блок AI-консультанта под статьями + подстраховки ===== */
.single-post .txo-askai{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
  margin:28px 0 6px;padding:20px 22px;background:#EBF3FB;border:1px solid #DEEAF1;border-radius:12px}
.txo-askai__txt{display:flex;flex-direction:column;gap:4px}
.txo-askai__txt strong{font-family:Oswald,Arial,sans-serif;font-size:18px;color:#1F4E79}
.txo-askai__txt span{color:#5F5F5F;font-size:14px}
.txo-askai__btn{background:#1F4E79;color:#fff;border:none;border-radius:8px;padding:12px 20px;font-weight:bold;cursor:pointer;font-size:15px}
.txo-askai__btn:hover{background:#163a5c}
/* №4: прячем навигацию Prev/Next и хвост комментариев на записях */
.single-post nav.post-navigation,.single-post .ast-single-post-navigation-wrapper{display:none!important}
.single-post .comments-area{display:none!important}

/* ===== Правки 21.07 ч.2: 4 направления каталога на главной ===== */
.txo-dir-cb{display:none}
.txo-dir-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
@media(max-width:900px){.txo-dir-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.txo-dir-grid{grid-template-columns:1fr}}
/* правки 21.07 ч.4: направления каталога выделены ярче — синяя рамка, крупные иконки на синем фоне */
.txo-dir-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;background:#fff;
  border:2px solid #B9D3EA;border-radius:14px;padding:26px 16px;cursor:pointer;text-decoration:none;
  box-shadow:0 4px 14px rgba(31,78,121,.08);
  transition:box-shadow .15s,border-color .15s,background .15s,transform .15s}
.txo-dir-card:hover{border-color:#0E5AA7;box-shadow:0 10px 26px rgba(31,78,121,.20);transform:translateY(-3px)}
.txo-dir-card .txo-cat-card__icon{width:64px;height:64px;border-radius:14px;background:linear-gradient(150deg,#1F4E79,#0E5AA7);display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(14,90,167,.28)}
.txo-dir-card .txo-cat-card__icon svg{stroke:#fff;width:34px;height:34px}
.txo-dir-card__name{font-family:Oswald,Arial,sans-serif;font-size:20px;color:#123A5C;font-weight:700;line-height:1.2}
.txo-dir-card__sub{color:#5F5F5F;font-size:13px}
.txo-dir-card__arr{color:#1F4E79;font-size:13px;transition:transform .15s}
.txo-dir-panel{display:none;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px;background:#fff;
  border:1px solid #DEEAF1;border-radius:12px;padding:18px}
@media(max-width:768px){.txo-dir-panel{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.txo-dir-panel{grid-template-columns:1fr}}
#txodir-gruz:checked ~ .txo-dir-panel--gruz,
#txodir-legk:checked ~ .txo-dir-panel--legk,
#txodir-zap:checked ~ .txo-dir-panel--zap{display:grid}
#txodir-gruz:checked ~ .txo-dir-grid [for="txodir-gruz"],
#txodir-legk:checked ~ .txo-dir-grid [for="txodir-legk"],
#txodir-zap:checked ~ .txo-dir-grid [for="txodir-zap"]{border-color:#1F4E79;background:#EBF3FB}
#txodir-gruz:checked ~ .txo-dir-grid [for="txodir-gruz"] .txo-dir-card__arr,
#txodir-legk:checked ~ .txo-dir-grid [for="txodir-legk"] .txo-dir-card__arr,
#txodir-zap:checked ~ .txo-dir-grid [for="txodir-zap"] .txo-dir-card__arr{transform:rotate(180deg)}
.txo-dir-link{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 13px;
  border:1px solid #EBF3FB;border-radius:8px;color:#1F4E79;text-decoration:none;font-size:14px;background:#F8FBFE}
.txo-dir-link:hover{background:#EBF3FB;border-color:#DEEAF1}
.txo-dir-link span{color:#5F5F5F;font-size:12px;white-space:nowrap}
.txo-dir-link--all{grid-column:1/-1;justify-content:center;background:#1F4E79;color:#fff;font-weight:600}
.txo-dir-link--all:hover{background:#163a5c;color:#fff;border-color:#163a5c}

/* ===== Правки 21.07 ч.3: страница «Сервис и ремонт» ===== */
.txo-serv-hero{background:linear-gradient(135deg,#1F4E79,#163a5c);color:#fff;border-radius:14px;padding:38px 34px;margin-bottom:26px}
.txo-serv-hero h1{color:#fff;margin:0 0 10px;font-family:Oswald,Arial,sans-serif}
.txo-serv-hero p{color:#DEEAF1;max-width:760px;margin:0 0 16px}
.txo-serv-hero__badges{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 20px}
.txo-serv-hero__badges span{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:20px;padding:6px 14px;font-size:13px}
.txo-serv-hero__cta{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.txo-serv-hero__phone{font-family:Oswald,Arial,sans-serif;font-size:26px;color:#FFD600;text-decoration:none;font-weight:600}
.txo-serv-hero__phone small{display:block;font-size:12px;color:#DEEAF1;font-family:Montserrat,Arial,sans-serif;font-weight:400}
.txo-serv-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0 30px}
@media(max-width:900px){.txo-serv-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.txo-serv-grid{grid-template-columns:1fr}}
.txo-serv-card{background:#fff;border:1px solid #DEEAF1;border-radius:12px;padding:20px}
.txo-serv-card__tag{display:inline-block;background:#EBF3FB;color:#1F4E79;border-radius:6px;padding:3px 10px;font-size:12px;font-weight:600;margin-bottom:8px}
.txo-serv-card h3{color:#1F4E79;margin:0 0 8px;font-size:17px;font-family:Oswald,Arial,sans-serif}
.txo-serv-card ul{margin:0 0 10px;padding-left:18px;color:#444;font-size:14px}
.txo-serv-card li{margin:3px 0}
.txo-serv-card__note{color:#5F5F5F;font-size:13px;border-top:1px dashed #DEEAF1;padding-top:8px}
.txo-serv-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0 30px}
@media(max-width:900px){.txo-serv-steps{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.txo-serv-steps{grid-template-columns:1fr}}
.txo-serv-step{background:#F8FBFE;border:1px solid #EBF3FB;border-radius:10px;padding:14px 16px}
.txo-serv-step b{display:block;color:#1F4E79;margin-bottom:4px}
.txo-serv-step i{font-style:normal;display:inline-flex;width:26px;height:26px;border-radius:50%;background:#1F4E79;color:#fff;align-items:center;justify-content:center;font-size:13px;margin-bottom:8px}
.txo-serv-step p{margin:0;color:#555;font-size:13px}
.txo-serv-brands{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 30px}
.txo-serv-brands span{background:#fff;border:1px solid #DEEAF1;border-radius:8px;padding:7px 14px;font-size:13px;color:#1F4E79;font-weight:600}
.txo-serv-form{background:#EBF3FB;border:1px solid #DEEAF1;border-radius:14px;padding:26px;max-width:720px}
.txo-serv-form h2{margin-top:0}
.txo-serv-form__row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
@media(max-width:560px){.txo-serv-form__row{grid-template-columns:1fr}}
.txo-serv-form input,.txo-serv-form textarea{width:100%;border:1px solid #cfdeeb;border-radius:8px;padding:11px 13px;font:inherit;background:#fff}
.txo-serv-form textarea{min-height:80px;resize:vertical;margin-bottom:12px}
.txo-serv-form label.txo-serv-consent{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:#555;margin-bottom:14px}
.txo-serv-form button{background:#1F4E79;color:#fff;border:none;border-radius:8px;padding:13px 26px;font-weight:bold;font-size:15px;cursor:pointer}
.txo-serv-form button:hover{background:#163a5c}
.txo-serv-form__msg{margin-top:10px;font-size:14px}
.txo-serv-h2{font-family:Oswald,Arial,sans-serif;color:#1F4E79}
