.page-contact body {
  --contact-ink: #0d1b2a;
  --contact-soft: rgba(13, 27, 42, 0.72);
  --contact-paper: #f1f5f8;
  background: var(--contact-paper);
  color: var(--contact-ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.contact-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(241, 245, 248, 0.97) 0%,
      rgba(241, 245, 248, 0.9) 34%,
      rgba(241, 245, 248, 0.5) 46%,
      rgba(241, 245, 248, 0) 58%
    ),
    linear-gradient(180deg, rgba(241, 245, 248, 0.88) 0%, rgba(241, 245, 248, 0) 15%);
}

.contact .site-header,
.contact-main,
.contact-foot {
  position: relative;
  z-index: 2;
}

.page-contact .logo {
  color: var(--contact-ink);
}

.page-contact .logo-tagline {
  color: var(--contact-soft);
}

.page-contact .menu-toggle {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
}

.page-contact .menu-toggle span {
  background: var(--contact-ink);
}

.page-contact body.menu-open .logo,
.page-contact body.menu-open .logo-tagline {
  color: #fff;
}

.page-contact body.menu-open .menu-toggle {
  background: rgba(255, 255, 255, 0.08);
}

.page-contact body.menu-open .menu-toggle span {
  background: #fff;
}

@media (min-width: 1101px) {
  .contact > .nav {
    position: absolute;
    top: 32px;
    right: 48px;
  }

  .page-contact .nav-link {
    color: var(--contact-ink);
  }

  .page-contact .nav-talk {
    margin-left: 12px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--contact-ink);
  }

  .page-contact .nav-talk:hover {
    background: var(--yellow);
  }
}

.contact-main {
  flex: 1;
  padding: clamp(20px, 4.5vh, 48px) 48px 0;
}

.contact-copy {
  width: min(600px, 42vw);
}

.contact-copy h1 {
  margin: 0;
  font-size: clamp(52px, min(6.4vw, 11vh), 104px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: none;
}

.contact-copy h1 em {
  font-style: normal;
  color: var(--yellow);
}

.contact-lead {
  margin: min(2.2vh, 20px) 0 0;
  font-size: clamp(15px, min(1.45vw, 2.5vh), 22px);
  font-weight: 500;
  line-height: 1.3;
}

.contact-form {
  margin-top: min(3.2vh, 30px);
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-field {
  display: block;
}

.contact-field.is-wide {
  grid-column: 1 / -1;
}

.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(13, 27, 42, 0.12);
  border-radius: 6px;
  background: rgba(228, 234, 240, 0.72);
  color: var(--contact-ink);
  font: inherit;
  font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input {
  height: clamp(40px, 5.2vh, 46px);
}

.contact-field textarea {
  height: clamp(72px, 10vh, 96px);
  padding-top: 12px;
  resize: none;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(13, 27, 42, 0.55);
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(240, 194, 10, 0.25);
}

.contact-field [aria-invalid="true"] {
  border-color: #c4392f;
  background: #fff6f5;
}

.contact-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(13, 27, 42, 0.6);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
  margin-top: min(2.6vh, 22px);
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: clamp(44px, 5.6vh, 52px);
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--contact-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(240, 194, 10, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-submit:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.contact-submit svg,
.contact-private svg,
.contact-trust svg,
.contact-top-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-submit svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.contact-private {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--contact-soft);
}

.contact-private svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke-width: 1.6;
  color: var(--contact-ink);
}

.contact-status {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--contact-soft);
}

.contact-status.is-ok {
  color: #1d7a3d;
}

.contact-status.is-err {
  color: #b3261e;
}

.contact-trust {
  display: flex;
  margin: min(4vh, 36px) 0 0;
  padding: 0;
  list-style: none;
}

.contact-trust li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
}

.contact-trust li:first-child {
  padding-left: 0;
}

.contact-trust li + li {
  border-left: 1px solid rgba(13, 27, 42, 0.2);
}

.contact-trust svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  stroke-width: 1.4;
}

.contact-quote {
  position: absolute;
  left: 60%;
  bottom: calc(min(3.4vh, 30px) + 60px);
  z-index: 2;
  margin: 0;
  padding-left: 20px;
  border-left: 3px solid var(--yellow);
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.contact-quote blockquote {
  margin: 0;
  font-size: clamp(16px, 1.55vw, 26px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
}

.contact-quote figcaption {
  margin-top: 12px;
  font-size: clamp(12px, 0.95vw, 15px);
  color: rgba(255, 255, 255, 0.86);
}

.contact-foot {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: min(3vh, 26px) 48px min(3.4vh, 30px);
}

.contact-tag {
  flex-shrink: 0;
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--yellow);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-tag.is-right {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.contact-foot-line {
  flex: 1;
  height: 1px;
  background: rgba(13, 27, 42, 0.28);
}

.contact-foot-line.is-light {
  background: rgba(255, 255, 255, 0.4);
}

/* The page fits one desktop screen, so the back-to-top link only earns its place on phones. */
.contact-top {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-top-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.contact-top-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.page-contact .contact .site-header,
.contact-copy > *,
.contact-quote,
.contact-foot {
  animation: contact-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.contact-copy > :nth-child(3) {
  animation-delay: 0.14s;
}

.contact-copy > :nth-child(4) {
  animation-delay: 0.2s;
}

.contact-copy > :nth-child(5),
.contact-quote {
  animation-delay: 0.28s;
}

.contact-foot {
  animation-delay: 0.36s;
}

@keyframes contact-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-contact *,
  .page-contact *::before {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  .contact-main,
  .contact-foot {
    padding-left: 24px;
    padding-right: 24px;
  }

  .contact-copy {
    width: min(560px, 52vw);
  }
}

@media (max-width: 900px) {
  .page-contact body {
    background: #e3e7eb;
  }

  .contact {
    min-height: 0;
  }

  .contact-bg {
    inset: 0 0 auto;
    height: auto;
    object-fit: fill;
  }

  .contact-shade {
    background: linear-gradient(180deg, rgba(241, 245, 248, 0.8) 0, rgba(241, 245, 248, 0) 96px);
  }

  .contact-main {
    padding: calc(179.3vw * 0.61 - 76px) calc(20px + env(safe-area-inset-right)) 0
      calc(20px + env(safe-area-inset-left));
  }

  .contact-copy {
    width: 100%;
  }

  .contact-copy h1 {
    font-size: clamp(46px, 15vw, 72px);
  }

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

  .contact-lead br {
    display: none;
  }

  .contact-field input {
    height: 48px;
    font-size: 16px;
  }

  .contact-field textarea {
    height: 120px;
    font-size: 16px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-submit {
    justify-content: center;
    min-height: 52px;
  }

  .contact-trust {
    justify-content: space-between;
    margin-top: 32px;
  }

  .contact-trust li {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 12px;
    font-size: 11px;
  }

  .contact-quote {
    position: static;
    margin: 40px calc(20px + env(safe-area-inset-right)) 0 calc(20px + env(safe-area-inset-left));
    color: var(--contact-ink);
    text-shadow: none;
  }

  .contact-quote blockquote {
    font-size: 20px;
  }

  .contact-quote figcaption {
    color: var(--contact-soft);
  }

  .contact-foot {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    margin-top: 40px;
    padding: 24px calc(20px + env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom))
      calc(20px + env(safe-area-inset-left));
    border-top: 1px solid rgba(13, 27, 42, 0.14);
  }

  .contact-foot-line {
    display: none;
  }

  .contact-tag {
    font-size: 9px;
  }

  .contact-tag.is-right {
    justify-self: end;
    color: var(--contact-ink);
    text-shadow: none;
  }

  .contact-top {
    display: flex;
    font-size: 9px;
  }

  .contact-top-icon {
    width: 38px;
    height: 38px;
  }
}

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