:root {
  --bg: #f8f5f1;
  --bg2: #f1ebe4;
  --text: #1f1f1f;
  --muted: #5f5a55;
  --line: #ded6ce;
  --dark: #2b2a28;
  --dark2: #1f1e1c;
  --brick: #b56a4a;
  --white: #fff;
  --radius: 28px;
  --shadow: 0 28px 80px rgba(31, 31, 31, .12);
}
 
* {
  box-sizing: border-box
}
 
html {
  scroll-behavior: smooth
}
 
body {
  margin: 0;
  font-family: Inter, Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  letter-spacing: -.02em
}
 
a {
  color: inherit;
  text-decoration: none
}
 
img {
  max-width: 100%;
  display: block
}
 
.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto
}
 
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 245, 241, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(222, 214, 206, .7)
}
 
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px
}
 
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800
}
 
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center
}
 
.brand-text {
  font-size: 18px
}
 
.brand-logo {
  height: 56px;
  width: auto;
  display: block
}
 
.footer-logo {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 12px
}
 
.menu {
  display: flex;
  gap: 24px;
  margin-left: auto;
  color: var(--muted);
  font-size: 15px
}
 
.menu a:hover {
  color: var(--text)
}
 
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px
}
 
.phone {
  font-weight: 700
}
 
.burger {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px
}
 
.burger span {
  display: block;
  height: 2px;
  background: var(--dark);
  margin: 6px 0
}
 
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 18px;
  border: 1px solid var(--dark);
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  transition: .2s ease;
  box-shadow: 0 14px 30px rgba(31, 31, 31, .14)
}
 
.btn:hover {
  background: var(--dark2);
  transform: translateY(-1px)
}
 
.btn-small {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14px
}
 
.btn-outline {
  background: rgba(0, 0, 0, .12);
  border-color: rgba(255, 255, 255, .9);
  box-shadow: none
}
 
.btn-outline:hover {
  background: rgba(255, 255, 255, .14)
}
 
.btn-light {
  background: transparent;
  color: var(--dark)
}
 
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden
}
 
.hero-bg {
  position: absolute;
  inset: 20px;
  border-radius: 34px;
  background: url('assets/hero-house.jpg') center/cover no-repeat
}
 
.hero-overlay {
  position: absolute;
  inset: 20px;
  border-radius: 34px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .36) 45%, rgba(0, 0, 0, .12) 100%)
}
 
.hero-content {
  position: relative;
  z-index: 2
}
 
.hero-copy {
  max-width: 720px;
  color: #fff;
  padding-top: 40px
}
 
.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 14px
}
 
.hero h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.05;
  margin: 0 0 24px;
  font-weight: 900;
  letter-spacing: -.055em;
  color: #f5f2ea;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .35)
}
 
.lead {
  font-size: 23px;
  line-height: 1.45;
  margin: 0 0 30px;
  max-width: 650px;
  color: #e8e2d6;
  text-shadow: 0 8px 25px rgba(0, 0, 0, .4)
}
 
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}
 
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px
}
 
.hero-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #f5f2ea;
  font-size: 14px
}
 
.section {
  padding: 92px 0
}
 
.muted {
  background: var(--bg2)
}
 
.section-head {
  max-width: 720px;
  margin-bottom: 38px
}
 
.section-head.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto
}
 
.section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brick);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .08em
}
 
.section h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -.045em
}
 
.section-head p,
.section p {
  color: var(--muted);
  font-size: 19px
}
 
.narrow {
  max-width: 920px
}
 
.quiz-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden
}
 
.quiz-top {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 46px
}
 
.quiz-title {
  font-weight: 800
}
 
.quiz-step-text {
  color: var(--muted)
}
 
.progress {
  height: 8px;
  background: #e7e1db
}
 
.progress span {
  display: block;
  height: 100%;
  width: 16.66%;
  background: var(--dark);
  transition: .25s ease
}
 
.quiz-form {
  padding: 48px
}
 
.quiz-step {
  display: none;
  min-height: 330px
}
 
.quiz-step.active {
  display: block
}
 
.quiz-step h3 {
  font-size: 36px;
  line-height: 1.12;
  margin: 0 0 28px;
  letter-spacing: -.04em
}
 
.step-note {
  margin-top: -8px
}
 
.options {
  display: grid;
  gap: 14px
}
 
.grid-options {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}
 
.option {
  position: relative;
  width: 100%;
  min-height: 74px;
  text-align: left;
  padding: 18px 22px 18px 58px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: #f5f3f0;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: .18s ease
}
 
.option:before {
  content: "";
  position: absolute;
  left: 22px;
  top: 25px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #c7bdb3;
  background: #fff
}
 
.option span {
  display: block
}
 
.option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500
}
 
.option:hover,
.option.selected {
  border-color: var(--dark);
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 31, 31, .08)
}
 
.option.selected:before {
  border-color: var(--dark);
  box-shadow: inset 0 0 0 5px #fff;
  background: var(--dark)
}
 
.option-wide {
  grid-column: 1/-1
}
 
.quiz-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 24px
}
 
.btn-nav {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid var(--dark);
  background: #fff;
  font-size: 24px;
  cursor: pointer
}
 
.hidden {
  display: none !important
}
 
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}
 
.lead-form label,
.form-grid label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-weight: 650
}
 
.lead-form input,
.lead-form textarea,
.form-grid input {
  width: 100%;
  border: 1px solid transparent;
  background: #f5f3f0;
  border-radius: 16px;
  min-height: 62px;
  padding: 0 18px;
  font: inherit;
  color: var(--text)
}
 
.lead-form textarea {
  min-height: 110px;
  padding-top: 16px;
  resize: vertical
}
 
.lead-form input:focus,
.lead-form textarea:focus,
.form-grid input:focus {
  outline: 2px solid rgba(43, 42, 40, .2);
  background: #fff
}
 
.checkbox {
  display: flex !important;
  grid-template-columns: auto !important;
  gap: 10px !important;
  align-items: center;
  margin-top: 16px;
  font-size: 14px
}
 
.checkbox input {
  width: auto;
  min-height: auto
}
 
.form-status {
  margin-top: 14px;
  font-weight: 700
}
 
.form-status.success {
  color: #277347
}
 
.form-status.error {
  color: #a42b22
}
 
.cards {
  display: grid;
  gap: 18px
}
 
.cards.six {
  grid-template-columns: repeat(3, 1fr)
}
 
.cards.three {
  grid-template-columns: repeat(3, 1fr)
}
 
.card,
.house-card,
.project-card,
.small-cards>div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 44px rgba(31, 31, 31, .06)
}
 
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 20px
}
 
.card h3,
.house-card h3 {
  margin: 0 0 10px;
  font-size: 24px
}
 
.card p,
.house-card p {
  font-size: 16px;
  margin: 0
}
 
.house-card a,
.project-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--brick);
  font-weight: 800
}
 
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center
}
 
.split.reverse {
  direction: rtl
}
 
.split.reverse>* {
  direction: ltr
}
 
.service-list {
  display: grid;
  gap: 16px
}
 
.service-list div {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 24px
}
 
.service-list b,
.small-cards b {
  display: block;
  font-size: 20px;
  margin-bottom: 6px
}
 
.service-list span,
.small-cards span {
  color: var(--muted)
}
 
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px
}
 
.project-card {
  padding: 0;
  overflow: hidden
}
 
.project-card div {
  padding: 24px
}
 
.project-card h3 {
  margin: 0 0 8px
}
 
.project-card p {
  font-size: 16px;
  margin: 0
}
 
/* ===== Кликабельные изображения проектов ===== */
 
.project-image-btn {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}
 
.project-image-btn img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}
 
.project-image-btn:hover img {
  transform: scale(1.04);
  filter: brightness(1.04);
}
 
/* ===== Лайтбокс для проектов ===== */
 
.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
 
.project-lightbox.is-open {
  display: flex;
}
 
.project-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 14, 0.84);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
 
.project-lightbox-box {
  position: relative;
  z-index: 2;
  width: min(1200px, 94vw);
  max-height: 90vh;
  background: #f8f5f1;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}
 
.project-lightbox-title {
  padding: 4px 54px 14px 6px;
  font-size: 20px;
  font-weight: 800;
  color: #252523;
}
 
.project-lightbox-img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  display: block;
  border-radius: 16px;
  background: #ffffff;
}
 
.project-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #252523;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
 
/* ===== Конец лайтбокса ===== */
 
.included-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px
}
 
.included-panel div {
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800
}
 
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}
 
.timeline div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px
}
 
.timeline b {
  width: 40px;
  height: 40px;
  background: var(--dark);
  color: #fff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px
}
 
.timeline h3 {
  margin: 0 0 8px
}
 
.timeline p {
  font-size: 16px;
  margin: 0
}
 
.small-cards {
  grid-template-columns: repeat(2, 1fr)
}
 
.faq-list {
  display: grid;
  gap: 12px
}
 
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px
}
 
.faq-list summary {
  font-size: 21px;
  font-weight: 850;
  cursor: pointer
}
 
.faq-list p {
  font-size: 17px;
  margin: 12px 0 0
}
 
.final-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  background: var(--dark);
  color: #fff;
  border-radius: 32px;
  padding: 48px;
  box-shadow: var(--shadow)
}
 
.final-card p {
  color: #d7d1c9
}
 
.lead-form {
  display: grid;
  gap: 14px;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  color: var(--text)
}
 
.lead-form .btn {
  width: 100%
}
 
.contact-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px
}
 
.contact-buttons a {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  font-weight: 800
}
 
.footer {
  padding: 44px 0;
  background: #151515;
  color: #fff
}
 
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px
}
 
.footer p,
.footer a {
  color: #d7d1c9
}
 
/* ===== Плавающие кнопки ===== */
 
.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.floating-actions a {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  padding: 0;
}
 
.floating-whatsapp {
  background: transparent;
}
 
.floating-whatsapp img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  display: block;
}
 
.floating-phone {
  background: #252523;
  color: #ffffff;
  font-size: 28px;
}
 
/* ===== Анимация появления ===== */
 
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: .6s ease
}
 
.reveal.visible {
  opacity: 1;
  transform: none
}
 
/* ===== Адаптив 980px ===== */
 
@media (max-width: 980px) {
 
  .menu,
  .header-actions {
    display: none
  }
 
  .burger {
    display: block;
    margin-left: auto
  }
 
  .nav.open .menu {
    display: flex;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow)
  }
 
  .hero {
    min-height: 680px
  }
 
  .brand-logo {
    height: 44px
  }
 
  .hero-bg,
  .hero-overlay {
    inset: 10px;
    border-radius: 24px
  }
 
  .hero h1 {
    font-size: 42px
  }
 
  .lead {
    font-size: 19px
  }
 
  .section {
    padding: 68px 0
  }
 
  .split,
  .final-card {
    grid-template-columns: 1fr
  }
 
  .cards.six,
  .cards.three,
  .project-grid,
  .timeline {
    grid-template-columns: 1fr
  }
 
  .grid-options {
    grid-template-columns: 1fr
  }
 
  .form-grid {
    grid-template-columns: 1fr
  }
 
  .quiz-form {
    padding: 28px
  }
 
  .quiz-top {
    padding: 0 28px
  }
 
  .quiz-step h3 {
    font-size: 30px
  }
 
  .footer-grid {
    grid-template-columns: 1fr
  }
}
 
/* ===== Адаптив 560px ===== */
 
@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1180px)
  }
 
  .hero {
    min-height: 720px
  }
 
  .hero-copy {
    padding-top: 80px
  }
 
  .hero h1 {
    font-size: 34px
  }
 
  .lead {
    font-size: 17px
  }
 
  .btn {
    width: 100%;
    min-height: 56px
  }
 
  .hero-badges {
    display: none
  }
 
  .quiz-step {
    min-height: auto
  }
 
  .quiz-controls {
    justify-content: stretch
  }
 
  .btn-nav {
    flex: 0 0 58px
  }
 
  .quiz-controls .btn,
  .quiz-controls .submit-btn {
    flex: 1
  }
 
  .section h2 {
    font-size: 32px
  }
 
  .final-card {
    padding: 28px
  }
 
  .included-panel,
  .small-cards {
    grid-template-columns: 1fr
  }
}
 
/* ===== Адаптив лайтбокса 640px ===== */
 
@media (max-width: 640px) {
  .project-lightbox {
    padding: 12px;
  }
 
  .project-lightbox-box {
    border-radius: 18px;
    padding: 12px;
  }
 
  .project-lightbox-title {
    font-size: 16px;
    padding-right: 46px;
  }
 
  .project-lightbox-img {
    max-height: 74vh;
  }
}