@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope-cyrillic.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-soft: #f1f4ef;
  --surface-green: #e5eee4;
  --text: #1b251f;
  --text-muted: #535f57;
  --accent: #37634e;
  --accent-dark: #254936;
  --line: #dbe3dc;
  --dark: #1d3027;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(29, 48, 39, .09);
  --max-width: 1520px;
  --page-gutter: clamp(20px, 3.35vw, 60px);
  --section-space: clamp(48px, 6.5vw, 104px);
  --site-gap: clamp(16px, 2.25vw, 30px);
  --header-height: 76px;
  --display-size: clamp(36px, 4.5vw, 66px);
  --heading-size: clamp(29px, 3.3vw, 48px);
}

body { font-family: Manrope, 'Segoe UI', sans-serif; line-height: 1.55; }
.container { padding-inline: var(--page-gutter); }
:where(#form, #houses, #advantages, #house-inclusions, #design-process, #stagePanel) {
  scroll-margin-top: calc(var(--header-height) + 16px);
}
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 10px;
  font: inherit;
  font-weight: 750;
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
}
.btn-small { min-height: 40px; padding: 8px 13px; font-size: 13px; }
.btn-outline { background: #fff; border-color: #cfdad1; color: var(--accent-dark); }
.btn-outline:hover { background: var(--bg-soft); }

.site-header { background: #fff; backdrop-filter: none; }
.header-inner { height: var(--header-height); gap: clamp(12px, 1.8vw, 26px); }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -.05em; }
.main-nav { gap: clamp(9px, 1.45vw, 21px); }
.main-nav a { text-align: center; line-height: 1.35; }
.main-nav a.main-nav__all { font-size: clamp(13px, 1.05vw, 15px); font-weight: 650; }
.main-nav a:is(:hover, .is-active) { color: var(--accent-dark); }
.main-nav a.is-active { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.site-header .phone { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.mobile-nav summary { border-radius: 10px; }
.mobile-nav__links { max-height: calc(100dvh - var(--header-height)); padding-inline: var(--page-gutter); }

.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: max(580px, calc(100vh - var(--header-height) - 1px));
  min-height: max(580px, calc(100svh - var(--header-height) - 1px));
  background: var(--dark);
}
.hero-frame {
  position: relative;
  display: grid;
  flex: 1;
  align-items: end;
  min-height: 486px;
  overflow: hidden;
  isolation: isolate;
  background: var(--dark);
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-frame::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 25, 20, .89), rgba(14, 25, 20, .04) 68%),
    linear-gradient(90deg, rgba(14, 25, 20, .53), transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  align-items: end;
  gap: clamp(24px, 5vw, 74px);
  width: 100%;
  max-width: 1720px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 90px) clamp(20px, 5.7vw, 102px) clamp(34px, 4.4vw, 66px);
}
.hero h1 {
  max-width: 18ch;
  margin: 0 0 19px;
  font-size: clamp(37px, 4.7vw, 68px);
  line-height: 1.05;
  letter-spacing: -.048em;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.hero-subtitle { max-width: 43ch; margin: 0 0 26px; color: #eef4ed; font-size: clamp(15px, 1.35vw, 19px); opacity: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn-accent { background: #e0eddb; border-color: #e0eddb; color: var(--accent-dark); }
.hero-actions .btn-accent:hover { background: #fff; border-color: #fff; }
.hero-actions .btn-outline { background: rgba(22, 40, 30, .42); border-color: #bccbc1; color: #fff; }
.hero-actions .btn-outline:hover { background: var(--dark); }
.hero-actions a:focus-visible, .hero-project:focus-visible { outline-color: #e0eddb; }
.hero-project {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 9px 16px 9px 9px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 14px;
  background: rgba(29, 48, 39, .86);
  color: #fff;
  backdrop-filter: blur(9px);
}
.hero-project:hover { background: var(--dark); }
.hero-project img { width: 104px; height: 104px; object-fit: cover; border-radius: 8px; }
.hero-project__copy { display: grid; gap: 4px; overflow-wrap: anywhere; }
.hero-project__copy strong { font-size: 17px; line-height: 1.3; }
.hero-project__copy > span { font-size: 13px; }
.hero-project__link { color: #dcebd7; font-weight: 750; }
.media-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(25, 41, 33, .84);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}
.hero-frame > .media-caption { z-index: 2; top: 16px; right: 16px; bottom: auto; left: auto; }

.home-shortcuts { background: var(--surface-green); color: var(--text); }
.home-shortcuts ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 0;
  padding-block: 10px;
  list-style: none;
}
.home-shortcuts li + li { border-left: 1px solid #c8d8cb; }
.home-shortcuts a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 10px clamp(12px, 2vw, 30px);
  border-radius: 8px;
}
.home-shortcuts a:hover { background: #dbe9db; }
.home-shortcuts a > span:first-child { display: grid; gap: 2px; overflow-wrap: anywhere; }
.home-shortcuts a > span:last-child { color: var(--accent-dark); font-size: 21px; }
.home-shortcuts strong { font-size: 15px; line-height: 1.3; }
.home-shortcuts strong + span { color: var(--text-muted); font-size: 13px; }

.section-title, .cta-text h2 {
  margin: 0 0 clamp(20px, 2.7vw, 38px);
  font-size: var(--heading-size);
  font-weight: 740;
  line-height: 1.12;
  letter-spacing: -.038em;
  text-align: left;
  overflow-wrap: anywhere;
}
.houses, .home-stages, .home-design, .advantages { padding-block: var(--section-space); }
.home-portfolio { padding-bottom: var(--section-space); }
.home-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--site-gap);
  margin-bottom: clamp(24px, 3vw, 42px);
}
.home-section-head > div { min-width: 0; flex: 1 1 460px; }
.home-section-head h2 { margin: 0; }
.home-section-head p { max-width: 58ch; margin: 8px 0 0; color: var(--text-muted); }
.home-section-head .btn, .home-design .btn { gap: 9px; }

.home-projects { --project-gap: clamp(16px, 2vw, 28px); --project-columns: 2; }
.home-projects__head { align-items: center; gap: 14px 24px; }
.home-projects__head .section-title { font-size: clamp(32px, 4.1vw, 58px); }
.home-projects__head > .home-projects__actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px clamp(10px, 2.4vw, 30px);
}
.home-projects__all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-dark);
  font-weight: 750;
  white-space: nowrap;
}
.home-projects__all span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-green);
  font-size: 19px;
  transition: background .2s ease;
}
.home-projects__all:hover span { background: #d2e3d4; }
.home-projects__track {
  display: grid;
  grid-template-columns: repeat(var(--project-columns), minmax(0, 1fr));
  gap: var(--project-gap);
}
.home-projects__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.home-projects[data-carousel-ready] .home-projects__track {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--project-columns) - 1) * var(--project-gap)) / var(--project-columns));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.home-projects .house-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: clamp(14px, 1.5vw, 22px);
  background: #fff;
  scroll-snap-align: start;
}
.home-projects .house-card:hover { border-color: #a9c1ad; box-shadow: none; transform: none; }
.home-projects .house-card__image { aspect-ratio: 16 / 10; }
.home-projects .house-card__image:focus-visible { outline-offset: -4px; }
.home-projects .house-card__body { padding: clamp(17px, 2.25vw, 32px); }
.home-projects .house-card__body h3 { font-size: clamp(23px, 2.35vw, 36px); }
.home-projects .house-card__meta { gap: 8px 18px; font-size: clamp(14px, 1.25vw, 18px); }
.home-projects .house-card__body p { max-width: 48ch; font-size: 15px; }
.home-projects .house-card__body > .btn { gap: 12px; border-radius: 999px; }
.home-projects .house-card__body > .btn::after { content: '→' / ''; font-size: 17px; }
.home-projects__pagination:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(10px, 1.5vw, 18px);
}
.home-projects__positions { display: flex; flex-wrap: wrap; gap: 2px; }
.home-projects__positions button {
  display: grid;
  place-items: center;
  width: clamp(26px, 3.1vw, 42px);
  height: 44px;
  padding: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.home-projects__positions button::before {
  content: '';
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #c9d7ca;
  transition: background .2s ease;
}
.home-projects__positions button:is(:hover, [aria-current="true"])::before { background: var(--accent); }
.home-projects__controls:not([hidden]) { display: flex; flex: none; align-items: center; gap: clamp(6px, .9vw, 12px); }
.home-projects__position { color: var(--text-muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-projects__arrow {
  display: grid;
  width: clamp(44px, 4vw, 56px);
  height: clamp(44px, 4vw, 56px);
  place-items: center;
  padding: 0;
  border: 1px solid #cfdad1;
  border-radius: 50%;
  background: #fff;
  color: var(--accent-dark);
  font: inherit;
  font-size: 23px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.home-projects__arrow--next { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.home-projects__arrow:hover { border-color: var(--accent); }
.home-projects__arrow--next:hover { background: var(--accent); }
.home-projects__arrow[aria-disabled="true"] { border-color: var(--line); background: var(--bg-soft); color: var(--text-muted); cursor: default; }

.home-stages { background: var(--bg-soft); }
.home-stages-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--site-gap); }
.home-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.home-stage:hover { color: var(--accent-dark); border-color: #abc2af; }
.home-stage__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-green); }
.home-stage__media img { width: 100%; height: 100%; object-fit: cover; }
.home-stage__title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: clamp(13px, 1.65vw, 23px);
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.home-stage__title span { color: var(--accent-dark); }
.home-design__layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-green);
}
.home-design__copy { align-self: center; min-width: 0; padding: clamp(24px, 4vw, 64px); }
.home-design__copy .section-title { margin-bottom: 12px; }
.home-design__copy p { max-width: 44ch; margin: 0 0 21px; color: var(--text-muted); }
.home-design__layout > img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.advantages { background: var(--bg-soft); }
.advantages-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.advantage-card { padding: clamp(16px, 1.65vw, 25px); box-shadow: none; }
.advantage-icon { width: 48px; height: 48px; margin-bottom: 15px; border-radius: 9px; }
.advantage-card h3 { font-size: 17px; line-height: 1.32; }
.advantage-card p { font-size: 14px; }

.projects-page, .house-detail { padding-block: clamp(20px, 3vw, 42px) var(--section-space); }
.breadcrumb { margin-bottom: clamp(19px, 2.3vw, 31px); font-size: 13px; overflow-wrap: anywhere; }
.breadcrumb span { margin-inline: 4px; }
.projects-head { gap: var(--site-gap); margin-bottom: clamp(24px, 3vw, 46px); }
.projects-head h1, .project-heading h1, .not-found h1 {
  margin: 0 0 9px;
  font-size: var(--display-size);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.09;
  overflow-wrap: anywhere;
}
.projects-count { max-width: 62ch; font-size: clamp(15px, 1.4vw, 17px); }
.projects-sort { gap: 6px; }
.sort-chip { padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 650; }
.sort-chip.is-active { background: var(--surface-green); border-color: #cbdcce; color: var(--accent-dark); }
.projects-empty { padding: 26px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--text-muted); }
.houses-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--site-gap); }
.house-card { display: flex; flex-direction: column; box-shadow: none; }
.house-card__image, .calc-project__image { position: relative; display: block; height: auto; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.house-card__image img, .calc-project__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.house-card__image:hover img, .calc-project__image:hover img { transform: scale(1.035); }
.house-card__image--empty { display: grid; place-items: center; padding: 12px; color: var(--text-muted); }
.house-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(17px, 2vw, 27px); }
.house-card__body h3 { margin-bottom: 12px; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.house-card__meta { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 5px 18px; margin-bottom: 13px; color: var(--text-muted); }
.house-card__meta strong { color: var(--accent-dark); font-weight: 800; }
.house-card__body p { min-height: 0; margin-bottom: 21px; }
.house-card__body > .btn { margin-top: auto; }
.portfolio-card__count { border-radius: 6px; background: rgba(25, 41, 33, .84); }
.portfolio-card__address::before, .portfolio-detail__address::before { content: none; }
.portfolio-grid--featured { grid-template-columns: minmax(0, 1fr); }
.portfolio-grid--featured .portfolio-card { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.portfolio-grid--featured .house-card__body { align-self: center; padding: clamp(22px, 4vw, 60px); }
.portfolio-grid--featured .house-card__body h3 { font-size: clamp(25px, 3vw, 41px); }

.project-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(22px, 3vw, 36px); }
.project-heading > div { min-width: 0; }
.house-detail-meta { flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; }
.house-detail-price, .house-detail-area { font-size: clamp(16px, 1.8vw, 23px); }
.house-detail-gallery { margin-bottom: clamp(28px, 4.5vw, 66px); }
.gallery-main { position: relative; height: auto; max-height: 650px; aspect-ratio: 2 / 1; overflow: hidden; }
.gallery-main > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-zoom-hint { opacity: 1; border-radius: 8px; font-family: inherit; }
.gallery-thumbs { gap: 9px; }
.gallery-thumb { width: clamp(76px, 9vw, 126px); height: auto; aspect-ratio: 4 / 3; border-radius: 9px; }
.project-breadcrumb { padding-top: clamp(13px, 1.8vw, 26px); margin-bottom: clamp(13px, 1.8vw, 24px); }
.project-detail { padding-top: 0; }
.project-gallery { max-width: 1920px; margin-inline: auto; margin-bottom: clamp(26px, 3.5vw, 52px); }
.project-gallery .gallery-stage { position: relative; margin-inline: clamp(10px, 1.75vw, 28px); }
.project-gallery .gallery-main {
  aspect-ratio: 16 / 9;
  max-height: min(760px, 76vh);
  max-height: min(760px, 76svh);
  background: var(--dark);
  touch-action: pan-y pinch-zoom;
}
.project-gallery .gallery-main .media-caption { left: clamp(10px, 1.5vw, 24px); bottom: clamp(10px, 1.5vw, 24px); }
.gallery-step,
.gallery-position {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(24, 41, 33, .84);
  color: #fff;
}
.gallery-step {
  top: 50%;
  display: grid;
  width: clamp(44px, 4.1vw, 60px);
  height: clamp(44px, 4.1vw, 60px);
  place-items: center;
  padding: 0;
  border-radius: 50%;
  font: inherit;
  font-size: clamp(20px, 2vw, 29px);
  transform: translateY(-50%);
  transition: background .2s ease;
  cursor: pointer;
}
.gallery-step:hover { background: var(--accent-dark); }
.gallery-step:focus-visible, .project-gallery .gallery-main:focus-visible { outline-color: #fff; outline-offset: -5px; }
.gallery-step--prev { left: clamp(10px, 2vw, 32px); }
.gallery-step--next { right: clamp(10px, 2vw, 32px); }
.gallery-position {
  top: clamp(10px, 1.5vw, 24px);
  right: clamp(10px, 1.5vw, 24px);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.project-gallery .gallery-thumbs {
  gap: clamp(8px, 1vw, 14px);
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-block: 4px;
  scrollbar-width: thin;
}
.project-gallery .gallery-thumb { flex: none; aspect-ratio: 16 / 10; }
.lightbox-image { touch-action: pan-y pinch-zoom; }
.house-detail-body { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: clamp(28px, 5vw, 80px); }
.house-detail-description { max-width: 70ch; margin: 0 0 29px; font-size: 17px; white-space: pre-line; }
.house-detail-main .section-title { font-size: clamp(25px, 2.7vw, 37px); }
.specs-table { padding: 0 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.specs-row:last-child { border-bottom: 0; }
.specs-row dt, .specs-row dd { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.house-detail-side, .stage-panel { top: calc(var(--header-height) + 16px); }
.house-detail-card { padding: clamp(20px, 2.7vw, 38px); background: var(--bg-soft); }
.house-detail-card h2 { margin: 0 0 9px; font-size: clamp(21px, 2vw, 28px); line-height: 1.25; letter-spacing: -.02em; }
.related-houses { margin-top: var(--section-space); }
.portfolio-detail { gap: var(--site-gap); margin-bottom: 0; }
.portfolio-detail__info { align-self: center; }
.portfolio-detail__address a { text-decoration: underline; text-underline-offset: 3px; }
.portfolio-map { aspect-ratio: 16 / 10; }

.stages-layout { grid-template-columns: minmax(245px, .74fr) minmax(0, 1.75fr); gap: var(--site-gap); }
.timeline { max-height: min(66vh, 650px); overflow-y: auto; padding: 4px 9px 4px 4px; scrollbar-gutter: stable; }
.timeline__item::before { content: none; }
.timeline__btn { margin: 0 0 7px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.timeline__btn.is-active { background: var(--surface-green); border-color: #c9d9ca; }
.timeline__dot { width: 36px; height: 36px; border: 0; border-radius: 8px; background: var(--bg-soft); font-size: 13px; }
.timeline__btn.is-active .timeline__dot { transform: none; }
.timeline__title { overflow-wrap: anywhere; }
.stage-panel { min-height: 0; padding: clamp(19px, 3.5vw, 52px); scroll-margin-top: calc(var(--header-height) + 16px); }
.stage-panel__title { font-size: clamp(26px, 3.3vw, 44px); line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
.stage-panel__text { max-width: 65ch; }
.stage-panel__empty { font-style: normal; }
.stage-panel__photos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 208px), 1fr)); gap: 14px; }
.stage-panel__photo { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; }
.stage-panel__photo .media-caption { top: 9px; bottom: auto; left: 9px; }
.stage-panel__nav { justify-content: flex-start; margin-top: 20px; }

.calc-page { padding-top: clamp(16px, 2vw, 28px); }
.calc-page .breadcrumb { margin-bottom: clamp(12px, 1.5vw, 20px); }
.calc-page .projects-head { margin-bottom: clamp(20px, 2.4vw, 32px); }
.calc-page .projects-head h1 { margin: 0; font-size: clamp(30px, 3.4vw, 48px); font-weight: 680; }
.calc-catalog { display: grid; grid-template-columns: minmax(270px, 1fr) minmax(0, 2.12fr); gap: clamp(16px, 1.8vw, 26px); align-items: start; }
.calc-catalog__sidebar {
  position: sticky;
  top: calc(var(--header-height) + 14px);
  max-height: calc(100vh - var(--header-height) - 28px);
  max-height: calc(100dvh - var(--header-height) - 28px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b1c8b4 transparent;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
}
.calc-filters__summary, .calc-filter-group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  list-style: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.calc-filters__summary::-webkit-details-marker, .calc-filter-group__title::-webkit-details-marker { display: none; }
.calc-filters__summary { min-height: 48px; padding-inline: 16px; font-size: 17px; }
.calc-filters__summary::after, .calc-filter-group__title::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  margin-right: 3px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.calc-filters[open] > .calc-filters__summary::after, .calc-filter-group[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.calc-filters__summary:focus-visible, .calc-filter-group__title:focus-visible { outline-offset: -3px; }
.calc-form { display: flex; flex-direction: column; min-height: 0; gap: 0; }
.calc-fields { display: grid; gap: 8px; min-height: 0; padding: 0 12px 12px; }
.calc-filters__intro { margin: 0 3px 2px; color: var(--text-muted); font-size: 13px; }
.calc-block { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.calc-block__title { margin: 0 0 10px; font-size: 16px; font-weight: 750; line-height: 1.35; }
.calc-filter-group { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.calc-filter-group__title { min-height: 42px; font-size: 14px; font-weight: 750; }
.calc-filter-group__count, .calc-catalog__filter-trigger span { color: var(--accent-dark); font-size: 12px; font-weight: 750; }
.calc-filter-group .calc-block { padding-top: 1px; border: 0; }
.calc-block__description { margin-top: 0; }
.calc-area-fields { gap: clamp(5px, .65vw, 9px); }
.calc-area__value {
  flex: 1;
  justify-content: space-between;
  padding: 5px 8px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 13px;
}
.calc-area__value input { min-width: 0; width: 100%; font-size: 17px; appearance: textfield; }
.calc-area__value input::-webkit-inner-spin-button,
.calc-area__value input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.calc-range { margin-top: 10px; }
.calc-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.calc-option__card { min-width: 0; border-width: 1px; overflow-wrap: anywhere; }
.calc-option__input:checked + .calc-option__card { background: var(--surface-green); box-shadow: none; }
.calc-option__input:checked + .calc-option__card::after { width: 19px; height: 19px; font-size: 11px; }
.calc-actions { flex: none; gap: 10px 14px; padding: 12px; border-top: 1px solid var(--line); }
.calc-actions .btn { min-height: 42px; padding: 8px 12px; }

.calc-catalog__toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin-bottom: clamp(14px, 1.5vw, 20px); }
.calc-catalog__search { flex: 1 1 180px; min-width: 0; }
.calc-catalog__toolbar input, .calc-catalog__toolbar select {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.calc-catalog__toolbar input { width: 100%; }
.calc-catalog__views:not([hidden]) { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 9px; background: var(--bg-soft); }
.calc-catalog__views button {
  display: grid;
  width: 40px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
}
.calc-catalog__views button[aria-pressed="true"] { background: var(--accent-dark); color: #fff; }
.calc-catalog__views button span { width: 17px; height: 14px; border: 1.5px solid currentColor; border-radius: 2px; }
.calc-catalog__views button span::before { content: ''; display: block; margin-top: 5px; border-top: 1.5px solid currentColor; }
.calc-catalog__views [data-catalog-view="grid"] span {
  background: linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}
.calc-catalog__filter-trigger { display: none; min-height: 44px; gap: 6px; padding: 8px 13px; }
.calc-matches { scroll-margin-top: calc(var(--header-height) + 16px); }
.calc-matches__count { align-self: center; margin: 0 3px; color: var(--text-muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.calc-matches__count span { color: var(--accent-dark); font-weight: 800; }
.calc-matches__note { margin-top: clamp(18px, 2vw, 28px); font-size: 13px; }
.calc-projects-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 1.55vw, 22px); }
.calc-project { min-width: 0; border-radius: clamp(13px, 1.3vw, 19px); background: var(--dark); }
.calc-project__link {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 216px;
  aspect-ratio: 3.5 / 1;
  padding: clamp(14px, 1.8vw, 23px);
  color: #fff;
}
.calc-project__link:focus-visible { outline: 3px solid #e9f5e7; outline-offset: -5px; border-radius: inherit; }
.calc-project__link .calc-project__image { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; }
.calc-project__image::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(10deg, rgba(12, 30, 22, .94), rgba(12, 30, 22, .6) 26%, transparent 65%);
}
.calc-project__labels { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.calc-project__labels > span {
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(20, 39, 29, .84);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.calc-project__labels .calc-project__visualization { background: #e5eee4; color: var(--accent-dark); }
.calc-project__body { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 0; }
.calc-project__body h3 { margin: 0; font-size: clamp(21px, 2.15vw, 32px); line-height: 1.12; letter-spacing: -.025em; overflow-wrap: anywhere; }
.calc-project__area { margin: 5px 0 0; color: #eef8ef; font-size: clamp(13px, 1.2vw, 16px); }
.calc-project__arrow {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  background: rgba(20, 39, 29, .64);
  font-size: 19px;
}
.calc-project__link:is(:hover, :focus-visible) .calc-project__arrow { background: #e5eee4; color: var(--accent-dark); }
.calc-project__link:hover img { transform: scale(1.025); }
.calc-matches[data-view="grid"] .calc-projects-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-matches[data-view="grid"] .calc-project__link { min-height: 194px; aspect-ratio: 5 / 3; }
.calc-empty { padding: clamp(18px, 3vw, 40px); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.calc-empty .btn { display: inline-flex; margin: 0 0 0 12px; }

.calc-filter-dialog {
  width: min(560px, calc(100% - 20px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
  color: var(--text);
}
.calc-filter-dialog[open] { display: flex; flex-direction: column; }
.calc-filter-dialog::backdrop { background: rgba(17, 32, 23, .48); }
html:has(.calc-filter-dialog[open]) { overflow: hidden; }
.calc-filter-dialog__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.calc-filter-dialog__heading h2 { margin: 0; font-size: 21px; }
.calc-filter-dialog__heading button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--accent-dark);
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}
.calc-filter-dialog .calc-fields { overflow-y: auto; overscroll-behavior: contain; }

.cta { color: var(--text); background: transparent; padding-block: 0 var(--section-space); }
.advantages + .cta { padding-top: var(--section-space); }
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(22px, 6vw, 86px);
  padding: clamp(20px, 4.6vw, 66px);
  border-radius: var(--radius);
  background: var(--surface-green);
}
.cta-text { max-width: 540px; }
.cta-text h2 { margin-bottom: 13px; }
.cta-text p { color: var(--text-muted); }
.cta-form { max-width: none; }
.lead-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lead-fields__name { grid-column: 1 / -1; }
.side-form .lead-fields { grid-template-columns: 1fr; }
[data-lead-form] label { display: grid; min-width: 0; gap: 5px; color: var(--text); font-size: 14px; font-weight: 650; }
[data-lead-form] input:not([type="hidden"]) {
  width: 100%;
  min-width: 0;
  min-height: 47px;
  padding: 9px 12px;
  border: 1px solid #bfcfc2;
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
[data-lead-form] input::placeholder { color: #647268; }
.cta-form__hint, .cta-form__note { color: var(--text-muted); font-size: 13px; }
.house-detail-card .side-form__hint { margin: 0; }
.cta-form__hint.is-error, .house-detail-card .side-form__error { color: #9b342d; }
.house-detail-card .side-form__success { color: var(--accent-dark); }
.cta-form > .btn, .side-form > .btn { align-self: flex-start; }
.cta-form .toast { position: static; transform: none; background: #fff; color: var(--accent-dark); }
.cta-form .toast--error { background: #fff2ef; color: #9b342d; }

.site-footer { padding-top: clamp(32px, 4.2vw, 64px); }
.site-footer .logo span { color: #b8d5bd; }
.footer-bottom { padding-inline: var(--page-gutter); }
.footer-text, .footer-col a, .footer-col span { color: #d0dad1; }
.footer-bottom, .footer-admin-link { color: #bfcfc2; }
.site-footer a:hover { color: #fff; }
.site-footer a:focus-visible { outline-color: #d5e8d6; }
.not-found { padding-block: var(--section-space); text-align: left; }

@media (max-width: 1120px) {
  .advantages-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-project { display: none; }
  .home-stages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .calc-catalog { grid-template-columns: minmax(0, 1fr); }
  .calc-catalog__sidebar { position: static; max-height: none; overflow: visible; }
  .calc-page[data-filter-dialog] .calc-catalog__sidebar { display: none; }
  .calc-page[data-filter-dialog] .calc-catalog__filter-trigger { display: inline-flex; }
  .calc-project__link { aspect-ratio: 1.65; }
}
@media (max-width: 900px) {
  .houses-grid:not(.portfolio-grid--featured) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages-layout, .house-detail-body { grid-template-columns: minmax(0, 1fr); }
  .timeline { max-height: clamp(200px, 38vh, 330px); }
  .gallery-main { aspect-ratio: 16 / 10; }
}
@media (max-width: 680px) {
  :root { --header-height: 65px; }
  .calc-catalog__search { flex-basis: 100%; }
  .calc-catalog__toolbar select { flex: 1; min-width: 0; }
  .calc-catalog__filter-trigger { flex: none; }
  .calc-empty .btn { display: flex; width: fit-content; margin: 12px 0 0; }
  .home-projects { --project-columns: 1; }
  .home-projects__actions { width: 100%; justify-content: space-between; }
  .project-gallery .gallery-main { aspect-ratio: 4 / 3; }
  .project-gallery .gallery-zoom-hint { right: 10px; bottom: 10px; padding: 5px 8px; font-size: 11px; }
  .hero { min-height: 0; }
  .hero-frame { min-height: clamp(470px, calc(88svh - var(--header-height)), 740px); }
  .hero-frame::before { background: linear-gradient(0deg, rgba(14, 25, 20, .94), rgba(14, 25, 20, .5) 48%, transparent 92%); }
  .hero-media { object-position: 64% center; }
  .hero-inner { padding: 62px var(--page-gutter) 30px; }
  .hero h1 { font-size: clamp(33px, 7.1vw, 45px); }
  .hero-frame > .media-caption { top: 10px; right: 10px; }
  .home-shortcuts ul, .home-design__layout, .cta-inner { grid-template-columns: minmax(0, 1fr); }
  .home-shortcuts li + li { border-top: 1px solid #c8d8cb; border-left: 0; }
  .home-shortcuts a { padding-inline: 4px; }
  .home-design__layout > img { height: auto; }
  .advantages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-grid--featured .portfolio-card { grid-template-columns: minmax(0, 1fr); }
  .specs-row { gap: 12px; }
}
@media (min-width: 1660px) {
  .calc-catalog { grid-template-columns: minmax(310px, 1fr) minmax(0, 2.8fr); }
}
@media (max-width: 575px) {
  .calc-catalog__views:not([hidden]) { display: none; }
  .calc-matches__count { flex-basis: 100%; margin: 2px 0 0; }
  .calc-matches[data-view="grid"] .calc-projects-list { grid-template-columns: minmax(0, 1fr); }
  .calc-matches .calc-project__link, .calc-matches[data-view="grid"] .calc-project__link { aspect-ratio: 1.15; }
}
@media (max-width: 500px) {
  .houses-grid:not(.portfolio-grid--featured), .lead-fields { grid-template-columns: minmax(0, 1fr); }
  .home-stage__title { grid-template-columns: minmax(0, 1fr); padding: 12px; font-size: 14px; }
  .home-stage__title span { display: none; }
  .gallery-main { aspect-ratio: 4 / 3; }
  .gallery-zoom-hint { right: 10px; bottom: 10px; }
  .stage-panel__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-panel__photo:is(:only-child, [data-kind="illustration"]:first-child) { grid-column: 1 / -1; }
  .advantages-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .house-card, .house-card__image img, .calc-project__image img { transition: none; }
  .home-projects__all span, .home-projects__arrow, .home-projects__positions button::before { transition: none; }
  .gallery-step { transition: none; }
}
