/* ==========================================================================
   ЖКХ-Защита · домправо.рф — светлая дизайн-система (редизайн v2, 25.10.2026)
   Подключается после app.css. Классы компонентов — с префиксом ds-.
   Второй блок перекрашивает классы старых страниц (app.css) в светлую тему.
   ========================================================================== */

:root {
  --c-bg: #f4f6fa;
  --c-bg-2: #eaf0f8;
  --c-surface: #ffffff;
  --c-line: #e3e8ef;
  --c-line-2: #cfd8e3;
  --c-text: #0f2747;
  --c-text-2: #2f4462;
  --c-muted: #586a84;
  --c-blue: #1f5fd6;
  --c-blue-ink: #174bb0;
  --c-blue-soft: #eaf1fd;
  --c-cta: #d04a0a;
  --c-cta-hover: #b53f07;
  --c-cta-soft: #fff1e7;
  --c-ok: #137a4b;
  --c-ok-soft: #e8f6ef;
  --c-warn: #8a5a00;
  --c-warn-soft: #fff6dc;
  --c-err: #b42318;
  --c-err-soft: #fdecea;
  --c-navy: #0f2747;
  --r: 16px;
  --r-sm: 10px;
  --sh: 0 1px 2px rgba(15, 39, 71, .06), 0 8px 24px rgba(15, 39, 71, .06);
  --sh-lg: 0 2px 6px rgba(15, 39, 71, .08), 0 24px 48px rgba(15, 39, 71, .12);
  --font: 'Onest', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
  --hdr: 72px;
  --tabbar: 64px;
}

/* ---------- База ---------- */
html { scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font) !important; font-size: 17px; line-height: 1.6;
  color: var(--c-text); background: var(--c-bg) !important; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font) !important; color: var(--c-text); letter-spacing: -.012em; }
a { color: inherit; }
::selection { background: #cfe0fb; }
:focus-visible { outline: 3px solid #8ab4ff; outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }
.ds-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .ds-wrap { padding: 0 28px; } }
.ds-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ds-sr:focus { position: fixed; z-index: 200; top: 10px; left: 10px; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--c-navy); color: #fff; border-radius: 10px; font-weight: 700; }
.ds-muted { color: var(--c-muted); }

/* ---------- Кнопки ---------- */
.ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.3rem;
  border-radius: 12px; border: 1.5px solid transparent; font: 700 1rem/1.15 var(--font); text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .1s;
}
.ds-btn:active { transform: translateY(1px); }
.ds-btn .material-symbols-outlined { font-size: 1.3rem; }
.ds-btn--cta { background: var(--c-cta); color: #fff; box-shadow: 0 6px 16px rgba(208, 74, 10, .25); }
.ds-btn--cta:hover { background: var(--c-cta-hover); }
.ds-btn--blue { background: var(--c-blue); color: #fff; }
.ds-btn--blue:hover { background: var(--c-blue-ink); }
.ds-btn--line { background: #fff; color: var(--c-text); border-color: var(--c-line-2); }
.ds-btn--line:hover { border-color: var(--c-blue); color: var(--c-blue); }
.ds-btn--soft { background: var(--c-blue-soft); color: var(--c-blue-ink); }
.ds-btn--soft:hover { background: #dce8fc; }
.ds-btn--lg { min-height: 58px; padding: 0 1.8rem; font-size: 1.15rem; border-radius: 14px; }
.ds-btn--sm { min-height: 40px; padding: 0 .95rem; font-size: .95rem; border-radius: 10px; }
.ds-btn--block { width: 100%; }
.ds-btn[disabled] { opacity: .6; cursor: wait; }
.ds-link { color: var(--c-blue); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.ds-link:hover { text-decoration: underline; }

/* ---------- Шапка ---------- */
.ds-hdr { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--c-line); }
.ds-hdr__in { height: var(--hdr); display: flex; align-items: center; gap: 22px; }
.ds-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-text); flex-shrink: 0; }
.ds-logo svg { width: 40px; height: 40px; }
.ds-logo__t { display: flex; flex-direction: column; line-height: 1.05; }
.ds-logo__name { font-weight: 800; font-size: 1.15rem; }
.ds-logo__dom { font-size: .78rem; color: var(--c-muted); margin-top: 3px; }
.ds-nav { display: none; align-items: center; gap: 2px; }
.ds-nav__item { position: relative; }
.ds-nav__link {
  display: inline-flex; align-items: center; gap: 3px; height: 42px; padding: 0 12px; border-radius: 10px; border: 0; background: none;
  color: var(--c-text); font: 600 1rem var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.ds-nav__link:hover, .ds-nav__item.is-open > .ds-nav__link, .ds-nav__link[aria-current="page"] { background: var(--c-blue-soft); color: var(--c-blue-ink); }
.ds-nav__link .material-symbols-outlined { font-size: 1.25rem; transition: transform .2s; }
.ds-nav__item.is-open > .ds-nav__link .material-symbols-outlined { transform: rotate(180deg); }
.ds-drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 330px; padding: 8px; background: #fff; border: 1px solid var(--c-line);
  border-radius: 16px; box-shadow: var(--sh-lg); opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility 0s linear .15s; z-index: 70;
}
.ds-nav__item.is-open > .ds-drop { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
.ds-drop a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--c-text); }
.ds-drop a:hover { background: var(--c-bg); }
.ds-drop img { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; background: var(--c-bg); }
.ds-drop b { display: block; font-weight: 700; font-size: .98rem; line-height: 1.25; }
.ds-drop small { display: block; color: var(--c-muted); font-size: .85rem; line-height: 1.35; margin-top: 2px; }
.ds-drop__all { border-top: 1px solid var(--c-line); margin-top: 6px; padding-top: 6px; }
.ds-drop__all a { color: var(--c-blue); font-weight: 700; }
.ds-hdr__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ds-hdr__acc { display: none; }
.ds-hdr__cta { display: none; }
.ds-burger { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--c-line-2); background: #fff; color: var(--c-text); cursor: pointer; }
.ds-burger .material-symbols-outlined { font-size: 1.7rem; }
@media (min-width: 640px) { .ds-hdr__cta { display: inline-flex; } }
@media (min-width: 1150px) {
  .ds-nav { display: flex; }
  .ds-hdr__acc { display: inline-flex; }
  .ds-burger { display: none; }
}

/* ---------- Нижняя панель на телефоне ---------- */
.ds-tabbar {
  /* --ds-floor — высота показанного Floor Ad РСЯ: панель встаёт над ним (watchFloor в layouts/app) */
  position: fixed; left: 0; right: 0; bottom: var(--ds-floor, 0px); z-index: 55; height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  transition: bottom .2s;
  padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
  border-top: 1px solid var(--c-line); box-shadow: 0 -6px 20px rgba(15, 39, 71, .06);
}
.ds-tabbar a, .ds-tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; cursor: pointer;
  color: var(--c-muted); font: 600 .74rem var(--font); text-decoration: none;
}
.ds-tabbar .material-symbols-outlined { font-size: 1.6rem; }
.ds-tabbar .is-active { color: var(--c-blue-ink); }
.ds-tabbar .ds-tabbar__cta { color: var(--c-cta); }
.ds-tabbar .ds-tabbar__cta .material-symbols-outlined { font-variation-settings: 'FILL' 1; }
@media (min-width: 1150px) { .ds-tabbar { display: none; } }
@media (max-width: 1149px) { body { padding-bottom: calc(var(--tabbar) + var(--ds-floor, 0px) + env(safe-area-inset-bottom)); } #chat-fab { bottom: calc(var(--tabbar) + var(--ds-floor, 0px) + 16px) !important; } #chat-window { bottom: calc(var(--tabbar) + var(--ds-floor, 0px) + 84px) !important; } }

/* ---------- Мобильное меню ---------- */
.ds-drawer { position: fixed; inset: 0; z-index: 90; background: #fff; display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.ds-drawer.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
.ds-drawer__top { height: var(--hdr); flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--c-line); }
.ds-drawer__body { flex: 1; overflow-y: auto; padding: 12px 16px 24px; }
.ds-drawer__sec { padding: 14px 0 8px; border-bottom: 1px solid var(--c-line); }
.ds-drawer__sec:last-child { border-bottom: 0; }
.ds-drawer__h { font-size: .82rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; }
.ds-drawer a.ds-mi { display: flex; align-items: center; gap: 14px; padding: 11px 4px; text-decoration: none; color: var(--c-text); font-size: 1.08rem; font-weight: 600; border-radius: 12px; }
.ds-drawer a.ds-mi:hover { background: var(--c-bg); }
.ds-drawer a.ds-mi img { width: 42px; height: 42px; border-radius: 12px; background: var(--c-bg); }
.ds-drawer a.ds-mi .material-symbols-outlined { width: 42px; text-align: center; color: var(--c-blue); font-size: 1.6rem; }
.ds-drawer__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); }
.ds-drawer__foot form { display: contents; }
body.ds-lock { overflow: hidden; }
body.ds-lock #chat-fab, body.ds-lock #chat-window, body.ds-lock #cookie-consent { display: none !important; }

/* ---------- Заголовок раздела ---------- */
.ds-ph { background: linear-gradient(180deg, #eef4fd 0%, #f6f9fd 100%); border-bottom: 1px solid var(--c-line); }
.ds-ph__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 32px; padding-bottom: 32px; max-width: 1152px; }
.ds-ph__eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--c-blue-ink); background: #fff; border: 1px solid #d5e3fb; border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.ds-ph__title { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.12; margin: 0; }
.ds-ph__sub { color: var(--c-text-2); font-size: clamp(1rem, 1.6vw, 1.15rem); margin: 12px 0 0; max-width: 44rem; }
.ds-ph__art { display: none; width: 132px; height: 132px; flex-shrink: 0; border-radius: 28px; background: #fff; box-shadow: var(--sh); }
@media (min-width: 860px) { .ds-ph__art { display: block; } .ds-ph__in { padding-top: 40px; padding-bottom: 40px; } }

/* ---------- Подвал ---------- */
.ds-ftr { background: var(--c-navy); color: #c9d6ea; margin-top: 64px; }
.ds-ftr a { color: #c9d6ea; text-decoration: none; }
.ds-ftr a:hover { color: #fff; text-decoration: underline; }
.ds-ftr__grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 48px; padding-bottom: 32px; }
.ds-ftr__brand { grid-column: 1 / -1; }
@media (min-width: 960px) { .ds-ftr__grid { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); } .ds-ftr__brand { grid-column: auto; } }
.ds-ftr .ds-logo { color: #fff; }
.ds-ftr .ds-logo__dom { color: #9fb2cf; }
.ds-ftr__about { font-size: .95rem; line-height: 1.6; margin: 14px 0 16px; color: #aebfda; max-width: 22rem; }
.ds-ftr h4 { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 14px; }
.ds-ftr__col { display: flex; flex-direction: column; gap: 10px; font-size: .97rem; }
.ds-ftr__contact { display: flex; flex-direction: column; gap: 10px; }
.ds-ftr__contact a { display: inline-flex; align-items: center; gap: 10px; }
.ds-ftr__vk { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: #0077ff; color: #fff; font-weight: 800; font-size: .72rem; }
.ds-ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; color: #9fb2cf; }
.ds-ftr__bottom p { margin: 0; }

/* ---------- Секции и карточки ---------- */
.ds-main { min-height: 60vh; }
.ds-sec { padding: 56px 0; }
@media (min-width: 1024px) { .ds-sec { padding: 72px 0; } }
.ds-sec--white { background: #fff; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.ds-sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; margin-bottom: 28px; }
.ds-h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.15; margin: 0; }
.ds-lead { color: var(--c-text-2); font-size: clamp(1rem, 1.5vw, 1.12rem); margin: 10px 0 0; max-width: 42rem; }
.ds-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); box-shadow: var(--sh); }
.ds-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--c-blue-soft); color: var(--c-blue-ink); }
.ds-pill--ok { background: var(--c-ok-soft); color: var(--c-ok); }
.ds-pill--warn { background: var(--c-warn-soft); color: var(--c-warn); }
.ds-pill--err { background: var(--c-err-soft); color: var(--c-err); }
.ds-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--c-blue-soft); color: var(--c-text-2); font-size: .97rem; }
.ds-note .material-symbols-outlined { color: var(--c-blue); flex-shrink: 0; }
.ds-note--ok { background: var(--c-ok-soft); } .ds-note--ok .material-symbols-outlined { color: var(--c-ok); }
.ds-note--warn { background: var(--c-warn-soft); } .ds-note--warn .material-symbols-outlined { color: var(--c-warn); }
.ds-note--err { background: var(--c-err-soft); color: var(--c-err); } .ds-note--err .material-symbols-outlined { color: var(--c-err); }

/* ---------- Главная ---------- */
.ds-hero { background: linear-gradient(180deg, #fff 0%, #f1f6fd 100%); border-bottom: 1px solid var(--c-line); overflow: hidden; }
.ds-hero__in { display: grid; gap: 28px; align-items: center; padding-top: 36px; padding-bottom: 40px; }
@media (min-width: 1024px) { .ds-hero__in { grid-template-columns: 1.1fr .9fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; } }
.ds-hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; margin: 14px 0 0; }
.ds-hero h1 span { color: var(--c-blue); }
.ds-hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--c-text-2); margin: 16px 0 0; max-width: 36rem; }
.ds-hero__art { display: none; width: 100%; height: auto; mix-blend-mode: multiply; }
@media (min-width: 1024px) { .ds-hero__art { display: block; } }
.ds-ask { margin-top: 24px; padding: 14px; border-radius: 20px; background: #fff; border: 1.5px solid var(--c-line-2); box-shadow: var(--sh-lg); }
.ds-ask label { display: block; font-weight: 700; font-size: 1.05rem; margin: 2px 4px 8px; }
.ds-ask textarea {
  display: block; width: 100%; min-height: 104px; resize: vertical; border: 0; outline: 0; padding: 6px 4px; font: 400 1.08rem/1.55 var(--font);
  color: var(--c-text); background: transparent;
}
.ds-ask textarea::placeholder { color: #8495ad; }
.ds-ask__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--c-line); padding-top: 12px; margin-top: 6px; }
.ds-ask__hint { font-size: .9rem; color: var(--c-muted); display: inline-flex; align-items: center; gap: 6px; }
.ds-ask__hint .material-symbols-outlined { color: var(--c-ok); font-size: 1.2rem; font-variation-settings: 'FILL' 1; }
.ds-ask__match { display: none; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--c-blue-soft); font-size: .95rem; }
.ds-ask__match.is-on { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ds-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--c-text-2); font-size: .95rem; }
.ds-trust li { display: inline-flex; align-items: center; gap: 6px; }
.ds-trust .material-symbols-outlined { color: var(--c-ok); font-size: 1.25rem; font-variation-settings: 'FILL' 1; }

.ds-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .ds-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ds-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.ds-tile {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--c-line);
  text-decoration: none; color: var(--c-text); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ds-tile:hover { border-color: #9cbcf3; box-shadow: var(--sh); transform: translateY(-2px); }
.ds-tile img { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; }
.ds-tile b { display: block; font-size: 1rem; line-height: 1.25; }
.ds-tile small { display: block; font-size: .85rem; color: var(--c-muted); margin-top: 2px; }
.ds-tile--more { justify-content: center; color: var(--c-blue-ink); font-weight: 700; background: var(--c-blue-soft); border-color: #d5e3fb; }
.ds-tile > span, .ds-tool > span, .ds-step > div, .ds-drop a > span, .ds-cta-box__t { min-width: 0; }
.ds-tile b, .ds-tile small, .ds-tool b, .ds-tool small { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 559px) {
  .ds-tiles .ds-tile { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ds-tiles .ds-tile img { width: 48px; height: 48px; }
  .ds-tiles .ds-tile--more { flex-direction: row; align-items: center; justify-content: center; }
  .ds-tiles--list .ds-tile { flex-direction: row; align-items: center; }
}

.ds-steps { display: grid; gap: 14px; counter-reset: st; }
@media (min-width: 900px) { .ds-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ds-step { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--c-line); counter-increment: st; }
.ds-step img { width: 72px; height: 72px; flex-shrink: 0; }
.ds-step h3 { font-size: 1.12rem; font-weight: 800; margin: 2px 0 0; }
.ds-step h3::before { content: counter(st) '. '; color: var(--c-blue); }
.ds-step p { margin: 6px 0 0; color: var(--c-text-2); font-size: .97rem; }

.ds-grid3 { display: grid; gap: 14px; }
@media (min-width: 700px) { .ds-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ds-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ds-tool { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--c-line); text-decoration: none; color: var(--c-text); transition: border-color .15s, box-shadow .15s; }
.ds-tool:hover { border-color: #9cbcf3; box-shadow: var(--sh); }
.ds-tool img { width: 72px; height: 72px; flex-shrink: 0; }
.ds-tool b { display: block; font-size: 1.05rem; }
.ds-tool small { display: block; color: var(--c-muted); font-size: .92rem; margin-top: 3px; line-height: 1.45; }
.ds-art { display: flex; flex-direction: column; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--c-line); text-decoration: none; color: var(--c-text); transition: border-color .15s, box-shadow .15s; }
.ds-art:hover { border-color: #9cbcf3; box-shadow: var(--sh); }
.ds-art b { font-size: 1.05rem; line-height: 1.35; }
.ds-art__img { display: block; width: calc(100% + 36px); max-width: none; margin: -18px -18px 14px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 18px 18px 0 0; background: var(--c-bg-2); }
.ds-art { overflow: hidden; }
.ds-art small { color: var(--c-muted); margin-top: 8px; font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ds-art .ds-link { margin-top: auto; padding-top: 12px; }

.ds-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .ds-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ds-stat { padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--c-line); }
.ds-stat b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--c-blue-ink); line-height: 1.1; }
.ds-stat span { color: var(--c-muted); font-size: .93rem; }

.ds-faq { display: grid; gap: 10px; max-width: 860px; }
.ds-faq details { background: #fff; border: 1px solid var(--c-line); border-radius: 14px; }
.ds-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; cursor: pointer; font-weight: 700; font-size: 1.04rem; }
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary .material-symbols-outlined { color: var(--c-blue); transition: transform .2s; flex-shrink: 0; }
.ds-faq details[open] summary .material-symbols-outlined { transform: rotate(180deg); }
.ds-faq__a { padding: 0 18px 16px; color: var(--c-text-2); }

/* ---------- Форма жалобы ---------- */
.ds-form { padding: 20px; }
@media (min-width: 768px) { .ds-form { padding: 28px; } }
.ds-form__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.ds-form__head h2 { font-size: 1.35rem; font-weight: 800; margin: 0; }
.ds-field { margin-bottom: 18px; }
.ds-field > label, .ds-label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.ds-field > label i, .ds-label i { font-style: normal; color: var(--c-err); }
.ds-input, .ds-field select, .ds-field textarea, .ds-field input[type=text], .ds-field input[type=email], .ds-field input[type=tel] {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--c-line-2); border-radius: 12px; background: #fff;
  font: 400 1.05rem/1.4 var(--font); color: var(--c-text); transition: border-color .15s, box-shadow .15s;
}
.ds-field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.ds-field select { appearance: auto; }
.ds-input:focus, .ds-field select:focus, .ds-field textarea:focus, .ds-field input:focus { outline: 0; border-color: var(--c-blue); box-shadow: 0 0 0 4px rgba(31, 95, 214, .15); }
.ds-field.has-err .ds-input, .ds-field.has-err textarea, .ds-field.has-err input { border-color: var(--c-err); }
.ds-hint { font-size: .9rem; color: var(--c-muted); margin-top: 6px; }
.ds-err { font-size: .92rem; color: var(--c-err); font-weight: 600; margin-top: 6px; }
.ds-row2 { display: grid; gap: 0 16px; }
@media (min-width: 720px) { .ds-row2 { grid-template-columns: 1fr 1fr; } }
.ds-more { border: 1.5px dashed var(--c-line-2); border-radius: 14px; margin-bottom: 18px; background: #fbfcfe; }
.ds-more > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 700; color: var(--c-blue-ink); }
.ds-more > summary::-webkit-details-marker { display: none; }
.ds-more > summary small { font-weight: 500; color: var(--c-muted); }
.ds-more[open] > summary .material-symbols-outlined { transform: rotate(180deg); }
.ds-more__in { padding: 0 16px 6px; }
.ds-check { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; color: var(--c-text-2); cursor: pointer; }
.ds-check input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--c-blue); }
.ds-check a { color: var(--c-blue); font-weight: 600; }
.ds-form__submit { margin-top: 20px; }
.ds-upload { border: 1.5px dashed #b9c8de; border-radius: 14px; padding: 16px; background: #fff; }
.ds-upload.is-drag { border-color: var(--c-blue); background: var(--c-blue-soft); }
.ds-files { display: grid; gap: 8px; margin-top: 12px; }
.ds-file { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--c-line); border-radius: 10px; background: #fff; }
.ds-file img, .ds-file .ds-file__ic { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--c-blue-soft); color: var(--c-blue); }
.ds-file__n { flex: 1; min-width: 0; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-file__s { font-size: .85rem; color: var(--c-muted); }
.ds-file button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--c-muted); cursor: pointer; }
.ds-file button:hover { background: var(--c-err-soft); color: var(--c-err); }
.ds-orgdd { position: absolute; z-index: 50; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--c-line-2); border-radius: 12px; box-shadow: var(--sh-lg); max-height: 300px; overflow-y: auto; }
.ds-orgdd > div { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--c-line); }
.ds-orgdd > div:hover { background: var(--c-bg); }
.ds-orgdd b { display: block; font-size: .97rem; }
.ds-orgdd small { display: block; font-size: .85rem; color: var(--c-muted); }

/* Экран ожидания генерации */
.ds-wait { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 39, 71, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); overflow-y: auto; }
.ds-wait.is-on { display: flex; }
.ds-wait__card { width: 100%; max-width: 560px; background: #fff; border-radius: 22px; box-shadow: var(--sh-lg); padding: 24px; text-align: center; }
.ds-wait__card img { width: 110px; height: 110px; animation: ds-bob 2.4s ease-in-out infinite; }
@keyframes ds-bob { 50% { transform: translateY(-6px); } }
.ds-wait__card h3 { font-size: 1.4rem; font-weight: 800; margin: 8px 0 4px; }
.ds-wait__stage { color: var(--c-text-2); min-height: 1.6em; }
.ds-wait__bar { height: 8px; border-radius: 99px; background: var(--c-bg-2); overflow: hidden; margin: 14px 0 6px; }
.ds-wait__bar > div { height: 100%; width: 5%; background: linear-gradient(90deg, var(--c-blue), #4f8cf0); border-radius: 99px; transition: width .6s ease; }
.ds-wait__ad { margin-top: 16px; }

/* ---------- Результат ---------- */
.ds-res { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) { .ds-res { grid-template-columns: minmax(0, 1fr) 340px; } }
.ds-doc { padding: 24px; }
@media (min-width: 768px) { .ds-doc { padding: 40px 48px; } }
.ds-doc__text { font-size: 1.05rem; line-height: 1.75; color: var(--c-text); white-space: pre-wrap; word-wrap: break-word; }
.ds-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ds-side { display: grid; gap: 14px; }
@media (min-width: 1024px) { .ds-side { position: sticky; top: calc(var(--hdr) + 16px); } }
.ds-dl { display: grid; gap: 10px; padding: 18px; }
.ds-deadline { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--c-bg); }
.ds-deadline .material-symbols-outlined { color: var(--c-blue); }
.ds-deadline b { display: block; }
.ds-deadline small { color: var(--c-muted); }

/* ---------- Кабинет ---------- */
.ds-list { display: grid; gap: 10px; }
.ds-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--c-line); }
.ds-item__main { flex: 1; min-width: 220px; }
.ds-item__main a { font-weight: 700; color: var(--c-text); text-decoration: none; }
.ds-item__main a:hover { color: var(--c-blue); }
.ds-item__meta { font-size: .9rem; color: var(--c-muted); margin-top: 3px; }

/* ---------- Призыв в статьях ---------- */
.ds-cta-box { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 18px; margin: 28px 0; border-radius: 18px; background: linear-gradient(135deg, #fff7f0 0%, #fff 60%); border: 1.5px solid #f7c9a8; }
.ds-cta-box img { width: 80px; height: 80px; flex-shrink: 0; mix-blend-mode: multiply; }
.ds-mul { mix-blend-mode: multiply; }
/* 3D-иконки вместо шрифтовых в карточках (partials/ico): белый фон картинки растворяется в фоне карточки */
.ds-ico { display: inline-block; flex-shrink: 0; object-fit: contain; border-radius: 12px; mix-blend-mode: multiply; vertical-align: middle; }
.ds-cta-box__t { flex: 1; min-width: 220px; }
.ds-cta-box__t b { display: block; font-size: 1.15rem; line-height: 1.3; color: var(--c-text); }
.ds-cta-box__t span { display: block; color: var(--c-text-2); font-size: .97rem; margin-top: 4px; }

/* ---------- Реклама ---------- */
.ds-ad { margin: 24px auto; max-width: 970px; text-align: center; }
.ds-ad__label { display: block; font-size: .72rem; color: #8a99b0; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.ds-ad__box { min-height: 250px; }
.ds-ad--empty { height: 0; margin: 0 !important; overflow: hidden; }
.ds-ad--empty .ds-ad__box { min-height: 0 !important; }
.ds-ad--sidebar { position: sticky; top: calc(var(--hdr) + 16px); margin: 0; }
.ds-ad--sidebar .ds-ad__box { min-height: 600px; }
.ds-ad--wait .ds-ad__box { min-height: 250px; }

/* ---------- Список городов ---------- */
.ds-cities { columns: 1; column-gap: 32px; }
@media (min-width: 640px) { .ds-cities { columns: 2; } }
@media (min-width: 1024px) { .ds-cities { columns: 4; } }
.ds-cities section { break-inside: avoid; margin-bottom: 18px; }
.ds-cities h3 { font-size: 1.2rem; color: var(--c-blue); margin: 0 0 6px; }
.ds-cities a { display: block; padding: 4px 0; color: var(--c-text); text-decoration: none; }
.ds-cities a:hover { color: var(--c-blue); text-decoration: underline; }
.ds-cities small { color: var(--c-muted); }

/* ==========================================================================
   Перекраска классов старых страниц (app.css собран под тёмную тему)
   ========================================================================== */
.bg-background, .bg-surface { background-color: var(--c-bg) !important; }
.bg-surface-container, .bg-surface-container-lowest, .bg-white, .bg-white\/95, .bg-white\/90, .bg-white\/85, .bg-white\/80 { background-color: #fff !important; }
.bg-surface-container-low, .bg-gray-50, .bg-slate-50 { background-color: var(--c-bg) !important; }
.hover\:bg-surface-container-low:hover, .hover\:bg-gray-50:hover, .hover\:bg-gray-100:hover { background-color: var(--c-bg-2) !important; }
.bg-surface-container-high, .bg-surface-container-highest, .bg-gray-100, .bg-gray-200, .bg-slate-100 { background-color: #e6ecf4 !important; }
.bg-\[\#eaedf1\], .bg-\[\#f2f4f6\], .bg-\[\#f8f9fb\], .bg-\[\#f2f4f6\]\/50 { background-color: var(--c-bg) !important; }
.bg-\[\#2c3e50\] { background-color: var(--c-navy) !important; }
.bg-white\/5, .bg-white\/10 { background-color: #fff !important; }
.text-on-surface, .text-\[\#2c3e50\], .text-gray-900, .text-gray-800, .text-slate-900, .text-slate-800 { color: var(--c-text) !important; }
.text-on-surface-variant, .text-gray-500, .text-slate-500, .text-gray-400, .text-slate-400 { color: var(--c-muted) !important; }
.text-secondary, .text-gray-700, .text-gray-600, .text-slate-700, .text-slate-600 { color: var(--c-text-2) !important; }
[class*="text-secondary\/"] { color: var(--c-muted) !important; }
.text-primary, .text-primary-fixed-dim, .text-blue-600, .text-blue-700 { color: var(--c-blue) !important; }
.text-primary-container, .text-primary-dark { color: var(--c-blue-ink) !important; }
.bg-primary, .hover\:bg-primary:hover { background-color: var(--c-blue) !important; }
.hover\:bg-primary-dark:hover, .hover\:bg-primary-container:hover { background-color: var(--c-blue-ink) !important; }
[class*="bg-primary\/"] { background-color: var(--c-blue-soft) !important; }
.hover\:text-primary:hover, .hover\:text-primary-container:hover { color: var(--c-blue) !important; }
.border-primary { border-color: var(--c-blue) !important; }
[class*="border-primary\/"] { border-color: #bcd2f7 !important; }
.ring-primary { --tw-ring-color: var(--c-blue) !important; }
.ring-background { --tw-ring-color: var(--c-bg) !important; }
.border-outline-variant, [class*="border-outline-variant\/"], .border-surface-container, .border-surface-container-high, .border-surface-container-highest,
.border-gray-100, .border-gray-200, .border-gray-300, .border-slate-200, .border-white\/10, .border-white\/5, [class*="border-white\/"] { border-color: var(--c-line) !important; }
.divide-gray-100 > :not([hidden]) ~ :not([hidden]), .divide-gray-200 > :not([hidden]) ~ :not([hidden]) { border-color: var(--c-line) !important; }
.text-error { color: var(--c-err) !important; }
.hero-gradient { background: linear-gradient(135deg, #2a6be0 0%, #174bb0 100%) !important; color: #fff !important; }
.btn-primary {
  background: var(--c-cta) !important; color: #fff !important; display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem;
  border-radius: 12px !important; font-weight: 700 !important; box-shadow: 0 6px 16px rgba(208, 74, 10, .22) !important; transition: background-color .15s;
}
.btn-primary:hover { background: var(--c-cta-hover) !important; transform: none !important; }
.btn-outline { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: 12px; border: 1.5px solid var(--c-line-2) !important; color: var(--c-text) !important; font-weight: 700; background: #fff; }
.btn-outline:hover { border-color: var(--c-blue) !important; color: var(--c-blue) !important; }
.input {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--c-line-2); background: #fff !important; color: var(--c-text);
  font: 400 1.05rem/1.4 var(--font); transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #8495ad; }
.input:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 4px rgba(31, 95, 214, .15); }
.label { display: block; font-size: 1rem; font-weight: 700; color: var(--c-text); margin-bottom: 6px; }
.chip { display: inline-flex; align-items: center; gap: .25rem; padding: .3rem .8rem; border-radius: 9999px; font-size: .82rem; font-weight: 700; }
.chip-neutral { background: #eef2f7; color: var(--c-text-2); }
.chip-primary { background: var(--c-blue-soft) !important; color: var(--c-blue-ink) !important; }
.chip-success { background: var(--c-ok-soft); color: var(--c-ok); }
.chip-warning { background: var(--c-warn-soft); color: var(--c-warn); }
.card { background: #fff !important; padding: 1.75rem; border-radius: var(--r) !important; border: 1px solid var(--c-line) !important; box-shadow: var(--sh) !important; }
.prose-doc p { margin-bottom: 1rem; line-height: 1.75; color: var(--c-text-2); }
.prose-doc h1, .prose-doc h2, .prose-doc h3 { color: var(--c-text); font-weight: 800; margin: 1.5rem 0 .75rem; }
.prose-doc a { color: var(--c-blue); }
.article-body, .faq-content { color: var(--c-text-2); font-size: 1.06rem; line-height: 1.75; }
.article-body a, .faq-content a { color: var(--c-blue) !important; text-decoration: underline; text-underline-offset: 2px; }
/* Текст статей из базы: app.css сбрасывает отступы и маркеры списков */
.article-body p, .faq-content p { margin: 0 0 1em; }
.article-body h2 { font-size: 1.5rem; font-weight: 800; margin: 1.6em 0 .6em; color: var(--c-text); }
.article-body h3 { font-size: 1.22rem; font-weight: 800; margin: 1.4em 0 .5em; color: var(--c-text); }
.article-body h4 { font-size: 1.08rem; font-weight: 700; margin: 1.2em 0 .4em; color: var(--c-text); }
.article-body ul, .faq-content ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.article-body ol, .faq-content ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 1em; }
.article-body li, .faq-content li { margin: .3em 0; }
.article-body blockquote { margin: 1em 0; padding: 12px 16px; border-left: 4px solid var(--c-blue); background: var(--c-blue-soft); border-radius: 0 12px 12px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .97rem; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--c-line-2); padding: 8px 10px; text-align: left; vertical-align: top; }
.article-body th { background: var(--c-bg); }
.article-body strong, .article-body b { color: var(--c-text) !important; }
.article-body h1 { font-size: 1.8rem; font-weight: 800; margin: 0 0 .6em; }
.ambient-shadow, .ambient-shadow-lg { box-shadow: var(--sh) !important; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
nav[aria-label="Хлебные крошки"] ol { gap: .25rem .55rem !important; font-size: .95rem; }
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill { -webkit-text-fill-color: var(--c-text) !important; -webkit-box-shadow: 0 0 0 1000px #fff inset !important; }

/* Карточки «Куда жаловаться» (класс border-white/8 в app.css не собран) */
.kz-card { border: 1.5px solid var(--c-line) !important; background: #fff !important; }
.kz-card:hover { border-color: var(--c-blue) !important; background: var(--c-blue-soft) !important; }

/* Cookie-баннер и чат поддержки */
#cookie-consent > div > div { background: var(--c-navy) !important; border-radius: 18px !important; }
#cookie-consent button:first-child { background: var(--c-cta) !important; color: #fff !important; }
#cookie-consent button:last-child { background: rgba(255, 255, 255, .14) !important; color: #fff !important; }
@media (max-width: 1149px) { #cookie-consent { bottom: calc(var(--tabbar) + var(--ds-floor, 0px) + env(safe-area-inset-bottom)) !important; } }

@media print {
  .ds-hdr, .ds-tabbar, .ds-ftr, .ds-side, .ds-ad, #support-chat-widget, #cookie-consent, .ds-noprint { display: none !important; }
  body { background: #fff !important; padding: 0 !important; }
  .ds-doc { box-shadow: none !important; border: 0 !important; padding: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
