/* ЖСК «Москворечье» — минималистичное оформление */
:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --ink: #111316;
  --ink-2: #3f444b;
  --muted: #80868e;
  --line: #e7e8eb;
  --line-2: #f0f1f3;
  --accent: #2459d6;
  --accent-2: #1d4bb8;
  --accent-soft: #edf2fe;
  --green: #1f8a4c;
  --amber: #b07300;
  --red: #c4372d;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* совместимость со старыми именами */
  --card: var(--surface); --paper: var(--bg); --river: var(--accent); --river-2: var(--accent-2);
  --river-soft: var(--accent-soft); --brick: var(--accent); --brick-soft: var(--accent-soft);
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font); font-weight: 650; line-height: 1.2; letter-spacing: -0.022em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(26px, 3.4vw, 34px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 .8em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.page { flex: 1; padding-top: 40px; padding-bottom: 80px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } .page { padding-top: 24px; } }

/* ---------- Шапка ---------- */
.site-header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .mark { width: 32px; height: 32px; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.brand-text small { color: var(--muted); font-size: 12px; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a, .nav-logout button { padding: 7px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.main-nav a:hover { background: var(--line-2); color: var(--ink); text-decoration: none; }
.main-nav a.is-active { color: var(--ink); background: var(--line-2); }
.main-nav .ext { color: var(--muted); }
.main-nav .nav-login { background: var(--ink); color: #fff; margin-left: 8px; }
.main-nav .nav-login:hover { background: #2a2e34; color: #fff; }
.nav-logout { display: flex; align-items: center; gap: 2px; margin: 0 0 0 8px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav-user { font-size: 13px; color: var(--muted); padding: 0 6px; }
.nav-logout button { border: 0; background: none; cursor: pointer; font-family: inherit; }
.nav-logout button:hover { background: var(--line-2); color: var(--ink); }
.nav-toggle, .nav-burger { display: none; }
@media (max-width: 860px) {
  .nav-burger { display: flex; flex-direction: column; gap: 5px; margin-left: auto; padding: 10px; cursor: pointer; }
  .nav-burger span { width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .main-nav a { padding: 12px; font-size: 15px; }
  .main-nav .nav-login { margin: 8px 0 0; text-align: center; }
  .nav-logout { border-left: 0; margin: 8px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); justify-content: space-between; }
  .site-header { position: relative; background: var(--surface); }
}

/* ---------- Главная ---------- */
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.hero { position: relative; overflow: hidden; margin: -8px 0 40px; padding: 56px 48px 44px; border-radius: 28px;
  background: radial-gradient(120% 140% at 100% 0%, #e8effd 0%, rgba(232, 239, 253, 0) 55%), var(--surface); border: 1px solid var(--line); }
.hero-waves { position: absolute; right: 0; top: 0; width: 62%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.hero-waves path { fill: none; stroke: var(--accent); stroke-width: 1.1; opacity: .16; stroke-dasharray: 6 0;
  animation: heroWave 9s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes heroWave { from { transform: translateX(0); } to { transform: translateX(-24px); } }
@media (prefers-reduced-motion: reduce) { .hero-waves path { animation: none; } }
.hero-text { position: relative; max-width: 720px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 22px; }
.hero-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.hero-title { margin: 0 0 22px; font-weight: 750; letter-spacing: -0.045em; line-height: .95; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hero-pre { font-size: clamp(15px, 1.6vw, 18px); font-weight: 700; letter-spacing: .12em; color: #fff; background: var(--ink);
  padding: 9px 14px 8px; border-radius: 10px; line-height: 1; transform: translateY(-.15em); }
.hero-name { font-size: clamp(44px, 8.4vw, 92px); color: var(--ink); }
.hero-name .q { color: var(--accent); font-weight: 400; }
.hero-place { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 18px; color: var(--ink-2); margin: 0; }
.hero-place svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; }
.hero-place b { color: var(--ink); font-weight: 600; }
.hero-place .sep { width: 4px; height: 4px; border-radius: 50%; background: #c3c7cd; }
.hero-facts { list-style: none; margin: 0; padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 12px 40px; border-top: 1px solid var(--line); }
.hero-facts li { display: flex; align-items: baseline; gap: 8px; }
.hero-facts b { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  .hero { padding: 32px 22px 26px; border-radius: 20px; margin-top: 0; }
  .hero-waves { width: 100%; opacity: .7; }
  .hero-kicker { font-size: 11px; letter-spacing: .1em; margin-bottom: 16px; }
  .hero-place { font-size: 16px; }
  .hero-facts { gap: 10px 24px; }
  .hero-facts b { font-size: 22px; }
}
.lead { font-size: 18px; color: var(--ink-2); }

.portals { margin-bottom: 56px; }
.portal {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 32px; align-items: center;
  padding: 28px 32px; border-radius: 20px; background: var(--ink); color: #fff; transition: background .15s;
}
.portal:hover { background: #1d2127; color: #fff; text-decoration: none; }
.portal h2 { color: #fff; font-size: 24px; margin: 8px 0 0; }
.portal-tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #c9ccd1; }
.portal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.portal-cols div { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .14); }
.portal-cols b { font-weight: 600; }
.portal-cols span { color: #a9aeb5; font-size: 14px; line-height: 1.45; }
.portal-go { font-weight: 600; white-space: nowrap; padding: 10px 18px; border-radius: 99px; background: #fff; color: var(--ink); font-size: 14px; }
@media (max-width: 900px) {
  .portal { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .portal-cols { grid-template-columns: 1fr; gap: 14px; }
  .portal-go { justify-self: start; }
}

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
.section-title { font-size: 20px; margin-bottom: 16px; }
.news-item { padding: 22px 0; border-top: 1px solid var(--line); }
.news-item:first-of-type { border-top: 0; padding-top: 4px; }
.news-item time { font-size: 13px; color: var(--muted); }
.news-item h3 { margin: 2px 0 8px; font-size: 18px; }
.news-item .prose p:last-child { margin-bottom: 0; }
.news-item.compact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 10px; }
.side-block { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.side-block:last-child { border-bottom: 0; }
.side-block h3 { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 10px; }
.prose p { margin-bottom: .7em; }
.col-side { font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Территория и карта ---------- */
.territory { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-bottom: 56px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.territory-text { padding: 32px; display: flex; flex-direction: column; }
.territory-text h2 { font-size: 24px; margin-bottom: 8px; }
.lead-sm { color: var(--ink-2); margin-bottom: 18px; }
.streets { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.streets li { padding: 5px 12px; border-radius: 99px; background: var(--line-2); color: var(--ink); font-size: 14px; font-weight: 500; }
.map-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.territory-map { position: relative; min-height: 420px; background: var(--line-2); }
.territory-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) {
  .territory { grid-template-columns: 1fr; }
  .territory-map { min-height: 320px; }
  .territory-text { padding: 24px 20px; }
}

/* ---------- Кнопки и формы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 14px/1.2 var(--font);
  cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--line-2); border-color: #d9dbdf; color: var(--ink); text-decoration: none; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a2e34; border-color: #2a2e34; color: #fff; }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: #fdf1f0; border-color: #f2c9c5; color: var(--red); }
.btn-block { width: 100%; padding: 12px 16px; }
.btn-small { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.link-danger { background: none; border: 0; color: var(--red); cursor: pointer; font: inherit; padding: 0; }
.link-danger:hover { text-decoration: underline; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; color: var(--ink); }
.form label small { font-weight: 400; color: var(--muted); }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.form legend { font-weight: 600; padding: 0 6px; font-size: 14px; }
.form > .btn:not(.btn-block), .form .row-actions .btn { align-self: flex-start; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; font: 400 15px/1.4 var(--font); padding: 10px 12px; border: 1px solid #dcdee2; border-radius: 10px;
  background: var(--surface); color: var(--ink); transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36, 89, 214, .14); }
input[type=checkbox] { accent-color: var(--ink); width: 16px; height: 16px; }
textarea { resize: vertical; }
.input-sm { width: 80px !important; }
label.check { flex-direction: row !important; align-items: center; gap: 8px; font-weight: 400 !important; padding-top: 26px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.row-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-actions form { margin: 0; }
@media (max-width: 640px) { .row-2, .row-3 { grid-template-columns: 1fr; } label.check { padding-top: 0; } }

.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.flash-ok { background: #f0faf4; border-color: #cdebd8; color: #17633a; }
.flash-error { background: #fdf3f2; border-color: #f4d3cf; color: #9c2b22; }

/* ---------- Вход ---------- */
.auth-card { max-width: 400px; margin: 32px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px 32px; }
.auth-card.wide { max-width: 520px; }
.auth-card h1 { font-size: 24px; margin-bottom: 4px; }
.auth-card > .muted { margin-bottom: 24px; }
.auth-body { justify-content: center; padding: 20px; }
.hint { font-size: 13px; color: var(--muted); margin: 20px 0 0; }
.checks { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; }
.checks .ok { color: var(--green); }
.checks .bad { color: var(--red); font-weight: 600; }

/* ---------- Кабинет ---------- */
.cabinet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.cabinet-head h1 { margin-bottom: 4px; }
.cabinet-head p { margin: 0; font-size: 14px; }
.cab-tabs { display: inline-flex; gap: 2px; padding: 4px; margin: 0 0 32px; background: var(--line-2); border-radius: 12px; max-width: 100%; overflow-x: auto; }
.cab-tabs a { padding: 8px 18px; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: 14px; white-space: nowrap; }
.cab-tabs a:hover { color: var(--ink); text-decoration: none; }
.cab-tabs a.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(17, 19, 22, .08), 0 0 0 1px var(--line); }
.member-news { margin-bottom: 28px; }
.personal { background: var(--accent-soft); border-radius: var(--radius); padding: 20px 22px 10px; margin-bottom: 36px; }
.personal .section-title { margin-bottom: 0; font-size: 17px; }
.personal .muted { margin-bottom: 12px; }
.cabinet { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.cat-list { display: flex; flex-direction: column; gap: 1px; position: sticky; top: 88px; }
.cat-list a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; }
.cat-list a span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cat-list a:hover { background: var(--line-2); text-decoration: none; color: var(--ink); }
.cat-list a.is-active { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.search { display: flex; gap: 8px; margin-bottom: 24px; }
.search.inline { margin: 0 0 0 auto; min-width: 260px; }
.group-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 28px 0 8px; }
.group-title:first-of-type { margin-top: 0; }
@media (max-width: 860px) {
  .cabinet { grid-template-columns: 1fr; gap: 16px; }
  .cat-list { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .cat-list a { white-space: nowrap; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
}

.docs { list-style: none; margin: 0 0 12px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doc { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.doc:first-child { border-top: 0; }
.doc:hover { background: #fbfbfc; }
.doc-body { flex: 1; min-width: 0; }
.doc-title { font-weight: 500; color: var(--ink); display: block; overflow-wrap: anywhere; }
.doc-title:hover { color: var(--accent); text-decoration: none; }
.doc-desc { font-size: 13px; color: var(--ink-2); }
.doc-meta { display: flex; gap: 10px; font-size: 12px; color: var(--muted); }
.doc-dl { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; color: var(--ink-2); font-size: 16px; border: 1px solid var(--line); }
.doc-dl:hover { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: none; }
.docs.compact .doc { padding: 8px 12px; }
.ficon { flex-shrink: 0; width: 36px; height: 40px; border-radius: 8px; display: grid; place-items: center;
  font: 600 10px/1 var(--font); letter-spacing: .02em; }
.ficon-pdf { background: #fdeceb; color: #c4372d; }
.ficon-doc { background: #eaf0fd; color: #2459d6; }
.ficon-xls { background: #e8f6ee; color: #1f8a4c; }
.ficon-img { background: #f3edfb; color: #7a4bc4; }
.ficon-zip { background: var(--line-2); color: var(--ink-2); }
.doc-inline { display: flex; align-items: center; gap: 10px; }
.doc-inline .ficon { width: 28px; height: 30px; font-size: 8px; border-radius: 6px; }
.empty { text-align: center; padding: 56px 24px; color: var(--muted); background: var(--surface); border: 1px dashed #dcdee2; border-radius: var(--radius); }
.empty h1, .empty h2 { color: var(--ink); }

/* ---------- Домовладелец (Housev) ---------- */
.hv-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hv-frame-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hv-frame { display: block; width: 100%; height: max(720px, calc(100vh - 280px)); border: 0; }
.hv-empty .btn { margin-top: 8px; }
@media (max-width: 640px) { .hv-frame { height: 80vh; } }

/* ---------- Управление ---------- */
.admin-nav { display: inline-flex; gap: 2px; flex-wrap: wrap; margin-bottom: 32px; padding: 4px; background: var(--line-2); border-radius: 12px; }
.admin-nav a { padding: 7px 14px; border-radius: 9px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.admin-nav a:hover { color: var(--ink); text-decoration: none; }
.admin-nav a.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(17, 19, 22, .08), 0 0 0 1px var(--line); }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.title-row h1, .title-row h3 { margin: 0; }
.title-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.title-actions form { margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.card h3 { font-size: 16px; }
.card.narrow { max-width: 760px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat b { display: block; font-size: 30px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.callout { background: #fffaeb; border: 1px solid #f3e3b5; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; font-size: 14px; }
.callout-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.callout-actions form { margin: 0; }
.callout.slim { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters select { width: auto; min-width: 200px; }
.filters form.inline { margin: 0; }
.chip { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 500; }
.chip:hover { text-decoration: none; border-color: #d4d6da; color: var(--ink); }
.chip span { color: var(--muted); margin-left: 2px; }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-active span { color: #b4b8be; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfbfc; }
.table tr.is-off td { color: var(--muted); }
.card .table td, .card .table th { padding-left: 4px; }
.w-check { width: 40px; }
.badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 99px; background: var(--ink); color: #fff; vertical-align: 1px; }
.badge.light { background: var(--accent-soft); color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.3; white-space: nowrap; vertical-align: middle; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-grey { color: var(--muted); }
.st-amber { color: var(--amber); }
.st-green { color: var(--green); }
.st-red { color: var(--red); }
.bulk-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 14px 0; }
.danger-zone { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 0; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.plain li:last-child { border-bottom: 0; }
.news-admin { padding: 14px 18px; margin-bottom: 8px; }
.news-admin b { display: block; margin: 2px 0 6px; font-weight: 600; }
.upload { margin-bottom: 32px; }
.drop { border: 1.5px dashed #d4d6da; border-radius: var(--radius); padding: 24px; text-align: center; background: #fbfbfc; cursor: pointer; font-weight: 400 !important; }
.drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop input { margin: 0 auto 8px; }

/* ---------- Реквизиты ---------- */
.req-list { margin: 0 0 12px; font-size: 14px; }
.req-list dt { color: var(--muted); font-size: 12px; margin-top: 8px; }
.req-list dt:first-child { margin-top: 0; }
.req-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.req-card { max-width: 760px; }
.req-table th { width: 38%; font-size: 14px; color: var(--muted); font-weight: 400; white-space: normal; border-bottom: 1px solid var(--line-2); }
.req-table td { font-weight: 500; overflow-wrap: anywhere; }
.print-only { display: none; }

/* ---------- Листы с паролями ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.cred { background: #fff; border: 1.5px dashed #b9bdc3; border-radius: 12px; padding: 16px 18px; break-inside: avoid; page-break-inside: avoid; }
.cred-head { font-size: 11px; color: var(--muted); }
.cred-who { font-weight: 600; margin: 4px 0 8px; min-height: 1.5em; }
.cred dl { display: grid; grid-template-columns: 70px 1fr; gap: 2px 10px; margin: 0 0 10px; align-items: baseline; }
.cred dt { color: var(--muted); font-size: 13px; }
.cred dd { margin: 0; }
.cred .big { font-size: 19px; font-weight: 600; letter-spacing: .03em; }
.cred-foot { font-size: 11px; color: var(--ink-2); line-height: 1.4; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 32px 0 40px; background: var(--bg); }
.site-footer b { color: var(--ink); font-weight: 600; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

@media print {
  .site-header, .site-footer, .no-print, .flash { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .page { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .print-only { display: block; }
  .cred-grid { grid-template-columns: 1fr 1fr; gap: 8mm; }
  .cred { border-color: #555; }
}

/* ---------- Схема участков ---------- */
.plots-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 28px 20px; margin-bottom: 56px; }
.plots-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.plots-head h2 { font-size: 24px; margin: 0; }
.plots-hint { margin: 0; }
.plots-wrap { position: relative; }
.plots-svg { display: block; width: 100%; height: auto; overflow: visible; -webkit-tap-highlight-color: transparent; }
.ps-terr { fill: #f1f2f4; }
.ps-green { fill: #e3efe0; }
.ps-water { fill: #dde9f6; }
.plot { cursor: pointer; outline: none; }
.plot path { fill: #efe6d3; stroke: #fff; stroke-width: 1.6; stroke-linejoin: miter;
  transform-box: fill-box; transform-origin: center; transition: transform .18s ease, fill .18s ease; }
.plot text { font: 600 8.5px var(--font); fill: #9a8d72; text-anchor: middle; dominant-baseline: central; pointer-events: none;
  transform-box: fill-box; transform-origin: center; transition: transform .18s ease, fill .18s ease, font-size .18s; }
.ps-top { pointer-events: none; }
.plot.is-on path { fill: var(--accent); transform: scale(1.2); filter: url(#plotShadow); animation: plotIn .16s ease; }
.plot.is-on text { fill: #fff; font-size: 15px; font-weight: 700; }
.plots-wrap::-webkit-scrollbar { height: 6px; }
.plots-wrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
@keyframes plotIn { from { transform: scale(1); } to { transform: scale(1.2); } }
.plots-stage { position: relative; }
.plot-badge { position: absolute; top: 0; right: 0; z-index: 2; pointer-events: none; background: var(--accent); color: #fff;
  font-size: 14px; padding: 6px 14px; border-radius: 99px; white-space: nowrap; box-shadow: 0 4px 14px rgba(36, 89, 214, .3); }
.plot-badge b { font-weight: 700; }
@media (max-width: 760px) {
  .plots-card { padding: 18px 12px 12px; border-radius: 16px; }
  .plots-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -12px; padding: 0 12px; }
  .plots-svg { width: 760px; max-width: none; }
}

/* улицы на схеме */
.ps-roads path { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.ps-street-names text { font: 600 6.2px var(--font); fill: #6b7079; letter-spacing: .02em; text-anchor: middle; dominant-baseline: central;
  paint-order: stroke; stroke: #f1f2f4; stroke-width: 2.2px; stroke-linejoin: round; pointer-events: none; }

/* река */
.ps-river-water { fill: #cfe3f7; }
.ps-river-bank { fill: #dcebd6; }
.ps-river-name { font: italic 600 11px var(--font); fill: #5b8ec4; letter-spacing: .08em; text-anchor: middle; dominant-baseline: central; }
