/* site.css: один файл без препроцессоров. Слои: tokens, fonts, base, shell, components, затем по секции на страницу.
   Медиа-запросы @media (min-width: 900px) и (max-width: 899px) лежат внутри своей секции. */

/* === layer: tokens === */
:root {
  --teal-900: #12302b;
  --teal-700: #12544c;
  --teal-500: #1a7e74;
  --teal-300: #2c8a82;
  --sand-50: #f6f4ee;
  --sand-100: #e7e3d8;
  --ochre: #cf8a3e;
  --alert: #bf5034;
  --ink: #16302b;
  --ink-muted: #5d6f6a;
  --line: #e3ece6;
  --radius: 13px;
  --font-text: 'Golos Text', system-ui, sans-serif;
  --font-head: 'Manrope', var(--font-text);
  --tint: #e3efe9;
  --tint-2: #eef2ee;
  --alert-tint: #fde7e0;
  --ochre-tint: #fbeeda;
  --ochre-dark: #b9772a;
  --green: #2f7d52;
  --ink-2: #3c4d49;
  --muted-2: #52635e;
  --radius-s: 11px;
  --radius-l: 16px;
  --radius-xl: 20px;
  --shadow-accent: 0 14px 30px -24px rgba(18,84,76,.5);
  --container: 1440px;
  --gutter: 16px;
  /* Текст на охристой и красной подложках: --ochre-dark и --alert из макета мельче 18 px не проходят AA (3,2:1 и 4,0:1). */
  --ochre-ink: #8a5a1f;
  --alert-ink: #a8432b;
}
@media (min-width: 900px) {
  :root { --gutter: 56px; }
}

/* === layer: fonts === */
/* Блок между маркерами пишет scripts/fetch_fonts.py (make fonts), руками не править. */
/* fonts:begin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/golos-text-cyrillic.2f175b8f.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/golos-text-latin.f8d71091.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('/static/fonts/manrope-cyrillic.95a49306.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('/static/fonts/manrope-latin.e310b55a.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* fonts:end */

/* === layer: base === */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sand-50);
  color: var(--ink);
  font: 400 17px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: 30px; }
@media (min-width: 900px) {
  h1 { font-size: 46px; }
}

/* === layer: shell === */
/* Контейнер: шапка, баннер, main и подвал в одной сетке до 1440 px, поля 16 px на телефоне и 56 px от 900 px. */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.site-main { flex: 1; padding-top: 24px; padding-bottom: 40px; }
@media (min-width: 900px) {
  .site-main { padding-top: 36px; padding-bottom: 50px; }
}

/* Статус-баннер над шапкой: кружок с «!», текст, «Подробнее» справа. Цвет по серьёзности. */
.banner { font-weight: 600; }
.banner--emergency { background: var(--alert); color: #fff; }
.banner--planned { background: var(--ochre); color: #1d1408; }
.banner--ok { background: var(--teal-500); color: #fff; }
.banner__inner { display: flex; align-items: flex-start; gap: 11px; padding-top: 13px; padding-bottom: 13px; }
.banner__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18); }
.banner__icon circle { display: none; }
.banner__icon .icon { stroke-width: 2.6; }
.banner__text { flex: 1; min-width: 0; margin: 0; font-size: 16px; line-height: 1.35; }
.banner__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* На телефоне «Подробнее» идёт в строку текста, поля дают цель касания 44 px. */
.banner__link { padding: 12px 0; color: inherit; font-weight: 700; text-underline-offset: 2px; }
@media (min-width: 900px) {
  .banner__inner { align-items: center; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
  .banner__icon { width: 30px; height: 30px; }
  .banner__text { display: flex; align-items: center; gap: 16px; font-size: 18px; line-height: 1.4; }
  .banner__msg { flex: 1; }
  .banner__link { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0; font-size: 16px; text-underline-offset: 3px; }
}

/* Шапка: логотип и название, семь разделов, справа кнопка «MAX» на /chat/. */
.site-header { background: var(--sand-50); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; text-decoration: none; font: 800 19px var(--font-head); color: var(--ink); }
.brand .logo { width: 30px; height: 32px; flex: none; }
/* Кнопка чата: селектор с .site-header, иначе .btn из слоя компонентов (ниже по файлу) перебивает размеры. */
.site-header .site-header__chat { margin-left: auto; flex: none; font-weight: 700; }
.site-header__chat .icon { width: 16px; height: 16px; }
@media (max-width: 899px) {
  .site-header .site-header__chat { width: 44px; padding: 0; border-radius: 50%; }
  .site-header__chat .icon { width: 22px; height: 22px; }
  .site-header__chat-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 900px) {
  .site-header__inner { gap: 36px; padding-top: 18px; padding-bottom: 18px; }
  .brand { gap: 13px; font-size: 22px; }
  .brand .logo { width: 36px; height: 39px; }
  .site-header .site-header__chat { padding: 0 16px; font-size: 15px; }
}
@media (min-width: 900px) and (max-width: 1239px) {
  .site-header__inner { gap: 20px; }
  .brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Навигация: на телефоне нижняя панель вкладок (вариант 2a), на компьютере лента в шапке. Без JS. */
.site-nav { display: flex; align-items: center; }
.site-nav a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; text-decoration: none; color: var(--muted-2); font-weight: 600; }
.site-nav__icon { display: inline-flex; flex: none; }
.site-nav__icon .icon { width: 24px; height: 24px; }
.nav-short { display: none; }
@media (max-width: 899px) {
  .site-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; justify-content: space-around; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .site-nav > a { flex: 1; flex-direction: column; justify-content: center; min-height: 52px; padding: 4px 2px; font-size: 12px; line-height: 1.1; color: var(--ink-muted); }
  .site-nav > a.is-active { color: var(--teal-700); font-weight: 700; }
  .nav-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-short { display: inline; }
  .site-nav__extra { display: none; }
  .site-nav__extra:target { display: flex; flex-direction: column; position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(18, 48, 43, .18); padding: 8px; }
  .site-nav__extra a { min-height: 48px; padding: 0 12px; font-size: 18px; color: var(--ink); }
  .site-nav__extra a.is-active { color: var(--teal-700); }
  .site-nav__close { color: var(--teal-500); justify-content: center; border-top: 1px solid var(--line); }
}
@media (min-width: 900px) {
  .site-nav { gap: 24px; margin-left: 8px; font-size: 16px; }
  .site-nav a { white-space: nowrap; }
  .site-nav a.is-active { color: var(--ink); text-decoration: underline 2px var(--ochre); text-underline-offset: 8px; }
  .site-nav__icon, .site-nav a.site-nav__more, .site-nav a.site-nav__close { display: none; }
  .site-nav__extra { display: contents; }
  .site-nav > a:nth-child(4) { order: 5; }
  .site-nav__extra a:nth-child(1) { order: 4; }
  .site-nav__extra a:nth-child(2) { order: 6; }
  .site-nav__extra a:nth-child(3) { order: 7; }
}
@media (min-width: 900px) and (max-width: 1239px) {
  .site-nav { gap: 16px; margin-left: 0; font-size: 15px; }
}

/* Подвал: одна строка на --teal-900, на телефоне столбиком; копирайт второй строкой. */
.site-footer { background: var(--teal-900); color: #bcd2cb; font-size: 14px; }
.site-footer__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 18px; padding-bottom: 22px; }
.site-footer__brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 800 17px var(--font-head); color: #fff; }
.site-footer__contacts { margin: 0; font-style: normal; }
.site-footer__contacts a { display: inline-flex; align-items: center; min-height: 44px; color: #e7f0ec; }
.site-footer__chat { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #9cd0c7; font-weight: 700; text-decoration: none; }
.site-footer__chat .icon { width: 16px; height: 16px; }
.site-footer__copy { margin: 0; font-size: 13px; }
@media (max-width: 899px) {
  /* Под закреплённой нижней панелью (65 px) продолжается подвал, а не пустой фон страницы. */
  .site-footer { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
  .site-footer__inner { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 30px; padding-top: 18px; padding-bottom: 18px; }
  .site-footer__brand { font-size: 18px; }
  .site-footer__copy { flex-basis: 100%; }
}

/* === layer: components === */
.muted { color: var(--ink-muted); }
.small { font-size: 14px; }
.lead { margin: 0; font-size: 18px; color: var(--ink-muted); max-width: 560px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }
.page-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plain-list a { display: inline-flex; align-items: center; min-height: 44px; }

/* Сетки: на телефоне один столбец. */
.grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) {
  .grid--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .grid--3-1 { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
  .grid--3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Карточки: белые с рамкой, без тени; тень только у акцентных (герой, QR). */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px; }
.card--dark { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.card--tint { background: var(--tint); border-color: var(--tint); }
.card--alert { background: var(--alert-tint); border-color: var(--alert-tint); }
.card--accent { box-shadow: var(--shadow-accent); }
.card--dark .muted { color: #a9cfc7; }
.card__title { font-size: 20px; margin-bottom: 10px; }
@media (min-width: 900px) {
  .card { padding: 24px; }
}

/* Кнопки: 44 px, радиус 11, иконка слева через gap. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 1.5px solid transparent; border-radius: var(--radius-s);
  font: 600 16px/1.2 var(--font-text); text-decoration: none; width: fit-content; cursor: pointer;
}
.btn--primary { background: var(--teal-700); color: #fff; }
.btn--primary:hover { background: var(--teal-900); }
.btn--soft { background: var(--tint); color: var(--teal-700); }
.btn--soft:hover { background: #d5e8df; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--teal-700); }
.btn--ghost:hover { background: var(--tint-2); }
.btn--light { background: #fff; color: var(--ink); }
.btn--outline-light { background: transparent; border-color: #fff; color: #fff; }
.btn--icon { width: 44px; padding: 0; border-radius: 50%; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* Чипы: видимая высота 36 px, цель касания 44 px (подложка на ::before с отступом 4 px). */
.chips { display: flex; flex-wrap: wrap; gap: 0 8px; }
.chip { position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; font-weight: 600; font-size: 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.chip::before { content: ""; position: absolute; inset: 4px 0; z-index: -1; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.chip.is-active { color: #fff; }
.chip.is-active::before { background: var(--teal-500); border-color: var(--teal-500); }
.chip--ochre { color: var(--ochre-ink); }
.chip--ochre::before { background: var(--ochre-tint); border-color: var(--ochre-tint); }

.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); }
.card .eyebrow { color: var(--teal-500); }
.eyebrow--ochre, .card .eyebrow--ochre { color: var(--ochre-ink); }
.eyebrow--alert, .card .eyebrow--alert { color: var(--alert-ink); }
.card--dark .eyebrow { color: #ffd79a; }

.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal-700); font-weight: 600; }
.section-head__hint { font-size: 14px; color: var(--ink-muted); }

/* Бейдж файла: PDF красный, изображения бирюзовые, остальные документы охристые. */
.badge-file { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-s); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.badge-file--pdf { background: var(--alert-tint); color: var(--alert-ink); }
.badge-file--img { background: var(--tint); color: var(--teal-700); }
.badge-file--doc { background: var(--ochre-tint); color: var(--ochre-ink); }

/* Дата объявления столбиком: «07» и «июл». */
.date-col { flex: none; display: flex; flex-direction: column; align-items: center; width: 48px; line-height: 1; text-align: center; }
.date-col__day { font: 800 22px/1 var(--font-head); color: var(--ink); }
.date-col__month { margin-top: 3px; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--ink-muted); }

.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--teal-700); font-weight: 700; }
.avatar--ochre { background: var(--ochre-tint); color: var(--ochre-ink); }

/* Ряд файла: бейдж, название и «раздел · размер · дата», справа «Скачать»; на телефоне кнопка круглая. */
.file-row { display: flex; align-items: center; gap: 14px; }
.file-row__body { flex: 1; min-width: 0; }
.file-row__title { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.file-row__title:hover { text-decoration: underline; }
.file-row__meta { margin-top: -8px; }
.file-row__dl { flex: none; }
@media (max-width: 899px) {
  .file-row__dl { width: 44px; padding: 0; border-radius: 50%; }
  .file-row__dl span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.notice { background: #fbefe0; border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.notice__title { font-size: 18px; margin-bottom: 6px; }

/* Формы */
.form { display: grid; gap: 14px; }
.form__field { display: grid; gap: 6px; font-weight: 600; }
.form__input { min-height: 48px; padding: 10px 12px; border: 1.5px solid #b9cdc5; border-radius: 10px; font: 400 17px var(--font-text); color: var(--ink); background: #fff; width: 100%; }
.form__textarea { min-height: 120px; resize: vertical; }
.form__hint { color: var(--alert); font-size: 14px; font-weight: 400; }
.form__error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #f9e5df; color: #7a2b18; font-size: 15px; font-weight: 400; }
.form__trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Поиск по документам (страница документов и 404) */
.search { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.search__label { font-weight: 600; }
.search__row { display: flex; gap: 8px; }
.search__input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1.5px solid #b9cdc5; border-radius: var(--radius); background: #fff; font: 400 17px var(--font-text); color: var(--ink); }
.search__input:focus, .docs-search input:focus { outline: 2px solid var(--teal-500); outline-offset: 1px; }

/* === page: home === */
/* 02-t2. Градиент героя темнее макета ради контраста AA. */
.home-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 220px; margin-bottom: 14px; border-radius: 18px; overflow: hidden; color: #fff; }
.home-hero__art, .home-hero::after { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.home-hero::after { content: ""; background: linear-gradient(rgba(15,58,52,.2), rgba(15,58,52,.7) 45%, rgba(15,58,52,.82)); }
.home-hero__content { display: flex; flex-direction: column; gap: 6px; padding: 60px 16px 14px; }
.home-hero__content > * { margin: 0; }
.home-hero h1 { font: 700 14px var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: #ffd79a; }
.home-hero__title { font: 800 26px/1.08 var(--font-head); }
.home-hero__text { font-size: 15px; color: #dcefe9; }
.home-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 24px; }
.home-tile { display: flex; align-items: center; gap: 9px; min-height: 60px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.home-tile--event { order: 1; grid-column: 1 / -1; border-left: 4px solid var(--ochre); }
.home-tile__icon, .home-gas__icon, .home-chat__icon { display: flex; padding: 8px; border-radius: 11px; background: var(--tint); color: var(--teal-700); }
.home-tile__icon--ochre, .home-gas__icon { background: var(--ochre-tint); color: var(--ochre-dark); }
.home-tile__body { display: flex; flex-direction: column; line-height: 1.3; }
.home-tile__title { font-size: 15px; font-weight: 700; } /* 16 px не влезает в 375 px */
.home-tile__hint { font-size: 14px; color: var(--ink-muted); }
.home-main { gap: 16px; }
.home-col, .home-recent__list, .home-chat, .home-call { display: flex; flex-direction: column; gap: 14px; }
.home-recent > .section-head h2 { font-size: 19px; } /* только заголовок раздела: h2 карточек post-card как на /news/ */
.home-gas { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.home-gas__icon { padding: 14px; border-radius: 13px; }
.home-gas__body { flex: 1 1 200px; }
.home-gas h2 { margin: 0; font: 700 17px var(--font-text); letter-spacing: 0; }
.home-gas h2 a { text-decoration: none; }
.home-gas h2 a::after { content: ""; position: absolute; inset: 0; }
.home-gas__bar { display: block; width: 100%; height: 8px; margin-top: 8px; border: 0; border-radius: 5px; overflow: hidden; appearance: none; }
.home-gas__bar, .home-gas__bar::-webkit-progress-bar { background: #e7eee9; }
.home-gas__bar::-webkit-progress-value { background: linear-gradient(90deg, var(--green), var(--ochre)); }
.home-gas__bar::-moz-progress-bar { background: linear-gradient(90deg, var(--green), var(--ochre)); }
.home-gas__next { min-height: 0; padding: 6px 12px; font-weight: 700; white-space: normal; pointer-events: none; } /* клик идёт в ссылку карточки */
.home-gas__next::before { inset: 0; border-radius: 9px; }
.home-chat *, .home-call * { margin: 0; }
.home-chat__head { display: flex; align-items: center; gap: 11px; }
.home-chat__icon { padding: 11px; background: var(--teal-300); color: #fff; }
.home-chat h2, .home-call h2 { font-size: 18px; }
.home-chat p { font-size: 14px; color: #a9cfc7; }
.home-col .btn { width: 100%; min-height: 48px; font-weight: 700; }
@media (max-width: 899px) {
  .home-hero__art { left: auto; width: max(100%, 580px); } /* правый край пейзажа с солнцем, как в home-phone.html */
  .home-hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .home-hero__actions { display: none; }
}
@media (max-width: 374px) {
  .home-tile__title { font-size: 14px; }
}
@media (max-width: 359px) {
  .home-tile:not(.home-tile--event) { flex-direction: column; align-items: flex-start; } /* слово не влезает рядом с иконкой */
}
@media (min-width: 900px) {
  .home-hero { align-items: center; min-height: 400px; margin-bottom: 40px; border-radius: 22px; }
  .home-hero::after { background: linear-gradient(90deg, rgba(15,58,52,.8), rgba(15,58,52,.66) 560px, rgba(15,58,52,.25) 840px, transparent 1100px); }
  .home-hero__content { gap: 18px; max-width: 608px; padding: 40px 0 40px 48px; }
  .home-hero__title { font-size: 52px; line-height: 1.04; letter-spacing: -.02em; }
  .home-hero__text { font-size: 19px; }
  .home-hero__actions { display: flex; gap: 13px; }
  .home-hero .btn { min-height: 52px; padding: 0 26px; border-radius: 13px; font-size: 18px; font-weight: 800; color: var(--teal-700); }
  .home-hero .btn--outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
  .home-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 36px; }
  .home-tile { gap: 11px; padding: 16px; }
  .home-tile--event { order: 0; } /* до 1200 px на всю строку над разделами: пять плиток рвут подписи */
  .home-tile__icon { padding: 10px; }
  .home-tile__title { font-size: 16px; }
  .home-main { gap: 20px; }
  .home-recent > .section-head h2 { font-size: 28px; }
  .home-gas { flex-wrap: nowrap; padding: 20px 24px; }
}
@media (min-width: 1200px) {
  .home-tiles--event { grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr)); }
  .home-tile--event { grid-column: auto; }
}

/* === page: news === */
/* 04-p4a, 03-t3; post-card и на главной. Телефон: колонки через display: contents, рубрики над списком. */
.news-head { align-items: baseline; }
.news-head h1 { margin: 0; }
.news-list, .post-card__body { display: flex; flex-direction: column; gap: 11px; }
.post-card { position: relative; display: flex; gap: 20px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.post-card--pinned { border-left: 4px solid var(--ochre); }
.post-card--alert { background: var(--alert); border-color: var(--alert); color: #fff; }
.post-card .date-col, .post-card__mark, .post-card__arrow { display: none; }
.post-card__body { flex: 1; min-width: 0; gap: 8px; }
.post-card__body > * { margin: 0; }
.post-card__label { display: flex; align-items: center; gap: 5px; width: fit-content; letter-spacing: 0; }
.post-card--alert .post-card__label { color: #fff; }
.post-card__pin { width: 11px; height: 12px; }
.post-card__rubric { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.post-card__rubric, .post-card__excerpt, .post-card__meta { color: var(--ink-muted); }
.post-card__title { font: 700 18px/1.3 var(--font-text); letter-spacing: 0; }
.post-card__title a { text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__excerpt { font-size: 15px; }
.post-card__meta { font-size: 14px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pager__num { color: var(--ink-muted); }
.news-aside__title { margin: 0 0 12px; font-size: 16px; letter-spacing: 0; }
.news-event { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-left: 4px solid var(--ochre); border-radius: var(--radius-s); text-decoration: none; }
.news-event + .news-event { margin-top: 8px; }
.news-event__body { display: flex; flex-direction: column; }
.news-event__title { font-size: 15px; font-weight: 700; }
.news-event__place, .news-calendar__empty { margin: 0; font-size: 14px; color: var(--ink-muted); }
.news-chat__text { margin: 0 0 12px; font-size: 14px; color: #a9cfc7; }
.news-chat__btn { width: 100%; min-height: 48px; background: var(--teal-500); color: #fff; font-weight: 700; }
/* chip--small: пометка на странице документов */
.chip--small { min-height: 28px; padding: 0 10px; font-size: 13px; }
.chip--small::before { inset: 0; }
@media (max-width: 899px) {
  .news-head .section-head__hint { display: none; }
  .news-layout { gap: 14px; }
  .news-main, .news-aside { display: contents; }
  .news-head { order: -2; }
  .news-rubrics { order: -1; padding: 0; background: none; border: 0; }
  .news-rubrics h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (min-width: 900px) {
  .news-head { margin-bottom: 16px; }
  .news-head h1 { font-size: 36px; }
  .news-layout { gap: 28px; }
  .news-list { gap: 16px; }
  .post-card { align-items: center; padding: 22px; border-radius: 15px; }
  .post-card .date-col, .post-card__mark, .post-card__arrow { display: flex; }
  .post-card .date-col { width: 64px; }
  .post-card .date-col__day { font-size: 26px; }
  .post-card .date-col__month { font-size: 13px; }
  .post-card__body { gap: 5px; }
  .post-card--pinned .post-card__label { padding: 3px 9px; border-radius: 7px; background: var(--ochre-tint); }
  .post-card__rubric { font-size: 13px; font-weight: 400; text-transform: none; }
  .post-card__title { font-size: 19px; }
  .post-card__mark { flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); font: 800 22px var(--font-head); }
  .post-card__arrow { color: #b9cdc5; }
  .post-card--alert .post-card__arrow { color: rgba(255,255,255,.6); }
  .news-aside { display: flex; flex-direction: column; gap: 16px; }
  .news-aside .card { padding: 20px; }
  .news-rubrics .chip:not(.is-active)::before { background: var(--sand-50); }
}

/* === page: post === */
/* 05-p4b, 03-t3. Собрание в колонках 2:1; телефон: display: contents, факты сразу под заголовком. */
.post { max-width: 720px; }
.post-crumbs { font-size: 15px; color: var(--ink-muted); }
.post-crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--teal-700); text-decoration: none; }
.post-chips { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0; }
.post-title { margin: 8px 0 16px; font-size: 24px; line-height: 1.15; }
.post__body { font-size: 18px; line-height: 1.6; }
.post__body p, .post__body ul, .post__body ol { margin: 0 0 1em; }
.post__body a { color: var(--teal-700); }
.post-meta { font-size: 14px; color: var(--ink-muted); }
.post .post-files { margin-top: 16px; }
.post-section-title { margin: 0 0 12px; font-size: 17px; letter-spacing: 0; }
.post-files .file-row { padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.post-files .file-row + .file-row { margin-top: 11px; }
.post-head { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.post-head > * { margin: 0; }
.post-chip { min-height: 0; padding: 5px 11px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.post-chip::before { inset: 0; border-radius: 8px; }
.post-layout { gap: 13px; }
.post-agenda { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: n; }
.post-agenda li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); counter-increment: n; }
.post-agenda li::before { content: counter(n); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--tint); color: var(--teal-700); font-weight: 800; font-size: 14px; }
.post-facts__list { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.post-facts__row { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.post-facts__row strong { color: var(--ink); }
.post-facts__icon { display: flex; color: var(--teal-500); }
.post-facts__ics { width: 100%; min-height: 52px; border-radius: 13px; background: var(--teal-500); font-size: 17px; font-weight: 700; }
.post-facts__past { margin: 0; font-weight: 700; color: var(--ink-muted); }
.post-absence__title { margin: 0 0 8px; font-size: 16px; color: var(--teal-700); letter-spacing: 0; }
.post-absence p { margin: 0; font-size: 15px; color: #2f4a44; }
@media (max-width: 899px) {
  .post-main, .post-side { display: contents; }
  .post-head { order: -2; }
  .post-facts { order: -1; }
}
@media (min-width: 900px) {
  .post-title { font-size: 40px; line-height: 1.08; }
  .post-layout { gap: 28px; }
  .post-main, .post-side { display: flex; flex-direction: column; gap: 16px; }
  .post-head { gap: 18px; }
  .post-chip { padding: 6px 13px; font-size: 13px; }
  .post-agenda-card, .post-meeting .post-files, .post-text { padding: 26px 28px; }
  .post-section-title { margin-bottom: 14px; font-size: 20px; }
  .post-agenda { gap: 14px; }
  .post-agenda li { font-size: 17px; }
  .post-agenda li::before { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
  .post-facts__list { gap: 14px; }
  .post-facts__row { font-size: 16px; }
  .post-facts__icon { padding: 10px; border-radius: var(--radius-s); background: var(--tint); }
  .post-absence { padding: 22px; }
  .post-absence__title { font-size: 17px; }
  .post-absence p { font-size: 16px; }
}

/* === page: payment === */
/* 06-p4c, телефон 03-t3 */
.pay-grid, .pay-main, .pay-req { gap: 16px; }
.pay-main, .pay-req { display: grid; max-width: 880px; }
.pay-h { margin: 0; font-size: 17px; }
.pay-req__list { margin: 0; }
.pay-req__row { position: relative; display: grid; align-content: center; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--tint-2); }
.pay-req__row:last-child { border: 0; }
.js .pay-req__row { padding-right: 56px; }
.pay-req__value { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pay-req__copy { position: absolute; right: 0; top: calc(50% - 22px); }
.pay-req__box p { margin: 8px 0 0; }
.copy { display: none; }
.js .copy { display: inline-flex; }
.copy .icon + .icon, .copy.is-copied .icon:first-child { display: none; }
.copy.is-copied .icon + .icon { display: block; }
.pay-all { background: var(--teal-500); font-weight: 700; }
.pay-all--wide { width: 100%; min-height: 52px; }
.pay-note { display: flex; gap: 11px; padding: 14px 16px; border-radius: 13px; background: var(--ochre-tint); color: #5a3f15; font-size: 16px; }
.pay-note p { margin: 0; }
.pay-note p + p { margin-top: 6px; }
.pay-note .icon { width: 28px; height: 28px; color: #fff; stroke-width: 2.4; }
.pay-note circle { fill: var(--ochre); stroke: var(--ochre); }
.pay-faq { display: grid; gap: 4px; }
.pay-faq__q { margin: 10px 0 0; font: 700 16px/1.4 var(--font-text); letter-spacing: 0; }
.pay-faq__a { margin: 0; white-space: pre-line; }
.pay-faq__a a { padding: 12px 0; color: var(--teal-500); font-weight: 600; white-space: nowrap; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-weight: 700; cursor: pointer; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px; border-right: 2px solid var(--teal-700); border-bottom: 2px solid var(--teal-700); transform: translateY(-3px) rotate(45deg); }
details[open] > .faq__q::after { transform: translateY(3px) rotate(-135deg); }
.faq__item a { display: inline-flex; align-items: center; min-height: 44px; }
.faq__item p { margin: 0 0 12px; }
.pay-qr { order: -1; display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 6px 16px; }
.pay-qr .pay-h, .pay-qr__hint { grid-column: 2; align-self: end; }
.pay-qr__frame { grid-area: 1 / 1 / 3; padding: 8px; border-radius: 12px; background: #fff; }
.pay-qr__img { display: block; width: 100%; height: auto; }
.pay-qr__hint { align-self: start; margin: 0; font-size: 14px; color: #a9cfc7; }
/* QR по реквизитам (2b): на телефоне не компактно, 240 px во всю карточку, 77 модулей в 120 px не читаются */
.pay-qr--gen { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; text-align: center; }
.pay-qr--gen .pay-h, .pay-qr--gen .pay-qr__hint, .pay-qr--gen .pay-qr__frame { grid-area: auto; }
.pay-qr--gen .pay-qr__frame { width: 100%; max-width: 256px; padding: 8px; }
.pay-qr__svg { display: block; width: 100%; max-width: 240px; height: auto; }
.pay-qr__bg { fill: #fff; }
.pay-qr__svg path { fill: var(--ink); }
.pay-qr__purpose { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pay-qr__form { display: grid; gap: 8px; width: 100%; max-width: 320px; text-align: left; font-weight: 600; }
.pay-qr__form .btn { width: 100%; min-height: 48px; }
.pay-qr__save { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; }
@media (max-width: 899px) {
  .js .pay-all--head { display: none; }
}
@media (min-width: 900px) {
  .pay-title { font-size: 36px; }
  .pay-h { font-size: 20px; }
  .pay-req { gap: 8px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); }
  .pay-req__box { padding: 0; border: 0; }
  .js .pay-all--wide { display: none; }
  .pay-qr { order: 0; grid-template-columns: 1fr; justify-items: center; gap: 18px; padding: 30px; text-align: center; }
  .pay-qr .pay-h, .pay-qr__hint, .pay-qr__frame { grid-area: auto; }
  .pay-qr__frame { width: 220px; padding: 10px; border-radius: 16px; }
  .pay-qr__hint { font-size: 16px; }
}
@media (min-width: 1240px) {
  .pay-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; }
}

/* === page: documents === */
/* 07-p4d, телефон 03-t3 */
.docs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 14px; }
.docs-search { position: relative; flex: 1 1 100%; }
.docs-search .icon { position: absolute; left: 16px; top: 15px; color: var(--ink-muted); pointer-events: none; }
.docs-search input { width: 100%; min-height: 50px; padding: 0 16px 0 46px; border: 1.5px solid #d3ddd7; border-radius: 13px; font: inherit; color: inherit; }
.docs-search input::placeholder { color: var(--ink-muted); }
.docs-year { margin: 18px 0 10px; font: 700 14px var(--font-text); letter-spacing: .05em; color: var(--ink-muted); }
.docs-items { display: grid; gap: 10px; max-width: 980px; margin: 0; padding: 0; list-style: none; }
.docs-item { position: relative; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.docs-item:hover { border-color: var(--teal-500); box-shadow: var(--shadow-accent); }
.docs-item .file-row__body { line-height: 1.3; }
.docs-item .file-row__title { min-height: 0; padding: 11px 0; margin: -11px 0; line-height: 1.3; }
.docs-item .file-row__title::after { content: ""; position: absolute; inset: 0; }
.docs-item .file-row__meta { margin: 0; }
.docs-item .file-row__dl { position: relative; z-index: 1; }
.docs-item .chip { pointer-events: none; }
@media (min-width: 900px) {
  .docs-title { font-size: 36px; }
  .docs-search { flex: 0 1 420px; }
  .docs-search input { min-height: 52px; }
  .docs-search .icon { top: 16px; }
  .docs-bar .chip { padding: 0 18px; font-size: 15px; }
  .docs-bar .chip::before { inset: 1px 0; }
  .docs-item { padding: 16px 20px; }
}

/* === page: map === */
/* Решение владельца 2026-09-29 (слайс 1j, отход от 08-p4e): на любом экране столбиком поиск, карточка участка,
   схема во всю ширину контейнера, под ней подпись источника местности и PDF; легенды нет. Телефон по 03-t3. */
.map-title { margin-bottom: 0; }
.map-stack { display: flex; flex-direction: column; gap: 16px; }
.map-search { display: flex; flex-direction: column; gap: 12px; }
.map-search__row { position: relative; display: flex; gap: 8px; }
.map-search__field { position: relative; flex: 1; min-width: 0; }
.map-search__field .icon { position: absolute; left: 15px; top: 15px; color: var(--teal-500); pointer-events: none; }
.map-search__field input { width: 100%; min-height: 50px; padding: 0 12px 0 44px; border: 1.5px solid #b9cdc5; border-radius: 12px; background: #fff; font: 600 17px var(--font-text); color: var(--ink); }
.map-search__field input::placeholder { color: var(--ink-muted); font-weight: 400; }
.map-search__field input:focus { outline: 2px solid var(--teal-500); outline-offset: 1px; border-color: var(--teal-500); }
.map-search__btn { min-height: 50px; padding: 0 20px; border-radius: 12px; background: var(--teal-500); color: #fff; font-weight: 700; }
.map-search__btn:hover { background: var(--teal-700); }
/* Фон рамки цвета суши подложки base.svg: пока она грузится, схема не мигает зелёным. */
.map-card { position: relative; padding: 0; overflow: hidden; background: #efece3; border-color: #dbe7de; border-radius: 16px; }
.map-viewport { height: 420px; overflow: auto; }
.map-viewport:focus-visible { outline: 3px solid var(--teal-500); outline-offset: -3px; }
.map-viewport.is-dragging { cursor: grabbing; }
.map-zoom { display: none; position: absolute; top: 14px; right: 14px; flex-direction: column; gap: 8px; }
.js .map-zoom { display: flex; }
.map-zoom .btn { background: #fff; color: var(--teal-700); border-radius: var(--radius-s); box-shadow: 0 4px 12px -6px rgba(18,84,76,.5); }
.map-zoom .btn:disabled { color: #94b2ae; cursor: default; }
/* Схема: единицы viewBox это пиксели плана, толщины и шрифты в них же. Номер у узкого участка мельче (атрибут
   font-size), поэтому размер 40 задан группе, а не тексту: CSS у самого <text> перебил бы атрибут. */
.map-svg { display: block; width: 100%; height: auto; -webkit-user-select: none; user-select: none; }
.map-ground, .map-road { fill: #e0d6c0; }
.map-ground { stroke: #e0d6c0; stroke-width: 70; stroke-linejoin: round; }
.map-plot { fill: #dbe8de; stroke: #b9cdc5; stroke-width: 3; stroke-linejoin: round; cursor: pointer; }
.map-plot:hover { stroke: var(--teal-500); }
.map-plot.is-found { fill: var(--ochre); stroke: #a8701f; }
.map-plot.is-selected { fill: var(--ochre); stroke: var(--teal-700); stroke-width: 6; }
.map-plots { font: 600 40px var(--font-text); }
.map-plots text, .map-label { text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.map-plots text { fill: #4d6a58; }
/* Белый номер на охре из макета ниже AA (2,9:1), тёмный 5:1; выбранный кликом тоже на охре. */
.map-plot.is-found + text, .map-plot.is-selected + text { fill: var(--teal-900); font-weight: 800; }
/* Ореол цвета проезда отделяет подпись улицы от номеров соседних участков («ул. Луговая» не «ул. Луговая 315»). */
.map-label { font: 700 40px var(--font-text); fill: #5c4f30; paint-order: stroke; stroke: #e0d6c0; stroke-width: 8; stroke-linejoin: round; }
.map-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 13px; padding: 14px 16px; border-left: 4px solid var(--ochre); }
.map-result[hidden] { display: none; }
.map-result__title { grid-column: 1; margin: 0; font-size: 17px; }
.map-result__text { grid-column: 1; margin: 0; font-size: 14px; color: var(--ink-muted); }
.map-result__list { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 0; }
.map-result__list a { display: flex; align-items: center; min-height: 44px; color: var(--teal-700); font-weight: 600; }
.map-result__show { grid-column: 2; grid-row: 1 / span 2; padding: 0 18px; font-size: 15px; font-weight: 700; }
.map-result__show[hidden] { display: none; }
.map-foot { display: flex; flex-direction: column; gap: 12px; }
.map-credit { margin: 0; font-size: 13px; color: var(--ink-muted); }
.map-credit a { color: inherit; }
.map-pdf__btn { width: 100%; min-height: 50px; border-color: #b9cdc5; border-radius: 13px; background: #fff; color: var(--teal-700); font-weight: 700; gap: 9px; }
.map-pdf__btn:hover { background: var(--tint-2); }
.map-pdf p { margin: 8px 0 0; text-align: center; }
/* Телефон по 03-t3: поле поиска без карточки и заголовка, «Найти» текстом внутри поля. */
@media (max-width: 899px) {
  .map-find { padding: 0; background: none; border: 0; }
  .map-search__field input { padding-right: 84px; border-color: var(--teal-500); border-radius: 13px; }
  .map-search__btn { position: absolute; right: 3px; top: 3px; min-height: 44px; padding: 0 14px; background: none; color: var(--teal-500); font-size: 14px; }
  .map-search__btn:hover { background: none; color: var(--teal-700); }
}
@media (min-width: 900px) {
  .map-title { font-size: 36px; }
  .map-stack { gap: 20px; }
  .map-find { padding: 16px 20px; }
  .map-card { border-radius: 18px; }
  .map-viewport { height: 560px; }
  .map-result { padding: 18px 20px; }
  .map-result__title { font-size: 20px; }
  .map-result__text { font-size: 16px; color: var(--ink-2); }
  .map-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .map-pdf__btn { width: auto; min-height: 52px; }
}
@media (min-width: 1240px) {
  .map-viewport { height: 640px; }
}

/* === page: contacts === */
/* 09-p4f: от 1240 px шесть дорожек, карточки по 2, 3, 4 и 2; 900–1239 px две колонки; на телефоне столбик по 03-t3. */
.contacts-grid { display: grid; gap: 11px; grid-template-columns: minmax(0, 1fr); }
.contacts-grid h2 { margin: 0; font-size: 17px; }
.contacts-grid p { margin: 0; }
.contacts-grid ul { list-style: none; margin: 0; padding: 0; }
.contacts-person { display: flex; align-items: center; gap: 13px; }
.contacts-person__avatar { width: 46px; height: 46px; }
.contacts-person__body { flex: 1; min-width: 0; }
.contacts-grid .contacts-person__name { font: 700 16px/1.3 var(--font-text); letter-spacing: 0; }
.contacts-person__phone { white-space: nowrap; }
.contacts-person__call { width: 46px; min-height: 46px; border-radius: 12px; background: var(--teal-500); }
.contacts-grid .contacts-urgent__title { margin-bottom: 6px; font: 800 13px var(--font-text); letter-spacing: .05em; }
.contacts-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 4px 0; font-size: 15px; line-height: 1.35; }
.contacts-row + .contacts-row { border-top: 1px solid var(--tint-2); }
.contacts-urgent .contacts-row + .contacts-row { border-color: #f4cabc; }
.contacts-tel { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--teal-500); white-space: nowrap; text-decoration: none; }
.contacts-urgent .contacts-tel { font-weight: 700; color: var(--alert-ink); }
.contacts-chat, .contacts-feedback, .contacts-route__body { display: flex; flex-direction: column; gap: 11px; }
.contacts-chat__head { display: flex; align-items: center; gap: 11px; }
.contacts-chat__icon { display: flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-300); }
.contacts-grid .contacts-chat__title { color: #fff; }
.contacts-grid .btn:not(.btn--icon) { width: 100%; min-height: 50px; }
.contacts-feedback__row { display: grid; gap: 11px; }
.contacts-feedback > .muted, .contacts-route__body .muted { font-size: 15px; }
.contacts-route { padding: 0; overflow: hidden; }
.contacts-route > svg { display: block; width: 100%; height: 110px; background: #e8f0e9; }
.contacts-route__body { padding: 16px 20px 20px; }
.contacts-route__text { white-space: pre-line; }
@media (min-width: 900px) {
  .contacts-title { font-size: 36px; }
  .contacts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .contacts-urgent { grid-column: 1 / -1; }
  .contacts-chat, .contacts-feedback, .contacts-route { align-self: start; }
  .contacts-feedback:last-child { grid-column: 1 / -1; } /* без «Как проехать» вся строка; 0,2,0 сильнее span 4 от 1240 px */
  .contacts-person__avatar { width: 52px; height: 52px; }
  .contacts-grid h2 { font-size: 19px; }
  .contacts-row { font-size: 16px; }
  .contacts-grid .contacts-feedback .btn { width: 240px; }
  .contacts-route > svg { height: 170px; }
}
@media (min-width: 1240px) {
  .contacts-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .contacts-person, .contacts-urgent, .contacts-route { grid-column: span 2; }
  .contacts-board, .contacts-chat { grid-column: span 3; }
  .contacts-feedback { grid-column: span 4; }
  .contacts-feedback__row { grid-template-columns: 1fr 1fr; }
}

/* === page: gas === */
/* 10-p4g и 03-t3: на телефоне под заголовком «Общий прогресс» и шаги столбиком с линией слева, от 900 px чип
   справа и четыре шага в строку. Готово зелёным, идёт охрой, ожидается серой обводкой. */
.gas-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 13px; }
.gas-head h1 { margin: 0; }
.gas-progress { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); }
.gas-progress__main { flex: 1; font-weight: 700; }
.gas-progress__bar { display: block; width: 100%; height: 9px; margin-top: 9px; border: 0; border-radius: 6px; background: #e7eee9; }
.gas-progress__bar::-webkit-progress-bar { border-radius: 6px; background: #e7eee9; }
.gas-progress__bar::-webkit-progress-value { border-radius: 6px; background: linear-gradient(90deg, var(--green), var(--ochre)); }
.gas-progress__bar::-moz-progress-bar { border-radius: 6px; background: linear-gradient(90deg, var(--green), var(--ochre)); }
.gas-steps { margin-bottom: 13px; }
.gas-stepper { list-style: none; margin: 0; padding: 0; }
.gas-step { display: flex; gap: 13px; }
.gas-step__track { display: flex; flex-direction: column; align-items: center; }
.gas-step__track::after { content: ""; flex: 1; width: 3px; min-height: 34px; background: var(--line); }
.gas-step:last-child .gas-step__track::after { display: none; }
.is-done .gas-step__track::after { background: var(--green); }
.is-current .gas-step__track::after { background: linear-gradient(var(--ochre), var(--line)); }
.gas-step__dot { display: flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; border: 2px solid #cdd9d3; border-radius: 50%; background: #fff; color: #fff; }
.is-done .gas-step__dot { border-color: var(--green); background: var(--green); }
.is-done .gas-step__dot .icon { width: 15px; stroke-width: 3; }
.is-current .gas-step__dot { border-color: var(--ochre); background: var(--ochre); box-shadow: 0 0 0 5px var(--ochre-tint); }
.is-current .gas-step__dot::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.gas-step__body { padding-bottom: 16px; font-size: 14px; color: var(--ink-muted); }
.gas-step__title { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.gas-step__caption { display: block; }
.is-current .gas-step__caption { font-weight: 600; color: var(--ochre-ink); }
.is-pending .gas-step__title { color: var(--ink-muted); }
.gas-step__comment { margin: 5px 0 0; }
.gas-bottom { gap: 13px; }
.gas-doc__more, .gas-ask__tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--teal-700); }
.gas-ask__title { margin: 0 0 6px; font-size: 17px; color: var(--teal-700); }
.gas-ask__text { margin: 0; color: #2f4a44; }
@media (min-width: 900px) {
  .gas-head { flex-direction: row; justify-content: space-between; margin-bottom: 22px; }
  .gas-head h1 { font-size: 36px; }
  .gas-progress { padding: 0; border: 0; background: none; }
  .gas-progress__main { display: none; }
  .gas-steps { margin-bottom: 16px; padding: 30px 32px; }
  .gas-stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gas-step { flex-direction: column; gap: 11px; }
  .gas-step__track { flex-direction: row; }
  .gas-step__track::after { height: 4px; min-height: 0; }
  .is-current .gas-step__track::after { background: linear-gradient(90deg, var(--ochre), var(--line)); }
  .gas-step__dot { width: 32px; height: 32px; }
  .gas-step__body { padding: 0 16px 0 0; }
  .gas-step__title { font-size: 17px; }
  .gas-bottom { gap: 16px; }
}

/* === page: chat === */
.chat-page { display: grid; gap: 24px; align-items: start; }
.chat-page__intro .lead + .lead { margin-top: 12px; }
.chat-form__pair { display: grid; gap: 14px; }
.chat-form__note { margin: 0; font-size: 14px; color: var(--ink-muted); }
.chat-form--dark .form__input { border-color: #fff; }
.chat-form--dark .chat-form__note { color: #cfe3dd; }
@media (min-width: 900px) {
  .chat-page { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
  .chat-form__pair { grid-template-columns: 1fr 1fr; }
}

/* === page: service === */
/* 404, 410, 500, «Обращение принято», «Заявка принята»: одна карточка по общим токенам, на 404 поиск по документам. */
.service-card { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.service-card h1 { margin: 0; }
.service-card p { margin: 0; font-size: 18px; color: var(--ink-muted); }
.service-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.service-search { display: grid; gap: 6px; margin-top: 8px; font-weight: 600; }
.service-search__row { display: flex; gap: 8px; }
@media (min-width: 900px) {
  .service-card { padding: 40px; }
  .service-card h1 { font-size: 36px; }
}
/* Скип-линк: скрыт, при фокусе с клавиатуры виден поверх шапки */
.skip-link { position: absolute; left: 8px; top: 8px; z-index: 20; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { width: auto; height: auto; clip: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--teal-700); color: #fff; font-weight: 700; }

/* === 2e: подписка на новости === */
/* Блок «Новости на почту» на главной и внизу списка объявлений, страницы /subscribe/…. */
.subscribe { display: grid; gap: 12px; }
.subscribe h2, .subscribe p { margin: 0; }
.subscribe > p { color: var(--ink-muted); }
.news-main > .subscribe { margin-top: 16px; }
.subscribe-page { display: grid; gap: 16px; max-width: 720px; }
.subscribe-page h1 { margin: 0; }

/* === 2g: подзаголовки и фото в тексте объявления === */
.post__body h2 { margin: 1.4em 0 .5em; font-size: 22px; line-height: 1.25; }
.post__body figure { margin: 0 0 1em; }
.post__body img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
.post__body figcaption { margin-top: 8px; font-size: 15px; color: var(--ink-muted); }
@media (min-width: 900px) {
  .post__body h2 { font-size: 26px; }
}
