:root {
  --bg: #f7f5ef;
  --paper: #fffdfa;
  --paper-strong: #ffffff;
  --ink: #1d2520;
  --muted: #65726b;
  --line: #d9d3c7;
  --forest: #2f5d46;
  --forest-dark: #183a2a;
  --cedar: #a96f3c;
  --cedar-dark: #7b4a23;
  --sage: #dce5d8;
  --shadow: 0 18px 50px rgba(32, 39, 33, 0.12);
  --radius: 8px;
  --container: min(1180px, calc(100vw - 40px));
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(255, 253, 250, 0.94);
  border-bottom: 1px solid rgba(217, 211, 199, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: var(--radius);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  justify-self: center;
  display: flex;
  gap: 22px;
  color: #33443b;
  font-size: 14px;
}

.main-nav a {
  padding: 8px 0;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--forest);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.phone {
  font-weight: 800;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.menu-toggle:focus-visible,
.modal-close:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(47, 93, 70, 0.3);
  outline-offset: 3px;
}

.btn-primary {
  color: #fff;
  background: var(--forest);
  box-shadow: 0 12px 26px rgba(47, 93, 70, 0.24);
}

.btn-primary:hover {
  background: var(--forest-dark);
}

.btn-outline {
  color: var(--forest);
  background: transparent;
  border-color: rgba(47, 93, 70, 0.32);
}

.btn-light {
  color: var(--forest-dark);
  background: rgba(255, 255, 255, 0.9);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 0;
}

.section-dark {
  color: #fff;
  background: var(--forest-dark);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 30, 23, 0.84) 0%, rgba(15, 30, 23, 0.54) 39%, rgba(15, 30, 23, 0.08) 77%),
    linear-gradient(0deg, rgba(15, 30, 23, 0.68), transparent 42%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(169, 111, 60, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.muted {
  color: var(--cedar-dark);
  background: rgba(169, 111, 60, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-lead {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 900px;
  margin: 18px 0 24px;
}

.hero-points span {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip-grid div {
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}

.strip-grid div:last-child {
  border-right: 1px solid var(--line);
}

.strip-grid strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.strip-grid span {
  color: var(--muted);
  font-size: 14px;
}

section {
  padding: 96px 0;
}

section.hero {
  padding: 0;
}

.section-tint {
  background: #ece8dd;
}

.quiz-layout,
.catalog-layout,
.founder-layout,
.contacts-layout,
.responsibility-layout,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.section-copy {
  position: sticky;
  top: 112px;
}

.section-copy p,
.section-head p,
.founder-copy p,
.contacts-section p {
  color: var(--muted);
  font-size: 18px;
}

.quiz-card,
.lead-panel,
.modal-box {
  padding: 28px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quiz-progress {
  height: 8px;
  margin-bottom: 26px;
  overflow: hidden;
  background: #ebe5da;
  border-radius: 999px;
}

.quiz-progress span {
  display: block;
  width: 16.66%;
  height: 100%;
  background: var(--forest);
  transition: width 0.22s ease;
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: block;
}

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

.option-grid label,
.messengers label {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 13px;
  background: #f8f5ee;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.option-grid label:has(input:checked),
.messengers label:has(input:checked) {
  border-color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--forest);
}

.text-input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.messengers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.quiz-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.quiz-submit {
  display: none;
}

.section-head {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head.align-left {
  margin-left: 0;
  text-align: left;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}

.photo-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sage);
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-grid .wide {
  grid-column: span 2;
  grid-row: span 2;
}

.photo-grid .tall {
  grid-row: span 2;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.offer-card,
.object-card,
.project-card,
.review-grid article,
.production-grid article {
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(32, 39, 33, 0.08);
}

.card-body {
  padding: 24px;
}

.house-render,
.object-media,
.project-render,
.review-media {
  min-height: 230px;
  background:
    linear-gradient(150deg, rgba(47, 93, 70, 0.14), rgba(169, 111, 60, 0.12)),
    url("assets/hero-house.png") center/cover;
}

.render-b,
.review-media.alt {
  background-position: 70% center;
}

.price {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.price s {
  color: var(--muted);
}

.price strong {
  color: var(--forest);
  font-size: 26px;
}

ul {
  margin: 0;
  padding-left: 19px;
}

li + li {
  margin-top: 8px;
}

.object-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.object-card h3,
.project-card h3 {
  font-size: 20px;
}

.object-specs,
.project-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0 20px;
}

.object-specs span,
.project-specs span {
  padding: 9px 10px;
  color: #3f4d45;
  background: #f4f0e8;
  border-radius: var(--radius);
  font-size: 13px;
}

.project-render {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  background:
    linear-gradient(180deg, #e7eee2 0 58%, #d7c5a8 58% 100%);
}

.project-render::before {
  content: "";
  width: 68%;
  height: 44%;
  clip-path: polygon(0 42%, 50% 0, 100% 42%, 100% 100%, 0 100%);
  background:
    linear-gradient(135deg, #2d3732 0 28%, transparent 28%),
    linear-gradient(90deg, #f8f8f3 0 55%, #b9824e 55% 72%, #f8f8f3 72%);
  border-bottom: 12px solid #5a3821;
  box-shadow: 0 18px 22px rgba(29, 37, 32, 0.16);
}

.catalog-form {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(24, 58, 42, 0.94), rgba(24, 58, 42, 0.78)),
    url("assets/hero-house.png") center/cover;
}

.catalog-form .lead-panel {
  box-shadow: none;
}

.catalog-form h2 {
  color: #fff;
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 12px 0 12px 34px;
  background: linear-gradient(var(--cedar), var(--cedar)) 0 22px / 18px 3px no-repeat;
  color: rgba(255, 255, 255, 0.88);
}

.portrait-card {
  display: grid;
  min-height: 430px;
  align-content: end;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(24, 58, 42, 0.05), rgba(24, 58, 42, 0.82)),
    radial-gradient(circle at 60% 34%, #d3b18c 0 15%, transparent 15.5%),
    linear-gradient(135deg, #d8c5a9, #70856f);
  border-radius: var(--radius);
}

.portrait-initials {
  display: grid;
  width: 110px;
  height: 110px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  font-size: 34px;
  font-weight: 900;
}

.production-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.production-grid article,
.review-grid article {
  padding: 24px;
}

.icon-box {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: var(--radius);
  font-weight: 900;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-timeline div {
  padding: 20px;
  background: var(--paper);
}

.process-timeline strong {
  display: block;
  color: var(--cedar);
  font-size: 30px;
}

.review-media {
  min-height: 170px;
  margin: -24px -24px 22px;
}

.location {
  color: var(--cedar-dark);
  font-weight: 800;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.responsibility-section {
  background:
    linear-gradient(90deg, rgba(24, 58, 42, 0.98), rgba(24, 58, 42, 0.86)),
    url("assets/hero-house.png") center/cover;
}

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

.responsibility-grid article {
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

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

.responsibility-grid span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.contacts-list {
  display: grid;
  gap: 16px;
  margin: 26px 0 0;
}

.contacts-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
}

.map-panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 28px;
  background: #dce5d8;
  border-radius: var(--radius);
}

.map-lines {
  position: absolute;
  inset: 0;
  opacity: 0.75;
  background:
    linear-gradient(35deg, transparent 0 42%, rgba(47, 93, 70, 0.32) 42% 44%, transparent 44%),
    linear-gradient(125deg, transparent 0 38%, rgba(169, 111, 60, 0.35) 38% 40%, transparent 40%),
    radial-gradient(circle at 58% 48%, var(--forest) 0 8px, transparent 9px);
}

.map-panel .lead-panel {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin-left: auto;
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #151c18;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  color: #fff;
  margin-bottom: 18px;
}

.site-footer nav {
  display: grid;
  gap: 10px;
}

.mobile-call {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  display: none;
  padding: 14px 20px;
  color: #fff;
  background: var(--forest);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.modal {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.modal::backdrop {
  background: rgba(14, 22, 18, 0.66);
}

.modal-box {
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  color: #fff;
  background: var(--forest-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .site-header.is-open .main-nav,
  .site-header.is-open .header-actions {
    grid-column: 1 / -1;
    display: grid;
    justify-self: stretch;
  }

  .site-header.is-open .main-nav {
    gap: 4px;
    padding-top: 12px;
  }

  .site-header.is-open .header-actions {
    align-items: stretch;
  }

  .hero {
    min-height: 680px;
  }

  .strip-grid,
  .object-grid,
  .project-grid,
  .production-grid,
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quiz-layout,
  .catalog-layout,
  .founder-layout,
  .contacts-layout,
  .responsibility-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .section-copy {
    position: static;
  }

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

  .offer-grid,
  .process-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 28px, 1180px);
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  section {
    padding: 68px 0;
  }

  .hero {
    min-height: 730px;
  }

  .hero-inner {
    padding: 50px 0 40px;
  }

  h1 {
    font-size: 33px;
    line-height: 1.02;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-points {
    gap: 8px;
    margin: 16px 0 22px;
  }

  .hero-points span {
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .strip-grid,
  .object-grid,
  .project-grid,
  .production-grid,
  .review-grid,
  .option-grid,
  .messengers,
  .footer-grid,
  .responsibility-grid {
    grid-template-columns: 1fr;
  }

  .strip-grid div,
  .strip-grid div:last-child {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 210px;
  }

  .photo-grid .wide,
  .photo-grid .tall {
    grid-column: auto;
    grid-row: auto;
  }

  .quiz-controls {
    grid-template-columns: 1fr;
  }

  .contacts-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .map-panel {
    padding: 16px;
  }

  .mobile-call {
    display: inline-flex;
  }
}

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