/* ==========================================================
   Сибирь — стили сайта и админки
   Токены цветов — в :root; тёмная тема переопределяет их ниже.
   ========================================================== */
:root {
  --red: #d4202e;
  --red-dark: #a81520;
  --navy: #14307a;
  --navy-dark: #0b1d4a;
  --navy-text: #14307a;          /* синий для текста и ссылок на светлом фоне */
  --ink: #0f172a;
  --muted: #5b6478;              /* контраст ~6:1 на белом и на --bg */
  --line: #e4e8f0;
  --line-strong: #b9c4d9;
  --bg: #f5f7fb;
  --card: #ffffff;
  --soft: #f7f9fc;
  --admin-bg: #eef2f8;
  --focus: #14307a;
  --tint-blue-bg: #e8f0ff;  --tint-blue-fg: #14307a;
  --tint-off-bg: #f1f1f4;   --tint-off-fg: #5b6478;
  --tint-ok-bg: #e7f8ee;    --tint-ok-fg: #137a3d;
  --tint-bad-bg: #fde8ea;   --tint-bad-fg: #a81520;
  --tint-run-bg: #fff4d6;   --tint-run-fg: #8a5a00;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 29, 74, .04), 0 10px 30px rgba(11, 29, 74, .08);
  --shadow-lg: 0 2px 4px rgba(11, 29, 74, .05), 0 22px 48px rgba(11, 29, 74, .14);
}
:root[data-theme="dark"] {
  --navy-text: #9db8ff;
  --ink: #e8ecf5; --muted: #a3adc1; --line: #243047; --line-strong: #33466b;
  --bg: #0b1222; --card: #111a2e; --soft: #0e1830; --admin-bg: #070d1b; --focus: #9db8ff;
  --tint-blue-bg: #1b2c55; --tint-blue-fg: #bcd0ff;
  --tint-off-bg: #1d2638;  --tint-off-fg: #a3adc1;
  --tint-ok-bg: #13362a;   --tint-ok-fg: #7fe0a6;
  --tint-bad-bg: #3d1820;  --tint-bad-fg: #ffb3ba;
  --tint-run-bg: #3a2e10;  --tint-run-fg: #ffd273;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 22px 48px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--navy-text); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* Фокус — видимый и на светлом, и на тёмном фоне */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero :focus-visible,
.topbar :focus-visible,
.feature-3d :focus-visible,
.viewer3d :focus-visible,
footer.site :focus-visible,
body.admin .adm-top :focus-visible { outline-color: #fff; }

/* Шапка */
.topbar { background: var(--navy-dark); color: #d7def0; font-size: 14px; }
.topbar .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 9px 0; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
header.site { background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px rgba(11, 29, 74, .06); position: sticky; top: 0; z-index: 20; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
header.site img.logo { height: 56px; width: auto; }
nav.menu { display: flex; gap: 24px; flex-wrap: wrap; }
nav.menu a { color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; white-space: nowrap; }
nav.menu a:hover, nav.menu a.active { color: var(--red); border-color: var(--red); }
.phone { font-weight: 800; font-size: 18px; color: var(--navy-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
header.site .variant-wrap { display: none !important; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--red); color: #fff; font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none;
  cursor: pointer; box-shadow: 0 6px 16px rgba(212, 32, 46, .2);
  transition: transform .15s, background-color .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(212, 32, 46, .28); }
.btn:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(212, 32, 46, .2); }
.btn.ghost { background: transparent; color: var(--navy-text); border-color: currentColor; box-shadow: none; }
.btn.ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: none; }
.btn.small { min-height: 36px; padding: 7px 14px; font-size: 14px; border-radius: 9px; }
.btn.danger { background: var(--card); color: var(--red); border-color: var(--red); box-shadow: none; }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Герой */
.hero {
  position: relative; isolation: isolate; color: #fff; padding: 96px 0 116px; overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -12%, rgba(212, 32, 46, .5), transparent 60%),
    radial-gradient(640px 380px at -8% 115%, rgba(74, 128, 240, .32), transparent 60%),
    linear-gradient(135deg, var(--navy-dark), var(--navy) 62%, #1d4bb0);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 90%); mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
}
.hero::after { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(255, 255, 255, .12), transparent); pointer-events: none; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 900; line-height: 1.04; letter-spacing: -.03em; max-width: 19ch; text-wrap: balance; }
.hero p { font-size: clamp(17px, 1.6vw, 19px); color: #d3dcf2; max-width: 58ch; line-height: 1.6; }
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  padding: 6px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; backdrop-filter: blur(4px);
}
.hero .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5a64; box-shadow: 0 0 0 3px rgba(255, 90, 100, .25); }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero .btn { box-shadow: 0 10px 26px rgba(212, 32, 46, .35); }
.hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .8); box-shadow: none; }
.hero .btn.ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -56px; position: relative; z-index: 2; }
.stat { position: relative; overflow: hidden; background: var(--card); border-radius: var(--radius); padding: 24px 22px 20px; box-shadow: var(--shadow); }
.stat::before { content: ""; position: absolute; left: 22px; top: 0; width: 40px; height: 4px; border-radius: 0 0 4px 4px; background: var(--red); }
.stat b { display: block; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; color: var(--red); font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.4; }

section.block { padding: 76px 0; }
section.block h2, .head h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.head h2 { margin-bottom: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; overflow: hidden; color: var(--ink);
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:focus-visible { outline-offset: 4px; }
.card .ph { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #dfe6f5, #f3d3d6); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .ph img { transform: scale(1.04); }
.badge { position: absolute; left: 12px; top: 12px; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; line-height: 1; padding: 6px 10px; border-radius: 9px; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.badge.b3d { left: auto; right: 12px; background: var(--navy); }
.card .body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; }
.card .price { font-size: 24px; font-weight: 900; color: var(--navy-text); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.card .title { margin-top: 2px; font-weight: 700; font-size: 16px; line-height: 1.35; }
.card .meta { color: var(--muted); font-size: 14px; line-height: 1.45; }
.card .more { margin-top: auto; padding-top: 14px; color: var(--red); font-weight: 700; font-size: 15px; }
.card:hover .more { text-decoration: underline; text-underline-offset: 3px; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.service {
  background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  border-top: 3px solid var(--red); transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service h3 { font-size: 18px; margin-bottom: 8px; }
.service p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.6; }

.feature-3d {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  padding: 44px; border-radius: 26px; color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, rgba(212, 32, 46, .35), transparent 70%), linear-gradient(120deg, var(--navy-dark), var(--navy));
  box-shadow: var(--shadow-lg);
}
.feature-3d p { color: #d5deef; line-height: 1.6; }
.feature-3d .steps { display: grid; gap: 10px; }
.feature-3d .step { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 14px 18px; line-height: 1.5; }
.feature-3d .step b { color: #ffb4ba; }

.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.office { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.office b { display: block; margin-bottom: 6px; font-size: 18px; }

footer.site { margin-top: 48px; padding: 36px 0; background: var(--navy-dark); color: #c7d1ea; font-size: 14px; }
footer.site a { color: #fff; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }

/* Формы */
.filters {
  display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 12px; align-items: end;
  margin-bottom: 28px; padding: 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
input[type="checkbox"] { width: auto; min-height: 0; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
::placeholder { color: var(--muted); opacity: .8; }

/* Страница объекта */
.crumbs { padding: 20px 0 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.obj { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 28px; align-items: start; margin: 18px 0 48px; }
.gallery { overflow: hidden; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery .main { aspect-ratio: 4 / 3; background: #dfe6f5; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumbs img { flex: none; width: 84px; height: 62px; object-fit: cover; border-radius: 10px; cursor: pointer; opacity: .65; transition: opacity .15s; }
.thumbs img:hover { opacity: .95; }
.thumbs img.on { opacity: 1; outline: 3px solid var(--red); outline-offset: 0; }
.facts { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.facts .price { font-size: clamp(28px, 3vw, 36px); font-weight: 900; color: var(--navy-text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 18px 0 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.tabs { display: inline-flex; gap: 4px; margin: 26px 0 14px; padding: 4px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.tab { border: 0; background: transparent; color: var(--muted); padding: 10px 18px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; transition: color .15s, background-color .15s; }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--navy); color: #fff; box-shadow: 0 4px 12px rgba(20, 48, 122, .25); }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
#submit-form { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
#submit-form .form-grid > * { min-width: 0; }
#submit-form .check span { min-width: 0; overflow-wrap: anywhere; }
#submit-form input, #submit-form select, #submit-form textarea { min-width: 0; max-width: 100%; }
.viewer3d { position: relative; overflow: hidden; width: 100%; height: 520px; border-radius: 14px; background: radial-gradient(circle at 50% 30%, #1a2a52, #0a1226); }
.viewer3d canvas { display: block; }
.viewer3d .hint { position: absolute; left: 12px; bottom: 10px; padding: 4px 10px; border-radius: 8px; background: rgba(0, 0, 0, .45); color: #dfe6f7; font-size: 13px; pointer-events: none; }
.viewer3d .empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: #dfe6f7; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 3px; }
.desc { white-space: pre-line; font-size: 16px; line-height: 1.7; }

/* Админка */
body.admin { background: var(--admin-bg); }
body.admin .topbar, body.admin header.site { display: none; }
.adm-top { position: sticky; top: 0; z-index: 20; padding: 14px 0; background: var(--navy-dark); color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .15); }
.adm-top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-top a { color: #fff; }
.adm-main { padding: 28px 0 64px; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tabs-admin { display: flex; gap: 8px; flex-wrap: wrap; }
/* Фильтры списка админки: в одну строку на компьютере, в столбик на телефоне */
.afilters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; margin-bottom: 12px; }
.afilters > input, .afilters > select { width: auto; max-width: none; min-width: 170px; }
.afilters #search { min-width: 220px; }
.afilters .combo { min-width: 280px; }
.afilters .combo > input { width: 100%; }
.afilters #list-count { margin-left: auto; }
.combo { position: relative; }
.combo-list { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; max-height: 300px; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 30; }
.combo-list > div { padding: 9px 12px; cursor: pointer; font-size: 14px; }
.combo-list > div:hover { background: var(--soft); }
@media (max-width: 700px) {
  .afilters > input, .afilters > select, .afilters > .combo { width: 100% !important; min-width: 0 !important; }
  .afilters #list-count { margin-left: 0; }
}
#list-wrap { overflow-x: auto; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
/* Компьютер: таблица на всю ширину; фото, цена, 3D и кнопка не переносятся и не сжимаются */
@media (min-width: 701px) {
  #list-wrap td:nth-child(2) { min-width: 150px; width: 150px; }
  #list-wrap td:nth-child(2) img { width: 150px !important; height: 110px !important; }
  #list-wrap td:nth-child(3) { max-width: 340px; }
  #list-wrap td:nth-child(4), #list-wrap td:nth-child(6), #list-wrap td:last-child { white-space: nowrap; }
}
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { padding: 12px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); font-size: 14px; }
th { padding-top: 13px; padding-bottom: 13px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
td { color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--soft); }
td:nth-child(3), td:nth-child(4), td:last-child { white-space: nowrap; }
td:last-child { text-align: right; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--tint-blue-bg); color: var(--tint-blue-fg); font-size: 12px; font-weight: 700; line-height: 1.5; }
.pill.off { background: var(--tint-off-bg); color: var(--tint-off-fg); }
.pill.ok { background: var(--tint-ok-bg); color: var(--tint-ok-fg); }
.pill.bad { background: var(--tint-bad-bg); color: var(--tint-bad-fg); }
.pill.run { background: var(--tint-run-bg); color: var(--tint-run-fg); }
.modal-bg { position: fixed; inset: 0; z-index: 50; display: grid; place-items: start center; padding: 32px 14px; overflow: auto; background: rgba(8, 14, 30, .6); backdrop-filter: blur(3px); }
.modal { width: min(980px, 100%); padding: 28px; background: var(--card); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.modal h2 { font-size: 22px; margin: 0; }
.modal h3 { font-size: 18px; margin: 0 0 6px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
.form-grid .wide { grid-column: span 3; }
.form-grid .span2 { grid-column: span 2; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.check input { width: auto; min-height: 0; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #dfe6f5; border: 2px solid transparent; border-radius: 12px; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .acts { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; gap: 4px; padding: 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.photo .acts button { padding: 4px 8px; border: 0; border-radius: 7px; background: #fff; color: #0f172a; font-size: 12px; font-weight: 700; cursor: pointer; }
.photo .acts button:hover { background: #e8f0ff; }
.photo.cover { border-color: var(--red); }
.photo .cov { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; }
.dropzone { padding: 24px; text-align: center; color: var(--muted); cursor: pointer; background: var(--soft); border: 2px dashed var(--line-strong); border-radius: 14px; transition: border-color .15s, color .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--navy-text); color: var(--navy-text); }
.msg { margin: 12px 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.msg.err { background: var(--tint-bad-bg); color: var(--tint-bad-fg); }
.msg.ok { background: var(--tint-ok-bg); color: var(--tint-ok-fg); }
.msg.info { background: var(--tint-blue-bg); color: var(--tint-blue-fg); }
.login { max-width: 400px; margin: 12vh auto; padding: 32px 28px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); }
.login h1 { font-size: 24px; }
.layout-preview { position: relative; overflow: hidden; height: 380px; margin-top: 10px; border-radius: 14px; background: radial-gradient(circle at 50% 30%, #1a2a52, #0a1226); }
.rooms-table input { padding: 6px 8px; }
.rooms-table td { padding: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .card:hover, .service:hover, .btn:hover { transform: none; }
}

/* Адаптив */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .obj, .feature-3d { grid-template-columns: 1fr; }
  .facts { position: static; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field:first-child, .filters .btn { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .wide, .form-grid .span2 { grid-column: span 2; }
}
@media (min-width: 981px) {
  .facts { position: sticky; top: 96px; }
}
@media (max-width: 640px) {
  .topbar .wrap span:first-child { display: none; }
  header.site img.logo { height: 44px; }
  nav.menu { display: none; }
  .phone { font-size: 16px; }
  .hero { padding: 56px 0 84px; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 42px); }
  .hero .cta .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -40px; }
  .stat { padding: 18px 16px 16px; }
  .stat b { font-size: 26px; }
  .stat span { font-size: 13px; }
  section.block { padding: 52px 0; }
  .head { margin-bottom: 22px; }
  .services, .grid { grid-template-columns: 1fr; }
  .feature-3d { padding: 26px 22px; border-radius: 20px; }
  .filters { grid-template-columns: 1fr; padding: 14px; }
  .filters .field:first-child, .filters .btn { grid-column: auto; }
  .filters .btn { width: 100%; }
  .obj { gap: 18px; margin-top: 14px; }
  .facts { padding: 20px; }
  .tabs { display: flex; }
  .tab { flex: 1; padding: 10px 8px; }
  .panel { padding: 18px; }
  .viewer3d { height: 380px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide, .form-grid .span2 { grid-column: span 1; }
  .toolbar #search { max-width: none !important; width: 100%; }
  table { min-width: 620px; }
  .modal-bg { padding: 16px 10px; }
  .modal { padding: 18px 16px; }
  .login { margin: 8vh auto; padding: 24px 20px; }
}

/* Силуэт города — собственная графика, без чужих фото */
.hero::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 62%; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201600%20400%22%20preserveAspectRatio%3D%22xMidYMax%20slice%22%3E%3Cg%20fill%3D%22%23ffffff%22%20opacity%3D%22.07%22%3E%3Crect%20x%3D%220%22%20y%3D%22272%22%20width%3D%2275%22%20height%3D%22128%22%20rx%3D%224%22/%3E%3Crect%20x%3D%2230%22%20y%3D%22290%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%2210%22%20y%3D%22316%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%2210%22%20y%3D%22342%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%2230%22%20y%3D%22342%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%2210%22%20y%3D%22368%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%2250%22%20y%3D%22368%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%2281%22%20y%3D%22253%22%20width%3D%2249%22%20height%3D%22147%22%20rx%3D%224%22/%3E%3Crect%20x%3D%2291%22%20y%3D%22297%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%2291%22%20y%3D%22323%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22111%22%20y%3D%22323%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22111%22%20y%3D%22349%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22136%22%20y%3D%22167%22%20width%3D%2273%22%20height%3D%22233%22%20rx%3D%224%22/%3E%3Crect%20x%3D%22166%22%20y%3D%22185%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22146%22%20y%3D%22237%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22166%22%20y%3D%22237%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22186%22%20y%3D%22237%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22186%22%20y%3D%22263%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22186%22%20y%3D%22289%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22186%22%20y%3D%22315%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22166%22%20y%3D%22367%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22215%22%20y%3D%22179%22%20width%3D%2249%22%20height%3D%22221%22%20rx%3D%224%22/%3E%3Crect%20x%3D%22225%22%20y%3D%22223%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22225%22%20y%3D%22249%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22245%22%20y%3D%22301%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22270%22%20y%3D%22132%22%20width%3D%2294%22%20height%3D%22268%22%20rx%3D%224%22/%3E%3Crect%20x%3D%22300%22%20y%3D%22150%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22320%22%20y%3D%22176%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22300%22%20y%3D%22202%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22340%22%20y%3D%22202%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22280%22%20y%3D%22228%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22300%22%20y%3D%22228%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22340%22%20y%3D%22228%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22280%22%20y%3D%22254%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22340%22%20y%3D%22254%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22300%22%20y%3D%22306%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22320%22%20y%3D%22332%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22340%22%20y%3D%22332%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22280%22%20y%3D%22358%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22300%22%20y%3D%22358%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22280%22%20y%3D%22384%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22300%22%20y%3D%22384%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22370%22%20y%3D%22278%22%20width%3D%2274%22%20height%3D%22122%22%20rx%3D%224%22/%3E%3Crect%20x%3D%22400%22%20y%3D%22322%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22420%22%20y%3D%22374%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22450%22%20y%3D%22295%22%20width%3D%2285%22%20height%3D%22105%22%20rx%3D%224%22/%3E%3Crect%20x%3D%22460%22%20y%3D%22313%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22520%22%20y%3D%22313%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22480%22%20y%3D%22339%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22500%22%20y%3D%22365%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22520%22%20y%3D%22365%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22541%22%20y%3D%22272%22%20width%3D%2282%22%20height%3D%22128%22%20rx%3D%224%22/%3E%3Crect%20x%3D%22551%22%20y%3D%22316%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22551%22%20y%3D%22342%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22571%22%20y%3D%22342%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22611%22%20y%3D%22368%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22629%22%20y%3D%22218%22%20width%3D%22101%22%20height%3D%22182%22%20rx%3D%224%22/%3E%3Crect%20x%3D%22639%22%20y%3D%22236%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22679%22%20y%3D%22236%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22679%22%20y%3D%22262%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22719%22%20y%3D%22262%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22699%22%20y%3D%22288%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22719%22%20y%3D%22288%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22659%22%20y%3D%22340%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22719%22%20y%3D%22340%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22639%22%20y%3D%22366%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22659%22%20y%3D%22366%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22679%22%20y%3D%22366%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22736%22%20y%3D%22104%22%20width%3D%2291%22%20height%3D%22296%22%20rx%3D%224%22/%3E%3Crect%20x%3D%22746%22%20y%3D%22148%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22766%22%20y%3D%22148%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22786%22%20y%3D%22148%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22806%22%20y%3D%22148%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22786%22%20y%3D%22200%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22746%22%20y%3D%22252%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22786%22%20y%3D%22252%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22766%22%20y%3D%22304%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22786%22%20y%3D%22304%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22806%22%20y%3D%22304%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22786%22%20y%3D%22330%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22746%22%20y%3D%22382%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22766%22%20y%3D%22382%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22833%22%20y%3D%22119%22%20width%3D%22101%22%20height%3D%22281%22%20rx%3D%224%22/%3E%3Crect%20x%3D%22923%22%20y%3D%22137%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22843%22%20y%3D%22163%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22863%22%20y%3D%22163%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22883%22%20y%3D%22163%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22923%22%20y%3D%22163%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22863%22%20y%3D%22189%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22883%22%20y%3D%22241%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22923%22%20y%3D%22241%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22843%22%20y%3D%22267%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22883%22%20y%3D%22267%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22863%22%20y%3D%22293%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22843%22%20y%3D%22319%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22883%22%20y%3D%22319%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22903%22%20y%3D%22319%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22940%22%20y%3D%22104%22%20width%3D%22102%22%20height%3D%22296%22%20rx%3D%224%22/%3E%3Crect%20x%3D%22950%22%20y%3D%22148%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221030%22%20y%3D%22148%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22950%22%20y%3D%22174%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22990%22%20y%3D%22174%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221010%22%20y%3D%22174%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221030%22%20y%3D%22174%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221010%22%20y%3D%22200%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22970%22%20y%3D%22226%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221030%22%20y%3D%22226%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22950%22%20y%3D%22278%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221010%22%20y%3D%22278%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221030%22%20y%3D%22278%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22950%22%20y%3D%22304%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22990%22%20y%3D%22304%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22950%22%20y%3D%22330%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22970%22%20y%3D%22330%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221030%22%20y%3D%22330%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221010%22%20y%3D%22356%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221030%22%20y%3D%22356%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22950%22%20y%3D%22382%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%22990%22%20y%3D%22382%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221010%22%20y%3D%22382%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221048%22%20y%3D%22207%22%20width%3D%2267%22%20height%3D%22193%22%20rx%3D%224%22/%3E%3Crect%20x%3D%221058%22%20y%3D%22225%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221078%22%20y%3D%22251%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221098%22%20y%3D%22251%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221098%22%20y%3D%22277%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221058%22%20y%3D%22329%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221098%22%20y%3D%22329%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221098%22%20y%3D%22355%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221098%22%20y%3D%22381%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221121%22%20y%3D%22299%22%20width%3D%2250%22%20height%3D%22101%22%20rx%3D%224%22/%3E%3Crect%20x%3D%221151%22%20y%3D%22317%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221131%22%20y%3D%22343%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221151%22%20y%3D%22343%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221131%22%20y%3D%22369%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221151%22%20y%3D%22369%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221177%22%20y%3D%22150%22%20width%3D%2273%22%20height%3D%22250%22%20rx%3D%224%22/%3E%3Crect%20x%3D%221187%22%20y%3D%22168%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221227%22%20y%3D%22168%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221207%22%20y%3D%22194%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221227%22%20y%3D%22194%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221187%22%20y%3D%22220%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221207%22%20y%3D%22220%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221227%22%20y%3D%22220%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221227%22%20y%3D%22246%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221227%22%20y%3D%22272%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221227%22%20y%3D%22350%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221256%22%20y%3D%22222%22%20width%3D%2285%22%20height%3D%22178%22%20rx%3D%224%22/%3E%3Crect%20x%3D%221306%22%20y%3D%22240%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221306%22%20y%3D%22266%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221286%22%20y%3D%22318%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221306%22%20y%3D%22318%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221326%22%20y%3D%22318%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221266%22%20y%3D%22344%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221306%22%20y%3D%22344%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221266%22%20y%3D%22370%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221286%22%20y%3D%22370%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221326%22%20y%3D%22370%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221347%22%20y%3D%22310%22%20width%3D%2257%22%20height%3D%2290%22%20rx%3D%224%22/%3E%3Crect%20x%3D%221357%22%20y%3D%22328%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221377%22%20y%3D%22328%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221357%22%20y%3D%22354%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221357%22%20y%3D%22380%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221410%22%20y%3D%22243%22%20width%3D%2245%22%20height%3D%22157%22%20rx%3D%224%22/%3E%3Crect%20x%3D%221440%22%20y%3D%22261%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221420%22%20y%3D%22313%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221420%22%20y%3D%22339%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221440%22%20y%3D%22365%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221461%22%20y%3D%22115%22%20width%3D%2283%22%20height%3D%22285%22%20rx%3D%224%22/%3E%3Crect%20x%3D%221471%22%20y%3D%22133%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221511%22%20y%3D%22133%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221491%22%20y%3D%22159%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221531%22%20y%3D%22185%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221491%22%20y%3D%22263%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221511%22%20y%3D%22263%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221531%22%20y%3D%22263%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221491%22%20y%3D%22289%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221471%22%20y%3D%22341%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221511%22%20y%3D%22367%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221550%22%20y%3D%22103%22%20width%3D%2266%22%20height%3D%22297%22%20rx%3D%224%22/%3E%3Crect%20x%3D%221560%22%20y%3D%22121%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221580%22%20y%3D%22121%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221560%22%20y%3D%22147%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221580%22%20y%3D%22225%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221600%22%20y%3D%22225%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221560%22%20y%3D%22251%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221600%22%20y%3D%22251%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221580%22%20y%3D%22277%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221600%22%20y%3D%22277%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221560%22%20y%3D%22303%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221580%22%20y%3D%22329%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221600%22%20y%3D%22355%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3Crect%20x%3D%221580%22%20y%3D%22381%22%20width%3D%228%22%20height%3D%2210%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.55%22/%3E%3C/g%3E%3C/svg%3E") bottom center / cover no-repeat;
}
.hero > .wrap { position: relative; z-index: 1; }

/* Переключатель темы */
.theme-btn { border: 2px solid var(--line-strong); background: var(--card); color: var(--ink); width: 42px; height: 42px; border-radius: 12px; cursor: pointer; font-size: 18px; display: grid; place-items: center; flex: none; transition: background .2s, border-color .2s; }
.theme-btn:hover { border-color: var(--navy); }

/* Анимации: появление при прокрутке и на входе, без перебора */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.hero h1, .hero p, .hero .tag, .hero .cta { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero p { animation-delay: .12s; }
.hero .cta { animation-delay: .24s; }
.hero .tag { animation-delay: 0s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card .ph img { transition: transform .6s ease; }
.card:hover .ph img { transform: scale(1.04); }
.badge { animation: pop .5s .3s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Военная страница */
.guide { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
.steps-list { counter-reset: st; display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.steps-list li { counter-increment: st; background: var(--card); border-radius: var(--radius); padding: 16px 18px 16px 62px; position: relative; box-shadow: var(--shadow); }
.steps-list li::before { content: counter(st); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 800; display: grid; place-items: center; }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--red); padding: 10px 14px; background: var(--card); border-radius: 10px; }
@media (max-width: 980px) { .guide { grid-template-columns: minmax(0, 1fr); } .guide > * { min-width: 0; } }

.foot-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; align-items: start; }
.foot-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.muted-l { color: #aab6d3; font-size: 13px; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }

.card.reveal.in:hover { transform: translateY(-4px); }

/* Доступность: контраст, фокус, прокрутка к якорям, печать */
:root { --red-text: #b5121f; }
:root[data-theme="dark"] { --red-text: #ff6b76; }
.kicker, .card .more, .btn.danger, .crumbs a:hover { color: var(--red-text); }
.btn.danger { background: transparent; }
nav.menu a:hover, nav.menu a.active { color: var(--red-text); border-color: var(--red-text); }
input, select, textarea { border-color: #6b7690; }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { border-color: #6e7fa6; }
.feature-3d .muted { color: #c7d1ea; }
::placeholder { opacity: 1; color: var(--muted); }
html { scroll-padding-top: 96px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }
.furn-toggle { display: flex; gap: 8px; margin-top: 10px; }
.chip { border: 0; background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
.chip.on { background: var(--navy); color: #fff; }

/* Полноэкранный просмотр фото */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(4,8,20,.94); display: grid; place-items: center; padding: 56px 64px; }
.lb[hidden] { display: none; }
.lb img { width: min(92vw, 1000px); height: 84vh; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; border-radius: 12px; font-size: 22px; width: 44px; height: 44px; display: grid; place-items: center; }
.lb-close { top: 14px; right: 14px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 34px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #cfd8ee; font-size: 14px; }
@media (max-width: 640px) { .lb { padding: 56px 8px 40px; } }
.mini-map { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); height: 240px; background: var(--soft); }
.mini-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-open { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--navy-text); }

/* Телефон: объекты без переполнения, меню переносится строкой под логотипом */
@media (max-width: 980px) {
  .obj { grid-template-columns: minmax(0, 1fr); }
  .obj > *, .gallery, .facts { min-width: 0; }
}
@media (max-width: 640px) {
  header.site .wrap { flex-wrap: wrap; row-gap: 8px; }
  nav.menu { display: flex; order: 3; width: 100%; overflow-x: auto; gap: 18px; padding-bottom: 2px; scrollbar-width: none; }
  nav.menu::-webkit-scrollbar { display: none; }
  nav.menu a { white-space: nowrap; font-size: 14px; }
  .thumbs { gap: 6px; }
  .thumbs img { width: 72px; height: 54px; }
  .facts { padding: 18px; }
  .facts .price { font-size: 28px; }
  .tabs { flex-wrap: wrap; }
  .panel { padding: 16px; }
}
@media (max-width: 640px) {
  .filters { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
  .filters .field:first-child { grid-column: 1 / -1; }
  .filters .btn { grid-column: 1 / -1; }
  .filters input, .filters select { padding: 9px 10px; font-size: 15px; }
  .filters .field label { font-size: 12px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ==========================================================
   Пасс дизайна: чище герой, сетка услуг без «сироты»,
   мобильное меню в одну строку, аккуратные акценты
   ========================================================== */
.hero {
  background:
    radial-gradient(860px 460px at 92% -18%, rgba(212, 32, 46, .26), transparent 60%),
    radial-gradient(640px 380px at -8% 115%, rgba(74, 128, 240, .24), transparent 60%),
    linear-gradient(135deg, var(--navy-dark), var(--navy) 62%, #1d4bb0);
}
.card { box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.stat::before { left: 0; right: 0; top: 0; width: auto; height: 3px; border-radius: 0; }

/* Услуги: 5 карточек = 3 в ряд + 2 широких, без одинокой карточки */
#services .services { grid-template-columns: repeat(6, 1fr); }
#services .service { grid-column: span 2; }
#services .service:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 980px) {
  #services .services { grid-template-columns: repeat(2, 1fr); }
  #services .service, #services .service:nth-child(n+4) { grid-column: auto; }
  #services .service:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  #services .services { grid-template-columns: 1fr; }
  #services .service:last-child:nth-child(odd) { grid-column: auto; }
}

/* Переключатель темы: геометрическая иконка вместо символа, который плохо рисуется */
.theme-btn { font-size: 0; }
.theme-btn::before {
  content: ""; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%;
  border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

@media (max-width: 640px) {
  .hero { padding: 40px 0 64px; }
  header.site .wrap { padding-top: 8px; }
  nav.menu {
    flex-wrap: nowrap; gap: 20px; padding-right: 28px;
    -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent);
  }
  nav.menu a { padding: 10px 0; }
}

/* ===== Три оформления: белое (по умолчанию), синее и чёрное ===== */
:root[data-theme="blue"] {
  --navy-text: #9db8ff;
  --ink: #f3f6ff; --muted: #b8c4e6; --line: #25407e; --line-strong: #3a5a9c;
  --bg: #0b1d4a; --card: #12285e; --soft: #0f2254; --admin-bg: #071433; --focus: #9db8ff;
  --tint-blue-bg: #1d3a80; --tint-blue-fg: #d3e0ff;
  --tint-off-bg: #1d2d58; --tint-off-fg: #b8c4e6;
  --tint-ok-bg: #163d4a; --tint-ok-fg: #9be6c6;
  --tint-bad-bg: #4a1a33; --tint-bad-fg: #ffb3ba;
  --tint-run-bg: #3d3414; --tint-run-fg: #ffd98a;
  --shadow: 0 1px 2px rgba(0,0,0,.25), 0 14px 34px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.25), 0 24px 52px rgba(0,0,0,.45);
}
:root[data-theme="dark"] {
  --navy-text: #ff8a91;
  --ink: #f2f2f4; --muted: #a2a2ac; --line: #2a2a31; --line-strong: #3f3f49;
  --bg: #0a0a0c; --card: #141418; --soft: #101014; --admin-bg: #050506; --focus: #ff8a91;
  --tint-blue-bg: #22222b; --tint-blue-fg: #d9d9e6;
  --tint-off-bg: #1c1c22; --tint-off-fg: #a2a2ac;
  --tint-ok-bg: #12301f; --tint-ok-fg: #8fe0b0;
  --tint-bad-bg: #3a1216; --tint-bad-fg: #ffb3b8;
  --tint-run-bg: #33290e; --tint-run-fg: #ffd98a;
  --shadow: 0 1px 2px rgba(0,0,0,.6), 0 14px 34px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.6), 0 24px 52px rgba(0,0,0,.7);
}
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 800; letter-spacing: -0.01em; }
.hero {
  background:
    linear-gradient(180deg, rgba(8,18,44,.55) 0%, rgba(8,18,44,.9) 100%),
    url(/img/city/angarsk-embankment.jpg) center 60% / cover no-repeat;
}
:root[data-theme="dark"] .hero { background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.94) 100%), url(/img/city/angarsk-embankment.jpg) center 60% / cover no-repeat; }
.theme-group { display: flex; gap: 6px; align-items: center; }
.theme-group .theme-btn { width: 36px; height: 36px; padding: 0; }
.theme-group .theme-btn[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 2px var(--red) inset; }
.sw { display: block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }
.sw-blue { background: #14307a; }
.sw-light { background: #ffffff; }
.sw-dark { background: #0a0a0c; }
.theme-btn { font-size: 0; }

.submit-cta { white-space: nowrap; padding: 9px 14px; }
@media (max-width: 640px) { .submit-cta { order: 4; } }

/* Переключатель тем: подписанные кнопки */
.theme-group { display: flex; gap: 0; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.theme-txt { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; padding: 8px 12px; cursor: pointer; }
.theme-txt[aria-pressed="true"] { background: var(--navy); color: #fff; }
.theme-group .theme-btn, .sw { display: none; }
/* Кнопка меню: видна только на телефоне */
.menu-btn { display: none; border: 2px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-weight: 800; font-size: 14px; border-radius: 10px; padding: 8px 12px; cursor: pointer; align-items: center; gap: 8px; }
.menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; }
.menu-ico::before { top: -5px; } .menu-ico::after { top: 5px; }
@media (max-width: 640px) {
  .menu-btn { display: inline-flex; margin-left: auto; }
  header.site .wrap { flex-wrap: wrap; }
  header.site nav.menu { display: none; order: 5; width: 100%; flex-direction: column; gap: 0; overflow: visible; padding: 4px 0 8px; }
  header.site.menu-open nav.menu { display: flex; }
  header.site nav.menu a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  header.site nav.menu a.active, header.site nav.menu a:hover { border-bottom-color: var(--line); }
  header.site .theme-group { order: 4; }
}

/* ===== Шапка: переключатель слева от меню, «Подать объявление» — пункт меню ===== */
.head-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
header.site nav.menu { gap: 22px; font-size: 15px; white-space: nowrap; flex-wrap: nowrap; }
header.site nav.menu a { padding: 6px 0; }
.nav-cta { background: var(--accent); color: #fff !important; padding: 8px 14px !important; border-radius: 10px; border-bottom: 0 !important; }
.nav-cta:hover { background: var(--red-dark); color: #fff !important; }
.theme-sw { border: 2px solid var(--line-strong); background: var(--card); color: var(--ink); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; flex: none; }
.theme-sw:hover { border-color: var(--navy); }
.theme-sw .ico-moon { display: none; }
.theme-sw[aria-pressed="true"] .ico-sun { display: none; }
.theme-sw[aria-pressed="true"] .ico-moon { display: block; }
.menu-btn { display: none; }
@media (max-width: 1100px) { header.site nav.menu { gap: 12px; font-size: 14px; } }
@media (max-width: 1000px) {
  header.site .wrap { flex-wrap: wrap; row-gap: 10px; }
  .head-right { display: contents; }
  .theme-sw { order: 2; }
  .menu-btn { display: inline-flex; order: 3; margin-left: auto; border: 2px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-weight: 800; font-size: 14px; border-radius: 10px; padding: 8px 12px; cursor: pointer; align-items: center; gap: 8px; }
  header.site nav.menu { order: 5; width: 100%; display: none; flex-direction: column; gap: 0; overflow: visible; padding: 4px 0 8px; }
  header.site.menu-open nav.menu { display: flex; }
  header.site nav.menu a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 16px; white-space: normal; }
  .nav-cta { margin-top: 10px; text-align: center; border-bottom: 0 !important; }
}

/* Правки телефона: кнопка «Подать объявление» видна в открытом меню, переключатель рядом с «Меню» */
.nav-cta { background: var(--red, #d4202e) !important; color: #fff !important; }
.nav-cta:hover { background: var(--red-dark, #a81520) !important; }
@media (max-width: 1000px) {
  header.site .theme-sw { margin-left: auto; }
  header.site .menu-btn { margin-left: 8px; }
  header.site nav.menu .nav-cta { display: block; text-align: center; margin: 10px 0 0; border-radius: 10px; padding: 12px 14px !important; }
}

/* Телефон: переключатель и «Меню» всегда вместе справа; список меню — на всю ширину под ними */
@media (max-width: 1000px) {
  header.site .head-right { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-left: auto; }
  header.site .theme-sw { margin-left: 0; order: 1; }
  header.site .menu-btn { margin-left: 0; order: 2; }
  header.site nav.menu { order: 3; }
}

/* ===== Шапка на компьютере: стекло поверх фото Ангарска, обведённые переключатели, логотип на светлой подложке ===== */
header.site {
  background:
    linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.78)),
    url(/img/city/angarsk-embankment.jpg) center 55% / cover no-repeat;
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  border-bottom: 1px solid rgba(20,48,122,.18);
  box-shadow: 0 6px 24px rgba(11,29,74,.12);
}
:root[data-theme="blue"] header.site {
  background:
    linear-gradient(180deg, rgba(11,29,74,.62), rgba(11,29,74,.82)),
    url(/img/city/angarsk-embankment.jpg) center 55% / cover no-repeat;
  border-bottom: 1px solid rgba(157,184,255,.25);
}
header.site .logo {
  background: rgba(255,255,255,.92);
  border-radius: 14px;
  padding: 6px 12px;
  box-shadow: 0 4px 14px rgba(11,29,74,.18);
}
header.site nav.menu a { color: var(--ink); }
header.site nav.menu a.active { color: var(--red-text, var(--red)); border-color: var(--red-text, var(--red)); }
header.site .theme-sw,
header.site .menu-btn {
  border: 2px solid var(--navy);
  background: rgba(255,255,255,.9);
  color: var(--navy);
}
:root[data-theme="blue"] header.site .theme-sw,
:root[data-theme="blue"] header.site .menu-btn {
  border-color: #9db8ff;
  background: rgba(11,29,74,.7);
  color: #e8eefc;
}
header.site .theme-sw:hover,
header.site .menu-btn:hover { border-color: var(--red); }

/* Пункты меню на компьютере — обведённые кнопки; фон шапки спокойнее */
header.site { background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.93)), url(/img/city/angarsk-embankment.jpg) center 55% / cover no-repeat; }
:root[data-theme="blue"] header.site { background: linear-gradient(180deg, rgba(11,29,74,.86), rgba(11,29,74,.93)), url(/img/city/angarsk-embankment.jpg) center 55% / cover no-repeat; }
@media (min-width: 1001px) {
  header.site nav.menu a:not(.nav-cta) {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 6px 2px;
    background: none;
    color: var(--navy);
    font-weight: 600;
  }
  header.site nav.menu a:not(.nav-cta):hover { border-bottom-color: var(--red); color: var(--red); }
  header.site nav.menu a.active:not(.nav-cta) { background: none; color: var(--red); border-bottom-color: var(--red); }
  header.site nav.menu a.active:not(.nav-cta):hover { color: var(--red); }
  :root[data-theme="blue"] header.site nav.menu a:not(.nav-cta) { border-color: #9db8ff; background: rgba(11,29,74,.7); color: #e8eefc; }
  :root[data-theme="blue"] header.site nav.menu a.active:not(.nav-cta) { background: #9db8ff; color: #0b1d4a; border-color: #9db8ff; }
  header.site nav.menu { gap: 8px; }
}
@media (min-width: 1001px) and (max-width: 1200px) {
  header.site nav.menu { gap: 6px; }
  header.site nav.menu a:not(.nav-cta) { padding: 5px 9px; font-size: 14px; }
  header.site nav.menu .nav-cta { padding: 8px 12px !important; font-size: 14px; }
}

/* Телефон: список меню выпадает под шапкой и не сдвигает логотип и кнопки */
@media (max-width: 1000px) {
  header.site { position: sticky; top: 0; }
  header.site .wrap { align-items: center; }
  header.site nav.menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(11,29,74,.14);
    padding: 6px 16px 14px; z-index: 30; order: initial; width: auto;
  }
  header.site .head-right { position: static; }
}

/* Телефон: без размытия шапки (оно даёт светлую полосу у края) и без широкой тени меню */
@media (max-width: 1000px) {
  header.site { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.96)), url(/img/city/angarsk-embankment.jpg) center 55% / cover no-repeat; }
  :root[data-theme="blue"] header.site { background: linear-gradient(180deg, rgba(11,29,74,.96), rgba(11,29,74,.96)), url(/img/city/angarsk-embankment.jpg) center 55% / cover no-repeat; }
  header.site nav.menu { box-shadow: 0 6px 14px rgba(11,29,74,.12); }
}

/* Телефон: меню — сплошная панель на весь экран под шапкой, ничего не просвечивает */
@media (max-width: 1000px) {
  header.site nav.menu {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0; width: 100vw;
    background: #ffffff !important; overflow-y: auto; box-shadow: none;
    padding: 4px 16px 24px; z-index: 40;
  }
  :root[data-theme="blue"] header.site nav.menu { background: #0b1d4a !important; }
}

/* Телефон: меню высотой по содержимому, без просвета справа; под ним видна страница */
@media (max-width: 1000px) {
  header.site nav.menu {
    top: 76px; bottom: auto; left: 0; right: 0; width: 100%;
    max-height: calc(100vh - 76px); overflow-y: auto;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(11,29,74,.14);
  }
}

/* ===== Телефон (итог): меню — обычный блок под шапкой, без наложения и без просвета ===== */
@media (max-width: 1000px) {
  header.site { position: sticky; top: 0; z-index: 20; }
  header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: calc(100% - 32px); }
  header.site .head-right { display: contents; }
  header.site .theme-sw { order: 1; margin-left: auto; }
  header.site .menu-btn { order: 2; margin-left: 0; }
  header.site nav.menu {
    order: 9; position: static; display: none;
    flex: 0 0 100%; width: 100%; max-width: 100%;
    background: #ffffff; box-shadow: none; border-bottom: 1px solid var(--line);
    margin: 10px -16px 0; padding: 4px 16px 14px; max-height: none; overflow: visible;
    box-sizing: border-box;
  }
  header.site.menu-open nav.menu { display: flex; flex-direction: column; }
  :root[data-theme="blue"] header.site nav.menu { background: #0b1d4a; }
}

/* Телефон: список меню на всю ширину экрана, без просвета справа */
@media (max-width: 1000px) {
  header.site nav.menu { width: calc(100% + 32px) !important; flex: 0 0 calc(100% + 32px) !important; max-width: none !important; margin: 10px -16px 0 -16px !important; }
}

/* Телефон: меню — цельная панель на всю ширину; пункты и линии во всю ширину, без белых полей справа */
@media (max-width: 1000px) {
  header.site nav.menu { padding: 0 !important; background: #ffffff !important; border-top: 1px solid var(--line); border-bottom: 2px solid var(--navy); }
  header.site nav.menu a:not(.nav-cta) { display: block; margin: 0; padding: 14px 16px !important; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 700; color: var(--ink); }
  header.site nav.menu a.active:not(.nav-cta) { color: var(--red); background: #fff5f5; }
  header.site nav.menu .nav-cta { display: block; margin: 12px 16px 14px !important; text-align: center; padding: 14px !important; font-size: 17px; }
  :root[data-theme="blue"] header.site nav.menu { background: #0b1d4a !important; }
  :root[data-theme="blue"] header.site nav.menu a:not(.nav-cta) { color: #f3f6ff; border-bottom-color: #25407e; }
}

/* Свечение героя не должно выходить за его края и накрывать меню или правый край */
.hero { overflow: hidden; isolation: isolate; }
@media (max-width: 1000px) {
  .hero::after { display: none; }
}

/* Убираем маску меню: она гасила правый край панели (белая полоса на телефонах) */
header.site nav.menu, header.site nav.menu.menu { -webkit-mask: none !important; mask: none !important; }

/* ===== Админка на телефоне: компактная верхняя панель, строки таблицы — карточками ===== */
@media (max-width: 700px) {
  .adm-top { padding: 10px 0; }
  .adm-top .wrap { flex-wrap: wrap; gap: 8px; }
  .adm-top .wrap > div:first-child { font-size: 15px; }
  #who { display: none; }
  .adm-top a { font-size: 14px; }
  .adm-main { padding: 14px 0 40px; }
  .toolbar { gap: 8px; margin-bottom: 12px; }
  .tabs-admin { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .tabs-admin .btn { width: 100%; text-align: center; font-size: 14px; padding: 10px 8px; }
  .toolbar > input, .toolbar > select { max-width: none !important; width: 100%; }
  #list-wrap { overflow: visible; }
  #list-wrap table, #list-wrap tbody { display: block; background: transparent; box-shadow: none; }
  #list-wrap thead { display: none; }
  #list-wrap tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; align-items: center;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow);
  }
  #list-wrap td { display: block; padding: 0; border: 0; font-size: 14px; }
  /* Колонки: 1 — галочка, 2 — фото, 3 — объект, 4 — цена, 5 — статус, 6 — 3D (скрыт), 7 — кнопка */
  /* Фото крупно сверху на всю ширину карточки, дальше — объект, цена, статус, кнопка */
  #list-wrap td:nth-child(1) { grid-column: 1; grid-row: 1; justify-self: start; }
  #list-wrap td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; width: 100% !important; }
  #list-wrap td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
  #list-wrap td:nth-child(4) { grid-column: 1; grid-row: 4; font-weight: 800; color: var(--navy-text); }
  #list-wrap td:nth-child(5) { grid-column: 2; grid-row: 4; }
  #list-wrap td:nth-child(6) { display: none; }
  #list-wrap td:last-child { grid-column: 1 / -1; grid-row: auto; }
  #list-wrap td:last-child .btn { width: 100%; text-align: center; }
  #list-wrap td img { width: 100% !important; height: 200px !important; border-radius: 12px !important; }
  /* Два в ряд: карточки в две колонки, внутри — фото, название, цена и статус */
  #list-wrap.two-col tbody { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  #list-wrap.two-col tr { grid-template-columns: 1fr; margin-bottom: 0; padding: 8px; }
  #list-wrap.two-col td:nth-child(2) img { height: 110px !important; }
  #list-wrap.two-col td:nth-child(3) { font-size: 13px; }
  #list-wrap.two-col td:nth-child(4) { grid-column: 1; grid-row: 4; }
  #list-wrap.two-col td:nth-child(5) { grid-column: 1; grid-row: 5; }
  #list-wrap.two-col td:last-child { grid-row: 6; }
  #list-wrap.two-col td:last-child .btn { font-size: 13px; padding: 6px 8px; }
}
@media (min-width: 701px) { .phone-only { display: none !important; } }
@media (max-width: 700px) {
  #list-wrap.two-col tr { display: grid; }
}
@media (max-width: 700px) {
  #list-wrap, #list-wrap table, #list-wrap tbody, #list-wrap tr, #list-wrap td { min-width: 0; max-width: 100%; box-sizing: border-box; }
  #list-wrap tr { width: 100%; }
  #list-wrap td, #list-wrap .btn { white-space: normal; overflow-wrap: anywhere; }
  .adm-main .wrap, .adm-main { max-width: 100%; overflow-x: hidden; }
}
@media (max-width: 700px) {
  .modal-bg { padding: 12px 8px; }
  .modal { width: 100%; max-width: 100%; min-width: 0; padding: 14px; }
  .modal > *, .modal > div { min-width: 0; max-width: 100%; }
  .modal table { display: block; overflow-x: auto; white-space: nowrap; }
  .modal .form-grid { grid-template-columns: 1fr; }
  .modal .form-grid .span2, .modal .form-grid .wide { grid-column: 1 / -1; }
  .modal input, .modal select, .modal textarea { font-size: 16px; }
}
/* Телефон: таблицы в окнах ипотеки и сотрудников — карточками, без прокрутки вбок */
@media (max-width: 700px) {
  #mort-modal table, #staff-modal table { display: block; background: transparent; box-shadow: none; white-space: normal; }
  #mort-modal thead, #staff-modal thead { display: none; }
  #mort-modal tbody, #staff-modal tbody { display: block; }
  #mort-modal tr, #staff-modal tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px;
  }
  #mort-modal td, #staff-modal td { display: block; padding: 0; border: 0; min-width: 0; }
  #mort-modal td:nth-child(1), #mort-modal td:nth-child(2) { grid-column: 1 / -1; }
  #mort-modal td input { width: 100% !important; }
  #mort-modal td:last-child { grid-column: 1 / -1; }
  #mort-modal td:last-child .btn { width: 100%; }
  #staff-modal td:nth-child(1), #staff-modal td:nth-child(2) { grid-column: 1 / -1; font-weight: 700; }
  #staff-modal td:last-child { grid-column: 1 / -1; }
  #staff-modal td:last-child .btn { width: 100%; margin: 4px 0 0 0 !important; }
}
@media (max-width: 700px) {
  #mort-modal tr, #staff-modal tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #mort-modal td input, #staff-modal td input { min-width: 0 !important; max-width: 100% !important; width: 100% !important; box-sizing: border-box; }
  #mort-modal .modal, #staff-modal .modal { overflow-x: hidden; }
}
@media (max-width: 700px) {
  #mort-modal table, #mort-modal tbody, #mort-modal tr, #staff-modal table, #staff-modal tbody, #staff-modal tr {
    width: 100% !important; max-width: 100% !important; min-width: 0 !important; white-space: normal !important;
  }
  #mort-modal > .modal > div { max-width: 100%; overflow-x: visible; }
  /* Сотрудники: без прокрутки вбок, кнопки в одну колонку */
  #staff-modal table, #staff-modal tbody { overflow: visible !important; }
  #staff-modal tr { grid-template-columns: minmax(0, 1fr); }
  #staff-modal td:last-child { display: flex; flex-direction: column; gap: 8px; }
  #staff-modal td:last-child .btn { margin: 0 !important; white-space: normal; box-sizing: border-box; }
}

/* ===== Редактор объекта: шапка прилипает к верху окна при прокрутке ===== */
.modal-head { position: sticky; top: -14px; z-index: 5; background: var(--card); display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -14px -14px 12px; padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
@media (min-width: 701px) { .modal-head { top: -24px; margin: -24px -24px 14px; padding: 16px 24px 12px; } }

/* ===== Замеры: карточки комнат и предпросмотр рядом ===== */
.rooms-help { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--muted); margin: 6px 0 14px; }
.rooms-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.rooms-preview { height: 320px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.rooms-preview svg { max-width: 100%; max-height: 100%; }
.room-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 12px; background: var(--card); }
.room-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.attach-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.attach-row select { width: auto; flex: 1 1 130px; }
.wall-row { display: flex; gap: 6px; }
.wall-btn { width: 44px; height: 40px; border-radius: 10px; border: 2px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.wall-btn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.wall-btn.door.on { background: var(--red); border-color: var(--red); }
@media (max-width: 900px) { .rooms-split { grid-template-columns: 1fr; } .rooms-preview { height: 260px; } }
@media (max-width: 700px) { .modal-head { top: -14px; margin: -14px -14px 12px; padding: 12px 14px 8px; } }

.pick-map { height: 300px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.leaflet-container { font-family: inherit; }

/* Предпросмотр замеров: план всегда занимает всю область, на телефоне тоже */
.rooms-preview { display: block; padding: 8px; box-sizing: border-box; }
.rooms-preview > div { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 !important; box-sizing: border-box; }
.rooms-preview svg { width: 100%; height: auto; max-height: 100%; display: block; }
.rooms-preview .empty { width: 100%; }

/* Панель управления 3D-планом */
.view-bar { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; z-index: 2; }
.view-bar button { min-height: 40px; min-width: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: rgba(10,18,40,.6); color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; backdrop-filter: blur(6px); }
.view-bar button[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.view-bar .view-hint { width: 100%; font-size: 13px; color: #e6ecfa; background: rgba(0,0,0,.4); border-radius: 8px; padding: 6px 10px; }
.measure-mode { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.measure-mode .chip { border: 2px solid var(--line-strong); }
.measure-mode .chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.step-bar { font-weight: 800; color: var(--navy-text); margin-bottom: 6px; }
.step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.step-nav .btn { min-height: 44px; font-size: 16px; }
.view-bar [hidden] { display: none !important; }
.view-bar .bar-row { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.walk-pad { display: grid; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(2, 48px); gap: 6px; margin: 0 auto; width: max-content; }
.walk-pad .pad-f { grid-column: 2; grid-row: 1; }
.walk-pad .pad-l { grid-column: 1; grid-row: 2; }
.walk-pad .pad-b { grid-column: 2; grid-row: 2; }
.walk-pad .pad-r { grid-column: 3; grid-row: 2; }
.walk-pad button { min-height: 48px; font-size: 20px; touch-action: none; user-select: none; -webkit-user-select: none; }
.view-bar .bar-walk { width: 100%; display: flex; flex-direction: column; gap: 6px; }

/* Карточка объекта на телефоне: фото → цена, тип и комнаты → вкладки с описанием и 3D */
@media (max-width: 980px) {
  .obj > div:first-child { display: contents; }
  .obj .gallery { order: 1; }
  .obj > aside.facts { order: 2; }
  .obj .tabs { order: 3; }
  .obj #panel-desc, .obj #panel-3d { order: 4; }
}

/* Кнопки «Сохранить» и «Удалить» всегда внизу окна редактирования объекта */
.modal-actions { position: sticky; bottom: 0; z-index: 6; display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin: 18px -24px -24px; padding: 12px 24px; background: var(--card); border-top: 1px solid var(--line); border-radius: 0 0 18px 18px; box-shadow: 0 -6px 14px rgba(11,29,74,.08); }
.modal-actions .btn { min-height: 44px; }
.modal-actions .btn.danger { margin-right: auto; }
@media (max-width: 700px) { .modal-actions { bottom: 0; margin: 14px -14px -14px; padding: 10px 14px; border-radius: 0 0 14px 14px; } }

/* Главная: заметные блоки «Военным» и «Продать или сдать» */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-decoration: none; color: inherit; border-top: 4px solid var(--navy); }
.promo h2 { font-size: 22px; margin: 6px 0 8px; }
.promo p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.promo-link { color: var(--accent, var(--red)); font-weight: 800; }
.promo-sell { border-top-color: var(--red); background: linear-gradient(135deg, var(--card), var(--soft)); }
@media (max-width: 760px) { .promo-grid { grid-template-columns: 1fr; } }

/* Кнопка выбора вида у меню */
.variant-wrap { position: relative; flex: none; }
.variant-btn { border: 2px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; border-radius: 12px; padding: 8px 12px; cursor: pointer; min-height: 42px; white-space: nowrap; }
.variant-btn:hover { border-color: var(--navy); }
.variant-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 220px; display: grid; gap: 2px; }
.variant-menu[hidden] { display: none; }
.variant-menu button { text-align: left; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 10px; cursor: pointer; min-height: 42px; }
.variant-menu button:hover, .variant-menu button[aria-checked="true"] { background: var(--tint-blue-bg); color: var(--tint-blue-fg); font-weight: 700; }
@media (max-width: 1000px) { .variant-wrap { order: 0; } }

/* Светлый вариант стеклянного оформления */
:root[data-variant="v5-glass"][data-theme="light"] {
  color-scheme: light;
  --navy: #244b8f;
  --navy-dark: #19345f;
  --navy-text: #244b8f;
  --red-text: #ad1d2b;
  --ink: #1c2b43;
  --muted: #52627a;
  --line: rgba(31, 55, 88, .14);
  --line-strong: rgba(31, 55, 88, .28);
  --bg: #edf2f8;
  --panel: rgba(255, 255, 255, .86);
  --card: rgba(255, 255, 255, .94);
  --soft: rgba(31, 55, 88, .045);
  --glass-line: rgba(31, 55, 88, .16);
  --focus: #244b8f;
  --tint-blue-bg: #e8effb; --tint-blue-fg: #244b8f;
  --tint-off-bg: #eef1f5;  --tint-off-fg: #52627a;
  --tint-ok-bg: #e6f5eb;   --tint-ok-fg: #17653a;
  --tint-bad-bg: #fce9eb;  --tint-bad-fg: #a51d2a;
  --tint-run-bg: #fff3d8;  --tint-run-fg: #76520c;
  --shadow: 0 8px 26px rgba(28, 43, 67, .1), inset 0 1px 0 rgba(255, 255, 255, .8);
  --shadow-lg: 0 18px 44px rgba(28, 43, 67, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
}
:root[data-variant="v5-glass"][data-theme="light"] body:not(.admin) {
  color: var(--ink);
  background-color: #e9eff7;
  background-image:
    linear-gradient(180deg, rgba(239, 244, 251, .82), rgba(239, 244, 251, .91)),
    url(/img/city/angarsk-embankment.jpg);
}
:root[data-variant="v5-glass"][data-theme="light"] header.site {
  border-color: var(--glass-line);
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 8px 26px rgba(28, 43, 67, .12);
}
:root[data-variant="v5-glass"][data-theme="light"] header.site .theme-sw,
:root[data-variant="v5-glass"][data-theme="light"] header.site .menu-btn {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--navy);
}
:root[data-variant="v5-glass"][data-theme="light"] header.site nav.menu a:not(.nav-cta) {
  color: var(--ink);
}
:root[data-variant="v5-glass"][data-theme="light"] .hero {
  color: var(--ink);
  border-color: var(--glass-line);
  background:
    radial-gradient(700px 360px at 50% -20%, rgba(255, 255, 255, .98), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(237, 243, 251, .91));
  box-shadow: var(--shadow-lg);
}
:root[data-variant="v5-glass"][data-theme="light"] .hero p { color: #43536c; }
:root[data-variant="v5-glass"][data-theme="light"] .hero .tag {
  color: #263a59;
  background: rgba(255, 255, 255, .78);
  border-color: rgba(36, 75, 143, .18);
  backdrop-filter: blur(8px);
}
:root[data-variant="v5-glass"][data-theme="light"] .hero .btn.ghost {
  color: var(--navy);
  background: rgba(255, 255, 255, .74);
  border-color: rgba(36, 75, 143, .4);
  box-shadow: none;
}
:root[data-variant="v5-glass"][data-theme="light"] .hero .btn.ghost:hover {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}
:root[data-variant="v5-glass"][data-theme="light"] .stat {
  border-color: var(--glass-line);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 16px rgba(28, 43, 67, .08);
}
:root[data-variant="v5-glass"][data-theme="light"] .stat b { color: var(--navy); }
:root[data-variant="v5-glass"][data-theme="light"] .stat span { color: var(--muted); }
:root[data-variant="v5-glass"][data-theme="light"] .card .title,
:root[data-variant="v5-glass"][data-theme="light"] .promo h2 { color: var(--ink); }
:root[data-variant="v5-glass"][data-theme="light"] .feature-3d {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(231, 239, 250, .92));
}
:root[data-variant="v5-glass"][data-theme="light"] .feature-3d .kicker { color: var(--red-text) !important; }
:root[data-variant="v5-glass"][data-theme="light"] .feature-3d .step {
  color: var(--ink);
  background: rgba(255, 255, 255, .78);
  border-color: var(--glass-line);
}
:root[data-variant="v5-glass"][data-theme="light"] .feature-3d .step b { color: var(--red-text); }
:root[data-variant="v5-glass"][data-theme="light"] .feature-3d p { color: var(--muted); }
:root[data-variant="v5-glass"][data-theme="light"] input,
:root[data-variant="v5-glass"][data-theme="light"] select,
:root[data-variant="v5-glass"][data-theme="light"] textarea {
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  border-color: var(--line-strong);
}
:root[data-variant="v5-glass"][data-theme="light"] input:focus,
:root[data-variant="v5-glass"][data-theme="light"] select:focus,
:root[data-variant="v5-glass"][data-theme="light"] textarea:focus {
  background: #fff;
  border-color: var(--navy);
  outline-color: var(--navy);
}
:root[data-variant="v5-glass"][data-theme="light"] ::placeholder { color: #66758b; }
:root[data-variant="v5-glass"][data-theme="light"] footer.site {
  color: var(--ink);
  border-color: var(--glass-line);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
}
:root[data-variant="v5-glass"][data-theme="light"] footer.site a { color: var(--navy); }
:root[data-variant="v5-glass"][data-theme="light"] .muted-l { color: var(--muted); }

/* Блок «Записаться на консультацию» на военной странице: тёмная полоса, текст слева, форма справа */
.consult-band { background: var(--navy); color: #fff; border-radius: 24px; padding: clamp(24px,4vw,44px); margin: 24px auto 40px; width: min(1180px, calc(100% - 32px)); }
.consult-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.consult-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; color: #d5deef; }
.consult-list li { position: relative; padding-left: 28px; line-height: 1.5; }
.consult-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 3px; background: var(--red); }
@media (max-width: 900px) { .consult-grid { grid-template-columns: 1fr; } }

/* Глазик показа пароля */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 44px; }
.pw-eye { position: absolute; right: 6px; bottom: 7px; width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; }
.pw-eye:hover { color: var(--ink); background: rgba(127,127,127,.12); }

/* Меню «Поделиться» на странице объекта */
.share-wrap { position: relative; }
/* Открывается вниз, на непрозрачном фоне: в стеклянной теме панели просвечивают */
.share-menu[hidden] { display: none !important; }
.share-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; box-shadow: 0 10px 28px rgba(11,29,74,.2); padding: 6px; display: flex; flex-direction: column; }
[data-theme="blue"] .share-menu { background: #101c3a; border-color: #2a3a66; }
.share-menu > button, .share-menu > a { text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; font: inherit; color: #0b1d4a; text-decoration: none; cursor: pointer; }
[data-theme="blue"] .share-menu > button, [data-theme="blue"] .share-menu > a { color: #e8ecf7; }
.share-menu > button:hover, .share-menu > a:hover { background: rgba(127,127,127,.15); }
