* {
  box-sizing: border-box;
}

:root {
  --primary: #2a6b4e;
  --primary-light: #3d8b6a;
  --primary-dark: #173d30;
  --accent: #d4a843;
  --accent-light: #e8c86a;
  --cream: #f8f6f1;
  --surface: #ffffff;
  --surface-soft: #eef3ef;
  --ink: #171923;
  --muted: #65707c;
  --line: #e2e7e1;
  --sky: #d8e6ec;
  --radius: 8px;
  --shadow: 0 16px 48px rgba(23, 33, 28, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--cream) 0%, #ffffff 58%, var(--sky) 100%);
  color: var(--ink);
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 20;
  pointer-events: none;
}

.header-inner {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(20, 31, 25, 0.12);
  pointer-events: auto;
}

.brand,
.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
  font-weight: 800;
}

.brand {
  gap: 10px;
  color: var(--primary-dark);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
}

.header-phone {
  padding: 0 14px;
  border-radius: 999px;
  background: var(--primary-dark);
  color: #fff;
  white-space: nowrap;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 108px 0 44px;
  overflow: hidden;
  background: #17211c;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(14, 22, 18, 0.55) 0%, rgba(18, 29, 23, 0.30) 48%, rgba(18, 29, 23, 0.08) 100%),
    url("assets/hero-bg.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(0deg, rgba(248, 246, 241, 0.96), rgba(248, 246, 241, 0));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.68fr);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(42, 107, 78, 0.88);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: 55px;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--accent-light);
}

.hero-offer {
  margin: 0 0 18px;
  font-size: clamp(21px, 3vw, 34px);
  font-weight: 800;
}

.hero-offer strong {
  display: inline-flex;
  margin: 0 6px;
  padding: 1px 12px 3px;
  border-radius: var(--radius);
  background: rgba(212, 168, 67, 0.25);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-subtitle {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.microcopy {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 700;
}

.hero-panel {
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.panel-price {
  display: grid;
  gap: 6px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-price span {
  color: var(--muted);
  font-weight: 700;
}

.panel-price strong {
  color: var(--primary-dark);
  font-size: 34px;
  line-height: 1;
}

.feature-list {
  display: grid;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #243029;
  font-weight: 700;
}

.feature-item span {
  font-size: 21px;
}

.quiz-screen {
  min-height: 100svh;
  padding: 112px 0 56px;
}

.quiz-shell {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
}

.quiz-shell.wide {
  width: min(1120px, calc(100% - 32px));
}

.progress-block {
  margin-bottom: 26px;
}

.progress-line {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(42, 107, 78, 0.12);
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.progress-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.quiz-heading {
  margin-bottom: 24px;
}

.quiz-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.04;
  letter-spacing: 0;
}

.quiz-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

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

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

.choice-card {
  min-height: 190px;
  padding: 20px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(23, 33, 28, 0.08);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.choice-card:hover,
.choice-card:focus-visible {
  outline: none;
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.choice-card.is-selected {
  border-color: var(--primary);
  background: #f2f8f4;
  box-shadow: 0 0 0 1px var(--primary), 0 18px 44px rgba(42, 107, 78, 0.16);
}

.choice-card strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 20px;
}

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

.choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-soft);
  font-size: 25px;
}

.choice-card.compact {
  min-height: 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 16px 18px;
}

.choice-card.compact strong {
  margin: 0 0 4px;
}

.choice-card.compact > span:not(.choice-icon) {
  grid-column: 2;
}

.choice-price {
  grid-column: 2;
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(212, 168, 67, 0.16);
  color: #8a5c0a;
  font-style: normal;
  font-size: 14px;
  font-weight: 900;
}

.group-title {
  margin: 30px 0 14px;
  font-size: 20px;
}

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

.house-card {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(23, 33, 28, 0.1);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.house-card:hover,
.house-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  border-color: rgba(61, 139, 106, 0.6);
}

.house-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 18px 48px rgba(42, 107, 78, 0.18);
}

.house-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.badge-green {
  background: var(--primary);
}

.badge-gold {
  background: #c88721;
}

.gallery {
  position: relative;
  background: #d9ded8;
}

.gallery-image,
.gallery-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  background: #edf0ec;
}

.gallery-video {
  border: 0;
  cursor: default;
}

.gallery-frame {
  min-height: 0;
}

.gallery-image.is-plan {
  object-fit: contain;
  padding: 12px;
  background: #fff;
}

.gallery-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.gallery.is-video .gallery-controls {
  top: 10px;
  bottom: auto;
}

.gallery-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.gallery-btn:hover,
.gallery-btn:focus-visible {
  outline: none;
  background: #fff;
  transform: scale(1.05);
}

.gallery-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 12px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
}

.gallery-dot.is-active {
  width: 20px;
  background: #fff;
}

.house-body {
  padding: 18px;
}

.house-body h4 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 22px;
}

.house-body h4 span {
  color: var(--primary);
  font-size: 14px;
}

.spec-list,
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.spec-list span,
.quick-tags span {
  border-radius: 999px;
  background: var(--surface-soft);
  color: #314339;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
}

.house-body ul {
  min-height: 94px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.house-body li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.house-body li + li {
  margin-top: 5px;
}

.house-body li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

.house-price {
  color: var(--primary-dark);
  font-size: 25px;
  font-weight: 900;
}

.house-price small {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.mortgage {
  display: inline-flex;
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: var(--radius);
  background: rgba(212, 168, 67, 0.14);
  color: #9a6b12;
  font-size: 14px;
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-field label,
.form-field legend {
  color: #26362d;
  font-size: 14px;
  font-weight: 800;
}

.form-field input[type="text"],
.form-field input[type="tel"] {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(42, 107, 78, 0.12);
}

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

.radio-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card:has(input:checked) {
  border-color: var(--primary);
  background: #f2f8f4;
}

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.agree-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -160%;
  width: 70%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
  animation: shimmer 3.6s ease-in-out infinite;
}

.btn:hover:not(:disabled),
.btn:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(42, 107, 78, 0.24);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-light);
}

.btn-accent {
  background: var(--accent);
  color: #172118;
  box-shadow: 0 16px 34px rgba(212, 168, 67, 0.32);
}

.btn-accent:hover:not(:disabled) {
  background: var(--accent-light);
}

.btn-ghost {
  border: 2px solid rgba(42, 107, 78, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-dark);
}

.btn-lg {
  min-height: 58px;
  padding-inline: 30px;
  font-size: 18px;
}

@keyframes shimmer {
  0%, 72% {
    left: -160%;
  }
  88%, 100% {
    left: 130%;
  }
}

.thanks-screen {
  min-height: 100svh;
  padding: 112px 0 56px;
  background:
    linear-gradient(100deg, rgba(248, 246, 241, 0.92), rgba(255, 255, 255, 0.92)),
    url("assets/mayakovsky-full.jpg") center / cover no-repeat;
}

.thanks-inner {
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.thanks-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 44px;
  font-weight: 900;
}

.thanks-inner h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 7vw, 70px);
  line-height: 1;
}

.thanks-inner p {
  margin: 0 auto 22px;
  max-width: 580px;
  color: var(--muted);
  font-size: 18px;
}

.thanks-contact {
  margin: 0 auto 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 33, 28, 0.08);
  font-weight: 800;
}

.thanks-contact a {
  color: var(--primary);
  text-decoration: none;
}

.messenger-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.messenger-row span {
  width: 100%;
  color: var(--muted);
  font-weight: 700;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.max-btn {
  background: #111827;
}

.telegram-btn {
  background: #0088cc;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 560px;
  }

  .plot-grid,
  .house-grid {
    grid-template-columns: 1fr;
  }

  .house-body ul {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 8px;
  }

  .header-inner {
    width: calc(100% - 16px);
    padding: 8px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-phone {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 14px;
  }

  .hero,
  .quiz-screen,
  .thanks-screen {
    padding-top: 86px;
  }

  .hero {
    align-items: end;
  }

  .hero-inner,
  .quiz-shell,
  .quiz-shell.wide,
  .thanks-inner {
    width: calc(100% - 24px);
  }

  .hero h1 {
    font-size: 55px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-actions,
  .quiz-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .feature-list,
  .radio-row {
    grid-template-columns: 1fr;
  }

  .choice-card.compact {
    grid-template-columns: 44px 1fr;
  }

  .choice-icon {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .gallery-image,
  .gallery-video {
    aspect-ratio: 4 / 3;
  }

  .house-price {
    font-size: 22px;
  }
}
