.contact-main {
  overflow: hidden;
  background: var(--white);
}

.contact-hero {
  background: var(--green);
  color: var(--white);
}

.contact-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 670px) minmax(300px, 440px);
  justify-content: space-between;
  align-items: start;
  gap: 96px;
}

.contact-hero__content h1 {
  color: var(--white);
}

.contact-hero__form {
  max-width: 640px;
  margin-top: 48px;
}

.contact-hero__portrait {
  width: min(100%, 380px);
  margin: 28px 0 0 auto;
  aspect-ratio: 0.91;
  overflow: hidden;
}

.contact-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hq {
  background: var(--white);
}

.contact-hq__inner {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(280px, 340px);
  justify-content: space-between;
  align-items: stretch;
  gap: 96px;
}

.contact-hq__visual {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.47;
}

.contact-hq__swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-hq__swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hq__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: rgb(var(--black-rgb) / 0.15);
  color: var(--white);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background var(--ease), color var(--ease);
}

.contact-hq__arrow:hover,
.contact-hq__arrow:focus-visible {
  background: var(--white);
  color: var(--black);
  outline: 0;
}

.contact-hq__arrow svg {
  width: 20px;
  height: 20px;
}

.contact-hq__arrow--prev {
  left: 20px;
  transform: translateY(-50%) rotate(180deg);
}

.contact-hq__arrow--next {
  right: 20px;
}

.contact-hq__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.contact-hq__pagination.media-progress {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  left: auto;
  width: auto;
}

.contact-hq__note {
  pointer-events: none;
  position: absolute;
  bottom: 34px;
  left: 48px;
  z-index: 2;
  max-width: 360px;
  color: var(--white);
  font-family: "BiroScript", cursive;
  font-size: 48px;
  font-weight: 400;
  line-height: 0.95;
  transform: rotate(-5deg);
}

.contact-hq__details .arrow-button {
  margin-top: var(--section-cta-gap);
  align-self: flex-start;
}

.contact-hq__details {
  display: flex;
  flex-direction: column;
}

.contact-hq__meta {
  display: grid;
  margin-top: auto;
  padding-top: var(--section-cta-gap);
  gap: 34px;
}

.contact-meta-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.contact-hq__meta p,
.contact-office p {
  line-height: 1.7;
}

@media (min-width: 768px) {
  .contact-hq__meta {
    position: relative;
    top: 0.35em;
  }
}

.contact-hq__route {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-hq__meta a:hover,
.contact-hq__meta a:focus-visible,
.contact-office a:hover,
.contact-office a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-offices {
  background: var(--off-white);
}

.contact-offices__map {
  width: min(100%, 720px);
  border-radius: 50%;
  margin: 0 auto 80px;
}

.contact-offices__header {
  margin-bottom: 54px;
}

.contact-offices__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 32px;
}

.contact-office {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-office p {
  font-size: 14px;
}

.contact-transport {
  margin: 0;
  aspect-ratio: 1.82;
  overflow: hidden;
}

.contact-transport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .contact-hero__inner,
  .contact-hq__inner {
    gap: 56px;
  }

  .contact-offices__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px 32px;
  }

}

@media (max-width: 767px) {
  .contact-hero__inner,
  .contact-hq__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contact-hero__form {
    margin-top: 36px;
  }

  .contact-hero__portrait {
    width: min(78%, 360px);
    margin: 0 auto;
  }

  .contact-hq__visual {
    grid-row: 2;
  }

  .contact-hq__note {
    bottom: 22px;
    left: 24px;
    max-width: 250px;
    font-size: 34px;
  }

  .contact-hq__meta {
    margin-top: 52px;
  }

  .contact-offices__map {
    margin-bottom: 52px;
  }

  .contact-offices__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }

  .contact-transport {
    aspect-ratio: 1 / 0.8;
  }



}

@media (prefers-reduced-motion: reduce) {
  .contact-hq__arrow {
    transition: none;
  }
}

.contact-hero__aside { width: min(100%, 380px); justify-self: end; min-width: 0; }
.contact-hero__direct { line-height: 1.7; }
.contact-hero__direct a { overflow-wrap: anywhere; }
.contact-hero__direct a:hover,
.contact-hero__direct a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.contact-hero__direct--mobile { display: none; }
@media (max-width: 1024px) {
  .contact-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .contact-hero__direct--desktop { display: none; }
  .contact-hero__direct--mobile { display: block; margin-top: 28px; }
  .contact-hero__aside { width: 100%; justify-self: stretch; }
}
