/* =========================================================
   Застройщики ИЖС — общие стили
   ========================================================= */

:root {
  /* Фирменные цвета (на основе презентации «Дом Шелест») */
  --color-primary: #1f6b45;        /* основной зелёный */
  --color-primary-dark: #123824;   /* глубокий зелёный (тёмные секции) */
  --color-primary-darker: #0d2a1a;
  --color-primary-light: #4c9271;
  --color-primary-tint: #e7f0ea;   /* лёгкий зелёный фон */
  --color-lead: #1e7030;           /* тёмный салатовый — блоки заявок */
  --color-lead-dark: #165624;
  --color-accent: #c68a3d;         /* тёплый янтарный акцент */
  --color-accent-dark: #a66f2c;
  --color-accent-tint: #f6ead6;
  --color-ink: #16231c;            /* тёплый тёмный (не чистый чёрный) */
  --color-text: #1c2621;
  --color-text-muted: #5c675f;
  --color-bg: #f8f6f0;             /* тёплый бежево-белый фон */
  --color-bg-alt: #efe9db;
  --color-card: #ffffff;
  --color-line: #e2ddcb;
  --color-white: #ffffff;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 30px -14px rgba(22, 35, 28, 0.28);
  --shadow-soft: 0 4px 18px rgba(22, 35, 28, 0.08);

  --container: 1200px;
  --font-main: "Golos Text", "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; scrollbar-gutter: stable; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.7rem, 4vw, 3.4rem); overflow-wrap: break-word; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.4rem); overflow-wrap: break-word; }
h3 { font-size: 1.25rem; overflow-wrap: break-word; }
p { margin: 0 0 1em; color: var(--color-text-muted); }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}
.section--dark .eyebrow { color: var(--color-primary-light); }

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-pill);
  padding: 15px 28px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn--primary { background: var(--color-accent); color: var(--color-ink); }
.btn--primary:hover { background: var(--color-accent-dark); }

.btn--dark { background: var(--color-ink); color: var(--color-white); }
.btn--dark:hover { background: var(--color-primary-dark); }

.btn--outline { background: transparent; color: var(--color-ink); border: 1.5px solid var(--color-line); }
.btn--outline:hover { border-color: var(--color-ink); }

.btn--framed { background: transparent; color: var(--color-ink); border: 2px solid var(--color-ink); padding: 13px 26px; }
.btn--framed:hover { background: var(--color-ink); color: var(--color-white); }

.btn--light { background: var(--color-white); color: var(--color-ink); }
.btn--light:hover { background: var(--color-bg-alt); }

.btn--block { width: 100%; }
.btn--sm { padding: 11px 20px; font-size: 14px; }

.btn--icon {
  width: 46px; height: 46px; padding: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  flex-shrink: 0;
}
.btn--icon:hover { background: var(--color-primary-dark); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-primary-dark);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}

/* -------- Header (floating rounded bar) -------- */
header.site-header {
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 16px 20px 12px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 10px 22px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-ink);
  flex-shrink: 0;
}
.logo__mark {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--color-card);
  box-shadow: var(--shadow-soft);
}
.logo__mark svg { width: 34px; height: 34px; }
.logo__mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.logo__text-top { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--color-text-muted); }
.logo__text-main { font-size: 21px; font-weight: 800; color: var(--color-ink); margin: 1px 0; }
.logo__text-sub { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); }
/* Плоский однострочный вид логотипа в футере (без 3-строчной структуры) */
footer .logo__text { white-space: normal; }
footer .logo__text-top, footer .logo__text-sub { color: #93a397; }
footer .logo__text-main { color: #fff; }
@media (max-width: 1280px) {
  .nav { gap: 12px; padding: 10px 18px; }
  .nav__menu { gap: 14px; }
}
@media (max-width: 640px) {
  header.site-header { padding: 12px 14px 10px; }
  .nav { border-radius: 22px; padding: 10px 16px; gap: 10px; }
  .logo { gap: 10px; }
  .logo__mark { width: 50px; height: 50px; }
  .logo__mark svg { width: 24px; height: 24px; }
  .logo__text-top, .logo__text-sub { display: none; }
  .logo__text-main { font-size: 15px; }
}

.nav__catalog-btn { flex-shrink: 0; white-space: nowrap; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text);
}
.nav__menu a { position: relative; padding: 6px 0; white-space: nowrap; }
.nav__menu a:hover { color: var(--color-primary); }
.nav__menu a.is-active { color: var(--color-primary-dark); }
.nav__menu a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--color-accent); border-radius: 2px;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__phone small { display: block; font-size: 11px; font-weight: 500; color: var(--color-text-muted); text-align: right; margin-top: 2px; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-line);
  background: none;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--color-ink);
  position: relative; transition: .2s;
}
.nav__burger span::before { position: absolute; top: -6px; }
.nav__burger span::after { position: absolute; top: 6px; }

@media (max-width: 1100px) {
  .nav__phone small { display: none; }
}
@media (max-width: 980px) {
  .nav__menu { display: none; }
  .nav__burger { display: flex; }
  .nav__catalog-btn { display: none; }
  .nav__phone { font-size: 13.5px; }
  .nav__right { gap: 10px; }
}
@media (max-width: 600px) {
  .nav__phone { font-size: 12.5px; letter-spacing: -0.01em; }
}

/* Mobile menu drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 23, 18, .55);
  display: none;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(340px, 86vw);
  background: var(--color-white);
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 4px;
  animation: slideIn .2s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mobile-drawer__close { align-self: flex-end; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--color-text-muted); padding: 0 0 8px; }
.mobile-drawer__panel a { display: block; padding: 14px 0; font-weight: 700; font-size: 17px; border-bottom: 1px solid var(--color-line); }
.mobile-drawer__panel a.btn {
  margin-top: 18px;
  padding: 15px 18px;
  border-bottom: none;
  text-align: center;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  font-size: 16px;
}

/* -------- Hero slider -------- */
.hero {
  position: relative;
  padding: 0;
}
.hero__frame {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  border-radius: 0;
}
.hero__slides {
  position: relative;
  height: calc(100svh - 112px);
  min-height: 640px;
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease;
  display: flex; align-items: flex-end;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.hero__slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,40,26,.06) 0%, rgba(13,40,26,.42) 62%, rgba(11,32,21,.72) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  color: var(--color-white);
  padding: 48px 0 56px;
  width: 100%;
}
.hero__tag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero__content h1 { max-width: 640px; color: var(--color-white); margin-bottom: 14px; }
.hero__content p { max-width: 560px; color: #d8ddd6; font-size: 17px; }
.hero__actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.btn--hero-ghost { border-color: rgba(255,255,255,.5); color: #fff; }

.hero__nav {
  position: absolute; right: 24px; bottom: 30px; z-index: 3;
  display: flex; align-items: center; gap: 14px;
  color: var(--color-white); font-weight: 700;
}
.hero__nav button {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  color: var(--color-white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.hero__nav button:hover { background: var(--color-accent); color: var(--color-ink); }
.hero__progress { position: relative; width: 90px; height: 2px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; }
.hero__progress span { position: absolute; inset: 0; width: 0; background: var(--color-accent); transition: width .3s linear; }
.hero__count b { color: var(--color-accent); }

.hero__dots { position: absolute; left: 24px; bottom: 30px; z-index: 3; display: flex; gap: 8px; }
.hero__dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.hero__dots button.is-active { background: var(--color-accent); width: 22px; border-radius: 5px; transition: .2s; }

@media (max-width: 720px) {
  .hero__slides { height: calc(100svh - 88px); min-height: 520px; }
  .hero__dots { display: none; }
  .hero__content { padding: 36px 0 48px; }
}

/* -------- Tech accordion (construction know-how, click-to-expand) -------- */
.quicknav { background: var(--color-bg-alt); padding: 70px 0 90px; }
.quicknav .section-head h2 { color: var(--color-ink); }

.tech-acc { display: flex; flex-direction: column; gap: 14px; }
.tech-acc__item {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.tech-acc__item.is-open { border-color: var(--color-primary); box-shadow: var(--shadow-soft); }
.tech-acc__head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  cursor: pointer;
  user-select: none;
}
.tech-acc__icon {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  background: var(--color-primary-tint); color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.tech-acc__icon svg { width: 26px; height: 26px; }
.tech-acc__head h3 { margin: 0; font-size: 18px; flex: 1; min-width: 0; }
.tech-acc__chevron {
  margin-left: auto; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-bg-alt); color: var(--color-ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease, background .2s, color .2s;
}
.tech-acc__chevron svg { width: 16px; height: 16px; }
.tech-acc__item.is-open .tech-acc__chevron { background: var(--color-accent); color: var(--color-ink); transform: rotate(45deg); }
.tech-acc__body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.tech-acc__body-in {
  padding: 0 26px 28px 94px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: center;
}
.tech-acc__body-in p:last-of-type { margin-bottom: 14px; }
.tech-acc__body-in img { border-radius: var(--radius-m); width: 100%; height: 190px; object-fit: cover; }
.tech-acc__body-in .tech-photo img {
  height: auto;
  max-height: none;
  object-fit: unset;
}

@media (max-width: 760px) {
  .tech-acc__body-in { grid-template-columns: 1fr; padding-left: 26px; }
  .tech-acc__head { padding: 18px; gap: 12px; }
  .tech-acc__icon { width: 42px; height: 42px; }
}

/* -------- Filters bar -------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-l);
  padding: 18px 22px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-soft);
}
.filters__chip {
  border: 1.5px solid var(--color-line);
  background: var(--color-white);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--color-text);
  transition: .15s;
}
.filters__chip.is-active, .filters__chip:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.filters__price { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.filters__price input {
  width: 120px;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  font-family: inherit;
  font-size: 14px;
}
.filters__reset { background: none; border: none; color: var(--color-text-muted); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* -------- Project cards / catalog grid -------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card-project {
  background: var(--color-card);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-line);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-project:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -18px rgba(22,35,28,.35); }
.card-project__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg-alt); }
.card-project__media img { width: 100%; height: 100%; object-fit: cover; }
.card-project__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--color-ink); color: var(--color-white);
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-pill);
}
.card-project__badge.badge--ready { background: var(--color-primary); }
.card-project__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-project__meta { font-size: 13px; color: var(--color-text-muted); font-weight: 600; }
.card-project__title { font-size: 19px; font-weight: 800; color: var(--color-ink); }
.card-project__specs { display: flex; gap: 14px; font-size: 13px; color: var(--color-text-muted); flex-wrap: wrap; }
.project-hero__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
  margin-top: 30px;
  align-items: start;
}
.project-price-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  color: #fff;
}
@media (max-width: 860px) {
  .project-hero__row,
  .project-price-row { grid-template-columns: 1fr; gap: 22px; }
}
.card-project__specs b { color: var(--color-text); }
.card-project__foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-project__price { font-size: 21px; font-weight: 800; color: var(--color-primary-dark); }
.card-project__price small { font-size: 12px; font-weight: 600; color: var(--color-text-muted); display: block; }
.card-project__more { color: var(--color-primary-dark); font-weight: 700; font-size: 14px; white-space: nowrap; }
.card-project__link { display: block; color: inherit; }
.card-project__actions-wrap { padding: 0 22px 22px; margin-top: -10px; }
.card-project__actions { display: flex; gap: 8px; }
.card-project__actions .btn { flex: 1; padding: 11px 12px; font-size: 13px; }

/* -------- Trust block -------- */
.trust {
  background: var(--color-primary-tint);
  border-radius: var(--radius-l);
  padding: 50px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.trust__list { display: flex; flex-direction: column; gap: 16px; }
.trust__list li { display: flex; gap: 12px; align-items: center; font-weight: 700; color: var(--color-ink); }
.trust__list svg {
  width: 26px; height: 26px; padding: 5px; box-sizing: border-box;
  background: var(--color-primary-tint); color: var(--color-primary-dark);
  border-radius: 50%; flex-shrink: 0;
}
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; padding: 32px; } }

/* -------- Advantages -------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.adv-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-l);
  padding: 28px;
}
.adv-card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--color-primary-tint); color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.adv-card__icon svg { width: 26px; height: 26px; }
.adv-card h3 { margin-bottom: 8px; }
@media (max-width: 980px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .adv-grid { grid-template-columns: 1fr; } }

/* -------- Construction cycle (open timeline) -------- */
.cycle-section { padding: 36px 0 70px; }
.cycle-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.cycle-track::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-lead) 50%, var(--color-accent) 100%);
}
.cycle-step {
  position: relative;
  padding: 0 16px;
  text-align: center;
}
.cycle-step__mark {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-primary);
  color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  box-shadow: 0 0 0 8px var(--color-bg);
}
.cycle-step:nth-child(even) .cycle-step__mark {
  border-color: var(--color-lead);
  color: var(--color-lead-dark);
}
.cycle-step:last-child .cycle-step__mark {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.cycle-step h3 { margin-bottom: 10px; font-size: 17px; }
.cycle-step p { font-size: 14px; line-height: 1.5; margin: 0; }
@media (max-width: 980px) {
  .cycle-track { grid-template-columns: 1fr; gap: 28px; }
  .cycle-track::before {
    top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--color-primary), var(--color-lead), var(--color-accent));
  }
  .cycle-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; padding: 0; }
  .cycle-step__mark { margin: 0; box-shadow: 0 0 0 8px var(--color-bg); }
  .cycle-step h3, .cycle-step p { grid-column: 2; }
  .cycle-step h3 { margin-top: 6px; }
}

/* -------- Director trust block -------- */
.director-block {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: center;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-l);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.director-block__photo { position: relative; }
.director-block__photo img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--radius-l);
  border: 4px solid var(--color-bg);
  box-shadow: var(--shadow-soft);
}
.director-block__content .eyebrow { margin-bottom: 6px; }
.director-block__content h2 { margin-bottom: 16px; }
.director-block__bio { font-size: 15px; line-height: 1.6; color: var(--color-text); margin-bottom: 18px; }
.director-block__quote {
  font-size: 17px; line-height: 1.5; font-style: italic; color: var(--color-ink);
  border-left: 3px solid var(--color-accent);
  padding-left: 18px; margin: 0 0 22px;
}
.director-block__name { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.director-block__name b { font-size: 19px; font-weight: 800; color: var(--color-ink); }
.director-block__name span { font-size: 13.5px; color: var(--color-text-muted); font-weight: 600; }
.director-block__badges { display: flex; gap: 28px; flex-wrap: wrap; }
.badge-item b { display: block; font-size: 24px; font-weight: 800; color: var(--color-primary-dark); }
.badge-item span { font-size: 12.5px; color: var(--color-text-muted); font-weight: 600; max-width: 140px; display: inline-block; }
@media (max-width: 780px) {
  .director-block { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .director-block__photo { max-width: 220px; margin: 0 auto; }
}

/* -------- Lead form section -------- */
.lead {
  background: var(--color-lead);
  border-radius: var(--radius-l);
  color: var(--color-white);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.lead h2 { color: var(--color-white); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.lead p { color: rgba(255,255,255,.88); font-size: 17px; line-height: 1.6; max-width: 480px; }
.lead .eyebrow { font-size: 14px; color: #fff; }
.lead .eyebrow::before { background: #fff; }
.lead__form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.input {
  flex: 1;
  min-width: 180px;
  padding: 15px 18px;
  border-radius: var(--radius-pill);
  border: none;
  font-family: inherit;
  font-size: 15px;
  background: rgba(255,255,255,.12);
  color: var(--color-white);
}
.input::placeholder { color: #b7c6ba; }
.lead--light .input { background: var(--color-white); color: var(--color-text); border: 1.5px solid var(--color-line); }
.lead--light .input::placeholder { color: var(--color-text-muted); }
textarea.input { border-radius: var(--radius-m); resize: vertical; min-height: 90px; }
.consent { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.82); display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent input { margin-top: 3px; flex-shrink: 0; pointer-events: auto; }
.consent.shake { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0);} 25%{transform:translateX(-6px);} 75%{transform:translateX(6px);} }
.consent a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.lead--light .consent { color: var(--color-text-muted); }
.lead--light .consent a,
.modal .consent a { color: var(--color-primary); }
.modal .consent { color: var(--color-text-muted); }
@media (max-width: 860px) { .lead { grid-template-columns: 1fr; padding: 34px; } }
.lead--solo { max-width: 640px; margin: 0 auto; text-align: center; }
.lead--solo .lead__form { text-align: left; }
.split--solo { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }

/* -------- Realized projects strip -------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.strip-card {
  display: block;
  background: var(--color-card);
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--color-line);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.strip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.strip-card__media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.strip-card__badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: rgba(18, 51, 30, .78);
  color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.strip-card__media img { width: 100%; height: 100%; object-fit: cover; }
.strip-card__body { padding: 16px 18px 20px; }
.strip-card__title { font-weight: 800; margin-bottom: 8px; font-size: 15px; }
.strip-card__row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--color-text-muted); padding: 3px 0; border-top: 1px dashed var(--color-line); }
.strip-card__row:first-of-type { border-top: none; }
.strip-card__row b { color: var(--color-text); }
@media (max-width: 980px) { .strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .strip { grid-template-columns: 1fr; } }

/* -------- Two-column info block (calc/video) -------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split--rev { direction: rtl; }
.split--rev > * { direction: ltr; }
.split__video {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  aspect-ratio: 16/10; background: var(--color-ink);
  width: 100%;
  min-width: 0;
}
.split__video-el {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--color-ink);
  vertical-align: middle;
}
.split__video-cap {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.check-list { display: flex; flex-direction: column; gap: 14px; margin: 22px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--color-ink); min-width: 0; }
.check-list li svg { flex-shrink: 0; margin-top: 1px; }
.check-list svg {
  width: 26px; height: 26px; padding: 5px; box-sizing: border-box;
  background: var(--color-primary-tint); color: var(--color-primary-dark);
  border-radius: 50%; flex-shrink: 0;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split__video {
    aspect-ratio: auto;
    overflow: visible;
    border-radius: var(--radius-m);
    background: transparent;
  }
  .split__video-el {
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    border-radius: var(--radius-m);
    background: var(--color-ink);
  }
}
@media (max-width: 640px) {
  .card-project__actions { flex-direction: column; }
  .filters__price { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .filters__price input { flex: 1; min-width: 0; width: auto; }
}

/* -------- About text sections -------- */
.about-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; }
.about-block--solo { grid-template-columns: 1fr; max-width: 720px; }
.about-block + .about-block { margin-top: 70px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--color-line); }
.spec-table td { padding: 14px 0; vertical-align: top; }
.spec-table td:first-child { color: var(--color-text-muted); font-weight: 600; width: 42%; padding-right: 20px; }
.spec-table td:last-child { font-weight: 700; color: var(--color-ink); }
.num-list { display: flex; flex-direction: column; gap: 18px; counter-reset: n; }
.num-list li { display: flex; gap: 16px; }
.num-list li::before {
  counter-increment: n; content: counter(n);
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  background: var(--color-primary-tint); color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
@media (max-width: 860px) { .about-block { grid-template-columns: 1fr; gap: 26px; } }

/* -------- Tech stages (build timeline mini-cards) -------- */
.insulation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.insulation-grid__item {
  background: var(--color-primary-tint);
  border-radius: var(--radius-m);
  padding: 16px 16px 14px;
  text-align: center;
}
.insulation-grid__item b { display: block; font-size: 22px; font-weight: 800; color: var(--color-primary-dark); }
.insulation-grid__item span { display: block; font-size: 13px; font-weight: 600; margin-top: 4px; color: var(--color-text); }
@media (max-width: 640px) { .insulation-grid { grid-template-columns: 1fr; } }

.tech-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.tech-stages__item { background: var(--color-bg-alt); border-radius: var(--radius-m); padding: 18px 18px 16px; }
.tech-stages__item b { display: block; font-size: 20px; font-weight: 800; color: var(--color-primary-dark); }
.tech-stages__item span { display: block; font-size: 14px; font-weight: 700; margin: 4px 0 8px; }
.tech-stages__item p { font-size: 13px; margin: 0; }
@media (max-width: 760px) { .tech-stages { grid-template-columns: 1fr; } }

.tech-photo { margin: 20px 0 0; }

.btn--mortgage {
  margin-top: 6px;
  padding: 16px 34px;
  font-size: 16.5px;
  border-radius: 14px;
  box-shadow: 0 10px 26px -8px rgba(39,125,59,.5);
  border: 2px solid var(--color-accent);
}
.tech-photo img { width: 100%; height: auto; max-height: none; object-fit: unset; border-radius: var(--radius-l); box-shadow: var(--shadow-soft); }
.tech-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--color-text-muted); }

/* -------- FAQ / contact -------- */
.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-l);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-card__person { display: flex; align-items: center; gap: 14px; }
.contact-card__avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--color-primary-tint); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--color-primary-dark); font-size: 20px; }
.contact-card__channels { display: flex; gap: 10px; }
.contact-card__channels a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 14px;
  border: 1.5px solid var(--color-line);
}
.contact-card__channels a:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }

/* -------- Footer -------- */
footer.site-footer { background: var(--color-ink); color: #b9c6bd; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid h4 { color: var(--color-white); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 10px; font-size: 14.5px; }
.footer-grid a:hover { color: var(--color-white); }
.footer-brand p { color: #93a397; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--color-accent); color: var(--color-ink); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 13px; flex-wrap: wrap; gap: 10px; color: #7c8c81; }
.footer-bottom a { text-decoration: underline; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* -------- Sticky mobile CTA -------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--color-white);
  border-top: 1px solid var(--color-line);
  padding: 12px 16px;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 -8px 24px rgba(0,0,0,.08);
}
@media (max-width: 720px) { .sticky-cta.is-visible { display: flex; } }
.sticky-cta .price { font-weight: 800; color: var(--color-primary-dark); flex: 1; }

/* -------- Modal -------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,23,18,.6);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay[data-privacy-overlay] { z-index: 130; }
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--color-white);
  border-radius: var(--radius-l);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  position: relative;
}
.modal__close { position: absolute; top: 18px; right: 18px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--color-text-muted); }
.modal__project {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-primary-tint); color: var(--color-primary-dark);
  font-size: 12.5px; font-weight: 700;
  padding: 6px 12px; border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.modal h3 { margin-bottom: 6px; }
.modal p { margin-bottom: 22px; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal--privacy { max-width: 720px; max-height: min(84vh, 800px); overflow: auto; }
.modal--privacy h3 { margin-bottom: 16px; }
.modal--privacy p { margin-bottom: 12px; font-size: 14.5px; }
.hours-stack { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.office-banner__map { width: 100%; min-height: 280px; border: 0; border-radius: var(--radius-m); background: #e8e4d8; }
.modal .input { background: var(--color-bg-alt); color: var(--color-text); }

.toast {
  position: fixed; bottom: 26px; right: 26px; z-index: 110;
  background: var(--color-ink); color: var(--color-white);
  padding: 16px 22px; border-radius: var(--radius-m);
  font-weight: 700; box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 10px;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: .25s;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast svg { color: var(--color-accent); width: 20px; height: 20px; }

/* -------- Breadcrumbs -------- */
.breadcrumbs { background: var(--color-bg); color: var(--color-text-muted); font-size: 13px; padding: 12px 0; border-bottom: 1px solid var(--color-line); }
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-ink); }

/* -------- Page hero (inner pages) -------- */
.page-hero { padding: 56px 0 36px; border-bottom: 1px solid var(--color-line); }
.page-hero .eyebrow { }

/* -------- Gallery page -------- */
.gallery-photo {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--color-bg-alt);
  position: relative;
  box-shadow: var(--shadow-soft);
  margin: 0;
}
.gallery-photo img { aspect-ratio: 4/3; width: 100%; height: 100%; object-fit: cover; }
.gallery-photo figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(15,23,18,.6); color: #fff; font-weight: 700; font-size: 13px;
  padding: 6px 14px; border-radius: var(--radius-pill);
}
#real { scroll-margin-top: 110px; }

/* -------- Utility -------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-bg-alt); border-radius: var(--radius-pill);
  padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--color-text);
}

/* -------- Coming soon (брус / блок) -------- */
.coming-soon {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0 10px;
}
.coming-soon__badge {
  display: inline-block;
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 16px; border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.coming-soon h1 { margin-bottom: 14px; }
.coming-soon > p { font-size: 18px; max-width: 520px; margin: 0 auto 36px; }

/* -------- Phone / small screens -------- */
@media (max-width: 720px) {
  body:has(.sticky-cta.is-visible) { padding-bottom: 80px; }
  .sticky-cta {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    flex-wrap: wrap;
  }
  .sticky-cta .price { width: 100%; font-size: 18px; }
  .sticky-cta .btn { flex: 1; }
  .tech-acc__head h3 { font-size: 16px; }
  .tech-acc__body-in { padding: 0 16px 22px; }
  .spec-table td { display: block; width: 100%; padding-right: 0; }
  .spec-table td:first-child { width: 100%; padding-bottom: 2px; }
  .spec-table td:last-child { padding-top: 0; padding-bottom: 12px; }
  .services-table td { display: block; text-align: left; white-space: normal; }
  .services-table td:last-child { text-align: left; padding-top: 0; padding-bottom: 16px; font-size: 16px; }
  .director-block { padding: 22px 18px; }
  .director-block__name { flex-direction: column; gap: 2px; align-items: flex-start; }
  .coming-soon { padding: 8px 0 0; }
  .coming-soon > p { font-size: 16px; margin-bottom: 24px; }
  .lead--solo { padding: 28px 18px; }
  .office-banner { padding: 24px 18px !important; }
  .office-banner__art { display: block !important; }
  .office-banner h3 { font-size: 22px !important; }
  .stat-strip .stat { padding: 18px 12px; }
  .stat-strip .stat b { font-size: 24px; }
  .btn--mortgage { width: 100%; }
  .leads-table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  header.site-header { padding: 8px 10px 8px; }
  .nav {
    min-height: 58px;
    padding: 8px 12px;
    gap: 8px;
    border-radius: 18px;
  }
  .logo { gap: 8px; min-width: 0; }
  .logo__mark { width: 42px; height: 42px; }
  .logo__text { min-width: 0; white-space: nowrap; overflow: hidden; }
  .logo__text-main { font-size: 13px; line-height: 1.15; }
  .nav .btn--icon { display: none; }
  .hero__slides { height: calc(100svh - 76px); min-height: 480px; }
  .hero__content { padding: 28px 0 72px; }
  .hero__content h1 { font-size: 1.55rem; }
  .hero__content p { font-size: 15px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .hero__nav { right: 12px; bottom: 14px; gap: 8px; }
  .hero__progress { width: 56px; }
  .lead { padding: 24px 18px; }
  .lead h2 { font-size: 1.45rem; }
  .form-row { flex-direction: column; }
  .form-row .input,
  .form-row .btn,
  .input { min-width: 0; width: 100%; }
  .modal { padding: 28px 18px 22px; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
  .page-hero { padding: 36px 0 24px; }
  .price-card { padding: 22px 18px; }
  .gallery-arrow { width: 36px; height: 36px; }
  .gallery-arrow--prev { left: 8px; }
  .gallery-arrow--next { right: 8px; }
}

@media (max-width: 420px) {
  .logo__text { display: none; }
}
