/* UX #8068485 - Юзабилити kedrweld.ru (2026) */

/* =========================================================
   1. Хедер и верхняя сервисная панель (п. 3.1.1, 3.1.3)
   ========================================================= */
.kedr-header-topbar {
  background: #141418;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
  font-size: 13px;
}

.kedr-header-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  padding: 4px 0;
  flex-wrap: wrap;
}

.kedr-header-topbar__city {
  display: flex;
  align-items: center;
}

.kedr-header-topbar__hours {
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.kedr-header-topbar__socials.socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.kedr-header-topbar__socials.socials ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kedr-header-topbar__socials.socials li {
  margin: 0;
  display: flex;
}

.kedr-header-topbar__email.header_contact_email_wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  position: relative;
}

.kedr-header-topbar__email .header-contact__mail {
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  max-width: none !important;
  width: auto !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.kedr-header-topbar__email.header_contact_email_wrap {
  max-width: none !important;
  width: auto !important;
}

.kedr-header-topbar__email .header-contact__mail:hover {
  color: #f2b705;
}

.kedr-header-topbar__callback.callback-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f2b705 !important;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  padding: 4px 0;
  margin: 0;
  border: none;
  background: transparent;
}

.kedr-header-topbar__callback.callback-header:hover {
  color: #ffe14d !important;
}

.kedr-ux-header .kedr-header-main.page-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.kedr-ux-header .page-header__logo {
  flex: 0 0 auto;
  margin-right: 0;
}

.kedr-ux-header .kedr-header-search-col.col-search {
  flex: 1 1 280px;
  max-width: 400px;
  min-width: 180px;
  margin: 0;
  padding: 0;
}

.kedr-ux-header .kedr-header-search-col .header-search {
  width: 100%;
  margin: 0;
  position: relative !important;
}

.kedr-ux-header .kedr-header-search-col .header-search__close--desktop {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  left: auto !important;
}

.kedr-ux-header .kedr-header-search-col .header-search__input {
  padding-right: 36px !important;
}

.kedr-ux-header .kedr-header-right.page-header__right-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex: 0 1 auto;
  margin-left: auto;
}

.kedr-ux-header .kedr-header-phones {
  margin: 0;
  padding: 0;
}

.kedr-ux-header .kedr-header-phones .header-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
}

.kedr-ux-header .kedr-header-phones .header-contact__tel {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  color: #fff;
}

.kedr-ux-header .kedr-header-phones .header-contact__tel:hover {
  color: #f2b705;
}

.kedr-ux-header .kedr-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.kedr-header-icon-btn.comp_header_custom {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
  overflow: visible !important;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.kedr-header-icon-btn.comp_header_custom svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  margin: 0 !important;
}

.kedr-header-icon-btn.comp_header_custom:hover {
  border-color: #f2b705 !important;
  color: #f2b705 !important;
}

.kedr-header-icon-btn__count.count {
  position: absolute !important;
  top: -7px !important;
  right: -7px !important;
  min-width: 19px !important;
  height: 19px !important;
  padding: 0 5px !important;
  border-radius: 10px !important;
  background: #f2b705 !important;
  color: #111 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 19px !important;
  text-align: center !important;
  margin: 0 !important;
  display: inline-block !important;
}

@media (min-width: 1025px) {
  .kedr-ux-header .adaptive-buttons {
    display: none !important;
  }
}

.kedr-ux-header .kedr-header-actions .button-cart {
  margin: 0;
  white-space: nowrap;
}

/* =========================================================
   2. Навигационное меню (п. 3.3.1)
   ========================================================= */
.page-header__bottom-cont .main-menu > li:last-child {
  display: inline-block !important;
}

.kedr-menu-products.menu-burger {
  background: #f2b705 !important;
  color: #0a0a0d !important;
  font-weight: 700;
  padding: 0 18px 0 42px !important;
  height: 38px !important;
  line-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  position: relative !important;
  border-radius: 2px;
}

.kedr-menu-products.menu-burger .menu-burger__line {
  background: #0a0a0d !important;
  left: 14px !important;
  width: 18px !important;
  height: 2px !important;
  margin: 0 !important;
  position: absolute !important;
}

.kedr-menu-products.menu-burger .menu-burger__line:nth-child(1) {
  top: 12px !important;
}
.kedr-menu-products.menu-burger .menu-burger__line:nth-child(2) {
  top: 18px !important;
}
.kedr-menu-products.menu-burger .menu-burger__line:nth-child(3) {
  top: 24px !important;
}

.page-header__bottom .main-menu {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 6px;
}

.page-header__bottom .main-menu__item {
  flex: 0 0 auto !important;
}

.page-header__bottom .main-menu__link {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
}

.page-header__bottom.fixed .page-header__bottom-cont {
  gap: 12px !important;
}

.page-header__bottom.fixed .main-menu__link {
  font-size: 13px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.kedr-menu-products.menu-burger:hover {
  background: #ffd400 !important;
}

.main-menu__arrow {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 7px;
  margin-bottom: 3px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.main-menu__item--parent:hover .main-menu__arrow {
  transform: rotate(-135deg);
  margin-bottom: -1px;
}

.page-header__bottom .main-menu__link.active,
.page-header__bottom .main-menu__link:hover,
.page-header__bottom .sub-menu__link.active {
  color: #f2b705 !important;
}

/* =========================================================
   3. Футер — кнопка «Заказать звонок» (п. 3.1.4)
   ========================================================= */
.kedr-footer-callback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 11px 22px;
  border: 1px solid #f2b705;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.kedr-footer-callback-btn:hover {
  background: #f2b705;
  color: #0a0a0d !important;
}

/* =========================================================
   4. Сквозная форма «Остались вопросы?» и модалки (п. 3.2.2, 3.2.3, 3.6.1)
   ========================================================= */
.kedr-questions-block {
  background: #f7f7f9;
  padding: 36px 0;
  border-top: 1px solid #e5e7eb;
}

.kedr-questions-block__card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.kedr-questions-block__info {
  flex: 0 0 38%;
}

.kedr-questions-block__title {
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 10px;
  line-height: 1.2;
}

.kedr-questions-block__subtitle {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

.kedr-questions-form {
  flex: 1 1 auto;
}

.kedr-questions-form__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.kedr-questions-form__fields .main-form__line {
  margin: 0;
}

.kedr-questions-form__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.kedr-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 46px;
  padding: 0 24px;
  background: #141418;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.kedr-btn-dark:hover {
  background: #f2b705;
  color: #0a0a0d;
}

.kedr-form-status {
  margin-top: 12px;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 3px;
}

.kedr-form-status.is-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.kedr-form-status.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.kedr-modal-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.kedr-modal-product__img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 64px;
  background: #fff;
}

.kedr-modal-product__name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}

/* =========================================================
   5. Каталог: фильтры, цена, теги, сортировка (п. 3.4)
   ========================================================= */
.catalog-cols__left .bx-filter {
  margin-bottom: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 14px 16px;
}

.catalog-cols__left .bx-filter .bx-filter-title {
  display: none;
}

.catalog-cols__left .bx-filter-parameters-box {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0 !important;
  margin: 0 !important;
}

.catalog-cols__left .bx-filter-parameters-box:last-of-type {
  border-bottom: none;
}

.catalog-cols__left .bx-filter-parameters-box-title {
  text-transform: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  padding: 4px 0 !important;
  cursor: pointer;
}

.catalog-cols__left .bx-filter-parameters-box-title span,
.catalog-cols__left .bx-filter-parameters-box-hint {
  text-transform: none !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

.catalog-cols__left .bx-filter-parameters-box--price .bx-filter-parameters-box-title i.fa {
  display: none !important;
}

.catalog-cols__left .bx-filter-parameters-box--price .bx-filter-parameters-box-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px;
  margin: 8px 0 0 0 !important;
}

.catalog-cols__left .bx-filter-parameters-box--price .bx-filter-parameters-box-container-block {
  flex: 1 1 calc(50% - 4px) !important;
  width: calc(50% - 4px) !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.catalog-cols__left .bx-filter-parameters-box--price .bx-ui-slider-track-container {
  flex: 1 1 100% !important;
  width: 100% !important;
  margin: 6px 0 4px 0 !important;
  padding: 0 6px !important;
  float: none !important;
}

.catalog-cols__left .bx-filter-parameters-box--price .bx-ui-slider-part {
  display: none !important;
}

.catalog-cols__left .bx-filter-parameters-box--price .bx-filter-input-container input {
  width: 100%;
  height: 36px;
  border: 1px solid #d1d5db;
  padding: 0 10px;
  font-size: 13px;
  color: #111827;
  background: #fff;
}

.catalog-cols__left .bx-ui-slider-track {
  height: 4px !important;
  background: #e5e7eb !important;
  margin-top: 16px;
}

.catalog-cols__left .bx-ui-slider-pricebar-v {
  background: #f2b705 !important;
  height: 4px !important;
}

.catalog-cols__left .bx-ui-slider-handle {
  width: 14px !important;
  height: 14px !important;
  top: -5px !important;
  background: #f2b705 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  border-radius: 2px;
}

.catalog-cols__left .bx-filter-param-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
}

.catalog-cols__left .bx-filter input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  accent-color: #f2b705;
  cursor: pointer;
}

.catalog-filter__reset {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.catalog-filter__reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #111827 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.catalog-filter__reset-btn:hover {
  color: #d97706 !important;
}

.catalog-filter__reset-icon {
  font-size: 18px;
  line-height: 1;
}

/* Теги (п. 3.4.3) */
.kedr-ux-tags.zverushki-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px 0;
}

.kedr-ux-tags .kedr-ux-tag.btn {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #1f2937 !important;
  font-size: 13px !important;
  font-weight: 500;
  padding: 7px 14px !important;
  border-radius: 3px !important;
  text-decoration: none;
  margin: 0 !important;
  line-height: 1.3;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.kedr-ux-tags .kedr-ux-tag.btn:hover,
.kedr-ux-tags .kedr-ux-tag.btn.is-active {
  border-color: #f2b705 !important;
  background: #fef9c3 !important;
  color: #111827 !important;
}

/* Сортировка (п. 3.4.4) */
.catalog-sort {
  background: #f5f5f7;
  padding: 12px 18px;
  margin-bottom: 20px;
  border-radius: 3px;
}

.catalog-sort__desktop {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 18px !important;
}

.catalog-sort__heading {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  color: #111827;
  margin: 0 !important;
}

.catalog-sort__link {
  font-size: 13px !important;
  text-transform: none !important;
  color: #6b7280 !important;
  text-decoration: none !important;
  padding: 0 0 3px 0 !important;
  margin: 0 !important;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.catalog-sort__link:hover {
  color: #111827 !important;
}

.catalog-sort__link.active {
  color: #111827 !important;
  font-weight: 700;
  border-bottom-color: #f2b705;
}

.kedr-catalog-seo-moved {
  margin-top: 28px;
}

/* =========================================================
   6. Карточка товара и превью (п. 3.5)
   ========================================================= */
.item-tile__plus.kedr-compare-icon > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
}

.item-tile__plus.kedr-compare-icon.active > span,
.item-tile__plus.kedr-compare-icon:hover > span {
  color: #111827;
}

/* CTA-блок карточки товара (п. 3.5.4) */
.kedr-cta-grid {
  width: 100%;
  margin: 14px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kedr-cta-row--primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kedr-cta-row--secondary {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.kedr-cta-btn-cart.btn-type1 {
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.kedr-cta-btn-oneclick {
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #141418;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.kedr-cta-btn-oneclick:hover {
  background: #2b2b33;
}

.kedr-cta-btn-kp {
  flex: 1 1 auto;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid #f2b705;
  color: #111827 !important;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.kedr-cta-btn-kp:hover {
  background: #fef9c3;
}

.kedr-cta-icon-btn {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151 !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.kedr-cta-icon-btn:hover,
.kedr-cta-icon-btn.active {
  border-color: #f2b705;
  background: #fef9c3;
  color: #111827 !important;
}

/* Вкладки карточки товара (п. 3.5.1, 3.5.2) */
.kedr-product-tabs-wrap {
  margin-top: 32px;
}

.kedr-product-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.kedr-product-tabs__btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 0 12px;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.kedr-product-tabs__btn:hover {
  color: #111827;
}

.kedr-product-tabs__btn.is-active {
  color: #111827;
  border-bottom-color: #f2b705;
}

.kedr-product-tab-panel {
  display: none;
}

.kedr-product-tab-panel.is-active {
  display: block;
}

.kedr-tab-accordion-head {
  display: none;
}

.kedr-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.kedr-specs-table tr:nth-child(odd) {
  background: #f8fafc;
}

.kedr-specs-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

.kedr-specs-table td:first-child {
  color: #4b5563;
  width: 55%;
}

.kedr-specs-table td:last-child {
  color: #111827;
  font-weight: 600;
}

.kedr-docs-list p {
  margin-bottom: 12px;
}

/* =========================================================
   7. Адаптив: планшет (<= 1024px / 768px) и мобильный (<= 640px / 375px)
   ========================================================= */
@media (max-width: 1180px) {
  .kedr-header-topbar__hours {
    display: none;
  }
  .kedr-ux-header .kedr-header-search-col.col-search {
    max-width: 260px;
  }
}

@media (max-width: 1024px) {
  .kedr-header-topbar {
    display: none;
  }
  .kedr-ux-header .kedr-header-search-col.col-search,
  .kedr-ux-header .kedr-header-phones,
  .kedr-ux-header .kedr-header-actions {
    display: none;
  }
  .kedr-questions-block__card {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    gap: 20px;
  }
  .kedr-questions-block__info {
    flex: none;
  }
}

@media (max-width: 640px) {
  .kedr-questions-form__bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .kedr-btn-dark {
    width: 100%;
  }
  .kedr-cta-row--primary {
    grid-template-columns: 1fr;
  }
  /* Трансформация вкладок в вертикальный аккордеон на 375px */
  .kedr-product-tabs {
    display: none;
  }
  .kedr-product-tab-panel {
    display: block;
    border-bottom: 1px solid #e5e7eb;
  }
  .kedr-tab-accordion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #ffffff;
    border: none;
    padding: 14px 4px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111827;
    cursor: pointer;
    text-align: left;
  }
  .kedr-tab-accordion-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid #111827;
    border-bottom: 2px solid #111827;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 4px;
  }
  .kedr-tab-accordion-head.is-active .kedr-tab-accordion-arrow {
    transform: rotate(-135deg);
  }
  .kedr-product-tab-panel__body {
    display: none;
    padding: 0 0 16px 0;
  }
  .kedr-product-tab-panel.is-active .kedr-product-tab-panel__body {
    display: block;
  }
}
