/* СипДом Pro — каталог 2026, палитра PDF */
:root {
  --green: #0d1b2a;
  --green-dark: #07111c;
  --mint: #e8eef4;
  --page: #f3f5f8;
  --white: #ffffff;
  --text: #1a2332;
  --muted: #5c6b7a;
  --line: #d4dce6;
  --line-soft: #e8eef4;
  --radius: 20px;
  --radius-lg: 32px;
  --radius-btn: 10px;
  --shadow: 0 16px 48px rgba(13, 27, 42, 0.12);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --wrap: 1240px;
  --hero-gold: #c4a574;
  --hero-gold-hover: #d4b88a;
  --navy: #0d1b2a;
  --navy-mid: #1b2d44;
  --gold: #c4a574;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--page);
  overflow-x: clip;
}
#app {
  max-width: 100%;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.boot-msg { padding: 4rem; text-align: center; color: var(--muted); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .wrap { padding: 0 22px; }
}
@media (min-width: 1024px) {
  .wrap { padding: 0 28px; }
}

/* HEADER — тёмно-синий как в PDF */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(196, 165, 116, 0.2);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}
@media (min-width: 1100px) {
  .header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  min-width: 0;
  text-decoration: none;
}
.logo__mark {
  width: 42px;
  height: 42px;
  color: var(--gold);
  flex-shrink: 0;
  display: block;
  transition: transform 0.2s ease, color 0.2s ease;
}
.logo__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.logo:hover .logo__mark {
  color: var(--hero-gold-hover);
  transform: translateY(-1px);
}
.logo__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.05;
}
.logo__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}
.logo__num {
  color: var(--gold);
  font-style: italic;
}
.logo__tag {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  white-space: nowrap;
}
.logo--footer {
  margin-bottom: 4px;
}
.logo--footer .logo__mark { color: var(--gold); }
.logo--footer .logo__name { color: #fff; }

/* legacy icon (если где-то остался) */
.logo__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.logo__icon svg { width: 22px; height: 22px; }
.logo__pro { color: var(--gold); }

@media (max-width: 639px) {
  .logo { gap: 8px; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__name { font-size: 1rem; }
  .logo__tag { font-size: 0.5625rem; letter-spacing: 0.06em; }
}

.nav {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}
@media (min-width: 1100px) { .nav { display: flex; } }
.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}
.nav a:hover { color: var(--gold); }

.header__end {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header__contact {
  display: none;
  text-align: right;
  line-height: 1.2;
}
@media (min-width: 1100px) { .header__contact { display: block; } }
.header__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}
.header__phones a {
  display: block;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #fff;
  white-space: nowrap;
  line-height: 1.3;
}
.header__phones a:hover { color: var(--gold); }
.header__hours {
  display: block;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
  white-space: nowrap;
}

.menu-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}
@media (min-width: 1100px) { .menu-btn { display: none; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 28px 20px;
  background: var(--navy-mid);
  border-top: 1px solid rgba(196, 165, 116, 0.2);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 12px 0;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu__phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
}
.mobile-menu__phone {
  font-weight: 700 !important;
  font-size: 1rem;
  color: var(--gold) !important;
  border-bottom: none !important;
  padding: 4px 0 !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); }
.btn--outline {
  background: var(--white);
  color: var(--green);
  border: 2px solid var(--green);
}
.btn--outline:hover { background: var(--mint); }
.btn--sm { padding: 11px 20px; font-size: 0.8125rem; }
.btn--block { width: 100%; }

/* Кнопка в шапке — золото на navy */
.header__end .btn--green {
  background: linear-gradient(180deg, #d4b88a 0%, var(--gold) 100%);
  color: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 10px rgba(196, 165, 116, 0.35);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.header__end .btn--green:hover {
  background: linear-gradient(180deg, #e0c79a 0%, var(--hero-gold-hover) 100%);
  box-shadow: 0 4px 16px rgba(196, 165, 116, 0.5);
  transform: translateY(-1px);
}
.header__end .btn--green:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(196, 165, 116, 0.3);
}

/* HERO — вариант C: компактный, золотой акцент */
.hero--forest {
  position: relative;
  min-height: 480px;
  padding: 0;
  margin-bottom: 0;
  overflow: hidden;
  background: #0d1b2a;
}
@media (min-width: 768px) {
  .hero--forest { min-height: 540px; }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(7, 17, 28, 0.92) 0%,
    rgba(13, 27, 42, 0.72) 45%,
    rgba(27, 45, 68, 0.45) 72%,
    rgba(13, 27, 42, 0.55) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  min-height: 480px;
  padding: 88px 20px 28px;
}
@media (min-width: 768px) {
  .hero__inner {
    min-height: 540px;
    padding: 96px 28px 32px;
  }
}
@media (min-width: 1024px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-items: end;
    gap: 20px 24px;
    padding: 100px 28px 36px;
  }
  .hero-glass {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
  }
  .hero--forest .hero-stats {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
  }
}

.hero-glass {
  max-width: 520px;
  padding: 22px 24px 26px;
  background: rgba(13, 27, 42, 0.78);
  border: 1px solid rgba(196, 165, 116, 0.32);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
@media (min-width: 768px) {
  .hero-glass { padding: 26px 28px 28px; }
}

.hero-glass__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(27, 45, 68, 0.7);
  border: 1px solid rgba(196, 165, 116, 0.45);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.hero-glass__title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-glass__accent {
  color: var(--hero-gold);
}

.hero-glass__lead {
  margin: 0 0 14px;
  max-width: 36rem;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.hero-glass__list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
@media (min-width: 480px) {
  .hero-glass__list { grid-template-columns: 1fr 1fr; column-gap: 16px; }
}
.hero-glass__list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}
.hero-glass__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(13, 27, 42, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4a574' stroke-width='2.5'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/10px no-repeat;
  border: 1px solid rgba(196, 165, 116, 0.4);
}

.hero-glass__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero--forest .btn--green {
  background: var(--hero-gold);
  color: #0d1b2a;
}
.hero--forest .btn--green:hover {
  background: var(--hero-gold-hover);
}

.btn--light {
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn--light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* Статистика — тёмное стекло, цифры золотые */
.hero--forest .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 0;
  padding-bottom: 0;
}
@media (min-width: 640px) {
  .hero--forest .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

.hero--forest .hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  background: rgba(13, 27, 42, 0.6);
  border: 1px solid rgba(196, 165, 116, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero--forest .hero-stat:hover {
  background: rgba(27, 45, 68, 0.72);
  border-color: rgba(196, 165, 116, 0.4);
}

.hero--forest .hero-stat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(196, 165, 116, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
  color: var(--hero-gold);
}
.hero--forest .hero-stat__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.hero--forest .hero-stat__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  line-height: 1.25;
}
.hero--forest .hero-stat__text strong {
  display: block;
  color: var(--hero-gold);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}
.hero--forest .hero-stat__text span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  line-height: 1.3;
}

/* PROJECTS */
.projects {
  padding: 8px 0 88px;
  background: var(--page);
}
.projects__title {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 400;
  text-align: center;
  letter-spacing: -0.02em;
}

.cards {
  display: grid;
  gap: 24px;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #b8c5d6;
  box-shadow: var(--shadow);
}

.card__img {
  position: relative;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  min-height: 220px;
  border: none;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 640px) {
  .card__img { min-height: 260px; }
}
@media (min-width: 1100px) {
  .card__img { min-height: 280px; aspect-ratio: 16 / 10; }
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--mint);
  display: block;
}
.card__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: #9ca3af;
  font-size: 1.05rem;
  line-height: 38px;
  text-align: center;
  cursor: default;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card__body { padding: 18px 20px 22px; }
.card__title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}
.card__meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.card__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-top: 14px;
}
.card__price-old {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
  line-height: 1.2;
}
.card__price-from {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}

/* Ниже по странице */
.section { padding: 72px 0; }
.section--white { background: var(--white); }
.section--page { background: var(--page); }
.section__label {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.section__title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 400;
}
.section__title--center { text-align: center; }
.section__sub {
  max-width: 560px;
  margin: 0 0 36px;
  color: var(--muted);
}
.section__sub--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.grid-3 { display: grid; gap: 20px; }
@media (min-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

.geo-cards { margin-top: 28px; }

.geo-faq {
  margin-top: 36px;
  max-width: 760px;
}
.geo-faq__title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
}
.geo-faq__item {
  border-top: 1px solid rgba(27, 45, 68, 0.12);
  padding: 12px 0;
}
.geo-faq__item:last-child {
  border-bottom: 1px solid rgba(27, 45, 68, 0.12);
}
.geo-faq__item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.geo-faq__item summary::-webkit-details-marker { display: none; }
.geo-faq__item summary::before {
  content: '+';
  display: inline-block;
  width: 1.1em;
  color: var(--green);
  font-weight: 700;
}
.geo-faq__item[open] summary::before { content: '–'; }
.geo-faq__item p {
  margin: 10px 0 4px;
  color: var(--muted);
  line-height: 1.55;
}
.tile {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tile h3 { margin: 0 0 8px; font-size: 1.1rem; }
.tile p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.tile__ico { color: var(--green); margin-bottom: 12px; }
.tile__ico svg { width: 28px; height: 28px; }

.calc {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1.15fr; } }
.calc__side {
  padding: 36px 28px;
  color: #fff;
  background: var(--green);
}
.calc__side .section__title { color: #fff; }
.calc__list { margin: 16px 0 0; padding: 0; list-style: none; }
.calc__list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 0.9rem;
}
.calc__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
}
.quiz { padding: 32px 28px; background: var(--white); }
.quiz__bar {
  height: 6px;
  margin: 6px 0 20px;
  border-radius: 3px;
  background: #e4eaf0;
  overflow: hidden;
}
.quiz__fill { height: 100%; background: var(--green); }
.quiz__opt {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 14px 16px;
  text-align: left;
  border: 2px solid #e4eaf0;
  border-radius: var(--radius-btn);
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
}
.quiz__opt.is-on {
  border-color: var(--green);
  background: var(--mint);
  color: var(--green);
}
.quiz input {
  width: 100%;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
}

.contact-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 992px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-box {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-box .tel {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) {
  .contact-box .tel { font-size: 1.35rem; }
}
.form {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.form label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 600; }
.form input,
.form textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
}
.form textarea { min-height: 96px; }

.footer { background: #07111c; color: #fff; }
.footer__top {
  padding: 40px 0;
  background: var(--green);
}
.footer__top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__top h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: #fff;
}
.footer__grid {
  display: grid;
  gap: 28px;
  padding: 48px 0 0;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 {
  margin: 0 0 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.5;
}
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: 6px; opacity: 0.85; }
.footer__copy {
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.45;
}

/* Модальное окно проекта */
body.modal-open { overflow: hidden; }

.house-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(7, 17, 28, 0.72);
  backdrop-filter: blur(4px);
}
@media (min-width: 640px) {
  .house-modal-bg {
    align-items: center;
    padding: 20px;
  }
}

.house-modal {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
@media (min-width: 640px) {
  .house-modal {
    max-width: 560px;
    border-radius: 24px;
    max-height: 90vh;
  }
}

/* Одна колонка на мобиле, две на ПК: фото | текст */
.house-modal__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.house-modal__gallery {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  background: #0d1b2a;
  line-height: 0;
}

.house-modal__panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 18px 22px;
  background: var(--white);
}

.house-modal__specs {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  background: transparent;
  max-height: none;
  overflow: visible;
}
.house-modal__specs.is-hidden { display: none; }
.house-modal__specs-title {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.house-modal__specs .house-modal__chips {
  margin-bottom: 14px;
}
.house-modal__specs .house-modal__package {
  margin-bottom: 0;
}

/* ПК: фото слева, панель справа — без наложений */
@media (min-width: 900px) {
  .house-modal-bg {
    padding: 24px 32px;
  }
  .house-modal {
    width: min(1080px, 94vw);
    max-width: 1080px;
    max-height: 88vh;
    border-radius: 28px;
  }
  .house-modal__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    z-index: 5;
  }
  .house-modal__body {
    flex-direction: row;
    align-items: stretch;
  }
  .house-modal__gallery {
    flex: 0 0 52%;
    width: 52%;
    max-width: 52%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    overflow: hidden;
    background: #0d1b2a;
  }
  .house-modal__main {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    background: #0d1b2a;
  }
  .house-modal__thumbs {
    margin-top: 0;
    flex-shrink: 0;
    padding: 14px 18px 16px;
    background: #132337;
    gap: 10px;
  }
  .house-modal__thumb {
    width: 76px;
    height: 58px;
    border-radius: 10px;
  }
  .house-modal__price-tag {
    top: auto;
    bottom: 80px;
    left: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 240px;
  }
  .house-modal__price-tag s { font-size: 0.8125rem; }
  .house-modal__price-tag strong { font-size: 1.35rem; }
  .house-modal__badge {
    top: 18px;
    left: 18px;
    padding: 8px 14px;
    font-size: 0.8125rem;
  }
  .house-modal__nav {
    width: 48px;
    height: 48px;
    font-size: 1.75rem;
  }
  .house-modal__panel {
    flex: 1 1 48%;
    width: 48%;
    max-width: 48%;
    min-width: 0;
    padding: 28px 32px 28px;
    border-left: 1px solid var(--line-soft);
  }
  .house-modal__title {
    font-size: clamp(1.6rem, 2vw, 2rem);
    margin-bottom: 8px;
    padding-right: 48px;
  }
  .house-modal__sub {
    font-size: 1rem;
    margin-bottom: 18px;
    line-height: 1.5;
  }
  .house-modal__label {
    font-size: 0.75rem;
    margin-bottom: 10px;
  }
  .house-modal__tabs {
    gap: 8px;
    margin-bottom: 14px;
    flex-direction: column;
  }
  .house-modal__tab {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
  }
  .house-modal__tab-name { font-size: 0.9rem; }
  .house-modal__tab-price { font-size: 0.8rem; margin-top: 4px; }
  .house-modal__specs {
    margin-top: 20px;
    padding-top: 18px;
  }
  .house-modal__specs-title {
    font-size: 0.8125rem;
    margin-bottom: 14px;
  }
  .house-modal__specs .house-modal__chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
  }
  .house-modal__chip {
    padding: 10px 12px;
    font-size: 0.875rem;
    border-radius: 12px;
  }
  .house-modal__chip-ico svg { width: 20px; height: 20px; }
  .house-modal__specs .house-modal__package {
    padding: 18px 20px;
    border-radius: 16px;
  }
  .house-modal__pkg-name { font-size: 1.1rem; }
  .house-modal__pkg-desc { font-size: 0.9rem; line-height: 1.5; }
  .house-modal__pkg-price span { font-size: 1.25rem; }
  .house-modal__pkg-price s { font-size: 0.85rem; }
  .house-modal__features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px 16px;
    max-height: none;
    overflow: visible;
  }
  .house-modal__features li {
    font-size: 0.875rem;
    line-height: 1.45;
    padding-left: 26px;
  }
  .house-modal__features li::before {
    width: 16px;
    height: 16px;
    top: 2px;
  }
  .house-modal__cta {
    padding: 14px 24px;
    font-size: 1rem;
  }
  .house-modal__note {
    font-size: 0.8125rem;
    margin-top: 10px;
  }
  .house-modal__form-title { font-size: 1.4rem; }
  .house-modal__form-sub { font-size: 0.9rem; }
  .house-modal__form input,
  .house-modal__form textarea {
    padding: 12px 14px;
    font-size: 1rem;
  }
}

@media (min-width: 1200px) {
  .house-modal {
    width: min(1140px, 92vw);
    max-width: 1140px;
  }
  .house-modal__features {
    grid-template-columns: 1fr 1fr;
  }
  .house-modal__panel {
    padding: 32px 36px 32px;
  }
}

.house-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.house-modal__gallery {
  /* layout задаётся в блоке .house-modal__body */
}

.house-modal__main {
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: center center;
  background: #0d1b2a;
}
@media (min-width: 640px) {
  .house-modal__main { height: 320px; }
}

.house-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.house-modal__nav--prev { left: 12px; }
.house-modal__nav--next { right: 12px; }

.house-modal__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #c4a574;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.house-modal__price-tag {
  position: absolute;
  top: auto;
  bottom: 64px;
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  max-width: calc(100% - 28px);
  line-height: 1.3;
  z-index: 3;
}
.house-modal__price-tag s {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
  white-space: nowrap;
}
.house-modal__price-tag strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.house-modal__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 14px 12px;
  overflow-x: auto;
  background: #0d1b2a;
  margin-top: 0;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.house-modal__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.75;
}
.house-modal__thumb.is-active {
  border-color: #fff;
  opacity: 1;
}
.house-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* aside — см. .house-modal__aside выше */

.house-modal__title {
  margin: 0 0 6px;
  padding-right: 36px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}
.house-modal__sub {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

.house-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.house-modal__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}
.house-modal__chip-ico {
  color: var(--green);
  display: grid;
  place-items: center;
}
.house-modal__chip-ico svg { width: 18px; height: 18px; }

.house-modal__label {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.house-modal__tabs {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 16px;
  max-height: none;
}
.house-modal__tab {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--page);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.house-modal__tab.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.house-modal__tab-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
}
.house-modal__tab-price {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  opacity: 0.85;
}
.house-modal__tab.is-active .house-modal__tab-price { color: #d4c4a0; }

.house-modal__package {
  margin-bottom: 18px;
  padding: 16px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.house-modal__pkg-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.house-modal__pkg-name {
  display: block;
  font-size: 1rem;
  color: var(--green);
}
.house-modal__pkg-desc {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.house-modal__pkg-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 108px;
  text-align: right;
}
.house-modal__pkg-price s {
  display: block;
  order: 1;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
  line-height: 1.25;
  white-space: nowrap;
}
.house-modal__pkg-price span {
  display: block;
  order: 2;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--green);
  white-space: nowrap;
}
@media (max-width: 420px) {
  .house-modal__pkg-head {
    flex-direction: column;
    align-items: stretch;
  }
  .house-modal__pkg-price {
    align-items: flex-start;
    text-align: left;
    min-width: 0;
  }
}

.house-modal__features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-height: none;
  overflow: visible;
}
@media (min-width: 480px) {
  .house-modal__features { grid-template-columns: 1fr 1fr; column-gap: 14px; }
}
.house-modal__features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text);
}
.house-modal__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/9px no-repeat;
}

.house-modal__cta { margin-top: 4px; }
.house-modal__note {
  margin: 12px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

#modalDetails.is-hidden,
#modalActions.is-hidden { display: none; }

.house-modal__form-wrap {
  display: none;
  margin-bottom: 8px;
}
.house-modal__form-wrap.is-open { display: block; }

.house-modal__form-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}
.house-modal__form-sub {
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}
.house-modal__form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}
.house-modal__form input,
.house-modal__form textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--white);
}
.house-modal__form textarea { resize: vertical; min-height: 72px; }
.house-modal__back {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.house-modal__back:hover { color: var(--green); }

.house-modal__success {
  padding: 24px 16px;
  text-align: center;
  background: var(--mint);
  border: 1px solid #b8c5d6;
  border-radius: 16px;
}
.house-modal__success.is-hidden { display: none; }
.house-modal__success p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Калькулятор — всплывающее окно */
.calc-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 17, 28, 0.72);
  backdrop-filter: blur(4px);
}

.calc-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.calc-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.calc-modal__head {
  padding: 22px 52px 16px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.calc-modal__title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}
.calc-modal__step {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.calc-modal__bar {
  height: 6px;
  border-radius: 3px;
  background: #e4eaf0;
  overflow: hidden;
}
.calc-modal__fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width 0.25s ease;
}

.calc-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.calc-modal__question {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}
.calc-modal__hint {
  margin: -8px 0 16px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.calc-modal__opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-modal__opt,
.quiz .calc-modal__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.calc-modal__opt:hover { border-color: #b8c5d6; }
.calc-modal__opt.is-on {
  border-color: var(--green);
  background: var(--mint);
}

.calc-modal__radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #b8c5d6;
  border-radius: 50%;
  background: var(--white);
}
.calc-modal__opt.is-on .calc-modal__radio {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 4px var(--white);
}

.calc-modal__opt-text {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
}

.calc-modal__form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}
.calc-modal__form input {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: #f3f5f8;
}
.calc-modal__submit { margin-top: 4px; }

.calc-modal__success {
  text-align: center;
  padding: 16px 0;
}
.calc-modal__success p { margin: 0 0 12px; line-height: 1.5; }

.calc-modal__foot {
  padding: 12px 24px 18px;
  border-top: 1px solid var(--line-soft);
  background: #f3f5f8;
}
.calc-modal__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: none;
  background: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.calc-modal__back:hover:not(:disabled) { color: var(--green); }
.calc-modal__back:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ——— Мобильная версия: всё в экран, без горизонтального скролла ——— */
@media (max-width: 639px) {
  .header__inner {
    min-height: 58px;
    gap: 8px;
  }
  .logo {
    gap: 8px;
    min-width: 0;
  }
  .logo__mark {
    width: 36px;
    height: 36px;
  }
  .logo__name { font-size: 0.95rem; }
  .logo__tag { display: none; }
  .header__end { gap: 8px; min-width: 0; }
  .header__end .btn--sm {
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.7rem;
    max-width: 46vw;
  }
  .menu-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .mobile-menu { padding: 8px 16px 16px; }

  .hero--forest {
    min-height: 0;
  }
  .hero__inner {
    min-height: 0;
    padding: 68px 0 16px;
    gap: 12px;
    justify-content: flex-end;
  }
  .hero-glass {
    width: 100%;
    max-width: none;
    padding: 14px 14px 16px;
    border-radius: 16px;
  }
  .hero-glass__badge {
    margin-bottom: 10px;
    padding: 5px 10px;
    font-size: 0.6875rem;
  }
  .hero-glass__title {
    margin-bottom: 10px;
    font-size: clamp(1.35rem, 7.5vw, 1.65rem);
    line-height: 1.15;
  }
  .hero-glass__list {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 12px;
  }
  .hero-glass__list li {
    font-size: 0.75rem;
    padding-left: 22px;
  }
  .hero-glass__list li::before {
    width: 16px;
    height: 16px;
    top: 0;
  }
  .hero-glass__btns {
    flex-direction: column;
    gap: 8px;
  }
  .hero-glass__btns .btn {
    width: 100%;
    white-space: normal;
    padding: 11px 14px;
    font-size: 0.8125rem;
  }

  .hero--forest .hero-stats {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
  .hero--forest .hero-stat {
    padding: 8px 8px;
    gap: 7px;
    min-width: 0;
  }
  .hero--forest .hero-stat__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .hero--forest .hero-stat__icon svg {
    width: 17px;
    height: 17px;
  }
  .hero--forest .hero-stat__text strong {
    font-size: 0.8125rem;
    word-break: break-word;
  }
  .hero--forest .hero-stat__text span {
    font-size: 0.6rem;
    line-height: 1.2;
    word-break: break-word;
  }

  .section { padding: 48px 0; }
  .projects { padding-bottom: 56px; }
  .projects__title { margin-bottom: 28px; font-size: 1.5rem; }
  .tile { padding: 20px 16px; }
  .calc__side,
  .quiz { padding: 22px 16px; }
  .calc-modal-bg { padding: 10px; align-items: flex-end; }
  .calc-modal {
    max-height: 92dvh;
    max-height: 92svh;
    border-radius: 18px 18px 0 0;
  }
  .calc-modal__head {
    padding: 16px 44px 12px 16px;
  }
  .calc-modal__title { font-size: 1.15rem; }
  .calc-modal__body { padding: 14px 16px; }
  .calc-modal__question { font-size: 1.05rem; }
  .calc-modal__foot { padding: 10px 16px 14px; }
}

@media (max-width: 380px) {
  .header__end .btn--sm {
    max-width: 40vw;
    font-size: 0.65rem;
    padding: 7px 8px;
  }
  .hero--forest .hero-stat__text strong { font-size: 0.75rem; }
  .hero--forest .hero-stat__text span { font-size: 0.5625rem; }
  .hero--forest .hero-stat__icon {
    width: 28px;
    height: 28px;
  }
}
