/* ПСК Стандарт · Дома — строгий «девелоперский» стиль: Ubuntu + Roboto, глубокий фирменный синий, плашки, тонкие рамки */
:root {
  --brand: #123F73; --brand-d: #0B2D55; --brand-2: #1E64B0; --brand-2-d: #17538F;
  --tint: #E6EEF7; --tint-2: #D3E1F0;
  --gray: #F2F4F6; --gray-2: #E8EBEF; --line: #DDE2E8;
  --ink: #263238; --ink-2: #3D4A52; --muted: #6B7780;
  --hit: #C8641C; --ok: #2E7D4F; --err: #C62828;
  --r: 5px; --r-lg: 8px; --pill: 20px;
  --shadow: 0 1px 3px rgba(20,35,50,.08), 0 4px 14px rgba(20,35,50,.06);
  --shadow-h: 0 6px 24px rgba(20,35,50,.14);
  --wrap: 1280px; --hdr: 74px; --menu-h: 45px;
  --fh: Ubuntu, "Segoe UI", Arial, sans-serif;
  --fb: Roboto, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + var(--menu-h) + 60px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 15px/1.6 var(--fb); }
img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--fh); font-weight: 500; line-height: 1.2; margin: 0 0 .55em; color: var(--ink); }
h1 { font-size: clamp(24px, 3vw, 32px); }
h2 { font-size: clamp(22px, 2.4vw, 28px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.hp { position: absolute; left: -9999px; }
.lead { font-size: 16px; color: var(--muted); max-width: 760px; }
.eyebrow { font: 500 12px/1 var(--fh); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 12px; }
.eyebrow--light { color: #A9C8EA; }
.link { font: 500 15px var(--fh); white-space: nowrap; }
.link--light { color: #CFE0F3; } .link--light:hover { color: #fff; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 22px; border: 0; border-radius: var(--r); background: var(--brand); color: #fff; font: 500 15px var(--fh); white-space: nowrap; transition: background .15s, box-shadow .15s, color .15s; }
.btn:hover { background: var(--brand-d); color: #fff; }
.btn .ic { width: 18px; height: 18px; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--big { height: 54px; font-size: 16px; width: 100%; }
.btn--alt { background: var(--brand-2); } .btn--alt:hover { background: var(--brand-2-d); }
.btn--pill { border-radius: var(--pill); }
.btn--wide { width: 100%; }
.btn--line { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn--line:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--tint); color: var(--brand-d); }
.btn--bar { flex: 1; justify-content: space-between; height: 48px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* шапка */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: 18px; }
.logo { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; color: var(--ink); }
.logo__row { display: flex; align-items: center; gap: 10px; }
.logo img { height: 38px; width: auto; }
.logo__sub { font: 700 17px/1 var(--fh); letter-spacing: .08em; color: var(--brand); padding-left: 10px; border-left: 1.5px solid var(--line); }
.logo__tag { font: 500 10px/1 var(--fh); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hsearch { flex: 1; max-width: 360px; display: flex; align-items: center; height: 40px; background: var(--gray); border-radius: var(--pill); padding: 0 6px 0 18px; margin-left: 12px; }
.hsearch input { flex: 1; min-width: 0; border: 0; background: transparent; font: 14px var(--fb); color: var(--ink); outline: none; }
.hsearch input::placeholder { color: #8A959D; }
.hsearch button { border: 0; background: none; color: var(--ink-2); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.hsearch button:hover { background: var(--gray-2); }
.hsearch:focus-within { box-shadow: 0 0 0 2px var(--tint-2); background: #fff; }
.hdr__icons { display: flex; align-items: center; gap: 4px; }
.hico { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ink-2); }
.hico:hover { background: var(--gray); color: var(--brand); }
.hico sup { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--brand-2); color: #fff; font: 500 10px/16px var(--fb); text-align: center; }
.hico sup[data-zero] { display: none; }
.hdr__phone { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; color: var(--ink); font: 500 16px/1.2 var(--fh); white-space: nowrap; }
.hdr__phone small { font: 400 11px var(--fb); color: var(--muted); }
.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s, top .2s; }
.burger span:nth-child(1) { top: 13px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }
.menu { border-top: 1px solid var(--line); background: #fff; }
.menu__in { display: flex; gap: 4px; height: 44px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.menu a { padding: 8px 14px; border-radius: var(--r); color: var(--ink-2); font: 500 14px var(--fh); white-space: nowrap; }
.menu a:hover { background: var(--gray); color: var(--brand); }
.menu a.is-on { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.menu__phone { display: none; }

/* главная: герой */
.hero { position: relative; min-height: 600px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--brand-d); color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,25,46,.82) 0%, rgba(9,25,46,.55) 42%, rgba(9,25,46,.08) 75%), linear-gradient(0deg, rgba(9,25,46,.45), transparent 40%); }
.hero__in { position: relative; display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: end; padding-top: 72px; padding-bottom: 40px; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); max-width: 640px; }
.hero__lead { font-size: 17px; color: rgba(255,255,255,.88); max-width: 560px; }
.qf { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.qf__title { font: 500 18px var(--fh); margin: 0 0 2px; }
.qf label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.qf select { height: 44px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 36px 0 12px; font: 15px var(--fb); color: var(--ink); appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B7780' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }
.qf .btn { margin-top: 4px; }
.hero__credit { position: relative; display: block; padding-bottom: 18px; color: rgba(255,255,255,.7); font-size: 13px; }
.hero__credit:hover { color: #fff; }
.facts { background: var(--gray); border-bottom: 1px solid var(--line); }
.facts__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__in > div { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 22px 20px; border-right: 1px solid var(--line); }
.facts__in > div:last-child { border-right: 0; }
.facts .ic { grid-row: span 2; width: 36px; height: 36px; color: var(--brand-2); stroke-width: 1.4; }
.facts b { font: 500 22px/1.2 var(--fh); color: var(--brand); }
.facts span { color: var(--muted); font-size: 13.5px; line-height: 1.35; }

/* секции */
.sec { padding-top: 64px; }
.sec--last { padding-bottom: 72px; }
.sec--gray, .sec--brand { padding-top: 56px; padding-bottom: 60px; margin-top: 64px; }
.sec--gray + .sec, .sec--brand + .sec { padding-top: 56px; }
.sec--gray { background: var(--gray); }
.sec--brand { background: var(--brand); color: #fff; }
.sec--brand h2, .sec--brand h3 { color: #fff; }
.sec--brand .lead { color: rgba(255,255,255,.78); }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.sec__head h2 { margin: 0; }
.two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.two--faq { grid-template-columns: 1fr 2fr; }

/* категории-плашки */
.tabs-cat { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs-cat a { padding: 9px 16px; border-radius: var(--r); background: var(--gray-2); color: var(--ink-2); font: 500 12.5px var(--fh); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transition: background .15s, color .15s; }
.tabs-cat a:hover { background: var(--tint-2); color: var(--brand); }
.tabs-cat a.is-on { background: var(--brand); color: #fff; }
.tabs-cat--home { margin-bottom: 22px; }

/* карточки */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1240px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s; }
.card:hover { box-shadow: var(--shadow-h); }
.card__media { position: relative; aspect-ratio: 3/2; background: var(--gray); overflow: hidden; }
.card__img, .card__img img { display: block; width: 100%; height: 100%; }
.card__img img { object-fit: cover; transition: opacity .2s; }
.card__noimg { display: grid; place-items: center; height: 100%; color: var(--muted); }
.card__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: var(--r); background: rgba(18,63,115,.82); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s, background .15s; }
.card__nav:hover { background: var(--brand); }
.card__nav .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.card__nav--l { left: 10px; } .card__nav--r { right: 10px; }
.card:hover .card__nav, .card__nav:focus-visible { opacity: 1; }
.card__dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 5px; }
.card__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.card__dots i.is-on { background: #fff; }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge { padding: 5px 12px; border-radius: var(--r); background: var(--brand); color: #fff; font: 500 12px/1.2 var(--fh); }
.badge--hit { background: var(--hit); }
.card__fav { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink-2); display: grid; place-items: center; transition: color .15s, transform .15s; }
.card__fav:hover { color: var(--hit); transform: scale(1.06); }
.card__fav.is-on { color: #fff; background: var(--hit); }
.card__fav.is-on .ic { fill: currentColor; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; color: var(--ink); }
.card__body:hover { color: var(--ink); }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card__price { font: 500 21px/1.2 var(--fh); color: var(--ink); }
.card__code { font-size: 13px; color: var(--muted); white-space: nowrap; }
.card__title { margin: 2px 0 0; font: 500 16px/1.3 var(--fh); color: var(--brand); }
.card:hover .card__title { color: var(--brand-2); }
.card__type { margin: 0; font-size: 14px; color: var(--ink-2); }
.card__specs { list-style: none; margin: 6px 0 0; padding: 10px 0 0; border-top: 1px solid var(--gray-2); display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13.5px; }
.card__specs li { display: flex; align-items: center; gap: 6px; }
.card__specs .ic { width: 17px; height: 17px; color: var(--brand-2); }
.card__lead { display: none; margin: 4px 0 0; color: var(--muted); font-size: 14px; }
/* вид «списком» */
.grid.is-list { grid-template-columns: 1fr; gap: 16px; }
.grid.is-list .card { flex-direction: row; }
.grid.is-list .card__media { width: 380px; flex-shrink: 0; aspect-ratio: 3/2; }
.grid.is-list .card__body { flex: 1; padding: 20px 24px; }
.grid.is-list .card__lead { display: block; }

/* шаги и комплектации */
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--r-lg); padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.sec:not(.sec--gray) .steps li { background: var(--gray); box-shadow: none; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font: 500 15px var(--fh); }
.steps b { font: 500 16px var(--fh); }
.steps span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.pkgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.pkg { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px 20px; display: flex; flex-direction: column; }
.pkg--main { border: 2px solid var(--brand); }
.pkg__flag { position: absolute; top: -11px; left: 18px; padding: 3px 10px; border-radius: var(--r); background: var(--brand); color: #fff; font: 500 11.5px var(--fh); }
.pkg h3 { margin-bottom: 4px; }
.pkg__short { color: var(--muted); font-size: 13.5px; min-height: 40px; }
.pkg__price { font: 500 24px var(--fh); color: var(--brand); }
.pkg__price small { font-size: 14px; color: var(--muted); }
.pkg__time { color: var(--muted); font-size: 13px; margin: 2px 0 14px; }
.pkg ul, .ticks { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.pkg li, .ticks li { position: relative; padding-left: 22px; line-height: 1.4; }
.pkg li::before, .ticks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 2px solid var(--brand-2); border-bottom: 2px solid var(--brand-2); transform: rotate(-45deg); }
.pkg .btn { margin-top: auto; }

/* ипотека и калькулятор */
.mort { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 48px; align-items: start; }
.mort__progs { list-style: none; padding: 0; margin: 24px 0; }
.mort__progs li { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.mort__progs b { font: 500 22px var(--fh); min-width: 100px; }
.mort__progs span { color: rgba(255,255,255,.82); }
.calc { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; color: var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 16px 50px rgba(0,0,0,.25); }
.calc__in { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.calc__out { padding: 24px; background: var(--gray); display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.calc__pay small { display: block; font-size: 13px; color: var(--muted); }
.calc__pay strong { display: block; font: 500 34px/1.2 var(--fh); color: var(--brand); margin: 2px 0 14px; }
.calc__dl { margin: 0 0 10px; }
.calc__dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.calc__dl dt { color: var(--muted); }
.calc__dl dd { margin: 0; font-weight: 500; text-align: right; }
.calc__note { font-size: 13px; color: var(--hit); min-height: 1em; margin-bottom: 12px; }
.calc__out .btn { margin-top: auto; background: var(--brand); color: #fff; }
.calc__out .btn:hover { background: var(--brand-d); }
.calc__disc { font-size: 11.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.4; }
.rng__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.rng output { color: var(--ink); font: 500 16px var(--fh); }
.rng__hint { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand-2) var(--p, 50%), var(--gray-2) var(--p, 50%)); outline: none; margin: 10px 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-2); box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-2); cursor: grab; }

/* формы */
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.fld input, .fld select, .fld textarea, .fpanel select { width: 100%; font: 15px var(--fb); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.fld select, .fpanel select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B7780' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 34px; cursor: pointer; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .fpanel select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--tint); }
.fld.is-err input { border-color: var(--err); }
.fld textarea { resize: vertical; min-height: 70px; }
.chk { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); cursor: pointer; line-height: 1.4; }
.chk input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form__err { color: var(--err); font-size: 13.5px; }
.lead-form__err:empty { display: none; }
.formbox { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 36px; border-radius: var(--r-lg); background: var(--gray); }
.formbox--plain { grid-template-columns: 1fr; gap: 6px; padding: 24px; margin: 20px 0; }

/* полоса-призыв */
.strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 36px; border-radius: var(--r-lg); background: var(--brand); color: #fff; }
.strip h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.strip p { margin: 0; color: rgba(255,255,255,.8); max-width: 680px; }
.sec-cta { padding-top: 48px; padding-bottom: 72px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font: 500 16px var(--fh); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 26px; font-weight: 300; color: var(--brand-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* шапка каталога и внутренних страниц */
.cat-head { background: var(--gray); padding: 18px 0 22px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 8px; color: #A6AFB6; }
.cat-head__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cat-head__row h1 { margin-bottom: 12px; }
.cat-head__found { font: 500 18px var(--fh); margin: 0; }
.cat-head__bar { display: flex; gap: 10px; flex-wrap: wrap; }
.dd { position: relative; }
.dd__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-h); padding: 6px; display: flex; flex-direction: column; }
.dd__menu[hidden] { display: none; }
.dd__menu a { padding: 9px 12px; border-radius: var(--r); color: var(--ink); font-size: 14px; }
.dd__menu a:hover { background: var(--gray); }
.dd__menu a.is-on { color: var(--brand); font-weight: 500; }
.fpanel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 14px; padding: 18px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.fpanel[hidden] { display: none; }
.fpanel fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fpanel legend { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; padding: 0; }
.fpanel__checks { gap: 8px !important; }
.fpanel__act { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; }
.cat { padding-top: 22px; }
.cat__chips { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.view-tg { display: flex; gap: 4px; flex-shrink: 0; }
.view-tg button { width: 38px; height: 38px; border: 0; border-radius: var(--r); background: transparent; color: #A6AFB6; display: grid; place-items: center; }
.view-tg button.is-on, .view-tg button:hover { color: var(--brand); background: var(--gray); }
.note { padding: 12px 16px; border-radius: var(--r); background: var(--tint); color: var(--brand); margin-bottom: 18px; }
.empty { text-align: center; padding: 56px 24px; background: var(--gray); border-radius: var(--r-lg); }
.empty p { color: var(--muted); max-width: 460px; margin: 0 auto 20px; }
.empty .btn { margin: 4px; }

/* страница проекта */
.pj-head { padding-top: 18px; }
.pj-head h1 { margin-bottom: 4px; }
.pj-head__sub { color: var(--brand-2); font-size: 15.5px; margin-bottom: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill { padding: 8px 18px; border-radius: var(--pill); background: var(--tint); color: var(--brand); font: 500 12.5px var(--fh); letter-spacing: .03em; text-transform: uppercase; }
a.pill:hover { background: var(--tint-2); color: var(--brand-d); }
.actbar { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 8px 14px; background: var(--gray); border-radius: var(--r); }
.actbar button, .actbar a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; background: transparent; color: var(--ink-2); font-size: 14px; border-radius: var(--r); }
.actbar button:hover, .actbar a:hover { background: #fff; color: var(--brand); }
.actbar .ic { color: var(--brand); }
.actbar [data-fav].is-on .ic { fill: var(--hit); color: var(--hit); }
.pj { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; margin-top: 20px; }
.gal__main { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3/2; background: var(--gray); }
.gal__main--empty { display: grid; place-items: center; color: var(--muted); }
.gal__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal__open img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: var(--r); background: rgba(18,63,115,.85); color: #fff; display: grid; place-items: center; }
.gal__nav:hover { background: var(--brand); }
.gal__nav .ic { stroke-width: 2.2; }
.gal__nav--l { left: 14px; } .gal__nav--r { right: 14px; }
.gal__main .card__fav { top: 14px; right: 14px; bottom: auto; width: 40px; height: 40px; }
.gal__cap { position: absolute; left: 14px; bottom: 14px; padding: 5px 12px; border-radius: var(--r); background: rgba(11,45,85,.75); color: #fff; font-size: 13px; }
.gal__all { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: var(--pill); background: #fff; color: var(--ink); font: 500 13px var(--fh); }
.gal__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: thin; }
.gal__th { flex: 0 0 auto; width: 118px; aspect-ratio: 3/2; padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; background: var(--gray); opacity: .75; }
.gal__th img { width: 100%; height: 100%; object-fit: cover; }
.gal__th:hover { opacity: 1; }
.gal__th.is-on { opacity: 1; border-color: var(--brand); }
.pj__side { display: flex; flex-direction: column; gap: 10px; position: sticky; top: calc(var(--hdr) + var(--menu-h) + 12px); }
.pricebox { background: var(--gray); border-radius: var(--r-lg); padding: 18px 20px; text-align: center; }
.pricebox small { display: block; color: var(--muted); font-size: 13px; }
.pricebox strong { display: block; font: 500 28px/1.25 var(--fh); color: var(--ink); }
.pricebox__mort { display: block; margin-top: 4px; font-size: 13px; color: var(--ok); }
.specbox { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 18px; background: #fff; }
.specgrid { display: grid; grid-template-columns: 1fr 1fr; }
.specgrid > div { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--gray-2); }
.specgrid > div:nth-last-child(-n+2) { border-bottom: 0; }
.specgrid .ic { grid-row: span 2; width: 22px; height: 22px; color: #9AA5AD; stroke-width: 1.5; margin-top: 2px; }
.specgrid span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.specgrid b { font-weight: 500; font-size: 14.5px; }
.specgrid--one { grid-template-columns: 1fr; }
.specgrid--one > div:nth-last-child(2) { border-bottom: 1px solid var(--gray-2); }
.specbox__tel { margin: 0; padding: 12px 0 10px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--muted); }
.specbox__tel a { font: 500 16px var(--fh); color: var(--ink); }
.ctabox { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--gray); border-radius: var(--r-lg); }
.pj-nav { position: sticky; top: calc(var(--hdr) + var(--menu-h)); z-index: 20; margin-top: 40px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 var(--line) inset; }
.pj-nav__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pj-nav a { padding: 14px 16px; color: var(--ink-2); font: 500 14.5px var(--fh); white-space: nowrap; border-bottom: 2px solid transparent; }
.pj-nav a:hover, .pj-nav a.is-on { color: var(--brand); border-bottom-color: var(--brand); }
.utabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.utabs button { border: 0; background: none; padding: 10px 0; font: 500 16px var(--fh); color: #9AA5AD; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.utabs button:hover { color: var(--ink); }
.utabs button.is-on { color: var(--ink); border-bottom-color: var(--brand); }
.tabs__pane[hidden] { display: none; }
.roomline { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--ink-2); }
.roomline li::before { content: "•"; color: var(--brand-2); margin-right: 8px; }
.roomline b { font-weight: 500; color: var(--muted); }
.plan__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; }
.plan__img { display: block; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; cursor: zoom-in; }
.plan__img img { width: 100%; height: auto; max-height: 720px; object-fit: contain; }
.plan__rooms h3 { display: flex; justify-content: space-between; }
.plan__rooms h3 span { color: var(--brand); }
.rooms { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 14px; }
.rooms td { padding: 8px 0; border-bottom: 1px solid var(--gray-2); }
.rooms__n { color: var(--muted); width: 44px; font-size: 13px; }
.rooms__a { text-align: right; font-weight: 500; white-space: nowrap; }
.facades { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.facades .plan__img span { display: block; margin-top: 8px; font: 500 14px var(--fh); color: var(--ink); }
.m3d { width: 100%; height: min(70vh, 600px); background: radial-gradient(circle at 50% 40%, #fff, #E8ECF0); border-radius: var(--r-lg); border: 1px solid var(--line); }
.prose { font-size: 15.5px; color: var(--ink-2); }
.dots { margin: 0 0 24px; }
.dots div { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 14.5px; }
.dots dt { color: var(--ink-2); white-space: nowrap; }
.dots div::after { content: none; }
.dots dt::after { content: ""; }
.dots div > dt { flex-shrink: 0; }
.dots div > dd { margin: 0; text-align: right; font-weight: 500; order: 3; max-width: 62%; }
.dots div::before { content: ""; order: 2; flex: 1; min-width: 20px; border-bottom: 1.5px dotted #B7C0C7; transform: translateY(-4px); }
.mbar { display: none; }

/* ипотека */
.progs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 28px; }
.prog { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: #fff; box-shadow: var(--shadow); }
.prog__rate { font: 500 36px/1.1 var(--fh); color: var(--brand); margin-bottom: 8px; }
.kv-row { display: flex; gap: 24px; margin: 14px 0 18px; padding: 12px 0; border-top: 1px solid var(--gray-2); border-bottom: 1px solid var(--gray-2); }
.kv-row div { display: flex; flex-direction: column; }
.kv-row dt { font-size: 12.5px; color: var(--muted); }
.kv-row dd { margin: 0; font: 500 16px var(--fh); }

/* контакты и документы */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; padding-top: 28px; padding-bottom: 72px; }
.map { width: 100%; min-height: 520px; height: 100%; border: 0; border-radius: var(--r-lg); background: var(--gray); }
.prose--doc { max-width: 860px; padding-top: 24px; padding-bottom: 72px; }
.prose--doc h3 { margin-top: 26px; }

/* подвал */
.ftr { background: var(--brand-d); color: rgba(255,255,255,.72); padding: 56px 0 24px; font-size: 14px; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.ftr__grid > div { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.ftr__logo { height: 48px; width: auto; filter: brightness(0) invert(1); margin-bottom: 8px; }
.ftr__lead { max-width: 340px; }
.ftr h4 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.ftr a { color: rgba(255,255,255,.85); }
.ftr a:hover { color: #fff; }
.ftr__tel { font: 500 19px var(--fh); color: #fff !important; }
.ftr__legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.5); }
.ftr__legal p { margin-bottom: 6px; }

/* cookie */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 80; max-width: 440px; display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border-radius: var(--r-lg); box-shadow: 0 10px 40px rgba(20,35,50,.2); font-size: 13px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; color: var(--ink-2); }

/* модалка */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__bg { position: absolute; inset: 0; background: rgba(11,30,52,.6); animation: fade .2s; }
.modal__box { position: relative; width: 100%; max-width: 500px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: var(--r-lg); padding: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: pop .22s ease-out; }
.modal__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--gray); font-size: 22px; line-height: 1; color: var(--muted); }
.modal__x:hover { background: var(--gray-2); color: var(--ink); }
.modal__box h3 { font-size: 22px; padding-right: 30px; }
.modal__ctx { padding: 10px 14px; border-radius: var(--r); background: var(--tint); color: var(--brand); font-size: 14px; margin-bottom: 14px; }
.modal__ok { text-align: center; padding: 14px 0; }
.modal__ok-ico { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #E3F2E8; color: var(--ok); font-size: 30px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }

/* лайтбокс */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(8,20,36,.96); display: flex; align-items: center; justify-content: center; animation: fade .2s; }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lb__fig img { max-width: 94vw; max-height: 84vh; object-fit: contain; border-radius: var(--r); background: #fff; }
.lb__fig figcaption { color: rgba(255,255,255,.8); margin-top: 12px; font-size: 14px; }
.lb__x, .lb__nav { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; border-radius: var(--r); width: 50px; height: 50px; font-size: 30px; line-height: 1; }
.lb__x:hover, .lb__nav:hover { background: rgba(255,255,255,.22); }
.lb__x { top: 16px; right: 16px; }
.lb__nav--prev { left: 16px; } .lb__nav--next { right: 16px; }
.lb.is-single .lb__nav { display: none; }

.toasts { position: fixed; top: calc(var(--hdr) + 12px); left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(560px, calc(100% - 32px)); }
.toast { padding: 14px 18px; border-radius: var(--r); background: var(--ink); color: #fff; box-shadow: var(--shadow-h); }
.toast--success { background: var(--ok); } .toast--error { background: var(--err); }

/* печать */
@media print {
  .hdr, .menu, .ftr, .actbar, .pj-nav, .ctabox, .mbar, .cookie, .gal__nav, .card__fav, #mortgage, .sec-cta, .strip, model-viewer, #model3d { display: none !important; }
  .pj { grid-template-columns: 1fr 300px; }
  .pj__side { position: static; }
  .tabs__pane[hidden] { display: block !important; }
}

/* адаптив */
@media (max-width: 1240px) {
  .hdr__phone { display: none; }
  .hsearch { max-width: 300px; }
  .pkgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .fpanel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mort { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 32px; }
}
@media (max-width: 1020px) {
  :root { --hdr: 64px; --menu-h: 0px; }
  .hsearch, .hdr__pick { display: none; }
  .hdr__icons { margin-left: auto; }
  .burger { display: block; }
  .menu { display: none; position: fixed; top: var(--hdr); left: 0; right: 0; bottom: 0; overflow: auto; border-top: 1px solid var(--line); }
  .menu.is-open { display: block; }
  .menu__in { flex-direction: column; align-items: stretch; height: auto; padding-top: 8px; padding-bottom: 24px; gap: 0; }
  .menu a { padding: 15px 4px; font-size: 18px; border-bottom: 1px solid var(--gray-2); border-radius: 0; box-shadow: none !important; }
  .menu__phone { display: block; color: var(--brand) !important; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .hero__in { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; }
  .qf { max-width: 520px; }
  .facts__in { grid-template-columns: 1fr 1fr; }
  .facts__in > div:nth-child(2) { border-right: 0; }
  .facts__in > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mort, .two, .two--faq, .contacts, .formbox, .plan__grid { grid-template-columns: 1fr; gap: 28px; }
  .pj { grid-template-columns: 1fr; }
  .pj__side { position: static; }
  .progs { grid-template-columns: 1fr; }
  .grid.is-list .card__media { width: 300px; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(20,35,50,.08); }
  .mbar b { font: 500 19px var(--fh); }
  .mbar small { color: var(--muted); }
  body:has(.mbar) .ftr { padding-bottom: 90px; }
  body:has(.mbar) .cookie { bottom: 80px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  body { font-size: 15px; }
  .logo img { height: 32px; }
  .logo__sub { font-size: 15px; }
  .logo__tag { display: none; }
  .hdr__icons .hico:not(.hico--fav):not(:last-child) { display: none; }
  .hdr__in > .btn--pill { display: none; }
  .hero { min-height: 0; }
  .hero__in { padding-top: 36px; padding-bottom: 24px; }
  .hero h1 { font-size: 28px; }
  .hero__lead { font-size: 15.5px; }
  .facts__in { grid-template-columns: 1fr; }
  .facts__in > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .sec { padding-top: 48px; }
  .sec--gray, .sec--brand { padding-top: 40px; padding-bottom: 44px; margin-top: 48px; }
  .sec--gray + .sec, .sec--brand + .sec { padding-top: 40px; }
  .sec__head { flex-direction: column; gap: 4px; }
  .grid, .grid.is-list { grid-template-columns: 1fr; }
  .grid.is-list .card { flex-direction: column; }
  .grid.is-list .card__media { width: 100%; }
  .card__nav { opacity: 1; }
  .view-tg { display: none; }
  .tabs-cat { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .steps, .pkgs { grid-template-columns: 1fr; }
  .fpanel { grid-template-columns: 1fr 1fr; }
  .cat-head__bar .btn--line { display: none; }
  .lead-form__row { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc__out { border-left: 0; border-top: 1px solid var(--line); }
  .calc__in, .calc__out { padding: 18px; }
  .specgrid { grid-template-columns: 1fr 1fr; }
  .facades { grid-template-columns: 1fr; }
  .gal__th { width: 84px; }
  .gal__nav { width: 38px; height: 38px; }
  .strip { flex-direction: column; align-items: flex-start; padding: 24px; }
  .formbox { padding: 22px; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__grid > div:first-child { grid-column: 1 / -1; }
  .modal__box { padding: 24px 18px; }
  .lb__nav { top: auto; bottom: 20px; }
  .cookie { left: 8px; right: 8px; max-width: none; }
  .actbar { padding: 6px; }
  .actbar button span, .actbar a { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
