/* Общее выпадающее меню каталога для всех страниц сайта. */
.ves-catalog-menu,
.company-catalog-menu {
  position: relative;
  z-index: 10020;
  flex: 0 0 auto;
  overflow: visible;
}

.ves-catalog-menu > .catalog-button,
.company-catalog-menu > .catalog-button {
  cursor: pointer;
}

.ves-catalog-dropdown,
.company-catalog-mega {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10030;
  width: min(370px, calc(100vw - 32px));
  padding-top: 9px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.ves-catalog-menu:hover > .ves-catalog-dropdown,
.ves-catalog-menu:focus-within > .ves-catalog-dropdown,
.ves-catalog-menu.is-open > .ves-catalog-dropdown,
.company-catalog-menu:hover > .company-catalog-mega,
.company-catalog-menu:focus-within > .company-catalog-mega,
.company-catalog-menu.is-open > .company-catalog-mega {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ves-catalog-dropdown__panel,
.company-catalog-menu__panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 16px;
  box-shadow: 0 22px 52px rgba(4, 31, 58, 0.2);
}

.ves-catalog-dropdown__panel > a,
.company-catalog-menu__panel > a {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 18px;
  color: #06335c !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400 !important;
  line-height: 1.35;
  text-decoration: none;
  background: #fff;
  border-left: 3px solid transparent;
}

.ves-catalog-dropdown__panel > a:not(.ves-catalog-dropdown__all)::after,
.company-catalog-menu__panel > a:not(.company-catalog-menu__all)::after {
  flex: 0 0 auto;
  color: #f2a900;
  font-size: 18px;
  line-height: 1;
  content: "›";
}

.ves-catalog-dropdown__panel > a:hover,
.ves-catalog-dropdown__panel > a:focus-visible,
.company-catalog-menu__panel > a:hover,
.company-catalog-menu__panel > a:focus-visible {
  background: #fff8e6;
  border-left-color: #f2a900;
  outline: none;
}

.ves-catalog-dropdown__panel > .ves-catalog-dropdown__separated,
.company-catalog-menu__panel > .company-catalog-menu__separated {
  margin-top: 5px;
  padding-top: 14px;
  border-top: 1px solid #dce6ef;
}

.ves-catalog-dropdown__panel > .ves-catalog-dropdown__all,
.company-catalog-menu__panel > .company-catalog-menu__all {
  min-height: 52px;
  margin-top: 5px;
  color: #06335c !important;
  font-weight: 700 !important;
  background: #fff8e6;
  border-top: 1px solid #f0cf7e;
  border-left: 3px solid transparent;
}

.ves-catalog-dropdown__all span,
.company-catalog-menu__all span {
  color: #f2a900;
  font-size: 19px;
}

.site-header,
.site-header .header-catalog-row,
.product-header,
.home-header {
  overflow: visible !important;
}

@media (max-width: 640px) {
  .ves-catalog-menu,
  .company-catalog-menu {
    width: 100%;
  }

  .ves-catalog-menu > .catalog-button,
  .company-catalog-menu > .catalog-button {
    width: 100%;
  }

  .ves-catalog-dropdown,
  .company-catalog-mega {
    width: min(370px, calc(100vw - 24px));
  }
}

/* Единое положение кнопки запроса в шапке главной и внутренних страниц. */
.site-header .header-catalog-row {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: minmax(210px, 260px) minmax(280px, 430px) auto minmax(240px, 1fr);
  align-items: center !important;
  width: min(100%, 1440px) !important;
  min-height: 44px;
  margin: 14px auto 0 !important;
  gap: 24px !important;
}

.site-header .header-catalog-row > .ves-catalog-menu,
.site-header .header-catalog-row > .company-catalog-menu,
.site-header .header-catalog-row > .catalog-button {
  grid-column: 1;
  justify-self: start;
  margin: 0 !important;
}

.site-header .header-catalog-row > .header-quote {
  grid-column: 4;
  justify-self: end;
  display: inline-flex !important;
  min-width: 165px;
  min-height: 44px;
  margin: 0 !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

body:not(.home-page):not(.catalog-page) .site-header.product-header {
  padding: 18px clamp(24px, 3.5vw, 56px) 12px !important;
}

/* Общая всплывающая форма для кнопки «Отправить запрос» в шапке. */
.ves-site-request-modal[hidden] {
  display: none !important;
}

.ves-site-request-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 24px;
  overflow-y: auto;
  background: rgba(3, 35, 64, 0.72);
  backdrop-filter: blur(4px);
}

.ves-site-request-modal__panel {
  position: relative;
  box-sizing: border-box;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 34px;
  color: #032f55;
  background: #fff;
  border: 1px solid #dce7f1;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(1, 32, 58, 0.28);
}

.ves-site-request-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: #06345d;
  background: #fff;
  border: 1px solid #d7e3ee;
  border-radius: 50%;
  font: 700 24px/1 Arial, sans-serif;
  cursor: pointer;
}

.ves-site-request-modal__close:hover,
.ves-site-request-modal__close:focus-visible {
  color: #fff;
  background: #f2a900;
  border-color: #f2a900;
  outline: none;
}

.ves-site-request-modal__eyebrow {
  margin: 0 52px 8px 0;
  color: #9a6700;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ves-site-request-modal__title {
  margin: 0 52px 10px 0;
  color: #032f55;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.16;
}

.ves-site-request-modal__intro {
  margin: 0 0 24px;
  color: #526984;
  font-size: 16px;
  line-height: 1.55;
}

.ves-site-request-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ves-site-request-form label {
  display: grid;
  gap: 7px;
  color: #032f55;
  font-size: 14px;
  font-weight: 700;
}

.ves-site-request-form label.ves-site-request-form__wide {
  grid-column: 1 / -1;
}

.ves-site-request-form input,
.ves-site-request-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #032f55;
  background: #fff;
  border: 1px solid #c9d8e5;
  border-radius: 11px;
  font: inherit;
  font-weight: 400;
}

.ves-site-request-form textarea {
  min-height: 108px;
  resize: vertical;
}

.ves-site-request-form input:focus,
.ves-site-request-form textarea:focus {
  border-color: #f2a900;
  outline: 3px solid rgba(242, 169, 0, 0.2);
}

.ves-site-request-form__file-note {
  color: #687c91;
  font-size: 12px;
  font-weight: 400;
}

.ves-site-request-form__consent {
  display: flex !important;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 10px !important;
  color: #526984 !important;
  font-size: 13px !important;
  line-height: 1.45;
}

.ves-site-request-form__consent input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #f2a900;
}

.ves-site-request-form__consent a {
  color: #06477c !important;
  text-decoration: underline;
}

.ves-site-request-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ves-site-request-form__submit {
  min-height: 50px;
  margin-top: 20px;
  padding: 13px 28px;
  color: #032f55;
  background: linear-gradient(135deg, #ffc62a, #f2a900);
  border: 1px solid #f2a900;
  border-radius: 11px;
  box-shadow: 0 10px 24px rgba(242, 169, 0, 0.2);
  font: 800 15px/1.2 Arial, sans-serif;
  cursor: pointer;
}

.ves-site-request-form__submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.ves-site-request-form__status {
  min-height: 22px;
  margin: 14px 0 0;
  color: #526984;
  font-size: 14px;
  line-height: 1.45;
}

.ves-site-request-form__status.is-success {
  color: #167145;
}

.ves-site-request-form__status.is-error {
  color: #b42318;
}

body.ves-site-request-modal-open {
  overflow: hidden;
}

@media (max-width: 1220px) {
  .site-header .header-catalog-row {
    grid-template-columns: minmax(190px, 240px) minmax(240px, 1fr) auto minmax(220px, max-content);
    gap: 16px !important;
  }
}

@media (max-width: 860px) {
  .site-header .header-catalog-row {
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  body:not(.home-page):not(.catalog-page) .site-header.product-header .main-nav {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .site-header .header-catalog-row {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .site-header .header-catalog-row > .ves-catalog-menu,
  .site-header .header-catalog-row > .company-catalog-menu {
    flex: 1 1 100%;
  }

  .site-header .header-catalog-row > .header-quote {
    width: 100%;
  }

  .ves-site-request-modal {
    align-items: start;
    padding: 12px;
  }

  .ves-site-request-modal__panel {
    max-height: calc(100vh - 24px);
    padding: 28px 18px 22px;
    border-radius: 17px;
  }

  .ves-site-request-form__grid {
    grid-template-columns: 1fr;
  }

  .ves-site-request-form label.ves-site-request-form__wide,
  .ves-site-request-form__consent {
    grid-column: auto;
  }

  .ves-site-request-form__submit {
    width: 100%;
  }
}
