@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/static/fonts/manrope-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/static/fonts/manrope-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #111a16;
  --ink-2: #3b4842;
  --muted: #74807a;
  --line: #e7e4dc;
  --line-2: #efede7;
  --brand: #1b7a5a;
  --brand-2: #14614a;
  --brand-soft: #e6f2ec;
  --accent: #f2743a;
  --accent-2: #db6127;
  --accent-soft: #fff1e8;
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 8px;
  --shadow: 0 1px 2px rgba(17,26,22,.04), 0 6px 20px rgba(17,26,22,.06);
  --shadow-lg: 0 2px 6px rgba(17,26,22,.05), 0 18px 48px rgba(17,26,22,.12);
  --font: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.12; margin: 0; font-weight: 800; }
h1 { font-size: clamp(28px, 3.4vw, 42px); }
h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 40px 0 16px; }
p { margin: 0 0 12px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: #c0392b; }
.ic { width: 18px; height: 18px; flex: none; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 5px; margin-bottom: 18px; }
.lead-p { font-size: 18px; color: var(--ink-2); max-width: 620px; }

/* Кнопки и поля */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border: 0; border-radius: 5px; background: var(--accent); color: #fff; font: 700 15px/1.2 var(--font); cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; box-shadow: 0 6px 16px rgba(242,116,58,.28); white-space: nowrap; }
.btn:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 4px; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--bg); color: var(--ink); }
.btn-block { width: 100%; }
.inp, .filters input[type=number], .quick-search input, .quick-search select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px; font: 500 15px var(--font); background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.inp:focus, .filters input:focus, .quick-search input:focus, .quick-search select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(27,122,90,.12); }
textarea.inp { resize: vertical; }
.icon-btn { border: 0; background: var(--bg); width: 38px; height: 38px; border-radius: 4px; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); }

/* Шапка */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(231,228,220,.7); }
.top-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 36px; height: 36px; }
.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav a { color: var(--ink-2); padding: 8px 12px; border-radius: 4px; font-size: 15px; font-weight: 600; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.top .btn { margin-left: auto; }

/* Первый экран */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 0%, #dff0e7 0%, rgba(223,240,231,0) 60%), radial-gradient(900px 500px at 0% 100%, #fdeee3 0%, rgba(253,238,227,0) 55%), var(--bg); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 18px; }
.hl { background: linear-gradient(90deg, var(--brand) 0%, #2fae80 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quick-search { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 10px; align-items: end; background: var(--surface); padding: 12px; border-radius: 8px; box-shadow: var(--shadow-lg); margin: 26px 0 26px; }
.quick-search label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.quick-search label > span { font-size: 12px; font-weight: 700; color: var(--muted); padding-left: 4px; }
.quick-search input, .quick-search select { border-color: var(--line-2); background: var(--bg); padding: 11px 12px; }
.qs-range { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.quick-search .btn { height: 46px; padding: 0 26px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 26px; letter-spacing: -0.03em; }
.hero-stats span { font-size: 14px; color: var(--muted); }
.hero-art { position: relative; height: 440px; }
.art { position: absolute; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 6px solid #fff; }
.art svg { display: block; width: 100%; height: auto; }
.art-tag { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); padding: 6px 10px; border-radius: 4px; font-size: 13px; font-weight: 700; }
.art-1 { width: 74%; right: 0; top: 10px; transform: rotate(1.5deg); }
.art-2 { width: 56%; left: 0; top: 190px; transform: rotate(-2.5deg); z-index: 2; }
.art-3 { width: 48%; right: 6%; top: 268px; transform: rotate(2deg); z-index: 3; }

/* Секции главной */
.sec { padding: 28px 0; }
.sec-tight { padding-top: 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--muted); max-width: 460px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tile { background: var(--surface); border-radius: var(--r); padding: 10px 10px 14px; box-shadow: var(--shadow); color: var(--ink); transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.tile-pic { border-radius: 5px; overflow: hidden; margin-bottom: 10px; }
.tile-pic svg { display: block; width: 100%; height: auto; }
.tile-t { font-weight: 800; padding: 0 6px; }
.tile-n { font-size: 14px; color: var(--muted); padding: 0 6px; }
.hrow { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.hrow:first-child { border-top: 0; }
.hrow-t { font-weight: 800; }
.hrow-l { display: flex; flex-wrap: wrap; gap: 8px; }
.lp { display: inline-flex; align-items: baseline; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 7px 14px; color: var(--ink); font-size: 15px; font-weight: 600; transition: border-color .15s, background .15s; }
.lp:hover { border-color: var(--brand); color: var(--brand-2); }
.lp i { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.step b { display: block; font-size: 18px; margin: 14px 0 6px; }
.step p { color: var(--ink-2); margin: 0; font-size: 15px; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 5px; background: var(--brand-soft); color: var(--brand); font-weight: 800; }

/* Каталог */
.catalog { padding-top: 28px; padding-bottom: 64px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.cat-head { margin-bottom: 18px; }
.cat-h { margin: 0 0 14px; }
.cat-bar { display: flex; align-items: center; gap: 12px; }
.found { font-weight: 700; color: var(--ink-2); }
.sort { margin-left: auto; }
.sort select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2374807a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; padding: 10px 36px 10px 14px; border-radius: 4px; font: 600 14px var(--font); color: var(--ink); cursor: pointer; }
.filters-toggle { display: none; }
.cnt { font-style: normal; background: var(--accent); color: #fff; border-radius: 5px; font-size: 12px; padding: 1px 7px; }
.cat-grid { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.filters { background: var(--surface); border-radius: var(--r-lg); padding: 6px 20px 20px; box-shadow: var(--shadow); position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; scrollbar-width: thin; }
.sheet-head { display: none; }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.flabel { font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.range { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.filters input[type=number] { padding: 10px 12px; background: var(--bg); border-color: var(--line-2); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quick a { font-size: 13px; font-weight: 600; padding: 5px 10px; background: var(--bg); border-radius: 5px; color: var(--ink-2); }
.quick a:hover { background: var(--brand-soft); color: var(--brand-2); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill input, .seg input, .switch input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 5px; background: var(--bg); border: 1px solid transparent; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; color: var(--ink-2); }
.pill i { font-style: normal; font-size: 11px; color: var(--muted); }
.pill:hover span { border-color: var(--line); }
.pill input:checked + span { background: var(--brand); color: #fff; }
.pill input:checked + span i { color: rgba(255,255,255,.75); }
.pill input:focus-visible + span, .seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(27,122,90,.25); }
.pill.off { opacity: .4; }
.seg { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--bg); border-radius: 5px; padding: 4px; gap: 2px; }
.seg span { display: block; text-align: center; padding: 7px 0; border-radius: 4px; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(17,26,22,.12); }
.switch { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 15px; font-weight: 600; cursor: pointer; }
.sw { position: relative; width: 40px; height: 24px; border-radius: 999px; background: #dcd8cf; transition: background .15s; flex: none; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s; }
.switch input:checked + .sw { background: var(--brand); }
.switch input:checked + .sw::after { transform: translateX(16px); }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.sheet-foot { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding-top: 16px; }
.backdrop { display: none; }

/* Карточки */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; color: var(--ink); display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card-pic { position: relative; margin: 8px 8px 0; border-radius: 6px; overflow: hidden; }
.card-pic svg { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.card:hover .card-pic svg { transform: scale(1.04); }
.badges { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.badge { display: inline-block; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); color: var(--ink); font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 4px; }
.badge-accent { background: var(--accent); color: #fff; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-weight: 800; font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.specs span { display: inline-flex; align-items: center; gap: 5px; }
.specs .ic { width: 15px; height: 15px; color: var(--muted); }
.extras { font-size: 13px; color: var(--muted); font-weight: 600; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); }
.price { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.price small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price.soft { font-size: 16px; color: var(--ink-2); }
.go { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); color: var(--ink); transition: background .2s, color .2s, transform .2s; }
.card:hover .go { background: var(--brand); color: #fff; transform: translateX(2px); }
.empty { background: var(--surface); border-radius: var(--r-lg); padding: 40px; text-align: center; box-shadow: var(--shadow); }
.empty b { font-size: 18px; display: block; margin-bottom: 6px; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 36px 0 8px; }
.pager a, .pager b, .pager .gap { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 5px; font-weight: 700; }
.pager a { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.pager a:hover { background: var(--brand-soft); color: var(--brand-2); }
.pager b { background: var(--ink); color: #fff; }
.related h2 { font-size: 20px; }

/* Заявка */
.lead { background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); margin-top: 40px; }
.lead-head { margin-bottom: 14px; }
.lead-title { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
.lead-sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.lead-fields { display: flex; flex-direction: column; gap: 10px; }
.lead-wide { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; background: linear-gradient(135deg, #133d30 0%, #1b7a5a 100%); color: #fff; padding: 32px; }
.lead-wide .lead-title { font-size: 28px; }
.lead-wide .lead-sub { color: rgba(255,255,255,.75); font-size: 16px; }
.lead-wide .inp { background: rgba(255,255,255,.96); border-color: transparent; }
.lead-wide .consent, .lead-wide .consent a { color: rgba(255,255,255,.75); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.4; }
.consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); flex: none; }
.consent a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.lead-msg { font-size: 15px; font-weight: 600; }
.lead-msg.ok { color: var(--brand); }
.lead-wide .lead-msg.ok { color: #b8f0d6; }
.lead-msg.bad { color: #c0392b; }
.lead-wide .lead-msg.bad { color: #ffd0c2; }
.lead.sent .inp, .lead.sent .consent, .lead.sent button { display: none; }

/* Страница проекта */
.project { padding-top: 24px; padding-bottom: 64px; }
.project-grid { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.project-main h1 { margin-bottom: 12px; }
.badges-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.badges-row .badge { background: var(--surface); box-shadow: var(--shadow); }
.hero-pic { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 10px; }
.hero-pic svg { display: block; width: 100%; height: auto; }
.pic-note { position: absolute; right: 14px; bottom: 14px; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); padding: 6px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.spec { background: var(--surface); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.spec span { font-size: 13px; color: var(--muted); font-weight: 600; }
.spec b { font-size: 19px; letter-spacing: -0.02em; }
.spec small { font-size: 12px; color: var(--muted); }
.offers { display: flex; flex-direction: column; gap: 8px; }
.offer { display: grid; grid-template-columns: 1fr auto 36px; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); color: var(--ink); border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.offer:hover { color: var(--ink); border-color: var(--line); transform: translateX(2px); }
.offer.best { border-color: var(--brand); }
.offer-who b { display: block; }
.offer-who span, .offer-price span { font-size: 13px; color: var(--muted); font-weight: 600; }
.offer-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.offer-price b { font-size: 18px; }
.offer:hover .go { background: var(--brand); color: #fff; }
.tag { display: inline-block; background: var(--brand); color: #fff !important; font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-top: 2px; }
.side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 12px; }
.side .lead { margin-top: 0; }
.panel { background: var(--surface); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow); }
.panel-l { font-size: 13px; font-weight: 700; color: var(--muted); }
.panel-v { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 4px 0; }
.panel p { margin: 0; font-size: 14px; color: var(--muted); }
.panel-warm { background: var(--accent-soft); box-shadow: none; }
.similar { margin-top: 24px; }
.mobile-cta { display: none; }
.page-head { margin-bottom: 8px; }
.page-head h1 { margin-bottom: 14px; }

.text p { font-size: 17px; color: var(--ink-2); }
.admin { padding-top: 28px; padding-bottom: 48px; }
.admin h1 { margin-bottom: 12px; }
.table-scroll { overflow-x: auto; }
.leads { border-collapse: collapse; width: 100%; background: var(--surface); font-size: 14px; border-radius: var(--r); overflow: hidden; }
.leads th, .leads td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.leads textarea, .leads select { font: inherit; border: 1px solid var(--line); border-radius: 4px; padding: 6px; }
.leads textarea { width: 200px; }
.admin form { margin-top: 16px; }

/* Подвал */
.foot { background: #0f1a16; color: #a9b6b0; padding: 56px 0 32px; font-size: 14px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid a { display: block; color: #d7e0dc; padding: 3px 0; }
.foot-grid a:hover { color: #fff; }
.foot-about p { margin-top: 14px; max-width: 360px; }
.logo-light, .logo-light:hover { color: #fff; display: inline-flex !important; }
.foot-h { color: #fff; font-weight: 800; margin-bottom: 10px; }
.foot-note { border-top: 1px solid #22302a; margin-top: 36px; padding-top: 20px; font-size: 13px; color: #7d8c85; }

/* Планшет */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hero-in { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; gap: 20px; }
  .hero-art { height: 300px; max-width: 560px; }
  .art-2 { top: 120px; }
  .art-3 { top: 170px; }
  .project-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* Фильтры — выезжающая снизу шторка */
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: 1fr; }
  .filters-toggle { display: inline-flex; }
  .cat-side { position: fixed; inset: auto 0 0 0; z-index: 50; transform: translateY(105%); transition: transform .28s ease; }
  .filters-open .cat-side { transform: none; }
  .filters { position: static; max-height: 86vh; border-radius: 10px 10px 0 0; padding: 0 20px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.18); }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--surface); padding: 16px 0 10px; z-index: 1; font-size: 18px; }
  .sheet-foot { position: sticky; bottom: 0; background: var(--surface); padding-bottom: 4px; }
  .backdrop { display: block; position: fixed; inset: 0; background: rgba(15,26,22,.45); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .filters-open .backdrop { opacity: 1; pointer-events: auto; }
  .filters-open { overflow: hidden; }
  .steps { grid-template-columns: 1fr; }
  .lead-wide { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
}
/* Телефон */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top-in { height: 60px; gap: 10px; }
  .logo span { font-size: 16px; }
  .logo-mark { width: 32px; height: 32px; }
  .top .btn { padding: 9px 12px; font-size: 13px; }
  .hero h1 { font-size: 34px; }
  .lead-p { font-size: 16px; }
  .quick-search { grid-template-columns: 1fr 1fr; padding: 10px; border-radius: 6px; }
  .quick-search label:first-child, .quick-search .btn { grid-column: 1 / -1; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 22px; }
  .hero-art { height: 220px; }
  .art-1 { width: 78%; }
  .art-2 { width: 58%; top: 90px; }
  .art-3 { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 8px 8px 12px; }
  .tile-t { font-size: 14px; }
  .tile-n { font-size: 12px; }
  .hrow { grid-template-columns: 1fr; gap: 8px; }
  .hrow-l { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .hrow-l::-webkit-scrollbar { display: none; }
  .lp { white-space: nowrap; }
  .cat-bar { flex-wrap: wrap; }
  .sort { margin-left: 0; flex: 1; }
  .sort select { width: 100%; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .offer { grid-template-columns: 1fr auto; }
  .offer .go { display: none; }
  .has-mobile-cta { padding-bottom: 76px; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-cta small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
  .mobile-cta b { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Колонки сетки не растягиваются под содержимое (иначе на телефоне карточка шире экрана) */
.cat-grid > *, .project-grid > *, .hero-in > * { min-width: 0; }
.grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
body { overflow-x: hidden; }
@media (max-width: 640px) {
  .cat-bar { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  .cat-bar .found { grid-column: 1 / -1; }
  .sort select { padding-right: 32px; }
  .art-tag { font-size: 11px; padding: 4px 8px; }
}

/* Фото продавцов: та же пропорция, что у схемы фасада (400×260) */
.card-pic img { display: block; width: 100%; aspect-ratio: 400 / 260; object-fit: cover; background: #eef2ef; transition: transform .4s ease; }
.card:hover .card-pic img { transform: scale(1.04); }
.hero-pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eef2ef; }

/* Галерея проекта и состав проекта (магазин) */
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin: -2px 0 14px; padding-bottom: 4px; }
.thumb { flex: 0 0 auto; width: 96px; height: 72px; border: 2px solid transparent; border-radius: 4px; overflow: hidden; padding: 0; background: #eef2ef; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.on { border-color: var(--accent, #14614a); }
.hero-pic img { object-fit: contain; background: #fff; }
.incl { margin: 0 0 10px; padding-left: 20px; line-height: 1.6; }

/* Настоящие фото в плитках материалов и в шапке */
.tile-pic img { display: block; width: 100%; aspect-ratio: 400 / 260; object-fit: cover; background: #eef2ef; transition: transform .4s ease; }
.tile:hover .tile-pic img { transform: scale(1.04); }
.art img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
a.art { color: inherit; text-decoration: none; }

/* Калькулятор стройки */
.calc { margin: 36px 0 8px; }
.calc h2 { margin-bottom: 6px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
.calc-opts, .calc-res { background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.calc-res { background: var(--accent-soft); box-shadow: none; border: 1px solid #f6d9c6; }
.calc-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.calc-stage { position: relative; display: block; padding: 12px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; transition: border-color .15s, background .15s; }
.calc-stage input { position: absolute; opacity: 0; pointer-events: none; }
.calc-stage b { display: block; font-size: 15px; }
.calc-stage small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 4px; }
.calc-stage:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.calc-f { display: block; margin-bottom: 12px; }
.calc-f > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.calc-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.calc-ex { display: grid; gap: 8px; margin-top: 4px; }
.calc-chk { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 15px; }
.calc-chk input { width: 18px; height: 18px; accent-color: var(--brand); }
.calc-chk small { color: var(--muted); }
.calc-sum { font-size: 34px; font-weight: 800; line-height: 1.15; margin: 4px 0 2px; letter-spacing: -.02em; }
.calc-m2 { color: var(--ink-2); margin-bottom: 12px; }
.calc-parts { width: 100%; border-collapse: collapse; font-size: 14px; }
.calc-parts td { padding: 7px 0; border-top: 1px solid #f3dccd; }
.calc-parts td:last-child { text-align: right; white-space: nowrap; font-weight: 700; padding-left: 10px; }
.calc .lead { margin-top: 18px; }
.calc-proj { margin: 18px 0 0; font-weight: 700; }
.hero-calc { margin-top: 18px; }
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-stages { grid-template-columns: 1fr; }
  .calc-stage small { display: inline; margin-left: 6px; }
  .calc-row3 { grid-template-columns: 1fr 1fr; }
  .calc-row3 .calc-f:first-child { grid-column: 1 / -1; }
  .calc-sum { font-size: 28px; }
}

/* Панель фильтров: только вертикальная прокрутка, ничего не вылезает по ширине */
.filters { overflow-x: hidden; overflow-y: auto; }
.filters * { min-width: 0; max-width: 100%; }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-foot .btn { flex: 1 1 auto; padding-left: 14px; padding-right: 14px; }
.sheet-foot .btn:last-child { flex-basis: 60%; }

/* Галерея: рендеры шире 4:3 — меньше белых полос */
.hero-pic img { aspect-ratio: 3 / 2; background: #f4f3ef; }

/* Компьютер: панель фильтров без своей прокрутки — тянется вниз вместе со страницей */
@media (min-width: 901px) {
  .filters { position: static; max-height: none; overflow: visible; }
}

/* «Сколько стоит дом»: выбор на главной, цена стройки в карточке */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 26px; }
.choice { position: relative; display: block; background: var(--surface); border-radius: 6px; padding: 16px 14px; box-shadow: var(--shadow); color: var(--ink); border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.choice:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-2px); }
.choice:first-child { border-color: var(--accent); }
.choice-ic { display: block; font-size: 26px; line-height: 1; margin-bottom: 8px; }
.choice b { display: block; font-size: 17px; }
.choice small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 3px; }
.choice i { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent-2); background: var(--accent-soft); padding: 2px 8px; border-radius: 5px; }
.home-calc { padding-top: 8px; }
.home-calc .calc { margin-top: 0; }
.pp { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.card-foot .price { font-size: 18px; }
.rates th { text-align: left; font-size: 13px; color: var(--muted); padding: 6px 0; }
.rates td:not(:first-child), .rates th:not(:first-child) { text-align: right; }
.filters .range span { white-space: nowrap; }
@media (max-width: 900px) {
  .choices { grid-template-columns: 1fr; }
  .choice { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; padding: 12px 14px; }
  .choice-ic { grid-row: span 2; margin: 0; }
}

/* Цена по фото */
.foto-drop { position: relative; display: grid; place-items: center; min-height: 180px; border: 2px dashed #cfd8d2; border-radius: var(--r-lg); background: var(--surface); cursor: pointer; overflow: hidden; text-align: center; padding: 16px; }
.foto-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.foto-drop img { max-width: 100%; max-height: 360px; border-radius: 5px; display: block; margin-bottom: 10px; }
.foto-drop span { font-weight: 700; color: var(--brand); }
.foto-note { margin: 14px 0 8px; }
.fitems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fitem { position: relative; display: block; text-align: center; padding: 12px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; cursor: pointer; font-size: 14px; line-height: 1.25; }
.fitem input { position: absolute; opacity: 0; pointer-events: none; }
.fitem-ic { display: block; font-size: 26px; margin-bottom: 4px; }
.fitem b { font-weight: 600; }
.fitem:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.foto-row { margin-top: 16px; grid-template-columns: 1fr 2fr; }
.foto-res { margin-top: 6px; }
.foto-tab th { text-align: right; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.foto-tab td:not(:first-child) { text-align: right; }
.calc-f > span i { font-style: normal; }
@media (max-width: 900px) {
  .fitems { grid-template-columns: repeat(3, 1fr); }
  .foto-row { grid-template-columns: 1fr 1fr; }
  .foto-row .calc-f:first-child { grid-column: auto; }
  .foto-tab { font-size: 13px; }
}
.fitems { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .fitems { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fitem { font-size: 13px; padding: 10px 4px; overflow-wrap: anywhere; } }

/* Слоган над заголовком разделов каталога */
.slogan { display: inline-block; font-size: 15px; font-weight: 800; color: var(--accent-2); background: var(--accent-soft); padding: 6px 12px; border-radius: 5px; margin: 4px 0 10px; letter-spacing: -.01em; }
.cat-sub { margin: 6px 0 4px; color: var(--ink-2); max-width: 760px; }

/* Главная: популярные проекты */
.grid.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.more { text-align: center; margin: 24px 0 0; }
@media (max-width: 1100px) { .grid.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid.grid-4 { grid-template-columns: 1fr; } }

/* Переключатель языка */
.langs { display: flex; gap: 2px; margin-left: auto; margin-right: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 2px; }
.langs a { font-size: 13px; font-weight: 700; color: var(--muted); padding: 4px 8px; border-radius: 4px; }
.langs a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
@media (max-width: 900px) { .langs { margin-right: 8px; } .langs a { padding: 3px 6px; font-size: 12px; } }
