.home-hero {
  display: flex;
  align-items: center;
  min-height: clamp(560px, 75svh, 690px);
  margin: 16px auto 26px;
  padding: clamp(36px, 5vw, 72px);
  background: #253344;
  color: #fff;
  overflow: hidden;
  border-radius: 16px;
}

.home-hero::after {
  z-index: 1;
  opacity: .62;
  background-size: 117px 110px, 73px 67px;
}
.home-hero .hero-copy { position: relative; z-index: 2; }
.home-hero .eyebrow { color: #ffd3b8; letter-spacing: .11em; }
.home-hero h1 {
  font-size: clamp(44px, 5.4vw, 78px);
  letter-spacing: -.048em;
}
.home-hero h1 em { color: #ffb88c; }
.home-hero .hero-lead { max-width: 39ch; color: #f2f1ef; }
.home-hero .hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: auto;
  animation: none;
}
.home-hero .hero-visual img {
  opacity: 1;
  object-position: 56% center;
  filter: none;
  border-radius: 0;
}
.home-hero .hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #101924eb 0%, #101924d9 29%, #101924b8 45%, #10192445 70%, #10192412 100%);
}
.home-hero .hero-actions { margin-bottom: 28px; flex-wrap: wrap; gap: 16px 24px; }
.home-hero .hero-actions .button { background: #ffb88c; color: #362016; }
.home-hero .hero-actions .button:hover { background: #ffccac; }
.home-hero .text-link { color: #fff; border-color: #ffffff8c; }
.home-hero .text-link span { color: #ffb88c; }
.home-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 14px/1.5 var(--ui-font); }
.home-proof a { color: inherit; text-underline-offset: 4px; }
.home-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: clamp(42px, 7vw, 96px);
  border-block: 1px solid #d9d2c8;
}
.home-paths a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  color: #1e2430;
  text-decoration: none;
  font-family: var(--ui-font);
}
.home-paths a + a { border-left: 1px solid #d9d2c8; }
.home-paths a:hover { background: #ebe5dc; }
.home-paths strong, .home-paths small { display: block; }
.home-paths strong { font-weight: 600; }
.home-paths small { color: #545c65; margin-top: 4px; }
.home-paths a > span:last-child { color: #ad451f; }

.catalog + .products { padding-top: clamp(56px, 8vw, 110px); }
#about { scroll-margin-top: 98px; }
.person-lead { max-width: 900px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.person-lead .person-copy { align-self: center; padding: clamp(20px, 4vw, 50px); }
.person-lead img { filter: none; }
.person-intro { color: #525b67; font-size: 15px; line-height: 1.6; }
.person-intro p { margin-bottom: 12px; }
.person-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; }
#about h2 { margin-bottom: 32px; }
#products, #quiz, #works, #request { scroll-margin-top: 98px; }
#window-title { font-size: clamp(38px, 5vw, 70px); }
.estimate {
  background: #eae3d8;
  background-image:
    linear-gradient(90deg, #66594514 1px, transparent 1px),
    linear-gradient(#66594514 1px, transparent 1px);
  background-size: 44px 44px;
  padding: clamp(48px, 7vw, 96px) 0;
  margin-bottom: clamp(52px, 8vw, 112px);
}
.estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(24px, 5vw, 68px);
}
.estimate-intro h2 { font-size: clamp(35px, 4vw, 59px); margin: 12px 0 16px; }
.estimate-intro p:not(.kicker) { color: #464b52; }
.estimate-intro img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.estimate-form {
  background: #fffdfa;
  border: 1px solid #d8d0c3;
  padding: clamp(20px, 4vw, 48px);
  font-family: var(--ui-font);
  color: #20242b;
}
.estimate-progress-label { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #535961; }
.estimate-form progress { display: block; width: 100%; height: 6px; margin: 10px 0 26px; appearance: none; border: none; background: #ece6de; color: #b84720; }
.estimate-form progress::-webkit-progress-bar { background: #ece6de; }
.estimate-form progress::-webkit-progress-value { background: #b84720; }
.estimate-form progress::-moz-progress-bar { background: #b84720; }
.estimate-form fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.estimate-form legend { padding: 0; margin-bottom: 16px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; line-height: 1.2; }
.estimate-options, .estimate-fields { display: grid; gap: 10px; }
.estimate-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.estimate-options label { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px; border: 1px solid #d7d1c8; cursor: pointer; font-size: 14px; }
.estimate-options label:has(input:checked) { border-color: #a43e1a; background: #f9ece4; }
.estimate-options label:hover { border-color: #a43e1a; }
.estimate-options input { flex: 0 0 auto; margin: 0; accent-color: #a43e1a; }
.estimate-fields { font-size: 14px; }
.estimate-fields small { color: #60646a; font-size: 12px; }
.estimate-fields :is(input, select, textarea) {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid #d7d1c8;
  border-radius: 0;
  color: #20242b;
  background: #fff;
  font: inherit;
  font-size: 16px;
}
.estimate-fields textarea { resize: vertical; }
.estimate-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.estimate-actions [data-estimate-next] { margin-left: auto; background: #ab3e1b; }
.estimate-actions [data-estimate-next]:hover { background: #913317; }
.estimate-actions [data-estimate-back] { min-height: 44px; font: 500 14px var(--ui-font); border: 0; background: none; padding: 0 10px 0 0; cursor: pointer; }
.estimate-actions button:disabled { opacity: .6; cursor: default; }
.estimate-error, .estimate-result, .estimate-summary { font-size: 14px; margin: 12px 0 0; }
.estimate-error { color: #98351a; }
.estimate-summary { margin: -4px 0 14px; color: #505861; }
.estimate [hidden] { display: none; }

.works-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: clamp(120px, 17vw, 230px); }
.works-grid img { filter: none; }
.works-grid img:nth-child(n) { grid-column: auto; grid-row: auto; }
.works-grid img:first-child { grid-column: span 2; grid-row: span 2; }
.works-grid img:nth-child(n+6) { grid-column: span 2; }

@media (max-width: 800px) {
  .estimate-layout { grid-template-columns: 1fr; }
  .home-hero {
    width: min(100% - 36px, 560px);
    margin: 12px auto 24px;
    align-items: flex-end;
    min-height: clamp(540px, 75svh, 650px);
    padding: 58px clamp(18px, 5vw, 36px) 26px;
    border-radius: 12px;
  }
  .home-hero .hero-visual img { object-position: 61% center; }
  .home-hero .hero-visual::after {
    background: linear-gradient(180deg, #10192418, #101924a6 34%, #101924e8 90%),
      linear-gradient(90deg, #10192461, transparent 85%);
  }
  .home-hero h1 { font-size: clamp(33px, 10.5vw, 57px); line-height: 1.02; margin: 16px 0; }
  .home-hero .hero-lead { font-size: 16px; line-height: 1.5; max-width: 35ch; }
  .home-hero .hero-actions { margin: 24px 0; gap: 10px 16px; }
  .home-hero .home-proof { border-top: 1px solid #ffffff45; padding-top: 13px; font-size: 12px; }
  .home-paths { grid-template-columns: 1fr; }
  .home-paths a { padding: 14px 4px; }
  .home-paths a + a { border-left: none; border-top: 1px solid #d9d2c8; }
  .nav nav.is-open {
    display: grid;
    position: absolute;
    inset: calc(100% + 8px) 0 auto;
    gap: 0;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2ddd3;
    border-radius: 14px;
    box-shadow: 0 12px 30px #1e243024;
  }
  .nav nav a { display: flex; align-items: center; min-height: 44px; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(135px, 37vw, 200px); }
  .works-grid img:first-child { grid-row: auto; }
  .works-grid img:nth-child(n+6) { grid-column: auto; }
}
@media (max-width: 460px) {
  .nav { gap: 8px; padding-inline: 10px; }
  .nav .logo { gap: 8px; }
  .nav-measure { flex-shrink: 0; }
  .person-lead { grid-template-columns: 1fr; }
  .person-lead img { min-height: 0; height: auto; }
  .estimate-layout { gap: 18px; }
  .estimate-intro img { aspect-ratio: 2 / 1; }
  .estimate-options { grid-template-columns: 1fr; }
  .estimate-options label { min-height: 45px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero, .home-hero .hero-visual, .home-hero::after { animation: none; }
}
