/* ─── Тема dom24-2026: то, чего нет в черновике ───
   Окно выбора города, страницы из админки (статья «Полезное», 404),
   служебные классы WordPress. Цвета — токены дизайн-системы Стройки
   из styles.css, поэтому обе темы (светлая и тёмная) работают сами. */

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ── окно городов ── */
.city-picker[hidden] { display: none !important; }
.city-picker {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  padding: 16px; background: rgba(8, 28, 16, .62); backdrop-filter: blur(4px);
}
.city-picker__panel {
  width: min(760px, 100%); max-height: min(86vh, 760px); display: flex; flex-direction: column;
  background: var(--c-surface); color: var(--c-ink); border: 1px solid var(--c-line);
  border-radius: 22px; box-shadow: var(--shadow-l, 0 30px 80px rgba(0,0,0,.3)); overflow: hidden;
}
.city-picker__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; background: linear-gradient(140deg, #0a3a1b, #116828); color: #fff;
}
.city-picker__head h2 { margin: 0; font-size: 20px; color: #fff; }
.city-picker__close {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.city-picker__search { display: block; padding: 16px 22px 8px; }
.city-picker__search input {
  width: 100%; min-height: 50px; padding: 0 16px; font: inherit; font-size: 17px;
  border: 2px solid var(--c-line); border-radius: 14px; background: var(--c-page); color: var(--c-ink);
}
.city-picker__search input:focus { outline: none; border-color: var(--green-mid, #1f9a44); }
.city-picker__list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px;
  padding: 8px 22px 22px; overflow-y: auto;
}
.city-picker__list button {
  min-height: 46px; padding: 8px 12px; text-align: left; font: inherit; font-size: 16px;
  border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-page); color: var(--c-ink); cursor: pointer;
}
.city-picker__list button:hover, .city-picker__list button:focus-visible {
  border-color: var(--acc, #FBB701); background: var(--acc-tint, #FFF8E6); outline: none;
}
.city-picker__empty { padding: 0 22px 22px; margin: 0; color: var(--c-ink-muted); }

/* ── страницы из админки: статья, поиск, 404 ── */
.stranica-wp { padding-top: calc(var(--header-h, 78px) + 24px); }
.statya { max-width: 820px; }
.statya h1 { color: var(--c-headline); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; margin: 10px 0 12px; }
.statya h2, .statya h3 { color: var(--c-headline); margin: 1.6em 0 .6em; }
.statya p, .statya li { font-size: 18px; line-height: 1.7; color: var(--c-ink); }
.statya a:not(.btn) { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.statya img { max-width: 100%; height: auto; border-radius: 16px; }
.statya__data { color: var(--c-ink-muted); font-size: 15px; }
.statya__oblozhka { margin: 18px 0 24px; }
.statya__nazad { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.statya__spisok { padding: 0; list-style: none; }
.statya__spisok li { padding: 14px 0; border-bottom: 1px solid var(--c-line); }

/* Служебная разметка Contact Form 7 на странице не нужна: заявки уходят
   скриптом из форм черновика. Прячем, если плагин что-то добавит сам. */
.wpcf7-response-output:empty { display: none; }

/* 25.09, 02:4x (952): «На дом24 вопрос-ответ внизу под футером ещё одна».
   Этот аккордеон печатает плагин kw-seo-helper в wp_footer и скриптом
   переносит после .about-section старой темы. В новой теме свой блок
   «Вопрос-ответ» с теми же восемью вопросами (сверено), так что плагинный —
   дубль под подвалом. Разметку FAQPage для поиска плагин выводит отдельно,
   в head, — она остаётся и описывает видимый блок темы. */
#kw-dom-faq { display: none !important; }
/* Тем же плагином и так же под подвал выводится «Полезное — о выборе дома»
   (#kw-dom-blog). В теме свой раздел «Полезное» (#blog) со ссылкой на ту же
   статью — внутренняя ссылка для поиска остаётся. */
#kw-dom-blog { display: none !important; }

/* ── окно покупки сертификата (17.10, dom24.js «Покупка сертификата») ── */
.okno-kupit {
  width: min(520px, calc(100% - 32px)); padding: 26px 24px 22px; border: 1px solid var(--c-line);
  border-radius: 22px; background: var(--c-surface); color: var(--c-ink);
  box-shadow: var(--shadow-l, 0 30px 80px rgba(0,0,0,.3));
}
.okno-kupit::backdrop { background: rgba(7, 22, 13, .62); backdrop-filter: blur(3px); }
.okno-kupit h3 { margin: 0 34px 12px 0; font-size: 22px; line-height: 1.25; }
.okno-kupit p { margin: 0 0 12px; color: var(--c-ink-muted); font-size: 16px; line-height: 1.5; }
.okno-kupit__zakryt {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--acc-tint); color: var(--c-ink); font-size: 24px; line-height: 1; cursor: pointer;
}
.okno-kupit__forma { display: grid; gap: 12px; }
.okno-kupit__forma label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.okno-kupit__forma input[type="text"], .okno-kupit__forma input[type="email"] {
  min-height: 50px; padding: 10px 14px; border: 1px solid var(--c-line); border-radius: 12px;
  background: var(--c-page); color: var(--c-ink); font: inherit; font-weight: 500;
}
.okno-kupit__soglasie { grid-template-columns: auto 1fr; align-items: start; font-weight: 500 !important; }
.okno-kupit__soglasie input { width: 22px; height: 22px; margin: 1px 0 0; }
.okno-kupit__forma .btn { justify-content: center; }
.okno-kupit__lovushka { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.okno-kupit__status:empty { display: none; }
.okno-kupit__kod { font-size: 26px !important; font-weight: 800; color: var(--c-ink) !important; letter-spacing: .04em; }
