/* IDEA DOM — стили сайта. Палитра и шрифт сняты с ideadom.ru 02.11.2026: Inter Tight, #06070F, акцент #4EADF8 — синий логотипа (Артём, 10.11.2026; прежний var(--c-accent) — для наведения), фон блоков #F0F3F5. */
:root {
  --c-text: #06070f;
  --c-muted: #6f7985;
  --c-line: #aeb9c2;
  --c-bg: #ffffff;
  --c-soft: #f0f3f5;
  --c-accent: #4eadf8;
  --c-accent-2: #3592db;
  --c-dark: #363c47;
  --c-alert: #f95d51;
  --radius: 8px;
  --radius-lg: 20px;
  --container: 1200px;
  --gap: 20px;
  --font: "Inter Tight", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; } /* окно заявки не сдвигает фон на ширину полосы прокрутки */
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--c-text); background: var(--c-bg); }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; font-weight: 700; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: .95; }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
p { margin: 0 0 1em; }
.muted { color: var(--c-muted); font-size: 14px; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: clamp(40px, 6vw, 80px); }
.section--top { padding-top: clamp(100px, 12vw, 140px); }
.icon { width: 20px; height: 20px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 22px; border-radius: var(--radius); border: 0; font: 700 14px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: var(--c-accent-2); }
.btn--dark { background: var(--c-text); color: #fff; }
.btn--light { background: var(--c-soft); color: var(--c-text); }
.btn--wide { width: 100%; }
.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--c-accent); color: #fff; font-size: 12px; font-weight: 600; }
.badge--muted { background: var(--c-dark); }

/* Внутренние страницы: светлые плашки; главная: тёмное стекло, как в живом исходнике.
   Открытая панель остаётся светлой; прозрачность применяется только к фону, не к тексту. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; pointer-events: none; }
.site-header__wrap { pointer-events: auto; margin: 7px; padding: 14px; border-radius: 16px; transition: background .2s; }
.site-header.is-open .site-header__wrap { background: #f0f3f5; box-shadow: 0 20px 60px rgba(6,7,15,.18); }
.site-header__overlay { position: fixed; inset: 0; z-index: 40; background: rgba(6,7,15,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.site-header__bar { display: flex; align-items: stretch; gap: 4px; height: 52px; }
.pill { background: #f0f2f5; border-radius: 10px; display: flex; align-items: center; padding: 0 14px; transition: background .2s; }
.site-header.is-open .pill { background: #fff; }
.site-header__logo { padding: 0 17px; }
.site-header__logo a { display: block; }
.site-header__logo svg, .site-header__logo img { width: 129px; height: auto; max-height: 31px; display: block; }
.site-header__catalog, .site-header__nav button { border: 0; font: 600 13px/1 var(--font); color: var(--c-text); cursor: pointer; background: none; }
.site-header__catalog { gap: 10px; padding: 0 22px; background: #f0f2f5; white-space: nowrap; }
.site-header__catalog[aria-expanded="true"], .site-header__nav button[aria-expanded="true"] { color: #a7b0ba; }
.icon-grid { width: 10px; height: 10px; background: linear-gradient(currentColor 0 0) 0 0 / 4px 4px no-repeat, linear-gradient(currentColor 0 0) 6px 0 / 4px 4px no-repeat, linear-gradient(currentColor 0 0) 0 6px / 4px 4px no-repeat, linear-gradient(currentColor 0 0) 6px 6px / 4px 4px no-repeat; }
.site-header__nav { padding: 0 12px; }
.site-header__nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; height: 100%; }
.site-header__nav .menu > li { display: flex; height: 100%; }
.site-header__nav .menu a, .site-header__nav .menu button { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 100%; font: 600 13px/1 var(--font); text-decoration: none; white-space: nowrap; color: var(--c-text); }
.site-header__nav .menu a:hover, .site-header__nav .menu button:hover { color: var(--c-accent); }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.site-header__right { margin-left: auto; padding: 0 4px 0 10px; gap: 4px; }
.site-header__socials { display: flex; align-items: center; }
.site-header__socials .social { display: grid; place-items: center; width: 43px; height: 45px; color: var(--c-text); }
.site-header__socials .social .icon { width: 18px; height: 18px; }
.site-header__socials .social:hover { color: var(--c-accent); }
.site-header__phone .phone { display: flex; align-items: center; height: 45px; padding: 0 19px; background: #fff; border: 1px solid #dfe4e9; border-radius: 7px; font: 600 13px/1 var(--font); }
.site-header__cta.btn { min-height: 45px; height: 45px; padding: 0 20px; white-space: nowrap; border-radius: 7px; font: 600 13px/1 var(--font); }
.phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.phone--big { font-size: 22px; }
.site-header__mob { display: none; margin-left: auto; padding: 0 4px; gap: 0; }
.site-header__burger { display: flex; align-items: center; gap: 8px; height: 45px; padding: 0 12px; border: 0; background: none; cursor: pointer; font: 600 13px/1 var(--font); color: var(--c-text); }
.site-header__socials--mob .social { width: 38px; }

/* ideadom.ru home, 04.11.2026: #06070F at 60%, backdrop blur 20px, white foreground. */
.home .site-header:not(.is-open):not(.is-light) .pill { background: rgba(6,7,15,.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.home .site-header:not(.is-open):not(.is-light) .site-header__catalog,
.home .site-header:not(.is-open):not(.is-light) .site-header__nav .menu a,
.home .site-header:not(.is-open):not(.is-light) .site-header__nav .menu button,
.home .site-header:not(.is-open):not(.is-light) .site-header__socials .social,
.home .site-header:not(.is-open):not(.is-light) .site-header__phone .phone { color: #fff; }
.home .site-header:not(.is-open):not(.is-light) .site-header__logo svg [fill="#06070F"] { fill: #fff; }
.home .site-header:not(.is-open):not(.is-light) .site-header__phone .phone { background: rgba(255,255,255,.1); border-color: transparent; }
.home .site-header:not(.is-open):not(.is-light) .site-header__cta { background: #fff; color: var(--c-text); }
.home .site-header:not(.is-open):not(.is-light) .site-header__cta:hover { background: var(--c-soft); }
.home .site-header:not(.is-open):not(.is-light) .site-header__burger { color: #fff; }

/* Выпадающие панели */
.hpanel { margin-top: 16px; max-height: calc(100vh - 110px); overflow: auto; }
.hpanel[hidden] { display: none; }
.hcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.hcard { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 346 / 500; color: #fff; text-decoration: none; background: #c9d1d8; }
.hcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hcard:hover .hcard__img { transform: scale(1.04); }
.hcard__cap { position: absolute; left: 7px; right: 7px; bottom: 7px; min-height: 96px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px; border-radius: 8px; background: rgba(40,40,40,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hcard__title { font: 600 24px/1.05 var(--font); }
.hcard__icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.hcard__icon svg { width: 16px; height: 16px; }
.hpanel--about { display: grid; grid-template-columns: minmax(0, 908fr) minmax(0, 489fr); gap: 4px; }
.hpanel--about .hcards { grid-template-columns: minmax(0, 584fr) minmax(0, 319fr); grid-template-rows: 250px 250px; }
.hpanel--about .hcard { aspect-ratio: auto; }
.hpanel--about .hcard:first-child { grid-row: span 2; }
.hpanel--about .hcard__cap { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; align-items: flex-end; min-height: 0; padding: 18px 16px; }
.hpanel--about .hcard::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.hpanel--about .hcard__cap { z-index: 1; }
.hcontacts { background: #fff; border-radius: 12px; padding: 44px 38px 40px; display: flex; flex-direction: column; }
.hcontacts__mail { font: 700 32px/1.1 var(--font); text-decoration: none; letter-spacing: -.01em; }
.hcontacts__phone { margin-top: 18px; } .hcontacts__phone .phone { font: 700 15px/1 var(--font); }
.hcontacts__msg { display: flex; gap: 4px; margin-top: 36px; }
.hcontacts__msg a { width: 48px; height: 48px; border-radius: 7px; background: var(--c-accent-2); color: #fff; display: grid; place-items: center; }
.hcontacts__msg .icon { width: 18px; height: 18px; }
.hcontacts__links { list-style: none; margin: auto 0 0; padding: 40px 0 0; columns: 2; column-gap: 40px; max-width: 220px; font: 600 12px/1.6 var(--font); }
.hcontacts__links a { color: #6f7985; text-decoration: none; }
.hcontacts__links a:hover { color: var(--c-accent); }
.hcat { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 14px; }
.hcat__list { list-style: none; margin: 0; padding: 38px 24px; background: #fff; border-radius: 12px; display: grid; grid-template-columns: repeat(2, 278px); grid-template-rows: repeat(4, auto); grid-auto-flow: column; row-gap: 30px; align-content: start; min-height: 504px; }
.hcat__list a { display: grid; grid-template-columns: 38px auto; column-gap: 0; text-decoration: none; color: var(--c-text); }
.hcat__num { grid-row: 1; padding-top: 8px; font: 400 11px/1 var(--font); color: #a7b0ba; }
.hcat__name { grid-row: 1; font: 700 31px/1 var(--font); letter-spacing: -.02em; transition: color .2s; }
.hcat__sub { grid-column: 2; margin-top: 6px; font: 400 12px/1.2 var(--font); color: #6f7985; }
.hcat__list a:hover .hcat__name { color: var(--c-accent); }
.hcat__promo { position: relative; border-radius: 12px; overflow: hidden; background: #3a3d43; min-height: 504px; }
.hcat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.hcat__box { position: absolute; left: 7px; right: 7px; top: 7px; padding: 24px 24px 20px; border-radius: 8px; background: rgba(40,40,40,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; }
.hcat__box p { margin: 0 0 44px; font: 400 12px/1.45 var(--font); opacity: .85; max-width: 250px; }
.hcat__more { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--font); color: #fff; text-decoration: none; opacity: .8; }
.hcat__more:hover { opacity: 1; }
.hcat__arrow { width: 14px; height: 14px; border-radius: 50%; background: #fff; -webkit-mask: url("icons/menu-arrow_1.svg") center / contain no-repeat; mask: url("icons/menu-arrow_1.svg") center / contain no-repeat; }

.mobile-menu { margin-top: 12px; background: #fff; border-radius: 12px; padding: 24px; max-height: calc(100vh - 100px); overflow: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; font-size: 18px; font-weight: 600; }
.mobile-menu__list a { text-decoration: none; }
.mobile-menu__list .sub-menu { list-style: none; padding: 8px 0 0 14px; display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.mobile-menu__contacts { display: grid; gap: 12px; margin-bottom: 16px; }
.mobile-menu__socials { display: flex; flex-wrap: wrap; gap: 12px; }

/* Шапка без переполнения на всех ширинах 1101–1440 (замер 05.11): мессенджеры как на Tilda видны с 1200px. */
@media (max-width: 1400px) {
  .site-header__nav .menu a, .site-header__nav .menu button { padding: 0 7px; }
  .site-header__socials:not(.site-header__socials--mob) .social { width: 30px; }
}
@media (max-width: 1199px) {
  .site-header__socials { display: none; }
}
@media (max-width: 1160px) {
  .site-header__nav .menu a, .site-header__nav .menu button { padding: 0 5px; }
}
@media (max-width: 1100px) {
  .site-header__nav, .site-header__right, .site-header__catalog, .hpanel { display: none !important; }
  .site-header__mob { display: flex; }
  .site-header__socials--mob { display: flex; }
  .site-header__wrap { margin: 0; padding: 12px; }
  .site-header.is-open .site-header__wrap { background: transparent; box-shadow: none; }
}
@media (max-width: 640px) {
  .site-header__catalog { display: none; }
  .site-header__bar { height: 48px; }
}

/* Хлебные крошки */
.crumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--c-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--c-accent); }
/* Геометрия крошек карточки из живого Tilda: screens 360/640/980/1200/1502.
   Нативный nav остаётся в потоке: длинная цепочка переносится, а не обрезается. */
.project > .crumbs { --crumb-unit: calc(100vw / 1502); --crumb-left: var(--crumb-wide-left, 120); --crumb-top: 116; padding-top: calc(var(--crumb-unit) * var(--crumb-top)); padding-bottom: calc(var(--crumb-unit) * 12); }
.project > .crumbs ol { position: relative; margin: 0 0 0 calc(var(--crumb-unit) * var(--crumb-left)); padding: 0; gap: 0; align-items: center; font-size: calc(var(--crumb-unit) * 10); line-height: calc(var(--crumb-unit) * 12); font-weight: 700; color: var(--c-text); }
.project > .crumbs ol::before { content: ""; flex-shrink: 0; margin-right: var(--crumb-unit); width: calc(var(--crumb-unit) * 6); height: calc(var(--crumb-unit) * 6); border-radius: var(--crumb-unit); background: var(--c-accent); }
.project > .crumbs li { display: flex; align-items: center; min-height: calc(var(--crumb-unit) * 14); }
.project > .crumbs li + li::before { content: none; }
.project > .crumbs li:not(:last-child)::after { content: "/"; flex-shrink: 0; width: calc(var(--crumb-unit) * 6); text-align: center; font-size: calc(var(--crumb-unit) * 12); color: var(--c-line); }
.project[data-series="individual"] > .crumbs { --crumb-wide-left: 40; --crumb-mid-left: 40; --crumb-tablet-top: 116; }
.project > .crumbs a, .project > .crumbs span { display: block; padding-inline: calc(var(--crumb-unit) * 7); }
.project > .crumbs span[aria-current] { color: var(--c-muted); }
.project > .project-hero { padding-top: 0; }
@media (max-width: 1501px) { .project > .crumbs { --crumb-unit: calc(100vw / 1200); --crumb-left: var(--crumb-mid-left, 89); } }
@media (max-width: 1199px) { .project > .crumbs { --crumb-unit: calc(100vw / 980); --crumb-left: 32; } }
@media (max-width: 979px) { .project > .crumbs { --crumb-unit: calc(100vw / 640); --crumb-left: 24; --crumb-top: var(--crumb-tablet-top, 120); } }
@media (max-width: 639px) { .project > .crumbs { --crumb-unit: calc(100vw / 360); --crumb-left: 18; --crumb-top: 96; } }

/* Общие Zero-секции нативной карточки — самостоятельные блоки, не оверлеи
   следующего Tilda rec. Абсолютные элементы ВНУТРИ artboard не меняем. */
.project > .ideadom-zero .t396__artboard[data-artboard-pos="absolute"] { position: relative !important; inset: auto !important; z-index: 0 !important; }
.project > .ideadom-zero:has(.t396__artboard[data-artboard-pos="absolute"]) { padding-bottom: clamp(40px, 6vw, 80px); }

.project-technical .project-technical__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--c-muted); }
.project-technical__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c-accent); flex-shrink: 0; }
.project-technical .project-technical__intro { max-width: 76ch; margin: 0 0 28px; font-size: 16px; line-height: 1.6; color: #59636f; }
.project-technical__legacy-anchor { display: block; scroll-margin-top: calc(var(--ideadom-page-offset, 80px) + 16px); }

/* Карточка проекта / объекта */
.project-hero { padding-top: clamp(90px, 10vw, 120px); }
.project-hero__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
.project-hero__info { position: sticky; top: 80px; display: grid; gap: 14px; }
.project-hero__info h1 { margin: 0; }
.specs { margin: 0; display: grid; gap: 8px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--c-soft); }
.specs dt { color: var(--c-muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.price { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin: 0; }
.price s { font-size: 16px; color: var(--c-muted); font-weight: 400; margin-left: 8px; }
.price small { font-size: 16px; color: var(--c-muted); font-weight: 400; }
.price-note { font-size: 13px; color: var(--c-muted); margin: 0; }
.messengers { display: flex; flex-wrap: wrap; gap: 8px; }
.link-arrow { color: var(--c-accent); font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
@media (max-width: 900px) { .project-hero__grid { grid-template-columns: 1fr; } .project-hero__info { position: static; } }
/* Обзор дома — компактная пара «фото / основные данные», не колонка конфигуратора. */
.project .project-hero__info { position: static; gap: 12px; }
.project .project-hero__grid--no-media { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.project-hero__actions { display: grid; gap: 4px; }
.project-hero__actions .link-arrow { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; font-size: 14px; }
.project-hero__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.project-hero__specs div { gap: 8px; padding-bottom: 6px; align-items: baseline; }
.project-hero__specs dt { font-size: 13px; color: #59636f; }
.project-hero__specs dd { font-size: 14px; white-space: nowrap; }
.project .project-hero__info .messengers .btn { min-height: 44px; padding: 8px 10px; font-size: 13px; }

/* Галереи */
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius-lg); gap: 0; scrollbar-width: thin; }
.slider .gallery__item { scroll-snap-align: start; }
.slider img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gallery--grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
/* «Живые фото» (до 44 фото): на телефоне — свайп-лента, как слайдер Tilda (было ~10 000px столбиком);
 * на десктопе первые 8 фото и кнопка «Показать все» (site.js). Лайтбокс листает все фото. */
@media (max-width: 639px) {
  .gallery--grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto;
    overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery--grid::-webkit-scrollbar { display: none; }
  .gallery--grid > * { scroll-snap-align: start; }
  .gallery__more { display: none !important; }
}
@media (min-width: 640px) {
  .gallery--grid.is-collapsed > .gallery__item:nth-child(n+9) { display: none; }
}
.gallery__more { display: block; margin: 20px auto 0; }
.gallery--plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.gallery--plans img { border-radius: var(--radius); background: var(--c-soft); }
.gallery__item { display: block; }

/* Встраивания */
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-soft); display: grid; place-items: center; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--tour { aspect-ratio: 16 / 8; }

/* Сетки карточек */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
.news-related { background: var(--c-soft); }
.news-related .cards--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.news-related .card { background: #fff; border-radius: var(--radius-lg); padding: 12px; }
/* Другие проекты серии: колонки по числу карточек (2–4), на телефоне — лента с прокруткой вместо четырёх экранов. */
.project-related .cards--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.project-related .card__price { white-space: nowrap; }
@media (max-width: 600px) {
  .project-related .cards--4 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .project-related .card { scroll-snap-align: start; }
}
.card__link { display: grid; gap: 8px; text-decoration: none; }
.card__img { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-soft); aspect-ratio: 3 / 2; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card__img img.ideadom-guide-cover { object-fit: contain; }
.card__link:hover img.ideadom-guide-cover { transform: none; }
.card__link:hover img { transform: scale(1.03); }
.card__img .badge { position: absolute; top: 12px; left: 12px; }
.card__title { margin: 4px 0 0; font-size: 20px; }
.card__meta { margin: 0; color: var(--c-muted); font-size: 14px; }
.card__price { margin: 0; font-weight: 700; font-size: 18px; }
.block-heading { margin-bottom: 24px; }

.series-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.series-tile { display: grid; gap: 6px; text-decoration: none; padding: 14px; border-radius: var(--radius-lg); background: var(--c-soft); }
.series-tile img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
.series-tile__num { color: var(--c-muted); font-size: 13px; }
.series-tile__name { font-weight: 700; font-size: 18px; }

.mortgages { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.mortgage { background: var(--c-soft); border-radius: var(--radius-lg); padding: 24px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.item { background: var(--c-soft); border-radius: var(--radius-lg); padding: 20px; }
.item img { border-radius: var(--radius); margin-bottom: 12px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.items--partner .item { display: grid; place-items: center; text-align: center; }
.items--partner .item img { aspect-ratio: auto; object-fit: contain; max-height: 80px; width: auto; }

/* Контент из редактора */
.entry > * { max-width: 100%; }
/* Long source URLs are valid content, not a reason to widen mobile articles. */
.entry a { overflow-wrap: anywhere; }
/* This cloned Zero navigation inherits its 640-grid offset on the 360 grid.
   Keep its scroll container, but centre it using the actual mobile base width. */
@media (max-width: 639px) {
  main .ideadom-zero .tn-group[data-group-id="1788537169595000001"] { left: calc(50% - 180px); }
}
.entry--page > :where(:not(.alignfull)) { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.entry--page > .alignwide { width: min(1400px, calc(100% - 40px)); }
.entry--page > .alignfull { width: 100%; }
.entry ul, .entry ol { padding-left: 1.2em; }
.entry li + li { margin-top: .3em; }
.entry .wp-block-group.has-background { border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); }
.entry .wp-block-cover { border-radius: var(--radius-lg); overflow: hidden; }
.entry .wp-block-button__link { border-radius: var(--radius); font-weight: 700; padding: 14px 22px; background: var(--c-accent); }
.entry .wp-block-details { border-bottom: 1px solid var(--c-soft); padding: 14px 0; }
.entry .wp-block-details summary { font-weight: 600; cursor: pointer; }
.entry--page > * + * { margin-top: clamp(40px, 6vw, 80px); }
.page-content--front .entry--page > :first-child { margin-top: 0; }
.tech-specs .wp-block-details summary { font-size: 18px; }

/* Подвал */
.site-footer { background: var(--c-text); color: #fff; padding: 60px 0 24px; margin-top: 80px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--c-accent-2); }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 2fr 1.2fr; gap: 40px; }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__contacts { display: grid; gap: 10px; align-content: start; }
.site-footer__socials { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer__socials .social { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.site-footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.site-footer .muted { color: #aeb9c2; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Попап */
.popup { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.popup[hidden] { display: none; }
.popup__overlay { position: absolute; inset: 0; background: rgba(6,7,15,.6); }
.popup__box { position: relative; background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.popup__close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 32px; line-height: 1; cursor: pointer; color: var(--c-muted); }
.popup__contacts { display: grid; gap: 16px; }
.popup__socials { display: flex; flex-wrap: wrap; gap: 14px; }
body.has-popup { overflow: hidden; }

/* Стенд */
#wp-admin-bar-ideadom-env > .ab-item { background: #b32d2e !important; color: #fff !important; }

/* Калькулятор стоимости */
.calc { background: var(--c-soft); border-radius: var(--radius-lg); padding: 18px; display: grid; gap: 12px; }
.calc__title { margin: 0; font-weight: 700; font-size: 18px; }
.calc__group { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.calc__group legend { font-size: 13px; color: var(--c-muted); margin-bottom: 4px; padding: 0; }
.calc__choice { display: grid; grid-template-columns: auto minmax(0, 1fr) max-content; gap: 10px; align-items: center; background: #fff; border-radius: var(--radius); padding: 10px 12px; cursor: pointer; font-size: 14px; }
.calc__label { min-width: 0; overflow-wrap: anywhere; }
/* NBSP alone can still break under overflow-wrap:anywhere. Protect each amount. */
.ideadom-money, .calc__delta, .calc__base-price, [data-total] { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.calc__choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--c-accent); }
.calc__choice input { accent-color: var(--c-accent); width: 18px; height: 18px; margin: 0; }
.calc__delta { color: var(--c-muted); white-space: nowrap; font-size: 13px; }
.calc__total { margin: 4px 0 0; font-size: 22px; font-weight: 700; }
.price small { font-size: 16px; font-weight: 400; color: var(--c-muted); }

/* Полноширинный конфигуратор: опции слева, итог отдельным компактным блоком. */
.project-estimate { padding-top: 32px; }
.calc--wide { grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); gap: 24px; padding: 24px; align-items: start; }
.calc__groups { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; align-items: start; }
.calc--wide .calc__group { min-width: 0; }
.calc--wide[data-preset="turnkey"] > .price-note { grid-column: 1 / -1; line-height: 1.6; margin: 0; }
.calc [data-turnkey-status] { font-weight: 600; color: #414a54; line-height: 1.5; }
.calc--wide .calc__group legend { color: #414a54; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.calc--wide .calc__choice { min-height: 48px; }
.calc--wide .calc__label { min-width: 0; overflow-wrap: anywhere; }
.calc--wide .calc__delta { color: #59636f; }
.calc__summary { position: sticky; top: var(--ideadom-page-offset, 110px); display: grid; gap: 14px; background: #fff; border-radius: var(--radius); padding: 24px; }
.calc__base-label { margin: 0; font-size: 14px; color: #59636f; }
.calc__base-price { margin: -8px 0 0; font-size: 20px; font-weight: 600; }
.calc__summary .calc__total { border-top: 1px solid var(--c-soft); padding-top: 18px; font-size: 16px; }
.calc__summary output { display: block; margin-top: 4px; font-size: clamp(24px, 2.3vw, 30px); white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 901px) { .calc__groups { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .calc--wide { grid-template-columns: 1fr; } .calc__summary { position: static; } }
@media (max-width: 600px) { .calc--wide { padding: 14px; gap: 20px; } .calc__groups { grid-template-columns: 1fr; gap: 20px; } .calc__summary { padding: 18px; } }

/* Данные из таблицы цен: этапы, сравнение, под ключ, инвесторам, видео */
.stages__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.stage{background:var(--c-light,#F0F3F5);border-radius:16px;padding:24px}
.stage h3{margin:0 0 8px;font-size:18px}
.stage__price{font-size:28px;font-weight:600;margin:0 0 8px}
.stage p{margin:0 0 6px;color:#363C47}.stage__sub{font-size:14px;color:#6F7985!important}
.stage--accent{background:#06070F;color:#fff}.stage--accent p{color:#d6dbe1}
.block-note{font-size:14px;color:#6F7985;margin-top:12px}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.compare{width:100%;border-collapse:collapse;font-size:15px}
.compare th,.compare td{padding:12px 10px;border-bottom:1px solid #e3e7eb;text-align:left;vertical-align:top}
.compare thead th{font-size:13px;color:#6F7985;font-weight:500}
.compare tbody th small{display:block;color:#6F7985;font-weight:400;font-size:12px}
.compare td{white-space:nowrap}.compare--two td{text-align:right;width:1%}
.turnkey-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.turnkey-card{background:#F0F3F5;border-radius:16px;overflow:hidden}
.turnkey-card a{color:inherit;text-decoration:none}.turnkey-card img{width:100%;height:auto;display:block}
.turnkey-card h3{margin:16px 20px 8px}.turnkey-card dl{margin:0 20px 20px}
.turnkey-card dl div,.specs--wide div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid #dfe4e8}
.turnkey-card dd,.specs--wide dd{margin:0;white-space:nowrap}.turnkey-card__total{font-weight:600}
.specs--wide{max-width:640px}
.media-links__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.media-link p{margin:8px 0 0;color:#6F7985;font-size:14px}
.term-check{margin:4px 0;color:#363C47}.term-check::before{content:"✓ ";color:var(--c-accent);font-weight:700}

/* Формы заявок (окна #popup:…) */
.popup__title { margin: 0 32px 8px 0; font-size: clamp(22px, 3vw, 28px); line-height: 1.15; }
.popup__text { margin: 0 0 20px; color: var(--c-muted, #6F7985); }
.lead-form { display: grid; gap: 12px; }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form select, .lead-form textarea { width: 100%; height: 52px; border: 1px solid #d3dde5; border-radius: 10px; padding: 0 16px; font: inherit; font-size: 16px; background: #fff; color: #06070F; }
.lead-form select { appearance: none; -webkit-appearance: none; padding-right: 48px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2306070F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px; cursor: pointer; }
.lead-form textarea { min-height: 52px; padding-block: 12px; resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 0; border-color: var(--c-accent); }
.lead-form__label { display: block; font-size: 14px; color: #6F7985; margin-bottom: 6px; }
.lead-form__consent { display: flex; gap: 10px; font-size: 13px; line-height: 1.4; color: #6F7985; align-items: flex-start; }
.lead-form__consent input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 18px; }
.lead-form__consent a { color: inherit; text-decoration: underline; }
.lead-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lead-form__error { margin: 0; color: #d1242f; font-size: 14px; }
.lead-form__error a { color: inherit; font-weight: 600; }
.lead-form__test { margin: 0; font-size: 13px; color: #b35c00; }
.lead-form[data-state=pending] .lead-form__submit { opacity: .7; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.popup__box--media { width: min(960px, 100%); padding: 44px 16px 16px; }
.popup__box--media video { width: 100%; border-radius: 12px; display: block; }
.popup__box--media .embed iframe[data-src]:not([src]) { background: #06070F; }

/* Квиз (перенос с Tilda) */
#idq { margin-top: 8px; margin-bottom: 40px; color: #06070F; scroll-margin-top: 90px; }
#idq .w { background: #F0F3F5; border-radius: 20px; overflow: hidden; display: flex; min-height: 320px; }
#idq .ph { flex: 0 0 30%; background: #dfe5ea center/cover no-repeat; position: relative; }
#idq .ph b { position: absolute; left: 18px; bottom: 16px; color: #fff; font-size: 20px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
#idq .b { flex: 1; padding: 26px 32px; }
#idq .k { font-size: 26px; font-weight: 700; line-height: 1.15; margin: 0 0 6px; } #idq .k span { color: var(--c-accent); }
#idq .kh { font-size: 15px; color: #4b5563; margin: 0 0 18px; }
#idq .top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
#idq .rn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #d5dbe0; background: #fff; cursor: pointer; font-size: 16px; flex: 0 0 34px; color: #06070F; }
#idq .bar { flex: 1; max-width: 360px; } #idq .lb { font-size: 13px; color: #6b7280; margin-bottom: 6px; }
#idq .tr { height: 4px; background: #dfe5ea; border-radius: 2px; } #idq .tr i { display: block; height: 4px; background: var(--c-accent); border-radius: 2px; transition: width .25s; }
#idq .q { font-size: 19px; font-weight: 600; margin: 0 0 12px; }
#idq .ts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
#idq .t { border: 1px solid #d5dbe0; background: #fff; border-radius: 12px; padding: 14px; text-align: left; cursor: pointer; font: inherit; font-size: 15px; color: #06070F; transition: border-color .15s, box-shadow .15s; }
#idq .t:hover { border-color: var(--c-accent); box-shadow: 0 2px 10px rgba(78,173,248,.2); }
#idq .t.s { padding: 0; overflow: hidden; } #idq .t.s img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
#idq .t.s span { display: block; padding: 8px 10px 10px; font-size: 14px; } #idq .t small { display: block; color: #6b7280; font-size: 12px; margin-top: 2px; }
#idq .cf { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; max-width: 640px; } #idq .cf .full { grid-column: 1/-1; }
#idq input[type=text], #idq input[type=tel] { width: 100%; height: 48px; border-radius: 10px; border: 1px solid #d5dbe0; background: #fff; padding: 0 14px; font: inherit; font-size: 16px; margin: 4px 0 10px; color: #06070F; }
#idq .f { font-size: 13px; color: #6b7280; }
#idq .ch { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
#idq .ch button { border: 1px solid #d5dbe0; background: #fff; border-radius: 16px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 14px; color: #06070F; }
#idq .ch button.on { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
#idq .cs { display: flex; gap: 8px; font-size: 12px; color: #6b7280; margin: 2px 0 12px; align-items: flex-start; } #idq .cs a { color: inherit; }
#idq .go { width: 100%; height: 52px; border: 0; border-radius: 10px; background: var(--c-accent); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; } #idq .go[disabled] { opacity: .6; }
#idq .er { color: #d12; font-size: 13px; min-height: 16px; margin: -6px 0 6px; } #idq .al { font-size: 13px; color: #6b7280; margin: 10px 0 0; } #idq .al a { color: var(--c-accent); }
#idq-pill { position: fixed; left: 20px; bottom: 20px; z-index: 90; border: 0; border-radius: 28px; background: var(--c-accent); color: #fff; font: 600 15px/1 inherit; font-family: inherit; padding: 15px 24px; box-shadow: 0 6px 20px rgba(6,7,15,.25); cursor: pointer; display: none; }
@media (max-width: 960px) { #idq .ts { grid-template-columns: 1fr 1fr; } #idq .ph { flex-basis: 26%; } }
@media (max-width: 640px) {
  #idq { margin-top: 4px; margin-bottom: 28px; } #idq .w { flex-direction: column; min-height: 0; } #idq .ph { flex: 0 0 140px; min-height: 140px; }
  #idq .b { padding: 18px 16px; } #idq .k { font-size: 21px; } #idq .kh { font-size: 14px; margin-bottom: 14px; } #idq .q { font-size: 17px; }
  #idq .t { padding: 12px; } #idq .cf { grid-template-columns: 1fr; } #idq.np .ph { display: none; } #idq .t.s img { aspect-ratio: 16/9; }
  #idq-pill { left: 12px; bottom: 14px; padding: 13px 20px; }
}
.lead-inline { max-width: 560px; }
.lead-inline h2 { margin-bottom: 8px; }

/* Главная: кнопка под «Популярными проектами» (Артём, 10.11.2026) */
.home-catalog-cta { display: flex; justify-content: center; margin: 0; padding: 0 20px 64px; background: var(--c-soft); }
.home-catalog-cta .btn { min-width: 260px; min-height: 56px; font-size: 16px; }

/* Video 10.11: scoped native object/technical layouts, not shared Zero geometry. */
.project-technical { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.entry.project-technical > .project-technical__intro, .entry.project-technical > .project-technical__panels { min-width: 0; max-width: none; margin: 0; }
.project-technical__intro h2 { margin-top: 0; font-size: clamp(28px, 3vw, 42px); color: var(--c-text); }
.project-technical__intro p { max-width: 42ch; }
.project-technical .project-technical__panels details { margin: 0 0 8px; padding: 20px 24px; background: var(--c-soft); border-radius: 10px; }
.project-technical__panels summary { cursor: pointer; font-size: 18px; font-weight: 600; list-style-position: inside; }
.object .project-hero { padding-top: 28px; padding-bottom: 28px; }
.object .project-hero__grid { align-items: start; }
.object .project-hero h1 { margin-top: 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; }
.object .project-hero .slider { min-height: 0; aspect-ratio: 4 / 3; }
.object .project-hero .slider .gallery__item, .object .project-hero .slider img { height: 100%; object-fit: cover; }
.object .project-hero .specs { margin-block: 16px; font-size: 14px; }
.object-content { padding-top: 20px; padding-bottom: 20px; }
.object-description { padding: 20px 24px; border-radius: 12px; background: var(--c-soft); }
.object-description > summary { cursor: pointer; font-size: 20px; font-weight: 600; }
.other-testdrives .cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
@media (max-width: 800px) {
  .project-technical { grid-template-columns: 1fr; gap: 24px; }
  .object .project-hero h1 { font-size: 28px; }
  .other-testdrives .cards { grid-template-columns: 1fr; }
}
