/* keram-nn.ru: общая дизайн-система шаблона keram (сетка, компоненты). Цвета и шрифты — токены оформлений css/v1–v3.css.
   Своя для сайта (CLAUDE.md, «Своё лицо»): не подключать стили других сайтов сети. Мобильная версия первой, ширина от 320 px. */
:root {
  --bg: #fff; --surface: #fff; --alt: #f7f2ee; --ink: #2f2a28; --muted: #6b6461; --line: #e7ded8;
  --accent: #c85f37; --accent-dark: #a2482a; --on-accent: #fff; --accent-2: #c85f37;
  --head: "Roboto Slab", Georgia, serif; --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 6px; --r-lg: 10px; --gap: 16px; --wrap: 1280px; --logo-a: #c85f37; --logo-b: #3a3434;
  --shadow: 0 14px 34px rgba(40, 30, 25, .14);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(30px, 7.4vw, 54px); font-weight: 700; }
h2 { font-size: clamp(24px, 5.2vw, 36px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.lead { font-size: clamp(16px, 4.1vw, 19px); color: var(--muted); max-width: 40em; }
.kicker { display: inline-block; margin: 0 0 8px; color: var(--accent); font: 700 13px/1.3 var(--body); letter-spacing: .07em; text-transform: uppercase; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.more { font-weight: 700; color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* кнопки, плашки, метки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 2px solid var(--accent); border-radius: var(--r);
  background: var(--accent); color: var(--on-accent); font: 700 16px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn .ico { width: 20px; height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font: 600 14px/1.2 var(--body); text-decoration: none; cursor: pointer; }
.chip:hover, .chip[aria-pressed="true"], .chip[aria-current] { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.chip__sw { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font: 700 12px/1.4 var(--body); }
.badge--sale { background: var(--accent); color: var(--on-accent); }
.price { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.price b { font-size: 19px; color: var(--ink); }
.price--big b { font-size: clamp(26px, 6vw, 34px); }
.price--ask { font-weight: 700; color: var(--ink); }
.ico { width: 22px; height: 22px; flex: none; }

/* временный выбор оформления */
.themebar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 7px 16px; background: #1f1c1a; color: #f2ece6; font: 600 13px/1.3 var(--body); }
.themebar a { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; }
.themebar a[aria-current] { background: #f2ece6; color: #1f1c1a; }
.themebar__t span, .themebar a span { opacity: .8; }

/* шапка */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo__img { width: 64px; height: 39px; flex: none; }
.lg-a { fill: var(--logo-a); } .lg-b { fill: var(--logo-b); }
.logo__sub { display: none; line-height: 1.2; }
.logo__sub b { display: block; font: 700 15px/1.2 var(--head); }
.logo__sub span { display: block; font-size: 12px; color: var(--muted); }
.nav { display: none; }
.hdr__tel { margin-left: auto; text-decoration: none; text-align: right; }
.hdr__num { display: block; font: 800 16px/1.2 var(--body); white-space: nowrap; }
.hdr__hint { display: none; font-size: 12px; color: var(--muted); }
.burger { position: relative; }
.burger summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.burger summary::-webkit-details-marker { display: none; }
.burger summary span, .burger summary span::before, .burger summary span::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; content: ""; }
.burger summary span::before { position: absolute; top: -7px; } .burger summary span::after { position: absolute; top: 7px; }
.burger__nav { position: absolute; right: 0; top: 50px; width: min(300px, 86vw); max-height: 78vh; overflow: auto; padding: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow); display: grid; }
.burger__nav a { padding: 10px 12px; border-radius: var(--r); text-decoration: none; font-weight: 700; }
.burger__nav a:hover { background: var(--alt); }
.burger__nav .burger__sub { padding-left: 26px; font-weight: 500; }

/* первый экран */
.hero__in { display: grid; gap: 20px; padding-top: 16px; padding-bottom: 34px; }
.hero__pic { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--alt); }
.hero__pic img { width: 100%; height: 100%; object-fit: cover; }
.hero__pic figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: var(--r); background: rgba(255,255,255,.92); color: #2f2a28; font-size: 12.5px; font-weight: 600; }
.hero h1 { margin-bottom: 14px; }
.hero__chips { margin: 16px 0 18px; }
.hero__cta { display: grid; gap: 10px; margin: 22px 0 0; }
.hero__call { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hero__call a { color: var(--ink); font-weight: 700; text-decoration: none; }
.serv { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.serv li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.serv i { width: 40px; height: 40px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.serv b { display: block; font-size: 16px; }
.serv span { display: block; font-size: 14.5px; color: var(--muted); }

/* секции */
.sec { padding: 40px 0; }
.sec--alt { background: var(--alt); }
.sec__h { margin-bottom: 20px; }
.sec__h .lead { margin-top: -4px; }
.split { display: grid; gap: 22px; }
.phead { padding: 22px 0 8px; }
.phead .lead { margin-top: 4px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 12px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a::after { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a:hover { color: var(--accent); }
.prose { font-size: 16.5px; }
.prose h2 { margin-top: 1.4em; font-size: clamp(22px, 4.6vw, 30px); }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .4em; }

/* коллекции, цвета */
.tiles { display: grid; gap: 14px; }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: #1d1a18; color: #fff; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover img { transform: scale(1.04); }
.tile__t { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 16px 16px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.86) 55%); }
.tile__t b { display: block; font: 700 22px/1.15 var(--head); margin-bottom: 4px; }
.tile__t span { display: block; font-size: 14px; color: #ece4dc; }
.tile__t small { display: block; margin-top: 6px; font-weight: 700; font-size: 13px; color: #fff; }
.pals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pal { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; }
.pal:hover { border-color: var(--accent); }
.pal__sw { height: 56px; border-radius: var(--r); background:
  repeating-linear-gradient(0deg, transparent 0 14px, rgba(255,255,255,.55) 14px 16px), repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.55) 46px 48px), var(--sw);
  background-size: 100% 100%, 96px 32px, auto; }
.pal b { font: 700 17px/1.2 var(--head); }
.pal span { font-size: 13px; color: var(--muted); }

/* карточки кирпичей */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.filters__k { width: 100%; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card { min-width: 0; }
.card__a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.card__a:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.card__m { position: relative; aspect-ratio: 4 / 3; background: var(--alt); }
.card__m img { width: 100%; height: 100%; object-fit: cover; }
.card__sw { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.5) 22px 25px), repeating-linear-gradient(90deg, transparent 0 70px, rgba(255,255,255,.5) 70px 73px), var(--sw); background-size: 100% 100%, 146px 50px, auto; }
.card__b { padding: 10px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.card__k { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card__t { margin: 0 0 4px; font: 700 16px/1.25 var(--head); }
.card__f { margin: 0; font-size: 13px; color: var(--muted); }
.card .price { margin-top: auto; padding-top: 8px; }

/* распродажа, подборщик, рендер */
.sale { background: var(--alt); }
.sale__in, .mix__in, .render__in { display: grid; gap: 22px; align-items: center; }
.sale__img { border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.sale__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.mix__shot { margin: 0; }
.frame { display: flex; gap: 6px; align-items: center; height: 22px; padding: 0 10px; background: #2b2b2b; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.frame i { width: 8px; height: 8px; border-radius: 50%; background: #5a5a5a; }
.mix__shot img { width: 100%; border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--shadow); }
.mix__shot figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.render__in img { border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* шоурумы */
.rooms { display: grid; gap: 12px; }
.room { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.room b { display: block; font: 700 18px/1.2 var(--head); margin-bottom: 6px; }
.room p { margin: 0 0 6px; font-size: 15px; color: var(--muted); }
.room a { color: var(--accent); font-weight: 700; text-decoration: none; }
.rooms__cta { margin-top: 18px; }

/* формы */
.sec--form { background: var(--alt); }
.form { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.form input, .form textarea, .form select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: #2f2a28; font: 400 16px/1.4 var(--body); }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--accent); outline: none; }
.form .chk { display: block; position: relative; padding-left: 30px; font-weight: 500; line-height: 1.45; }   /* текст согласия одной строкой со ссылкой (на телефоне не делится на колонки, №15) */
.form .chk input { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: 0; }
.form__msg { margin: 0; padding: 10px 12px; border-radius: var(--r); font-weight: 700; }
.form__msg.is-ok { background: #e6f2e3; color: #24502a; } .form__msg.is-err { background: #f8e3dd; color: #8a2b13; }
.form__alt { font-size: 15px; color: var(--muted); }
.form__alt a { color: var(--ink); font-weight: 700; }

/* вопросы */
.qa { border-bottom: 1px solid var(--line); }
.qa summary { padding: 16px 32px 16px 0; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--accent); }
.qa[open] summary::after { content: "−"; }
.qa__a { padding: 0 0 16px; color: var(--muted); }
.qa__a a { color: var(--accent); }

/* карточка кирпича */
.prod { display: grid; gap: 22px; padding-top: 4px; padding-bottom: 30px; }
.gal { min-width: 0; }
.gal__main { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--alt); position: relative; }
.gal__main img { width: 100%; height: 100%; object-fit: cover; }
.gal__th { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gal__th button { flex: none; width: 76px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; cursor: pointer; background: none; }
.gal__th button[aria-pressed="true"] { border-color: var(--accent); }
.gal__th img { width: 100%; height: 100%; object-fit: cover; }
.gal__src { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.prod__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.prod__chips span { padding: 4px 10px; border-radius: 999px; background: var(--alt); font-size: 13.5px; font-weight: 600; }
.buy { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.buy__cta { display: grid; gap: 10px; margin: 14px 0 0; }
.spec { overflow-x: auto; }
.spec__t { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec__t th, .spec__t td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec__t thead th { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.spec__t .num { text-align: right; white-space: nowrap; }
.spec__t small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.props { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.props dt { color: var(--muted); } .props dd { margin: 0; font-weight: 700; }
.calc { padding: 16px; border-radius: var(--r-lg); background: var(--alt); }
.calc form { display: grid; gap: 10px; }
.calc label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.calc select, .calc input { padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--r); font: 400 16px/1.3 var(--body); background: #fff; color: #2f2a28; }
.calc__out { margin: 12px 0; font-size: 16px; }
@media (max-width: 640px) {
  .spec__t thead { display: none; }
  .spec__t tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .spec__t td { border: 0; padding: 2px 0; text-align: left !important; white-space: normal !important; }
  .spec__t td::before { content: attr(data-l); display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
  .spec__t td:first-child { grid-column: 1 / -1; }
}

/* подвал, нижняя панель телефона, cookie */
.ftr { padding: 36px 0 110px; background: #1f1c1a; color: #d9d0c8; }
.ftr .logo { color: #fff; } .ftr .lg-b { fill: #fff; } .ftr .logo__sub { display: block; } .ftr .logo__sub span { color: #b9afa6; }
.ftr__in { display: grid; gap: 24px; }
.ftr p { font-size: 14px; }
.ftr__nav { display: grid; gap: 8px; align-content: start; }
.ftr__nav a { color: #f2ece6; text-decoration: none; font-size: 15px; }
.ftr__nav a:hover, .ftr__nap a:hover { color: #ffb59a; }
.ftr__tel { display: inline-block; margin-bottom: 8px; font: 800 22px/1.2 var(--body); color: #fff; text-decoration: none; }
.ftr__nap a { color: #fff; }
.ftr__legal { grid-column: 1 / -1; font-size: 12.5px !important; color: #a39990; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }
.ftr__legal a { color: #d9d0c8; }
.fab { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); }
.fab a { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; font-size: 12px; font-weight: 700; text-decoration: none; color: var(--ink); }
.fab svg { width: 22px; height: 22px; }
.fab__render { color: var(--accent) !important; }
.cookie { position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 40; max-width: 520px; padding: 14px 16px; border-radius: var(--r-lg); background: #2b2725; color: #f2ece6; box-shadow: var(--shadow); font-size: 14px; }
.cookie a { color: #ffb59a; }
.cookie__settings { display: grid; gap: 6px; margin: 8px 0; }
.cookie__bar { display: flex; justify-content: flex-end; gap: 12px; align-items: center; }
.cookie__link { background: none; border: 0; color: #f2ece6; text-decoration: underline; cursor: pointer; font: inherit; }

@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pals { grid-template-columns: repeat(3, 1fr); }
  .rooms { grid-template-columns: 1fr 1fr; }
  .hero__cta { grid-auto-flow: column; justify-content: start; }
  .buy__cta { grid-auto-flow: column; justify-content: start; }
}
@media (min-width: 980px) {
  .wrap { padding: 0 40px; }
  .hdr__in { min-height: 76px; gap: 22px; }
  .logo__sub, .hdr__hint { display: block; }
  .nav { display: flex; gap: 20px; margin-left: auto; font-weight: 600; font-size: 15px; }
  .nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
  .nav a:hover, .nav a[aria-current] { border-color: var(--accent); }
  .hdr__tel { margin-left: 8px; }
  .burger { display: none; }
  .hero__in { grid-template-columns: 6fr 6fr; gap: 56px; align-items: center; padding-top: 44px; padding-bottom: 56px; }
  .hero__pic { order: 2; aspect-ratio: 5 / 4.4; }
  .hero__txt { order: 1; }
  .sec { padding: 64px 0; }
  .split { grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { aspect-ratio: 3 / 4; }
  .pals { grid-template-columns: repeat(6, 1fr); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .sale__in, .mix__in, .render__in { grid-template-columns: 5fr 6fr; gap: 56px; }
  .prod { grid-template-columns: 7fr 5fr; gap: 44px; align-items: start; }
  .ftr { padding-bottom: 40px; }
  .ftr__in { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .fab { display: none; }
  .cookie { bottom: 20px; left: 20px; }
}
/* страницы: объекты, документы, подзаголовки разделов */
.sec--tight { padding-top: 12px; }
h2.sub { margin: 26px 0 14px; font-size: clamp(20px, 4.4vw, 26px); }
h2.sub:first-child { margin-top: 0; }
.more-row { margin-top: 22px; }
.objs { display: grid; gap: 16px; }
.obj { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.obj img, .obj__ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; position: relative; background: var(--alt); }
.obj__b { padding: 16px; }
.obj__b h2 { font-size: 22px; margin-bottom: 4px; }
.obj__w { color: var(--muted); font-size: 14.5px; }
.obj__l a { color: var(--accent); font-weight: 700; }
.docs { display: grid; gap: 18px; }
.doc { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.doc img { border: 1px solid var(--line); border-radius: 4px; }
.doc h2 { font-size: 19px; }
@media (min-width: 980px) { .objs { grid-template-columns: 1fr 1fr; } .docs { grid-template-columns: 1fr 1fr; } .doc { grid-template-columns: 160px 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* iOS 26 рисует текст выбранного пункта select в одну строку без обрезки: длинный пункт («Мещерский б-р, д. 3, корп. 3, м. Стрелка») расширял страницу
   на телефоне (найдено на poritep-nn.ru 01.11.2026 замером на iPhone владельца, та же правка на istkult, bonolit, braer, magma). */
.form select, .calc select { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; contain: paint; }
.calc label, .form label:not(.chk) { grid-template-columns: minmax(0, 1fr); }

/* заглушка «кирпич на фотосессии» вместо фото (2026-11-23) */
.shoot { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* «Плиткой / Списком» (2026-11-23): вкладки с подчёркиванием, кнопки не меньше 44 px */
.vtoggle { display: flex; gap: 18px; margin: -4px 0 14px; border-bottom: 1px solid var(--line); }
.vtoggle button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: none; color: var(--muted); font: 700 14px/1 var(--body); cursor: pointer; }
.vtoggle button svg { width: 14px; height: 14px; fill: currentColor; }
.vtoggle button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.cards--list { grid-template-columns: 1fr !important; gap: 8px; }
.cards--list .card__a { flex-direction: row; align-items: stretch; }
.cards--list .card__m { flex: none; width: 112px; aspect-ratio: auto; min-height: 96px; }
.cards--list .card__b { padding: 10px 14px; justify-content: center; }
.cards--list .badges { display: none; }
@media (min-width: 600px) {
  .cards--list .card__m { width: 168px; min-height: 112px; }
  .cards--list .card__b { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-content: center; }
  .cards--list .card__b > * { grid-column: 1; }
  .cards--list .card__b .price { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; padding: 0; text-align: right; }
}
.art { padding: 4px 0 14px; border-bottom: 1px solid var(--line); }
.art h2 { margin-bottom: 6px; } .art h2 a { text-decoration: none; }

/* карусель рендеров (2026-11-23) */
.rcar { position: relative; min-width: 0; }
.rcar__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--r-lg); scrollbar-width: none; }
.rcar__track::-webkit-scrollbar { display: none; }
.rcar__s { margin: 0; scroll-snap-align: start; position: relative; aspect-ratio: 3 / 2; background: var(--alt); }
.rcar__s img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rcar__s figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 5px 10px; border-radius: var(--r); background: rgba(255,255,255,.92); color: #2f2a28; font-size: 13px; font-weight: 600; }
.rcar__nav { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #2f2a28; font: 400 30px/1 var(--body); cursor: pointer; box-shadow: var(--shadow); }
.rcar__prev { left: 10px; } .rcar__next { right: 10px; }
.rcar__dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.rcar__dots button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; position: relative; }
.rcar__dots button::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--line); }
.rcar__dots button[aria-current="true"]::after { background: var(--accent); }

.render__in > :only-child { grid-column: 1 / -1; max-width: 760px; }
.render__in .rcar img { aspect-ratio: auto; border-radius: 0; border: 0; }

/* галерея домов из фотобанка (2026-11-23) */
.hgal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hgal__i { margin: 0; min-width: 0; }
.hgal__i a { display: block; border-radius: var(--r); overflow: hidden; background: var(--alt); }
.hgal__i img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; transition: transform .3s; }
.hgal__i a:hover img { transform: scale(1.03); }
.hgal__i figcaption { margin-top: 5px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
@media (min-width: 760px) { .hgal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .hgal { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
