.contact-page {
  background: #ffffff;
}

.contact-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.contact-header .site-nav .is-active {
  border-bottom: 2px solid #ffffff;
}

.contact-hero {
  position: relative;
  min-height: 542px;
  overflow: hidden;
  color: #ffffff;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.contact-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 542px;
  padding: 170px 20px 98px;
  text-align: center;
}

.contact-hero-content h1 {
  margin: 0;
  max-width: 681px;
  font-family: "Titillium Web", sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 42px;
}

.contact-main {
  background: #ffffff;
  padding: 120px 60px;
}

.contact-main-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 155px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.contact-email-phone {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-line {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 19px;
  padding-left: 27px;
}

.contact-inline-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  max-width: 19px;
  max-height: 19px;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.contact-inline-icon--hover {
  opacity: 0;
}

.contact-line a {
  color: #003b4a;
  font-family: "Lexend", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.25s ease;
}

.contact-line:hover a,
.contact-line:focus-within a {
  color: #b3a07c;
}

.contact-line:hover .contact-inline-icon--default,
.contact-line:focus-within .contact-inline-icon--default {
  opacity: 0;
}

.contact-line:hover .contact-inline-icon--hover,
.contact-line:focus-within .contact-inline-icon--hover {
  opacity: 1;
}

.contact-info-block h2 {
  margin: 0 0 18px;
  color: #003b4a;
  font-family: "Titillium Web", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
}

.contact-info-block p {
  margin: 0;
  color: #003b4a;
  font-family: "Lexend", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
}

.contact-info-block--address p {
  transition: color 0.25s ease;
}

.contact-info-block--address:hover p,
.contact-info-block--address:focus-within p {
  color: #b3a07c;
}

.contact-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-socials a {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
}

.contact-social-icon {
  grid-area: 1 / 1;
  width: auto;
  height: auto;
  max-width: 50px;
  max-height: 50px;
  transition: opacity 0.25s ease;
}

.contact-social-icon--hover {
  opacity: 0;
}

.contact-socials a:hover .contact-social-icon--default,
.contact-socials a:focus-visible .contact-social-icon--default {
  opacity: 0;
}

.contact-socials a:hover .contact-social-icon--hover,
.contact-socials a:focus-visible .contact-social-icon--hover {
  opacity: 1;
}

.contact-form-wrap {
  min-height: 818px;
  border: 1px solid #003b4a;
  padding: 56px 60px;
}

.contact-form-intro {
  margin: 0;
  max-width: 630px;
  color: #003b4a;
  font-family: "Lexend", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
}

.contact-form-status {
  margin-top: 32px;
  padding: 16px 18px;
  border: 1px solid transparent;
  color: #003b4a;
  font-family: "Lexend", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  background: #f3efe7;
}

.contact-form-status[hidden] {
  display: none;
}

.contact-form-status.is-success {
  border-color: rgba(47, 109, 70, 0.22);
  color: #1d5633;
  background: #edf7f0;
}

.contact-form-status.is-error {
  border-color: rgba(139, 45, 45, 0.2);
  color: #7a2121;
  background: #fbeeee;
}

.contact-form {
  margin-top: 70px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 44px;
  row-gap: 43px;
  max-width: 628px;
}

.contact-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form label span {
  color: #003b4a;
  font-family: "Lexend", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0, 59, 74, 0.35);
  background: transparent;
  color: #003b4a;
  font-family: "Lexend", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  padding: 0 0 13px;
  outline: none;
  border-radius: 0;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #c4c4c4;
}

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

.contact-form-message textarea {
  min-height: 107px;
  resize: vertical;
}

.contact-form .btn {
  grid-column: 1 / -1;
  width: fit-content;
  margin-top: 27px;
}

.contact-form .btn[disabled] {
  opacity: 0.72;
  cursor: wait;
}

@media (max-width: 1180px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .contact-header {
    position: static;
    border-bottom: 0;
    background: rgba(0, 59, 74, 0.95);
  }

  .contact-main {
    padding: 70px 24px;
  }

  .contact-form-wrap {
    min-height: auto;
    padding: 32px 24px;
  }

  .contact-form {
    margin-top: 40px;
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  .contact-hero-content {
    min-height: 420px;
    padding-top: 88px;
    padding-bottom: 64px;
  }
}

@media (max-width: 560px) {
  .contact-page {
    background: #ffffff;
  }

  .contact-page .container {
    width: calc(100% - 28px);
  }

  .contact-page .btn {
    width: auto;
  }

  .contact-page .contact-header {
    position: relative;
    z-index: 50;
    border-bottom: 0;
    background: #ffffff;
  }

  .contact-page .contact-header .container {
    width: calc(100% - 28px);
  }

  .contact-page .nav-row {
    position: relative;
    min-height: 78px;
    padding: 10px 0;
    flex-wrap: nowrap;
    gap: 16px;
  }

  .contact-page .brand {
    overflow: hidden;
    width: 143px;
  }

  .contact-page .contact-header .logo-img--light {
    display: none;
  }

  .contact-page .contact-header .logo-img--dark {
    display: block;
  }

  .contact-page .site-footer .logo-img--light {
    display: block;
  }

  .contact-page .mobile-menu-toggle {
    display: flex;
    height: 12px;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 51;
  }

  .contact-page .mobile-menu-toggle span {
    background: #878787;
  }

  .contact-page .mobile-menu-toggle span:nth-child(2) {
    display: none;
  }

  .contact-page .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .contact-page .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .contact-page .mobile-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    border: 0;
    padding: 0;
    background: rgba(20, 22, 26, 0.62);
    backdrop-filter: blur(1px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .contact-page .mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .contact-page .site-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 45;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    margin: 0;
    padding: 91px 14px 10px;
    width: 237px;
    min-height: 100dvh;
    background: #d9d9d9;
    border: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-24px);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, visibility 0.24s ease;
  }

  .contact-page .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .contact-page .site-nav .mobile-nav-links {
    width: 210px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }

  .contact-page .site-nav a {
    width: 210px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    color: #003b4a;
    border-bottom: 0;
  }

  .contact-page .site-nav a::after {
    content: "";
    width: 5px;
    height: 11px;
    background: url("./assets/mobile-menu-arrow.svg") center / contain no-repeat;
    flex-shrink: 0;
  }

  .contact-page .contact-header .site-nav .is-active {
    border-bottom: 0;
  }

  .contact-page .site-nav .mobile-nav-extra {
    width: 210px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  .contact-page .mobile-nav-address {
    margin: 0;
    color: #003b4a;
    font-size: 15px;
    line-height: 24px;
  }

  .contact-page .site-nav .mobile-nav-cta {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    padding: 16px 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #b3a07c;
    color: #003b4a;
    font-family: "Titillium Web", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transition: none;
  }

  .contact-page .site-nav .mobile-nav-cta:hover,
  .contact-page .site-nav .mobile-nav-cta:focus-visible {
    background: #b3a07c;
    border-color: transparent;
    color: #003b4a;
  }

  .contact-page .site-nav .mobile-nav-cta::after {
    content: none;
  }

  .contact-page .nav-row > .btn {
    display: none;
  }

  .contact-page .contact-hero {
    min-height: 208px;
    background: #d9d9d9;
  }

  .contact-page .contact-hero-bg {
    object-position: 46% 20%;
  }

  .contact-page .contact-hero-overlay {
    background: rgba(0, 0, 0, 0.7);
  }

  .contact-page .contact-hero-content {
    min-height: 208px;
    padding: 65px 51px;
  }

  .contact-page .contact-hero-content h1 {
    max-width: 291px;
    font-size: 24px;
    line-height: 26px;
  }

  .contact-page .contact-main {
    background: #ffffff;
    padding: 30px 0;
  }

  .contact-page .contact-main-grid {
    width: calc(100% - 28px);
    max-width: none;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-page .contact-info {
    gap: 38px;
  }

  .contact-page .contact-email-phone {
    width: 257px;
  }

  .contact-page .contact-line {
    min-height: 19px;
  }

  .contact-page .contact-info-block--address {
    max-width: 290px;
  }

  .contact-page .contact-info-block--address h2 {
    margin-bottom: 21px;
  }

  .contact-page .contact-info-block h2 {
    margin-bottom: 18px;
  }

  .contact-page .contact-socials {
    gap: 16px;
  }

  .contact-page .contact-form-wrap {
    min-height: auto;
    border: 0;
    background: #efefef;
    padding: 24px 14px;
  }

  .contact-page .contact-form-intro {
    max-width: none;
  }

  .contact-page .contact-form {
    margin-top: 70px;
    max-width: none;
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 44px;
  }

  .contact-page .contact-form label {
    gap: 18px;
  }

  .contact-page .contact-form-message textarea {
    min-height: 107px;
    resize: none;
  }

  .contact-page .contact-form .btn {
    grid-column: 1 / -1;
    width: fit-content;
    margin-top: 27px;
  }

  .contact-page .site-footer {
    padding: 60px 14px 25px;
  }

  .contact-page .site-footer .container {
    width: 100%;
  }

  .contact-page .footer-top {
    gap: 40px;
  }

  .contact-page .footer-right {
    flex: none;
    width: 100%;
  }

  .contact-page .footer-nav {
    gap: 30px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .contact-page .footer-nav a {
    padding-bottom: 0;
    color: #ffffff;
  }

  .contact-page .footer-nav a::after {
    content: none;
  }

  .contact-page .footer-nav a:hover,
  .contact-page .footer-nav a:focus-visible {
    color: #ffffff;
  }

  .contact-page .footer-nav a:hover::after,
  .contact-page .footer-nav a:focus-visible::after {
    content: none;
  }

  .contact-page .footer-address {
    margin: 23px 0 0;
    text-align: left;
  }

  .contact-page .footer-cta {
    margin-top: 60px;
    gap: 40px;
    padding: 10px 10px 25px;
    align-items: flex-start;
  }

  .contact-page .footer-cta h2 {
    width: 100%;
    font-size: 32px;
    line-height: 35px;
  }

  .contact-page .round-icon--footer {
    width: 113px;
    height: 112px;
    padding: 28px;
  }

  .contact-page .footer-bottom {
    margin-top: 40px;
    gap: 40px;
    align-items: flex-start;
  }

  .contact-page .footer-bottom p {
    width: 100%;
  }

  .contact-page .footer-bottom a {
    width: 198px;
    gap: 1px;
  }
}
