.contact {
  max-width: 1920px;
  margin: 26px auto 30px;
  padding: 0;
  font-family: 'AGAvalancheC', Arial, sans-serif;
}

.contact__wrap {
  display: grid;
  grid-template-columns: minmax(560px, 772px) minmax(660px, 805px);
  gap: 169px;
  align-items: center;
  justify-content: start;
}

.contact__media {
  position: relative;
  width: auto;
  min-height: 966px;
  overflow: hidden;
  border-radius: 36px;
}

.contact__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.contact__label {
  position: absolute;
  left: 100px;
  right: 108px;
  bottom: 40px;
  min-height: 96px;
  padding: 21px 24px 18px;
  border-radius: 18px;
  background: rgba(5, 32, 37, 0.72);
  color: #fff;
  text-align: center;
}

.contact__title {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.2;
}

.contact__loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'ManropeRegular', Arial, sans-serif;
  font-size: 13px;
}

.contact__loc::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
}

.contact__badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 36px;
  padding: 7px 18px;
  border: 1px solid rgba(198, 161, 117, 0.55);
  border-radius: 999px;
  color: #242728;
  font-family: 'ManropeBold', Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact__heading {
  margin: 0;
  color: #242728;
  font-size: 70px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact__heading span {
  color: #c99c64;
}

.contact__lead {
  margin: 34px 0 0;
  color: #7d8a8e;
  font-family: 'ManropeRegular', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

.contact__fields {
  position: relative;
  max-width: 805px;
  margin-top: 58px;
}

.contact__row {
  display: flex;
  gap: 30px;
  margin-bottom: 39px;
}

.contact__fields input,
.contact__fields textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(36, 39, 40, 0.34);
  border-radius: 0;
  background: transparent;
  color: #242728;
  font-family: 'ManropeRegular', Arial, sans-serif;
  font-size: 16px;
  outline: none;
}

.contact__fields textarea {
  min-height: 58px;
  margin-bottom: 44px;
  resize: none;
}

.contact-code {
  position: relative;
  z-index: 25;
  min-width: 88px;
  height: 48px;
}

.contact-code__button {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  height: 48px;
  padding: 0 18px 0 0;
  border: 0;
  background: transparent;
  color: #242728;
  cursor: pointer;
  font-family: 'ManropeRegular', Arial, sans-serif;
  font-size: 16px;
}

.contact-code__button i {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  transition: transform .2s ease;
}

.contact-code.is-open .contact-code__button i {
  transform: rotate(180deg);
}

.contact-code__list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 198px;
  margin: 0;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(5, 32, 37, .14);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.contact-code.is-open .contact-code__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-code__list li {
  padding: 10px 12px;
  border-radius: 12px;
  color: #242728;
  cursor: pointer;
  font-family: 'ManropeRegular', Arial, sans-serif;
  font-size: 14px;
}

.contact-code__list li:hover,
.contact-code__list li.is-active {
  background: rgba(234, 246, 250, .95);
}

.contact__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 520px;
  margin: 0;
  color: #7d8a8e;
  font-family: 'ManropeRegular', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.contact__agree input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  border: 1px solid rgba(36, 39, 40, 0.28);
  border-radius: 4px;
}

.contact__agree input[type="checkbox"]:checked {
  background: #101010;
  border-color: #101010;
  box-shadow: inset 0 0 0 4px #fff;
}

.contact .work__btn {
  margin-top: 36px;
  display: inline-flex;
  gap: 20px;
  padding: 4px 30px;
  padding-right: 4px;
  border: 0;
  border-radius: 999px;
  background: #0f0f0f;
  color: #fff;
  text-decoration: none;
  align-items: center;
  font-family: 'ManropeBold', Arial, sans-serif;
  font-size: 15px;
}

.contact .work__btn:hover {
  background: #c5a178;
}

.contact .work__btn i {
  background: #fff;
  color: #000;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__fields > .work__btn {
  display: flex;
  position: relative;
  width: 257px;
  min-width: 257px;
  min-height: 66px;
  margin: -66px 0 0 auto;
  padding: 4px 4px 4px 38px;
  border: 0;
  justify-content: space-between;
  cursor: pointer;
}

.contact__fields > .work__btn i {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}

.contact__message {
  max-width: 520px;
  margin-top: 14px;
  font-family: 'ManropeRegular', Arial, sans-serif;
  font-size: 14px;
}

.contact__message.is-success {
  color: #16814a;
}

.contact__message.is-error {
  color: #b42318;
}

@media (max-width: 1500px) and (min-width: 961px) {
  .contact {
    padding: 0 clamp(20px, 3vw, 44px);
  }

  .contact__wrap {
    grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1fr);
    gap: clamp(44px, 5vw, 86px);
    justify-content: stretch;
  }

  .contact__media {
    min-height: clamp(640px, 72vw, 860px);
  }

  .contact__heading {
    font-size: clamp(50px, 5vw, 68px);
  }

  .contact__fields {
    max-width: none;
  }
}

@media (max-width: 960px) {
  .contact {
    width: calc(100% + 26px);
    margin: 36px -13px 42px;
    padding: 0 13px;
  }

  .contact__wrap {
    display: block;
    width: 100%;
    max-width: none;
  }

  .contact__media {
    display: none;
  }

  .contact__label {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .contact__form {
    width: 100%;
    max-width: none;
    margin-top: 34px;
  }

  .contact__heading {
    font-size: 34px;
    line-height: 1.22;
  }

  .contact__fields {
    margin-top: 34px;
  }

  .contact__row {
    display: block;
    margin-bottom: 0;
  }

  .contact__row input,
  .contact-code {
    margin-bottom: 22px;
  }

  .contact__fields textarea {
    margin-bottom: 26px;
  }

  .contact__agree {
    max-width: none;
    margin-bottom: 28px;
  }

  .contact__fields > .work__btn {
    width: 100%;
    margin-top: 0;
  }
}

/* Contact final sync with static index */
.contact__fields {
  position: relative;
}

.contact__agree {
  align-items: flex-start;
  gap: 10px;
  max-width: 520px;
  margin: 0;
}

.contact__agree u {
  cursor: pointer;
}

.contact__agree input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box;
  display: inline-block;
  flex: 0 0 18px !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(36, 39, 40, .34) !important;
  border-radius: 4px !important;
  background: transparent;
  box-shadow: none;
  vertical-align: top;
  cursor: pointer;
}

.contact__agree input[type="checkbox"]:checked {
  background: #101010;
  border-color: #101010 !important;
  box-shadow: inset 0 0 0 4px #fff;
}

.contact__fields > .work__btn {
  display: flex !important;
  position: relative;
  width: 257px;
  min-width: 257px;
  min-height: 66px;
  margin: -40px 0 0 auto;
  padding: 4px 4px 4px 38px;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.contact__fields > .work__btn i {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}

.contact-code {
  position: relative;
  min-width: 92px;
  height: 48px;
  padding: 0;
  border-bottom: 0;
  z-index: 25;
}

.contact-code__button {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 0;
  border: 0;
  background: transparent;
  color: #242728;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  text-align: left;
  font-family: 'ManropeRegular', sans-serif;
  font-size: 16px;
  line-height: 1.18;
}

.contact-code__country,
.contact-code__dial {
  display: inline-block;
  grid-column: auto;
  grid-row: auto;
}

.contact-code__button i {
  display: inline-flex;
  grid-column: auto;
  grid-row: auto;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0 0 0 4px;
  font-style: normal;
  font-size: 11px;
  line-height: 1;
  transition: transform .25s ease;
}

.contact-code__button i svg {
  display: block;
  flex: 0 0 auto;
}

.contact-code__list {
  border: 1px solid rgba(207, 158, 111, .34);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 38px rgba(45, 66, 72, .14);
  font-family: 'ManropeRegular', sans-serif;
  z-index: 40;
}

@media (max-width: 1500px) and (min-width: 961px) {
  .contact__agree {
    max-width: min(100%, 620px);
  }

  .contact__fields > .work__btn {
    margin: 28px 0 0 auto;
  }
}

@media (max-width: 1160px) and (min-width: 961px) {
  .contact {
    padding: 0 24px;
  }

  .contact__wrap {
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
    gap: 36px;
  }

  .contact__heading {
    font-size: clamp(42px, 5.6vw, 56px);
  }

  .contact__lead {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.55;
  }

  .contact__row {
    gap: 22px;
  }

  .contact__fields > .work__btn {
    width: 236px;
    min-width: 236px;
    padding-left: 28px;
  }
}

@media (max-width: 960px) {
  .contact__agree {
    gap: 10px;
    max-width: none;
    margin-bottom: 28px;
  }

  .contact__agree input[type="checkbox"] {
    flex-basis: 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin-top: 2px !important;
  }

  .contact__fields > .work__btn {
    width: 100%;
    min-width: 0;
    min-height: 65px;
    margin: 0;
    padding: 4px 4px;
    justify-content: center;
  }

  .contact__fields > .work__btn i {
    position: absolute;
    right: 4px;
  }

  .contact-code {
    min-width: 102px;
    height: 57px;
  }

  .contact-code__button {
    height: 57px;
    gap: 4px;
    padding-right: 14px;
  }
}

/* ===== CONTACT INTERACTIONS ===== */
.contact__fields input,
.contact__fields textarea,
.contact-code__button,
.contact-code__list li,
.contact__agree input[type="checkbox"],
.contact__agree u,
.contact .work__btn,
.contact .work__btn i {
  transition-property: background, border-color, color, box-shadow, transform;
  transition-duration: .24s;
  transition-timing-function: ease;
}

@media (hover: hover) and (pointer: fine) {
  .contact__fields input:hover,
  .contact__fields textarea:hover,
  .contact__fields input:focus,
  .contact__fields textarea:focus {
    border-bottom-color: #c99c64;
  }

  .contact-code__button:hover {
    color: #c99c64;
  }

  .contact__agree:hover input[type="checkbox"] {
    border-color: #c99c64 !important;
    box-shadow: 0 0 0 4px rgba(201, 156, 100, .12);
  }

  .contact__agree u:hover {
    color: #c99c64;
  }

  .contact .work__btn:hover {
    background: #c99c64;
    box-shadow: 0 16px 30px rgba(201, 156, 100, .26);
    transform: translateY(-2px);
  }

  .contact .work__btn:hover i {
    transform: rotate(45deg);
  }
}

.contact__fields input:focus,
.contact__fields textarea:focus {
  border-bottom-color: #c99c64;
}

.contact-code__button:focus-visible,
.contact__agree input[type="checkbox"]:focus-visible,
.contact .work__btn:focus-visible {
  outline: 2px solid rgba(201, 156, 100, .76);
  outline-offset: 4px;
}
