/* UI/UX, CRO, mobile 390x844, native 0-4px radius, anti-jitter & reCAPTCHA badge cleanup (2026-12-04) */

html,
body {
  overflow-x: clip;
  max-width: 100%;
}

.owl-carousel,
.owl-carousel .owl-stage-outer {
  overflow: hidden;
}

/* Hide floating Google reCAPTCHA badge without affecting v3 execution */
.grecaptcha-badge {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hide parenthesized element counts in Bitrix section lists */
.bx_catalog_line_title span,
.bx_catalog_text_title span,
.bx_catalog_tile_title span,
.bx_sitemap_li_title span {
  display: none !important;
}

/* Native 0-4px radii, no neuro-design thick colored side/top card borders, no hover jitter */
.card,
.card-style4,
.card-style5,
.butn,
.top-banner__form-input,
.top-banner__form-button,
.accordion-style3 .btn-link,
.accordion-style3 .btn-link.collapsed,
.accordion-style3 .card-body {
  border-radius: 4px !important;
}

.card-style4 .card-img {
  border-top-left-radius: 4px !important;
  border-top-right-radius: 4px !important;
}

.top-banner__body::before {
  border-radius: 4px 4px 0 0 !important;
}

@media (min-width: 768px) {
  .top-banner__body::before {
    border-radius: 0 4px 4px 0 !important;
  }
}

.element-listing li a {
  border-left: none !important;
  padding: 12px 14px !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.element-listing li a:hover,
.element-listing li.active a {
  background-color: #f4f8fc;
  color: #118ce2;
  padding: 12px 14px !important;
  transform: none !important;
}

.card:hover,
.card-style4:hover,
.card-style5:hover,
.list-style1 li:hover,
.footer-list-style li a:hover {
  transform: none !important;
}

.footer-list-style li a {
  transition: color 0.2s ease;
}

.footer-list-style li a:hover {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Accordion polish: full width, crisp toggle without flicker */
.accordion-style3 {
  width: 100%;
}

.accordion-style3 .btn-link {
  cursor: pointer;
}

.accordion-style3 .collapse {
  display: none;
}

.accordion-style3 .collapse.show {
  display: block;
}

/* Compact conversion cards inside homepage advantages/schema sections */
.tv-adv-card,
.tv-conv-card {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background-color: #ffffff;
  padding: 13px 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tv-adv-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tv-adv-card__icon {
  font-size: 20px;
  line-height: 1;
  flex: 0 0 auto;
}

.tv-adv-card h4,
.tv-conv-card h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.28;
  margin: 0;
  color: #1e2022;
}

.tv-conv-card h4 {
  margin-bottom: 6px;
}

.tv-adv-card p,
.tv-conv-card p {
  font-size: 13px;
  line-height: 1.4;
  color: #4a5568;
  margin-bottom: 0;
}

.tv-step-item {
  padding: 4px 2px;
  height: 100%;
}

.tv-step-num {
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  opacity: 0.18;
  margin-right: 10px;
}

.tv-step-icon {
  font-size: 22px;
  line-height: 1;
}

.tv-step-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 6px 0;
  color: #1e2022;
}

.tv-step-item p {
  font-size: 13px;
  line-height: 1.4;
  color: #4a5568;
  margin-bottom: 0;
}

/* Hero form alignment: input + button on one line of equal height, consent strictly below */
.top-banner__form {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 20px;
}

.top-banner__form-field {
  order: 1;
  width: 100%;
  max-width: none;
  margin: 0;
}

.top-banner__form-field .quform-elements {
  margin: 0;
}

.top-banner__form-input {
  height: 46px !important;
  min-height: 46px !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  font-size: 16px;
  line-height: 24px !important;
  background-color: #ffffff;
  box-sizing: border-box;
}

.top-banner__form-button {
  order: 2;
  width: 100%;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 22px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1 !important;
  box-sizing: border-box;
  cursor: pointer;
}

.top-banner__form > .lead-consent {
  order: 3;
  width: 100%;
  margin: 2px 0 0 0 !important;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 400;
  color: #576675;
  cursor: pointer;
}

.top-banner__form > .lead-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 2px 0 0 0;
  cursor: pointer;
}

.top-banner__form > .lead-consent a {
  color: #118ce2;
  text-decoration: underline;
}

.top-banner__form > :not(.top-banner__form-field):not(.top-banner__form-button):not(.lead-consent) {
  order: 4;
}

@media (min-width: 992px) {
  .top-banner__form {
    display: grid !important;
    grid-template-columns: minmax(195px, 275px) auto;
    column-gap: 10px;
    row-gap: 10px;
    align-items: center;
    justify-content: start;
    margin-top: 24px;
  }

  .top-banner__form-field {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none !important;
  }

  .top-banner__form-button {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    margin: 0 !important;
  }

  .top-banner__form > .lead-consent {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 490px;
    margin: 0 !important;
  }

  .top-banner__form > :not(.top-banner__form-field):not(.top-banner__form-button):not(.lead-consent) {
    grid-column: 1 / -1;
  }
}

/* Mobile 390x844 responsive header & single-line sticky bar on scroll */
@media (max-width: 991px) {
  .header-style3 {
    position: relative;
    top: auto;
    z-index: 9990;
    background-color: #ffffff;
    border-bottom: 1px solid #dbdbdb;
    padding-bottom: 8px;
  }

  .header-style3 .navbar-header-custom {
    padding: 8px 0 6px 0;
    margin-left: 0;
    margin-right: 0;
  }

  .header-style3 .navbar-header-custom > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  .header-style3 .navbar-brand {
    max-width: calc(100% - 48px);
    padding: 0;
  }

  .header-style3 .navbar-brand img {
    max-height: 44px;
    width: auto;
  }

  .header-style3 .navbar .navbar-toggler {
    top: -46px;
    right: 0;
    width: 38px;
    height: 34px;
    border-radius: 3px;
  }

  .header-style3 .attr-nav {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
  }

  .header-style3 .attr-nav .attr-nav__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
  }

  .header-style3 .attr-nav .attr-nav__item--phone {
    margin-right: 0;
    min-width: 0;
  }

  .header-style3 .attr-nav .attr-nav__item--phone a {
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .header-style3 .attr-nav__item--callmaster .butn {
    padding: 7px 12px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 3px;
  }

  /* Compact single-line fixed header when scrolled */
  header.header-style3.scrollHeader {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    padding: 6px 0 !important;
    background-color: #ffffff;
    border-bottom: 1px solid #dbdbdb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  header.header-style3.scrollHeader > .container {
    display: none !important;
  }

  header.header-style3.scrollHeader .navbar-default {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  header.header-style3.scrollHeader .navbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    min-height: 36px;
    position: relative;
  }

  header.header-style3.scrollHeader .attr-nav {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    order: 1;
  }

  header.header-style3.scrollHeader .attr-nav .attr-nav__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0;
    padding: 0;
  }

  header.header-style3.scrollHeader .attr-nav .attr-nav__item--phone a {
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }

  header.header-style3.scrollHeader .attr-nav__item--callmaster .butn {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }

  header.header-style3.scrollHeader .navbar .navbar-toggler {
    position: static !important;
    top: auto !important;
    right: auto !important;
    order: 2;
    flex: 0 0 36px;
    width: 36px;
    height: 32px;
    margin-left: 8px;
  }

  header.header-style3.scrollHeader .navbar-toggler:before {
    top: 10px;
    right: 8px;
  }

  header.header-style3.scrollHeader .navbar-toggler:after {
    top: 16px;
    right: 8px;
  }

  header.header-style3.scrollHeader .navbar-toggler.menu-opened:before,
  header.header-style3.scrollHeader .navbar-toggler.menu-opened:after {
    top: 15px;
    right: 8px;
  }

  header.header-style3.scrollHeader .navbar-nav {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    z-index: 10000;
  }

  body.mobile-scroll-header-active {
    padding-top: 96px;
  }
}

@media (max-width: 399px) {
  header.header-style3.scrollHeader .attr-nav .attr-nav__item--phone a {
    font-size: 13px;
  }

  header.header-style3.scrollHeader .attr-nav__item--callmaster .butn {
    padding: 6px 8px;
    font-size: 11px;
  }
}
