@font-face {
  font-family: "Onest";
  src: url("../assets/fonts/onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080806;
  --surface: #11110f;
  --surface-raised: #191815;
  --line: rgba(255, 247, 235, 0.16);
  --line-strong: rgba(225, 182, 99, 0.7);
  --text: #fff8ed;
  --muted: #bdb5a8;
  --accent: #e1b663;
  --accent-soft: #f2cf83;
  --ink: #17130c;
  --error: #ff9e86;
  --success: #b8e3a4;
  --radius: 6px;
  --page-pad: clamp(20px, 3.2vw, 52px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Onest", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.metrika-pixel {
  position: absolute;
  left: -9999px;
}

.calculator {
  min-height: 100vh;
  min-height: 100dvh;
}

.flow {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 40px var(--page-pad);
  background: var(--bg);
}

.flow__topbar {
  width: min(100%, 680px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 24px;
}

.flow.is-welcome .flow__topbar {
  width: min(100%, 1060px);
}

.flow__brand {
  width: max-content;
  display: block;
}

.flow__brand img {
  display: block;
  width: 92px;
  height: auto;
  transition: opacity 160ms ease;
}

.flow__brand:hover img {
  opacity: 0.76;
}

.flow__site-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  transition: color 160ms ease;
}

.flow__site-link span {
  color: var(--accent-soft);
  font-size: 18px;
}

.flow__site-link:hover {
  color: var(--text);
}

.progress {
  width: min(100%, 680px);
  margin: 0 auto;
}

.progress__meta {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.progress__track {
  height: 3px;
  margin-top: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.progress__track span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transition: width 220ms ease;
}

.back-button {
  width: max-content;
  min-height: 44px;
  margin: 18px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

.back-button span {
  margin-right: 8px;
}

.back-button:hover {
  color: var(--text);
}

.steps {
  width: min(100%, 680px);
  margin: auto;
  padding-top: 36px;
}

.steps.is-welcome {
  width: min(100%, 1060px);
  padding-top: 14px;
}

.step {
  animation: step-in 220ms ease-out both;
}

.step--welcome {
  min-width: 0;
  animation: none;
  opacity: 1;
  transform: none;
}

.welcome-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: stretch;
}

.welcome-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 0;
}

.welcome-copy__kicker {
  margin: 0 0 13px;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.welcome-copy h1 {
  max-width: 650px;
  font-size: clamp(42px, 4.8vw, 68px);
}

.welcome-copy__lead {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.welcome-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.welcome-proof > div {
  min-width: 0;
  padding: 16px 18px 16px 0;
}

.welcome-proof > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.welcome-proof strong,
.welcome-proof span {
  display: block;
}

.welcome-proof strong {
  color: var(--text);
  font-size: 25px;
  line-height: 1.1;
}

.welcome-proof span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.welcome-copy__projects {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.welcome-question {
  margin-top: 24px;
}

.welcome-question strong,
.welcome-question span {
  display: block;
}

.welcome-question strong {
  font-size: 19px;
  line-height: 1.25;
}

.welcome-question span {
  max-width: 560px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.welcome-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 15px;
}

.welcome-action {
  min-width: 0;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.welcome-action:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  transform: translateY(-1px);
}

.welcome-action strong,
.welcome-action span {
  display: block;
}

.welcome-action strong {
  font-size: 15px;
  line-height: 1.25;
}

.welcome-action span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.welcome-action--primary {
  min-height: 82px;
  grid-column: 1 / -1;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.welcome-action--primary:hover {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
}

.welcome-action--primary strong {
  font-size: 17px;
}

.welcome-action--primary span {
  color: rgba(23, 19, 12, 0.68);
}

.welcome-visual {
  position: relative;
  min-height: 610px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.welcome-visual::after {
  content: "";
  position: absolute;
  inset: 52% 0 0;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 4, 0.88));
  pointer-events: none;
}

.welcome-visual picture,
.welcome-visual img {
  width: 100%;
  height: 100%;
  display: block;
}

.welcome-visual img {
  object-fit: cover;
  object-position: 35% center;
}

.welcome-visual figcaption {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 20px;
  left: 22px;
}

.welcome-visual figcaption strong,
.welcome-visual figcaption span {
  display: block;
}

.welcome-visual figcaption strong {
  color: #fff8ed;
  font-size: 18px;
  line-height: 1.2;
}

.welcome-visual figcaption span {
  margin-top: 3px;
  color: rgba(255, 248, 237, 0.72);
  font-size: 12px;
}

.step--intro {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  animation: none;
  opacity: 1;
  transform: none;
}

.intro-copy {
  width: 100%;
  min-width: 0;
  max-width: 650px;
}

.intro-copy__kicker {
  margin: 0 0 12px;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.intro-copy > p:last-child {
  max-width: 580px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.intro-showcase {
  width: 100%;
  min-width: 0;
  margin-top: 26px;
}

.intro-showcase__bar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.intro-showcase__bar > strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.intro-showcase__controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.intro-showcase__controls output {
  min-width: 40px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.intro-showcase__controls button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.intro-showcase__controls button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 17px;
}

.intro-showcase__controls button:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.intro-showcase__controls button:disabled {
  cursor: default;
  opacity: 0.35;
}

.intro-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.intro-carousel::-webkit-scrollbar {
  display: none;
}

.intro-carousel__slide {
  position: relative;
  min-width: 0;
  height: clamp(280px, 29vw, 340px);
  flex: 0 0 calc((100% - 16px) / 3);
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: #fff8ed;
  cursor: zoom-in;
  text-decoration: none;
  text-align: left;
}

.intro-carousel__slide::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(4, 4, 3, 0.8));
}

.intro-carousel__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
}

.intro-carousel__slide:hover img {
  transform: scale(1.025);
}

.intro-carousel__slide span {
  position: absolute;
  z-index: 1;
}

.intro-carousel__slide span {
  right: 12px;
  bottom: 11px;
  left: 12px;
  font-size: 12px;
  font-weight: 720;
}

.pswp {
  --pswp-bg: #050504;
  --pswp-placeholder-bg: #171713;
  font-family: "Onest", Arial, sans-serif;
}

.pswp__button {
  min-width: 44px;
  min-height: 44px;
}

.pswp__counter {
  color: #fff8ed;
  font-size: 13px;
  font-weight: 650;
  text-shadow: none;
  opacity: 0.9;
}

.pswp__custom-caption {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  max-width: min(80vw, 520px);
  padding: 9px 14px;
  transform: translateX(50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 8, 6, 0.72);
  color: #fff8ed;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.intro-start {
  margin-top: 14px;
}

.intro-trust {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step__head {
  max-width: 620px;
  margin-bottom: 30px;
}

.step__head--phone {
  margin-bottom: 22px;
}

h1,
h2 {
  margin: 0;
  font-size: clamp(34px, 3.2vw, 58px);
  line-height: 1.03;
  font-weight: 760;
}

.step__head p {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.5;
}

.choice-grid {
  display: grid;
  gap: 14px;
}

.choice-grid--apartments {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-choice,
.result-choice {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.image-choice:hover,
.result-choice:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  transform: translateY(-2px);
}

.image-choice:active,
.result-choice:active,
.area-grid button:active {
  transform: scale(0.985);
}

.image-choice.is-selected,
.result-choice.is-selected,
.area-grid button.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.image-choice__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #292720;
}

.image-choice img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.image-choice__body {
  display: grid;
  gap: 5px;
  padding: 18px;
}

.image-choice__body strong {
  font-size: clamp(20px, 1.8vw, 26px);
}

.image-choice__body small,
.result-choice small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.area-grid button {
  min-height: 106px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.area-grid button:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.area-grid strong {
  font-size: 15px;
}

.area-grid span {
  color: var(--accent-soft);
  font-size: 20px;
  font-weight: 760;
}

.area-form {
  margin-top: 20px;
}

.area-form > label,
.lead-form > label:first-child {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.area-form__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 62px;
}

.area-form input,
.lead-form > input[type="tel"] {
  min-width: 0;
  min-height: 60px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  outline: 0;
}

.area-form input {
  width: 100%;
  padding: 0 0 0 18px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--surface);
}

.area-form__control > span {
  min-height: 60px;
  display: flex;
  align-items: center;
  padding: 0 18px 0 10px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  color: var(--muted);
  font-weight: 650;
}

.area-form__control:focus-within input,
.area-form__control:focus-within > span {
  border-color: var(--accent);
}

.area-form__control button {
  align-self: stretch;
  min-width: 116px;
  margin-left: 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
  font-weight: 760;
}

.field-error,
.form-status {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--error);
  font-size: 14px;
  line-height: 1.4;
}

.field-error:empty,
.form-status:empty {
  display: none;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.result-choice {
  height: 152px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
}

.result-choice > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 58%;
}

.result-choice > span:not(.result-choice__label) {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px 16px;
}

.result-choice strong {
  font-size: clamp(18px, 1.55vw, 24px);
}

.result-choice__label {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  padding: 5px 8px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.selection-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.selection-summary span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.closing-offer {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  grid-template-rows: 166px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.closing-offer__visual {
  position: relative;
  min-height: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.closing-offer__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 58%;
}

.closing-offer__visual::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(4, 4, 3, 0.8));
}

.closing-offer__visual figcaption {
  position: absolute;
  z-index: 1;
  right: 10px;
  bottom: 9px;
  left: 10px;
  color: #fff8ed;
  font-size: 11px;
  font-weight: 720;
}

.closing-offer__body {
  min-width: 0;
  padding: 16px;
}

.closing-offer__body > strong {
  display: block;
  color: var(--accent-soft);
  font-size: 16px;
}

.closing-offer__body ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.closing-offer__body li {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.closing-offer__body li span {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent-soft);
  font-size: 9px;
  font-weight: 800;
}

.lead-form > input[type="tel"] {
  width: 100%;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 20px;
}

.lead-form > input[type="tel"]:focus {
  border-color: var(--accent);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  accent-color: var(--accent);
}

.consent a {
  color: var(--accent-soft);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.submit-button {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.submit-button:hover {
  background: var(--accent-soft);
}

.submit-button:active {
  transform: scale(0.99);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.submit-button__arrow {
  font-size: 25px;
  line-height: 1;
}

.trust-line {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.trust-line strong,
.trust-line span {
  display: block;
}

.trust-line strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
}

.trust-line span {
  margin-top: 5px;
}

.result-screen__mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 25px;
  font-weight: 900;
}

.estimate-card {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.estimate-card > span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.estimate-card > strong {
  display: block;
  margin-top: 5px;
  color: var(--accent-soft);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.estimate-card > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.payment-grid > div {
  min-width: 0;
  padding: 13px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.payment-grid span,
.payment-grid strong {
  display: block;
}

.payment-grid span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.payment-grid strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.estimate-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.result-actions {
  margin-top: 20px;
}

.call-action {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 760;
  text-decoration: none;
}

.call-action {
  background: var(--accent);
  color: var(--ink);
}

@media (max-width: 1120px) {
  .result-choice {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .flow {
    min-height: 100svh;
    padding: 24px 18px calc(28px + env(safe-area-inset-bottom));
  }

  .flow__topbar {
    margin-bottom: 20px;
  }

  .flow__brand img {
    width: 80px;
  }

  .steps {
    width: 100%;
    margin: 0;
    padding-top: 26px;
  }

  .steps.is-welcome {
    padding-top: 10px;
  }

  .welcome-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
    gap: 24px;
  }

  .welcome-copy h1 {
    font-size: clamp(38px, 5.4vw, 48px);
  }

  .welcome-copy__lead {
    margin-top: 15px;
    font-size: 15px;
  }

  .welcome-proof {
    margin-top: 19px;
  }

  .welcome-question {
    margin-top: 19px;
  }

  .welcome-visual {
    min-height: 560px;
  }

  .back-button {
    margin: 8px 0 -8px;
  }

  h1,
  h2 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .step__head {
    margin-bottom: 22px;
  }

  .step__head p {
    margin-top: 10px;
    font-size: 16px;
  }

  .intro-copy > p:last-child {
    margin-top: 12px;
    font-size: 16px;
  }

  .intro-showcase {
    margin-top: 20px;
  }

  .intro-carousel__slide {
    height: clamp(260px, 42vw, 310px);
  }

  .image-choice__media {
    aspect-ratio: 4 / 3;
  }

  .result-choice {
    height: 132px;
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .result-choice > img {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .welcome-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .welcome-visual {
    min-height: 0;
    order: -1;
    aspect-ratio: 4 / 3;
  }

  .welcome-visual img {
    object-position: center 28%;
  }

  .welcome-copy {
    padding: 0;
  }
}

@media (max-width: 560px) {
  html,
  body {
    min-width: 0;
  }

  .flow {
    padding: 16px 18px calc(20px + env(safe-area-inset-bottom));
  }

  .flow__topbar {
    margin-bottom: 10px;
  }

  .flow__site-link {
    font-size: 13px;
  }

  .steps {
    padding-top: 18px;
  }

  .steps:has(.step--intro:not([hidden])) {
    padding-top: 12px;
  }

  .steps.is-welcome {
    padding-top: 2px;
  }

  .welcome-layout {
    gap: 14px;
  }

  .welcome-visual {
    height: clamp(210px, 60vw, 240px);
    aspect-ratio: auto;
  }

  .welcome-visual img {
    object-position: center top;
  }

  .welcome-visual figcaption {
    right: 14px;
    bottom: 12px;
    left: 14px;
  }

  .welcome-visual figcaption strong {
    font-size: 15px;
  }

  .welcome-copy__kicker {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .welcome-copy h1 {
    font-size: clamp(32px, 9vw, 40px);
  }

  .welcome-copy__lead {
    margin-top: 11px;
    font-size: 14px;
    line-height: 1.45;
  }

  .welcome-proof {
    margin-top: 15px;
  }

  .welcome-proof > div {
    padding: 12px 12px 12px 0;
  }

  .welcome-proof > div + div {
    padding-left: 13px;
  }

  .welcome-proof strong {
    font-size: 21px;
  }

  .welcome-proof span,
  .welcome-copy__projects {
    font-size: 10px;
  }

  .welcome-question {
    margin-top: 16px;
  }

  .welcome-question strong {
    font-size: 17px;
  }

  .welcome-question span {
    font-size: 13px;
  }

  .welcome-actions {
    gap: 8px;
    margin-top: 12px;
  }

  .welcome-action {
    min-height: 72px;
    padding: 12px;
  }

  .welcome-action strong {
    font-size: 13px;
  }

  .welcome-action span {
    font-size: 10px;
  }

  .welcome-action--primary {
    min-height: 74px;
  }

  .welcome-action--primary strong {
    font-size: 16px;
  }

  .intro-copy__kicker {
    margin-bottom: 9px;
    font-size: 11px;
  }

  .intro-copy > p:last-child {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
  }

  .intro-showcase {
    margin-top: 16px;
  }

  .intro-showcase__bar {
    min-height: 24px;
    margin-bottom: 7px;
  }

  .intro-showcase__controls button {
    display: none;
  }

  .intro-carousel__slide {
    height: min(38vh, 310px);
    min-height: 250px;
    flex-basis: 84%;
  }

  .pswp__custom-caption {
    bottom: max(16px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 96px);
    padding: 8px 12px;
    font-size: 12px;
  }

  .intro-start {
    min-height: 58px;
    margin-top: 10px;
    font-size: 16px;
  }

  .intro-trust {
    margin-top: 9px;
    font-size: 10px;
  }

  .step__head--phone {
    margin-bottom: 12px;
  }

  .step__head--phone p {
    margin-top: 8px;
  }

  .closing-offer {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: 178px;
  }

  .closing-offer__visual {
    min-height: 0;
  }

  .closing-offer__body {
    padding: 13px 12px;
  }

  .closing-offer__body > strong {
    font-size: 14px;
  }

  .closing-offer__body ul {
    gap: 7px;
    margin-top: 10px;
  }

  .closing-offer__body li {
    gap: 7px;
    font-size: 12px;
  }

  .closing-offer__body li span {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
    font-size: 8px;
  }

  .selection-summary {
    margin-bottom: 12px;
  }

  .consent {
    margin-top: 10px;
    margin-bottom: 12px;
  }

  .submit-button {
    min-height: 58px;
  }

  .trust-line {
    margin-top: 12px;
  }

  .choice-grid--apartments,
  .result-grid {
    gap: 9px;
  }

  .image-choice__body {
    padding: 13px;
  }

  .image-choice__body strong {
    font-size: 18px;
  }

  .image-choice__body small {
    font-size: 12px;
  }

  .area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area-grid button {
    min-height: 78px;
  }

  .area-form__control {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .area-form__control button {
    grid-column: 1 / -1;
    min-height: 52px;
    margin: 10px 0 0;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-choice {
    height: 108px;
    grid-template-columns: 106px minmax(0, 1fr);
  }

  .result-choice > img {
    min-height: 0;
  }

  .result-choice > span:not(.result-choice__label) {
    padding: 13px 14px;
  }

  .result-choice__label {
    top: 6px;
    left: 6px;
    font-size: 9px;
  }

  .payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-height: 900px) and (min-width: 861px) {
  .flow {
    padding-top: 20px;
    padding-bottom: 10px;
  }

  .flow__topbar {
    margin-bottom: 12px;
  }

  .back-button {
    min-height: 36px;
    margin-top: 8px;
  }

  .steps {
    padding-top: 14px;
  }

  .steps.is-welcome {
    padding-top: 8px;
  }

  .step__head {
    margin-bottom: 18px;
  }

  .step__head--phone {
    margin-bottom: 12px;
  }

  h1,
  h2 {
    font-size: clamp(34px, 3vw, 48px);
  }

  .welcome-copy {
    padding: 0;
  }

  .welcome-copy h1 {
    font-size: clamp(42px, 4vw, 54px);
  }

  .welcome-copy__lead {
    margin-top: 14px;
    line-height: 1.45;
  }

  .welcome-proof {
    margin-top: 18px;
  }

  .welcome-proof > div {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .welcome-question {
    margin-top: 18px;
  }

  .welcome-actions {
    margin-top: 12px;
  }

  .welcome-action {
    min-height: 64px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .welcome-action--primary {
    min-height: 68px;
  }

  .intro-copy > p:last-child {
    margin-top: 10px;
    font-size: 16px;
  }

  .intro-showcase {
    margin-top: 14px;
  }

  .intro-showcase__bar {
    min-height: 30px;
    margin-bottom: 7px;
  }

  .intro-carousel__slide {
    height: clamp(220px, 31vh, 280px);
  }

  .intro-start {
    min-height: 56px;
    margin-top: 10px;
  }

  .intro-trust {
    margin-top: 8px;
  }

  .closing-offer {
    grid-template-rows: 150px;
  }

  .closing-offer__body {
    padding: 12px 14px;
  }

  .closing-offer__body ul {
    gap: 6px;
    margin-top: 8px;
  }

  .closing-offer__body li {
    font-size: 12px;
  }

  .result-choice {
    height: 128px;
  }

  .result-choice > img {
    min-height: 0;
  }

  .selection-summary {
    margin-bottom: 12px;
  }

  .consent {
    margin-top: 10px;
    margin-bottom: 12px;
  }

  .submit-button {
    min-height: 56px;
  }

  .trust-line {
    margin-top: 12px;
  }
}

@media (max-height: 720px) and (max-width: 560px) {
  .flow {
    padding-top: 12px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .flow__topbar {
    margin-bottom: 8px;
  }

  .progress__meta {
    font-size: 11px;
  }

  .progress__track {
    margin-top: 8px;
  }

  .back-button {
    min-height: 36px;
    margin-top: 6px;
  }

  .steps {
    padding-top: 10px;
  }

  .steps.is-welcome {
    padding-top: 0;
  }

  .welcome-layout {
    gap: 10px;
  }

  .welcome-visual {
    height: clamp(180px, 60vw, 225px);
  }

  .welcome-copy__kicker {
    margin-bottom: 6px;
  }

  .welcome-copy h1 {
    font-size: clamp(29px, 8.5vw, 34px);
  }

  .welcome-copy__lead {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.35;
  }

  .welcome-proof {
    margin-top: 10px;
  }

  .welcome-proof > div {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .welcome-copy__projects,
  .welcome-question span,
  .welcome-action:not(.welcome-action--primary) span {
    display: none;
  }

  .welcome-question {
    margin-top: 10px;
  }

  .welcome-actions {
    margin-top: 8px;
  }

  .welcome-action {
    min-height: 48px;
    padding: 9px 10px;
  }

  .welcome-action--primary {
    min-height: 56px;
  }

  .intro-carousel__slide {
    height: min(30svh, 190px);
    min-height: 170px;
  }

  .intro-copy > p:last-child {
    font-size: 13px;
  }

  .result-choice {
    height: 82px;
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .result-choice > span:not(.result-choice__label) {
    padding: 10px 12px;
  }

  .result-choice strong {
    font-size: 17px;
  }

  .result-choice small {
    font-size: 11px;
  }

  .step__head--phone {
    margin-bottom: 8px;
  }

  .step__head--phone p {
    font-size: 13px;
    line-height: 1.35;
  }

  .closing-offer {
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: 150px;
    margin-bottom: 10px;
  }

  .closing-offer__body {
    padding: 10px;
  }

  .closing-offer__body > strong {
    font-size: 13px;
  }

  .closing-offer__body ul {
    gap: 5px;
    margin-top: 7px;
  }

  .closing-offer__body li {
    gap: 5px;
    font-size: 11px;
    line-height: 1.2;
  }

  .closing-offer__body li span {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    font-size: 7px;
  }

  .selection-summary {
    display: none;
  }

  .lead-form > label:first-child {
    margin-bottom: 6px;
    font-size: 13px;
  }

  .lead-form > input[type="tel"] {
    min-height: 52px;
    font-size: 18px;
  }

  .consent {
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 11px;
    line-height: 1.3;
  }

  .consent input {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .lead-form .submit-button {
    min-height: 54px;
    padding: 0 16px;
    font-size: 15px;
  }

  .trust-line {
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.35;
  }

  .trust-line strong {
    font-size: 11px;
  }

  .result-screen__mark {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    font-size: 20px;
  }

  .result-screen .step__head {
    margin-bottom: 14px;
  }

  .estimate-card {
    padding: 16px;
  }

  .estimate-card > p {
    margin-top: 8px;
  }

  .payment-grid {
    gap: 6px;
    margin-top: 8px;
  }

  .payment-grid > div {
    padding: 9px 8px;
  }

  .estimate-note {
    margin-top: 10px;
  }

  .result-actions {
    margin-top: 12px;
  }
}

@media (max-width: 340px) and (max-height: 620px) {
  .flow {
    padding: 8px 14px calc(12px + env(safe-area-inset-bottom));
  }

  .flow__topbar {
    margin-bottom: 4px;
  }

  .flow__brand img {
    width: 70px;
  }

  .flow__site-link {
    font-size: 11px;
  }

  .welcome-layout {
    gap: 7px;
  }

  .welcome-visual {
    height: 180px;
  }

  .welcome-copy__kicker,
  .welcome-proof span {
    display: none;
  }

  .welcome-copy h1 {
    font-size: 28px;
  }

  .welcome-copy__lead {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
  }

  .welcome-proof {
    margin-top: 7px;
  }

  .welcome-proof > div {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .welcome-proof strong {
    font-size: 19px;
  }

  .welcome-question {
    margin-top: 7px;
  }

  .welcome-question strong {
    font-size: 15px;
  }

  .welcome-actions {
    gap: 6px;
    margin-top: 6px;
  }

  .welcome-action {
    min-height: 42px;
    padding: 7px 8px;
  }

  .welcome-action--primary {
    min-height: 48px;
  }

  .welcome-action strong {
    font-size: 11px;
  }

  .welcome-action--primary strong {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
