/* СГЕНЕРИРОВАНО tools/dark/gen_dark.py — руками не править, правки в tools/dark/manual.css */
html[data-theme="dark"] .btn--ghost { color: #7cc29b; }
html[data-theme="dark"] .site-header { background:  rgba(20,24,21,0.92); border-bottom:  1px solid rgba(48,59,52,0.6); }
@media (max-width: 1023px) {
html[data-theme="dark"] .site-header { background:  rgba(20,24,21,0.97); }
}
html[data-theme="dark"] .logo { color: #7cc29b; }
html[data-theme="dark"] .nav a:hover { color: #7cc29b; }
html[data-theme="dark"] .nav__cta { color: #7cc29b; }
html[data-theme="dark"] .site-header__right .btn { color: #7cc29b; }
html[data-theme="dark"] .site-header.is-scrolled { background:  rgba(20,24,21,0.98); }
html[data-theme="dark"] .service-card__more { color: #7cc29b; }
html[data-theme="dark"] .service-sub-card h4 { color: #7cc29b; }
html[data-theme="dark"] .price-card__title { color: #7cc29b; }
html[data-theme="dark"] .village-card__media { background:  #1a201d; }
html[data-theme="dark"] .village-card__body h3 { color: #7cc29b; }
html[data-theme="dark"] .village-card__from-item { color: #7cc29b; }
html[data-theme="dark"] .village__map-box { background:  #1a201d; }
html[data-theme="dark"] .village__map-box #ymap { background:  #1a201d; }
html[data-theme="dark"] .village__scheme-wrap { background:  #1f1f1a; }
html[data-theme="dark"] .amenity-card__label { color: #7cc29b; }
html[data-theme="dark"] .village__meta { background:  #1e1d19; border:  1px solid #3b3930; }
html[data-theme="dark"] .vfacts__tile { background:  #141815; }
html[data-theme="dark"] .vfacts__tile b { color: #7cc29b; }
html[data-theme="dark"] .village__head .agent-reveal__form input { border:  1px solid #3e3a2d; background:  #141815; }
html[data-theme="dark"] .village__aside-card { background:  #141815; }
html[data-theme="dark"] .village__aside-card > div { border-bottom:  1px dashed #393832; }
html[data-theme="dark"] .village__aside-card > div b { color: #7cc29b; }
html[data-theme="dark"] .village__map-solo { background:  #1a201d; }
html[data-theme="dark"] .prop-card__media { background:  #1a201d; }
html[data-theme="dark"] .prop-card__price { color: #7cc29b; }
html[data-theme="dark"] .placeholder { background:  linear-gradient(135deg, #24241f, #29322d); color:  rgba(237,237,237,0.4); }
html[data-theme="dark"] .reviews-nav__btn { background:  #141815; color: #7cc29b; }
html[data-theme="dark"] .tabs__item.is-active { color: #7cc29b; }
html[data-theme="dark"] .filter-block select, html[data-theme="dark"] .filter-block input[type=number], html[data-theme="dark"] .filter-block input[type=text], html[data-theme="dark"] .filter-block input[type=search] { background:  #141815; }
html[data-theme="dark"] .agent-card__name { color: #7cc29b; }
html[data-theme="dark"] .agent-profile__contacts a { color: #7cc29b; }
html[data-theme="dark"] .agent-card-profile__contacts a { color: #7cc29b; }
html[data-theme="dark"] .honor-card__name { color: #7cc29b; }
html[data-theme="dark"] .construction-group__title { color: #7cc29b; }
html[data-theme="dark"] .construction-card__title { color: #7cc29b; }
html[data-theme="dark"] .equipment { color: #7cc29b; }
html[data-theme="dark"] .mapdot { border:  2px solid #303b34; }
html[data-theme="dark"] .mapclu { border:  2px solid #303b34; }
html[data-theme="dark"] .services-group__title { color: #7cc29b; }
html[data-theme="dark"] .service-row__title { color: #7cc29b; }
html[data-theme="dark"] .scope-toggle__item:hover span { color:  #99e6b5; }
html[data-theme="dark"] .breadcrumbs__kind { color:  var(--accent-dark, #d0bd9b); }
html[data-theme="dark"] .gallery__main { background:  #1a201d; }
html[data-theme="dark"] .gallery__thumbs:hover::-webkit-scrollbar-thumb { background:  #2b352f; }
html[data-theme="dark"] .gallery__thumb { background-color:  #1a201d; }
html[data-theme="dark"] .property__price { color: #7cc29b; }
html[data-theme="dark"] .comm--green .comm__tick { color:  #a4d8b7; background:  #19211c; }
html[data-theme="dark"] .comm--yellow .comm__tick { color:  #f2d287; background:  #2c2715; }
html[data-theme="dark"] .fin-badge--install { background:  #1a201c; color:  #b6e3c6; border:  1px solid #303b34; }
html[data-theme="dark"] .fin-badge--mortgage { background:  #251f14; color:  #e9ce9d; border:  1px solid #423a29; }
html[data-theme="dark"] .fin-badge--gold { background:  #292417; color:  #ebd5a5; }
html[data-theme="dark"] .property__stats { background:  #111922; border:  1px solid #263445; }
html[data-theme="dark"] .property__stats h4 { color:  #96bbe3; }
html[data-theme="dark"] .property__stat { background:  #141815; border:  1px solid #273544; }
html[data-theme="dark"] .property__stat b { color:  #bed1ea; }
html[data-theme="dark"] .property__notes { background:  #252012; }
html[data-theme="dark"] .property__notes h4 { color:  #f5dfa4; }
html[data-theme="dark"] .property__notes h4 span { color:  #d8c493; background:  #2f2918; }
html[data-theme="dark"] .property__notes-body { color:  #ecdeb5; }
html[data-theme="dark"] .notes-comm { color:  #f0e5c5; }
html[data-theme="dark"] .notes-client { background:  #141815; color:  #dae2de; }
html[data-theme="dark"] .notes-client__t { color:  #e5d4a6; }
html[data-theme="dark"] .notes-client a { color:  #c9e3d7; }
html[data-theme="dark"] .agent-reveal__btn { color:  #ecdeb5; background:  #252012; }
html[data-theme="dark"] .agent-reveal__btn:hover { background:  #2f2918; }
html[data-theme="dark"] .agent-reveal__form input { border:  1px solid #3e3a2d; }
html[data-theme="dark"] .agent-reveal__err { color:  #d9928a; }
html[data-theme="dark"] .prose strong { color: #7cc29b; }
html[data-theme="dark"] .village-search input { background:  #141815; }
html[data-theme="dark"] .page-stat { background:  #141815; }
html[data-theme="dark"] .page-stat__num { color: #7cc29b; }
html[data-theme="dark"] .principle { background:  #141815; }
html[data-theme="dark"] .principle h3 { color: #7cc29b; }
html[data-theme="dark"] .contact-card { background:  #141815; }
html[data-theme="dark"] .contact-card__value { color: #7cc29b; }
html[data-theme="dark"] .contact-card__icon { color: #7cc29b; }
html[data-theme="dark"] .contacts-form { background:  #141815; }
html[data-theme="dark"] .contacts-form h2 { color: #7cc29b; }
html[data-theme="dark"] .contacts-form .form__success { background:  #1a221d; color:  #aee5c1; }
html[data-theme="dark"] .contacts-form .form__error { background:  #231513; color:  #e49090; }
html[data-theme="dark"] .form-field input, html[data-theme="dark"] .form-field textarea { background:  #1b1b17; }
html[data-theme="dark"] .form-field input:focus, html[data-theme="dark"] .form-field textarea:focus { background:  #141815; }
html[data-theme="dark"] .about-card { background:  #141815; }
html[data-theme="dark"] .about-card h3 { color: #7cc29b; }
html[data-theme="dark"] .about-feature__item { background:  #141815; }
html[data-theme="dark"] .about-feature__num { color: #7cc29b; }
html[data-theme="dark"] .about-quote { background:  #141815; }
html[data-theme="dark"] .geo-list li { background:  #141815; }
html[data-theme="dark"] .form input[type=text], html[data-theme="dark"] .form input[type=tel], html[data-theme="dark"] .form input[type=email], html[data-theme="dark"] .form input[type=password], html[data-theme="dark"] .form input[type=number], html[data-theme="dark"] .form select, html[data-theme="dark"] .form textarea { background:  #141815; }
html[data-theme="dark"] .filepick { background:  #141815; }
html[data-theme="dark"] .form__success { color:  #aee5c1; }
html[data-theme="dark"] .modal__dialog { background:  #141815; }
html[data-theme="dark"] .modal__dialog h3 { color: #7cc29b; }
html[data-theme="dark"] .prop-card__price-old { color:  #e49090; }
html[data-theme="dark"] .prop-card__price--discounted { color:  #aee5c1; }
html[data-theme="dark"] .property__price-old { color:  #e49090; }
html[data-theme="dark"] .property__price--discounted { color:  #aee5c1  !important; }
html[data-theme="dark"] .team-card__name { color: #7cc29b; }
@media (max-width: 900px) {
html[data-theme="dark"] .maz-heading { color: #7cc29b; }
}
html[data-theme="dark"] .village-filter__chip:hover { color: #7cc29b; }
html[data-theme="dark"] .hw-multi__reset:hover { color: #7cc29b; }
html[data-theme="dark"] .agent-add__row button { color:  #daecf1; }
html[data-theme="dark"] .pcalc__pill.is-on { color:  #dde7e1; }
html[data-theme="dark"] .pcalc input[type="range"]::-webkit-slider-thumb { background:  #141815; }
html[data-theme="dark"] .pcalc input[type="range"]::-moz-range-thumb { background:  #141815; }
html[data-theme="dark"] .pcalc__cta .btn--ghost:hover { color:  #dde7e1; background:  #141815; border-color:  #303b34; }
html[data-theme="dark"] .notfound__title { color: #7cc29b; }
html[data-theme="dark"] .farm-ideas__text h2 { color: #7cc29b; }
html[data-theme="dark"] .farm-idea b { color: #7cc29b; }
html[data-theme="dark"] .farm-arrow { background:  #141815; color: #7cc29b; }
html[data-theme="dark"] .farm-rv { background:  #141815; }
html[data-theme="dark"] .farm-rv__play { background:  rgba(20,24,21,0.92); }
html[data-theme="dark"] .farm-vmodal__close { background:  #141815; }
html[data-theme="dark"] .farm-lead .btn--ghost { border-color:  rgba(48,59,52,0.6); }
html[data-theme="dark"] .farm-lead .btn--ghost:hover { background:  #141815; color: #7cc29b; }
html[data-theme="dark"] .flats-back:hover { border-color:  rgba(48,59,52,0.6); }
html[data-theme="dark"] .rooms-pills__item:hover span { color:  #99e6b5; }
html[data-theme="dark"] .map-price { background:  #141815; }
html[data-theme="dark"] .collapse-toggle { color: #7cc29b; }
html[data-theme="dark"] .collapse-sec__btn { color: #7cc29b; }
html[data-theme="dark"] .sim-item__body b { color: #7cc29b; }
html[data-theme="dark"] .property__notes .collapse-toggle { color:  #f5dfa4; }
/* ── Ручная часть тёмной темы (tools/dark/manual.css) ─────────────────────── */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg-light: #1a201d;
  --bg-section: #141917;
  --surface: #0f1412;
  --text: #e3e8e4;
  --text-muted: #9aa59f;
  --border: #2a322e;
  --primary: #2b6a4a;          /* фон кнопок и зелёных блоков; зелёный ТЕКСТ генератор делает #7cc29b */
  --primary-dark: #1f4f37;
  --graphite: #1a201d;          /* фон подвала и градиентов — остаётся тёмным */
  --shadow: 0 4px 24px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] body { background: var(--surface); color: var(--text); }
html[data-theme="dark"] .site-header { background: rgba(15, 20, 18, .94); border-bottom-color: #222a26; }
@media (max-width: 1023px) { html[data-theme="dark"] .site-header { background: rgba(15, 20, 18, .98); } }
html[data-theme="dark"] .logo, html[data-theme="dark"] .logo__text { color: #d9e4dd; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea {
  background-color: #161c19; color: var(--text); border-color: #313a35;
}
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #75807a; }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4 { color: #eef2ef; }
html[data-theme="dark"] .breadcrumbs a { color: #b9c3bd; }
/* фото чуть приглушаем, чтобы не слепили на тёмном */
html[data-theme="dark"] img:not(.logo img) { filter: brightness(.94); }
/* карты Яндекса и схемы — как есть, у них свои цвета */
html[data-theme="dark"] [class*="ymaps"] img, html[data-theme="dark"] .genplan__stage img { filter: none; }

/* Кнопка темы — в подвале (тёмный фон в обеих темах) */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 14px; padding: 6px 14px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: transparent;
  color: #cbd2cc; font: inherit; font-size: 13px; vertical-align: middle; transition: background .2s, color .2s, border-color .2s;
}
.theme-toggle:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); }
.theme-toggle svg { width: 15px; height: 15px; flex: 0 0 auto; }
.theme-toggle .ic-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
/* Точечные правки */
html[data-theme="dark"] .village__head .share__btn { color: #7cc29b; border-color: #3d7a5a; }
html[data-theme="dark"] .village__head .share__btn:hover { background: var(--primary); color: #fff; }
html[data-theme="dark"] .genplan__chip { background: #1a201d; color: #d5ddd8; border-color: #2e3732; }
html[data-theme="dark"] .genplan__chip.is-on { background: #e3e8e4; color: #0f1412; border-color: #e3e8e4; }
html[data-theme="dark"] .genplan__chip b { color: inherit; }
html[data-theme="dark"] .hero .btn--ghost { color: #1f4734; }   /* белая кнопка на видео — текст остаётся тёмно-зелёным */
html[data-theme="dark"] .hero .btn--ghost:hover { color: #fff; }
html[data-theme="dark"] .property__notes-body { --fade-bg: #252012; }
html[data-theme="dark"] .property__notes .collapse-toggle { color: #f5dfa4; }
html[data-theme="dark"] .property__notes h4 .collapse-toggle span { background: none; color: inherit; }

