.contact-page {
  width: 100%;
  padding-top: 78px;
  background: #fff;
  color: #08283d;
}
.contact-section {
  overflow: hidden;
  background: #fff;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(430px, 486px) minmax(0, 1fr);
  width: min(calc(100% - 24px), 1320px);
  min-height: 840px;
  margin-left: max(24px, calc((100% - 1200px) / 2));
  gap: 30px;
}
.contact-copy {
  padding: 50px 0 86px;
}
.contact-heading h1 {
  margin: 0;
  color: #06263b;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 700;
}
.contact-heading p {
  max-width: 410px;
  margin: 27px 0 25px;
  color: #28475c;
  font-size: 15px;
  line-height: 1.28;
  font-weight: 600;
}
.contact-form {
  display: grid;
  gap: 16px;
}
.contact-form label {
  display: block;
}
.contact-form label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 4px;
  outline: 0;
  background-color: #f0f0f4;
  color: #181c24;
  font: inherit;
  font-size: 14px;
}
.contact-form input,
.contact-form select {
  height: 40px;
  padding: 0 10px;
}
.contact-form select {
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #ff5b18 50%),
    linear-gradient(135deg, #ff5b18 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 17px,
    calc(100% - 16px) 17px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  appearance: none;
  cursor: pointer;
}
.contact-form textarea {
  min-height: 153px;
  padding: 11px 10px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px rgba(255, 91, 24, 0.45);
}
.contact-message {
  margin: 0;
  color: #151a22;
  font-size: 12px;
  line-height: 1.3;
}
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 285px;
  min-height: 40px;
  padding: 0 41px;
  border: 0;
  border-radius: 4px;
  background: #ff5b18;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.contact-submit__arrow {
  font-size: 25px;
  line-height: 1;
  font-weight: 300;
}
.contact-submit:hover {
  background: #e94b0b;
}
.contact-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}
.contact-message {
  min-height: 16px;
  margin-top: -7px;
  font-weight: 700;
}
.contact-message.is-error {
  color: #b42318;
}
.contact-message.is-success {
  color: #217a3d;
}
.contact-visual {
  min-height: 840px;
  overflow: hidden;
}
.contact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
}
.contact-facilities {
  padding: 73px 0 97px;
  background: #f7f7f7;
}
.contact-facilities .shell {
  width: min(calc(100% - 48px), 1200px);
  margin: 0 auto;
}
.contact-facilities h2 {
  margin: 0 0 51px;
  color: #06263b;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
}
.contact-facilities__grid {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(300px, 1fr);
  align-items: center;
  gap: 30px;
}
.contact-facilities__grid > img {
  width: 100%;
  aspect-ratio: 650/452;
  object-fit: cover;
  object-position: center;
}
.contact-address {
  max-width: 380px;
  color: #304758;
  font-size: 18px;
  line-height: 1.22;
  font-style: normal;
}
.contact-address p {
  margin: 0 0 29px;
}
.contact-address a {
  color: #06263b;
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: minmax(360px, 44%) minmax(0, 1fr);
    min-height: 760px;
    margin-left: 24px;
  }
  .contact-visual {
    min-height: 760px;
  }
  .contact-facilities__grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr);
  }
}
@media (max-width: 767px) {
  .contact-page {
    padding-top: 64px;
  }
  .contact-layout {
    display: flex;
    width: 100%;
    min-height: 0;
    margin: 0;
    flex-direction: column;
    gap: 0;
  }
  .contact-copy {
    width: min(calc(100% - 40px), 486px);
    margin: 0 auto;
    padding: 24px 0 55px;
  }
  .contact-heading h1,
  .contact-facilities h2 {
    font-size: 28px;
  }
  .contact-heading p {
    margin-top: 20px;
  }
  .contact-visual {
    order: -1;
    position: relative;
    width: 100%;
    min-height: 0;
    aspect-ratio: 8 / 5;
  }
  .contact-visual img {
    position: absolute;
    inset: 0;
    object-position: 63% center;
  }
  .contact-facilities {
    padding: 55px 0 65px;
  }
  .contact-facilities .shell {
    width: min(calc(100% - 40px), 650px);
  }
  .contact-facilities h2 {
    margin-bottom: 32px;
  }
  .contact-facilities__grid {
    grid-template-columns: 1fr;
    gap: 31px;
  }
  .contact-address {
    max-width: 420px;
  }
}
@media (max-width: 420px) {
  .contact-submit {
    width: 100%;
  }
  .contact-submit {
    padding-inline: 28px;
  }
}
