/* Cookie consent — как на vapack.ru / leader-import.ru */
#cookie-consent.cookie-consent {
  position: fixed !important;
  left: 20px !important;
  right: auto !important;
  bottom: 20px !important;
  z-index: 99999 !important;
  width: 420px;
  max-width: calc(100vw - 40px);
  background: rgba(0, 0, 0, 0.88);
  color: #f2f2f2;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 14px 14px 12px;
  transition: opacity 180ms ease, transform 180ms ease;
}

#cookie-consent.cookie-consent:not(.is-visible) {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

#cookie-consent.cookie-consent.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  display: block !important;
}

.cookie-consent__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.cookie-consent__title {
  margin: 0 0 6px 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cookie-consent__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(242, 242, 242, 0.92);
}

.cookie-consent__text a {
  color: #fdba74;
  text-decoration: underline;
}

.cookie-consent__text a:hover {
  text-decoration: none;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.cookie-consent__actions--stack {
  flex-wrap: wrap;
}

.cookie-consent__actions a.cookie-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cookie-consent__btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  font-family: inherit;
}

.cookie-consent__btn--accept {
  background: #ea580c;
  color: #fff;
}

.cookie-consent__btn--accept:hover {
  background: #c2410c;
}

.cookie-consent__btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(242, 242, 242, 0.95) !important;
}

.cookie-consent__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.cookie-consent__close {
  border: 0;
  background: transparent;
  color: rgba(242, 242, 242, 0.75);
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  font-size: 18px;
  flex-shrink: 0;
}

.cookie-consent__close:hover {
  color: rgba(242, 242, 242, 0.95);
}

.cookie-consent__settings {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: none;
}

.cookie-consent__settings.is-open {
  display: block;
}

.cookie-consent__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.cookie-consent__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.cookie-consent__item-text {
  min-width: 0;
}

.cookie-consent__label {
  font-weight: 700;
  font-size: 13px;
  margin: 0;
}

.cookie-consent__hint {
  margin: 2px 0 0 0;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(242, 242, 242, 0.78);
}

.cookie-consent__toggle {
  flex: 0 0 auto;
  margin-top: 2px;
}

.cookie-consent__toggle input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #ea580c;
}

.cookie-consent__note {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: rgba(242, 242, 242, 0.7);
}

@media (max-width: 575.98px) {
  .cookie-consent,
  .cookie-consent#cookie-consent {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    width: auto !important;
    max-width: none !important;
  }

  .cookie-consent__row {
    gap: 10px;
  }

  .cookie-consent__actions {
    flex-wrap: wrap;
  }
}

@media (min-width: 768px) {
  #cookie-consent.cookie-consent.is-visible {
    width: min(33.33vw, 420px) !important;
    max-width: 33.33vw !important;
  }
}

/* Скрыть визуальные элементы Яндекс.Метрики (информер / виджеты), счётчик продолжает работать */
.ym-advanced-informer,
a.ym-advanced-informer,
a[href*="metrika.yandex.ru/stat"],
a[href*="metrika.yandex.com/stat"],
.ymWidget,
.ymWidget_container,
.ymWidget__container,
[class^="ymWidget"],
[class*=" ymWidget"],
[id^="ymWidget"],
iframe[src*="mc.yandex.ru/watch"],
iframe[src*="metrika.yandex"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Legal pages */
.legal-doc { max-width: 820px; line-height: 1.55; }
.legal-doc h2 { margin: 1.4em 0 .6em; font-size: 1.15em; }
.legal-doc ul { margin: .5em 0 1em 1.2em; }
.legal-doc .legal-muted { color: #6b6560; font-size: .95em; }
.legal-requisites { margin: 0; }
.legal-requisites > div { margin: 0 0 12px; }
.legal-requisites dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #6b6560; margin: 0 0 2px; }
.legal-requisites dd { margin: 0; font-weight: 600; }
.legal-footer-links { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.legal-footer-nav { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0; font-size: 13px; }
.legal-footer-nav a { opacity: .85; }
.legal-footer-nav a:hover { opacity: 1; }
/* ---- Lead forms: единая высота/стиль полей ---- */
.lead-form p,
#modal_form form p {
  margin: 0 0 12px;
  clear: both;
  overflow: hidden;
}
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"],
.lead-form input[type="password"],
.lead-form textarea,
#modal_form input[type="text"],
#modal_form input[type="tel"],
#modal_form input[type="email"],
#modal_form input[type="password"],
#modal_form textarea {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 40px !important;
  min-height: 40px;
  margin: 0 !important;
  padding: 8px 12px !important;
  float: none !important;
  display: block !important;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  text-indent: 0 !important;
  color: #555 !important;
  background: #fafafa !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 3px !important;
  outline: 0;
}
.lead-form textarea,
#modal_form textarea {
  height: auto !important;
  min-height: 96px !important;
  resize: vertical;
}
/* Капча: одна строка (картинка + обновить + поле) — перекрываем width:100% у #modal_form input */
.lead-form input.lead-captcha__input,
#modal_form input.lead-captcha__input,
.lead-captcha__input {
  width: 88px !important;
  max-width: 88px !important;
  height: 40px !important;
  min-height: 40px !important;
  display: inline-block !important;
  float: none !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  text-align: center;
  letter-spacing: 0.12em;
  flex: 0 0 88px;
}
.lead-captcha {
  margin: 4px 0 0;
  clear: both;
}
.lead-captcha label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #666;
}
.lead-captcha__row {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
}
.lead-form img.lead-captcha__img,
#modal_form img.lead-captcha__img,
.lead-captcha__img {
  width: 120px !important;
  max-width: 120px !important;
  height: 40px !important;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #fff;
  display: block !important;
  box-sizing: border-box;
  flex: 0 0 120px;
}
.lead-captcha__refresh {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #fafafa;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  color: #555;
}
.lead-form input:focus,
.lead-form textarea:focus,
#modal_form input:focus,
#modal_form textarea:focus {
  border-color: #fe937f !important;
  background-color: #feede9 !important;
}
.lead-sopd {
  font-size: 13px;
  line-height: 1.45;
  margin: 4px 0 0;
  clear: both;
}
.lead-sopd label {
  font-weight: 400;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  margin: 0;
}
.lead-sopd input[type="checkbox"] {
  display: inline-block !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 16px !important;
  height: 16px !important;
  min-height: 0 !important;
  margin: 3px 0 0 !important;
  padding: 0 !important;
  float: none !important;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #fd6d52;
}
.lead-sopd a { color: #fd6d52; text-decoration: underline; }
.lead-captcha__refresh:hover { background: #f0f0f0; }
#modal_form {
  height: auto !important;
  min-height: 300px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding-bottom: 24px;
  margin-top: -240px;
}
#modal_form .button.orange {
  clear: both;
  float: none;
  margin-top: 4px;
}

footer ul.social-list .fa {
  font-family: FontAwesome !important;
  font-style: normal;
  font-weight: normal;
  line-height: inherit;
  speak: none;
}
footer .circle-social li .fa-sitemap {
  font-size: 18px;
}
#box-wrapper {
  border-radius: 14px;
  /* visible: иначе overflow:hidden обрезал калькуляторы/выпадающие меню */
  overflow: visible;
}
#box-wrapper > header {
  border-radius: 14px 14px 0 0;
}
#box-wrapper > footer {
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}
#left-header {
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}
@media only screen and (max-width: 1024px) {
  #box-wrapper {
    border-radius: 0;
  }
  #box-wrapper > header {
    border-radius: 0;
  }
  /* логотип: нижние углы со скруглением и на смартфонах */
  #left-header {
    border-bottom-left-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
  }
}

.lead-cta { margin: 8px 0 4px; }
.lead-cta__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #444;
  line-height: 1.35;
}
.lead-cta__hint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #888;
}
.lead-cta__hint strong { color: #666; font-weight: 600; }
.lead-cta__buttons { margin: 0; }
.lead-cta__buttons .button { margin: 0 10px 8px 0; }

/* ---- Калькуляторы: обводка полей number/select ---- */
.content-wrapper input[type="number"],
.content-wrapper input[type="text"],
.content-wrapper input[type="tel"],
.content-wrapper select,
.tab_content input[type="number"],
.tab_content input[type="text"],
.tab_content select,
.tab_container-bottom input[type="number"],
.tab_container-bottom input[type="text"],
.tab_container-bottom select,
.tab_container input[type="number"],
.tab_container select {
  box-sizing: border-box;
  border: 1px solid #d9d9d9 !important;
  background: #fafafa !important;
  color: #555 !important;
  border-radius: 3px;
  padding: 6px 8px !important;
  text-indent: 0 !important;
  outline: 0;
  min-height: 34px;
  -webkit-appearance: none;
  appearance: none;
}
.content-wrapper input[type="number"]:focus,
.content-wrapper select:focus,
.tab_content input[type="number"]:focus,
.tab_content select:focus,
.tab_container-bottom input[type="number"]:focus,
.tab_container-bottom select:focus {
  border-color: #fe937f !important;
  background-color: #feede9 !important;
}
/* select: стрелка */
.content-wrapper select,
.tab_content select,
.tab_container-bottom select {
  background-image: linear-gradient(45deg, transparent 50%, #999 50%),
    linear-gradient(135deg, #999 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 3px), calc(100% - 9px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px !important;
}
@media only screen and (min-width: 1280px) {
  #box-wrapper {
    width: min(90vw, 1680px);
  }
  .content-wrapper {
    width: auto;
    max-width: none;
    padding-left: 2.5%;
    padding-right: 2.5%;
    box-sizing: border-box;
  }
  .row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media only screen and (min-width: 1600px) {
  #box-wrapper {
    width: min(88vw, 1760px);
  }
}

/* ---- Header top bar: поиск от лого до контактов ---- */
#top-info {
  padding-right: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  text-align: left;
}
#top-info .top-info-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 45px;
  padding: 6px 0 6px 200px; /* место под логотип слева */
  box-sizing: border-box;
}
.site-search,
#top-search.site-search {
  position: relative;
  top: auto;
  right: auto;
  margin: 0 16px !important;
  float: none !important;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  z-index: 3;
  display: block;
  clear: none;
  text-transform: none;
  text-align: left;
}
.site-search__form {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}
.site-search__form:focus-within {
  border-color: #cfcfcf;
}
.site-search__input,
#top-search .site-search__input {
  flex: 1 1 auto;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
  line-height: 30px !important;
  color: #555 !important;
  text-indent: 0 !important;
  float: none !important;
  display: block !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.site-search__input::placeholder {
  color: #aaa;
  text-transform: none;
}
.site-search__btn {
  flex: 0 0 36px;
  width: 36px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9a9a9a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-transform: none;
}
.site-search__btn:hover {
  background: transparent;
  color: #6a6a6a;
}
.site-search__btn .fa {
  font-size: 14px;
  line-height: 1;
  color: inherit;
}
.top-info-contacts {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
  padding: 0 8px 0 0;
  list-style: none;
  white-space: nowrap;
}
.top-info-contacts li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.top-info-contacts i {
  font-size: 12px;
  color: #a2a2a2;
  margin: 0 6px 0 20px;
  position: relative;
  top: 1px;
}
.top-info-contacts a {
  color: inherit;
  text-decoration: none;
}
.top-info-contacts a:hover {
  color: #fd6d52;
}
#mainmenu-wrapper {
  position: relative;
  padding-right: 0;
  box-sizing: border-box;
  min-height: 49px;
}
/* убрать прямые углы обводки у меню — пункты/шапка уже со скруглением */
#mainmenu {
  border-bottom: none !important;
}
#mainmenu ul li {
  border-right: none !important;
}
#mainmenu ul li:hover,
#mainmenu ul li.selected {
  border-bottom: none !important;
}
@media only screen and (max-width: 1024px) {
  /* верхняя строка растёт по контенту — иначе поиск вылезает из height:45px */
  #top-info {
    height: auto !important;
    min-height: 45px;
    float: none !important;
    width: 100% !important;
    overflow: visible;
    box-sizing: border-box;
  }
  #top-info .top-info-bar {
    padding: 8px 12px !important;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    align-items: center;
  }
  .site-search,
  #top-search.site-search {
    flex: 1 1 100%;
    order: 2;
    /* сброс старых media.css: top:65px / negative margin */
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    float: none !important;
    z-index: 5;
  }
  .top-info-contacts {
    flex: 1 1 auto;
    justify-content: flex-start;
    order: 1;
    white-space: normal;
    padding-right: 0;
  }
  /* лого не наезжает на строку с поиском */
  #left-header {
    top: 0 !important;
  }
}

@media only screen and (max-width: 767px) {
  #left-header {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }
  #right-header {
    width: 100% !important;
    margin-top: 0 !important;
    float: none !important;
  }
  #mainmenu-wrapper {
    width: 100% !important;
    float: none !important;
  }
  #mainmenu {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
  }
  #logo {
    left: auto !important;
    position: relative !important;
    margin-left: auto;
    margin-right: auto;
    float: none;
  }
}
#top-info .top-desc ul li a {
  color: inherit;
}

/* ---- Хлебные крошки: отдельная видимая полоса ---- */
.site-breadcrumb,
nav.breadcrumb.site-breadcrumb {
  clear: both !important;
  float: none !important;
  display: block !important;
  width: 100% !important;
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
  margin: 0 0 8px !important;
  padding: 10px 0 12px !important;
  z-index: 5;
  border-bottom: 1px solid #eee;
}
.site-breadcrumb ul,
.site-breadcrumb ol {
  float: none !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  list-style: none;
}
.site-breadcrumb ul li,
.site-breadcrumb ol li {
  display: inline-flex;
  align-items: center;
  font-size: 14px !important;
  line-height: 1.4 !important;
  padding: 0 2px 0 0 !important;
  color: #888;
}
.site-breadcrumb ul li:after,
.site-breadcrumb ol li:after {
  content: "›" !important;
  margin: 0 8px !important;
  color: #c0c0c0;
  font-family: inherit !important;
  font-size: 14px !important;
  top: 0 !important;
}
.site-breadcrumb ul li:last-child:after,
.site-breadcrumb ol li:last-child:after {
  content: none !important;
  display: none !important;
}
.site-breadcrumb a {
  color: #666 !important;
  text-decoration: none !important;
}
.site-breadcrumb a:hover {
  color: #fd6d52 !important;
}
.site-breadcrumb .current-page,
.site-breadcrumb .current-page span,
.site-breadcrumb .current-page a {
  color: #fd6d52 !important;
  font-weight: 600;
}
.site-breadcrumb .fa-home {
  font-size: 15px;
  line-height: 1;
}
.site-breadcrumb .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-breadcrumb__home {
  display: none;
}
#slogan-wrapper.pagetitle {
  margin-bottom: 0 !important;
}

/* ---- Контент: крупнее шрифт + картинки на ширину ---- */
body {
  font-size: 16px;
  line-height: 1.65;
}
.content-wrapper {
  font-size: 16px;
  line-height: 1.65;
  color: #5a5a5a;
}
.content-wrapper .eight.column > p,
.content-wrapper .eight.column > ul,
.content-wrapper .eight.column > ol,
.content-wrapper .eight.column li,
.content-wrapper .eight.column td,
.content-wrapper .eight.column .note-folded,
.content-wrapper .eight.column .legal-doc {
  font-size: 16px;
  line-height: 1.65;
}
.content-wrapper .eight.column h2 {
  font-size: 28px;
  line-height: 1.3;
}
.content-wrapper .eight.column h3 {
  font-size: 22px;
  line-height: 1.35;
}
.content-wrapper .eight.column img,
.content-wrapper .eight.column picture,
.content-wrapper .eight.column figure {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 8px;
}
.content-wrapper .eight.column figure img {
  width: 100% !important;
  border-radius: 8px;
}
/* не растягивать капчу и мелкие иконки */
.content-wrapper .eight.column img.lead-captcha__img,
.content-wrapper .eight.column .lead-captcha img,
.content-wrapper .eight.column .button img,
.content-wrapper .eight.column li img,
.content-wrapper .eight.column .social-list img {
  width: auto !important;
  max-width: 120px !important;
  height: auto !important;
  display: inline-block;
  border-radius: 0;
}
.content-wrapper .eight.column img.lead-captcha__img {
  width: 120px !important;
  height: 40px !important;
  border-radius: 4px;
}

