:root {
  --ink: #17191c;
  --ink-2: #2a2d32;
  --text: #232428;
  --muted: #66686e;
  --line: #e6e6e8;
  --paper: #f7f7f7;
  --img-bg: #f0f0f1;
  --card: #ffffff;
  --accent: #ff7a00;
  --accent-d: #e56a00;
  --accent-soft: #fff1e3;
  --wa: #1fa855;
  --r-s: 12px;
  --r: 18px;
  --r-l: 28px;
  --shadow: 0 1px 2px rgba(23, 25, 28, .04), 0 8px 24px rgba(23, 25, 28, .06);
  --shadow-h: 0 2px 4px rgba(23, 25, 28, .05), 0 18px 40px rgba(23, 25, 28, .12);
  --display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --top-h: 84px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --white-60: rgba(255, 255, 255, .6);
  --ink-62: rgba(23, 25, 28, .62);
  --ink-90: rgba(23, 25, 28, .9);
  --white-72: rgba(255, 255, 255, .72);
  --black-22: rgba(0, 0, 0, .22);
  --black-35: rgba(0, 0, 0, .35);
  --black-12: rgba(0, 0, 0, .12);
  --ink-3-40: rgba(15, 16, 18, .4);
  --c-1b1c1f: #1b1c1f;
  --c-26282d: #26282d;
  /* производные цвета: прозрачности белого, тёмного и акцента */
  --accent-28: rgba(255, 122, 0, .28);
  --bad-18: rgba(255, 90, 78, .18);
  --black-28: rgba(0, 0, 0, .28);
  --black-30: rgba(0, 0, 0, .3);
  --black-32: rgba(0, 0, 0, .32);
  --black-38: rgba(0, 0, 0, .38);
  --c-1b964c: #1b964c;
  --c-23262b: #23262b;
  --c-3a3027: #3a3027;
  --c-3ddc84: #3ddc84;
  --c-8b8d92: #8b8d92;
  --c-ececee: #ececee;
  --c-ff5a4e: #ff5a4e;
  --c-ff8c1f: #ff8c1f;
  --ink-0: rgba(23, 25, 28, 0);
  --ink-2-86: rgba(20, 21, 24, .86);
  --ink-2-90: rgba(20, 21, 24, .9);
  --ink-3-55: rgba(15, 16, 18, .55);
  --ink-55: rgba(23, 25, 28, .55);
  --ink-82: rgba(23, 25, 28, .82);
  --ink-94: rgba(23, 25, 28, .94);
  --night-0: rgba(35, 38, 43, 0);
  --ok-18: rgba(61, 220, 132, .18);
  --warm-0: rgba(58, 48, 39, 0);
  --white: #fff;
  --white-10: rgba(255, 255, 255, .1);
  --white-12: rgba(255, 255, 255, .12);
  --white-14: rgba(255, 255, 255, .14);
  --white-16: rgba(255, 255, 255, .16);
  --white-50: rgba(255, 255, 255, .5);
  --white-6: rgba(255, 255, 255, .06);
  --white-65: rgba(255, 255, 255, .65);
  --white-7: rgba(255, 255, 255, .07);
  --white-70: rgba(255, 255, 255, .7);
  --white-78: rgba(255, 255, 255, .78);
  --white-8: rgba(255, 255, 255, .08);
  --white-80: rgba(255, 255, 255, .8);
  --white-85: rgba(255, 255, 255, .85);
  --white-9: rgba(255, 255, 255, .09);
  --white-94: rgba(255, 255, 255, .94);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.5 var(--body); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-28); }
input { caret-color: var(--accent); }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
@media (max-width: 560px) { .wrap { width: calc(100% - 32px); } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 14px; border: 0;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--c-ff8c1f); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--c-1b964c); }
.btn-ghost { background: var(--white-8); color: var(--white); border: 1px solid var(--white-14); }
.btn-ghost:hover { background: var(--white-14); }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.wide { width: 100%; height: 54px; font-size: 16px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 8px; font-size: 14px; }

/* ---------- шапка: плавающая капсула ---------- */
.top {
  position: fixed; z-index: 40; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(1240px, calc(100% - 24px));
}
.bar {
  position: relative; z-index: 2; height: 60px; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 18px;
  border-radius: 20px; color: var(--white);
  background: var(--ink-62); border: 1px solid var(--white-10);
  backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 10px 30px var(--black-22), inset 0 1px 0 var(--white-8);
  transition: background-color .3s ease;
}
.top.solid .bar, body.in-view .bar, body.mega-open .bar { background: var(--ink-90); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 18px; flex: none; }
.brand img { height: 24px; width: auto; }
.brand-name { display: grid; font-weight: 700; font-size: 17px; line-height: 1.05; letter-spacing: -.02em; }
.brand-name small { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--accent); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav a, .nav-cat {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 12px;
  background: none; color: var(--white-72); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover, .nav-cat:hover { color: var(--white); background: var(--white-8); }
.nav-cat svg { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.nav-cat[aria-expanded="true"] { color: var(--white); background: var(--white-10); }
.nav-cat[aria-expanded="true"] svg { transform: rotate(180deg); }
.status {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; margin-right: 4px;
  border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--white-72); white-space: nowrap;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-3ddc84); box-shadow: 0 0 0 3px var(--ok-18); }
.status.closed i { background: var(--c-ff5a4e); box-shadow: 0 0 0 3px var(--bad-18); }
.call {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 14px; flex: none;
  background: var(--white); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; font-variant-numeric: tabular-nums;
  transition: transform .15s ease, background-color .15s ease;
}
.call:hover { background: var(--c-ececee); }
.call:active { transform: scale(.97); }
.menu-btn { display: none; }

/* панель каталога */
.mega {
  position: absolute; z-index: 1; left: 0; right: 0; top: calc(100% + 8px);
  border-radius: 22px; background: var(--white); color: var(--ink); overflow: hidden;
  box-shadow: 0 30px 80px var(--black-35), 0 2px 8px var(--black-12);
  transform-origin: top center; animation: mega-in .28s cubic-bezier(.2, .8, .2, 1);
}
@keyframes mega-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
.mega-in { max-height: calc(100svh - 110px); overflow: auto; overscroll-behavior: contain; }
.mega-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 28px; padding: 26px 28px 18px; }
.mega-group h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin: 0 0 8px 8px; }
.mega-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-group a {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 6px 8px; border-radius: 12px; text-decoration: none; transition: background-color .15s ease;
}
.mega-group a:hover, .mega-group a:focus-visible { background: var(--paper); }
.mega-group img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; background: var(--img-bg); }
.mega-group span { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega-group small { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mega-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 16px 28px 20px; border-top: 1px solid var(--line); background: var(--paper);
}
.mega-all {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 14px;
  background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none;
}
.mega-all b { font-weight: 700; color: var(--accent); }
.mega-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.mega-contacts a { color: var(--ink); font-weight: 600; text-decoration: none; }
.mega-contacts a:hover { color: var(--accent-d); }
.mega-scrim { position: fixed; inset: 0; z-index: 39; background: var(--ink-3-40); animation: fade .25s ease; }
.mega-scrim[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 1080px) { .status { display: none; } .mega-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  :root { --top-h: 72px; }
  .top { top: 8px; width: calc(100% - 16px); }
  .bar { height: 56px; padding: 0 6px 0 14px; border-radius: 18px; }
  .nav, .call { display: none; }
  .brand { margin-right: auto; }
  .status { display: inline-flex; height: 36px; padding: 0 10px; font-size: 13px; }
  .menu-btn {
    display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; border: 0; border-radius: 13px;
    background: var(--white-10); flex: none;
  }
  .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mega { border-radius: 20px; top: calc(100% + 6px); }
  .mega-in { max-height: calc(100svh - 84px - var(--safe-b)); }
  .mega-groups { grid-template-columns: minmax(0, 1fr); padding: 18px 12px 8px; gap: 14px; }
  .mega-foot { padding: 14px 16px 18px; }
  .mega-all { width: 100%; justify-content: center; }
}
@media (max-width: 380px) { .status span { display: none; } .status { padding: 0 8px; } }
@media (prefers-reduced-motion: reduce) { .mega, .mega-scrim { animation: none; } }

/* ---------- первый экран ---------- */
.hero {
  position: relative; min-height: max(640px, 100svh); color: var(--white); overflow: hidden;
  background:
    radial-gradient(1200px 700px at 78% 55%, var(--c-3a3027) 0%, var(--warm-0) 60%),
    radial-gradient(900px 500px at 10% 10%, var(--c-23262b) 0%, var(--night-0) 70%),
    var(--ink);
  display: flex; flex-direction: column;
}
.hero::after { /* лёгкая «зернистость» бетона */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-stage { position: absolute; inset: 0; z-index: 0; }
@media (min-width: 901px) {
  /* затемнение слева, чтобы текст читался поверх площадки */
  .hero-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--ink-94) 0%, var(--ink-82) 34%, var(--ink-0) 60%); }
  .hotspots { z-index: 2; }
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.hero-stage.fallback { background: url("img/base/tiles/kirpich-v2.webp") 78% 60% / auto 70% no-repeat; }
.hero-in {
  position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--top-h) + 40px) 0 40px; pointer-events: none;
}
.hero-in > * { pointer-events: auto; }
.hero-copy, .facts { pointer-events: none !important; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.hero-copy { max-width: 560px; }
.place {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; margin-bottom: 22px; padding: 0 12px 0 10px;
  border-radius: 12px; background: var(--white-7); border: 1px solid var(--white-10); color: var(--white-85);
  font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .15s ease, border-color .15s ease;
}
.place > svg:first-child { color: var(--accent); }
.place b { color: var(--white); font-weight: 700; }
.place-go { color: var(--white-60); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.place:hover { background: var(--white-10); border-color: var(--white-14); }
.place:hover .place-go { transform: translate(2px, -2px); }
@media (max-width: 900px) { .brand img { height: 22px; } .brand-name { font-size: 16px; } .place { height: 36px; margin-bottom: 16px; font-size: 14px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--white-7); border: 1px solid var(--white-10); font-size: 14px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-3ddc84); box-shadow: 0 0 0 4px var(--ok-18); }
.eyebrow.closed .dot { background: var(--c-ff5a4e); box-shadow: 0 0 0 4px var(--bad-18); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.hero h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--white-78); margin: 22px 0 28px; max-width: 520px; }
.lead b { color: var(--white); }

.search {
  display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 8px 0 18px; max-width: 540px;
  background: var(--white); color: var(--muted); border-radius: 16px; text-decoration: none;
  box-shadow: 0 18px 44px var(--black-32); transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;
}
.search:hover { transform: translateY(-1px); box-shadow: 0 22px 50px var(--black-38); }
.search > svg { flex: none; color: var(--ink); }
.search span { flex: 1; min-width: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search i { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--ink); display: grid; place-items: center; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick a { font-size: 13px; font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--white-6); border: 1px solid var(--white-12); color: var(--white-85); }
.quick a:hover { background: var(--white-14); }


.hotspots { position: absolute; inset: 0; pointer-events: none; }
.hs {
  position: absolute; left: 0; top: 0; pointer-events: auto; transform: translate(-50%, -100%);
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 0;
  background: var(--white-94); color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 8px 22px var(--black-30); transition: opacity .3s ease, background-color .2s ease; opacity: 0;
}
.hs:not(.on) { pointer-events: none; }
.hs.on { opacity: 1; }
.hs::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.hs i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-style: normal; font-size: 14px; color: var(--ink); }
.hs small { color: var(--muted); font-weight: 600; }
.hs:hover, .hs.hot { background: var(--accent); }
.hs:hover small, .hs.hot small { color: var(--ink); }
.hs:hover i, .hs.hot i { background: var(--ink); color: var(--white); }
.hint-3d { position: absolute; z-index: 2; right: 28px; bottom: 24px; margin: 0; font-size: 13px; color: var(--white-50); }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-in { padding: calc(var(--top-h) + 24px) 0 0; order: 1; }
  .hero-stage { position: relative; inset: auto; order: 2; height: min(96vw, 520px); margin-top: -8px; }
  .hero-copy { max-width: none; }
  .hint-3d { position: static; order: 3; text-align: center; margin: -8px 0 18px; }
  .hero-in { display: contents; }
  .hero-copy { order: 1; width: calc(100% - 32px); margin: calc(var(--top-h) + 20px) auto 0; }
}
@media (max-width: 560px) {
  .search { height: 56px; padding-left: 14px; }
  .search .btn { padding: 0 14px; }
  .hs { font-size: 12px; padding: 5px 10px 5px 5px; }
  .hs small { display: none; }
}

/* ---------- секции ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; color: var(--ink); }
.sec-sub { margin: 14px 0 0; color: var(--muted); font-size: 17px; }

/* группы и плитки разделов */
.group + .group { margin-top: 44px; }
.group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.group-title h3 { font-size: 20px; color: var(--ink); }
.group-title span { color: var(--muted); font-size: 14px; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--card);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.tile-img { aspect-ratio: 4 / 3; background: var(--img-bg); overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tile-body b { font: 700 17px/1.25 var(--display); letter-spacing: -.02em; color: var(--ink); }
.tile-body small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.tile-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tile-price { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile-price span { font-weight: 600; color: var(--muted); font-size: 13px; }
.tile-count { font-size: 12px; font-weight: 700; color: var(--accent-d); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; }
.tile.hl { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1080px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .tile-body { padding: 12px; } .tile-body b { font-size: 15px; } .tile-body small { display: none; } }

/* сервис */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px; }
.why-card { position: relative; background: var(--paper); border-radius: var(--r-l); padding: 28px; overflow: hidden; min-height: 220px; display: flex; flex-direction: column; }
.why-card h3 { font-size: 22px; color: var(--ink); margin: 0 0 10px; }
.why-card p { margin: 0; color: var(--muted); max-width: 420px; }
.why-card.big { grid-row: span 2; }
.why-card.big img { margin: 24px auto -28px; width: 100%; max-width: 420px; flex: 1; min-height: 220px; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; }
.why-card.dark { grid-column: span 2; background: var(--ink); color: var(--white); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; column-gap: 32px; }
.why-card.dark h3 { grid-column: 1 / -1; color: var(--white); }
.why-card.dark p { color: var(--white-70); align-self: end; }
.why-card.dark .btn { align-self: end; }
@media (max-width: 560px) { .why-card.dark { grid-template-columns: minmax(0, 1fr); row-gap: 18px; } }
@media (max-width: 900px) { .why-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .why-card.big { grid-column: span 2; grid-row: auto; } .why-card.dark { grid-column: span 2; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: minmax(0, 1fr); } .why-card.big, .why-card.dark { grid-column: auto; } .why-card { padding: 22px; min-height: 0; } .why-card.big img { margin: 20px auto -22px; min-height: 180px; } }

.steps { list-style: none; counter-reset: s; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: s; padding: 22px 0 0; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--white) !important; font: 700 14px/1 var(--display); color: var(--accent-d); margin-bottom: 12px; }
.steps b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.steps span { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* контакты */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ct-list { margin: 28px 0 0; display: grid; gap: 0; }
.ct-list div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.ct-list dt { color: var(--muted); font-weight: 600; }
.ct-list dd { margin: 0; font-weight: 700; color: var(--ink); }
.ct-list a { text-decoration: none; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ct-map { position: relative; display: block; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-h); aspect-ratio: 4 / 3; background: var(--img-bg); }
.ct-map img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ct-map:hover img { transform: scale(1.03); }
.ct-pin { position: absolute; left: 18px; bottom: 18px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
@media (max-width: 860px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } .ct-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* подвал: контакты, только на страницах каталога */
body:not(.in-view) .foot { display: none; }
.foot { background: var(--ink); color: var(--white-70); padding: clamp(56px, 8vw, 104px) 0 calc(28px + var(--safe-b)); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.foot-lead h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.035em; color: var(--white); }
.foot-lead h2 em { font-style: normal; color: var(--accent); }
.foot-lead p { margin: 18px 0 0; max-width: 460px; font-size: 17px; line-height: 1.55; }
.foot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.foot-map {
  position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden;
  background: var(--img-bg); box-shadow: 0 30px 70px var(--black-35);
}
.foot-map img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.foot-map:hover img { transform: scale(1.04); }
/* метка базы: точка с расходящимися кругами */
.pin { position: absolute; left: 21.7%; top: 44%; width: 18px; height: 18px; translate: -50% -50%; }
.pin i, .pin::before, .pin::after { position: absolute; inset: 0; border-radius: 50%; content: ""; }
.pin i { z-index: 1; background: var(--accent); border: 3px solid var(--white); box-shadow: 0 4px 12px var(--black-35); }
.pin::before, .pin::after { background: var(--accent); opacity: 0; animation: ping 2.4s cubic-bezier(.2, .8, .2, 1) infinite; }
.pin::after { animation-delay: 1.2s; }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(4.2); opacity: 0; } }
.foot-map-tag {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border-radius: 12px; background: var(--ink); color: var(--white); font-weight: 600; font-size: 14px;
}
.foot-info { margin: clamp(48px, 6vw, 80px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot-info div { position: relative; padding-top: 18px; }
.foot-info div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--white-14); transform-origin: left; }
.nw { white-space: nowrap; }
.foot-info dt { font-size: 14px; color: var(--white-60); }
.foot-info dd { margin: 6px 0 0; color: var(--white); font-size: 17px; font-weight: 600; line-height: 1.4; }
.foot-info a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat; transition: background-size .3s ease; }
.foot-info a:hover { background-size: 100% 2px; }
/* финал: большое слово-марка */
.foot-mark { margin-top: clamp(40px, 6vw, 72px); line-height: .8; user-select: none; }
.foot-mark > span { display: block; font-weight: 800; font-size: clamp(64px, 17.5vw, 250px); letter-spacing: -.06em; color: var(--c-26282d); white-space: nowrap; }
.foot-mark .ch { display: inline-block; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--white-10); font-size: 14px; color: var(--white-60); }
.foot-legal a { color: var(--white); text-decoration: none; font-weight: 600; }
.foot-legal a:hover { color: var(--accent); }

/* появление: только когда скрипт включён и движение не отключено */
@media (prefers-reduced-motion: no-preference) {
  .anim .foot .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
  .anim .foot .foot-info div::before { transform: scaleX(0); transition: transform 1s cubic-bezier(.7, 0, .2, 1); }
  .anim .foot .foot-mark .ch { transform: translateY(105%); transition: transform .9s cubic-bezier(.2, .9, .2, 1); }
  .anim .foot.seen .rv { opacity: 1; transform: none; }
  .anim .foot.seen .foot-info div::before { transform: scaleX(1); }
  .anim .foot.seen .foot-mark .ch { transform: none; }
  .anim .foot .foot-map.rv { transition-delay: .12s; }
  .anim .foot .foot-info div:nth-child(2), .anim .foot .foot-info div:nth-child(2)::before { transition-delay: .08s; }
  .anim .foot .foot-info div:nth-child(3), .anim .foot .foot-info div:nth-child(3)::before { transition-delay: .16s; }
  .anim .foot .foot-info div:nth-child(4), .anim .foot .foot-info div:nth-child(4)::before { transition-delay: .24s; }
  .foot-mark > span { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .pin::before, .pin::after { animation: none; } }
@media (max-width: 860px) {
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .foot-info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
}
@media (max-width: 420px) { .foot-info dd { font-size: 15px; } .foot-legal { flex-direction: column; gap: 8px; } }

/* ---------- страница раздела ---------- */
body.in-view #home { display: none; }
#cat-groups { padding-top: 32px; }
#cat-groups[hidden], .items[hidden] { display: none; }
#view { padding-bottom: 80px; min-height: 100vh; }
.view-head { background: var(--ink); color: var(--white); padding: calc(var(--top-h) + 20px) 0 0; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-left: -6px; padding: 6px 10px 6px 4px; border-radius: 10px; text-decoration: none; color: var(--white-70); font-weight: 500; font-size: 15px; margin-bottom: 10px; }
.back:hover { color: var(--white); }
#view-title { font-size: clamp(28px, 4vw, 48px); line-height: 1.05; }
.view-head .sec-sub { color: var(--white-65); }
.view-tools { display: flex; gap: 8px; margin: 20px 0 8px; }
@media (max-width: 560px) { #view-title { font-size: 30px; } .view-head .sec-sub { font-size: 15px; margin-top: 8px; } #view-sort { width: 54px; padding: 0; color: transparent; } .sort svg { left: 18px; } }
.mini-search { flex: 1 1 280px; max-width: 560px; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border-radius: 14px; background: var(--white); color: var(--ink); }
.mini-search:focus-within { box-shadow: 0 0 0 3px var(--accent); }
.mini-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font-size: 16px; font-weight: 500; }
.mini-search input::placeholder { color: var(--c-8b8d92); font-weight: 400; }
.sort[hidden] { display: none; }
.sort { position: relative; display: flex; align-items: center; flex: none; }
.sort svg { position: absolute; left: 14px; color: var(--white-72); pointer-events: none; }
#view-sort { appearance: none; -webkit-appearance: none; height: 54px; padding: 0 16px 0 40px; border-radius: 14px; background: var(--white-9); border: 1px solid var(--white-14); color: var(--white); font-weight: 600; font-size: 15px; cursor: pointer; }
#view-sort option { color: var(--ink); }
.chips-bar { position: sticky; top: 0; z-index: 30; background: var(--ink); padding-top: calc(var(--top-h) - 64px); margin-top: calc(64px - var(--top-h)); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--white-80); background: var(--white-6); border: 1px solid var(--white-10); }
.chips a:hover { color: var(--white); background: var(--white-12); }
.chips a[aria-current="page"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }

.items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 28px; }
@media (max-width: 1080px) { .items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.item { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: calc(var(--top-h) + 20px); }
.item.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent), var(--shadow-h); } }
.item-img { aspect-ratio: 4 / 3; background: var(--img-bg); overflow: hidden; }
.item-img img { width: 100%; height: 100%; object-fit: cover; }
.item-body { padding: 14px 16px 0; flex: 1; }
.item-cat { font-size: 12px; font-weight: 700; color: var(--accent-d); margin-bottom: 4px; }
.item-body h3 { font: 700 16px/1.25 var(--body); letter-spacing: 0; color: var(--ink); }
.item-body p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.item-foot { padding: 14px 16px 16px; }
.price-box { display: grid; gap: 8px; }
.price-rows { margin: 0; display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.price-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.price-rows dt { color: var(--muted); }
.price-rows dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-ask { font-weight: 600; color: var(--muted); }
.price { font: 700 20px/1 var(--display); letter-spacing: -.025em; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price small { display: block; margin-top: 4px; font: 500 13px var(--body); color: var(--muted); letter-spacing: 0; }
.price .from { font: 600 12px var(--body); color: var(--muted); margin-right: 3px; }
@media (max-width: 560px) {
  .item-body { padding: 10px 12px 0; }
  .item-body h3 { font-size: 14px; }
  .item-body p { font-size: 12.5px; }
  .item-foot { padding: 10px 12px 12px; }
  .price { font-size: 17px; }
}
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }

/* ---------- нижняя панель (телефон): как в приложении ---------- */
.dock { display: none; }
@media (max-width: 900px) {
  .dock {
    position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b));
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 66px; padding: 0 4px;
    border-radius: 22px; background: var(--ink-90); border: 1px solid var(--white-10);
    backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px);
    box-shadow: 0 12px 32px var(--black-30), inset 0 1px 0 var(--white-8);
  }
  .tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    color: var(--white-72); font-size: 12px; font-weight: 600; letter-spacing: .01em; text-decoration: none;
    -webkit-tap-highlight-color: transparent; transition: color .15s ease;
  }
  .tab svg { display: block; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
  .tab:active svg, .tab:active i { transform: scale(.9); }
  .tab-main { color: var(--white); }
  /* «Каталог»: иконка в оранжевой плашке-индикаторе, внутри панели */
  .tab-main i {
    display: grid; place-items: center; width: 58px; height: 32px; border-radius: 16px;
    background: var(--accent); color: var(--ink); transition: transform .2s cubic-bezier(.2, .8, .2, 1);
  }
  .tab-main i svg { width: 20px; height: 20px; }
  .tab-main[aria-current] span { color: var(--accent); }
  .tab-wa svg { color: var(--c-3ddc84); }
  .foot { padding-bottom: calc(110px + var(--safe-b)); }
  /* на главной панель лежит поверх первого экрана: оставляем под неё место */
  .hero { padding-bottom: calc(92px + var(--safe-b)); min-height: 100svh; }
  /* главная на телефоне — ровно один экран: текст, поиск и площадка на остаток высоты */
  .hint-3d { display: none; }
  .hero-stage { flex: 1 1 auto; height: auto; min-height: 200px; margin-top: 0; }
  body.mega-open .dock { display: none; }
  .mega-in { max-height: calc(100svh - 80px); }
  /* быстрые запросы — одной строкой с прокруткой */
  .quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .quick::-webkit-scrollbar { display: none; }
  .quick a { flex: none; }
}
