.container {
  width: min(1180px, calc(100% - 48px));
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 4.5px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #38a66b;
  transform: scaleX(0);
  transform-origin: left center;
}

.navlinks a.is-active:not(.btn) {
  position: relative;
  color: var(--gold);
}

.navlinks a.is-active:not(.btn)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
}

main [id] {
  scroll-margin-top: 132px;
}

.topbar .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.topbar-contacts {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  justify-content: end;
  gap: 20px;
}

.topbar-contacts a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.topbar-contacts a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.topbar-contacts a:hover,
.topbar-contacts a:focus-visible {
  color: #fff;
}

.topbar-contacts a:hover::after,
.topbar-contacts a:focus-visible::after {
  transform: scaleX(1);
}

.contact-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.footer-contact .contact-icon {
  color: var(--gold);
}

.field label .contact-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 6px 2px 0;
  color: #94733d;
  vertical-align: middle;
}

.nav {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 26px);
}

.navlinks {
  display: grid;
  grid-template-columns: repeat(5, max-content) max-content;
  justify-content: end;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
}

.statstrip .container {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 70px);
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#process {
  background: linear-gradient(180deg, #f5f6f8 0%, #fff 100%);
}

#process .steps {
  gap: 16px;
  align-items: stretch;
}

#process .step {
  position: relative;
  min-width: 0;
  min-height: 250px;
  padding: 26px 23px 24px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px #111e3408;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

#process .step::before {
  position: absolute;
  top: -1px;
  right: 18px;
  left: 18px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--gold), #d9bb7c20);
  content: "";
}

#process .step:not(:last-child)::after {
  position: absolute;
  top: 49px;
  right: -17px;
  z-index: 2;
  width: 17px;
  height: 1px;
  background: #cfb477;
  content: "";
}

#process .step .num {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid #e5d7b8;
  border-radius: 50%;
  background: #faf7f0;
  color: #94733d;
  font: 700 15px/1 Manrope, Arial, sans-serif;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

#process .step h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.4;
}

#process .step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

#process .step:hover {
  transform: translateY(-4px);
  border-color: #d7c18e;
  box-shadow: 0 18px 42px #111e3414;
}

#process .step:hover .num {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footgrid {
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}

footer .footgrid a:not(.brand) {
  position: relative;
  display: block;
  max-width: 100%;
  width: fit-content;
  transition: color 0.2s ease;
}

footer .footgrid a:not(.brand)::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

footer .footgrid a:not(.brand):hover,
footer .footgrid a:not(.brand):focus-visible {
  color: var(--gold);
}

footer .footgrid a:not(.brand):hover::after,
footer .footgrid a:not(.brand):focus-visible::after {
  transform: scaleX(1);
}

footer .footgrid a.footer-contact {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.phone-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

#phone {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.not-found {
  display: grid;
  min-height: min(660px, calc(100vh - 180px));
  padding: 90px 0;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, #263c5c 0, #182943 38%, #101d32 78%);
  color: #fff;
  text-align: center;
}

.not-found-content {
  max-width: 760px;
}

.not-found-code {
  margin-bottom: 25px;
  color: var(--gold);
  font: 600 clamp(110px, 22vw, 190px)/0.72 Georgia, serif;
  letter-spacing: -0.08em;
  text-shadow: 0 16px 50px #d9bb7c24;
}

.not-found .eyebrow {
  margin-bottom: 14px;
}

.not-found h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.6vw, 52px);
}

.not-found p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: #c9d5e3;
  font-size: 15px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

#audience .pill {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 158px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff 20%, #faf9f5 100%);
  box-shadow: 0 12px 32px #111e3408;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

#audience .pill::before {
  position: absolute;
  top: -54px;
  right: -44px;
  width: 140px;
  height: 140px;
  border: 1px solid #d9bb7c30;
  border-radius: 50%;
  box-shadow: 0 0 0 14px #d9bb7c0a, 0 0 0 30px #d9bb7c08;
  content: "";
  pointer-events: none;
}

#audience .pill-visual {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid #e6dcc5;
  border-radius: 18px 18px 18px 5px;
  background: linear-gradient(145deg, #fbf8f0, #f3eddf);
  color: #94733d;
}

#audience .pill-visual svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

#audience .pill-index {
  position: absolute;
  top: 17px;
  right: 20px;
  color: #9b7c49;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

#audience .pill-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-right: 10px;
}

#audience .pill-copy strong {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.4;
}

#audience .pill-copy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

#audience .pill:hover {
  transform: translateY(-4px);
  border-color: #d7c18e;
  box-shadow: 0 18px 42px #111e3414;
}

#audience .pill:hover .pill-visual {
  border-color: var(--gold);
  background: #f7f0df;
}

@media (max-width: 1100px) {
  .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    position: relative;
  }

  .hamb {
    display: block;
    justify-self: end;
  }

  .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 10px;
    padding: 20px 24px;
    background: var(--navy);
    box-shadow: 0 14px 24px #0a142633;
  }

  .navlinks.open {
    display: grid;
  }

  .navlinks a {
    padding: 5px 0;
  }

  .navlinks a.is-active:not(.btn)::after {
    bottom: 0;
  }

  .navlinks .btn {
    padding: 12px 16px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
    gap: 24px;
  }

  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #process .step:not(:last-child)::after {
    display: none;
  }

  #audience .pill {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 18px;
  }

  #audience .pill-visual {
    width: 58px;
    height: 58px;
  }

  #audience .pill-visual svg {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 900px) {
  .topbar {
    display: block;
    padding: 7px 0;
  }

  .topbar .container {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
  }

  .topbar-note {
    display: none;
  }

  .topbar-contacts {
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 0;
    padding: 64px 0 28px;
  }

  .hero-grid > div:first-child {
    max-width: 760px;
  }

  .orb {
    display: grid;
    height: 300px;
    margin-top: -6px;
  }

  .feature-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .statstrip .container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 32px);
  }

  .topbar-contacts {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
  }

  .not-found {
    min-height: min(560px, calc(100vh - 160px));
    padding: 72px 0;
  }

  .not-found-code {
    font-size: clamp(96px, 32vw, 150px);
  }

  .not-found-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
    margin: 0 auto;
  }

  section {
    padding: 62px 0;
  }

  .hero-grid {
    padding: 52px 0 20px;
  }

  h1 {
    font-size: clamp(34px, 9vw, 44px);
    letter-spacing: -0.8px;
  }

  .hero-copy {
    font-size: 13px;
  }

  .hero-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 24px 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .orb {
    height: 245px;
  }

  .orb:before {
    width: 220px;
    height: 220px;
  }

  .orb:after {
    width: 170px;
    height: 170px;
  }

  .orb-inner:before {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
  }

  .orb-inner:after {
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
  }

  .orb-inner .symbol {
    font-size: 86px;
  }

  .orb-inner p {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .statstrip .container,
  .grid3,
  .grid2,
  .steps,
  .fields,
  .footgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat {
    padding: 13px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .card {
    padding: 24px;
  }

  .feature h2,
  .contact-info h2 {
    font-size: 34px;
  }

  .formbox {
    padding: 22px;
  }

  #process .step {
    min-height: 0;
    padding: 23px 21px;
  }

  #process .step .num {
    margin-bottom: 18px;
  }

  #audience .pill {
    min-height: 132px;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 16px;
  }

  #audience .pill-visual {
    width: 52px;
    height: 52px;
    border-radius: 14px 14px 14px 4px;
  }

  #audience .pill-visual svg {
    width: 32px;
    height: 32px;
  }

  #audience .pill-index {
    top: 13px;
    right: 14px;
  }

  #audience .pill-copy {
    padding-right: 4px;
  }

  .footgrid {
    gap: 24px;
  }

  #audience .pill:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #process .step {
    transition: none;
  }

  #process .step:hover {
    transform: none;
  }

  #audience .pill {
    transition: none;
  }

  footer .footgrid a:not(.brand),
  footer .footgrid a:not(.brand)::after,
  .topbar-contacts a,
  .topbar-contacts a::after {
    transition: none;
  }

  #audience .pill:hover {
    transform: none;
  }
}
