:root {
  --paper: #f7f6f1;
  --white: #fdfcf9;
  --ink: #1c211e;
  --muted: #555b55;
  --line: #d9d9d0;
  --blue: #2343db;
  --blue-dark: #1c33a5;
  --tint: #e9edf9;
  --wrap: 1320px;
  --side: clamp(20px, 4.2vw, 72px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --motion: 260ms var(--ease-out);
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.55 "nexor", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; zoom: 1.1; }
body { margin: 0; }
.site-loading {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 18px);
  background: #fff;
  font-size: clamp(1.65rem, 5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
  transition: opacity 220ms ease-out, visibility 220ms;
}
.site-loading-done { opacity: 0; visibility: hidden; pointer-events: none; }
.site-loading svg { width: clamp(48px, 12vw, 76px); height: auto; }
.loading-windows { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .loading-windows { animation: loading-blink 820ms cubic-bezier(.42, 0, .25, 1) both; }
  @keyframes loading-blink {
    0%, 12%, 38%, 50%, 76%, 100% { scale: 1 1; }
    24%, 62% { scale: 1 .22; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-loading { transition: none; }
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:where(a, button, input, select, summary, textarea) { -webkit-tap-highlight-color: transparent; }
p, h1, h2, h3, figure { margin: 0; }
section[id] { scroll-margin-top: 26px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
::selection { color: white; background: var(--blue); }

.wrap { width: min(calc(100% - var(--side) * 2), var(--wrap)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 4; padding: 12px; background: var(--white); }

.header-inner {
  min-height: 77px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px 30px;
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
}
.site-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 49px); font-size: .93rem; font-weight: 500; }
.site-nav a:hover { color: var(--blue); }
.header-contacts { display: flex; justify-self: end; align-items: center; gap: 12px; white-space: nowrap; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  color: var(--blue-dark);
  font-size: .82rem;
  font-weight: 600;
}
.header-phone:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
:is(.header-phone, .footer-phone) .icon { fill: currentColor; stroke: none; }
.header-phone .icon { width: 16px; height: 16px; }
.contact-dropdown { position: relative; }
.contact-dropdown summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--blue-dark);
  cursor: pointer;
  list-style: none;
  font-size: .8rem;
  font-weight: 600;
}
.contact-dropdown summary::-webkit-details-marker { display: none; }
.contact-dropdown summary .icon { width: 13px; height: 13px; }
.contact-dropdown summary:hover, .contact-dropdown[open] summary { background: #dfe6fb; }
.contact-dropdown[open] summary .icon { rotate: -90deg; }
.contact-menu {
  position: absolute;
  z-index: 5;
  inset: calc(100% + 8px) 0 auto auto;
  display: grid;
  gap: 4px;
  min-width: 192px;
  padding: 6px;
  border: 1px solid #e3e5eb;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 12px 28px #19233d17;
}
.mobile-dock { display: none; }
.icon-library { position: absolute; overflow: hidden; pointer-events: none; }
.icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: rotate var(--motion), translate var(--motion);
}
.icon-down { rotate: 90deg; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 54px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.25;
  transition: background-color var(--motion), color var(--motion), border-color var(--motion), scale var(--motion);
}
.button:not(:disabled):active { scale: .985; }
.button-outline { min-height: 44px; border-color: #bcbfb7; padding-inline: 15px; gap: 18px; }
.button-outline:hover { border-color: var(--blue); color: var(--blue); }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover { background: var(--blue-dark); }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: .24em; }

.hero { margin-block: 25px clamp(50px, 6vw, 86px); }
.hero-content {
  display: grid;
  grid-template-columns: 1fr .9fr;
  column-gap: 32px;
  align-items: center;
  padding-top: clamp(24px, 3.1vw, 44px);
}
.hero-heading { container-type: inline-size; }
.hero h1 {
  font-size: clamp(1.45rem, 4.4vw, 4.8rem);
  font-size: clamp(1.4rem, 9.4cqi, 5.3rem);
  font-weight: 600;
  line-height: 1.01;
  letter-spacing: -.069em;
}
.hero h1 span { color: var(--blue); }
.hero-description { max-width: 37ch; margin-bottom: 20px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.18rem); }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 22px; row-gap: 8px; }
.hero-links .button-primary { white-space: nowrap; }
.hero-links .text-link { min-height: 44px; font-size: .9rem; }
.hero-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #c3bbad;
  border-radius: clamp(16px, 1.9vw, 28px);
}
.hero-photo img { width: 100%; height: auto; aspect-ratio: 2.66; max-height: clamp(410px, 54svh, 470px); object-fit: cover; object-position: center 44%; }

h2 { font-size: clamp(2rem, 3.75vw, 3.6rem); line-height: 1.04; font-weight: 600; letter-spacing: -.066em; }
.projects { padding-bottom: clamp(44px, 5vw, 72px); }
.section-heading { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px 32px; align-items: end; margin-bottom: 24px; }
.section-heading > p { justify-self: end; max-width: 34ch; color: var(--muted); }
@media (min-width: 749px) {
  :is(.projects, .approach) .section-heading > p { text-align: right; }
}
.catalog-filters { margin-bottom: 15px; }
.catalog-fields {
  display: grid;
  grid-template-columns: 1.55fr repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.catalog-search, .catalog-range, .select-field, .choice-dropdown { position: relative; min-width: 0; }
.catalog-search input, .catalog-range summary, .catalog-fields .choice-dropdown summary {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid #e2e1da;
  border-radius: 11px;
  background-color: #faf9f5;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 500;
  transition: border-color var(--motion), background-color var(--motion);
}
.catalog-search > .icon { position: absolute; inset: 14px auto auto 11px; color: var(--muted); pointer-events: none; }
.catalog-fields .catalog-search input { padding-inline-start: 36px; }
:is(.catalog-range, .choice-dropdown) summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  list-style: none;
  cursor: pointer;
}
:is(.catalog-range, .choice-dropdown) summary::-webkit-details-marker { display: none; }
:is(.catalog-range, .choice-dropdown) summary .icon { width: 14px; height: 14px; color: var(--muted); }
:is(.catalog-range, .choice-dropdown)[open] summary .icon { rotate: -90deg; }
.dropdown-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-fields :is(input[type="search"], summary):hover { border-color: #aeb3aa; }
.catalog-range:is([open], .range-selected) summary, .catalog-fields .choice-dropdown:is([open], .choice-selected) summary {
  border-color: #b9c6f5;
  background-color: #f0f2fc;
  color: var(--blue-dark);
}
:is(.range-control, .choice-panel) {
  position: absolute;
  z-index: 2;
  top: calc(100% + 7px);
  inset-inline-end: 0;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 16px 38px #252c2424;
}
.range-control { width: min(285px, calc(100vw - 64px)); padding: 15px; }
.choice-panel {
  inset-inline: 0;
  gap: 2px;
  padding: 5px;
  max-height: min(320px, 48dvh);
  overflow: auto;
}
.choice-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-height: 37px;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: .82rem;
  line-height: 1.25;
}
.choice-option .icon { width: 14px; height: 14px; visibility: hidden; }
.choice-option[aria-pressed="true"] { background: #edf1ff; color: var(--blue-dark); font-weight: 600; }
.choice-option[aria-pressed="true"] .icon { visibility: visible; }
.choice-option:not([aria-pressed="true"]):is(:hover, :focus-visible) { background: #f0efe9; }
.choice-option:focus-visible { outline-offset: -2px; }
@media (prefers-reduced-motion: no-preference) {
  :is(.catalog-range, .choice-dropdown)[open] > :is(.range-control, .choice-panel) { animation: reveal-range 180ms var(--ease-out); }
  @keyframes reveal-range {
    from { opacity: 0; translate: 0 -3px; }
    to { opacity: 1; translate: 0 0; }
  }
}
.range-caption { font-size: .8rem; color: var(--muted); }
.range-selected summary { padding-block: 5px; }
.range-trigger-copy { line-height: 1.15; }
.range-selection { display: block; margin-top: 3px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.range-value {
  justify-self: start;
  margin-top: 4px;
  color: var(--blue-dark);
  font-size: clamp(1.12rem, 4.5vw, 1.3rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}
.range-track { position: relative; height: 44px; margin-top: 3px; cursor: grab; touch-action: pan-y; }
.range-track:active { cursor: grabbing; }
.range-track::before {
  position: absolute;
  inset: calc(50% - 2px) 10px auto;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #dce1ed var(--range-start),
    var(--blue) var(--range-start) var(--range-end),
    #dce1ed var(--range-end)
  );
  content: "";
}
.range-track input {
  position: absolute;
  inset: 0;
  appearance: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.range-track input:last-child { z-index: 1; }
.range-at-end input:first-of-type, .range-track input:focus-visible { z-index: 2; }
.range-track input:focus-visible { outline: none; }
.range-track input::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 5px #24345a26;
}
.range-track input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 5px #24345a26;
}
.range-track input:is(:active, :focus-visible)::-webkit-slider-thumb { background-color: var(--blue); }
.range-track input:is(:active, :focus-visible)::-moz-range-thumb { background-color: var(--blue); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 7px; }
.catalog-filters :focus-visible, .estimate-form :focus-visible { outline-color: #69736a; outline-offset: 2px; }
:is(.catalog-filters, .estimate-form) :is(input[type=search], input[type=number]):focus {
  outline: none;
  border-color: #929c93;
}
.catalog-toolbar p { color: var(--muted); font-size: .82rem; }
.catalog-tools { display: flex; align-items: center; gap: 18px; }
.catalog-favorites {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 600;
}
.catalog-favorites .icon { width: 16px; height: 16px; }
.catalog-favorites:hover { text-decoration: underline; text-underline-offset: 3px; }
.catalog-reset {
  min-height: 40px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 600;
}
.catalog-reset:not(:disabled):hover { text-decoration: underline; text-underline-offset: 3px; }
.catalog-reset:disabled { opacity: .5; cursor: default; }
.catalog-empty { padding-block: 26px; border-top: 1px solid var(--line); color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 18px; }
.project {
  position: relative;
}
@media (prefers-reduced-motion: no-preference) {
  .project { transition: opacity var(--motion); }
  @starting-style { .project:not([hidden]) { opacity: .45; } }
}
.project-photo { position: relative; overflow: hidden; border-radius: 16px; background: #e5e2d8; }
.project-photo img { width: 100%; height: auto; aspect-ratio: 2.25; object-fit: cover; object-position: center 38%; }
.project-meta {
  position: absolute;
  inset: 10px auto auto 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.project-meta li {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fdfcf9e6;
  box-shadow: 0 2px 8px #19201d26;
  color: #202822;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.2;
}
.project-meta .icon { width: 14px; height: 14px; }
.project-body { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; padding: 12px 1px 0; }
.project-body h3 { font-size: clamp(1.5rem, 2.45vw, 2.3rem); line-height: 1.12; font-weight: 600; letter-spacing: -.055em; }
.project-title-link { color: inherit; text-decoration: none; }
.project-title-link::after { position: absolute; inset: 0; content: ""; }
.project-price { margin-top: 4px; color: var(--blue); font-size: clamp(.88rem, 1.25vw, 1.06rem); font-weight: 600; }
.catalog-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 30px;
  padding: clamp(16px, 3vw, 30px);
  border-radius: 16px;
  background: var(--tint);
}
.catalog-custom h3 { font-size: clamp(1.22rem, 2.4vw, 1.9rem); line-height: 1.12; letter-spacing: -.04em; }
.catalog-custom p { margin-top: 6px; color: var(--muted); font-size: .83rem; }
.catalog-custom .button { min-height: 44px; max-width: 100%; gap: 10px; padding-inline: 12px; font-size: .78rem; }
.project-open {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--tint);
  color: var(--blue);
  transition: background-color var(--motion), color var(--motion);
}
.project-open::after { position: absolute; inset: 0; content: ""; }
.project-open .icon { rotate: -45deg; }
.project-open:focus-visible { background: var(--blue); color: white; }
@media (hover: hover) {
  .project-open:hover { background: var(--blue); color: white; }
}
.favorite-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fdfcf9ed;
  color: var(--blue-dark);
  transition: color var(--motion), background-color var(--motion);
}
.favorite-button:hover, .favorite-button[aria-pressed="true"] { background: #e9edfc; color: var(--blue); }
.favorite-button[aria-pressed="true"] .icon { fill: currentColor; stroke: none; }
.project-favorite { position: absolute; z-index: 1; top: 8px; right: 8px; }
.favorite-button.project-favorite { background-color: #fdfcf9e6; box-shadow: 0 2px 8px #19201d26; }
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  :is(.project-meta li, .favorite-button.project-favorite) {
    background: linear-gradient(160deg, #ffffffc9 0%, #fdfcf999 55%, #ffffffb8 100%);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    backdrop-filter: blur(12px) saturate(1.5);
  }
}
.house-photo-wrap { position: relative; min-width: 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover .icon:not(.icon-down):not(.download-icon) { translate: 2px 0; }
  .estimate-download:not(:disabled):hover .download-arrow { translate: 0 2px; }
  .project-open:hover .icon { translate: 1px -1px; }
}

.services { padding-top: clamp(52px, 7vw, 100px); }
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.service-list article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(20px, 3vw, 38px);
  background: #ebeef8;
  border-radius: 20px;
}
.service-list p { color: var(--muted); max-width: 42ch; }
.service-list .text-link { justify-self: start; min-height: 44px; }
.approach { padding-block: clamp(70px, 9.5vw, 140px); }
.approach .section-heading { margin-bottom: clamp(68px, 8.5vw, 124px); }
.steps {
  --step-gap: clamp(20px, 4.1vw, 60px);
  --step-icon-size: 52px;
  --step-line: #d6dced;
  --step-curve: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 16' preserveAspectRatio='none'%3E%3Cpath d='M0 8C16 8 22 2 37 2S57 14 71 14 88 8 100 8' fill='none' stroke='black' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--step-gap);
  padding: 0;
  margin: 0;
  list-style: none;
}
.steps li { position: relative; text-align: center; }
.steps li:not(:last-child)::after {
  position: absolute;
  top: calc(var(--step-icon-size) / 2 - 8px);
  left: calc(50% + var(--step-icon-size) / 2 + 9px);
  width: calc(100% + var(--step-gap) - var(--step-icon-size) - 18px);
  height: 16px;
  background: var(--step-line);
  mask: var(--step-curve) center / 100% 100% no-repeat;
  content: "";
}
.step-icon {
  display: grid;
  place-items: center;
  width: var(--step-icon-size);
  height: var(--step-icon-size);
  margin: 0 auto 16px;
  border-radius: 14px;
  background: #e9edfa;
  color: var(--blue-dark);
}
.step-icon .icon { width: 25px; height: 25px; fill: currentColor; stroke: none; }
.steps h3 { font-weight: 600; font-size: clamp(1.22rem, 1.95vw, 1.68rem); line-height: 1.15; letter-spacing: -.045em; }
.steps p { margin: 8px auto 0; color: var(--muted); max-width: 37ch; font-size: .94rem; }

.faq { display: grid; grid-template-columns: 1fr 1.14fr; gap: clamp(24px, 5vw, 70px); padding-block: 0 clamp(44px, 5vw, 72px); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  padding-block: 17px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  font-size: clamp(1rem, 1.6vw, 1.17rem);
  font-weight: 600;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--blue); }
.faq details[open] summary .icon { rotate: -90deg; }
.faq summary:hover { color: var(--blue); }
.faq details p { padding: 0 24px 19px 0; color: var(--muted); }
@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size var(--motion), opacity var(--motion), content-visibility var(--motion) allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; opacity: 1; }
}

.estimate {
  margin-bottom: 0;
  border-radius: clamp(16px, 1.9vw, 28px);
  border: 1px solid #dfded6;
  background: var(--white);
}
.estimate-grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); }
.estimate-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: clamp(16px, 1.9vw, 28px) 0 0 clamp(16px, 1.9vw, 28px);
  background: linear-gradient(145deg, #202b50, #1b2540 63%, #25375c);
  color: #fcfdff;
}
.estimate-intro::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, #a9bcf32c 1px, transparent 1px),
    linear-gradient(#a9bcf32c 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center bottom;
  mask-image:
    linear-gradient(to top, #000 12%, transparent 66%),
    radial-gradient(ellipse 36% 74% at 21% 100%, #000 22%, transparent 100%),
    radial-gradient(ellipse 28% 92% at 74% 100%, #000 24%, transparent 100%),
    radial-gradient(ellipse 16% 63% at 99% 100%, #000 12%, transparent 100%);
  pointer-events: none;
  content: "";
}
.estimate-intro-copy { position: relative; padding: clamp(23px, 3vw, 43px); padding-bottom: 0; }
.estimate-intro h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); text-wrap: balance; }
.estimate-intro p { max-width: 33ch; margin-top: 12px; color: #d5dff8; font-size: .94rem; }
.estimate-illustration { position: relative; width: 100%; height: auto; object-fit: contain; }
.estimate-grid noscript { padding: 24px; }
.estimate-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 14px 12px;
  padding: clamp(22px, 3vw, 43px);
}
.estimate-form label { display: grid; gap: 6px; min-width: 0; font-size: .89rem; font-weight: 500; }
.estimate-form .estimate-label { display: flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 600; }
.estimate-label .icon { width: 17px; height: 17px; color: #495781; fill: currentColor; stroke: none; }
.estimate-form :is(input[type="number"], .choice-dropdown summary) {
  width: 100%;
  min-height: 49px;
  padding: 10px 13px;
  border: 1px solid #dedfd8;
  border-radius: 11px;
  background: #f7f7f2;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}
.estimate-form .select-field > .estimate-label { margin-bottom: 6px; }
.estimate-form .choice-dropdown[open] summary { border-color: #aeb8d4; }
.form-wide { grid-column: 1 / -1; }
.estimate-result {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 10px;
  margin-top: 4px;
  padding: clamp(15px, 1.85vw, 25px);
  border-radius: 15px;
  background: #edf0fa;
}
.estimate-price { flex: 1 1 230px; min-width: 0; }
.estimate-price p { color: #4c5872; font-size: .82rem; }
.estimate-result output { display: block; margin-top: 5px; color: #22366e; font-size: clamp(1.35rem, 2.72vw, 2.6rem); font-weight: 600; letter-spacing: -.048em; line-height: 1.1; }
.estimate-download { gap: 11px; min-height: 44px; padding: 8px 13px; font-size: .83rem; }
.download-arrow { transition: translate var(--motion); }
.estimate-download:disabled { opacity: .55; cursor: default; }
.estimate-note { color: var(--muted); font-size: .78rem; }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-block: clamp(22px, 2.65vw, 34px);
  border-top: 1px solid var(--line);
}
.footer-contacts {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}
.footer-contact-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.footer-contact-title {
  font-size: .68rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer-messenger-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-messenger-phone {
  cursor: default;
}
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--ink);
  font-size: clamp(.89rem, 1.32vw, 1.07rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.footer-phone .icon { width: 17px; height: 17px; color: var(--blue-dark); }
.footer-phone:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: .2em; }
.footer-messengers {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-messengers .contact-channel {
  display: grid;
  width: 40px;
  min-height: 40px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}
.footer-messengers img { width: 24px; height: 24px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 9px;
  border-radius: 9px;
  color: var(--ink);
  font-size: .79rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.contact-channel img { flex: none; }
.max-contact { border: 0; background: transparent; text-align: left; }
.max-contact:hover { background: #f0f2fa; }
.max-copy-status:empty { display: none; }
.max-copy-status { align-self: center; color: var(--muted); font-size: .68rem; }
.footer-messengers { position: relative; }
.footer-messengers .max-copy-status { position: absolute; inset: 100% 0 auto auto; white-space: nowrap; }
.contact-channel small { margin-left: auto; color: var(--muted); font-size: .68rem; font-weight: 400; }
a.contact-channel:hover { background: #f0f2fa; text-decoration: underline; text-underline-offset: .2em; }
.footer-brand { display: grid; gap: 6px; justify-items: start; }
.footer-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .68rem;
  white-space: nowrap;
}
.footer-location img { flex: none; object-fit: contain; }
.footer-location { flex-wrap: wrap; white-space: normal; }
.footer-region { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

.favorites-dialog {
  --favorites-entry-offset: 8px;
  width: min(460px, calc(100% - 32px));
  max-height: min(80dvh, 620px);
  padding: 0;
  border: 1px solid #e2e3dc;
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 64px #171e312f;
}
.favorites-dialog::backdrop { background: #111a30a6; }
@media (prefers-reduced-motion: no-preference) {
  .favorites-dialog[open] { animation: favorites-enter 280ms var(--ease-out); }
  .favorites-dialog[open]::backdrop { animation: favorites-backdrop-enter 200ms ease-out; }
  .favorites-dialog[open][data-closing] { animation: favorites-exit 210ms ease-in forwards; }
  .favorites-dialog[open][data-closing]::backdrop { animation: favorites-backdrop-exit 210ms ease-out forwards; }

  @keyframes favorites-enter {
    from { opacity: 0; translate: 0 var(--favorites-entry-offset); }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes favorites-backdrop-enter {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes favorites-exit {
    to { opacity: 0; translate: 0 var(--favorites-entry-offset); }
  }
  @keyframes favorites-backdrop-exit {
    to { opacity: 0; }
  }
}
body:has(.favorites-dialog[open]) { overflow: hidden; }
.favorites-inner { padding: 19px; }
.favorites-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.favorites-heading h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
.favorites-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--tint);
  color: var(--blue-dark);
}
.favorites-empty { margin-top: 13px; color: var(--muted); font-size: .86rem; }
.favorites-list { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.favorites-list:empty { display: none; }
.favorites-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border-radius: 12px;
  background: #f3f4f8;
}
.favorite-project { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; }
.favorite-project img { flex: none; object-fit: cover; border-radius: 8px; }
.favorite-project strong, .favorite-project small { display: block; }
.favorite-project strong { font-size: .95rem; }
.favorite-project small { color: var(--muted); font-size: .75rem; }

.project-back { min-height: 44px; }
.house-page { margin-block: clamp(24px, 4vw, 56px); }
.house-detail { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(24px, 5vw, 70px); }
.house-copy { min-width: 0; overflow-wrap: anywhere; }
.house-image { width: 100%; height: auto; aspect-ratio: 1.48; object-fit: cover; border-radius: clamp(16px, 1.9vw, 28px); }
.house-copy h1, #house-missing { font-size: clamp(2.75rem, 5.5vw, 5.1rem); line-height: 1.06; letter-spacing: -.068em; }
.house-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 20px;
  padding: 0;
  list-style: none;
}
.house-specs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--tint);
  color: var(--blue-dark);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}
.house-specs .icon { width: 15px; height: 15px; }
.house-description { font-size: clamp(.98rem, 1.32vw, 1.1rem); }
.house-description + p { margin-top: 9px; color: var(--muted); }
.house-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 12px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.house-price strong { color: var(--blue-dark); font-size: clamp(1.3rem, 2.5vw, 2rem); line-height: 1.1; letter-spacing: -.045em; }
.house-price span { color: var(--muted); font-size: .75rem; }
.house-price-note { margin-top: 8px; color: var(--muted); font-size: .75rem; }
.house-plan-image { object-fit: contain; background: white; padding-bottom: 56px; }
.house-gallery-nav {
  position: absolute;
  inset: auto 8px 8px;
  width: fit-content;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px;
  border-radius: 12px;
  background: #171e2bdb;
  backdrop-filter: blur(10px);
  color: white;
  font-size: .76rem;
  font-weight: 600;
}
.house-gallery-nav button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; }
.house-gallery-nav button:hover { background: #ffffff26; }
.house-gallery-nav span { min-width: 8em; text-align: center; white-space: nowrap; }
.gallery-prev { rotate: 180deg; }
@media (prefers-reduced-motion: no-preference) {
  .house-detail { animation: show-house 260ms var(--ease-out); }
  @keyframes show-house {
    from { opacity: .4; translate: 0 4px; }
    to { opacity: 1; translate: 0 0; }
  }
}

@media (max-width: 1188px) {
  .catalog-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (748px < width <= 1536px) {
  .site-header .wrap { --side: clamp(22px, 2.6vw, 40px); }
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: clamp(14px, 1.8vw, 26px); }
  .site-nav { justify-content: center; gap: clamp(12px, 1.8vw, 28px); }
  .site-nav a { white-space: nowrap; }
  .project-back { justify-self: center; }
  .hero-content { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); column-gap: clamp(18px, 2.4vw, 32px); }
  .hero-links { column-gap: 14px; }
  .hero-links :is(.button-primary, .text-link) { gap: 8px; font-size: clamp(.78rem, 1.05vw, .94rem); white-space: nowrap; }
  .hero-links .button-primary { padding-inline: 13px; }
}

@media (max-width: 990px) {
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; }
  .site-nav { justify-content: center; gap: clamp(10px, 1.7vw, 20px); font-size: .82rem; }
  .site-nav a { white-space: nowrap; }
  .header-contacts { gap: 8px; }
  .hero-photo img { aspect-ratio: 2.25; }
  .project-grid { gap: 24px 12px; }
  .faq { gap: 24px; }
}

@media (748px < width <= 900px) {
  .header-inner:has(.nav-panel) {
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
    padding-block: 12px 0;
  }
  .header-inner .nav-panel { grid-area: 2 / 1 / auto / -1; }
  .header-inner .site-nav { min-height: 36px; }
  .hero-links { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .footer-contacts { gap: 4px 10px; }
  .footer-phone { gap: 6px; font-size: .84rem; }
  .footer-phone .icon { width: 14px; height: 14px; }
  .footer-messengers { gap: 6px; }
  .footer-messengers .contact-channel { width: 34px; min-height: 34px; }
  .footer-messengers img { width: 23px; height: 23px; }
}

@media (max-width: 748px) {
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand { justify-items: center; }
  .footer-brand .brand { justify-self: center; }
  .footer-location { justify-content: center; }
  .footer-contacts { flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
  .footer-contact-item { align-items: center; text-align: center; }
  .footer-messenger-row { flex-direction: column; align-items: center; gap: 8px; }
  .footer-messengers { margin-top: 2px; }
  .footer-messengers .contact-channel { width: 34px; min-height: 34px; height: 34px; }
  .footer-messengers img { width: 26px; height: 26px; }
  .site-header { padding-top: calc(6px + env(safe-area-inset-top, 0px)); }
  .header-inner { min-height: 60px; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .brand { min-height: 44px; }
  .site-header :is(.nav-panel, .header-contacts) { display: none; }
  .project-header { grid-template-columns: minmax(0, 1fr) auto; }
  .project-back { gap: 4px; font-size: .8rem; white-space: nowrap; }
  .mobile-dock {
    display: block;
    position: fixed;
    inset: auto 0 calc(9px + env(safe-area-inset-bottom, 0px));
    z-index: 10;
    width: min(344px, calc(100% - 2 * max(10px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))));
    margin-inline: auto;
    padding: 4px;
    border: 1px solid #e2e4ea;
    border-radius: 16px;
    background: #faf9f5db;
    backdrop-filter: blur(18px) saturate(1.2);
  }
  .mobile-dock-inner {
    --dock-gap: 4px;
    --active-tab: 0;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--dock-gap);
  }
  .mobile-dock-inner:has([aria-expanded="true"]) { --active-tab: 1; }
  .mobile-dock-inner:has(> a:last-child[aria-current]) { --active-tab: 2; }
  .mobile-dock-inner:has(> [aria-current], > [aria-expanded="true"])::before { opacity: 1; }
  .mobile-dock-inner::before {
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 0;
    width: calc((100% - 2 * var(--dock-gap)) / 3);
    border-radius: 11px;
    background: #e8ecfb;
    opacity: 0;
    translate: calc(var(--active-tab) * (100% + var(--dock-gap))) 0;
    transition: translate var(--motion), opacity var(--motion);
    pointer-events: none;
    content: "";
  }
  .mobile-dock :is(a, button) {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 49px;
    padding: 4px 2px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #4c5971;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.1;
    transition: color var(--motion);
  }
  .mobile-dock :is([aria-current], [aria-expanded="true"]) { color: var(--blue-dark); }
  .mobile-dock .icon { width: 22px; height: 22px; fill: currentColor; stroke: none; }
  .dock-heart { position: relative; }
  .dock-count {
    position: absolute;
    top: -2px;
    left: calc(100% - 5px);
    min-width: 14px;
    padding: 2px 3px;
    border-radius: 999px;
    background: var(--blue);
    color: white;
    font-size: .58rem;
    text-align: center;
  }
  .catalog-favorites { display: none; }
  .favorites-dialog {
    --favorites-entry-offset: 24px;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 20px 20px 0 0;
  }
  .favorites-inner { padding-bottom: calc(19px + env(safe-area-inset-bottom, 0px)); }
  .hero { margin-top: 16px; }
  .hero-content { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .hero h1 {
    font-size: clamp(1.4rem, 8.5vw, 3.9rem);
    font-size: clamp(1.4rem, 9.4cqi, 3.9rem);
  }
  .hero-description { margin-inline: auto; margin-bottom: 14px; }
  .hero-links { justify-content: center; }
  .hero-photo img { aspect-ratio: 1.55; }
  .section-heading, .faq { grid-template-columns: 1fr; gap: 15px; }
  .section-heading > p { justify-self: start; max-width: 41ch; }
  .catalog-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-fields .catalog-search, .catalog-fields .select-field:last-child { grid-column: 1 / -1; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { gap: 24px; }
  .steps {
    --step-gap: 19px;
    --step-icon-size: 44px;
    --step-curve: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 100' preserveAspectRatio='none'%3E%3Cpath d='M6 0C6 16 2 23 2 37S10 57 10 71 6 88 6 100' fill='none' stroke='black' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    grid-template-columns: 1fr;
  }
  .steps li { display: grid; grid-template-columns: var(--step-icon-size) 1fr; align-items: start; gap: 13px; text-align: start; }
  .steps li:not(:last-child)::after {
    top: calc(var(--step-icon-size) + 5px);
    bottom: calc(5px - var(--step-gap));
    left: calc(var(--step-icon-size) / 2 - 6px);
    width: 12px;
    height: auto;
  }
  .step-icon { margin: 0; border-radius: 12px; }
  .step-icon .icon { width: 22px; height: 22px; }
  .step-copy { min-height: var(--step-icon-size); padding-top: 3px; }
  .steps p { margin: 5px 0 0; }
  .estimate-grid { grid-template-columns: 1fr; }
  .estimate-intro { border-radius: 16px 16px 0 0; }
  .estimate-illustration { max-height: 150px; object-position: center bottom; }
  .estimate-result { flex-direction: column; align-items: stretch; text-align: start; }
  .estimate-price { flex: none; }
  .estimate-download { justify-content: center; }
  .estimate-note { text-align: center; }
  .project-header { column-gap: 12px; }
  .house-page { margin-block: 14px 36px; }
  .house-detail { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .house-copy h1 { font-size: clamp(1.4rem, 7vw, 2.75rem); }
  .house-image { aspect-ratio: 1.55; }
  .house-specs { margin-block: 12px 16px; }
}

@media (max-width: 390px) {
  .hero-links .button-primary {
    gap: 10px;
    padding-inline: clamp(8px, 3vw, 12px);
    font-size: clamp(.65rem, 3.85vw, .94rem);
  }
  .hero-links .button-primary .icon { width: 16px; height: 16px; }
}

@media (max-width: 360px) {
  .site-header .brand { gap: 5px; font-size: clamp(1.07rem, 5.3vw, 1.35rem); }
  .site-header .brand img { width: clamp(22px, 8vw, 28px); height: auto; }
  .footer-contacts { column-gap: 5px; }
  .footer-phone { font-size: .8rem; }
}

@media (max-width: 310px) {
  .site-header .header-inner { --side: 12px; }
}

@media (max-width: 517px) {
  .project-grid { grid-template-columns: 1fr; }
  .estimate-form { grid-template-columns: 1fr; gap: 12px; }
  .estimate-result output { font-size: clamp(1.12rem, 5.6vw, 1.55rem); }
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion: 0ms; }
  html { scroll-behavior: auto; }
}
