.contact-page {
  --contact-gutter: var(--page-gutter);
  background: #fff;
  color: var(--ink);
}

.contact-page .eyebrow {
  font-size: var(--font-eyebrow);
}

.contact-hero {
  --page-hero-gutter: var(--contact-gutter);
}

.contact-hero h1 {
  max-width: 820px;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 120px);
  align-items: center;
  min-height: calc(100vh - var(--site-header-height));
  min-height: calc(100svh - var(--site-header-height));
  padding: clamp(46px, 6svh, 86px) var(--contact-gutter);
  background: #fff;
  color: var(--ink);
}

.contact-panel {
  position: sticky;
  top: calc(var(--site-header-height) + 26px);
  display: grid;
  gap: clamp(34px, 5vw, 58px);
  padding-top: 2px;
  color: var(--ink);
}

.contact-panel address {
  margin: 0;
  color: var(--ink);
  font-style: normal;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.28;
}

.contact-panel a {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.contact-panel__links {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.contact-panel__links a {
  overflow-wrap: anywhere;
}

.contact-panel__contact-item {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.contact-panel__contact-item span {
  color: rgba(14, 35, 45, 0.62);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-panel__meta {
  display: grid;
  justify-items: start;
  gap: 26px;
}

.contact-panel__meta a {
  font-size: 16px;
}

.contact-panel__meta a:last-child {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 52px;
  min-width: 170px;
  padding: 0 8px 0 26px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.contact-panel__meta a:last-child::after {
  content: "in";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-family: var(--family--1);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.contact-panel__meta a:last-child:hover,
.contact-panel__meta a:last-child:focus-visible {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

.contact-panel__meta a:last-child:hover::after,
.contact-panel__meta a:last-child:focus-visible::after {
  background: var(--white);
  color: var(--brand);
  transform: translateX(2px);
}

.contact-form {
  display: grid;
  gap: clamp(18px, 2.4svh, 30px);
  min-width: 0;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 52px);
  row-gap: clamp(20px, 2.8svh, 34px);
}

.contact-form label {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.contact-form label span {
  color: var(--ink);
  font-family: var(--family--2);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid rgba(14, 35, 45, 0.46);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.contact-form input,
.contact-form select {
  padding: 0 0 12px;
}

.contact-form textarea {
  min-height: clamp(110px, 13svh, 170px);
  padding: 0 0 12px;
  resize: vertical;
}

.contact-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(14, 35, 45, 0.62) 50%),
    linear-gradient(135deg, rgba(14, 35, 45, 0.62) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 46%,
    calc(100% - 8px) 46%;
  background-repeat: no-repeat;
  background-size: 6px 6px;
  color: rgba(14, 35, 45, 0.72);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(14, 35, 45, 0.42);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 8px 0 -6px rgba(240, 103, 36, 0.32);
}

.contact-form__message {
  margin-top: clamp(4px, 1svh, 14px);
}

.contact-form__submit {
  justify-self: end;
  min-width: 176px;
  background: transparent;
  color: var(--ink);
}

.contact-form__notice {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--brand);
  background: rgba(240, 103, 36, 0.1);
  color: var(--ink);
  font-weight: 800;
}

.contact-form__notice--sent {
  border-left-color: #2f8f5b;
  background: rgba(47, 143, 91, 0.1);
}

.contact-form__trap {
  position: absolute;
  left: -9999px;
}

.contact-form label.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 980px;
  color: rgba(14, 35, 45, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.contact-form label.contact-form__consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  border: 2px solid rgba(14, 35, 45, 0.62);
  border-radius: 50%;
  background: transparent;
  appearance: none;
  cursor: pointer;
}

.contact-form label.contact-form__consent input:checked {
  border-color: var(--brand);
  background:
    radial-gradient(circle, var(--brand) 0 42%, transparent 46%), transparent;
}

.contact-form .contact-form__consent span {
  color: rgba(14, 35, 45, 0.78);
  font-family: var(--family--1);
  font-size: 14px;
  font-weight: 700;
}

.contact-helper {
  grid-column: 2;
  margin-top: clamp(54px, 8svh, 96px);
  padding: 0;
}

.contact-helper__photo {
  background:
    linear-gradient(180deg, rgba(14, 35, 45, 0.02), rgba(14, 35, 45, 0.12)),
    url("../images/dano.webp") center / cover no-repeat;
}

.contact-helper__role {
  font-size: 16px;
}

.contact-map {
  min-height: calc(100vh - var(--site-header-height));
  min-height: calc(100svh - var(--site-header-height));
  padding: clamp(28px, 4vw, 56px) var(--contact-gutter);
  background:
    linear-gradient(180deg, rgba(248, 247, 244, 0.96), rgba(238, 231, 220, 0.92)),
    radial-gradient(circle at 18% 16%, rgba(240, 103, 36, 0.18), transparent 34%),
    #f8f7f4;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: calc(100vh - var(--site-header-height) - clamp(56px, 8vw, 112px));
  height: calc(100svh - var(--site-header-height) - clamp(56px, 8vw, 112px));
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(14, 35, 45, 0.16);
  border-bottom: 6px solid var(--brand);
  border-radius: 8px;
  filter: saturate(1.14) contrast(1.02);
  box-shadow:
    0 0 0 1px rgba(247, 242, 234, 0.62),
    0 30px 80px rgba(14, 35, 45, 0.18);
}

@media (max-width: 1050px) {
  .contact-shell,
  .contact-helper {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .contact-hero__dots {
    right: 0;
    bottom: 0;
    width: min(
      460px,
      calc(100vw - var(--contact-gutter) - var(--contact-gutter))
    );
    height: 160px;
    opacity: 0.55;
  }

  .contact-panel {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-panel__meta {
    grid-column: auto;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

  .contact-panel__meta a:last-child,
  .contact-form__submit {
    min-width: 0;
    min-height: 42px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 15px;
  }

  .contact-panel__meta a:last-child {
    justify-self: start;
    inline-size: fit-content;
    max-inline-size: 100%;
    padding-right: 4px;
    padding-left: 18px;
  }

  .contact-panel__meta a:last-child::after {
    width: 34px;
    height: 34px;
  }

  .contact-helper {
    grid-column: 1;
    margin-top: 64px;
  }

  .contact-helper__content {
    justify-self: stretch;
    max-width: 680px;
    padding: 0;
  }

  .contact-form__submit {
    justify-self: start;
    inline-size: fit-content;
    max-inline-size: 100%;
  }
}

@media (max-width: 640px) {
  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .contact-shell {
    gap: 52px;
    padding-top: 58px;
    padding-bottom: 70px;
  }

  .contact-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-panel__meta {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-panel__meta a:last-child {
    width: auto;
  }

  .contact-panel__meta a:last-child,
  .contact-form__submit {
    min-height: 40px;
    font-size: 14px;
  }

  .contact-panel__meta a:last-child {
    padding: 3px 4px 3px 18px;
  }

  .contact-panel__meta a:last-child::after,
  .contact-form__submit::after {
    width: 32px;
    height: 32px;
    background-size: 18px 18px;
  }

  .contact-form textarea {
    min-height: 180px;
  }

  .contact-helper {
    margin-top: 44px;
    padding: 0;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 420px;
  }

  .contact-map iframe {
    height: 420px;
  }

  .contact-form__submit {
    justify-self: start;
  }
}

