/* positions.html — модалка «ОСТАВИТЬ ЗАЯВКУ» 1:1 index.html (финальный слой поверх positions.css) */

html body.page-positions {
  --index-news-btn-width: 6.4cm;
  --index-news-btn-height: 1.3cm;
  --index-news-btn-radius: 14px;
  --index-font-block-title: 1.08rem;
  --index-modal-field-label-font: 0.8125rem;
  --index-modal-field-value-font: 0.875rem;
  --index-header-capsule-gutter: clamp(12px, 2vw, 20px);
  --index-header-capsule-width: min(var(--m-content-w, 1220px), calc(100vw - (clamp(12px, 2vw, 20px) * 2)));
  --target-modal-legal-link-blue: var(--blue-dark, #4f8df0);
  --target-modal-legal-link-blue-hover: #2f70d7;
}

/* overlay + dialog */
html body.page-positions #officeFeedbackModal#officeFeedbackModal.social-legal-modal.active {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  overflow-y: auto !important;
  padding-left: var(--index-header-capsule-gutter, clamp(12px, 2vw, 20px)) !important;
  padding-right: var(--index-header-capsule-gutter, clamp(12px, 2vw, 20px)) !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal.active .social-legal-modal-dialog {
  width: var(--index-header-capsule-width, min(var(--m-content-w, 1220px), calc(100vw - (clamp(12px, 2vw, 20px) * 2)))) !important;
  max-width: var(--index-header-capsule-width, min(var(--m-content-w, 1220px), calc(100vw - (clamp(12px, 2vw, 20px) * 2)))) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
  border-radius: var(--m-modal-radius, 24px) !important;
  box-shadow: var(--m-modal-shadow, 0 28px 80px rgba(10, 18, 25, 0.22), 0 8px 24px rgba(20, 56, 68, 0.12)) !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  animation: none !important;
  transform: none !important;
  box-sizing: border-box !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal.active .social-legal-form-card,
html body.page-positions #officeFeedbackModal#officeFeedbackModal.active .social-legal-modal-content,
html body.page-positions #officeFeedbackModal#officeFeedbackModal.active #officeFeedbackForm {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal.active #officeFeedbackForm {
  flex: 1 1 auto !important;
  position: relative !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal.active .social-legal-modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}

/* шапка / подвал 1.5 см */
html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-modal-header,
html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-modal-footer {
  flex: 0 0 1.5cm !important;
  height: 1.5cm !important;
  min-height: 1.5cm !important;
  max-height: 1.5cm !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-modal-header {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 22px !important;
  padding-right: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  background-image: none !important;
  border-bottom: 1px solid #e7edf5 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04) !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-modal-header h2,
html body.page-positions #officeFeedbackModal#officeFeedbackModal #officeFeedbackModalTitle {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  font-size: var(--index-font-block-title, 1.08rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  color: var(--text-main, #111111) !important;
  -webkit-text-fill-color: var(--text-main, #111111) !important;
  text-transform: none !important;
  text-align: center !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-modal-footer {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
  background: #ffffff !important;
  border-top: 1px solid #e7edf5 !important;
}

/* поля формы */
html body.page-positions #officeFeedbackModal .oai-font-feedback-select-wrap {
  display: none !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-modal-body,
html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-form-group,
html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-form-group label:not(.social-legal-consent-label),
html body.page-positions #officeFeedbackModal#officeFeedbackModal .index-modal-select-host,
html body.page-positions #officeFeedbackModal#officeFeedbackModal .index-modal-select {
  text-align: left !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-form-group label:not(.social-legal-consent-label) {
  display: block !important;
  margin-bottom: 8px !important;
  color: var(--text-main, #111111) !important;
  font-size: var(--index-modal-field-label-font, 0.8125rem) !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-form-group input:not([type="checkbox"]):not([type="radio"]),
html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-form-group textarea,
html body.page-positions #officeFeedbackFio,
html body.page-positions #officeFeedbackPhone,
html body.page-positions #officeFeedbackMessage {
  width: 100% !important;
  padding: 13px 14px !important;
  background: #ffffff !important;
  border: 1px solid #d8dce2 !important;
  color: #111111 !important;
  border-radius: 12px !important;
  font-size: var(--index-modal-field-value-font, 0.875rem) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  outline: none !important;
  transition: 0.2s ease !important;
  box-sizing: border-box !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-form-group textarea,
html body.page-positions #officeFeedbackMessage {
  min-height: 170px !important;
  resize: vertical !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-form-group input:not([type="checkbox"]):not([type="radio"])::placeholder,
html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-form-group textarea::placeholder {
  color: #111111 !important;
  opacity: 0.55 !important;
  font-size: var(--index-modal-field-value-font, 0.875rem) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

html body.page-positions #officeFeedbackQuestion,
html body.page-positions #officeFeedbackQuestion option,
html body.page-positions .index-modal-select-dropdown[data-for-select="officeFeedbackQuestion"],
html body.page-positions .index-modal-select-dropdown[data-for-select="officeFeedbackQuestion"] :is(.index-modal-select-option, button.index-modal-select-option) {
  text-align: left !important;
  text-align-last: left !important;
  direction: ltr !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal :is(.index-modal-select-trigger, button.index-modal-select-trigger) {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 52px !important;
  max-height: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 13px 44px 13px 14px !important;
  white-space: normal !important;
  line-height: 1.55 !important;
  font-size: var(--index-modal-field-value-font, 0.875rem) !important;
  font-weight: 400 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  box-sizing: border-box !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal .index-modal-select-trigger-label {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  white-space: normal !important;
  line-height: 1.35 !important;
  text-align: left !important;
  text-align-last: left !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal :is(.index-modal-select-trigger.is-placeholder, button.index-modal-select-trigger.is-placeholder) {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  opacity: 0.55 !important;
}

html body.page-positions .index-modal-select-dropdown[data-for-select="officeFeedbackQuestion"] {
  align-items: stretch !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

html body.page-positions .index-modal-select-dropdown[data-for-select="officeFeedbackQuestion"] :is(.index-modal-select-option, button.index-modal-select-option) {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: block !important;
  text-align: left !important;
  text-align-last: left !important;
  padding: 12px 14px !important;
  font-size: var(--index-modal-field-value-font, 0.875rem) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  white-space: normal !important;
}

/* согласие */
html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-consent-label,
html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-consent-label span {
  font-size: var(--index-modal-field-label-font, 0.8125rem) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: var(--text-main, #111111) !important;
  -webkit-text-fill-color: var(--text-main, #111111) !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-consent-label span {
  position: relative !important;
  top: 1mm !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-consent-label a,
html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-consent-label a:visited {
  color: var(--target-modal-legal-link-blue, #4f8df0) !important;
  -webkit-text-fill-color: var(--target-modal-legal-link-blue, #4f8df0) !important;
  font-size: var(--index-modal-field-label-font, 0.8125rem) !important;
  line-height: 1.55 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-consent-label a:hover,
html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-consent-label a:focus-visible {
  color: var(--target-modal-legal-link-blue-hover, #2f70d7) !important;
  -webkit-text-fill-color: var(--target-modal-legal-link-blue-hover, #2f70d7) !important;
}

/* кнопка «ОТПРАВИТЬ ЗАЯВКУ» — как «НОВОСТИ» на index */
html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-modal-footer #officeFeedbackSubmitBtn,
html body.page-positions #officeFeedbackModal#officeFeedbackModal button#officeFeedbackSubmitBtn.social-legal-submit-btn,
html body.page-positions div#officeFeedbackModal#officeFeedbackModal .social-legal-modal-footer button#officeFeedbackSubmitBtn.social-legal-submit-btn {
  inline-size: var(--index-news-btn-width, 6.4cm) !important;
  width: var(--index-news-btn-width, 6.4cm) !important;
  min-width: var(--index-news-btn-width, 6.4cm) !important;
  max-width: var(--index-news-btn-width, 6.4cm) !important;
  height: calc(1.5cm - 4px) !important;
  min-height: 0 !important;
  max-height: calc(1.5cm - 4px) !important;
  block-size: calc(1.5cm - 4px) !important;
  flex: 0 0 var(--index-news-btn-width, 6.4cm) !important;
  padding: 0 0.32cm !important;
  margin: 0 !important;
  border: none !important;
  border-radius: var(--index-news-btn-radius, 14px) !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: var(--oai-picture-blue-gradient, linear-gradient(135deg, #2f7085 0%, #3f93ad 52%, #92cbdb 100%)) !important;
  background-image: var(--oai-picture-blue-gradient, linear-gradient(135deg, #2f7085 0%, #3f93ad 52%, #92cbdb 100%)) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: var(--oai-picture-blue-shadow, 0 12px 30px rgba(37, 84, 100, 0.28)) !important;
  filter: none !important;
  transform: none !important;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-modal-footer #officeFeedbackSubmitBtn:hover,
html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-modal-footer #officeFeedbackSubmitBtn:focus-visible,
html body.page-positions #officeFeedbackModal#officeFeedbackModal button#officeFeedbackSubmitBtn.social-legal-submit-btn:hover,
html body.page-positions #officeFeedbackModal#officeFeedbackModal button#officeFeedbackSubmitBtn.social-legal-submit-btn:focus-visible {
  background: var(--oai-picture-blue-gradient-hover, linear-gradient(135deg, #1f4b5b 0%, #2f7892 52%, #75adbc 100%)) !important;
  background-image: var(--oai-picture-blue-gradient-hover, linear-gradient(135deg, #1f4b5b 0%, #2f7892 52%, #75adbc 100%)) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: var(--oai-picture-blue-shadow-hover, 0 16px 36px rgba(37, 84, 100, 0.36)) !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 768px) {
  html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-modal-header,
  html body.page-positions div#officeFeedbackModal#officeFeedbackModal .social-legal-modal-header {
    padding-left: 54px !important;
    padding-right: 54px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 1.5cm !important;
    min-height: 1.5cm !important;
    max-height: 1.5cm !important;
  }

  html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-modal-footer,
  html body.page-positions div#officeFeedbackModal#officeFeedbackModal .social-legal-modal-footer {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    height: 1.5cm !important;
    min-height: 1.5cm !important;
    max-height: 1.5cm !important;
    justify-content: flex-start !important;
  }

  html body.page-positions div#officeFeedbackModal#officeFeedbackModal > div.social-legal-modal-dialog {
    width: calc(100vw - (var(--index-header-capsule-gutter, clamp(12px, 2vw, 20px)) * 2)) !important;
    max-width: calc(100vw - (var(--index-header-capsule-gutter, clamp(12px, 2vw, 20px)) * 2)) !important;
    margin: 0 auto !important;
  }

  html body.page-positions #officeFeedbackModal#officeFeedbackModal :is(.index-modal-select-trigger, button.index-modal-select-trigger) {
    min-height: 48px !important;
    padding: 11px 38px 11px 13px !important;
  }

  html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-modal-footer #officeFeedbackSubmitBtn,
  html body.page-positions #officeFeedbackModal#officeFeedbackModal button#officeFeedbackSubmitBtn.social-legal-submit-btn,
  html body.page-positions div#officeFeedbackModal#officeFeedbackModal button#officeFeedbackSubmitBtn.social-legal-submit-btn {
    inline-size: var(--index-news-btn-width, 6.4cm) !important;
    width: var(--index-news-btn-width, 6.4cm) !important;
    min-width: var(--index-news-btn-width, 6.4cm) !important;
    max-width: min(var(--index-news-btn-width, 6.4cm), 100%) !important;
    flex: 0 0 var(--index-news-btn-width, 6.4cm) !important;
    height: calc(1.5cm - 4px) !important;
    min-height: 0 !important;
    max-height: calc(1.5cm - 4px) !important;
    padding: 0 0.28cm !important;
    font-size: 14px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
}

@media (max-width: 480px) {
  html body.page-positions #officeFeedbackModal#officeFeedbackModal .social-legal-modal-footer #officeFeedbackSubmitBtn,
  html body.page-positions #officeFeedbackModal#officeFeedbackModal button#officeFeedbackSubmitBtn.social-legal-submit-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    inline-size: 100% !important;
    flex: 1 1 auto !important;
  }
}
