.contact-page {
  color: var(--forest-deep);
  background: var(--paper);
}

.contact-page .footer-lead { display: none; }
.contact-page .footer-shell { padding-top: 84px; }

.contact-hero {
  position: relative;
  height: 660px;
  min-height: 660px;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: linear-gradient(120deg, #001f12 0%, #013920 72%, #0d5a35 100%);
}

.contact-hero__shell {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 146px 92px;
}

.contact-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: end;
  gap: 90px;
}

.contact-hero h1 {
  max-width: 8.5ch;
  margin: 0;
  font-size: 86px;
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.045em;
}

.contact-hero__intro {
  max-width: 410px;
  padding: 26px 0 4px;
  border-top: 1px solid rgba(255,255,255,.3);
}

.contact-hero__intro p {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 18px;
  line-height: 1.6;
}

.contact-hero__intro a {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.5);
  font-size: 14px;
  font-weight: 700;
}

.contact-hero__intro .arrow-icon { transform: rotate(45deg); }
.contact-hero__intro a:hover .arrow-icon,
.contact-hero__intro a:focus-visible .arrow-icon { transform: rotate(135deg); }

.contact-workspace { background: var(--mint); }

.contact-workspace__shell {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
  align-items: start;
  gap: 92px;
  padding-block: 138px;
}

.contact-workspace__copy {
  position: sticky;
  top: 126px;
  padding-top: 8px;
}

.contact-workspace__copy > h2 {
  max-width: 9ch;
  margin: 0;
  font-size: 62px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
}

.contact-workspace__copy > p {
  max-width: 44ch;
  margin: 28px 0 0;
  color: rgba(0,31,18,.68);
  font-size: 17px;
  line-height: 1.65;
}

.contact-journey {
  width: min(100%, 470px);
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid rgba(0,31,18,.22);
}

.contact-journey h3 {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.contact-journey ol {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-journey ol::before,
.contact-journey ol::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 17px;
  width: 1px;
  pointer-events: none;
}

.contact-journey ol::before { background: rgba(0,31,18,.2); }
.contact-journey ol::after { background: var(--signal-green); transform: scaleY(0); transform-origin: top; }
.contact-journey.is-looping ol::after { animation: contact-route 5.4s linear infinite; }

.contact-journey li {
  position: relative;
  z-index: 1;
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 15px;
}

.contact-journey__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--mint);
  border: 1px solid rgba(0,31,18,.3);
  border-radius: 50%;
}

.contact-journey__mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-journey strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; }
.contact-journey small { display: block; margin-top: 4px; color: rgba(0,31,18,.64); font-size: 13px; line-height: 1.45; }
.contact-journey.is-looping li:nth-child(1) .contact-journey__mark { animation: contact-step-1 5.4s linear infinite; }
.contact-journey.is-looping li:nth-child(2) .contact-journey__mark { animation: contact-step-2 5.4s linear infinite; }
.contact-journey.is-looping li:nth-child(3) .contact-journey__mark { animation: contact-step-3 5.4s linear infinite; }

@keyframes contact-route {
  0%, 7% { opacity: 1; transform: scaleY(0); }
  62%, 82% { opacity: 1; transform: scaleY(1); }
  92% { opacity: 0; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); }
}

@keyframes contact-step-1 {
  0%, 7% { color: var(--forest); background: var(--mint); border-color: rgba(0,31,18,.3); }
  12% { color: var(--forest-deep); background: var(--lime); border-color: var(--lime); transform: scale(1.1); box-shadow: 0 0 0 9px rgba(57,189,54,.13); }
  18%, 82% { color: var(--lime); background: var(--forest); border-color: var(--forest); transform: scale(1); box-shadow: none; }
  92%, 100% { color: var(--forest); background: var(--mint); border-color: rgba(0,31,18,.3); }
}

@keyframes contact-step-2 {
  0%, 29% { color: var(--forest); background: var(--mint); border-color: rgba(0,31,18,.3); }
  34% { color: var(--forest-deep); background: var(--lime); border-color: var(--lime); transform: scale(1.1); box-shadow: 0 0 0 9px rgba(57,189,54,.13); }
  40%, 82% { color: var(--lime); background: var(--forest); border-color: var(--forest); transform: scale(1); box-shadow: none; }
  92%, 100% { color: var(--forest); background: var(--mint); border-color: rgba(0,31,18,.3); }
}

@keyframes contact-step-3 {
  0%, 51% { color: var(--forest); background: var(--mint); border-color: rgba(0,31,18,.3); }
  56% { color: var(--forest-deep); background: var(--lime); border-color: var(--lime); transform: scale(1.1); box-shadow: 0 0 0 9px rgba(57,189,54,.13); }
  62%, 82% { color: var(--lime); background: var(--forest); border-color: var(--forest); transform: scale(1); box-shadow: none; }
  92%, 100% { color: var(--forest); background: var(--mint); border-color: rgba(0,31,18,.3); }
}

.contact-form {
  scroll-margin-top: 116px;
  display: grid;
  gap: 22px;
  padding: 54px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(0,31,18,.1);
}

.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.contact-form label {
  display: grid;
  gap: 9px;
  color: rgba(0,31,18,.78);
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  color: var(--forest-deep);
  background: #f7faf4;
  border: 1px solid rgba(0,31,18,.2);
  border-radius: 10px;
  outline: 0;
  font: inherit;
  font-size: 14px;
  transition: border-color .24s ease, box-shadow .24s ease, background-color .24s ease;
}

.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { background: var(--white); border-color: var(--signal-green); box-shadow: 0 0 0 3px rgba(57,189,54,.14); }
.contact-form__consent { grid-template-columns: 20px 1fr; align-items: start; gap: 12px !important; color: rgba(0,31,18,.65) !important; font-weight: 500 !important; line-height: 1.5; }
.contact-form__consent input { width: 18px; min-height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--forest); }
.contact-form__consent a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.contact-form .button { justify-self: start; border: 0; cursor: pointer; }
.contact-form__status { min-height: 22px; margin: -6px 0 0; color: var(--forest); font-size: 13px; font-weight: 600; }

.contact-channels { color: var(--white); background: var(--forest-deep); }

.contact-channels__shell {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr);
  gap: 110px;
  align-items: start;
  padding-block: 126px;
}

.contact-channels__heading h2 {
  max-width: 11ch;
  margin: 0;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.contact-channels__heading p {
  max-width: 40ch;
  margin: 26px 0 0;
  color: rgba(255,255,255,.66);
  font-size: 17px;
  line-height: 1.6;
}

.contact-channels__list { border-top: 1px solid rgba(255,255,255,.28); }
.contact-channels__list > a,
.contact-channels__list > address {
  display: grid;
  grid-template-columns: 34px 1fr 20px;
  align-items: center;
  gap: 24px;
  min-height: 128px;
  padding: 24px 4px;
  border-bottom: 1px solid rgba(255,255,255,.28);
  transition: color .28s ease, transform .35s var(--ease-out);
}

.contact-channels__list > a:hover { color: var(--lime); transform: translateX(8px); }
.contact-channels__list > address { grid-template-columns: 34px 1fr; margin: 0; font-style: normal; }
.contact-channels__list > a > svg:first-child,
.contact-channels__list > address > svg:first-child { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-channels__list span { min-width: 0; }
.contact-channels__list small { display: block; color: rgba(255,255,255,.58); font-size: 13px; font-weight: 600; }
.contact-channels__list strong { display: block; margin-top: 7px; overflow-wrap: anywhere; font-size: 24px; font-weight: 600; line-height: 1.2; }
.contact-channels__list > a:hover .arrow-icon { transform: translate(4px, -4px); }

.contact-channels__list > .contact-offices-group { display: block; scroll-margin-top: 110px; }
.contact-offices > small { margin-left: 58px; }
.contact-offices > .contact-office { grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 24px; }
.contact-office > svg { width: 30px; height: 30px; margin-top: 9px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-office__copy { display: grid; min-width: 0; gap: 6px; }
.contact-office__copy > span { display: block; font-size: 16px; font-weight: 400; line-height: 1.6; }

@media (max-width: 1200px) {
  .contact-hero h1 { font-size: 76px; }
  .contact-workspace__shell, .contact-channels__shell { gap: 62px; }
  .contact-workspace__copy > h2 { font-size: 54px; }
}

@media (max-width: 1024px) {
  .contact-hero { height: 620px; min-height: 620px; }
  .contact-hero__shell { padding-block: 130px 76px; }
  .contact-hero__grid { grid-template-columns: 1fr; gap: 52px; }
  .contact-hero h1 { max-width: 8.5ch; font-size: 68px; }
  .contact-hero__intro { max-width: 520px; }
  .contact-workspace__shell, .contact-channels__shell { grid-template-columns: 1fr; }
  .contact-workspace__copy { position: relative; top: auto; }
  .contact-workspace__copy > h2 { max-width: 11ch; }
  .contact-workspace__copy > p { max-width: 56ch; }
  .contact-journey { width: min(100%, 560px); }
  .contact-channels__heading h2 { max-width: 13ch; }
}

@media (max-width: 767px) {
  .contact-page .footer-shell { padding-top: 68px; }
  .contact-hero { height: 720px; min-height: 720px; }
  .contact-hero__shell { padding-block: 112px 66px; }
  .contact-hero__grid { gap: 44px; }
  .contact-hero h1 { max-width: 8.5ch; font-size: 52px; line-height: 1; }
  .contact-hero__intro p { font-size: 16px; }
  .contact-workspace__shell { gap: 44px; padding-block: 88px; }
  .contact-workspace__copy > h2 { max-width: 10ch; font-size: 40px; }
  .contact-workspace__copy > p { margin-top: 22px; font-size: 16px; }
  .contact-journey { margin-top: 38px; padding-top: 24px; }
  .contact-journey h3 { font-size: 18px; }
  .contact-journey strong { font-size: 14px; }
  .contact-journey small { font-size: 13px; }
  .contact-form { gap: 19px; padding: 28px 22px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 19px; }
  .contact-form .button { width: 100%; }
  .contact-channels__shell { gap: 48px; padding-block: 88px; }
  .contact-channels__heading h2 { max-width: 10ch; font-size: 40px; }
  .contact-channels__heading p { font-size: 16px; }
  .contact-channels__list > a,
  .contact-channels__list > address { gap: 16px; min-height: 108px; }
  .contact-channels__list > a { grid-template-columns: 30px minmax(0, 1fr) 18px; }
  .contact-channels__list > address { grid-template-columns: 30px minmax(0, 1fr); }
  .contact-channels__list strong { font-size: 19px; }
  .contact-offices > small { margin-left: 46px; }
  .contact-offices > .contact-office { grid-template-columns: 30px minmax(0, 1fr); gap: 16px; }
  .contact-office > svg { width: 26px; height: 26px; margin-top: 8px; }
}

@media (hover: none), (pointer: coarse) {
  .contact-hero__intro .arrow-icon { transform: rotate(135deg); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-journey ol::after,
  .contact-journey__mark { animation: none !important; }
  .contact-journey ol::after { opacity: 1; transform: scaleY(1); }
  .contact-journey__mark { color: var(--lime); background: var(--forest); border-color: var(--forest); }
}
