html.contacts .contacts-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

html.contacts .contacts-wrap {
  flex: 1 0 auto;
}

html.contacts .contacts-hero {
  display: grid;
  grid-template-columns: 570px 630px;
  align-items: start;
  min-height: 440px;
  margin-top: 30px;
}

html.contacts .contacts-copy h1 {
  width: 521px;
  min-height: 106px;
  margin: 0 0 0 3px;
  color: #1e334c;
  font-family: "Inter Tight", sans-serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.02;
}

html.contacts .contacts-copy h1 strong {
  font-weight: 600;
}

html.contacts .contacts-facts {
  display: grid;
  grid-template-columns: 280px 1fr;
  column-gap: 0;
  row-gap: 20px;
  width: 540px;
  margin: 41px 0 0;
}

html.contacts .contacts-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 12px;
  align-items: start;
}

html.contacts .contacts-item--phone,
html.contacts .contacts-item--email {
  grid-template-columns: 16px 1fr;
  column-gap: 12px;
}

html.contacts .contacts-item img {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

html.contacts .contacts-item--phone img,
html.contacts .contacts-item--legal img,
html.contacts .contacts-item--email img {
  width: 16px;
  height: 16px;
}

html.contacts .contacts-item__value {
  margin: 0;
  color: #1e334c;
  font-family: "Inter Tight", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

html.contacts .contacts-item--address .contacts-item__value {
  max-width: 250px;
  line-height: 1.2;
}

html.contacts .contacts-item__value--phone {
  display: inline-block;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

html.contacts .contacts-item__meta {
  margin: 8px 0 0;
  color: #696969;
  font-family: "Inter Tight", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

html.contacts .contacts-item--legal .contacts-item__value + .contacts-item__legal {
  margin-top: 8px;
}

html.contacts .contacts-item__legal {
  margin: 6px 0 0;
  color: #696969;
  font-family: "Inter Tight", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

html.contacts .contacts-item__action {
  display: block;
  width: fit-content;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  color: #3c5a80;
  font-family: "Inter Tight", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

html.contacts .contacts-item__action:hover {
  opacity: 0.7;
}

html.contacts .contacts-socials {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 27px;
}

html.contacts .contacts-socials a {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  background: #3c5a80;
  border-radius: 49px;
  transition:
    background 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

html.contacts .contacts-socials a:hover {
  background: #2a4466;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(30, 51, 76, 0.22);
}

html.contacts .contacts-socials img {
  width: 19px;
  height: 19px;
}

html.contacts .contacts-yandex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 352px;
  height: 71px;
  margin-top: 41px;
  padding: 20px 32px 21px 33px;
  border: 1px solid rgba(93, 153, 80, 0.34);
  border-radius: 394px;
  color: #1e334c;
  font-family: "Inter Tight", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

html.contacts .contacts-yandex span {
  text-decoration: underline;
}

html.contacts .contacts-yandex img {
  width: 20px;
  height: 19px;
  flex-shrink: 0;
}

html.contacts .contacts-map {
  width: 630px;
  height: 440px;
  overflow: hidden;
  border-radius: 50px;
  background: rgba(30, 51, 76, 0.09);
}

html.contacts .contacts-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

html.contacts .contacts-footer {
  margin-top: 79px;
}

@media (max-width: 1199.98px) {
  html.contacts .contacts-hero,
  html.contacts .contacts-copy,
  html.contacts .contacts-copy h1,
  html.contacts .contacts-facts,
  html.contacts .contacts-map,
  html.contacts .contacts-footer {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  html.contacts .contacts-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-top: 24px;
  }

  html.contacts .contacts-copy h1 {
    width: auto;
    min-height: 0;
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
  }

  html.contacts .contacts-facts {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 28px;
    row-gap: 22px;
  }

  html.contacts .contacts-item--address .contacts-item__value {
    max-width: none;
  }

  html.contacts .contacts-socials {
    margin-top: 24px;
  }

  html.contacts .contacts-yandex {
    width: 100%;
    max-width: 352px;
    margin-top: 28px;
  }

  html.contacts .contacts-map {
    width: 100%;
    max-width: 630px;
    height: auto;
    aspect-ratio: 630 / 440;
    margin-top: 28px;
    border-radius: 30px;
  }

  html.contacts .contacts-footer {
    margin-top: 48px;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  html.contacts .contacts-copy h1 {
    font-size: 30px;
  }

  html.contacts .contacts-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 22px;
  }

  html.contacts .contacts-item--address {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  html.contacts .contacts-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-top: 24px;
  }

  html.contacts .contacts-copy h1 {
    width: auto;
    max-width: 14em;
    min-height: 0;
    margin: 0;
    font-size: 40px;
  }

  html.contacts .contacts-facts {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(220px, 1fr);
    width: 100%;
    max-width: 720px;
    margin-top: 32px;
    column-gap: 24px;
    row-gap: 24px;
  }

  html.contacts .contacts-item--address .contacts-item__value {
    max-width: none;
  }

  html.contacts .contacts-socials {
    margin-top: 28px;
  }

  html.contacts .contacts-yandex {
    width: 352px;
    max-width: 100%;
    margin-top: 32px;
  }

  html.contacts .contacts-map {
    width: 100%;
    max-width: 630px;
    height: auto;
    aspect-ratio: 630 / 440;
    margin-top: 32px;
    border-radius: 40px;
  }

  html.contacts .contacts-footer {
    margin-top: 56px;
  }
}

@media (max-width: 1199.98px) {
  html.contacts .contacts-item__value--phone {
    white-space: normal;
  }
}

@media (min-width: 900px) and (max-width: 1199.98px) {
  html.contacts .contacts-hero {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(280px, 480px);
    column-gap: 28px;
    align-items: start;
  }

  html.contacts .contacts-map {
    width: 100%;
    max-width: 630px;
    margin-top: 0;
  }

  html.contacts .contacts-facts {
    grid-template-columns: 1fr;
    max-width: 420px;
    column-gap: 0;
  }
}

html.contacts .header__socials a,
html.contacts .about-footer__socials a,
html.contacts .menu__socials a {
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

html.contacts .header__socials a:hover,
html.contacts .about-footer__socials a:hover,
html.contacts .menu__socials a:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

html.contacts .form-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

html.contacts .form-modal[hidden] {
  display: none;
}

html.contacts .form-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 36, 0.62);
  opacity: 0;
  transition: opacity 0.32s ease;
}

html.contacts .form-modal.is-open .form-modal__backdrop {
  opacity: 1;
}

html.contacts .form-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 36px 32px 32px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(10, 22, 36, 0.28);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

html.contacts .form-modal.is-open .form-modal__dialog {
  opacity: 1;
  transform: none;
}

html.contacts .form-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #1e334c;
  cursor: pointer;
  transition: background 0.2s ease;
}

html.contacts .form-modal__close:hover {
  background: #2a4466;
}

html.contacts .form-modal__close span {
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
}

html.contacts .form-modal__close span:first-child {
  transform: rotate(45deg);
}

html.contacts .form-modal__close span:last-child {
  transform: rotate(-45deg);
}

html.contacts .form-modal__dialog h2 {
  font-size: 32px;
}

html.contacts .form-modal__lead {
  margin: 10px 0 24px;
  font-size: 16px;
  line-height: 1.4;
  opacity: 0.78;
}

html.contacts .lead-form {
  display: grid;
  gap: 14px;
}

html.contacts .lead-form label {
  display: grid;
  gap: 8px;
}

html.contacts .lead-form label span {
  font-size: 14px;
  font-weight: 600;
}

html.contacts .lead-form__caption {
  display: none;
}

html.contacts .lead-form input,
html.contacts .lead-form textarea {
  width: 100%;
  padding: 0 16px;
  border: 1px solid rgba(30, 51, 76, 0.18);
  border-radius: 16px;
  background: #f5f5f5;
  color: #1e334c;
  font: 400 16px/1.3 "Inter Tight", sans-serif;
}

html.contacts .lead-form input {
  height: 52px;
  line-height: 1;
}

html.contacts .lead-form textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

html.contacts .lead-form input:focus,
html.contacts .lead-form textarea:focus {
  outline: 2px solid #3584d4;
  outline-offset: 1px;
  background: #fff;
}

html.contacts .lead-form label.is-invalid input,
html.contacts .lead-form label.is-invalid textarea {
  border-color: #e23b3b;
  background: #fff6f6;
}

html.contacts .lead-form__error {
  font-size: 13px;
  line-height: 1.3;
  color: #d12b2b;
}

html.contacts .lead-form__consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  column-gap: 10px;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
}

html.contacts .lead-form__consent span {
  font-size: 14px;
  font-weight: 400;
}

html.contacts .lead-form__consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  padding: 0;
  border: 1px solid rgba(30, 51, 76, 0.28);
  border-radius: 4px;
  background: #fff;
  accent-color: #3584d4;
}

html.contacts .lead-form__consent.is-invalid input[type="checkbox"] {
  outline: 2px solid #e23b3b;
  outline-offset: 1px;
}

html.contacts .lead-form__consent .lead-form__error {
  grid-column: 2;
}

html.contacts .lead-form__policy {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

html.contacts .lead-form__policy:hover {
  color: #3584d4;
}

html.contacts .cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 72px;
  padding: 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 61px;
  background: #3c5a80;
  box-shadow:
    inset 0 0 32px rgba(114, 114, 114, 0.25),
    0 18px 36px rgba(77, 111, 156, 0.28);
  color: #fff;
  font: 700 20px/1.2 "Inter Tight", sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}

html.contacts .cta:hover {
  background: #334d6e;
}

html.contacts .cta__arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg);
}

html.contacts .cta--wide {
  width: 100%;
  min-width: 0;
  margin-top: 8px;
}

html.contacts .lead-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

html.contacts .lead-form__fail {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(180, 50, 50, 0.1);
  color: #8a1f1f;
  font-size: 15px;
}

html.contacts .lead-form.is-sending .cta {
  opacity: 0.6;
  pointer-events: none;
}

html.contacts .form-modal.is-sent .form-modal__dialog {
  padding-top: 44px;
  padding-bottom: 36px;
}

html.contacts .form-modal.is-sent [data-form-view],
html.contacts .form-modal__success[hidden] {
  display: none !important;
}

html.contacts .form-modal__success {
  display: none;
  justify-items: center;
  text-align: center;
}

html.contacts .form-modal.is-sent .form-modal__success {
  display: grid;
}

html.contacts .form-modal__success-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #3584d4;
  background: rgba(53, 132, 212, 0.12);
}

html.contacts .form-modal__success h2 {
  max-width: 16em;
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

html.contacts .form-modal__success-text {
  max-width: 22em;
  margin: 14px 0 28px;
  font-size: 16px;
  line-height: 1.45;
  opacity: 0.72;
}

html.contacts .form-modal__success .cta {
  width: min(100%, 240px);
}

html.contacts .lead-form.is-sent .cta,
html.contacts .lead-form.is-sent label {
  display: none;
}

html.contacts body.modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  html.contacts .form-modal__dialog {
    padding: 28px 18px 22px;
  }

  html.contacts .form-modal__dialog h2 {
    font-size: 26px;
  }

  html.contacts .form-modal__success h2 {
    font-size: 24px;
  }
}

@media (max-width: 419.98px) {
  html.contacts .form-modal__dialog h2 {
    font-size: 24px;
    line-height: 1.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.contacts .contacts-socials a,
  html.contacts .header__socials a,
  html.contacts .about-footer__socials a,
  html.contacts .menu__socials a,
  html.contacts .cta,
  html.contacts .form-modal__close,
  html.contacts .form-modal__backdrop,
  html.contacts .form-modal__dialog {
    transition: none;
  }

  html.contacts .form-modal__dialog {
    transform: none;
  }

  html.contacts .contacts-socials a:hover,
  html.contacts .header__socials a:hover,
  html.contacts .about-footer__socials a:hover,
  html.contacts .menu__socials a:hover {
    transform: none;
  }
}
