.contact-hero,
.contact-content {
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
}

.contact-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #25324a url('../images/about/about-banner.png') center center / cover no-repeat;
  color: #ffffff;
}

.contact-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(33, 45, 69, 0.46);
}

.contact-hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.contact-hero h1 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1.15;
}

.contact-hero__breadcrumb {
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.contact-hero__breadcrumb a {
  transition: color 180ms ease;
}

.contact-hero__breadcrumb a:hover,
.contact-hero__breadcrumb a:focus-visible {
  color: #65b1ff;
}

.contact-content {
  min-height: 780px;
  padding: 60px 0;
  background: #ffffff;
}

.contact-content__layout {
  display: grid;
  grid-template-columns: minmax(0, 648px) minmax(0, 720px);
  align-items: center;
  justify-content: space-between;
  gap: 72px;
}

.contact-details {
  min-width: 0;
}

.contact-detail {
  padding: 30px 0;
  border-bottom: 1px solid #e5e5e5;
}

.contact-detail h2 {
  margin: 0;
  color: #222222;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
}

.contact-detail p,
.contact-detail a {
  margin: 10px 0 0;
  display: block;
  color: #666666;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}

.contact-detail a:hover,
.contact-detail a:focus-visible {
  color: #0567cc;
}

.contact-message-card {
  width: 100%;
  height: 660px;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 5px 10px rgba(10, 59, 109, 0.19);
}

.contact-message-card > h2 {
  margin: 0;
  color: #232323;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.contact-form {
  margin-top: 62px;
}

.contact-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  column-gap: 20px;
  row-gap: 40px;
}

.contact-form__field {
  min-width: 0;
  display: block;
}

.contact-form__field > span {
  min-height: 23px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #333333;
  font-size: 15px;
  font-weight: 400;
  line-height: 23px;
}

.contact-form__field b {
  color: #c40f0f;
  font-size: 13px;
  font-weight: 700;
}

.contact-form__field--phone > span {
  padding-left: 10px;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  background: #ffffff;
  color: #333333;
  font-size: 14px;
  font-weight: 400;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input {
  height: 50px;
  margin-top: 10px;
  padding: 0 10px;
}

.contact-form textarea {
  height: 100px;
  margin-top: 20px;
  padding: 10px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #757575;
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0567cc;
  box-shadow: 0 0 0 3px rgba(5, 103, 204, 0.1);
}

.contact-form__field--message {
  grid-column: 1 / -1;
}

.contact-form__submit {
  position: relative;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form button {
  width: 245px;
  max-width: 100%;
  height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 4px;
  background: #0567cc;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition: background-color 180ms ease, transform 180ms ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: #034f9d;
  transform: translateY(-1px);
}

.contact-form button:focus-visible {
  outline: 2px solid rgba(5, 103, 204, 0.45);
  outline-offset: 3px;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.contact-form__status {
  position: absolute;
  top: 61px;
  left: 0;
  width: 100%;
  min-height: 18px;
  margin: 0;
  color: #666666;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

.contact-form__status.is-success {
  color: #137333;
}

.contact-form__status.is-error {
  color: #c40f0f;
}

@media (max-width: 1439px) {
  .contact-content__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.11fr);
    gap: 48px;
  }

  .contact-form__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  .contact-content {
    min-height: 0;
    padding: 50px 0 60px;
  }

  .contact-content__layout {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
    gap: 48px;
  }

  .contact-message-card {
    height: auto;
    min-height: 660px;
  }
}

@media (max-width: 767px) {
  .contact-hero {
    height: 220px;
  }

  .contact-hero h1 {
    font-size: 42px;
  }

  .contact-content {
    padding: 26px 0 48px;
  }

  .contact-content__layout {
    gap: 36px;
  }

  .contact-detail {
    padding: 24px 0;
  }

  .contact-detail h2 {
    font-size: 25px;
  }

  .contact-message-card {
    min-height: 0;
    padding: 28px 22px 38px;
  }

  .contact-message-card > h2 {
    font-size: 34px;
  }

  .contact-form {
    margin-top: 40px;
  }

  .contact-form__fields {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }

  .contact-form__field--message {
    grid-column: auto;
  }

  .contact-form__submit {
    margin-top: 28px;
  }
}

@media (max-width: 420px) {
  .contact-hero {
    height: 200px;
  }

  .contact-hero h1 {
    font-size: 36px;
  }

  .contact-hero__breadcrumb {
    min-height: 30px;
    font-size: 13px;
  }

  .contact-message-card {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 767px) {
  .contact-hero { height: 180px; }
  .contact-hero__content { padding-top: 38px; }
  .contact-hero h1 { font-size: 30px; line-height: 38px; }
  .contact-content { padding: 22px 0 42px; }
  .contact-content__layout { gap: 28px; }
  .contact-detail { padding: 18px 0; }
  .contact-detail h2 { font-size: 23px; line-height: 30px; }
  .contact-message-card { padding: 24px 18px 32px; }
  .contact-message-card > h2 { font-size: 30px; line-height: 39px; }
  .contact-form { margin-top: 30px; }
  .contact-form__fields { row-gap: 18px; }
}
