.header__socials .st-messenger {
  box-sizing: border-box;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 50%;
  background: rgb(10 34 55 / 45%);
}
.header__socials .st-messenger:not(:first-child) { margin-left: 7px; }
.header__socials .st-messenger svg,
.footer__socials .st-messenger svg,
.modal-menu__socials .st-messenger svg {
  width: 18px;
  height: 18px;
}
.header__socials .st-messenger:hover { border-color: #ffd447; }
.header__socials .st-messenger:hover svg { fill: #ffd447; }
.footer__socials .st-messenger { display: grid; place-items: center; }
.modal-menu__contacts { z-index: 1; }
.modal-menu__nav { z-index: 1; margin-top: 16px; }
.modal-menu__nav a { color: #194560; }
.modal-menu__nav > ul > li > a::after { background: #cbdbe5; }
.modal-menu__socials { gap: 6px; }
.modal-menu__socials .st-messenger {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  width: auto;
  height: auto;
  min-height: 56px;
  padding: 5px 3px;
  border: 1px solid #cfdee9;
  border-radius: 8px;
  color: #194560;
  background: #f0f6fa;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
}
.modal-menu__socials .st-messenger:not(:first-child) { margin-left: 0; }
.modal-menu__socials .st-messenger svg { fill: currentColor; }
.st-messenger:focus-visible { outline: 3px solid #2a83b3; outline-offset: 3px; }

.st-contact-shell { --st-contacts-header-height: 160px; }
.st-contact-shell > .main { padding-top: 0; }
.st-contact-shell > .footer { padding-top: 30px; }
.st-contact-shell > .header:not(.header--fixed) {
  background: transparent;
  text-shadow: 0 1px 4px rgb(9 29 45 / 90%);
}
.st-contact-shell .header__cloud-1,
.st-contact-shell .header__cloud-2 { display: none; }
.st-contact-page {
  position: relative;
  isolation: isolate;
  padding: calc(var(--st-contacts-header-height) + 40px) 0 66px;
  color: #132f46;
  background: #eaf3f8;
}
.st-contact-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(9 29 45 / 49%), transparent 240px),
    linear-gradient(90deg, rgb(9 29 45 / 91%), rgb(9 29 45 / 50%) 68%, rgb(9 29 45 / 14%)),
    url("../img/contacts-forest-20261202.webp") center 52% / cover;
}
.st-contact-layout {
  width: min(100% - 64px, 1140px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 490px);
  align-items: center;
  gap: 42px;
}
.st-contact-intro h1 {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  color: #fff;
}
.st-contact-intro p {
  margin: 15px 0 22px;
  color: #fff;
  font-size: 1.125rem;
  line-height: 1.5;
}
.st-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.st-contact-links .st-messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 8px 15px;
  border: 1px solid #d6e3ed;
  border-radius: 8px;
  color: #194560;
  background: #fff;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 700;
}
.st-contact-links .st-messenger svg { flex: none; width: 22px; height: 22px; fill: currentColor; }
.st-contact-links .st-messenger:hover { background: #e9f4fb; }
.st-contact-card {
  padding: clamp(20px, 3vw, 31px);
  border: 1px solid #dde9f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 15px 40px rgb(9 29 45 / 18%);
}
.st-contact-card h2 {
  margin: 0 0 18px;
  color: #132f46;
  font-family: Inter, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.st-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.st-contact-method, .st-contact-field {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 5px;
  color: #16364e;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.4;
}
.st-contact-method, .st-contact-question, .st-contact-submit, .st-contact-error { grid-column: 1 / -1; }
.st-contact-method { position: relative; }
.st-contact-method::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 21px;
  width: 7px;
  height: 7px;
  border: solid #436078;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.st-contact-method select, .st-contact-field input, .st-contact-field textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 9px 12px;
  border: 1px solid #afc4d3;
  border-radius: 8px;
  background: #f8fbfd;
  color: #16364e;
  font-size: 1rem;
  font-weight: 400;
}
.st-contact-method select { appearance: none; padding-right: 36px; }
.st-contact-field textarea { resize: vertical; }
.st-contact-method select:focus-visible, .st-contact-field input:focus-visible, .st-contact-field textarea:focus-visible {
  outline: 2px solid #2a83b3;
  outline-offset: 2px;
}
.st-contact-method .error_input, .st-contact-field .error_input { border-color: #b02e2b; }
.st-contact-error { margin: 0; color: #9e2927; font-size: .875rem; }
.st-contact-submit { display: grid; gap: 9px; }
.st-contact-submit .btn {
  min-height: 50px;
  padding: 8px 20px;
  border: 0;
  border-radius: 8px;
  background: #ffd447;
  color: #142a3b;
  font-size: 1rem;
}
.st-contact-submit .btn:hover { background: #ffe27e; }
.st-contact-submit p {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.45;
  color: #435e71;
}
.st-contact-submit p a { text-decoration: underline; text-underline-offset: 3px; }
.feedback__form.st-feedback-method > .feedback__bottom:nth-child(n) {
  grid-column: 1 / -1;
  flex-direction: row;
}
.feedback__form.st-feedback-method > .feedback__bottom:nth-child(n) .feedback__personal-data {
  margin: 0 16px 0 0;
}
@media (max-width: 1200px) {
  .st-contact-shell { --st-contacts-header-height: 120px; }
}
@media (max-width: 992px) {
  .st-contact-shell { --st-contacts-header-height: 80px; }
  .st-contact-layout { gap: 25px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
@media (max-width: 700px) {
  .st-contact-page { padding: calc(var(--st-contacts-header-height) + 24px) 0 36px; }
  .st-contact-page::before {
    bottom: auto;
    height: 360px;
    background:
      linear-gradient(rgb(9 29 45 / 63%), rgb(9 29 45 / 78%)),
      url("../img/contacts-forest-mobile-20261202.webp") center 46% / cover;
  }
  .st-contact-layout { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 24px; }
  .st-contact-intro p { margin: 12px 0 16px; font-size: 1rem; }
  .st-contact-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .st-contact-links .st-messenger { flex-direction: column; gap: 5px; padding: 8px 4px; }
  .st-contact-form { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .feedback__form.st-feedback-method > .feedback__bottom:nth-child(n) { flex-direction: column; }
  .feedback__form.st-feedback-method > .feedback__bottom:nth-child(n) .feedback__personal-data { margin: 0; }
}

@media (max-width: 420px) {
  .modal-menu .fancybox-button {
    color: #194560;
    border-color: #cfdee9;
    background: #f0f6fa;
  }
  .modal-menu .fancybox-button:hover {
    color: #194560;
    border-color: #8cabbf;
    background: #dcecf6;
  }
}
