html {
  scroll-behavior: smooth;
}

body {
  background: #f2f2eb;
  color: #142924;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid #a3571c;
  outline-offset: 4px;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: .22em;
}

.skip {
  position: absolute;
  z-index: 8;
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: .7rem;
  transform: translateY(-180%);
}

.skip:focus {
  transform: none;
}

.terminal .btn:hover, form button:hover:not(:disabled) {
  background: #0e4036;
  text-decoration: none;
}

.compact-nav {
  display: none;
}

.wrap {
  width: 100%;
  max-width: 1720px;
  padding-inline: clamp(22px,5.6vw,100px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(55px,7vw,116px);
}

.heading, .formgrid, .docgrid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 6%;
  align-items: start;
}

.heading {
  margin-bottom: 36px;
  align-items: end;
}

h2, h3 {
  font-family: Bahnschrift,"Segoe UI",sans-serif;
  font-weight: 550;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: 0;
}

h2 {
  font-size: clamp(38px,4.5vw,78px);
}

h3 {
  font-size: clamp(22px,2.15vw,36px);
}

.heading p, .services p, .workflow p, .accord p, .formgrid p, .routes p {
  max-width: 45ch;
  color: #40554f;
  font-size: clamp(16px,1.2vw,20px);
  margin: 12px 0 0;
}

.heading p {
  margin: 0;
}

.services {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  gap: clamp(20px,3.5vw,65px);
}

.scene {
  display: block;
  overflow: hidden;
}

.scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services .scene {
  height: clamp(235px,23vw,416px);
  margin-bottom: 22px;
}

.routes {
  background: #123e34;
  color: #f2f2eb;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
}

.route-copy {
  padding: clamp(38px,5.6vw,100px);
}

.route-copy p {
  color: #d4e4d9;
}

.routes ul, .workflow ol {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.routes li {
  border-top: 1px solid #769389;
}

.routes li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  font-size: 21px;
}

.routes li a:hover {
  color: #aae2d1;
}

.routes li small {
  display: block;
  font-size: 13px;
  color: #d4e4d9;
}

.routes i, form i {
  font-style: normal;
}

.routes .scene, .workflow .scene {
  position: relative;
}

.routes .scene img, .workflow .scene img {
  position: absolute;
  inset: 0;
}

.routes .scene img {
  object-position: 61% 50%;
}

.workflow {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8%;
  align-items: stretch;
}

.workflow .scene {
  min-height: 340px;
}

.workflow ol {
  margin: 0;
  counter-reset: phase;
}

.workflow li {
  counter-increment: phase;
  border-top: 1px solid #a6b6aa;
  padding: 20px 0 24px 46px;
  position: relative;
}

.workflow li:before {
  content: counter(phase,decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  color: #396e5a;
  font: 500 17px Bahnschrift,sans-serif;
}

.workflow h3 {
  font-size: 26px;
}

.docs {
  background: #e3e9df;
  padding-block: clamp(46px,5.6vw,90px);
}

.docgrid {
  align-items: center;
  grid-template-columns: 1fr 1.1fr;
}

.docs .scene {
  margin-top: 24px;
  height: clamp(135px,16vw,240px);
}

.accord details {
  border-top: 1px solid #9cae9e;
  padding: 18px 0;
}

.accord details:last-child {
  border-bottom: 1px solid #9cae9e;
}

summary {
  cursor: pointer;
  font: 550 clamp(22px,2vw,32px)/1.22 Bahnschrift,sans-serif;
  list-style: none;
  position: relative;
  padding-right: 35px;
}

summary::-webkit-details-marker {
  display: none;
}

summary:after {
  content: "+";
  position: absolute;
  right: 4px;
  color: #135546;
}

details[open] summary:after {
  content: "−";
}

.formgrid {
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
}

.formgrid .note {
  font-size: 14px;
}

.formgrid form {
  padding: clamp(22px,3vw,45px);
  background: #fafaf5;
  border: 1px solid #c4cec1;
}

.formgrid form label {
  font-weight: 650;
  display: block;
}

.formgrid form select, .formgrid form button {
  font: inherit;
  border-radius: 4px;
}

.formgrid form select {
  width: 100%;
  padding: 12px 8px;
  border: 1px solid #859a8c;
  color: #142924;
  background: #fff;
  margin: 8px 0;
}

.formgrid dl {
  display: grid;
  grid-template-columns: minmax(62px,27%) 1fr;
  gap: 10px 18px;
  margin: 15px 0 23px;
  font-size: 15px;
}

.formgrid dt {
  color: #4d635a;
}

.formgrid dd {
  margin: 0;
}

.formgrid form button {
  padding: 12px 18px;
  background: #135546;
  border: 1px solid #135546;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.formgrid button:disabled {
  background: #dce4d9;
  border-color: #dce4d9;
  color: #516357;
  cursor: default;
}

.formgrid form [data-new-appeal] {
  background: transparent;
  color: #124c40;
  margin: 6px 0;
}

.formgrid .feedback {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.feedback[data-state=error] {
  color: #963d1d;
}

footer {
  background: #142924;
  color: #f2f2eb;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 30px;
}

.foot a:first-child {
  font: 600 25px Bahnschrift,sans-serif;
}

.foot span {
  color: #c2d0c4;
  font-size: 14px;
}

@media (max-width: 910px) {
  .compact-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    gap: 12px;
    background: #e3e9df;
    font-size: 14px;
  }
}

@media (max-width:760px) {
  .heading, .services, .routes, .workflow, .formgrid, .docgrid {
    grid-template-columns: minmax(0,1fr);
    gap: 22px;
  }

  .heading {
    margin: 0 0 24px;
    gap: 12px;
  }

  .services {
    gap: 32px;
  }

  .services .scene {
    height: auto;
    aspect-ratio: 1.35;
    margin-bottom: 14px;
  }

  .routes .scene, .workflow .scene {
    height: auto;
    min-height: 0;
    aspect-ratio: 1.33;
  }

  .route-copy {
    padding: 42px 22px 20px;
  }

  .workflow ol {
    margin: 0;
  }

  .workflow li {
    padding-block: 15px;
  }

  .workflow li:before {
    top: 19px;
  }

  .docgrid {
    gap: 22px;
  }

  .docs .scene {
    height: 155px;
  }

  .formgrid dl {
    font-size: 14px;
    gap: 10px;
  }

  .foot {
    flex-wrap: wrap;
  }

  .foot span {
    order: 3;
    flex-basis: 100%;
  }

  .formgrid form {
    min-width: 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}
