/**
 * Основные стили темы «УК Высота-Комфорт» (г. Уфа)
 * В соответствии с ГОСТ Р 52872-2019, ПП РФ № 731, ПП РФ № 416, ФЗ-152
 */

:root {
  --primary: #0f2742;
  --primary-dark: #071524;
  --primary-light: #1e4570;
  --accent-red: #c92a2a;
  --accent-red-hover: #a51d24;
  --accent-red-bg: #fef2f2;
  --accent-blue: #1d4ed8;
  --accent-blue-hover: #1e40af;
  --accent-blue-light: #eff6ff;
  --accent-green: #15803d;
  --accent-green-light: #f0fdf4;
  --text-main: #0f172a;       /* Максимально четкий и контрастный текст (Slate-900) */
  --text-muted: #334155;      /* Заметный и контрастный приглушенный текст (Slate-700) */
  --text-light: #475569;      /* Читаемый вспомогательный текст вместо блекло-серого (Slate-600) */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --border-color: #cbd5e1;    /* Четкие контрастные границы (Slate-300) */
  --border-light: #e2e8f0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
  --container-width: 1200px;
  --transition: all 0.2s ease-in-out;
}

/* ==========================================================================
   ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ (ГОСТ Р 52872-2019)
   Максимальный контраст (21:1), черным по белому, четкие границы и видимый текст
   ========================================================================== */
body.a11y-mode {
  font-size: 20px !important;
  line-height: 1.7 !important;
  letter-spacing: 0.04em !important;
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* Все текстовые элементы принудительно черные без теней */
body.a11y-mode h1,
body.a11y-mode h2,
body.a11y-mode h3,
body.a11y-mode h4,
body.a11y-mode h5,
body.a11y-mode h6,
body.a11y-mode p,
body.a11y-mode span,
body.a11y-mode strong,
body.a11y-mode b,
body.a11y-mode em,
body.a11y-mode li,
body.a11y-mode dt,
body.a11y-mode dd,
body.a11y-mode td,
body.a11y-mode th,
body.a11y-mode label,
body.a11y-mode small,
body.a11y-mode div {
  color: #000000 !important;
  text-shadow: none !important;
}

/* Ссылки общего назначения - четкие, подчеркнутые */
body.a11y-mode a {
  color: #0000cc !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
}

body.a11y-mode a:hover,
body.a11y-mode a:focus {
  background-color: #000000 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Убираем тени, сглаживания и размытия */
body.a11y-mode * {
  box-shadow: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 1. ШАПКА: ЭКСТРЕННАЯ ПАНЕЛЬ (АДС 24/7) */
body.a11y-mode .emergency-topbar {
  background: #ffffff !important;
  color: #000000 !important;
  border-bottom: 3px solid #000000 !important;
  padding: 8px 0 !important;
}

body.a11y-mode .emergency-topbar * {
  color: #000000 !important;
}

body.a11y-mode .emergency-badge {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
}

body.a11y-mode .pulse-indicator {
  background-color: #000000 !important;
  box-shadow: none !important;
  animation: none !important;
}

body.a11y-mode .emergency-phone-link {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  padding: 6px 14px !important;
}

body.a11y-mode .emergency-phone-link svg {
  stroke: #ffffff !important;
}

body.a11y-mode .emergency-phone-link span {
  color: #ffffff !important;
}

body.a11y-mode .emergency-phone-link:hover {
  background: #333333 !important;
  color: #ffffff !important;
}

body.a11y-mode .a11y-toggle-btn {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  padding: 6px 14px !important;
}

body.a11y-mode .a11y-toggle-btn span {
  color: #ffffff !important;
}

body.a11y-mode .a11y-toggle-btn:hover {
  background: #333333 !important;
  color: #ffffff !important;
}

/* 2. ШАПКА: ОСНОВНАЯ ЧАСТЬ */
body.a11y-mode .site-header {
  background: #ffffff !important;
  border-bottom: 2px solid #000000 !important;
}

body.a11y-mode .brand-logo-icon {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
}

body.a11y-mode .brand-logo-icon svg {
  stroke: #ffffff !important;
}

body.a11y-mode .site-title,
body.a11y-mode .brand-info h1 {
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 1.35rem !important;
}

body.a11y-mode .brand-info span {
  color: #000000 !important;
  font-weight: 600 !important;
}

body.a11y-mode .header-contact-item svg {
  stroke: #000000 !important;
  color: #000000 !important;
}

body.a11y-mode .header-contact-text strong a,
body.a11y-mode .header-contact-text strong {
  color: #000000 !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
}

body.a11y-mode .header-contact-text span {
  color: #000000 !important;
  font-weight: 600 !important;
}

/* 3. НАВИГАЦИОННАЯ ПАНЕЛЬ */
body.a11y-mode .nav-bar {
  background: #ffffff !important;
  border-top: 2px solid #000000 !important;
  border-bottom: 3px solid #000000 !important;
}

body.a11y-mode .nav-item a {
  color: #000000 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  padding: 12px 16px !important;
  border-bottom: 3px solid transparent !important;
}

body.a11y-mode .nav-item a:hover,
body.a11y-mode .nav-item a:focus {
  background: #000000 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* 4. ГЛАВНЫЙ ЭКРАН (HERO) */
body.a11y-mode .hero {
  background: #ffffff !important;
  color: #000000 !important;
  border-bottom: 3px solid #000000 !important;
}

body.a11y-mode .hero::before {
  display: none !important;
}

body.a11y-mode .hero-tag {
  background: #ffffff !important;
  border: 2px solid #000000 !important;
  color: #000000 !important;
  font-weight: 700 !important;
}

body.a11y-mode .hero-content h1,
body.a11y-mode .hero-content h2,
body.a11y-mode .hero-content p {
  color: #000000 !important;
  text-shadow: none !important;
}

body.a11y-mode .hero-card {
  background: #ffffff !important;
  border: 3px solid #000000 !important;
}

body.a11y-mode .hero-card-title {
  color: #000000 !important;
  font-weight: 800 !important;
}

body.a11y-mode .hero-quick-item {
  background: #ffffff !important;
  border: 2px solid #000000 !important;
}

body.a11y-mode .hero-quick-item * {
  color: #000000 !important;
}

/* 5. КАРТОЧКИ И КОНТЕЙНЕРЫ */
body.a11y-mode .card,
body.a11y-mode .house-card,
body.a11y-mode .news-card,
body.a11y-mode .service-card,
body.a11y-mode .schedule-card,
body.a11y-mode .docs-container {
  background: #ffffff !important;
  border: 2px solid #000000 !important;
  color: #000000 !important;
}

body.a11y-mode .section-title {
  color: #000000 !important;
  font-weight: 800 !important;
}

body.a11y-mode .section-subtitle {
  color: #000000 !important;
  font-weight: 600 !important;
}

body.a11y-mode .house-meta-item,
body.a11y-mode .schedule-day-name,
body.a11y-mode .schedule-hours-time,
body.a11y-mode .schedule-hours-desc {
  color: #000000 !important;
  font-weight: 600 !important;
}

body.a11y-mode .house-num-badge,
body.a11y-mode .house-status-badge {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
  font-weight: 700 !important;
}

body.a11y-mode .stat-box {
  background: #ffffff !important;
  border: 1px solid #000000 !important;
}

body.a11y-mode .news-date,
body.a11y-mode .news-excerpt {
  color: #000000 !important;
}

body.a11y-mode .news-type-badge {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #000000 !important;
  font-weight: 800 !important;
}

/* 6. ТАБЛИЦА РАСКРЫТИЯ ИНФОРМАЦИИ (ДОКУМЕНТЫ) */
body.a11y-mode .doc-tab-btn {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  font-weight: 700 !important;
}

body.a11y-mode .doc-tab-btn.active,
body.a11y-mode .doc-tab-btn:hover {
  background: #000000 !important;
  color: #ffffff !important;
}

body.a11y-mode .docs-table {
  border: 2px solid #000000 !important;
}

body.a11y-mode .docs-table th {
  background: #f1f5f9 !important;
  color: #000000 !important;
  border: 1px solid #000000 !important;
  font-weight: 800 !important;
}

body.a11y-mode .docs-table td {
  border: 1px solid #000000 !important;
  color: #000000 !important;
  font-weight: 600 !important;
}

body.a11y-mode .btn-doc-download {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.a11y-mode .btn-doc-download:hover {
  background: #333333 !important;
  color: #ffffff !important;
}

/* 7. ФОРМА ОБРАТНОЙ СВЯЗИ И ИНФО-КАРТОЧКА */
body.a11y-mode .feedback-info-card {
  background: #ffffff !important;
  border: 3px solid #000000 !important;
  color: #000000 !important;
}

body.a11y-mode .feedback-info-card h3 {
  color: #000000 !important;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  border-bottom: 2px solid #000000 !important;
  padding-bottom: 8px !important;
  margin-bottom: 16px !important;
}

body.a11y-mode .feedback-info-card p {
  color: #000000 !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
}

body.a11y-mode .feedback-point {
  color: #000000 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

body.a11y-mode .feedback-point svg {
  color: #000000 !important;
  stroke: #000000 !important;
}

body.a11y-mode .feedback-point span,
body.a11y-mode .feedback-point strong {
  color: #000000 !important;
}

body.a11y-mode .feedback-form-card {
  background: #ffffff !important;
  border: 3px solid #000000 !important;
  color: #000000 !important;
}

body.a11y-mode .form-label {
  color: #000000 !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
}

body.a11y-mode .form-label .required-star {
  color: #cc0000 !important;
  font-weight: 800 !important;
}

body.a11y-mode .form-control {
  background-color: #ffffff !important;
  border: 2px solid #000000 !important;
  color: #000000 !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
}

body.a11y-mode .form-control::placeholder {
  color: #444444 !important;
  opacity: 1 !important;
}

body.a11y-mode .form-control:focus {
  outline: 3px solid #000000 !important;
  border-color: #000000 !important;
}

body.a11y-mode select.form-control option {
  background: #ffffff !important;
  color: #000000 !important;
}

body.a11y-mode .checkbox-container {
  color: #000000 !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
}

body.a11y-mode .checkbox-container a {
  color: #0000cc !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
}

body.a11y-mode .checkbox-container input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  accent-color: #000000 !important;
}

body.a11y-mode #submitBtn {
  background: #000000 !important;
  color: #ffffff !important;
  border: 3px solid #000000 !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

body.a11y-mode #submitBtn:hover {
  background: #333333 !important;
  color: #ffffff !important;
}

body.a11y-mode #submitBtn svg {
  stroke: #ffffff !important;
}

body.a11y-mode #submitBtn span {
  color: #ffffff !important;
}

/* 8. ПОДВАЛ (FOOTER) */
body.a11y-mode .site-footer {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-top: 4px solid #000000 !important;
  padding: 50px 0 25px !important;
}

body.a11y-mode .site-footer * {
  color: #000000 !important;
}

body.a11y-mode .footer-col h4,
body.a11y-mode .footer-col .footer-title {
  color: #000000 !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  border-bottom: 2px solid #000000 !important;
  padding-bottom: 8px !important;
  margin-bottom: 16px !important;
}

body.a11y-mode .footer-col h4::after,
body.a11y-mode .footer-col .footer-title::after {
  display: none !important;
}

body.a11y-mode .footer-col p {
  color: #000000 !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
  font-weight: 500 !important;
}

body.a11y-mode .footer-col strong,
body.a11y-mode .footer-contact-label {
  color: #000000 !important;
  font-weight: 800 !important;
}

body.a11y-mode .footer-links a,
body.a11y-mode .footer-col a,
body.a11y-mode .footer-bottom a {
  color: #0000cc !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}

body.a11y-mode .footer-links a:hover,
body.a11y-mode .footer-col a:hover,
body.a11y-mode .footer-bottom a:hover {
  background: #000000 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

body.a11y-mode .footer-ads-phone {
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
  text-decoration: underline !important;
}

body.a11y-mode .footer-office-phone {
  color: #000000 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

body.a11y-mode .footer-email-link {
  color: #0000cc !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

body.a11y-mode .footer-legal-note,
body.a11y-mode .footer-office-address {
  color: #000000 !important;
  font-weight: 600 !important;
}

body.a11y-mode .footer-bottom {
  border-top: 2px solid #000000 !important;
  color: #000000 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding-top: 20px !important;
}

/* 9. МОДАЛЬНЫЕ ОКНА И ОПОВЕЩЕНИЯ */
body.a11y-mode .uk-modal-container {
  background: #ffffff !important;
  border: 3px solid #000000 !important;
  color: #000000 !important;
}

body.a11y-mode .uk-modal-header {
  border-bottom: 2px solid #000000 !important;
}

body.a11y-mode .uk-modal-close {
  color: #000000 !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
}

body.a11y-mode .uk-modal-footer {
  border-top: 2px solid #000000 !important;
}

body.a11y-mode .btn {
  border: 2px solid #000000 !important;
  font-weight: 800 !important;
}

body.a11y-mode .btn-primary {
  background: #000000 !important;
  color: #ffffff !important;
}

body.a11y-mode .btn-primary * {
  color: #ffffff !important;
}

body.a11y-mode .btn-primary:hover {
  background: #333333 !important;
  color: #ffffff !important;
}

body.a11y-mode .urgent-alert-bar {
  background: #ffffff !important;
  color: #000000 !important;
  border-top: 3px solid #000000 !important;
  border-bottom: 3px solid #000000 !important;
}

body.a11y-mode .urgent-alert-bar * {
  color: #000000 !important;
}

body.a11y-mode .btn-urgent-read {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
}

/* Черно-белый контрастный режим (инвертированный) */
body.a11y-contrast-dark {
  background: #000000 !important;
  color: #ffffff !important;
}

body.a11y-contrast-dark * {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

body.a11y-contrast-dark a {
  color: #ffff00 !important;
}

/* ==========================================================================
   БАЗОВЫЙ СБРОС И СЕТКА
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-blue);
}

ul, ol {
  list-style: none;
}

img, svg {
  vertical-align: middle;
  display: inline-block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: #071524;
  position: relative;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent-blue);
  border-radius: 2px;
  margin-top: 8px;
}

.section-subtitle {
  color: #334155;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 2.2rem;
  line-height: 1.55;
}

.section-padding {
  padding: 55px 0;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  color: #ffffff;
}

.btn-accent {
  background-color: var(--accent-red);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--accent-red-hover);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--bg-alt);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   1. ТОПБАР ЭКСТРЕННОЙ АВАРИЙНОЙ СЛУЖБЫ (АДС 24/7)
   ========================================================================== */
.emergency-topbar {
  background-color: var(--accent-red);
  color: #ffffff;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.emergency-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.emergency-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ffffff;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse-white 2s infinite;
}

@keyframes pulse-white {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.emergency-badge {
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.emergency-right-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.emergency-phone-link {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.emergency-phone-link:hover {
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

/* Кнопка версии для слабовидящих */
.a11y-toggle-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: var(--transition);
}

.a11y-toggle-btn:hover {
  background: #ffffff;
  color: var(--accent-red);
}

/* Срочное оповещение */
.urgent-alert-bar {
  background: linear-gradient(90deg, #991b1b, #dc2626);
  color: #ffffff;
  padding: 10px 0;
  font-size: 0.92rem;
  border-bottom: 2px solid #7f1d1d;
}

.btn-urgent-read {
  background: #ffffff;
  color: #991b1b;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

/* ==========================================================================
   2. ШАПКА САЙТА И НАВИГАЦИЯ
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-info h1,
.brand-info .site-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #071524;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.brand-info span {
  font-size: 0.825rem;
  color: #334155;
  font-weight: 500;
  display: block;
  margin-top: 3px;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-contact-item svg {
  color: var(--accent-blue);
  flex-shrink: 0;
}

.header-contact-text strong {
  display: block;
  font-size: 0.975rem;
  font-weight: 700;
  color: #071524;
}

.header-contact-text span {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 500;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--primary);
}

/* Навигационная панель */
.nav-bar {
  background-color: var(--primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-item a {
  display: block;
  padding: 13px 18px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}

.nav-item a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.14);
  border-bottom-color: #93c5fd;
}

/* ==========================================================================
   3. ГЛАВНЫЙ ЭКРАН (HERO)
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 65%, #18385c 100%);
  color: #ffffff;
  padding: 60px 0 65px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}

.hero-content h1,
.hero-content h2 {
  color: #ffffff;
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-content p {
  color: #ffffff;
  font-size: 1.12rem;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 28px;
  max-width: 620px;
  opacity: 0.96;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.hero-quick-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-quick-item {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.hero-quick-label {
  font-size: 0.775rem;
  color: #334155;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-quick-value {
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 3px;
}

.hero-quick-value a {
  color: var(--accent-red);
}

/* ==========================================================================
   4. О КОМПАНИИ, РЕКВИЗИТЫ И ЛИЦЕНЗИЯ
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 28px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th {
  width: 38%;
  text-align: left;
  padding: 10px 0;
  color: #334155;
  font-weight: 600;
  font-size: 0.925rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.info-table td {
  padding: 10px 0;
  color: #0f172a;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-light);
}

.license-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-left: 4px solid var(--accent-blue);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.license-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: #071524;
  margin-bottom: 12px;
}

.license-details {
  font-size: 0.9rem;
  color: #1e293b;
  line-height: 1.65;
  margin-bottom: 20px;
}

.license-issuer {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  font-size: 0.85rem;
  color: #334155;
  font-weight: 500;
}

/* Банковские реквизиты */
.bank-requisites-box {
  margin-top: 20px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.9rem;
  color: #0f172a;
}

.bank-requisites-box h4 {
  font-size: 0.975rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #071524;
}

/* ГИС ЖКХ плашка */
.gis-badge-card {
  margin-top: 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gis-badge-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gis-badge-title {
  font-weight: 700;
  color: #1e40af;
  font-size: 0.92rem;
}

.gis-badge-sub {
  font-size: 0.8rem;
  color: #3b82f6;
}

/* ==========================================================================
   5. ГРАФИК РАБОТЫ И АДРЕСА
   ========================================================================== */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.schedule-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.schedule-card-header {
  background-color: var(--primary);
  color: #ffffff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.schedule-card-header h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin: 0;
}

.schedule-card-header.reception {
  background-color: #1e3a8a;
}

.schedule-card-body {
  padding: 24px;
}

.address-box {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.address-box svg {
  color: var(--accent-blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.address-title {
  font-size: 0.8rem;
  color: #334155;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.address-text {
  font-size: 0.975rem;
  color: #0f172a;
  font-weight: 700;
  margin-top: 3px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.hours-table td {
  padding: 9px 0;
  font-size: 0.925rem;
  color: #0f172a;
  font-weight: 500;
  border-bottom: 1px dashed var(--border-light);
}

.day-badge-work {
  color: var(--accent-green);
  font-weight: 700;
  text-align: right;
}

.day-badge-off {
  color: #475569;
  font-weight: 600;
  text-align: right;
}

.lunch-note {
  font-size: 0.875rem;
  color: #0f172a;
  font-weight: 500;
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-blue);
}

/* ==========================================================================
   6. ЖИЛОЙ ФОНД (КАРТОЧКИ ДОМОВ С ФОТОГРАФИЯМИ)
   ========================================================================== */
.houses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.house-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.house-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.house-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-alt);
}

.house-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.house-card:hover .house-image-wrap img {
  transform: scale(1.03);
}

.house-num-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(16, 42, 69, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
}

.house-status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(21, 128, 61, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  font-weight: 700;
}

.house-body {
  padding: 22px;
}

.house-address {
  font-size: 1.25rem;
  font-weight: 800;
  color: #071524;
  margin-bottom: 16px;
  line-height: 1.3;
}

.house-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.stat-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.stat-label {
  font-size: 0.75rem;
  color: #334155;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.house-details-list {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.house-details-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: #334155;
}

.house-details-item span:first-child {
  color: #334155;
  font-weight: 500;
}

.house-details-item span:last-child {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

/* ==========================================================================
   7. НОВОСТИ И ОБЪЯВЛЕНИЯ ДЛЯ ЖИТЕЛЕЙ
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.news-type-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-urgent { background: #fee2e2; color: #b91c1c; }
.badge-works { background: #fef3c7; color: #b45309; }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-report { background: #f3e8ff; color: #7e22ce; }
.badge-news { background: #dcfce7; color: #15803d; }

.news-date {
  font-size: 0.775rem;
  color: var(--text-light);
}

.news-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary);
  line-height: 1.35;
}

.news-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.news-read-more {
  background: transparent;
  border: none;
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.news-read-more:hover {
  color: var(--accent-blue-hover);
  text-decoration: underline;
}

/* ==========================================================================
   8. РАСКРЫТИЕ ИНФОРМАЦИИ (ПП РФ № 731) И ТАБЛИЦА
   ========================================================================== */
.docs-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.docs-notice {
  background: #eff6ff;
  border-left: 4px solid var(--accent-blue);
  padding: 16px 20px;
  font-size: 0.95rem;
  color: #071524;
  font-weight: 500;
  line-height: 1.6;
  margin: 20px 24px 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-filter-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 24px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-light);
}

.doc-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.doc-tab-btn:hover {
  color: #1d4ed8;
}

.doc-tab-btn.active {
  color: #1d4ed8;
  font-weight: 700;
  border-bottom-color: #1d4ed8;
}

.docs-table-wrapper {
  padding: 10px 24px 24px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}

.docs-table th {
  background: #e2e8f0;
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 2px solid #cbd5e1;
}

.docs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.docs-table tr:hover td {
  background-color: var(--bg-page);
}

.doc-name-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.doc-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: #fee2e2;
  color: #b91c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.4;
  display: block;
}

.doc-desc {
  font-size: 0.825rem;
  color: #334155;
  font-weight: 500;
  margin-top: 3px;
}

.doc-format-badge {
  background: #e2e8f0;
  color: #0f172a;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.775rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
}

/* ==========================================================================
   9. ФОРМА ОБРАТНОЙ СВЯЗИ (ФЗ-152)
   ========================================================================== */
.feedback-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: start;
}

.feedback-info-card {
  background: var(--primary);
  color: #ffffff;
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.feedback-info-card h3 {
  color: #ffffff;
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.feedback-info-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.feedback-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.feedback-point svg {
  color: #38bdf8;
  flex-shrink: 0;
  margin-top: 3px;
}

.feedback-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.form-label .required-star {
  color: var(--accent-red);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: #0f172a;
  font-family: inherit;
  transition: var(--transition);
}

.form-control::placeholder {
  color: #64748b;
  opacity: 1;
  font-weight: 400;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

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

/* Honeypot скрытое поле */
.uk-hp-field {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Чекбокс 152-ФЗ */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 24px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #0f172a;
  font-weight: 500;
  line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.checkbox-container a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: underline;
}

.checkbox-container a:hover {
  color: var(--accent-blue-hover);
}

/* Оповещения формы */
.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: none;
  font-size: 0.925rem;
  line-height: 1.5;
}

.form-alert.success {
  background-color: var(--accent-green-light);
  border: 1px solid #bbf7d0;
  color: var(--accent-green);
}

.form-alert.error {
  background-color: var(--accent-red-bg);
  border: 1px solid #fecaca;
  color: #991b1b;
}

.appeal-success-box {
  background: var(--accent-green-light);
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}

.appeal-reg-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-green);
  margin: 8px 0;
}

/* ==========================================================================
   10. ПОДВАЛ И ЮРИДИЧЕСКИЙ БЛОК
   ========================================================================== */
.site-footer {
  background-color: #071524;
  color: #f1f5f9;
  padding: 60px 0 25px;
  border-top: 3px solid var(--accent-blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4,
.footer-col .footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
  letter-spacing: -0.01em;
}

.footer-col h4::after,
.footer-col .footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-blue);
}

.footer-col p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.footer-legal-note {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-gis-wrap {
  margin-top: 14px;
}

.footer-gis-link {
  color: #60a5fa;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-gis-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.footer-contact-label {
  color: #ffffff;
  display: inline-block;
  margin-bottom: 2px;
}

.footer-ads-phone {
  color: #f87171;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.footer-ads-phone:hover {
  color: #fca5a5;
  text-decoration: underline;
}

.footer-office-phone {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.footer-office-phone:hover {
  text-decoration: underline;
}

.footer-email-link {
  color: #93c5fd;
  text-decoration: none;
}

.footer-email-link:hover {
  text-decoration: underline;
}

.footer-office-address {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #f1f5f9;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: #93c5fd;
}

/* ==========================================================================
   11. МОДАЛЬНЫЕ ОКНА И КУКИ-БАННЕР
   ========================================================================== */
.uk-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.uk-modal.active {
  display: flex;
}

.uk-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
}

.uk-modal-container {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-md);
  width: 650px;
  max-width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.uk-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uk-modal-body {
  padding: 24px;
  overflow-y: auto;
  line-height: 1.7;
}

.uk-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  background: var(--bg-page);
}

.uk-modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
}

/* Баннер согласия с Cookie */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 580px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 18px 22px;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.45;
}

.cookie-text a {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* ==========================================================================
   12. АДАПТИВНОСТЬ (MOBILE-FIRST) И КАРТОЧНЫЙ ВИД ТАБЛИЦЫ
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .feedback-wrapper,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-contacts {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-item a {
    padding: 10px 16px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .nav-item a:hover {
    border-bottom: none;
    border-left-color: #60a5fa;
  }
}

@media (max-width: 768px) {
  .emergency-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .emergency-right-group {
    width: 100%;
    justify-content: space-between;
  }

  .emergency-phone-link {
    width: 100%;
    justify-content: center;
    font-size: 1.15rem;
  }

  .schedule-grid,
  .houses-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-content h2 {
    font-size: 1.75rem;
  }

  .info-table th {
    width: 45%;
  }
}

/* Трансформация таблицы документов в карточный вид на мобильных (< 680px) */
@media (max-width: 680px) {
  .docs-table thead {
    display: none;
  }

  .docs-table,
  .docs-table tbody,
  .docs-table tr,
  .docs-table td {
    display: block;
    width: 100%;
  }

  .docs-table tr {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    padding: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  .docs-table td {
    padding: 6px 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .docs-table td:first-child {
    display: block;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 8px;
  }

  .docs-table td:last-child {
    padding-top: 10px;
    border-top: 1px dashed var(--border-light);
    margin-top: 6px;
    justify-content: flex-end;
  }

  .docs-table td:last-child .btn {
    width: 100%;
  }

  .docs-table td::before {
    content: attr(data-label);
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--text-light);
  }

  .docs-table td:first-child::before,
  .docs-table td:last-child::before {
    display: none;
  }
}
