/* ============================================================
   МУП «Энергия» — style.css
   Шрифты: Russo One (заголовки) + PT Sans (текст) — бесплатны
   для коммерческих проектов через Google Fonts
   ============================================================ */

/* ── Переменные ── */
:root {
  --brand:        #D4500A;
  --brand-dark:   #A33D08;
  --brand-light:  #F07A35;
  --gold:         #F0A80A;
  --navy:         #0C1A2E;
  --navy-mid:     #162840;
  --navy-light:   #1E3554;
  --warm-bg:      #FBF8F4;
  --section-alt:  #F2EDE6;
  --white:        #FFFFFF;
  --text:         #1A2030;
  --text-muted:   #586070;
  --border:       #E5DDD2;
  --success:      #2A9D4E;
  --pending:      #E8A020;

  --font-display: 'Russo One', 'Arial Black', sans-serif;
  --font-body:    'PT Sans', 'Arial', sans-serif;

  --max-w:   1200px;
  --r:       10px;
  --r-lg:    18px;
  --shadow:  0 4px 24px rgba(12, 26, 46, 0.10);
  --shadow-lg: 0 10px 50px rgba(12, 26, 46, 0.18);
  --t:       0.3s ease;
}

/* ── Сброс и база ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Запрещаем горизонтальный скролл глобально */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--warm-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Обязательно — без этого iframe/элементы могут вылезти за край */
  overflow-x: hidden;
  min-width: 320px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Типографика ── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-title--light { color: var(--white); }

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ── Кнопки ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,80,10,0.35); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-2px); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline-dark:hover { border-color: var(--brand); color: var(--brand); }

.btn-sm { padding: 9px 18px; font-size: 0.875rem; }

/* ── Бейджи ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-ready   { background: #DCF5E7; color: var(--success); }
.badge-pending { background: #FEF3DC; color: var(--pending); }

/* ── Анимации появления ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════
   ШАПКА (HEADER)
   ════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-mid);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-text { color: var(--white); }
.logo-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.logo-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
}

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  border-radius: 6px;
  transition: all var(--t);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.header-emergency {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  border-radius: var(--r);
  padding: 8px 14px;
  color: var(--white);
  transition: background var(--t);
}
.header-emergency:hover { background: var(--brand-dark); }
.emergency-label { font-size: 0.65rem; opacity: 0.85; display: block; }
.emergency-number { font-family: var(--font-display); font-size: 0.95rem; }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  border: none;
  background: none;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t);
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Мобильное меню */
.mobile-menu {
  /* Скрыт на десктопе полностью */
  display: none;
  background: var(--navy-mid);
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease, visibility 0.45s;
  visibility: hidden;
}
.mobile-menu.open {
  max-height: 600px;
  padding: 12px 0;
  visibility: visible;
}
.mobile-menu a {
  display: block;
  padding: 12px 24px;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  transition: all var(--t);
}
.mobile-menu a:hover { color: var(--white); background: rgba(255,255,255,0.06); padding-left: 32px; }
.mobile-menu .m-emergency {
  margin: 12px 24px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--brand);
  border-radius: var(--r);
  color: var(--white);
}

/* ════════════════════════════════════
   ГЕРОЙ
   ════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(212,80,10,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(22,40,64,0.9) 0%, transparent 70%),
    linear-gradient(135deg, #0C1A2E 0%, #0F2240 50%, #0A1525 100%);
}

/* Декоративные круги — тепло */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  right: -100px; top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(212,80,10,0.18) 0%, transparent 70%);
}
.hero-glow-2 {
  width: 300px; height: 300px;
  right: 100px; top: 30%;
  background: radial-gradient(circle, rgba(240,168,10,0.12) 0%, transparent 70%);
}

/* Декоративные линии */
.hero-lines {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 30px,
      rgba(255,255,255,1) 30px,
      rgba(255,255,255,1) 31px
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 0 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,80,10,0.2);
  border: 1px solid rgba(212,80,10,0.4);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 24px;
}
.hero-badge span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--brand-light);
  font-weight: 700;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 10px;
}
.hero-title span { color: var(--brand-light); }

.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

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

/* Аварийный блок в герое */
.hero-emergency {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  backdrop-filter: blur(8px);
}
.emergency-icon {
  width: 48px; height: 48px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-ring 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,80,10,0.6); }
  50%       { box-shadow: 0 0 0 12px rgba(212,80,10,0); }
}
.emergency-text p:first-child {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  font-weight: 700;
}
.emergency-text a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  transition: color var(--t);
}
.emergency-text a:hover { color: var(--brand-light); }
.emergency-text small {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

/* ════════════════════════════════════
   ПОЛОСА СТАТИСТИКИ
   ════════════════════════════════════ */
.stats-bar {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ════════════════════════════════════
   СЕКЦИИ — ОБЩЕЕ
   ════════════════════════════════════ */
.section { padding: 80px 0; }
.section--alt { background: var(--section-alt); }
.section--dark { background: var(--navy); }

/* ════════════════════════════════════
   О ПРЕДПРИЯТИИ
   ════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}
.about-text p:last-child { margin-bottom: 0; }

.info-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 12px 0; vertical-align: top; }
.info-table td:first-child {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  width: 45%;
  padding-right: 16px;
}
.info-table td:last-child {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.about-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.about-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--brand);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ════════════════════════════════════
   ТАРИФЫ
   ════════════════════════════════════ */
.tariffs-placeholder {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 60px;
  text-align: center;
  border: 2px dashed var(--border);
}
.pending-icon {
  width: 72px; height: 72px;
  background: var(--section-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.tariffs-placeholder h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.tariffs-placeholder p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ════════════════════════════════════
   ДОКУМЕНТЫ
   ════════════════════════════════════ */
.docs-categories { display: flex; flex-direction: column; gap: 48px; }

.docs-category-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.docs-category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.doc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--t);
}
.doc-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.doc-card--pending { opacity: 0.6; }
.doc-card--pending:hover { transform: none; border-color: var(--border); box-shadow: none; }

.doc-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-icon--pdf  { background: #FDECEA; color: #C62828; }
.doc-icon--doc  { background: #E3F2FD; color: #1565C0; }
.doc-icon--wait { background: var(--section-alt); color: var(--text-muted); }

.doc-info { flex: 1; min-width: 0; }
.doc-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}
.doc-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; }
.doc-card--pending .doc-name { color: var(--text-muted); }

/* ════════════════════════════════════
   ПОТРЕБИТЕЛЯМ
   ════════════════════════════════════ */
.consumers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.consumer-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all var(--t);
}
.consumer-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.consumer-card-icon {
  width: 48px; height: 48px;
  background: rgba(212,80,10,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.consumer-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 12px;
}
.consumer-card p, .consumer-card li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}
.consumer-card ul { padding-left: 16px; list-style: disc; margin-top: 8px; }
.consumer-card ul li { margin-bottom: 4px; }

.requisites-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r);
  padding: 16px;
  margin-top: 14px;
}
.req-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 12px;
}
.req-row:last-child { border-bottom: none; }
.req-key { font-size: 0.75rem; color: rgba(255,255,255,0.4); white-space: nowrap; }
.req-val { font-size: 0.8rem; color: rgba(255,255,255,0.85); font-weight: 700; text-align: right; word-break: break-all; }

/* ════════════════════════════════════
   РАСКРЫТИЕ ИНФОРМАЦИИ
   ════════════════════════════════════ */
.disclosure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.disclosure-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 24px;
  border-left: 4px solid var(--border);
  transition: all var(--t);
}
.disclosure-card.ready   { border-left-color: var(--success); }
.disclosure-card.pending { border-left-color: var(--pending); }
.disclosure-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.disclosure-card h4 {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.disclosure-card p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }

/* ════════════════════════════════════
   ОПЕРАТИВНАЯ ИНФОРМАЦИЯ
   ════════════════════════════════════ */
.operative-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.op-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.op-card-date {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brand);
  margin-bottom: 4px;
}
.op-card-label { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.season-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}
.season-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.6rem;
}

/* ════════════════════════════════════
   КОНТАКТЫ
   ════════════════════════════════════ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.contact-cards { display: flex; flex-direction: column; gap: 16px; }

.contact-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
}
.contact-card-icon {
  width: 44px; height: 44px;
  background: var(--section-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
}
.contact-card-info { flex: 1; }
.contact-card-info span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-card-info strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}
.contact-card-info a { color: var(--navy); transition: color var(--t); }
.contact-card-info a:hover { color: var(--brand); }
.contact-card-info small { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.map-placeholder {
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 380px;
  background: #E8EFF5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #CBD5E0, #A0AEC0);
}
.map-placeholder-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.map-placeholder-inner p { font-size: 0.88rem; color: #556; margin-top: 8px; }

/* Обёртка для iframe карты — адаптивная */
.map-wrapper {
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 380px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.map-wrapper iframe {
  display: block;
  width: 100% !important;
  height: 100%;
  border: 0;
}

/* ════════════════════════════════════
   ПОДВАЛ
   ════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-top: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  transition: color var(--t);
}
.footer-col a:hover { color: var(--brand-light); }

.footer-emergency {
  background: var(--brand);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 16px;
}
.footer-emergency p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.footer-emergency a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white) !important;
  display: block;
  margin-bottom: 0;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ════════════════════════════════════
   АДАПТИВНОСТЬ
   ════════════════════════════════════ */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: block; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .operative-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }

  .header-emergency { display: none; }
  .hero-content { padding: 80px 0 60px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 12px 20px; font-size: 0.875rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 20px 16px; }
  .stat-value { font-size: 1.4rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .consumers-grid { grid-template-columns: 1fr; }
  .operative-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .disclosure-grid { grid-template-columns: 1fr; }
  .tariffs-placeholder { padding: 40px 24px; }

  /* Карта на мобильных */
  .map-placeholder { height: 260px; }
  .map-wrapper { height: 280px; }

  /* Контакты — колонки в столбик */
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Мобильное меню — гарантированная ширина */
  .mobile-menu {
    width: 100%;
    left: 0;
    right: 0;
  }
  .mobile-menu a {
    font-size: 1rem;
    padding: 14px 24px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-emergency { flex-direction: column; text-align: center; gap: 12px; }
  .emergency-text a { font-size: 1.3rem; }
}

/* ── Утилиты ── */
.text-brand  { color: var(--brand); }
.text-muted  { color: var(--text-muted); }
.text-white  { color: var(--white); }
.fw-bold     { font-weight: 700; }
.mt-8        { margin-top: 8px; }
.mt-16       { margin-top: 16px; }
.mt-24       { margin-top: 24px; }
.d-flex      { display: flex; }
.ai-center   { align-items: center; }
.gap-8       { gap: 8px; }
.gap-12      { gap: 12px; }

/* ── Два бейджа в hero ── */
.hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.hero-badge--gerb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-badge--gerb img {
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* ── Фото посёлка в О предприятии ── */
.town-photo-block {
  margin-top: 36px;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  height: 280px;
  box-shadow: var(--shadow-lg);
}
.town-photo-block img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  display: block;
  transition: transform .6s ease;
}
.town-photo-block:hover img:first-child {
  transform: scale(1.02);
}
.town-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 22px 18px;
  background: linear-gradient(transparent, rgba(10,20,40,0.82));
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}
.town-photo-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: .95rem;
  color: #fff;
}
.town-photo-caption span {
  font-size: .78rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}
@media (max-width: 600px) {
  .town-photo-block { height: 200px; }
  .town-photo-caption span { display: none; }
}