/* Ширина штатных полей определяется до JS, содержимое формы остаётся исходным */
.st-contacts-native-form > .form-input:has(textarea, select[name="form_dropdown_SIMPLE_QUESTION_457"]),
.st-contacts-native-form > .form-input__checkbox,
.st-contacts-native-form > .form-input__capthca { grid-column: 1 / -1; }

/* Contacts presentation, 2026-11-27 — scoped to the existing page and native form */
.main-content.st-contacts-page {
  --contact-ink: #172124;
  --contact-muted: #586164;
  --contact-paper: #f5f3ee;
  --contact-copper: #a14f2d;
  background: var(--contact-paper);
  color: var(--contact-ink);
  padding-bottom: 1px;
}
.st-contacts-page > .st-contacts-heading { padding-top: 34px; }
.st-contacts-page .st-contacts-heading .st-breadcrumb { margin-bottom: 24px; }
.st-contacts-page .st-contacts-title-row { align-items: center; margin-bottom: 26px; }
.st-contacts-page .st-contacts-title-row h1 {
  margin: 0;
  color: var(--contact-ink);
  font: 500 clamp(38px, 4.6vw, 66px)/1.1 'Inter', Arial, sans-serif;
  letter-spacing: -.045em;
}
.st-contacts-page .st-contacts-form-link {
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid #a7aca7;
  border-radius: 5px;
  color: var(--contact-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.st-contacts-page .st-contacts-form-link:hover { background: #eae7df; text-decoration: none; }
.st-contacts-page > .before-content.st-contacts-banner { border-radius: 7px; }
.st-contacts-page .contacts-row.st-contacts-main {
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 4vw, 60px);
  margin-top: 38px;
}
.st-contacts-page .st-contacts-details { font-size: 15px; line-height: 1.7; }
.st-contacts-page .st-contacts-details h3 {
  font: 500 clamp(23px, 2.2vw, 29px)/1.25 'Inter', Arial, sans-serif;
  letter-spacing: -.035em;
  text-transform: none;
}
.st-contacts-page .st-contacts-details p { margin-bottom: 16px; }
.st-contacts-page .st-contacts-details :is(p, span).uppercase { text-transform: none; }
.st-contacts-page .st-contact-office {
  padding: clamp(24px, 2.8vw, 38px);
  background: var(--contact-ink);
  color: #f7f6f2;
  border-radius: 7px;
}
.st-contacts-page .st-contact-office h3 { color: #f7f6f2; margin: 0 0 18px; }
.st-contacts-page .st-contact-office > p:first-of-type { color: #c6cecb; max-width: 36ch; }
.st-contacts-page .st-contact-office .size20 { margin-top: 25px; font-size: 17px; line-height: 1.9; }
.st-contacts-page .st-contact-office .size20 b { font-weight: 500; }
.st-contacts-page .st-contact-office a { color: #f7f6f2; }
.st-contacts-page .st-contact-office a:hover { color: #e9ae89; }
.st-contacts-page .st-contact-office .contacts-socials { margin: 23px 0 0; gap: 10px; }
.st-contacts-page .st-contact-office .contacts-socials a {
  min-width: 46px;
  min-height: 46px;
  border: 0;
  border-radius: 5px;
  padding: 9px;
  background: #f2f1eb;
  color: var(--contact-ink);
}
.st-contacts-page .st-contact-office .contacts-socials a:hover { background: #e4d2bf; }
.st-contacts-page .st-contact-service { padding: 31px 0 0; }
.st-contacts-page .st-contact-service .st-contact-service-title { margin: 0 0 18px; }
.st-contacts-page .st-contact-service .service-center-site { margin: 0 0 22px; text-transform: none; }
.st-contacts-page .st-contact-service a.st-contact-service-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 3px 0;
  color: var(--contact-ink);
  text-transform: none;
  text-decoration: none;
}
.st-contacts-page .st-contact-service-link span { color: var(--contact-muted); font-size: 13px; line-height: 1.5; }
.st-contacts-page .st-contact-service-link strong { color: var(--contact-copper); font-size: 22px; line-height: 1.35; font-weight: 500; }
.st-contacts-page .st-contact-service a.st-contact-service-link:hover strong { color: #74371f; }
.st-contacts-page .st-contact-service .service-center-phone { color: var(--contact-ink); font-size: 20px; font-weight: 500; }
.st-contacts-page .st-contact-service > p { color: #465154; }
.st-contacts-page .st-contact-service > p b { color: var(--contact-ink); font-weight: 500; }
.st-contacts-page .st-contact-service > p:last-child { margin-bottom: 0; }
.st-contacts-page .st-contacts-form-panel {
  padding: clamp(24px, 3.2vw, 46px) !important;
  background: #fff;
  border: 0;
  border-radius: 7px;
  scroll-margin-top: 150px;
}
.st-contacts-page .st-contacts-form-panel:focus { outline: none; }
.st-contacts-page .st-contacts-form-panel:focus-visible { outline: 2px solid var(--contact-copper); outline-offset: 6px; }
.st-contacts-page .st-contacts-form-panel .st-contacts-form-title {
  margin: 0 0 10px;
  color: var(--contact-ink);
  font: 500 clamp(27px, 2.6vw, 36px)/1.2 'Inter', Arial, sans-serif;
  letter-spacing: -.04em;
}
.st-contacts-page .st-contact-form-intro {
  margin: 0 0 10px;
  color: var(--contact-muted);
  font: 400 15px/1.55 'Inter', Arial, sans-serif;
}
.st-contacts-page .st-contact-required-note {
  margin: 0 0 27px;
  color: #687174;
  font: 400 12px/1.5 'Inter', Arial, sans-serif;
}
.st-contacts-page .st-contacts-native-form { gap: 20px 18px; }
.st-contacts-page .st-contacts-native-form > .title-custom-done:empty { display: none; }
.st-contacts-page .st-contacts-native-form .form-input-title,
.st-contacts-page .st-contacts-native-form .form-input > label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374346;
}
.st-contacts-page .st-contacts-native-form .form-input :is(input[type='text'], input[type='email'], select, textarea) {
  min-height: 50px;
  padding: 12px 14px;
  color: var(--contact-ink);
  background-color: #fcfcfa;
  border: 1px solid #b0b7b3;
  border-radius: 5px;
  box-shadow: none;
  font: 400 16px/1.5 'Inter', Arial, sans-serif;
}
.st-contacts-page .st-contacts-native-form .form-input :is(input, textarea)::placeholder { color: #727b7d; opacity: 1; }
.st-contacts-page .st-contacts-native-form .form-input :is(input[type='text'], input[type='email'], select, textarea):focus {
  border-color: #596b67;
  background-color: #fff;
}
.st-contacts-page .st-contacts-native-form .form-input textarea { min-height: 132px; }
.st-contacts-page .st-contacts-native-form .form-input__checkbox label {
  margin: 0;
  color: #4c585a;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}
.st-contacts-page .st-contacts-native-form .form-input__checkbox label span { padding-top: 4px; padding-bottom: 4px; }
.st-contacts-page .st-contacts-native-form .form-input__checkbox label span:before { top: 4px; border-color: #778681; border-radius: 3px; }
.st-contacts-page .st-contacts-native-form .form-input__checkbox input:checked + span:after { top: 9px; }
.st-contacts-page .st-contacts-native-form .form-input__checkbox input:focus-visible + span:before { outline: 2px solid var(--contact-copper); outline-offset: 3px; }
.st-contacts-page .st-contacts-native-form .form-input__checkbox a { color: #86472d; text-decoration: underline; text-underline-offset: 3px; }
.st-contacts-page .st-contacts-native-form .form-input__capthca {
  box-sizing: border-box;
  padding: 17px 18px;
  background: var(--contact-paper);
  border-radius: 5px;
}
.st-contacts-page .st-contacts-native-form .form-input__capthca-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.st-contacts-page .st-contacts-native-form .form-input__capthca-row input { order: 2; }
.st-contacts-page .st-contacts-native-form .form-input__capthca-row img {
  order: 1;
  display: block;
  flex: none;
  width: 180px !important;
  height: 40px !important;
  max-width: 100%;
  margin: 0;
  border: 0;
  border-radius: 3px;
  object-fit: contain;
  filter: grayscale(1);
}
.st-contacts-page .st-contact-captcha-hint {
  margin: 10px 0 0;
  color: #606b6c;
  font: 400 12px/1.5 'Inter', Arial, sans-serif;
}
.st-contacts-page .st-contacts-native-form > .title-custom-done[hidden] { display: none; }
.st-contacts-page .st-contacts-native-form .st-contact-captcha-original img { filter: none; }
.st-contacts-page .st-contact-captcha-colors {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #86472d;
  font: 500 12px/1.5 'Inter', Arial, sans-serif;
  cursor: pointer;
}
.st-contacts-page .st-contact-captcha-colors:hover { color: #172124; }
.st-contacts-page .st-contacts-native-form .form-input__submit .btn {
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid var(--contact-ink);
  border-radius: 5px;
  color: #fff;
  background: var(--contact-ink);
  font: 500 15px/1.5 'Inter', Arial, sans-serif;
  letter-spacing: .01em;
  text-transform: none;
  opacity: 1;
}
.st-contacts-page .st-contacts-native-form .form-input__submit .btn:hover:not(:disabled) { background: #31403f; border-color: #31403f; }
.st-contacts-page .st-contacts-native-form .form-input__submit .btn:disabled {
  opacity: 1 !important;
  border-color: #d7dcd8;
  background: #d7dcd8;
  color: #5d6868;
  cursor: not-allowed;
}
.st-contacts-page .st-contacts-native-form .form-input.has-error :is(input, select, textarea) { border-color: #ac3f32; }
.st-contacts-page :is(a, input, select, textarea, button):focus-visible { outline: 2px solid var(--contact-copper); outline-offset: 3px; }
.st-contacts-page .st-contact-office a:focus-visible { outline-color: #e9ae89; }
.st-contacts-page .contacts-bottom-links { gap: 24px; margin-top: 48px; }
.st-contacts-page .contacts-bottom-link-item { border: 0; background: transparent; }
.st-contacts-page .contacts-bottom-link-item a { grid-template-rows: 150px minmax(54px, auto); font-size: 16px; font-weight: 500; }
.st-contacts-page .contacts-bottom-link-item__picture { border-radius: 5px; overflow: hidden; }
.st-contacts-page .contacts-bottom-link-item__text { padding: 15px 0; }
.st-contacts-page .contacts-bottom-link-item a:hover { color: var(--contact-copper); }
.st-contacts-page .st-contacts-legal { margin: 38px 0 60px; color: #5a6567; }
.st-contacts-page .st-contacts-legal h3 { color: #354246; font: 500 18px/1.4 'Inter', Arial, sans-serif; letter-spacing: -.02em; }
@media (max-width: 1100px) {
  .st-contacts-page .st-contacts-native-form .form-input__capthca-row { grid-template-columns: 1fr; gap: 12px; }
  .st-contacts-page .st-contacts-native-form .form-input__capthca-row input { max-width: 100%; }
}
@media (max-width: 900px) {
  .st-contacts-page .contacts-row.st-contacts-main { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; }
  .st-contacts-page .st-contact-office { padding: 25px; }
  .st-contacts-page .st-contacts-form-panel { padding: 25px !important; }
  .st-contacts-page .st-contacts-native-form { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 700px) {
  .st-contacts-page > .st-contacts-heading { padding-top: 24px; }
  .st-contacts-page .st-contacts-heading .st-breadcrumb { margin-bottom: 20px; }
  .st-contacts-page .st-contacts-title-row { margin-bottom: 22px; gap: 18px; }
  .st-contacts-page .st-contacts-title-row h1 { margin: 0; font-size: 39px; }
  .st-contacts-page .st-contacts-form-link { font-size: 13px; min-height: 44px; padding: 10px 14px; }
  .st-contacts-page .contacts-row.st-contacts-main { display: flex; flex-direction: column; gap: 30px; margin-top: 24px; }
  .st-contacts-page .st-contacts-details { font-size: 14px; }
  .st-contacts-page .st-contact-office { padding: 25px 22px; }
  .st-contacts-page .st-contact-office .size20 { font-size: 16px; }
  .st-contacts-page .st-contact-service { padding-top: 27px; }
  .st-contacts-page .st-contacts-form-panel { padding: 25px 20px !important; scroll-margin-top: 94px; }
  .st-contacts-page .st-contacts-form-panel .st-contacts-form-title { font-size: 28px; }
  .st-contacts-page .st-contact-form-intro { font-size: 14px; }
  .st-contacts-page .st-contact-required-note { margin-bottom: 24px; }
  .st-contacts-page .st-contacts-native-form .form-input__capthca { padding: 16px; }
  .st-contacts-page .contacts-bottom-links { gap: 14px; margin-top: 30px; }
  .st-contacts-page .contacts-bottom-link-item a { grid-template-columns: 100px minmax(0, 1fr); grid-template-rows: auto; min-height: 92px; }
  .st-contacts-page .contacts-bottom-link-item__text { padding: 12px 16px; }
  .st-contacts-page .st-contacts-legal { margin: 30px 0 40px; }
}
@media (forced-colors: active) {
  .st-contacts-page .st-contacts-form-link,
  .st-contacts-page .st-contacts-native-form .form-input__submit .btn { border: 1px solid ButtonText; }
  .st-contacts-page .st-contacts-native-form .form-input__submit .btn:disabled { color: GrayText; border-color: GrayText; }
}
