/* Bank-like editorial portal style */
:root {
  /* Banki.ru inspired color palette */
  --primary-blue: #0066cc;
  --primary-dark: #0052a3;
  --primary-light: #e6f2ff;
  --secondary-blue: #4d94ff;
  --accent-green: #28a745;
  --accent-orange: #fd7e14;
  --accent-red: #dc3545;
  --bg-primary: #ffffff;
  --bg-secondary: #f2f4f7;
  --bg-muted: #e9ecef;
  --border-light: #c8d0d8;
  --border-subtle: #e4e9ee;
  --text-primary: #212529;
  --text-secondary: #3c444b;
  --text-muted: #919fad;
  --text-light: #868e96;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
  --shadow-card: rgba(22, 33, 54, 0.05) 0px 1px 8px 0px;
  --shadow-card-strong: rgba(22, 33, 54, 0.11) 0px 2px 16px 0px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--bg-secondary);
  line-height: 1.5;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; font-weight: 800; letter-spacing: -0.03em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.12; letter-spacing: -0.03em; color: var(--text-primary); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.08; letter-spacing: -0.03em; color: var(--text-primary); margin-bottom: 18px;}
h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text-primary); }
p { color: var(--text-secondary); margin-top: 0.5rem; line-height: 1.5; font-size: 15px;}

.container { max-width: 1360px; margin: 0 auto; padding: 0 20px; }
.section { padding: 50px 0 40px; background: var(--bg-primary); }
.section--muted { background: var(--bg-secondary); }
.section--pb-extra { padding-bottom: 60px; }
.section-heading { margin-bottom: 30px; }
.section-heading--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: var(--radius-sm); background: var(--primary-light); color: var(--primary-blue); font-size: 12px; font-weight: 500;
  margin-bottom: 12px;
}
.eyebrow--warning { color: var(--accent-orange); background: #fff3cd; }
.eyebrow--danger { color: #b91c1c; background: #fee2e2; }
.section--muted .eyebrow { background: var(--bg-primary); }
.section--muted .eyebrow--warning { background: #fff3cd; }

.site-header {
  position: relative; z-index: 100;
  background: var(--bg-primary);
  box-shadow: 0 1px 0 var(--border-subtle), 0 2px 8px rgba(0,0,0,0.06);
}
.topline {
  min-height: 64px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; position: relative;
}
.topline__left { display: flex; align-items: center; }
.topline__brand-row { display: flex; align-items: center; }
.demo-badge {
  position: absolute; left: 42%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 8px;
  background: #ffffff;
  border: 1px solid #d1e8ff;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.demo-badge:hover { background: #d9eaff; border-color: #80b6ff; }
.demo-badge__tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: #fff; background: var(--primary-blue);
  padding: 3px 9px; border-radius: 9999px; text-transform: uppercase;
}
.demo-badge__text { font-size: 13px; color: #64748b; white-space: nowrap; }
.demo-badge__sep { color: #9ca3af; font-size: 13px; }
.demo-badge__cta { font-size: 13px; font-weight: 700; color: var(--primary-blue); white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__badge {
  width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center;
  color: #fff; font-weight: 600; background: var(--primary-blue);
}
.brand__meta strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.brand__meta span { display: block; font-size: 12px; color: var(--text-muted); }
.topline__right { display: flex; align-items: center; gap: 30px; }
.emergency-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 800; color: var(--text-primary);
}
.emergency-phone__icon { color: var(--accent-red); font-size: 15px; }
.house-selector { position: relative; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }

/* Custom dropdown */
.house-dropdown { position: relative; }
.house-dropdown__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-width: 234px; height: 36px; padding: 0 12px;
  background: var(--bg-secondary); border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 400; color: var(--text-primary);
  cursor: pointer; font-family: inherit; text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.house-dropdown__trigger:hover { background: var(--bg-muted); }
.house-dropdown__trigger[aria-expanded="true"] {
  background: var(--bg-primary); border-color: var(--primary-blue);
  outline: 2px solid var(--primary-light);
}
.house-dropdown__trigger--selected #house-dropdown-current {
  color: var(--primary-blue); font-weight: 600;
}
.house-dropdown__chevron {
  flex-shrink: 0; color: var(--text-secondary); transition: transform 0.2s ease;
}
.house-dropdown__trigger[aria-expanded="true"] .house-dropdown__chevron { transform: rotate(180deg); }
.house-dropdown__list {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 100%; width: max-content;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.06);
  z-index: 400; list-style: none; padding: 4px 0;
  opacity: 0; transform: translateY(-6px);
  pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease;
}
.house-dropdown__list.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.house-dropdown__item {
  padding: 9px 14px; font-size: 13px; cursor: pointer;
  color: var(--text-primary); white-space: nowrap; transition: background 0.1s;
}
.house-dropdown__item--muted { color: var(--text-muted); }
.house-dropdown__item:hover { background: var(--bg-secondary); }
.house-dropdown__item--selected { color: var(--primary-blue); font-weight: 600; }
.request-form input, .request-form select, .request-form textarea, .documents-search input {
  border: 1px solid var(--border-light); background: var(--bg-primary); border-radius: var(--radius-sm);
  min-height: 40px; padding: 0 16px; font-size: var(--text-body); transition: all 0.2s ease;
}

.request-form textarea {
  min-height: 100px; padding: 16px; resize: vertical;
}

.request-form label {
  display: block; font-size: var(--text-body); font-weight: var(--weight-medium); color: var(--text-primary);
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.file-upload {
  margin-top: 0;
}

.file-upload__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: grid;
  gap: 10px;
}

.file-upload__trigger {
  min-height: 48px; display: flex !important; align-items: center; gap: 10px; padding: 12px 16px;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: rgb(251, 253, 255);
  color: var(--text-primary); cursor: pointer; transition: all 0.2s ease;
}

.file-upload__trigger:hover {
  border-color: var(--primary-blue); background: var(--primary-light);
}

.file-upload__text {
  font-size: var(--text-body); text-transform: none; letter-spacing: 0; color: var(--text-muted);
}

.file-upload__list {
  margin-top: 12px; display: grid; gap: 8px;
}

.file-upload__item {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--bg-secondary); border-radius: var(--radius-sm); font-size: var(--text-small);
}

.file-upload__remove {
  margin-left: auto; color: var(--accent-red); cursor: pointer; font-size: var(--text-caption);
}
.house-selector select {
  min-width: 230px; height: 40px; padding: 12px 32px 12px 16px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
  background-color: rgb(251, 253, 255);
  transition: all 0.2s ease;
}
.house-selector select:focus, .request-form input:focus, .request-form select:focus, .request-form textarea:focus, .documents-search input:focus {
  outline: 2px solid var(--primary-light); border-color: var(--primary-blue);
}
.nav {
  min-height: 48px; display: flex; justify-content: space-between; gap: 16px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--bg-primary);
}
.nav::-webkit-scrollbar { display: none; }
.nav__group { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.nav__group a {
  position: relative;
  min-height: 48px; display: inline-flex; align-items: center; padding: 0 16px;
  font-size: 14px; color: var(--text-secondary); font-weight: 500;
  transition: color 0.2s ease;
}
.nav__group a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 2px;
  background: var(--primary-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.nav__group a:hover, .nav__group a.nav-link--active { color: var(--primary-blue); background: transparent; }
.nav__group a:hover::after, .nav__group a.nav-link--active::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0px 16px; border-radius: var(--radius-sm);
  background: var(--primary-blue); color: rgb(255, 255, 255); font-weight: 500; font-size: 14px; white-space: nowrap;
  border: 1px solid transparent; transition: all 0.2s ease; cursor: pointer;
}
.btn:hover { background: var(--primary-dark); }
.btn--primary { color: #fff; background: var(--primary-blue); border-color: var(--primary-blue); }
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn--light { background: #fff; color: var(--primary-blue); border-color: var(--primary-blue); }
.btn--light:hover { background: var(--primary-light); border-color: var(--primary-dark); color: var(--primary-dark); }
.btn--secondary:hover { background: var(--bg-muted); }
.btn--secondary { background: var(--bg-secondary); color: var(--text-primary); border: none; }
.btn--outline { background: transparent; color: var(--primary-blue); border: none; }
.btn--outline:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn--small { height: 32px; padding: 0px 12px; font-size: 0.85rem; }

.hero-banner {
  padding: 44px 0;
  background: var(--bg-primary);
}

.hero-banner--full {
}

.hero-banner--full .hero-banner__inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-banner__inner {
  display: grid; grid-template-columns: 1fr minmax(360px, 640px);
  border-radius: 0;
  background: transparent; border: none;
  box-shadow: none;
  margin: 0;
}
.hero-banner__content {
  padding: 0px 60px 16px 0;
}
.hero-house {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 14px;
  border-radius: var(--radius-sm); background: var(--primary-light); color: var(--primary-blue); font-size: 12px; font-weight: 500;
}
.hero-house__sep { width: 1px; height: 12px; background: var(--border-light); }
.hero-banner__content p { margin-top: 16px; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 38px; }
.hero-highlights div {
  border: none; border-radius: var(--radius-md); padding: 20px; background: var(--bg-primary);
  box-shadow: var(--shadow-card-strong); text-align: center;
}
.hero-highlights strong { display: block; color: var(--text-primary); font-size: 28px; font-weight: 800; }
.hero-highlights span { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-secondary); }
.hero-visual {
  position: relative;
  max-height: 450px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 0px;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; min-height: inherit; border-radius: var(--radius-md); transition: opacity 0.2s ease; }

.hero-visual__card {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  border-radius: var(--radius-md); padding: 16px; background: var(--bg-primary);
  box-shadow: var(--shadow-md);
}
.hero-visual__card span { font-size: 11px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; }
.hero-visual__card strong { display: block; margin-top: 0px; }

.quick-section { margin-top: -20px; margin-bottom: 40px; position: relative; z-index: 3; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card, .news-card, .help-card, .contact-block, .stat-card, .object-card, .object-mini-card, .document-category, .document-section, .work-summary__main, .work-summary__stats div, .request-form-container, .faq-item, .news-item {
  border: none; border-radius: var(--radius-md); background: var(--bg-primary);
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}
.quick-card { min-height: 120px; padding: 20px; transition: .2s ease; text-align: center; }
.quick-card:hover, .news-card:hover, .help-card:hover, .object-mini-card:hover, .news-item:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.quick-card__icon {
  width: 40px; height: 40px; border-radius: var(--radius-md); display: grid; place-items: center; margin: 0 auto 12px;
  background: var(--primary-light); color: var(--primary-blue); font-size: 18px;
}
.quick-card strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.5; }
.quick-card small { display: block; margin-top: 6px; font-size: 12px; color: var(--text-secondary); }
.quick-card--primary { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }
.quick-card--primary .quick-card__icon { color: #fff; background: rgba(255,255,255,0.2); }
.quick-card--primary small { color: rgba(255,255,255,0.8); }

.chatbot-banner {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  background: var(--bg-primary); text-decoration: none; transition: all 0.2s ease;
  border-radius: var(--radius-md);
}

.chatbot-banner:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
} 

.chatbot-banner__icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--primary-light); border-radius: var(--radius-md);
  color: var(--primary-blue); flex-shrink: 0;
}

.chatbot-banner__content {
  display: flex; flex-direction: column; gap: 4px; 
}

.chatbot-banner__content strong {
  font-size: 16px; letter-spacing: -0.03em; color: var(--primary-blue);
}

.chatbot-banner__content span {
  font-size: 13px; color: var(--text-secondary);
}
.news-tab, .document-filter, .object-filter, .document-type, .object-card__label, .address-badge, .type-badge, .status {
  display: inline-flex; align-items: center; border-radius: var(--radius-sm); min-height: 28px; padding: 6px 10px; font-size: 12px; font-weight: 500;
}
.news-tab, .document-filter, .object-filter { border: none; background: transparent; color: var(--text-primary); font-weight: 500; cursor: pointer; }
.news-tab:hover, .document-filter:hover, .object-filter:hover { background: var(--bg-muted); }
.news-tab--active, .document-filter--active, .object-filter--active { background: var(--bg-muted); color: var(--text-primary); border-color: transparent; }
.news-grid--three { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.news-card { min-height: 220px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.section:not(.section--muted) .news-card { box-shadow: var(--shadow-card-strong); }
.news-card p { font-size: 14px; }
.news-card__tag, .object-card__label, .document-type {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: var(--radius-sm); background: var(--primary-light); color: var(--primary-blue); font-size: 12px; font-weight: 500;
  width: fit-content;
}
.news-card__date, .news-item__date { color: var(--text-muted); font-size: 12px; text-transform: uppercase; font-weight: 500; }
.news-card__link, .news-item__link, .document-row__action { margin-top: auto; color: var(--primary-blue); font-size: 14px; font-weight: 500; }

.resident-callout {
  margin-bottom: 20px; border-radius: var(--radius-md); padding: 20px;
  background: var(--primary-light);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.resident-callout p { margin-top: 8px; color: var(--text-secondary); }
/* ── Shared table base ───────────────────────────── */
.events-table, .status-table {
  display: grid; gap: 0;
  background: var(--bg-primary); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); overflow: hidden;
}

/* Table headers */
.events-table__header, .status-table__row--head {
  display: grid;
  padding: 0;
  background: var(--bg-primary); border-bottom: 1px solid var(--border-subtle);
  box-shadow: none; border-radius: 0;
  font-size: 13px; font-weight: 400; color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.events-table__header { grid-template-columns: 180px 1.0fr 1.6fr 220px 230px; }
.events-table__header > span { padding: 14px 14px; display: flex; align-items: center; justify-content: center; }
.status-table__row--head { grid-template-columns: 100px 150px 1.2fr 1fr 175px 1fr 130px; }
.status-table__row--head > span { padding: 14px 14px; display: flex; align-items: center; justify-content: center; }

/* Shared data row — no individual shadow, divider only */
.events-table__row, .status-table__row:not(.status-table__row--head) {
  position: relative;
  border: none; border-radius: 0; background: var(--bg-primary);
  box-shadow: none;
  border-bottom: 1px solid var(--border-subtle);
  min-height: 58px; align-items: center;
}
.events-table__row:last-child,
.status-table__row:not(.status-table__row--head):last-child { border-bottom: none; }
.events-table__row::before, .status-table__row:not(.status-table__row--head)::before {
  
}
.events-table__row {
  display: grid; grid-template-columns: 180px 1.0fr 1.6fr 220px 230px;
}
.status-table__row:not(.status-table__row--head) {
  display: grid; grid-template-columns: 100px 150px 1.2fr 1fr 175px 1fr 130px;
}

/* Shared cell padding */
.events-table__row > span,
.status-table__row:not(.status-table__row--head) > span { padding: 14px 14px; font-size: 0.875rem; line-height: 1.4; display: flex; align-items: left; }

/* Date cell — identical in both tables */
.events-table__date, .tbl-date { padding-left: 34px !important; padding-right: 24px !important; color: var(--text-primary); font-weight: 400; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.events-table__time-sub, .tbl-num-sub { font-size: 0.8125rem; font-weight: 500; color: var(--text-primary); }

/* Events-specific cells */
.events-table__title { font-weight: 700; color: var(--text-primary); }
.events-table__desc { color: var(--text-secondary); }

/* Status-specific cells */
.tbl-num { color: var(--text-primary); font-size: 0.875rem; font-weight: 600; padding-left: 30px !important; }
.tbl-desc { font-weight: 700; color: var(--text-primary); }
.tbl-who { color: var(--text-secondary); }
.tbl-status, .events-table__type { padding-left: 28px !important; padding-right: 18px !important; }
.tbl-house { color: var(--text-secondary); font-size: 0.8rem !important; margin-right: 20px !important; }
.tbl-addr { color: var(--text-secondary); font-size: 0.8125rem !important; }
.tbl-deadline { color: var(--text-secondary); font-size: 0.875rem; margin-right: 20px !important; }

.events-table__row--urgent { background: #fff0f0; }
.type-badge::before, .status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; background: currentColor; }
.type-urgent, .status--rejected { background: #fee2e2; color: #b91c1c; }
.type-maintenance, .status--progress { background: #dbeafe; color: #1d4ed8; }
.type-cleaning, .status--done { background: #d1fae5; color: #166534; }
.type-meeting, .status--pending { background: #fef3c7; color: #92400e; }
.status--cancelled { background: #e9ecef; color: var(--text-muted); }
.status--new { background: #fef3c7; color: #92400e; }
.status--closed { background: #e0e7ff; color: #3730a3; }

.work-summary { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 24px; }
.work-summary__main, .work-summary__stats div { padding: 24px; }
.work-summary__main p { margin-top: 12px; color: var(--text-secondary); }
.work-summary__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.work-summary__stats div { border: none; border-radius: var(--radius-md); background: var(--bg-primary); text-align: center; box-shadow: var(--shadow-card); }
.work-summary__stats div:nth-child(1) { background: #eaf8f1; }
.work-summary__stats div:nth-child(2) { background: #edf2ff; }
.work-summary__stats div:nth-child(3) { background: #fff4df; }
.work-summary__stats strong { font-size: 28px; line-height: 1; color: var(--primary-blue); font-weight: 600; }
.work-summary__stats span { display: block; margin-top: 6px; font-size: 12px; color: var(--text-secondary); }

.request-layout {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px;
  padding: 0; border-radius: var(--radius-lg); background: var(--bg-primary);
}
.request-info { padding: 16px 0px 0px 0; }
.request-info > p { margin-top: 12px; margin-bottom: 20px; font-size: 15px; color: var(--text-secondary); }
.process-steps { display: grid; gap: 12px; }
.process-step { display: flex; align-items: center; gap: 12px; min-height: 48px; border-radius: var(--radius-md); background: var(--bg-primary); padding: 12px 16px; box-shadow: var(--shadow-card); }
.process-step__num { width: 28px; height: 28px; border-radius: var(--radius-sm); display: grid; place-items: center; color: #fff; background: var(--primary-blue); font-size: 12px; font-weight: 600; }
/* Chatbot panel */
.chatbot-panel {
  margin-top: 24px;
  background: var(--bg-primary);
  border: none;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card-strong);
}
.chatbot-panel__header {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px;
}
.chatbot-panel__icon {
  flex-shrink: 0; width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--primary-blue); color: #fff;
  border-radius: var(--radius-sm);
}
.chatbot-panel__title {
  font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.03em; color: var(--text-primary); margin: 0; padding-top: 6px;
}
.chatbot-panel__desc {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 10px;
}
.chatbot-panel__list {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.chatbot-panel__list li {
  font-size: 14px; color: var(--text-secondary); padding-left: 16px; position: relative;
}
.chatbot-panel__list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--primary-blue); font-weight: 700; font-size: 12px;
}
.chatbot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chatbot-item {
  display: grid; gap: 10px; justify-items: center;
  padding: 16px 12px 12px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid #d9ecff;
}
.chatbot-qr { width: 100px; height: 100px; border-radius: var(--radius-sm); display: block; }
.chatbot-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 34px;
  border-radius: var(--radius-sm); padding: 6px 12px;
  font-size: 12px; font-weight: 600; line-height: 1.3; text-align: center;
  transition: background 0.15s, color 0.15s;
}
.chatbot-button--tg { background: #e8f4fe; color: #0088cc; }
.chatbot-button--tg:hover { background: #0088cc; color: #fff; }
.chatbot-button--max { background: #f0eaff; color: #5b3dc8; }
.chatbot-button--max:hover { background: #5b3dc8; color: #fff; }
/* legacy */
.chatbot-divider { margin-top: 16px; }
.chatbot-description { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.request-form-container { padding: 24px; border: none; border-radius: var(--radius-md); background: var(--bg-primary); box-shadow: var(--shadow-card-strong); }
.request-form { display: grid; gap: 16px; }
.request-form label, .field { display: grid; gap: 10px; }
.request-form label, .field span { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.request-form input, .request-form textarea, .request-form select, .field input, .field textarea, .field select { width: 100%; border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 12px 16px; background: rgb(251, 253, 255); color: var(--text-primary); font-size: 14px; font-weight: 600; }
.request-form select, .field select { 
  -webkit-appearance: none; 
  -moz-appearance: none; 
  appearance: none; 
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  padding-right: 48px;
}
.request-form input:focus, .request-form textarea:focus, .request-form select:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 3px var(--primary-light); }
.request-form textarea { min-height: 100px; resize: vertical; }
.file-upload__label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }
.file-upload__input { display: none; }
.file-upload__text { font-size: 14px; font-weight: 600; font-size: 14px; font-weight: 600;}
.file-upload__hint { margin-left: auto; color: var(--text-muted); font-size: 12px; }
.file-upload__list { display: grid; gap: 8px; }
.file-upload__item {
  display: flex; align-items: center; gap: 8px; border-radius: var(--radius-sm); padding: 10px 12px;
  background: var(--bg-secondary); font-size: 13px; color: var(--text-primary);
}
.file-upload__remove { margin-left: auto; color: var(--accent-red); cursor: pointer; }
.request-form__actions { display: flex; justify-content: flex-end; margin-top: 0; }

.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.help-card { padding: 20px; min-height: 146px; }
.help-card span { color: var(--primary-blue); font-size: 13px; font-weight: 600; margin-bottom: 12px; display: inline-flex; }
.help-card small { display: block; margin-top: 6px; font-size: 13px; color: var(--text-secondary); }
.faq-categories { display: grid; grid-template-columns: 1fr; gap: 0; }
.faq-category { display: flex; flex-direction: column; gap: 12px; }
.faq-category h3 { font-size: 20px; font-weight: 800; color: var(--text-primary); padding-bottom: 8px; margin: 36px 0 8px; border-bottom: 2px solid var(--primary-light); }
.faq-categories .faq-category:first-child h3 { margin-top: 0; }
.faq-accordion { display: grid; gap: 12px; }
.faq-item { overflow: hidden; border-radius: var(--radius-md); border: none; background: var(--bg-primary); box-shadow: var(--shadow-card); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--text-primary); font-size: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; width: 28px; height: 28px; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--primary-blue); background: var(--primary-light); font-weight: 500; flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item > p { padding: 0 20px 16px 20px; margin-top: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.contacts-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-block { padding: 24px; box-shadow: var(--shadow-card-strong); }
.contact-block--emergency { background: var(--bg-primary); }
.contact-block h3 { margin-bottom: 16px; color: var(--primary-blue); font-size: 13px; text-transform: uppercase; font-weight: 500; }
.contact-block--emergency h3 { color: var(--accent-red); }
.contact-list { display: grid; gap: 12px; }
.contact-list div { display: flex; align-items: baseline; gap: 6px; }
.contact-list span { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 500; }
.contact-list div span { display: inline; width: 120px; flex-shrink: 0; }
.contact-list .eyebrow { display: inline-flex; width: fit-content; color: var(--primary-blue); text-transform: none; font-weight: 500; font-size: 12px; }
.contact-list .eyebrow--danger { color: #b91c1c; }
.contact-list strong { display: inline; margin-top: 0; font-size: 1rem; color: var(--text-primary); font-weight: 500; }

/* Breadcrumb inside content sections */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--primary-blue); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero p { margin-top: 16px; max-width: 700px; color: rgba(255,255,255,0.8); }
.news-list { display: grid; gap: 12px; }
.news-item { border: none; border-radius: var(--radius-md); background: var(--bg-primary); box-shadow: var(--shadow-card); }
.news-item__content { padding: 24px; }
.news-item h3 { margin-top: 8px; color: var(--text-primary); font-weight: 600; }
.news-item p { margin-top: 12px; color: var(--text-secondary); }

.documents-section, .objects-section { background: var(--bg-secondary); }
.documents-hub, .objects-toolbar { display: grid; grid-template-columns: 1fr minmax(300px, 430px); gap: 20px; align-items: end; }
.objects-toolbar { grid-template-columns: 1fr auto; }
.documents-search { display: flex; gap: 8px; padding: 8px; border-radius: var(--radius-md); border: none; background: var(--bg-primary); box-shadow: var(--shadow-card); }
.documents-search input { min-height: 38px; padding: 0 12px; width: 100%; border: 1px solid transparent; }
.documents-categories { display: grid; gap: 0; }
.doc-group__title { font-size: 20px; font-weight: 800; color: var(--text-primary); padding-bottom: 8px; margin: 36px 0 8px; border-bottom: 2px solid var(--primary-light); }
.doc-group__title:first-child { margin-top: 0; }
.doc-table { background: var(--bg-primary); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; margin-bottom: 4px; }
.doc-table__row { position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 16px 16px 16px 50px; background: none; border-radius: 0; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border-subtle); transition: background 0.12s; }
.doc-table__row:last-child { border-bottom: none; }
.doc-table__row::before { content: ''; position: absolute; left: 24px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; border-radius: 50%; background: var(--primary-blue); opacity: 0.6; }
.doc-table__row:hover { background: var(--bg-secondary); }
.doc-table__name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.doc-table__meta { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.doc-table__icon { display: flex; align-items: center; color: var(--primary-blue); opacity: 0.6; }
.document-download { width: 36px; height: 36px; border-radius: var(--radius-md); display: grid; place-items: center; color: var(--primary-blue); background: var(--primary-light); cursor: pointer; transition: all 0.2s ease; }

/* Form house custom dropdown */
.form-field { display: flex; flex-direction: column; gap: 10px; }
.form-field__label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-house-dropdown { position: relative; }
.form-house-dropdown__trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 12px 16px; background: rgb(251, 253, 255); border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; font-family: inherit; text-align: left; transition: border-color 0.15s, box-shadow 0.15s; }
.form-house-dropdown__trigger--selected { color: var(--text-primary); }
.form-house-dropdown__trigger:hover { border-color: var(--primary-blue); }
.form-house-dropdown__trigger[aria-expanded="true"] { border-color: var(--primary-blue); outline: none; box-shadow: 0 0 0 3px var(--primary-light); }
.form-house-dropdown__trigger[aria-expanded="true"] .house-dropdown__chevron { transform: rotate(180deg); }
.form-house-dropdown__list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--bg-primary); border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.06); z-index: 300; list-style: none; padding: 4px 0; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease; }
.form-house-dropdown__list.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.form-house-dropdown__item { padding: 10px 16px; font-size: 14px; cursor: pointer; color: var(--text-primary); transition: background 0.1s; }
.form-house-dropdown__item--muted { color: var(--text-muted); }
.form-house-dropdown__item:hover { background: var(--bg-secondary); }
.form-house-dropdown__item--selected { color: var(--primary-blue); font-weight: 600; }

.objects-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr); gap: 20px; align-items: start; }
.objects-map { min-height: 600px; border-radius: var(--radius-md); border: none; overflow: hidden; background: var(--bg-primary); box-shadow: var(--shadow-card); position: sticky; top: 80px; }
.objects-map iframe { width: 100%; height: 100%; border: 0; min-height: 600px; }
.objects-card-list { display: flex; flex-direction: column; gap: 10px; }
.object-card { overflow: hidden; border: none; border-radius: var(--radius-md); background: var(--bg-primary); box-shadow: var(--shadow-card); display: flex; flex-direction: row; align-items: stretch; transition: box-shadow 0.2s ease; }
.object-card:hover { box-shadow: var(--shadow-md); }
.object-card__thumb { width: 120px; flex-shrink: 0; object-fit: cover; display: block; }
.object-card__body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.object-card__body h3 { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.35; }
.object-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.object-card__meta span { padding: 3px 8px; border-radius: var(--radius-sm); background: var(--bg-secondary); font-size: 11px; font-weight: 500; color: var(--text-secondary); }
.objects-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.object-mini-card { min-height: 112px; padding: 18px; }
.object-mini-card strong { display: block; font-size: 15px; color: var(--text-primary); font-weight: 600; }
.object-mini-card span { display: block; margin-top: 6px; font-size: 13px; color: var(--text-secondary); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 20px; text-align: center; }
.stat-card__number { color: var(--text-primary); font-size: 28px; font-weight: 800; line-height: 1; }
.stat-card__label { margin-top: 8px; font-size: 14px; color: var(--text-secondary); }

main > section:last-child { padding-bottom: 70px; }

.footer {
  padding: 38px 0 16px;
  background: var(--bg-primary);
  box-shadow: 0 -1px 0 var(--border-subtle), 0 -2px 8px rgba(0,0,0,0.06);
  color: var(--text-secondary);
}
.footer .brand__meta strong { color: var(--text-primary); font-weight: 600; }
.footer .brand__meta span { color: var(--text-secondary); }
.footer-content {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding-bottom: 22px;
}
.footer-brand { flex-shrink: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.footer-nav a {
  padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13px;
  color: var(--text-secondary); font-weight: 500; transition: all 0.2s ease;
}
.footer-nav a:hover { color: var(--primary-blue); background: var(--primary-light); }
.footer-bottom__link:hover { color: var(--primary-blue); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 12px; color: var(--text-muted);
}

.hidden { display: none !important; }
body.modal-open { overflow: hidden; }

/* ─── Burger button ────────────────────────────────────────── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s;
}
.burger:hover { background: var(--bg-muted); }
.burger__line {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.burger.is-open .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open .burger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile overlay ───────────────────────────────────────── */
.mob-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 299;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0s linear 0.3s;
}
.mob-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s, visibility 0s linear 0s;
}

/* ─── Mobile menu drawer ───────────────────────────────────── */
.mob-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(370px, 100vw);
  height: 100svh;
  background: var(--bg-primary);
  z-index: 300;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.3s;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.mob-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0s;
}

.mob-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  gap: 12px;
}
.mob-menu__close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--bg-secondary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background 0.15s;
}
.mob-menu__close:hover { background: var(--bg-muted); }

.mob-menu__section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.mob-menu__section-label {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.mob-house-select { position: relative; }
.mob-house-select select {
  width: 100%; height: 42px;
  padding: 0 36px 0 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--text-primary);
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
}
.mob-house-select::after {
  content: '';
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23adb5bd' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
  pointer-events: none;
}

.mob-menu__nav {
  display: flex; flex-direction: column;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.mob-menu__nav a {
  display: block;
  padding: 12px 16px;
  font-size: 15px; font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.mob-menu__nav a:active,
.mob-menu__nav a:hover {
  background: var(--primary-light);
  border-left-color: var(--primary-blue);
  color: var(--primary-blue);
}
.mob-menu__nav-sep {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 16px;
}

.mob-menu__phone-row {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.mob-menu__phone {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 20px; font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s;
}
.mob-menu__phone svg { flex-shrink: 0; color: var(--primary-blue); }
.mob-menu__phone:hover { color: var(--primary-blue); }

.mob-menu__auth {
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  margin-top: auto;
}
.mob-menu__auth .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 12px 20px;
  font-size: 15px;
}

/* Демо-баннер переезжает на вторую строку, по центру страницы */
@media (max-width: 1248px) {
  .topline { position: relative; align-items: center; padding: 10px 0 54px; min-height: 0; }
  .topline__left { flex-direction: row; }
  .demo-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
}

@media (max-width: 850px) and (min-width: 761px) {
  .house-selector > label { display: none; }
}

/* На десктопе mob-элементы не рендерятся вообще — никаких артефактов в Safari */
@media (min-width: 761px) {
  .burger, .mob-overlay, .mob-menu { display: none !important; }
}

/* Таблицы → карточная раскладка начиная с 1250px */
@media (max-width: 1250px) {
  .events-table__header, .status-table__row--head { display: none; }

  /* Убираем ::before-точки и min-height */
  .events-table__row::before,
  .status-table__row:not(.status-table__row--head)::before { display: none; }
  .events-table__row,
  .status-table__row:not(.status-table__row--head) { min-height: 0; align-items: start; }

  /* events-table: строка 1 — дата + тип; строка 2 — название; строка 3 — описание */
  .events-table__row { grid-template-columns: 1fr auto; }
  .events-table__date  { grid-column: 1; grid-row: 1; padding: 14px 8px 4px 14px !important; }
  .events-table__type  { display: flex !important; grid-column: 2; grid-row: 1; padding: 12px 14px 4px 8px !important; align-items: flex-start; }
  .events-table__title { grid-column: 1 / 3; grid-row: 2; padding: 4px 14px !important; }
  .events-table__desc  { grid-column: 1 / 3; grid-row: 3; padding: 2px 14px 14px !important; }

  /* status-table: строка 1 — дата + статус; строка 2 — тема; строка 3 — исполнитель */
  .status-table__row:not(.status-table__row--head) { grid-template-columns: 1fr auto; }
  .tbl-num      { display: none; }
  .tbl-date     { grid-column: 1; grid-row: 1; padding: 14px 8px 4px 14px !important; }
  .tbl-status   { grid-column: 2; grid-row: 1; padding: 12px 14px 4px 8px !important; align-items: flex-start; justify-content: flex-end; }
  .tbl-desc     { grid-column: 1 / 3; grid-row: 2; padding: 4px 14px !important; }
  .tbl-who      { display: flex; grid-column: 1 / 3; grid-row: 3; padding: 2px 14px 14px !important; font-size: 12px; color: var(--text-secondary); }
  .tbl-house, .tbl-addr, .tbl-deadline { display: none; padding-top: 0 !important; }
}

@media (max-width: 1180px) {
  .hero-banner__inner, .work-summary, .request-layout, .documents-hub, .objects-toolbar, .objects-layout { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .quick-grid, .news-grid--three, .help-grid, .contacts-info, .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  /* Mobile header */
  .burger { display: flex; }
  .topline__right { display: none; }
  .nav { display: none; }
  .topline { min-height: 0; padding: 12px 0; flex-direction: column; }
  .topline__left { flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
  .topline__brand-row { width: 100%; justify-content: space-between; }
  .demo-badge__text, .demo-badge__sep { display: inline; }
  .demo-badge { position: static; transform: none; align-self: center; }


  .container { padding: 0 16px; }
  .section { padding: 30px 0; }
  .house-selector { width: 100%; flex-direction: column; align-items: stretch; }
  .house-selector select { width: 100%; }
  .hero-banner { padding-top: 14px; }
  .hero-banner__content { padding: 22px; }
  .hero-highlights, .quick-grid, .news-grid--three, .help-grid, .contacts-info, .work-summary__stats, .objects-mini-grid, .form-row, .stats-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 280px; }
  .quick-section { margin-top: -20px; }
  .section-heading--split, .resident-callout, .footer-content, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .document-row, .document-item { grid-template-columns: 1fr; }
  .documents-search { flex-direction: column; }
  .file-upload__hint { margin-left: 0; }
  .hero__actions .btn, .request-form__actions .btn, .resident-callout__actions .btn { width: 100%; }

  /* Скрываем вводные тексты в секции заявок, кроме chatbot-panel */
  .request-info { padding: 0; }
  .chatbot-panel { margin-top: 0; }

  .request-info h3:not(.chatbot-panel__title),
  .request-info > p { display: none; }

  /* Кнопки */
  .btn { height: 50px; }

  /* Чат-бот */
  .chatbot-panel__header { display: none; }

  /* Чат-бот */
  .chatbot-item { border: none; padding: 0; background: none; }
  .chatbot-qr { display: none; }

  /* doc-table: name и meta друг под другом */
  .doc-table__row { grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding-left: 16px; gap: 6px; }
  .doc-table__row::before { display: none; }
  .doc-table__name { grid-column: 1; grid-row: 1; }
  .doc-table__meta { grid-column: 1; grid-row: 2; }
  .doc-table__icon { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}

/* ≤450px — основная точка перестроения в мобилку */
@media (max-width: 450px) {
  /* Демо-баннер */
  .demo-badge__tag { display: none; }
  .demo-badge__text, .demo-badge__sep, .demo-badge__cta { font-size: 13px; }
  .demo-badge__text { padding-left: 12px; }

  /* Hero */
  .hero-banner__content { padding: 0; }
  .hero-highlights { display: none; }
  .hero-visual { aspect-ratio: 4 / 3; min-height: unset; max-height: unset; margin-top: 20px; }

  /* ── Таблицы — компактные отступы на узком экране ──────── */
  .events-table__date  { padding: 16px 6px 3px 14px !important; }
  .events-table__type  { padding: 14px 14px 3px 6px !important; }
  .events-table__title { padding: 2px 14px 3px !important; }
  .events-table__desc  { padding: 0 14px 10px !important; font-size: 12px; }
  .tbl-date     { padding: 16px 6px 3px 14px !important; }
  .tbl-status   { padding: 14px 14px 3px 6px !important; }
  .tbl-desc     { padding: 2px 14px 2px !important; }
  .tbl-who      { padding: 0 14px 10px !important; }
  .tbl-house, .tbl-addr, .tbl-deadline, .tbl-num { display: none; }


  /* Новости — скрываем тег категории */
  .news-card__tag { display: none; }

  /* ── Подвал ─────────────────────────────────────────────── */

  /* Лого на всю ширину, затем nav + кнопка рядом */
  .footer-content {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-brand { width: 100%; }
  .footer-nav {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
  }
  .footer-nav a {
    padding: 4px 0;
    border-radius: 0;
  }
  .footer-nav a:hover { background: none; color: var(--text-secondary); }
  .footer-emergency { flex-shrink: 0; align-self: flex-start; }

  /* Footer-bottom — плотнее */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 8px;
  }
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }

/* House informer */
.house-informer {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 200;
  width: 300px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  padding: 18px;
  display: flex;
  gap: 14px;
  animation: informer-in 0.2s ease;
}
.house-informer::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 28px;
  width: 12px; height: 12px;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
  transform: rotate(45deg);
}
.house-informer.hidden { display: none; }
@keyframes informer-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.house-informer__badge {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--primary-blue);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 700;
}
.house-informer__body strong {
  display: block; font-size: 14px; font-weight: 700; color: var(--text-primary);
}
.house-informer__body p {
  margin-top: 4px; font-size: 12px; color: var(--text-secondary); line-height: 1.45;
}
.house-informer__actions {
  display: flex; gap: 8px; margin-top: 12px;
}
.house-informer__btn {
  flex: 1; height: 32px; border: none; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.house-informer__btn--primary {
  background: var(--primary-blue); color: #fff;
}
.house-informer__btn--primary:hover { background: var(--primary-dark); }
.house-informer__btn--ghost {
  background: var(--bg-muted); color: var(--text-secondary);
}
.house-informer__btn--ghost:hover { background: var(--border-light); }

/* Demo modal */
.promo-overlay {
  position: fixed; inset: 0;
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}
.promo-overlay[aria-hidden="false"] {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.promo-overlay__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 18, 30, 0.45);
}
.promo-card {
  position: relative;
  width: min(480px, 100%);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  padding: 36px 32px 32px;
}
.promo-card__close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border: none; border-radius: var(--radius-sm);
  background: var(--bg-muted); color: var(--text-secondary);
  display: grid; place-items: center; cursor: pointer;
  transition: background 0.15s;
}
.promo-card__close:hover { background: var(--border-light); color: var(--text-primary); }
.promo-card h3 {
  margin-top: 12px; font-size: 1.5rem; line-height: 1.2; margin-bottom: 12px;
}
.promo-card p { margin-top: 0px; font-size: 14px; line-height: 1.6; }
.promo-form {
  display: grid; gap: 14px; margin-top: 24px;
}
.promo-form__field {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
}
.promo-form__field input {
  height: 40px; padding: 0 12px;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  background: var(--bg-primary); font-size: 14px; color: var(--text-primary);
  transition: border-color 0.15s;
}
.promo-form__field input:focus {
  outline: 2px solid var(--primary-light); border-color: var(--primary-blue);
}
.promo-form__submit { width: 100%; height: 44px; font-size: 14px; font-weight: 600; }

/* ── Request success modal ──────────────────────────────────────────────── */
.request-success-overlay {
  position: fixed; inset: 0;
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1001;
}
.request-success-overlay[aria-hidden="false"] {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.request-success-card {
  width: min(480px, 100%);
}
.request-success-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #fff;
  margin-bottom: 16px;
}
.request-success-card .eyebrow {
  margin-bottom: 8px;
}
.request-success-card h3 {
  margin-top: 0;
}
.request-success-card__chatbots {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.request-success-card__chatbots-title {
  margin-top: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.request-success-card__chatbots-desc {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.request-success-card__chatbots-links {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.btn--chatbot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn--chatbot:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: var(--primary-light);
}
.request-success-card__btn {
  width: 100%;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
}

/* News pagination */
.news-pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 32px;
}
.news-pagination__btn {
  min-width: 36px; height: 36px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  background: var(--bg-primary); color: var(--text-primary);
  font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: inherit; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.news-pagination__btn:hover:not(:disabled) { background: var(--bg-secondary); border-color: var(--primary-blue); color: var(--primary-blue); }
.news-pagination__btn--active { background: var(--primary-blue); border-color: var(--primary-blue); color: #fff; }
.news-pagination__btn:disabled { opacity: 0.35; cursor: default; }
.news-pagination__dots { padding: 0 4px; color: var(--text-muted); font-size: 14px; }

/* News detail modal */
.news-modal {
  position: fixed; inset: 0;
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 1000;
}
.news-modal[aria-hidden="false"] {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.news-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 18, 30, 0.5);
}
.news-modal__card {
  position: relative;
  width: min(680px, 100%);
  max-height: min(82vh, 760px);
  display: flex; flex-direction: column;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  overflow: hidden;
}
.news-modal__head {
  flex-shrink: 0;
  padding: 28px 32px 0;
}
.news-modal__meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.news-modal__title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--text-primary); line-height: 1.2;
  margin: 0;
}
.news-modal__divider {
  height: 1px; background: var(--border-subtle); margin: 20px 0 0;
}
.news-modal__body {
  flex: 1; overflow-y: auto;
  padding: 20px 32px 32px;
  scrollbar-width: thin; scrollbar-color: var(--border-light) transparent;
}
.news-modal__body p {
  color: var(--text-secondary); line-height: 1.7; margin-top: 16px; font-size: 15px;
}
.news-modal__body p:first-child { margin-top: 0; }
.news-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border: none; border-radius: var(--radius-sm);
  background: var(--bg-muted); color: var(--text-secondary);
  display: grid; place-items: center; cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.news-modal__close:hover { background: var(--border-light); color: var(--text-primary); }

.news-card__link--btn {
  background: none; border: none; padding: 0; cursor: pointer; text-align: left;
}

.news-modal__footer {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.news-modal__nav-btn {
  background: none; border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 7px 16px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.news-modal__nav-btn:hover:not(:disabled) {
  background: var(--bg-primary); border-color: var(--primary-blue); color: var(--primary-blue);
}
.news-modal__nav-btn:disabled { opacity: 0.35; cursor: default; }
.news-modal__counter { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* Objects grid (photo cards) */
.objects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.obj-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-primary); box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.obj-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.obj-card__photo { aspect-ratio: 3 / 2; overflow: hidden; flex-shrink: 0; }
.obj-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.obj-card:hover .obj-card__photo img { transform: scale(1.04); }
.obj-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.obj-card__address { font-size: 1rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; letter-spacing: -0.02em; }
.obj-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.obj-card__meta span {
  padding: 4px 10px; border-radius: var(--radius-sm);
  background: var(--bg-secondary); font-size: 12px; font-weight: 500; color: var(--text-secondary);
}

/* Map section */
.objects-map-section { margin-top: 32px; }
.objects-map-section .objects-map {
  height: 360px; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.objects-map-section .objects-map iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 1180px) {
  .objects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .objects-grid { grid-template-columns: 1fr; }
}

/* Objects: horizontal cards + sticky map */
.obj-layout {
  display: grid;
  grid-template-columns: 1fr 600px;
  gap: 24px;
  align-items: start;
}
.obj-list { display: flex; flex-direction: column; gap: 10px; }

.obj-hcard {
  display: flex; flex-direction: row;
  background: var(--bg-primary); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: box-shadow 0.2s;
}
.obj-hcard:hover { box-shadow: var(--shadow-md); }
.obj-hcard__photo { width: 120px; flex-shrink: 0; }
.obj-hcard__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.obj-hcard__body {
  flex: 1; padding: 16px 18px;
  display: flex; flex-direction: row; align-items: stretch; gap: 16px;
  min-width: 0;
}
.obj-hcard__main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.obj-hcard__address { font-size: 1.0rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; padding-left: 6px;}
.obj-hcard__side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; padding: 2px 0; gap: 10px; }
.obj-hcard__meta { display: flex; flex-direction: row; gap: 5px; flex-wrap: nowrap; }
.obj-hcard__meta span { font-size: 12px; font-weight: 600; color: var(--text-secondary); background: var(--bg-secondary); border-radius: 6px; padding: 3px 10px; white-space: nowrap; }
.obj-hcard__actions { display: flex; align-items: center; gap: 4px; }
.obj-hcard__btn {
  font-size: 12px; font-weight: 500; background: none; border: none;
  cursor: pointer; padding: 4px 10px; border-radius: var(--radius-sm);
  font-family: inherit; transition: background 0.15s, color 0.15s;
}
.obj-hcard__btn--map { color: var(--primary-blue); }
.obj-hcard__btn--map:hover { background: var(--primary-light); }
.obj-hcard__btn--more { color: var(--text-secondary); background: var(--bg-secondary); }
.obj-hcard__btn--more:hover { background: var(--bg-muted); color: var(--text-primary); }

.obj-map-col { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 16px; }
.obj-map-frame {
  height: 580px; border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-card); flex-shrink: 0;
  position: relative;
}
.obj-map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); }
.obj-map-pin {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none; z-index: 10;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
}

.obj-stats .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.obj-stats .stat-card { padding: 16px 18px; }
.obj-stats .stat-card__number { font-size: 22px; }

@media (max-width: 1200px) {
  .obj-layout { grid-template-columns: 1fr; }
  .obj-map-col { position: static; }
  .obj-map-frame { height: 360px; }
  .obj-stats .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .obj-hcard { border-radius: var(--radius-sm); }
  .obj-hcard__body { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 8px 0; padding: 10px 16px; }
  .obj-hcard__main,
  .obj-hcard__side { display: contents; }
  .obj-hcard__address { order: 1; width: 100%; }
  .obj-hcard__meta   { order: 2; width: 100%; margin-bottom: 4px; }
  .obj-hcard__actions { order: 3; }
  .obj-hcard__btn--map { order: 3; }
}
@media (max-width: 600px) {
  .obj-hcard__photo { width: 90px; }
}

/* Demo hint styles — перенесены в demo-hints.css */
