/* ============================================================================
   «КАРКАСНЫЙ ДОМ БЕЗ ИПОТЕКИ» — стили посадочной (template-bez-ipoteki.php).
   26.09.2026 собрана, 28.09.2026 переделана на готовые блоки сайта (владелец:
   «не изобретать велосипед»). Подключается ТОЛЬКО этим шаблоном.

   Вид разделов даёт scandi.css — у каждого блока своя штатная разметка:
   .scandi-home-hero, витрина .scandi-feat (её стили повторены здесь), .adv-glass,
   .scandi-prose-card, .scandi-cta2, .scandi-msteps, блок комплектаций (.scandi-cpm/.scandi-cpc,
   его стили печатает includes/compl-proto.php), .scandi-mprog, лента
   .scandi-works, отзывы .scandi-rv, .scandi-faq, .scandi-form.
   Здесь — только то, чего у блоков нет, и всё под .scandi-bi / .scandi-bi-*.
   Общие файлы стилей не трогаем.
   ========================================================================== */

.scandi-bi { background: var(--c-cream, #f6f1e7); }
.scandi-bi #doma,
.scandi-bi #raschet,
.scandi-bi #chto-vhodit,
.scandi-bi #pochemu-deshevle,
.scandi-bi #oplata-po-etapam { scroll-margin-top: 96px; }
@media (max-width: 760px) {
  .scandi-bi #doma,
  .scandi-bi #raschet,
  .scandi-bi #chto-vhodit,
  .scandi-bi #pochemu-deshevle,
  .scandi-bi #oplata-po-etapam { scroll-margin-top: 72px; }
}

/* ── Первый экран ─────────────────────────────────────────────────────────────
   Галочки, строка под ценой и кнопки на главной оформлены стилем внутри
   components/top-block.php, в scandi.css их нет — повторяем те же правила. */
/* терраса слева в кадре; снизу берём больше — знак фотографа в правом верхнем углу уходит за край */
.scandi-bi-hero .scandi-home-hero__bg img { object-position: 28% 72%; }
.scandi-bi-hero .scandi-home-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.scandi-bi-hero .scandi-home-hero__proofs { display: flex; flex-direction: column; gap: 7px; margin: 17px 0 0; padding: 0; list-style: none; }
.scandi-bi-hero .scandi-home-hero__proofs li {
  display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 0;
  font-size: 13.5px; line-height: 1.35;
  color: rgba(240, 232, 218, .9) !important; -webkit-text-fill-color: rgba(240, 232, 218, .9) !important;
}
.scandi-bi-hero .scandi-home-hero__proofs li::before { content: none; }
.scandi-bi-hero .scandi-home-hero__proofs svg { flex: 0 0 auto; margin-top: 1px; color: #d4ad6e; }
/* низкий десктоп (ноутбук 1366×700): иначе кнопка расчёта уходит под сгиб */
@media (min-width: 561px) and (max-height: 820px) {
  .scandi-bi-hero .scandi-home-hero__title:not(#_):not(#_) { font-size: clamp(30px, 2.9vw, 41px) !important; line-height: 1.12 !important; }
  .scandi-bi-hero .scandi-home-hero__lead:not(#_):not(#_) { font-size: 15px !important; line-height: 1.45 !important; }
  .scandi-bi-hero .scandi-home-hero__plate { padding-top: 30px; padding-bottom: 30px; }
  .scandi-bi-hero .scandi-home-hero__price { margin-top: 18px !important; }
  .scandi-bi-hero .scandi-home-hero__price-value { font-size: 30px !important; }
  .scandi-bi-hero .scandi-home-hero__ctas { margin-top: 20px !important; }
  .scandi-bi-hero .scandi-home-hero__proofs { margin-top: 13px; gap: 6px; }
}
@media (max-width: 560px) {
  .scandi-bi-hero .scandi-home-hero__title:not(#_):not(#_) { font-size: 29px !important; line-height: 1.14 !important; }
  .scandi-bi-hero .scandi-home-hero__lead:not(#_):not(#_) { font-size: 14px !important; line-height: 1.45 !important; margin-bottom: 14px !important; }
  .scandi-bi-hero .scandi-home-hero__price-value { font-size: 29px !important; }
  .scandi-bi-hero .scandi-home-hero__ipo { font-size: 12px !important; }
  .scandi-bi-hero .scandi-home-hero__cta { width: 100%; min-height: 48px; text-align: center; justify-content: center; font-size: 13.5px !important; padding: 13px 16px !important; }
  .scandi-bi-hero .scandi-home-hero__proofs { gap: 6px; margin-top: 13px; }
  .scandi-bi-hero .scandi-home-hero__proofs li { width: 100%; font-size: 12.5px; }
}

/* ── Почему дешевле: проза-карта с фото + две панели сравнения ─────────── */
.scandi-bi .scandi-seosec { padding: 40px 0; }
@media (max-width: 640px) { .scandi-bi .scandi-seosec { padding: 26px 0; } }
.scandi-bi-head { max-width: none; margin: 0 0 22px; text-align: center; }
.scandi-bi-head .scandi-seosec__title { margin: 12px 0 0; }

.scandi-bi-why__card { max-width: 1120px; }
.scandi-bi-why__card.scandi-prose-card--cols { align-items: start; }
.scandi-bi-why__media { margin: 0; }
.scandi-bi-why__img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 12px;
}
.scandi-bi-why__media figcaption { margin-top: 10px; font: 400 13px/1.5 var(--font-ui); color: var(--c-ink-2); }
/* облёт проекта рядом с текстом: кадр 3:2, пока видео не пошло — виден постер */
.scandi-bi-why__video {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 12px; background: #e9e0cf;
}
@media (max-width: 900px) {
  .scandi-bi-why__card.scandi-prose-card--cols { grid-template-columns: 1fr; gap: 20px; }
}

/* панели .scandi-cta2 стоят внутри .container — свой боковой отступ им не нужен */
.scandi-bi-vs { box-sizing: border-box; max-width: 1120px; padding: 26px 0 0; }
.scandi-bi-vs .scandi-cta2__sub { margin-bottom: 0; }
.scandi-bi-vs__price {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px;
  width: 100%; margin-top: auto; padding-top: 18px;
  border-top: 1px solid rgba(166, 124, 58, .22);
}
.scandi-bi-vs .scandi-cta2__sub + .scandi-bi-vs__price { margin-top: 22px; }
.scandi-bi-vs__price span {
  font: 600 12px/1.3 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: #785728;
}
.scandi-bi-vs__price b {
  font: 800 clamp(24px, 2.4vw, 30px)/1.1 var(--font-display); letter-spacing: -.01em;
  font-feature-settings: 'tnum' 1, 'lnum' 1; white-space: nowrap;
  color: #6b5f4e; -webkit-text-fill-color: #6b5f4e;
}
.scandi-cta2__panel--dark .scandi-bi-vs__price { border-top-color: rgba(212, 173, 110, .26); }
.scandi-cta2__panel--dark .scandi-bi-vs__price span { color: #d4ad6e; }
.scandi-cta2__panel--dark .scandi-bi-vs__price b {
  background: linear-gradient(135deg, #e8c987, #c19a5b); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ── Оплата по этапам: шесть шагов сеткой 3 × 2 (как у SEO-страниц) ─────── */
.scandi-bi-steps .scandi-mstep { display: flex; flex-direction: column; }
.scandi-bi-step__pct {
  position: absolute; top: 24px; right: 20px;
  padding: 5px 11px; border-radius: 999px;
  font: 700 13px/1 var(--font-ui); color: #14100d; background: linear-gradient(135deg, #d4ad6e, #c19a5b);
}
.scandi-bi-steps .scandi-msteps__note { max-width: 640px; text-align: center; line-height: 1.55; }
.scandi-bi-steps__more a { color: var(--c-gold-dark, #a67c3a); border-bottom: 1px solid rgba(166, 124, 58, .35); }
.scandi-bi-steps__more a:hover { color: var(--c-gold, #c19a5b); }

/* ── Дома программы: витрина .scandi-feat с главной, сразу под баннером ─────
   Правила — копия стилей витрины из components/catalog.php: там они лежат внутри
   компонента и печатаются только на главной и страницах стилей. Здесь всё под
   .scandi-bi-feat, чтобы не задеть ничего чужого. Отличия от главной помечены. */
.scandi-bi-feat { padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 3.4vw, 44px); }
.scandi-bi-feat .scandi-feat__head { text-align: center; margin-bottom: 30px; }
.scandi-bi-feat .scandi-feat__eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a67c3a !important; -webkit-text-fill-color: #a67c3a !important; margin-bottom: 10px; }
.scandi-bi-feat .scandi-feat__title { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.15; color: #2c2c2c !important; -webkit-text-fill-color: #2c2c2c !important; }
/* у главной подписи под заголовком нет; здесь она говорит, что за цена на панно */
.scandi-bi-feat__lead { max-width: 640px; margin: 12px auto 0; font-size: 15.5px; line-height: 1.6; color: var(--c-ink-2); }
.scandi-bi-feat .scandi-feat { display: grid; grid-template-columns: repeat(10, 1fr); gap: 18px; }
.scandi-bi-feat .scandi-feat__card { position: relative; display: block; border-radius: 18px; overflow: hidden; background: #2a1f14; box-shadow: 0 16px 40px rgba(60, 42, 12, .15); transition: transform .3s, box-shadow .3s; }
.scandi-bi-feat .scandi-feat__card:hover { transform: translateY(-4px); box-shadow: 0 24px 54px rgba(60, 42, 12, .22); }
.scandi-bi-feat .scandi-feat__card--hero { grid-column: 1 / -1; aspect-ratio: 1764 / 768; }
.scandi-bi-feat .scandi-feat__card--half { grid-column: span 5; height: clamp(270px, 26vw, 390px); }
.scandi-bi-feat .scandi-feat__card--small { grid-column: span 4; height: clamp(270px, 26vw, 390px); }
.scandi-bi-feat .scandi-feat__card--big { grid-column: span 6; height: clamp(270px, 26vw, 390px); }
.scandi-bi-feat .scandi-feat__img,
.scandi-bi-feat .scandi-feat__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(1.06) saturate(1.02); }
.scandi-bi-feat .scandi-feat__vid { opacity: 0; visibility: hidden; transition: opacity .45s; pointer-events: none; }
.scandi-bi-feat .scandi-feat__card.is-playing.is-video-ready .scandi-feat__vid { opacity: 1; visibility: visible; }
/* подложка текста: у главной градиент с 62 %, здесь под ценой ещё строка — начинаем выше */
.scandi-bi-feat .scandi-feat__card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 11, 4, 0) 50%, rgba(18, 11, 4, .68) 100%); pointer-events: none; }
.scandi-bi-feat .scandi-feat__info { position: absolute; left: clamp(16px, 2.4vw, 30px); right: clamp(16px, 2.4vw, 30px); bottom: clamp(14px, 2vw, 24px); z-index: 2; display: grid; gap: 5px; }
.scandi-bi-feat .scandi-feat__code { justify-self: start; padding: 6px 14px; border-radius: 999px; background: rgba(18, 11, 4, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: #e7c88b !important; -webkit-text-fill-color: #e7c88b !important; }
.scandi-bi-feat .scandi-feat__specs { font-size: clamp(13px, 1.2vw, 15.5px); font-weight: 600; color: rgba(255, 250, 240, .92) !important; -webkit-text-fill-color: rgba(255, 250, 240, .92) !important; text-shadow: 0 1px 8px rgba(18, 11, 4, .5); }
.scandi-bi-feat .scandi-feat__price { font-size: clamp(17px, 1.9vw, 24px); font-weight: 700; color: #fff !important; -webkit-text-fill-color: #fff !important; text-shadow: 0 1px 10px rgba(18, 11, 4, .55); }
.scandi-bi-feat .scandi-feat__badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 7px 14px; border-radius: 999px; background: linear-gradient(135deg, #c19a5b, #a67c3a); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff !important; -webkit-text-fill-color: #fff !important; box-shadow: 0 6px 16px rgba(60, 42, 12, .3); }
/* отличие от главной: рядом с ценой без ипотеки — зачёркнутая цена каталога,
   под ней строка «что это за цена» и цена тёплого контура */
.scandi-bi-feat__old { margin-left: 8px; font-size: .62em; font-weight: 600; color: rgba(255, 250, 240, .8) !important; -webkit-text-fill-color: rgba(255, 250, 240, .8) !important; text-decoration-thickness: 1.5px; }
.scandi-bi-feat__sub { font-size: clamp(12px, 1vw, 13.5px); font-weight: 500; color: rgba(255, 250, 240, .88) !important; -webkit-text-fill-color: rgba(255, 250, 240, .88) !important; text-shadow: 0 1px 8px rgba(18, 11, 4, .6); }
/* кнопка под витриной — как «Смотреть все 150+ проектов» на главной */
.scandi-bi-feat .scandi-feat__all { display: block; max-width: 460px; margin: 30px auto 6px; padding: 17px 30px; text-align: center; border-radius: 14px; background: linear-gradient(135deg, #c19a5b, #a67c3a); font-size: 16.5px; font-weight: 700; letter-spacing: .02em; color: #fff !important; -webkit-text-fill-color: #fff !important; box-shadow: 0 14px 34px rgba(96, 66, 20, .35); transition: transform .25s, box-shadow .25s; animation: scandiBiPulse 4.5s ease-in-out 1.5s infinite; }
.scandi-bi-feat .scandi-feat__all:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(96, 66, 20, .45); text-decoration: none; }
@keyframes scandiBiPulse { 0%, 78%, 100% { transform: scale(1); } 88% { transform: scale(1.035); } }
@media (prefers-reduced-motion: reduce) { .scandi-bi-feat .scandi-feat__all { animation: none; } }
.scandi-bi-feat__note { max-width: 640px; margin: 12px auto 0; text-align: center; font-size: 12.5px; line-height: 1.5; color: #746754; }

/* панно «Нет подходящего?» — приём плитки «150+ проектов» со страницы ипотеки */
.scandi-bi-feat .scandi-bi-feat__other::after { background: linear-gradient(180deg, rgba(18, 11, 4, .30) 0%, rgba(18, 11, 4, .84) 100%); }
.scandi-bi-feat__other-body { position: absolute; left: clamp(18px, 2.6vw, 34px); right: clamp(18px, 2.6vw, 34px); bottom: clamp(18px, 2.4vw, 30px); z-index: 2; display: grid; gap: 8px; }
.scandi-bi-feat__other-num { font-size: clamp(38px, 3.6vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -.02em; background: linear-gradient(135deg, #e8c074, #c19a5b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.scandi-bi-feat__other-text { max-width: 44ch; font-size: clamp(13.5px, 1.2vw, 15px); line-height: 1.5; color: #f3ecdc !important; -webkit-text-fill-color: #f3ecdc !important; }
.scandi-bi-feat__other-cta { justify-self: start; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #e7c88b !important; -webkit-text-fill-color: #e7c88b !important; transition: transform .25s; }
.scandi-bi-feat .scandi-bi-feat__other:hover .scandi-bi-feat__other-cta { transform: translateX(4px); }

@media (max-width: 760px) {
  /* телефон — как на главной: панно во всю ширину экрана, квадрат 1:1 (мобильная
     версия кадра <имя>-mobile.webp), у кого квадрата нет — родные 3:2 */
  .scandi-bi-feat .scandi-feat { grid-template-columns: 1fr; gap: 16px; width: 100vw; margin-left: calc(50% - 50vw); }
  .scandi-bi-feat .scandi-feat__card,
  .scandi-bi-feat .scandi-feat__card--hero,
  .scandi-bi-feat .scandi-feat__card--half,
  .scandi-bi-feat .scandi-feat__card--small,
  .scandi-bi-feat .scandi-feat__card--big { grid-column: 1 / -1; height: auto; aspect-ratio: 1 / 1; min-height: 0; max-height: none; border-radius: 0; }
  .scandi-bi-feat .scandi-feat__card--no-vert { aspect-ratio: 3 / 2; }
  .scandi-bi-feat .scandi-bi-feat__other.scandi-feat__card--no-vert { aspect-ratio: 4 / 3; }
  .scandi-bi-feat .scandi-feat__card .scandi-feat__img { object-position: center; }
  .scandi-bi-feat .scandi-feat__all { max-width: none; margin: 20px 0 4px; }
  .scandi-bi-feat__lead { font-size: 14.5px; }
}

/* ── Карточки-цифры: отдельной полосой после витрины ───────────────────────
   На главной сетка .adv-glass поднята на 64 px (22–28 px на телефоне) и лежит на
   фото баннера. Здесь над ней витрина домов — наезд снимаем, иначе карточки
   залезут на кнопку расчёта. */
.scandi-bi-adv.adv-glass { padding-top: clamp(22px, 3vw, 40px); }
html body .scandi-bi-adv .adv-glass__grid:not(#_):not(#_) { margin-top: 0 !important; }

/* ── Состав комплектаций: шапка как у соседних разделов, строка под блоком ── */
.scandi-bi-cp__head { max-width: 760px; margin: 0 auto; text-align: center; }
html body .scandi-bi-cp .scandi-bi-cp__head h2.title:not(#_):not(#_):not(#_) {
  margin: 12px 0 0; text-align: center;
  font-size: var(--scandi-sec-title, clamp(26px, 2.6vw, 32px)) !important; font-weight: 700 !important;
  line-height: 1.2 !important; letter-spacing: -0.01em !important;
}
.scandi-bi-cp__head .scandi-cpl__hint { max-width: 620px; margin: 14px auto 0; }
.scandi-bi-cp .scandi-bi-cp__perks { max-width: 820px; margin: 22px auto 0; text-align: center; }
/* на телефоне карточка блока уходит в края отрицательным отступом −24 px — он
   рассчитан на поля контейнера страницы проекта (24 px). У этой страницы поля
   16 px, и карточка вылезала за экран на 8 px с каждой стороны. */
@media (max-width: 767px) {
  html body .scandi-bi-cp > .container:not(#_):not(#_) { padding-left: 24px; padding-right: 24px; }
}

/* ── Кому подходит: три карточки в ряд, «ставка» бывает словами ────────── */
.scandi-bi .scandi-mprog__title b {
  font-weight: inherit;
  background: linear-gradient(135deg, #d4ad6e, #a67c3a); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@media (min-width: 1001px) {
  .scandi-bi-who .scandi-mprog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.scandi-bi-who { padding-bottom: clamp(38px, 4.6vw, 70px); }

/* ── Форма расчёта: два выпадающих списка поверх штатной формы ─────────── */
.scandi-bi-form { padding-top: 10px; padding-bottom: 56px; }
.scandi-bi-form__select { position: relative; cursor: pointer; }
.scandi-bi-form__select select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-right: 28px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.scandi-bi-form__select::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
  border-right: 1.6px solid var(--c-gold-dark); border-bottom: 1.6px solid var(--c-gold-dark);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
