#site-header,
#site-footer {
  display: contents;
}

.language-box,
.header-language,
.footer-language,
.tisbox,
.tisshare,
#baiduinfo {
  display: none !important;
}

.layui-layer .layui-layer-content .subscribe-name {
  text-transform: none;
}

.subscribe-list input[title],
.subscribe-label,
.subscribe-text,
.subscribe-title,
.subscribe-subtitle {
  letter-spacing: 0;
}

@media (max-width: 991px) {
  .header-wrapper .header-nav-title a {
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

/* ─── Catalog dropdown: dark theme, no text clipping, 4 columns side by side ─── */
.header-wrapper .header-nav-position3 {
  width: 860px !important;
  background: #161616 !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.45) !important;
}
.header-wrapper .header-second-nav {
  background-color: #161616 !important;
}
.header-wrapper .header-nav-position3 .second-nav-list {
  display: flex !important;
  align-items: stretch !important;
}
.header-wrapper .header-nav-position3 .second-nav-item {
  width: 25% !important;
  float: none !important;
  box-sizing: border-box !important;
  border-right: 1px solid rgba(255,255,255,.08);
}
.header-wrapper .header-nav-position3 .second-nav-item:last-child {
  border-right: none;
}
.header-wrapper .header-product-info h5,
.header-wrapper .header-product-info h5 a {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.3 !important;
  padding: 10px 18px !important;
  color: #eee !important;
}
.header-wrapper .header-product-info:hover h5 {
  background-color: #242424 !important;
}
.header-wrapper .header-product-info h6 {
  color: #bbb !important;
}
.header-wrapper .header-product-info h6:hover,
.header-wrapper .header-product-info dt h6:hover {
  background-color: #242424 !important;
}
/* second-product-list (EM4/EMX/E1 etc.) was an absolute-positioned white flyout
   sized for the old single-column 168px dropdown. Make it static + dark so it
   just sits under the category heading in its own column. */
.header-wrapper .header-nav-position3 .second-product-list {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  min-height: 0 !important;
  background: transparent !important;
  display: block !important;
}
.header-wrapper .header-nav-position3 .second-product-list li,
.header-wrapper .header-nav-position3 .second-product-list dd {
  padding: 0 18px !important;
}
.header-wrapper .header-nav-position3 .second-product-list li a,
.header-wrapper .header-nav-position3 .second-product-list dd a {
  color: #999 !important;
}
.header-wrapper .header-nav-position3 .second-product-list li a h6,
.header-wrapper .header-nav-position3 .second-product-list dd a h6 {
  color: #999 !important;
  background: transparent !important;
  line-height: 1.3 !important;
  min-height: 34px !important;
  padding: 8px 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.header-wrapper .header-nav-position3 .second-product-list li:hover,
.header-wrapper .header-nav-position3 .second-product-list dd:hover {
  background: #242424 !important;
}

@media (max-width: 991px) {
  .header-wrapper .header-nav-position3 {
    width: 100% !important;
  }
  .header-wrapper .header-nav-position3 .second-nav-list {
    display: block !important;
  }
  .header-wrapper .header-nav-position3 .second-nav-item {
    width: 100% !important;
    border-right: none;
    border-top: 1px dashed rgba(255,255,255,.08);
  }
  .header-wrapper .header-nav-position3 .second-nav-item:first-child {
    border-top: none;
  }
}

/* Header contacts (email/address in top-right) — must live in local.css, not
   footer's injected <style>, because some pages (product pages) never mount
   the footer and would otherwise get an unstyled/oversized mail icon here. */
@media (min-width: 992px) {
  .header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}
.rs-header-contacts {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 24px;
  flex-shrink: 0;
}
.rs-hdr-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
}
.rs-hdr-contact:hover { opacity: .75; }
.rs-hdr-contact svg { width: 14px; height: 14px; flex-shrink: 0; }
@media (max-width: 1200px) {
  .rs-header-contacts { display: none; }
}

/* Content video/image blocks (.video-cover-main-bg) use height:100% but their
   parent (.index-box1) has no explicit height of its own — under some layouts
   that resolves to the viewport height instead of the block's real content
   height, leaving a huge empty gap below the actual video/image. Force it to
   size to its content instead. */
.video-cover-main-bg {
  height: auto !important;
}

/* Homepage hero slider (.index-banner): give the box a deterministic height
   via aspect-ratio instead of relying on Swiper's autoHeight (which raced
   against <video> metadata loading and either left a huge empty gap below a
   short slide, or once content did size it, could be too short for the
   absolutely-positioned banner-txt overlay to fit inside). object-fit:cover
   fills that box cleanly from both video and image slides. */
.index-banner .swiper-container {
  aspect-ratio: 1920 / 900 !important;
}
.index-banner .swiper-wrapper,
.index-banner .swiper-slide {
  height: 100% !important;
}
.index-banner .pc-banner-video,
.index-banner .wap-banner-video,
.index-banner .home-banner,
.index-banner .wap-banner,
.index-banner .banner-img {
  height: 100% !important;
}
.index-banner .pc-banner-video video,
.index-banner .pc-banner-video img,
.index-banner .wap-banner-video .banner-img img,
.index-banner .home-banner .banner-img img,
.index-banner .wap-banner .banner-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
@media (max-width: 769px) {
  .index-banner .swiper-container {
    aspect-ratio: 750 / 575 !important;
  }
}

/* "Запросить цену" / callback popup modal (opened via data-rs-quote) */
.rs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.rs-modal-overlay.rs-modal-open { display: flex; }
.rs-modal {
  background: #141414;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 36px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.rs-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #888;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.rs-modal-close:hover { color: #fff; }
.rs-modal h3 { color: #fff; font-size: 22px; margin: 0 0 10px; padding-right: 20px; }
.rs-modal-sub { color: #999; font-size: 14px; margin: 0 0 22px; line-height: 1.5; }
.rs-modal-row { margin-bottom: 14px; }
.rs-modal-row input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  color: #fff;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color .2s;
}
.rs-modal-row input::placeholder { color: #555; }
.rs-modal-row input:focus { border-color: #e8000d; background: rgba(232,0,13,.05); }
.rs-modal .submit-btn {
  width: 100%;
  padding: 14px;
  background: #e8000d;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: background .2s;
}
.rs-modal .submit-btn:hover { background: #c5000b; }
.rs-modal .form-note { font-size: 12px; color: #666; text-align: center; margin-top: 10px; }
.rs-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.rs-modal-consent {
  margin: 4px 0 14px;
}
.rs-modal-consent .consent-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: 12.5px;
  color: #999;
  line-height: 1.5;
}
.rs-modal-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: #e8000d;
  cursor: pointer;
}
.rs-modal-consent a {
  color: #bbb;
  text-decoration: underline;
}
.rs-modal-consent a:hover {
  color: #e8000d;
}
.rs-modal-error {
  display: none;
  margin-top: 12px;
  font-size: 12.5px;
  color: #ff6b6b;
  line-height: 1.5;
  text-align: center;
}

.rs-modal-success {
  display: none;
  background: rgba(0,180,80,.15);
  border: 1px solid rgba(0,180,80,.4);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  color: #5de89a;
  font-size: 14px;
}

/* Bottom CTA row near the footer on product pages — keep buttons flexible
   width so longer Russian labels don't get clipped. */
.p6_part06_box_btn {
  flex-wrap: nowrap !important;
  gap: 16px !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}
.p6_part06_box_btn a {
  flex: 0 1 auto !important;
  min-width: 190px !important;
  max-width: 320px !important;
  width: auto !important;
  padding: 10px 22px !important;
  margin: 0 !important;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .p6_part06_box_btn {
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 16px !important;
  }
  .p6_part06_box_btn a {
    min-width: 0 !important;
    max-width: none !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Product hero — single standard template used on every /IncrementalComponents
   product page (rsph = "RoboSense Product Hero", namespaced so it never
   collides with the vendor template's own generic classes like .banner-title
   or .banner-btn). First screen: title + subtitle, all key specs stacked
   below on the left, two CTA buttons under the specs.
   ───────────────────────────────────────────────────────────────────────── */
.rsph {
  max-width: 640px;
  background: rgba(10, 10, 12, .58);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
@media (max-width: 600px) {
  .rsph { padding: 22px 20px; border-radius: 12px; }
}

/* Uniform hero positioning — overrides each page's own inconsistent
   .banner-content2 rules (some centered, some bottom-anchored, some
   clipped under the fixed header) with one identical layout for every
   product page: pinned to the left, clear of the fixed header, and
   narrow enough to never cover the product photo on the right. */
.rsph-wrap {
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  top: 150px !important;
  transform: none !important;
  width: 100% !important;
}
.rsph-wrap .layui-container {
  max-width: 1400px !important;
  width: 100% !important;
  padding: 0 60px !important;
  box-sizing: border-box !important;
}
@media (max-width: 1100px) {
  .rsph-wrap { top: 120px !important; }
  .rsph-wrap .layui-container { padding: 0 40px !important; }
}
@media (max-width: 900px) {
  .rsph-wrap { top: 90px !important; }
  .rsph-wrap .layui-container { padding: 0 24px !important; }
}
@media (max-width: 600px) {
  .rsph-wrap {
    position: static !important;
    top: auto !important;
    padding: 24px 0 !important;
    background: #0a0a0a;
  }
  .rsph-wrap .layui-container { padding: 0 20px !important; }
}
.rsph-title {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
}
.rsph-subtitle {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.55;
  color: #cfd2d6;
  max-width: 540px;
}
.rsph-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 36px;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.rsph-spec {
  border-left: 2px solid rgba(232,0,13,.65);
  padding-left: 13px;
}
.rsph-spec-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.rsph-spec-label {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 3px;
  line-height: 1.3;
}
.rsph-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
}
.rsph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, border-color .2s, opacity .2s;
  white-space: nowrap;
  min-width: 210px;
}
.rsph-btn--primary { min-width: 290px; }
.rsph-btn--primary {
  background: #e8000d;
  border-color: #e8000d;
  color: #fff;
}
.rsph-btn--primary:hover { background: #c5000b; border-color: #c5000b; }
.rsph-btn--secondary {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.rsph-btn--secondary:hover { border-color: #fff; background: rgba(255,255,255,.08); }

@media (max-width: 1100px) {
  .rsph-title { font-size: 36px; }
}
@media (max-width: 900px) {
  .rsph { max-width: 100%; }
  .rsph-specs { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
}
@media (max-width: 600px) {
  .rsph-title { font-size: 28px; }
  .rsph-subtitle { font-size: 15px; margin-bottom: 20px; }
  .rsph-specs { gap: 12px 16px; padding: 16px 0 22px; }
  .rsph-spec-value { font-size: 15px; }
  .rsph-spec-label { font-size: 10px; }
  .rsph-actions { flex-wrap: wrap; gap: 10px; }
  .rsph-btn { min-width: 0; padding: 11px 18px; font-size: 13px; flex: 1 1 auto; }
  .rsph-btn--primary { min-width: 0; }
}

/* ─── Cookie consent banner: compact single-line bar, one button ─── */
.new-header {
  position: fixed !important;
  right: 20px !important;
  left: auto !important;
  bottom: 20px !important;
  top: auto !important;
  width: auto !important;
  max-width: 480px !important;
  height: auto !important;
  background: #161616 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.5) !important;
  padding: 14px 16px !important;
  z-index: 9998 !important;
}
.new-headerbox {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: auto !important;
  height: auto !important;
}
.new-headerbox .new-top {
  width: auto !important;
  padding: 0 !important;
  border-bottom: none !important;
  text-align: left !important;
  flex: 1 1 auto !important;
}
.new-headerbox .new-top h3 {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #ccc !important;
  display: inline !important;
  margin: 0 !important;
}
.new-headerbox .new-top h3 br { display: none !important; }
.new-headerbox .new-top h3 a {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #e8000d !important;
  text-decoration: underline !important;
  margin-left: 4px !important;
  display: inline !important;
}
.new-headerbox .new-bottom {
  width: auto !important;
  flex: 0 0 auto !important;
}
.new-headerbox .new-bottom a {
  flex: none !important;
  display: inline-block !important;
  padding: 8px 20px !important;
  line-height: 1.2 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-right: none !important;
  background: #e8000d !important;
  color: #fff !important;
  border-radius: 6px !important;
}
.new-headerbox .new-bottom a:hover { background: #c5000b !important; color: #fff !important; }
#refusecookie { display: none !important; }
@media (max-width: 600px) {
  .new-header { right: 12px !important; left: 12px !important; max-width: none !important; bottom: 12px !important; padding: 12px 14px !important; }
}

/* ─── "Похожие товары" (related products) on product pages ─── */
.rsph-related-section {
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 56px 0;
}
.rsph-related-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 28px;
}
.rsph-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 700px) {
  .rsph-related-grid { grid-template-columns: 1fr; }
}
.rsph-related-card {
  display: block;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.rsph-related-card:hover { border-color: rgba(232,0,13,.5); transform: translateY(-2px); }
.rsph-related-img { background: #111; aspect-ratio: 16/10; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rsph-related-img img { width: 100%; height: 100%; object-fit: cover; }
.rsph-related-name { font-size: 18px; font-weight: 700; color: #fff; padding: 16px 18px 4px; }
.rsph-related-sub { font-size: 13px; color: #888; line-height: 1.5; padding: 0 18px 18px; }
