/* novostroi-spb.ru — «Новострой СПб»: белый, коралловый акцент, плотные строки-списки, крупные бюджетные полосы */
:root {
  --bg: #ffffff; --tint: #f6f5f2; --ink: #14161a; --muted: #6b6f76; --line: #e9e7e2;
  --acc: #ff5a36; --acc2: #ff7a5c; --accbg: #fff1ec; --ok: #12a150;
  --f: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.noscroll { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--f); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

.hd { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 40; }
.hd .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: baseline; gap: 4px; text-decoration: none; font-size: 21px; letter-spacing: -.03em; }
.brand b { font-weight: 800; }
.brand i { font-style: normal; font-weight: 800; color: #fff; background: var(--acc); padding: 1px 7px 2px; border-radius: 8px; font-size: 17px; }
.hd nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.hd nav::-webkit-scrollbar { display: none; }
.hd nav a { padding: 7px 12px; border-radius: 99px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.hd nav a:hover { background: var(--tint); color: var(--ink); }
@media (max-width: 640px) { .hd .wrap { padding-top: 8px; padding-bottom: 8px; gap: 6px; } .hd nav { margin: 0 -16px; padding: 0 12px; width: calc(100% + 32px); } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 14px; background: var(--acc); color: #fff; font: 700 16px/1.2 var(--f); cursor: pointer; transition: background .15s, transform .1s; width: 100%; }
.btn:hover { background: #f04a26; }
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .55; }

.top { padding: 34px 0 22px; }
.k { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--acc); text-transform: uppercase; letter-spacing: .05em; }
h1 { margin: 0; font-size: clamp(34px, 6.6vw, 64px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; max-width: 900px; }
h1 em { font-style: normal; color: var(--acc); }
.lead { margin: 14px 0 0; font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 720px; }
section { padding: 30px 0; }
.tint { background: var(--tint); }
h2 { margin: 30px 0 14px; font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -.03em; line-height: 1.12; font-weight: 800; }
section .wrap > h2:first-child, .h2row h2 { margin-top: 0; }
.hint { margin: -6px 0 16px; color: var(--muted); font-size: 14px; }
.h2row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.h2row a { color: var(--acc); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* бюджетные полосы */
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 92px 1fr 64px; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: #fff; transition: border-color .15s; }
.bar:hover { border-color: var(--acc); }
.bl { font-weight: 700; font-size: 15px; white-space: nowrap; }
.bt { height: 12px; background: var(--tint); border-radius: 99px; overflow: hidden; }
.bt i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); border-radius: 99px; }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .bar { grid-template-columns: 120px 1fr 90px; padding: 14px 18px; } }

.dirs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 820px) { .dirs { grid-template-columns: repeat(3, 1fr); } }
.dir { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 104px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .15s, border-color .15s; }
.dir:hover { transform: translateY(-2px); border-color: var(--acc); }
.dir b { font-size: 19px; letter-spacing: -.02em; }
.dir span { font-size: 13px; color: var(--muted); }
.dir.lo { background: var(--ink); color: #fff; border-color: var(--ink); }
.dir.lo span { color: rgba(255, 255, 255, .7); }

/* строки ЖК */
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 10px; border-radius: 18px; border: 1px solid var(--line); background: #fff; text-decoration: none; align-items: center; transition: border-color .15s, box-shadow .15s; }
.row:hover { border-color: #d5d1c9; box-shadow: 0 8px 22px rgba(20, 22, 26, .07); }
@media (min-width: 720px) { .row { grid-template-columns: 168px 1fr; padding: 12px; } }
.thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #ffd8cc, #ffe9e1); }
.thumb::before, .pic::before { content: attr(data-n); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; font-weight: 800; font-size: 12px; color: #c2401f; }
.thumb img, .pic img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.rb { min-width: 0; }
.rt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rt h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
@media (min-width: 720px) { .rt h3 { font-size: 21px; } }
.tag { font-size: 12px; font-weight: 700; color: var(--acc); }
.rm { margin: 2px 0 8px; color: var(--muted); font-size: 13px; }
.rn { display: flex; flex-wrap: wrap; gap: 6px; }
.rn span { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--tint); white-space: nowrap; }
.rn span:first-child { background: var(--accbg); }
.rn .hl { background: #e8f7ee !important; color: #0c6b37; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.kpis > div { padding: 12px; border-radius: 14px; background: var(--tint); }
.kpis b { display: block; font-size: clamp(17px, 2.6vw, 24px); letter-spacing: -.02em; line-height: 1.15; }
.kpis span { font-size: 12px; color: var(--muted); }

.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; color: var(--muted); font-weight: 700; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
.n { text-align: right; font-variant-numeric: tabular-nums; }
table.vs th:first-child { color: var(--muted); font-weight: 600; }
table.vs td, table.vs th { white-space: normal; min-width: 110px; }
table.vs thead a { color: var(--acc); font-size: 16px; }

.seg { display: flex; gap: 6px; overflow-x: auto; margin: 18px 0 0; padding-bottom: 2px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a { flex: 1 0 auto; text-align: center; padding: 10px 14px; border-radius: 12px; background: var(--tint); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.seg a.on { background: var(--ink); color: #fff; }

.prose { max-width: 760px; color: #2b2e33; }
.prose p { margin: 0 0 12px; }
.prose a { color: var(--acc); }
.prose.narrow h1 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 16px; }
.prose.narrow h2 { font-size: 20px; margin: 22px 0 6px; }

/* ЖК */
.zl { display: grid; gap: 18px; }
@media (min-width: 900px) { .zl { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.pic { position: relative; aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, #ffd8cc, #ffe9e1); }
.pic::before { font-size: 22px; }
.credit { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.zcard { padding: 18px; border: 1px solid var(--line); border-radius: 20px; }
.zcard .kpis { margin-top: 0; }
.zcard dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 16px; font-size: 15px; }
.zcard dt { color: var(--muted); }
.zcard dd { margin: 0; font-weight: 600; }
.rcs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 820px) { .rcs { grid-template-columns: repeat(4, 1fr); } }
.rc { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.rc b { font-size: 14px; color: var(--muted); }
.rc span { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.rc small { font-size: 12px; color: var(--muted); }
.cmpl { display: flex; flex-wrap: wrap; gap: 8px; }
.cmpl a { padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 600; }
.cmpl a:hover { border-color: var(--acc); color: var(--acc); }
.pickcmp { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; }
.pickcmp select { height: 50px; border-radius: 14px; border: 1px solid var(--line); padding: 0 12px; font: 600 15px var(--f); background: #fff; width: 100%; }
.pickcmp span { text-align: center; font-weight: 800; color: var(--acc); }
@media (min-width: 720px) { .pickcmp { grid-template-columns: 1fr 40px 1fr; } }
#cmpout { margin: 16px 0 0; }

.ask { padding: 34px 0; }
.askbox { padding: 24px 18px; border-radius: 24px; background: var(--ink); color: #fff; }
.askbox h2 { margin: 0 0 6px; color: #fff; }
.askbox p { margin: 0 0 16px; color: rgba(255, 255, 255, .72); max-width: 620px; }
@media (min-width: 720px) { .askbox { padding: 32px; } }
.chs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: 620px; }
@media (min-width: 720px) { .chs { grid-template-columns: repeat(4, 1fr); } }
.ch { min-height: 50px; border-radius: 14px; border: 0; font: 700 15px var(--f); cursor: pointer; background: #fff; color: var(--ink); }
.ch.wa { background: #22c55e; color: #fff; } .ch.ph { background: var(--acc); color: #fff; }
.ch:hover { filter: brightness(1.05); }
.note { font-size: 11px; color: rgba(255, 255, 255, .5); margin: 10px 0 0; }

.faq-s { padding-top: 10px; }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 30px 16px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 22px; width: 10px; height: 10px; border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 26px; }
.faq p { margin: 0 0 16px; color: var(--muted); }

.ft { border-top: 1px solid var(--line); padding: 30px 0 34px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.frow { display: grid; gap: 10px; }
.frow p { margin: 0; max-width: 560px; }
.flinks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0; }
.flinks a { color: var(--ink); text-decoration: none; font-weight: 600; }
.flinks a:hover { color: var(--acc); }
.small { font-size: 11px; margin: 0; }

/* окно заявки */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; background: rgba(20, 22, 26, .5); }
.modal.show { display: flex; }
.sheet { width: 100%; max-width: 500px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); position: relative; animation: up .25s ease-out; }
@media (min-width: 640px) { .modal { align-items: center; } .sheet { border-radius: 24px; padding: 28px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet .x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--tint); cursor: pointer; font-size: 15px; }
.sheet h3 { margin: 0 44px 4px 0; font-size: 24px; letter-spacing: -.03em; }
.why { margin: 0 0 16px; color: var(--muted); }
.sheet form { display: grid; gap: 12px; }
.q span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick button { min-height: 38px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--tint); font: 600 14px var(--f); cursor: pointer; color: var(--ink); }
.pick button.on { background: var(--acc); color: #fff; }
.field { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; font: 16px var(--f); background: #fff; color: var(--ink); }
.field:focus { outline: 2px solid var(--acc2); border-color: var(--acc); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 18px; accent-color: var(--acc); }
.consent a { color: var(--acc); }
.err { color: #c81e1e; font-size: 14px; }
.err:empty { display: none; }
.sheet .note { color: var(--muted); margin: 0; }
.done { text-align: center; padding: 26px 0 10px; }
.check { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.kpis b { white-space: nowrap; font-size: clamp(15px, 4.4vw, 24px); }
.rn span { font-size: 12px; padding: 3px 9px; }
@media (min-width: 1000px) { .rows { grid-template-columns: 1fr 1fr; } .row { grid-template-columns: 150px 1fr; } }
/* подбор по платежу */
.pcalc { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.presets button { min-height: 40px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--tint); font: 700 14px var(--f); cursor: pointer; color: var(--ink); }
.presets button.on { background: var(--ink); color: #fff; }
.pf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.pf input { height: 50px; border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; font: 700 18px var(--f); width: 100%; color: var(--ink); }
.pf input:focus { outline: 2px solid var(--acc2); }
.pcalc .hint { margin: 12px 0 0; }
.calcnote { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.appr { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--accbg); display: grid; gap: 12px; }
.appr[hidden] { display: none; }
.appr p { margin: 0; }
@media (min-width: 720px) { .appr { grid-template-columns: 1fr auto; align-items: center; } .appr .btn { width: auto; } }
.ptab td small { display: block; font-size: 12px; color: var(--muted); }
.ptab td:first-child { white-space: normal; }
.payline { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--accbg); font-size: 15px; }
.payline a, .paynote a { color: var(--acc); }
.paynote { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.rc .pl { color: #0c6b37; font-weight: 700; }

/* журнал /zhurnal/ */
.crumbs { display: block; padding-top: 14px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.artpage .top { padding-top: 14px; }
.art { max-width: 760px; }
.art h2 { font-size: clamp(22px, 3vw, 28px); margin: 34px 0 12px; }
.art h3 { font-size: 19px; margin: 22px 0 8px; letter-spacing: -.01em; }
.art p, .art li { font-size: 17px; line-height: 1.62; }
.art ul, .art ol { padding-left: 22px; margin: 0 0 14px; }
.art li { margin: 0 0 6px; }
.art .tw { margin: 6px 0 4px; }
.art td, .art th { white-space: normal; }
.art td.n, .art th.n { white-space: nowrap; text-align: right; }
.byline { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.answer { background: var(--accbg); border-radius: 16px; padding: 16px 18px; font-size: 18px !important; color: var(--ink); }
.tcap { font-size: 13px !important; color: var(--muted); margin: 0 0 18px !important; }
.stamp { font-size: 13px !important; color: var(--muted); margin-top: 22px !important; }
.src li { font-size: 14px !important; word-break: break-word; }
.acta { margin: 26px 0; padding: 22px 18px; border-radius: 24px; background: var(--ink); color: #fff; }
.acta h3 { margin: 0 0 6px; color: #fff; font-size: 22px; }
.acta p { color: rgba(255, 255, 255, .72); margin: 0 0 14px; font-size: 16px !important; }
.acta .note { font-size: 11px !important; color: rgba(255, 255, 255, .5); margin: 8px 0 0; }
.rel { max-width: 760px; margin: 30px 0 10px; }
.rel ul, .alist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rel li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--tint); border-radius: 16px; }
.rel li a { font-weight: 700; }
.rel li span { font-size: 14px; color: var(--muted); }
@media (min-width: 860px) { .alist { grid-template-columns: 1fr 1fr; } }
.alist a { display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box; padding: 18px; background: var(--tint); border: 1px solid transparent; border-radius: 20px; text-decoration: none; }
.alist a:hover { border-color: var(--acc); }
.alist b { font-size: 19px; letter-spacing: -.02em; line-height: 1.25; }
.alist span { font-size: 15px; color: var(--muted); }
.alist small { font-size: 12px; color: var(--muted); margin-top: auto; }
