.desktop-page-background {
  position: relative;
  min-height: 100vh;
  background: #000929;
}

.desktop-page-background::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 105vh;
  min-height: 100svh;
  background-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 58%,
      rgba(0, 9, 41, 0.58) 74%,
      #000929 84%,
      #000929 100%
    ),
    url("../images/BG.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

.contact-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 112px);
  padding: 10% var(--page-padding-desktop) 52px;
}

.contact-title {
  display: flex;
  justify-content: center;
  margin: 0;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: clamp(60px, 3.65vw, 72px);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.contact-title span:last-child {
  color: var(--color-lime);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(440px, 1fr);
  gap: clamp(56px, 9vw, 150px);
  align-items: start;
  max-width: 1210px;
  margin: clamp(72px, 10vw, 94px) auto 0;
}

.contact-info {
  max-width: 450px;
}

.contact-info h2,
.contact-form h2 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0;
}

.contact-info h2 {
  color: var(--color-lime);
  font-size: clamp(42px, 2.7vw, 52px);
  line-height: 1.08;
}

.contact-intro {
  max-width: 410px;
  margin: 18px 0 0;
  color: var(--color-white);
  font-size: 18px;
  line-height: 1.45;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  margin-top: 62px;
}

.contact-details h3 {
  margin: 0 0 10px;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
}

.contact-details a,
.contact-details p {
  display: block;
  margin: 0 0 5px;
  color: var(--color-white);
  font-size: 16px;
  line-height: 1.45;
}

.contact-socials {
  display: flex;
  gap: 34px;
  align-items: center;
  margin-top: 22px;
}

.contact-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--color-white);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.contact-socials a:hover,
.contact-socials a:focus-visible {
  opacity: 0.7;
  transform: translateY(-2px);
}

.contact-socials img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.contact-form-shell {
  position: relative;
  min-height: 560px;
  padding: 45px 64px 54px 52px;
  background:
    radial-gradient(
      131.75% 155.09% at 37.53% -13.39%,
      #6bc02ab0 0%,
      #a3d848 46.4%,
      rgb(84 97 30 / 0%) 100%
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
  clip-path: polygon(0 0, 87% 0, 100% 100%, 0 78%);
}

.contact-form {
  position: relative;
  z-index: 1;
  max-width: 405px;
}

.contact-form h2 {
  color: var(--color-white);
  font-size: 24px;
  line-height: 1.25;
}

.contact-form > p:not(.template-success) {
  max-width: 375px;
  margin: 10px 0 26px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  line-height: 1.45;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  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 textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  background: transparent;
  color: var(--color-white);
  font-size: 16px;
  outline: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form input {
  height: 43px;
  padding: 0 17px;
}

.contact-form textarea {
  min-height: 80px;
  margin-top: 17px;
  padding: 14px 17px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.9);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-lime);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(203, 255, 0, 0.16);
}

.contact-form button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  height: 43px;
  margin-top: 18px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--color-lime);
  color: var(--color-black);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.contact-form button svg {
  width: 15px;
  height: 15px;
  transition: transform 180ms ease;
}

.contact-form button:hover {
  background: var(--color-white);
  transform: translateY(-1px);
}

.contact-form button:hover svg {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .contact-form button {
    min-width: 370px;
  }
}

@media (max-width: 900px) {
  .desktop-page-background::before {
    background-image: none;
  }

  .contact-page {
    min-height: calc(100vh - 100px);
    padding: 101px var(--page-padding-mobile) 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 58px;
    margin-top: 60px;
  }

  .contact-info {
    max-width: none;
  }

  .contact-details {
    max-width: 520px;
    margin-top: 38px;
  }

  .contact-form-shell {
    min-height: 0;
    padding: 56px var(--page-padding-mobile) 64px;
    clip-path: none;
  }

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

@media (max-width: 560px) {
  .contact-title {
    justify-content: center;
    font-size: 42px;
  }

  .contact-details,
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

  .contact-intro {
    font-size: 14px;
    line-height: 1.7;
  }

  .contact-details {
    gap: 20px;
    margin-top: 16px;
  }

  .contact-socials {
    gap: 16px;
    margin-top: 14px;
  }

  .contact-socials a {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
  }

  .contact-socials a:first-child {
    background: var(--color-white);
  }

  .contact-form h2 {
    font-size: 25px;
    font-weight: 600;
  }

  .contact-form p {
    margin-bottom: 26px;
    font-size: 14px;
    line-height: 1.45;
  }

  .contact-form input {
    height: 57px;
    padding: 0 24px;
    font-size: 16px;
  }

  .contact-form textarea {
    min-height: 128px;
    margin-top: 17px;
  }

  .contact-form-shell {
    width: calc(100% + (var(--page-padding-mobile) * 2));
    margin-inline: calc(var(--page-padding-mobile) * -1);
  }
}

.contact-map {
  position: relative;
  min-height: 663px;
  overflow: hidden;
  background: #000000;
}

.contact-map-frame {
  position: absolute;
  inset: -56px 0 0;
  z-index: 0;
}

.contact-map-frame iframe {
  width: 100%;
  height: calc(100% + 56px);
  border: 0;
  filter: grayscale(1) contrast(1.18) brightness(0.48) saturate(0.55);
  pointer-events: none;
  transform: scale(1.03);
  transform-origin: center top;
}

.contact-map::before,
.contact-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-map::before {
  z-index: 1;
  background: rgb(0 9 41 / 85%);
}

.contact-map::after {
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(8, 20, 52, 0) 0%,
    rgba(8, 20, 52, 0) 28%,
    #020403 100%
  );
}

.contact-map-marker {
  position: absolute;
  top: 41%;
  left: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  color: var(--color-white);
  font-size: 14px;
  transform: translate(-50%, -50%);
}

.contact-map-marker img {
  width: 74px;
  margin-top: 12px;
}

.contact-map-pin {
  width: 25px;
  height: 25px;
  border-radius: 999px 999px 999px 0;
  background: var(--color-lime);
  transform: rotate(-45deg);
}

.contact-map-marker span:last-child {
  margin-top: 10px;
}

@media (max-width: 767px) {
  .contact-map {
    min-height: 500px;
  }
}
