@import url("/css/fonts-tildasans.css");

.zhm-v2-footer {
  margin: 0;
  padding: 56px 24px 22px;
  background: #0d281c;
  color: #dce9e1;
  font-family: "TildaSans", Arial, sans-serif;
}

.zhm-v2-footer *,
.zhm-v2-footer *::before,
.zhm-v2-footer *::after {
  box-sizing: border-box;
}

.zhm-v2-footer__main {
  display: grid;
  grid-template-columns: 1.55fr repeat(4, 1fr);
  gap: 38px;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.zhm-v2-footer__main > div {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.zhm-v2-footer strong {
  margin-bottom: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.zhm-v2-footer a,
.zhm-v2-footer span {
  color: #c8d8cf;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.zhm-v2-footer a:hover {
  color: #fff;
}

.zhm-v2-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px !important;
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 900;
}

.zhm-v2-footer__logo span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: #2a8b67;
  color: #fff;
  font-weight: 900;
}

.zhm-v2-footer__brand p {
  max-width: 300px;
  margin: 5px 0;
  color: #c8d8cf;
  font-size: 14px;
  line-height: 1.5;
}

.zhm-v2-footer__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px !important;
}

.zhm-v2-footer__facts span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  font-size: 11px;
}

.zhm-v2-footer__phone {
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 800;
}

.zhm-v2-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 4px;
  padding: 0 15px;
  border-radius: 11px;
  background: #fff;
  color: #0d281c !important;
  border: 0;
  font: 800 13px/1.2 "TildaSans", Arial, sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.zhm-v2-footer__cta:hover {
  background: #e9f6ef;
  color: #0d281c !important;
}

.zhm-v2-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1200px, 100%);
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* Старый компактный блок скрываем, но уведомление о cookies сохраняем. */
.zhm-shared-footer-ready .zhm-legal-footer__wrap {
  display: none !important;
}

.zhm-modal-open {
  overflow: hidden !important;
}

.zhm-footer-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 24, 16, .72);
  backdrop-filter: blur(7px);
  font-family: "TildaSans", Arial, sans-serif;
}

.zhm-footer-modal *,
.zhm-footer-modal *::before,
.zhm-footer-modal *::after {
  box-sizing: border-box;
}

.zhm-footer-modal.is-open,
.zhm-footer-modal:target {
  display: flex;
}

.zhm-footer-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 42px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .3);
  color: #102018;
}

.zhm-footer-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf4f0;
  color: #102018;
  font: 26px/1 Arial, sans-serif;
  cursor: pointer;
}

.zhm-footer-modal__kicker {
  color: #287c5d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.zhm-footer-modal h2 {
  margin: 10px 50px 10px 0;
  color: #102018;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.zhm-footer-modal__dialog > p {
  max-width: 600px;
  margin: 0 0 26px;
  color: #66736c;
  font-size: 16px;
  line-height: 1.55;
}

.zhm-footer-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.zhm-footer-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #22352a;
  font-size: 13px;
  font-weight: 800;
}

.zhm-footer-form input,
.zhm-footer-form textarea {
  width: 100%;
  margin: 0;
  padding: 14px 15px;
  border: 1px solid #cad9d1;
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: #102018;
  font: 15px/1.4 "TildaSans", Arial, sans-serif;
}

.zhm-footer-form input:focus,
.zhm-footer-form textarea:focus {
  border-color: #287c5d;
  box-shadow: 0 0 0 3px rgba(40, 124, 93, .12);
}

.zhm-footer-form__wide {
  grid-column: 1 / -1;
}

.zhm-footer-form__file {
  padding: 14px;
  border: 1px dashed #aabfb4;
  border-radius: 14px;
  background: #f5f9f7;
}

.zhm-footer-form__file input {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.zhm-footer-form__file small {
  color: #718078;
  font-size: 12px;
  font-weight: 500;
}

.zhm-footer-form__consent {
  flex-direction: row !important;
  align-items: flex-start;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4;
}

.zhm-footer-form__consent input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  padding: 0;
  accent-color: #287c5d;
}

.zhm-footer-form__consent a {
  color: #287c5d;
}

.zhm-footer-form__submit {
  min-height: 52px;
  border: 0;
  border-radius: 13px;
  background: #247a59;
  color: #fff;
  font: 800 15px/1 "TildaSans", Arial, sans-serif;
  cursor: pointer;
}

.zhm-footer-form__submit:disabled {
  cursor: wait;
  opacity: .65;
}

.zhm-footer-form__result {
  min-height: 20px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.zhm-footer-form__result.is-success { color: #1a714e; }
.zhm-footer-form__result.is-error { color: #b73333; }
.zhm-footer-form__result.is-warning { color: #9b6400; }
.zhm-footer-form__hp { position: absolute !important; left: -9999px !important; }

.zhm-footer-modal__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.zhm-footer-modal__contacts a {
  color: #287c5d;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 761px) {
  .zhm-cookie {
    left: auto !important;
    right: 18px !important;
    width: min(430px, calc(100% - 36px)) !important;
  }
  .zhm-cookie__box {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 16px !important;
  }
  .zhm-cookie__btn {
    width: 100% !important;
  }
}

@media (max-width: 980px) {
  .zhm-v2-footer__main { grid-template-columns: repeat(3, 1fr); }
  .zhm-v2-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .zhm-v2-footer { padding: 42px 20px 20px; }
  .zhm-v2-footer__main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .zhm-v2-footer__brand { grid-column: 1 / -1; }
  .zhm-v2-footer__bottom { flex-direction: column; }
  .zhm-footer-modal { align-items: flex-end; padding: 10px; }
  .zhm-footer-modal__dialog { max-height: calc(100vh - 20px); padding: 34px 20px 24px; border-radius: 22px; }
  .zhm-footer-modal h2 { margin-right: 35px; font-size: 31px; }
  .zhm-footer-form { grid-template-columns: 1fr; }
  .zhm-footer-form__wide { grid-column: 1; }
}

/* ЖилМодуль 2026 — единая визуальная система сайта. */
:root {
  --zhm-ui-ink: #123526;
  --zhm-ui-dark: #0d3b2a;
  --zhm-ui-green: #177a55;
  --zhm-ui-green-hover: #116544;
  --zhm-ui-mint: #eaf6ef;
  --zhm-ui-paper: #ffffff;
  --zhm-ui-soft: #f6f9f7;
  --zhm-ui-line: #dce9e1;
  --zhm-ui-muted: #61746b;
  --zhm-ui-font: "TildaSans", Arial, sans-serif;
  --zhm-ui-shadow: 0 16px 48px rgba(14, 52, 37, .09);
}

body,
button,
input,
textarea,
select {
  font-family: var(--zhm-ui-font) !important;
}

/* Старые шапки остаются в HTML для безопасного отката, но посетитель видит одну общую. */
.zhm-hero-main__header,
.zhm-hoz-hero__header,
.zhm-dacha-header,
.jm-org-lux__header,
.zhm-blog-topbar,
.zhm-a3-header {
  display: none !important;
}

.zhm-global-header,
.zhm-global-header * {
  box-sizing: border-box;
}

.zhm-global-header {
  position: sticky;
  top: 0;
  z-index: 99990;
  width: 100%;
  border-bottom: 1px solid var(--zhm-ui-line);
  background: rgba(255, 255, 255, .96);
  color: var(--zhm-ui-ink);
  font-family: var(--zhm-ui-font);
  backdrop-filter: blur(14px);
}

.zhm-global-header__inner {
  display: flex;
  width: min(1240px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  align-items: center;
  gap: 28px;
}

.zhm-global-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--zhm-ui-ink) !important;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
}

.zhm-global-header__logo span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--zhm-ui-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.zhm-global-header__nav {
  display: flex;
  min-width: 0;
  margin-left: auto;
  align-items: center;
  gap: clamp(14px, 1.6vw, 25px);
}

.zhm-global-header__nav a {
  position: relative;
  padding: 28px 0 27px;
  color: #294438 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}

.zhm-global-header__nav a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--zhm-ui-green);
  content: "";
  opacity: 0;
  transform: scaleX(.4);
  transition: .18s ease;
}

.zhm-global-header__nav a:hover::after,
.zhm-global-header__nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.zhm-global-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.zhm-global-header__phone {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
  white-space: nowrap;
}

.zhm-global-header__phone a {
  color: var(--zhm-ui-ink) !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none !important;
}

.zhm-global-header__phone span {
  color: var(--zhm-ui-muted);
  font-size: 11px;
  line-height: 1.2;
}

.zhm-global-header__cta {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--zhm-ui-green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
  white-space: nowrap;
}

.zhm-global-header__cta:hover {
  background: var(--zhm-ui-green-hover);
  transform: translateY(-1px);
}

.zhm-global-header__menu,
.zhm-global-header__mobile {
  display: none;
}

/* Типографика без сверхжирных 850–900 и скачков между Tilda/Arial/Inter. */
#allrecords h1,
#allrecords h2,
#allrecords h3,
.zhm-a3 h1,
.zhm-a3 h2,
.zhm-a3 h3 {
  font-family: var(--zhm-ui-font) !important;
  color: var(--zhm-ui-ink);
}

#allrecords h1,
.zhm-a3 h1 {
  font-weight: 700 !important;
  letter-spacing: -.035em !important;
}

#allrecords h2,
#allrecords h3,
.zhm-a3 h2,
.zhm-a3 h3 {
  font-weight: 700 !important;
  letter-spacing: -.025em !important;
}

#allrecords p,
#allrecords li,
.zhm-a3 p,
.zhm-a3 li {
  font-family: var(--zhm-ui-font) !important;
}

#allrecords [class*="button"],
#allrecords [class*="btn"],
#allrecords button,
.zhm-a3-button {
  font-family: var(--zhm-ui-font) !important;
  font-weight: 700 !important;
}

/* Убираем тяжёлый плавающий каталог: все его сценарии есть в общей форме. */
.seo-blog-cta-widget {
  display: none !important;
}

/* Компактная форма: телефон + выбор связи, уточнение раскрывается по желанию. */
.zhm-footer-modal {
  padding: 18px;
  background: rgba(7, 24, 16, .66);
}

.zhm-footer-modal__dialog {
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .28);
}

.zhm-footer-modal h2 {
  max-width: 410px;
  margin: 8px 38px 8px 0;
  font-family: var(--zhm-ui-font);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.zhm-footer-modal__dialog > p {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.45;
}

.zhm-footer-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.zhm-footer-form input,
.zhm-footer-form textarea {
  min-height: 50px;
  border-radius: 11px;
  font-family: var(--zhm-ui-font);
  font-size: 16px;
}

.zhm-footer-form__contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.zhm-footer-form__contact legend {
  margin: 0 0 8px;
  color: #22352a;
  font-size: 13px;
  font-weight: 700;
}

.zhm-footer-form__contact label {
  display: block;
  cursor: pointer;
}

.zhm-footer-form__contact input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.zhm-footer-form__contact label span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9d8d0;
  border-radius: 10px;
  background: #fff;
  color: #365247;
  font-size: 13px;
  font-weight: 600;
  transition: .15s ease;
}

.zhm-footer-form__contact input:checked + span {
  border-color: var(--zhm-ui-green);
  background: var(--zhm-ui-mint);
  color: var(--zhm-ui-green);
  box-shadow: inset 0 0 0 1px var(--zhm-ui-green);
}

.zhm-footer-form__optional {
  border-top: 1px solid var(--zhm-ui-line);
  padding-top: 10px;
}

.zhm-footer-form__optional[hidden] {
  display: none !important;
}

.zhm-footer-form__optional summary {
  color: var(--zhm-ui-green);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.zhm-footer-form__optional label {
  margin-top: 10px;
}

.zhm-footer-form__file {
  padding: 12px;
  border-radius: 12px;
}

.zhm-footer-form__file[hidden] {
  display: none !important;
}

.zhm-footer-form__submit {
  min-height: 50px;
  border-radius: 11px;
  background: var(--zhm-ui-green);
  font-family: var(--zhm-ui-font);
  font-size: 15px;
  font-weight: 700;
}

.zhm-footer-form__consent {
  margin-top: -2px;
  color: #6d7b74 !important;
  font-size: 11px !important;
}

.zhm-footer-modal__contacts {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--zhm-ui-line);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.zhm-v2-footer {
  font-family: var(--zhm-ui-font);
}

.zhm-v2-footer strong,
.zhm-v2-footer__logo,
.zhm-v2-footer__phone,
.zhm-v2-footer__cta {
  font-weight: 700 !important;
}

/* Контраст в тёмных коммерческих блоках не должен наследовать общий цвет заголовков. */
.zhm-final-contact__content .zhm-final-contact__title,
.zhm-final-contact__content .zhm-final-contact__quick-title,
.zhm-v2-b2b h2,
.jm-visit-title {
  color: #fff !important;
}

/* Явная кнопка квиза после каталога дачных модулей. */
.jm-catalog-quiz__btn {
  display: inline-flex !important;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 24px !important;
  border-radius: 13px;
  background: var(--zhm-ui-green) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(23, 122, 85, .18);
  text-decoration: none !important;
}

.jm-catalog-quiz__btn:hover {
  background: var(--zhm-ui-green-hover) !important;
}

@media (max-width: 1120px) {
  .zhm-global-header__inner { gap: 20px; }
  .zhm-global-header__nav { gap: 14px; }
  .zhm-global-header__phone { display: none; }
}

@media (max-width: 820px) {
  .zhm-global-header__inner {
    width: calc(100% - 28px);
    min-height: 64px;
    gap: 12px;
  }

  .zhm-global-header__logo { font-size: 19px; }
  .zhm-global-header__logo span { width: 36px; height: 36px; border-radius: 10px; }
  .zhm-global-header__nav { display: none; }
  .zhm-global-header__actions { margin-left: auto; gap: 8px; }
  .zhm-global-header__cta { min-height: 40px; padding: 0 13px; font-size: 12px; }
  .zhm-global-header__menu {
    display: grid;
    width: 40px;
    height: 40px;
    place-content: center;
    gap: 4px;
    padding: 0;
    border: 1px solid var(--zhm-ui-line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
  }
  .zhm-global-header__menu i { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--zhm-ui-ink); }
  .zhm-global-header__mobile {
    display: none;
    padding: 6px 18px 20px;
    border-top: 1px solid var(--zhm-ui-line);
    background: #fff;
  }
  .zhm-global-header.is-menu-open .zhm-global-header__mobile { display: block; }
  .zhm-global-header__mobile nav { display: grid; }
  .zhm-global-header__mobile nav a { padding: 13px 0; border-bottom: 1px solid #edf2ef; color: var(--zhm-ui-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
  .zhm-global-header__mobile nav a[aria-current="page"] { color: var(--zhm-ui-green); }
  .zhm-global-header__mobile > div { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
  .zhm-global-header__mobile > div a { padding: 9px 11px; border-radius: 9px; background: var(--zhm-ui-mint); color: var(--zhm-ui-green); font-size: 13px; font-weight: 600; text-decoration: none; }
}

@media (max-width: 480px) {
  .zhm-global-header__logo b { display: none; }
  .zhm-global-header__cta { padding: 0 12px; }
  .zhm-footer-modal { align-items: flex-end; padding: 8px; }
  .zhm-footer-modal__dialog { max-height: calc(100vh - 16px); padding: 28px 18px 18px; border-radius: 20px; }
  .zhm-footer-modal h2 { margin-top: 7px; font-size: 28px; }
  .zhm-footer-modal__dialog > p { margin-bottom: 16px; font-size: 14px; }
  .zhm-footer-form { gap: 11px; }
  .zhm-footer-form__contact label span { min-height: 42px; font-size: 12px; }
  .zhm-footer-modal__contacts { display: none; }
  .zhm-v2-footer__main { grid-template-columns: 1fr; gap: 28px; }
  .zhm-v2-footer__brand { grid-column: 1; }
}

/* zhm-article-contrast-20260823 */
.zhm-a3 .zhm-a3-final h2 {
  color: #fff !important;
}

.zhm-a3 .zhm-a3-final p {
  color: #d9ebe2 !important;
}

.zhm-a3 .zhm-a3-final .zhm-a3-legal {
  color: #b8d1c5 !important;
}

