:root {
  --city-process-orange: #ee5a24;
  --city-process-action: #c94b1d;
  --city-process-action-hover: #a83a16;
  --city-process-sky: #86bed0;
  --city-process-ink: #16262e;
  --city-process-green: #1d4a35;
  --city-process-green-dark: #12362a;
  --city-process-paper: #faf9f6;
}

.city-process {
  --city-process-heading: var(--city-process-ink);
  --city-process-copy: #52656f;
  --city-process-card: rgba(250, 249, 246, 0.94);
  --city-process-card-border: rgba(22, 38, 46, 0.14);
  --city-process-card-shadow: 0 18px 42px rgba(22, 38, 46, 0.12);
  --city-process-step-heading: var(--city-process-ink);
  --city-process-step-copy: #52656f;
  --city-process-icon: #397f98;
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 8vw, 108px) 0;
  scroll-margin-top: 88px;
}

.city-process--green {
  --city-process-heading: #fff;
  --city-process-copy: #d8e9de;
  --city-process-card: rgba(18, 54, 42, 0.82);
  --city-process-card-border: rgba(255, 255, 255, 0.18);
  --city-process-card-shadow: 0 20px 46px rgba(7, 27, 20, 0.24);
  --city-process-step-heading: #fff;
  --city-process-step-copy: #c9ddd2;
  --city-process-icon: #9fcfdf;
}

.city-process--green::after {
  position: absolute;
  right: -170px;
  bottom: -260px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.city-process__shell {
  position: relative;
  z-index: 1;
}

.city-process__header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: clamp(34px, 6vw, 78px);
}

.city-process__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--city-process-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.city-process__eyebrow::before {
  width: 30px;
  height: 3px;
  border-radius: 99px;
  background: var(--city-process-orange);
  content: "";
}

.city-process--green .city-process__eyebrow {
  color: #fff;
}

.city-process__title {
  max-width: 16ch;
  margin: 16px 0 0;
  color: var(--city-process-heading);
  font-family: "Archivo", sans-serif;
  font-size: clamp(40px, 4.7vw, 62px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.01;
  text-wrap: balance;
}

.city-process__lead {
  max-width: 47ch;
  margin: 0 0 4px;
  color: var(--city-process-copy);
  font-size: 17px;
  line-height: 1.68;
  text-wrap: pretty;
}

.city-process__steps {
  margin: clamp(42px, 5.5vw, 64px) 0 34px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  list-style: none;
}

.city-process__step {
  position: relative;
  min-width: 0;
  min-height: 276px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--city-process-card-border);
  border-radius: 19px;
  background: var(--city-process-card);
  box-shadow: var(--city-process-card-shadow);
  padding: 28px;
}

.city-process__step::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--city-process-orange), #f5ba61);
  content: "";
}

.city-process__step-top {
  min-height: 48px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.city-process__number {
  width: 46px;
  height: 46px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--city-process-action);
  box-shadow: 0 8px 18px rgba(167, 60, 22, 0.24);
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.city-process__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--city-process-icon);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.city-process__step h3 {
  margin: 0 0 11px;
  color: var(--city-process-step-heading);
  font-family: "Archivo", sans-serif;
  font-size: clamp(20px, 1.7vw, 23px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
}

.city-process__step p {
  max-width: 34ch;
  margin: 0;
  color: var(--city-process-step-copy);
  font-size: 15px;
  line-height: 1.62;
  text-wrap: pretty;
}

.city-process__cta {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--city-process-action);
  box-shadow: 0 10px 24px rgba(133, 44, 14, 0.24);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  padding: 15px 22px;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.city-process__cta:hover,
.city-process__cta:focus-visible {
  background: var(--city-process-action-hover);
  box-shadow: 0 12px 28px rgba(133, 44, 14, 0.3);
  transform: translateY(-1px);
}

.city-process__cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.city-process--sand .city-process__cta:focus-visible {
  outline-color: var(--city-process-green);
}

@media (max-width: 900px) {
  .city-process__header {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .city-process__lead {
    max-width: 62ch;
  }

  .city-process__steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .city-process__step {
    min-height: 0;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 44px;
    column-gap: 18px;
    align-items: start;
  }

  .city-process__step-top {
    min-height: 0;
    margin: 0;
    display: contents;
  }

  .city-process__number {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .city-process__icon {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .city-process__step h3,
  .city-process__step p {
    grid-column: 2;
  }

  .city-process__step h3 {
    grid-row: 1;
  }

  .city-process__step p {
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .city-process {
    padding: 70px 0;
    scroll-margin-top: 76px;
  }

  .city-process__title {
    font-size: clamp(36px, 10.5vw, 46px);
  }

  .city-process__lead {
    font-size: 16px;
  }

  .city-process__steps {
    margin-top: 36px;
    gap: 14px;
  }

  .city-process__step {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 15px;
    border-radius: 16px;
    padding: 24px 22px;
  }

  .city-process__number {
    width: 42px;
    height: 42px;
  }

  .city-process__icon {
    display: none;
  }

  .city-process__step h3,
  .city-process__step p {
    grid-column: 2;
  }

  .city-process__step h3 {
    font-size: 20px;
  }

  .city-process__step p {
    font-size: 14.5px;
  }

  .city-process__cta {
    width: 100%;
  }
}

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