/* Компактный слой поверх базовых стилей */

/* ---------- Шапка ---------- */
.header__inner { min-height: 60px; padding-block: 8px; }

/* ---------- Первый экран ---------- */
.hero { padding: 12px 0 10px; }
.hero__title { margin-bottom: 8px; font-size: clamp(21px, 2.1vw, 28px); line-height: 1.15; }
.hero__subtitle { margin-bottom: 10px; font-size: 14px; line-height: 1.25; }
.hero__cards { gap: 10px; }
.feature-card { min-height: 56px; padding: 6px 14px; flex-direction: row; justify-content: flex-start; gap: 12px; text-align: left; }
.feature-card__icon { width: 32px; height: 32px; margin: 0; flex-shrink: 0; }
.feature-card__title { font-size: 14px; margin: 0; line-height: 1.25; }
.feature-card__text { font-size: 13px; line-height: 1.25; }

/* ---------- Калькулятор и форма ---------- */
.calc { padding: 10px 0 22px; }
.calc__head { margin-bottom: 8px; }
.calc__title { font-size: 22px; line-height: 1.2; margin: 0; }
.calc__subtitle { font-size: 13px; line-height: 1.3; }
.calc__grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.card { padding: 14px 16px; }
.card--params { display: flex; flex-direction: column; gap: 10px; }
.complex-select .select__control { height: 40px; padding: 0 40px 0 12px; }
.range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 190px); gap: 6px 12px; align-items: center; margin: 0; }
.range__slider.noUi-target { grid-column: 1 / -1; margin: 6px 10px 0; }
.range__scale { grid-column: 1 / -1; margin: 2px 0 0; font-size: 11px; }
.lead { margin-top: 12px; scroll-margin-top: 12px; }
.lead .input__control { height: 42px; }
.lead .btn { height: 42px; padding: 0 12px; letter-spacing: 0; text-transform: none; font-size: 14px; }
.consent { margin: 10px 0 0; }
.lead__error { margin: 8px 0 0; }
.card--results .btn { height: 42px; text-decoration: none; }
html { scroll-behavior: smooth; }

/* ---------- Мы предлагаем ---------- */
.offers { padding-top: 28px; }
.offers .section-title { margin-bottom: 14px; font-size: 26px; }
.offers__grid { gap: 12px; }
.offers__divider { margin-top: 28px; }
.offer-card { flex-direction: row-reverse; justify-content: flex-end; align-items: center; padding: 12px 16px; gap: 14px; }
.offer-card__icon { width: 32px; height: 32px; align-self: center; }
.offer-card__title { font-size: 15px; margin-bottom: 2px; }
.offer-card__text { font-size: 13px; line-height: 1.35; }

/* ---------- Контакты ---------- */
.contacts { padding: 28px 0; }
.contacts__title { font-size: 26px; margin-bottom: 14px; }
.contacts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; }
.contacts__city { margin-bottom: 8px; font-size: 16px; }
.contacts__address { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 14px; line-height: 1.45; color: #2c4ea6; text-decoration: underline; }
.contacts__address img { width: 32px; height: 32px; flex-shrink: 0; }
.contacts__info { display: flex; flex-direction: column; gap: 10px; }
.contacts__item { gap: 10px; align-items: center; }
.contacts__item img { width: 32px; height: 32px; margin: 0; }
.contacts__social-list { gap: 12px; }
.contacts__social-link, .contacts__social-link img { width: 32px; height: 32px; }

/* ---------- Футер ---------- */
.footer__disclaimer { padding-top: 14px; font-size: 11px; line-height: 1.5; opacity: .75; }
.footer__copy { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; opacity: 1; }
.footer__copy span, .footer__legal { color: rgba(255, 255, 255, .7); }
.footer__legal { font-size: 12px; }
.footer__legal:hover { color: #fff; text-decoration: underline; }
@media (max-width: 768px) { .footer__copy { justify-content: center; } }
.footer__inner { min-height: 0; padding-block: 12px; }

/* ---------- Окно одобрения ---------- */
.modal__icon { background: #e5f5e8; color: #278744; animation: modal-in .3s ease-out; }
.modal__disclaimer { color: #7c8596; font-size: 11px; line-height: 1.4; margin: 0 0 18px; }
.house { display: block; width: 200px; max-width: 100%; margin: 4px auto 12px; fill: none; }
.house__crane { stroke: #8e9bc0; stroke-width: 1.5; stroke-linejoin: round; }
.house__counter, #house-load { fill: #2c4ea6; stroke: none; }
.house__floor { opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease; }
.house__floor.is-built { opacity: 1; transform: none; }
.house__wall { fill: #dfe8fa; stroke: #2c4ea6; stroke-width: 1; }
.house__window { fill: #8e9bc0; transition: fill .4s ease; }
.house__roof { fill: #222288; opacity: 0; transition: opacity .3s ease; }
.house__ground { stroke: #1a2a5a; stroke-width: 2; stroke-linecap: round; }
.house.is-done .house__roof { opacity: 1; }
.house.is-done .house__window { fill: #f5a623; }
.progress { height: 6px; border-radius: 3px; background: #e6edfa; overflow: hidden; }
.progress__bar { display: block; width: 0; height: 100%; background: #2c4ea6; }
.progress__percent { margin: 6px 0 4px; font-size: 22px; font-weight: 700; color: #1a2a5a; font-variant-numeric: tabular-nums; }
#approval-status { min-height: 3em; margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .house__floor { transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .hero__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .feature-card { padding: 6px 10px; gap: 8px; }
}

@media (max-width: 768px) {
  /* телефон и языки остаются в одну-две строки рядом с логотипом */
  .header__inner { gap: 6px 12px; }
  .header__logo { flex: 1 1 auto; }
  .header__contacts { order: 3; flex-direction: row; width: 100%; }
  .header__lang { gap: 8px; }
  .offers__watermark, .contacts__watermark { font-size: clamp(58px, 16vw, 76px); }
  .offers__watermark { bottom: 0; }
}

@media (max-width: 760px) {
  .calc__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .hero { padding-top: 20px; }
  .hero__title { margin-bottom: 20px; }
  .hero__subtitle { margin-bottom: 16px; }
  .hero__cards { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .feature-card { min-height: 40px; padding: 4px 10px; gap: 10px; }
  .feature-card__title, .feature-card__text { display: inline; font-size: 13px; }
  .calc__title { font-size: 19px; }
  .calc__subtitle { display: none; }
  .range { grid-template-columns: minmax(0, 1fr) 150px; }
  .option__card--term { padding: 8px; }
  .option__payment { font-size: 15px; }
  .option__sub { font-size: 11px; }
}

/* ---------- Страницы документов ---------- */
.legal { display: flex; flex-direction: column; min-height: 100vh; }
.page.legal > .legal__main { flex: 1; padding: 20px 16px 32px; background: #f5f5f8; }
.legal__card { max-width: 860px; margin: 0 auto; padding: 24px 32px 32px; background: #fff; border-radius: 16px; box-shadow: 0 8px 32px rgba(34, 34, 136, .08); }
.legal__back { font-size: 13px; color: #2c4ea6; }
.legal__title { margin: 10px 0 18px; font-size: clamp(20px, 3vw, 28px); line-height: 1.25; }
.legal__content { font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.legal__content h2, .legal__content h3 { margin: 22px 0 8px; font-size: 17px; line-height: 1.35; }
.legal__content p, .legal__content ul, .legal__content ol, .legal__content blockquote { margin: 0 0 12px; }
.legal__content ul, .legal__content ol { padding-left: 22px; }
.legal__content ul { list-style: disc; }
.legal__content ol { list-style: decimal; }
.legal__content a { color: #2c4ea6; text-decoration: underline; }
@media (max-width: 640px) { .page.legal > .legal__main { padding: 12px 10px 24px; } .legal__card { padding: 16px; } }
