/**
 * Перезапись глобальных переменных Elementor нашей палитрой/шрифтами.
 * Грузится после Hello Elementor и Elementor — поэтому переопределение работает.
 *
 * Все Elementor-виджеты, которые ссылаются на «Primary Color», «Primary Typography»
 * и т.п., автоматически получают эти значения. Можно использовать дальше из Elementor.
 */

:root {
  /* === Цвета === */
  --e-global-color-primary:   #b8804f;
  --e-global-color-secondary: #132A36;
  --e-global-color-text:      #6E7A84;
  --e-global-color-accent:    #2d6a4f;

  /* InTech-специфичные (на случай если кто-то использует напрямую) */
  --e-global-color-intech-deep:    #6e4a2c;
  --e-global-color-intech-soft:    rgba(184, 128, 79, .10);
  --e-global-color-intech-bg-soft: #F7F7F7;

  /* === Типографика === */
  --e-global-typography-primary-font-family:   'Unbounded', sans-serif;
  --e-global-typography-primary-font-weight:   700;

  --e-global-typography-secondary-font-family: 'Golos Text', sans-serif;
  --e-global-typography-secondary-font-weight: 600;

  --e-global-typography-text-font-family:      'Golos Text', sans-serif;
  --e-global-typography-text-font-weight:      400;

  --e-global-typography-accent-font-family:    'Unbounded', sans-serif;
  --e-global-typography-accent-font-weight:    500;
}

/* Базовая типографика — для контента не из Elementor (страницы, посты, виджеты). */
body,
p,
.elementor-widget-text-editor {
  font-family: 'Golos Text', sans-serif;
  color: #6E7A84;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: 'Unbounded', sans-serif;
  color: #132A36;
}

a {
  color: #b8804f;
}

a:hover {
  color: #9c6839;
}

/* Базовые ссылки в content-area. */
.entry-content a:hover,
.page-content a:hover {
  text-decoration: underline;
}

/* Текст-фолбэк лого, пока клиент не залил картинку через ACF. */
.logo__text {
  display: inline-block;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #132A36;
}
.footer .logo__text {
  color: #132A36;
}

/* ========================================================================
   ОВЕРРАЙДЫ HELLO ELEMENTOR / ELEMENTOR
   Hello Elementor добавляет дефолтные hover/transition к ссылкам и кнопкам,
   а Elementor — к виджетам. Эти правила должны выигрывать специфичность.
   ======================================================================== */

/* Анти-«розовый» — Elementor / WP / другие плагины подкидывают свои focus/active
   с пинком и outlines. Гасим всё это и ставим свои состояния. */
body button,
body .btn,
body a.btn,
body button.btn,
body input,
body select,
body textarea {
  outline: none !important;
}

body button:focus,
body button:focus-visible,
body button:active,
body .btn:focus,
body .btn:focus-visible,
body .btn:active,
body a.btn:focus,
body a.btn:focus-visible,
body a:focus,
body a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Принудительно держим коричневый/тёмный для основных кнопок — Elementor любит
   подкинуть свой default «brand color» (часто розовый). */
body .btn--primary,
body button.btn--primary,
body a.btn--primary,
body .btn--primary:focus,
body .btn--primary:focus-visible,
body .btn--primary:active {
  background-color: #b8804f !important;
  color: #fff !important;
  border: 1px solid #b8804f !important;
}
body .btn--primary:hover {
  background-color: #9c6839 !important;
  border-color: #9c6839 !important;
  color: #fff !important;
}

/* Ghost-кнопки */
body .btn--ghost,
body .btn--ghost:focus,
body .btn--ghost:active {
  background: transparent !important;
  color: #132A36 !important;
  border: 1px solid rgba(19, 42, 54, .15) !important;
}
body .btn--ghost:hover {
  border-color: #b8804f !important;
  color: #b8804f !important;
}

/* Инпуты — фокус-рамка коричневая, не розовая. */
body input:focus,
body textarea:focus,
body select:focus {
  border-color: #b8804f !important;
  box-shadow: 0 0 0 3px rgba(184, 128, 79, .15) !important;
}

/* Карточки .product__add — кружок «+» в карточках товара. */
body .product__add,
body .product__add:focus,
body .product__add:active {
  background: #b8804f !important;
  color: #fff !important;
  border: 1px solid #b8804f !important;
}
body .product__add:hover {
  background: #9c6839 !important;
  border-color: #9c6839 !important;
}

/* Tabs «Все/Подшипники/РТИ/Смазки» — активная вкладка. */
body .tabs__btn:focus,
body .tabs__btn:active {
  outline: none !important;
  box-shadow: none !important;
}
body .tabs__btn.is-active {
  background: #132A36 !important;
  color: #fff !important;
}

/* Hero-стрелки/точки — без розового. */
body .hero__arrow:focus,
body .hero__arrow:active,
body .hero__dot:focus,
body .hero__dot:active {
  outline: none !important;
  box-shadow: none !important;
}
body .hero__dot.is-active {
  background: #b8804f !important;
}

/* Бэйдж «В наличии» — наш зелёно-чёрный, без подмены цветов. */
body .product__badge {
  background: rgba(45, 106, 79, .10) !important;
  border-color: #2d6a4f !important;
  color: #000 !important;
}

/* Кнопки лендинга — гарантируем нашу палитру и hover-поведение. */
body .btn,
body a.btn,
body button.btn {
  transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
body .btn--primary:hover,
body a.btn--primary:hover,
body button.btn--primary:hover {
  background: var(--accent-hover, #9c6839);
  color: #fff;
  transform: translateY(-1px);
}
body .btn--ghost:hover {
  border-color: var(--accent, #b8804f);
  color: var(--accent, #b8804f);
}

/* Ссылки в нашем контенте: убираем дефолтное подчёркивание/hover Hello Elementor. */
body .topbar a,
body .header a,
body .nav a,
body .hero a,
body .footer a,
body .request a,
body .modal a,
body .product__add,
body .cat,
body .dept__item,
body .brand,
body .section__all {
  text-decoration: none;
}
body .topbar a:hover {
  color: #fff;
  text-decoration: none;
}

/* Карточки .cat / .product / .dept__item — наш hover-эффект (lift + бордер, без тени). */
body .cat:hover,
body .product:hover {
  transform: translateY(-3px);
  border-color: var(--accent, #b8804f);
}
body .dept__item:hover {
  background: var(--accent-soft, rgba(184, 128, 79, .10));
  color: var(--accent, #b8804f);
}

/* Сайдбар «Все категории» — центрировать иконку/текст/бейдж по вертикали,
   чтобы при переносе текста в 2 строки иконка и счётчик не висели сверху. */
body .dept__item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
body .dept__item i {
  flex: 0 0 22px !important;
  width: 22px !important;
  text-align: center !important;
  align-self: center !important;
  font-size: 16px !important;
}
body .dept__item .dept__count {
  flex: 0 0 auto !important;
  align-self: center !important;
  margin-left: auto !important;
}

/* Hello Elementor задаёт line-height/margin для h1-h6 — гарантируем наши значения. */
body .hero__title,
body .section__title,
body h1.hero__title,
body h2.section__title {
  line-height: 1.1;
}

/* Иконки FA внутри кнопок — без hover-подчёркивания. */
body .btn i,
body .btn:hover i {
  text-decoration: none;
}

/* ========================================================================
   GTRANSLATE — стилизация под топбар (на месте бывшего блока RU/KZ).
   Поддерживаем самые ходовые виды виджета: «Plain List», «Dropdown», «Flags».
   ======================================================================== */

.topbar .lang--gt {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Plain List / Flags — дефолт: прозрачный фон, светлый текст. */
.topbar .lang--gt .gtranslate_wrapper a.glink,
.topbar .lang--gt .gt_languages a {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .75) !important;
  background: transparent !important;
  font-family: 'Golos Text', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .04em;
  padding: 5px 10px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  transition: background .15s ease, color .15s ease !important;
}

/* Наведение на НЕтекущий — лёгкая подсветка. */
.topbar .lang--gt .gtranslate_wrapper a.glink:not(.gt-current-lang):hover,
.topbar .lang--gt .gt_languages a:hover {
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
}

/* Текущий язык — коричневая плашка. */
.topbar .lang--gt .gtranslate_wrapper a.glink.gt-current-lang,
.topbar .lang--gt .gtranslate_wrapper a.glink.gt-current-lang:hover {
  background: var(--accent, #b8804f) !important;
  color: #fff !important;
}

/* Dropdown */
.topbar .lang--gt select.gt_selector,
.topbar .lang--gt .gtranslate_wrapper select {
  background: transparent;
  color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: 4px 26px 4px 10px;
  border-radius: 4px;
  font-family: 'Golos Text', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.topbar .lang--gt select.gt_selector option {
  color: #132A36;
  background: #fff;
}

/* Иконки флагов */
.topbar .lang--gt img.gt_flag,
.topbar .lang--gt img.gt-current-lang-flag,
.topbar .lang--gt .gflag {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
}

/* ========================================================================
   АНТИ-РОЗОВЫЙ — глобальный кейс
   У Elementor / Hello Elementor / некоторых плагинов идёт пинк по умолчанию
   на :focus и :active. Выкорчёвываем тотально.
   ======================================================================== */
*:focus,
*:focus-visible,
*:active {
  outline-color: #b8804f !important;
}
button:focus,
button:focus-visible,
button:active,
a:focus,
a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* === ТОПБАР — фиксируем тёмный фон (Hello Elementor / плагины делают его прозрачным) === */
body .topbar {
  background: #1a1814 !important;
  color: rgba(255, 255, 255, .85) !important;
}
body .topbar,
body .topbar a,
body .topbar .topbar__item,
body .topbar .topbar__item:visited {
  color: rgba(255, 255, 255, .85) !important;
}
body .topbar a:hover,
body .topbar .topbar__item:hover {
  color: #b8804f !important;       /* коричневый акцент — читаемо на тёмном */
  background: transparent !important;
  text-decoration: none !important;
}

/* === GTRANSLATE — финальная версия === */
body .topbar .lang--gt .gtranslate_wrapper {
  display: flex !important;
  gap: 4px !important;
}
body .topbar .lang--gt .gtranslate_wrapper a.glink {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: rgba(255, 255, 255, .85) !important;
  background: transparent !important;
  font-family: 'Golos Text', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  padding: 5px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  text-decoration: none !important;
}
body .topbar .lang--gt .gtranslate_wrapper a.glink:not(.gt-current-lang):hover {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
}
body .topbar .lang--gt .gtranslate_wrapper a.glink.gt-current-lang,
body .topbar .lang--gt .gtranslate_wrapper a.glink.gt-current-lang:hover {
  background: #b8804f !important;
  color: #fff !important;
  border-color: #b8804f !important;
}

/* === КНОПКА «КАТАЛОГ ТОВАРОВ» в навигации === */
body .nav__catalog,
body .nav__catalog:focus,
body .nav__catalog:focus-visible,
body .nav__catalog:active {
  background: #b8804f !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
body .nav__catalog:hover {
  background: #9c6839 !important;
}

/* === HERO — стрелки и точки пагинации === */
body .hero__arrow,
body .hero__arrow:focus,
body .hero__arrow:focus-visible,
body .hero__arrow:active {
  background: #fff !important;
  color: #132A36 !important;
  border: 1px solid rgba(19, 42, 54, .10) !important;
  outline: none !important;
  box-shadow: none !important;
}
body .hero__arrow:hover {
  background: #b8804f !important;
  color: #fff !important;
  border-color: #b8804f !important;
}
body .hero__dot,
body .hero__dot:focus,
body .hero__dot:focus-visible,
body .hero__dot:active {
  background: rgba(19, 42, 54, .25) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
body .hero__dot:hover,
body .hero__dot.is-active {
  background: #b8804f !important;
}

/* === TABS «Все / Подшипники / РТИ / Смазки» === */
body .tabs__btn,
body .tabs__btn:focus,
body .tabs__btn:focus-visible,
body .tabs__btn:active {
  background: #fff !important;
  color: #132A36 !important;
  border: 1px solid rgba(19, 42, 54, .10) !important;
  outline: none !important;
  box-shadow: none !important;
}
body .tabs__btn:hover {
  background: #fff !important;
  color: #b8804f !important;
  border-color: #b8804f !important;
}
body .tabs__btn.is-active,
body .tabs__btn.is-active:hover {
  background: #132A36 !important;
  color: #fff !important;
  border-color: #132A36 !important;
}

/* === ПОИСК В ШАПКЕ — фиксируем габариты и стили === */
body .search {
  display: block !important;
  width: 100% !important;
}

/* На планшете-узком и мобилке поиск из шапки скрываем (как было в оригинале).
   Без этого правила !important на display:block перебивает мобильное скрытие. */
@media (max-width: 900px) {
  body .search,
  body .search__field,
  body .search__hints,
  body .search__input,
  body .search__select,
  body .search__submit {
    display: none !important;
  }
}
body .search__field {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100% !important;
  background: #fff !important;
  border: 1px solid rgba(19, 42, 54, .15) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  padding: 0 !important;
  height: 46px !important;
}
body .search__field:focus-within {
  border-color: #b8804f !important;
  box-shadow: none !important;
  outline: none !important;
}
/* Селект — снимаем фокусную обводку/тень полностью. */
body .search__select:focus,
body .search__select:focus-visible,
body .search__select:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
/* Инпут — то же самое. */
body .search__input:focus,
body .search__input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
/* Submit — без фокусной тени. */
body .search__submit:focus,
body .search__submit:focus-visible,
body .search__submit:active {
  outline: none !important;
  box-shadow: none !important;
}
/* SELECT — фиксированная ширина, не распирает контейнер. */
body .search__select {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 160px !important;
  display: inline-block !important;
  background: #f7f7f7 !important;
  border: none !important;
  border-right: 1px solid rgba(19, 42, 54, .10) !important;
  padding: 0 30px 0 14px !important;
  color: #132A36 !important;
  font: 600 14px 'Golos Text', sans-serif !important;
  cursor: pointer !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1l4 4 4-4' stroke='%23132A36' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
}
/* INPUT — занимает всё оставшееся пространство, гарантированно виден. */
body .search__input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: none !important;
  background: transparent !important;
  padding: 0 14px !important;
  height: 100% !important;
  font: 400 14px 'Golos Text', sans-serif !important;
  color: #132A36 !important;
  outline: none !important;
  box-shadow: none !important;
}
body .search__input::placeholder {
  color: #6E7A84 !important;
  opacity: 1 !important;
}
/* SUBMIT — фиксированная ширина, всегда виден. */
body .search__submit {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 60px !important;
  background: #b8804f !important;
  color: #fff !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  outline: none !important;
}
body .search__submit:hover {
  background: #9c6839 !important;
}

/* === АНТИ-СКРОЛЛ ПО ГОРИЗОНТАЛИ (мобилка) === */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}
/* На мобилке принудительно ужимаем .container, чтобы карточки/секции
   не выпирали за вьюпорт. Десктопный max-width оригинала не трогаем. */
@media (max-width: 900px) {
  body .container {
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* === БУРГЕР — гасим розовый, делаем брендовым === */
body .header__burger,
body .header__burger:focus,
body .header__burger:focus-visible,
body .header__burger:active {
  background: #fff !important;
  color: #132A36 !important;
  border: 1px solid rgba(19, 42, 54, .15) !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
  font-size: 18px !important;
}
body .header__burger:hover {
  background: rgba(184, 128, 79, .10) !important;
  border-color: #b8804f !important;
  color: #b8804f !important;
}
body .header__burger.is-active {
  background: #b8804f !important;
  color: #fff !important;
  border-color: #b8804f !important;
}

/* На десктопе/широком планшете бургер скрываем — нав уже видна. */
@media (min-width: 901px) {
  body .header__burger { display: none !important; }
}

/* === ЗАЗОР между шапкой и hero на мобилке === */
@media (max-width: 900px) {
  body .header { margin-bottom: 12px !important; }
  body .hero {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
}

/* Кнопка hero не должна сливаться с точками-пагинацией.
   .hero__nav — position: absolute, поэтому margin/padding на actions её не двигает.
   Добавляем padding-bottom самому слайду — контент кончается выше зоны точек. */
body .hero__slide,
body .hero__slide-content {
  padding-bottom: 64px !important;
}
body .hero__nav {
  bottom: 18px !important;
}
@media (max-width: 900px) {
  body .hero__slide,
  body .hero__slide-content {
    padding-bottom: 56px !important;
  }
}

/* === SIZE-BAR — поле номенклатурного номера на всю ширину === */
body .size-bar__field--part {
  grid-column: 1 / -1 !important;
}
body .size-bar__field--part input {
  width: 100% !important;
}
/* Фокус показывает сама плашка поля (:focus-within) — общая рамка инпутов
   давала внутри неё второе кольцо. */
body .size-bar__field input:focus,
body .size-bar__field select:focus {
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* === БРЕНДЫ — карусель-marquee с бесшовным циклом === */
body .brands__list {
  display: block !important;
  overflow: hidden !important;
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  /* Маска по краям — лого плавно появляются и исчезают, без жёсткого среза. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
body .brands__list-track {
  display: flex !important;
  align-items: center !important;
  gap: 30px !important;
  width: max-content !important;
  padding: 4px 0 !important;
  animation: intech-brands-marquee 45s linear infinite;
  will-change: transform;
}
body .brands__list:hover .brands__list-track,
body .brands__list:focus-within .brands__list-track {
  animation-play-state: paused;
}
@keyframes intech-brands-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Каждая плашка бренда — фиксированный габарит, чтобы лого не «прыгали». */
body .brand {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 140px !important;
  min-height: 64px !important;
  padding: 8px 16px !important;
  background: transparent !important;
  border: none !important;
}

body .brand img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  /* Белый фон зашит в сами картинки — скругляем их, радиус как у кнопок. */
  border-radius: 8px;
  /* Логотипы в родных цветах (просьба клиента 19.10.2026), без серого фильтра. */
  transition: transform .25s ease;
}
body .brand:hover img {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  body .brands__list-track {
    gap: 32px !important;
    animation-duration: 32s;
  }
  body .brand {
    min-width: 110px !important;
    min-height: 50px !important;
    padding: 6px 10px !important;
  }
  body .brand img {
    max-height: 40px;
    border-radius: 6px;
  }
}

/* Уважение к prefers-reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  body .brands__list-track {
    animation: none !important;
  }
}

/* === МОБИЛЬНОЕ МЕНЮ-ДРАВЕР === */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(19, 42, 54, .6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  /* Закрытое меню прячем целиком: иначе его тень торчала полосой у правого края
     на всех страницах, а ссылки ловили Tab с клавиатуры. */
  visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(19, 42, 54, .12);
  padding: 0;
}
body.is-menu-open { overflow: hidden !important; }
body.is-menu-open .mobile-menu { transform: translateX(0); visibility: visible; transition: transform .3s ease; }
body.is-menu-open .mobile-menu-backdrop { opacity: 1; pointer-events: auto; }

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(19, 42, 54, .08);
}
.mobile-menu__title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #132A36;
}
.mobile-menu__close {
  background: transparent;
  border: none;
  font-size: 22px;
  color: #132A36;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  outline: none !important;
  box-shadow: none !important;
}
.mobile-menu__close:hover {
  background: rgba(184, 128, 79, .10);
  color: #b8804f;
}

.mobile-menu__search {
  display: flex;
  gap: 0;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(19, 42, 54, .08);
}
.mobile-menu__search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(19, 42, 54, .15);
  border-right: none;
  border-radius: 6px 0 0 6px;
  font: 400 14px 'Golos Text', sans-serif;
  color: #132A36;
  background: #fff;
  outline: none !important;
  box-shadow: none !important;
}
.mobile-menu__search input[type="search"]::placeholder { color: #6E7A84; opacity: 1; }
.mobile-menu__search button {
  flex: 0 0 auto;
  width: 50px;
  height: 44px;
  background: #b8804f;
  color: #fff;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  outline: none !important;
}

.mobile-menu__nav {
  padding: 12px 0;
  flex: 1 1 auto;
}
.mobile-menu__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu__nav li { margin: 0; }
.mobile-menu__nav a {
  display: block;
  padding: 14px 20px;
  color: #132A36;
  font: 600 15px 'Golos Text', sans-serif;
  text-decoration: none;
  border-bottom: 1px solid rgba(19, 42, 54, .04);
  transition: background .15s ease, color .15s ease;
}
.mobile-menu__nav a:hover {
  background: rgba(184, 128, 79, .08);
  color: #b8804f;
}

.mobile-menu__contacts {
  padding: 18px 20px;
  border-top: 1px solid rgba(19, 42, 54, .08);
  background: #F7F7F7;
}
.mobile-menu__contact {
  display: block;
  color: #132A36;
  text-decoration: none;
  font-family: 'Golos Text', sans-serif;
  margin-bottom: 6px;
}
.mobile-menu__contact span { display: block; font-size: 12px; color: #6E7A84; }
.mobile-menu__contact strong { font-size: 15px; color: #132A36; font-weight: 600; }

.mobile-menu__cta,
body .mobile-menu__cta {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: calc(100% - 40px) !important;
  max-width: calc(100% - 40px) !important;
  margin: 18px 20px !important;
  padding: 14px 12px !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* === Кнопка закрытия модалки — гасим розовый фокус === */
body .modal__close,
body .modal__close:focus,
body .modal__close:focus-visible,
body .modal__close:active {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #132A36 !important;
  cursor: pointer !important;
}
body .modal__close:hover {
  background: rgba(184, 128, 79, .10) !important;
  color: #b8804f !important;
}

/* === Запасной CTA вместо второго телефона в навигации === */
body .nav__cta,
body .nav__cta:focus,
body .nav__cta:focus-visible,
body .nav__cta:active {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #b8804f !important;
  color: #fff !important;
  font-family: 'Unbounded', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 10px 18px !important;
  border-radius: 6px !important;
  border: none !important;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
body .nav__cta:hover {
  background: #9c6839 !important;
  color: #fff !important;
}

/* ========================================================================
   СВЕТЛЫЙ ФУТЕР — белый фон, тёмный контент
   ======================================================================== */
body .footer {
  background: #fff !important;
  color: #6E7A84 !important;
  border-top: 1px solid rgba(19, 42, 54, .08) !important;
}
body .footer h4,
body .footer .footer__brand .logo__text,
body .footer .footer__contact strong {
  color: #132A36 !important;
}
body .footer p,
body .footer .footer__tag,
body .footer .footer__addr,
body .footer .footer__contact span {
  color: #6E7A84 !important;
}
body .footer a {
  color: #132A36 !important;
  text-decoration: none !important;
  transition: color .15s ease !important;
}
body .footer a:hover {
  color: #b8804f !important;
  background: transparent !important;
}
body .footer .footer__contact:hover strong {
  color: #b8804f !important;
}
body .footer__bot {
  border-top: 1px solid rgba(19, 42, 54, .08) !important;
  color: #6E7A84 !important;
}

/* Соцсети — светлая плашка с акцентным наведением. */
body .footer__socials a,
body .footer__socials a:focus,
body .footer__socials a:active {
  background: rgba(184, 128, 79, .10) !important;
  color: #b8804f !important;
  border: 1px solid transparent !important;
  outline: none !important;
  box-shadow: none !important;
}
body .footer__socials a:hover {
  background: #b8804f !important;
  color: #fff !important;
}

/* На мобилке — лёгкий разделитель сверху колонок. */
@media (max-width: 900px) {
  body .footer__col {
    padding-top: 16px !important;
    border-top: 1px solid rgba(19, 42, 54, .06) !important;
  }
  body .footer__brand {
    border-top: none !important;
    padding-top: 0 !important;
  }
  /* Лого в футере крупнее на мобилке. */
  body .footer__brand img {
    max-width: 200px !important;
    width: 200px !important;
    height: auto !important;
  }
  body .footer .logo__text {
    font-size: 32px !important;
    letter-spacing: -0.02em !important;
  }
}

/* ========================================================================
   МОДАЛКА — поверх мобильного drawer'а (drawer 9999).
   Внутри .modal — backdrop ДОЛЖЕН быть НИЖЕ panel'а, иначе он перехватывает
   клики и не даёт заполнить форму.
   ======================================================================== */
body .modal {
  z-index: 10001 !important;
}
body .modal__backdrop {
  z-index: 1 !important;
}
body .modal__panel {
  z-index: 2 !important;
  position: relative !important;
}

/* ========================================================================
   КАТЕГОРИИ НА МОБИЛКЕ — ужимаем заголовки/паддинги, чтобы влезали
   в 2 колонки на узких экранах без вылезания.
   ======================================================================== */
@media (max-width: 560px) {
  body .cats {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  body .cat {
    padding: 14px !important;
    min-width: 0 !important;
  }
  body .cat__title {
    font-size: 16px !important;
    line-height: 1.2 !important;
    margin: 6px 0 6px !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
  }
  body .cat__count {
    font-size: 10px !important;
    letter-spacing: .04em !important;
  }
  body .cat__desc {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }
  body .cat__cta {
    font-size: 12px !important;
  }
  body .cat__img {
    aspect-ratio: 1 / 1 !important;
    margin-bottom: 8px !important;
  }
  body .cat__img svg {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* На совсем узких — 1 колонка, чтобы текст точно не резался. */
@media (max-width: 360px) {
  body .cats {
    grid-template-columns: 1fr !important;
  }
  body .cat__title { font-size: 18px !important; }
  body .cat__desc  { font-size: 13px !important; }
}
