/* Thermo doors landing — only with body.tdLanding / .tdLanding */
.tdLanding {
  --td-bg: #ffffff;
  --td-muted: #f5f5f7;
  --td-text: #1d1d1f;
  --td-secondary: #6e6e73;
  --td-line: #dcdce1;
  --td-accent: #fe5b3f;
  --td-radius: 20px;
  --td-max: 1120px;
  --td-gutter: 0px;
  background: var(--td-bg);
  color: var(--td-text);
  overflow-x: clip;
}
html:has(body.tdLanding) {
  scroll-behavior: smooth;
  overflow-x: clip;
}

/* Desktop: центрирование через max-width + auto margin (как каталог) */
.tdLanding .wrap {
  max-width: min(1180px, calc(100% - 48px));
  overflow-x: visible;
  box-sizing: border-box;
}

.tdLanding .site-breadcrumbs,
.tdLanding .breadcrumbs {
  margin-bottom: 14px;
  opacity: 0.72;
  font-size: 13px;
}
.tdLanding > .wrap > h1.page-h1-legacy,
.tdLanding > .wrap > .sub.page-sub-legacy,
.tdLanding > .wrap > .seoAdvantages {
  display: none !important;
}

.td2-hero,
.td2-section,
.td2-catalog-head,
.td2-trust,
.td2-faq {
  font-family: 'Montserrat', system-ui, sans-serif;
  box-sizing: border-box;
}
.td2-hero *,
.td2-section *,
.td2-catalog-head *,
.td2-trust *,
.td2-faq * {
  box-sizing: border-box;
}

/* Hero */
.td2-hero {
  max-width: var(--td-max);
  margin: 0 auto clamp(28px, 4vw, 40px);
  padding: 8px 0 clamp(20px, 3vw, 32px);
}
.td2-hero__eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--td-secondary);
}
.td2-hero__title {
  margin: 0 0 14px;
  max-width: 100%;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--td-text);
  text-transform: none;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
body.tdLanding h1.td2-hero__title,
body.tdLanding .td2-hero__title {
  font-size: clamp(38px, 4vw, 56px) !important;
  line-height: 1.12 !important;
  margin: 0 0 14px !important;
  text-transform: none !important;
}
.td2-hero__lead {
  margin: 0 0 12px;
  max-width: 40em;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--td-text);
  font-weight: 500;
}
.td2-hero__note {
  margin: 0 0 22px;
  max-width: 42em;
  font-size: 15px;
  line-height: 1.55;
  color: var(--td-secondary);
}
.td2-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}
.td2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.td2-btn--accent {
  background: var(--td-accent);
  color: #fff;
}
.td2-btn--accent:hover { background: #e64a30; color: #fff; }
.td2-btn--ghost {
  background: transparent;
  color: var(--td-text);
  border-color: var(--td-line);
}
.td2-btn--ghost:hover { border-color: #111; color: #111; }
.td2-btn--dark {
  background: #111;
  color: #fff;
}
.td2-btn--dark:hover { background: #333; color: #fff; }

.td2-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  max-width: var(--td-max);
  margin: 0 auto clamp(24px, 3vw, 36px);
  padding: 0;
  list-style: none;
}
.td2-trust li {
  font-size: 13px;
  font-weight: 600;
  color: var(--td-secondary);
  background: var(--td-muted);
  border: 1px solid var(--td-line);
  border-radius: 999px;
  padding: 8px 14px;
  line-height: 1.3;
}

/* Sections — горизонтальные отступы на mobile даёт .wrap; здесь только вертикаль */
.td2-section {
  max-width: var(--td-max);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) 0;
}
/*
  Full-bleed muted: фон на всю ширину,
  текст во внутреннем контейнере с --td-gutter.
  На mobile отрицательный margin компенсирует padding .wrap.
*/
.td2-section--muted {
  background: var(--td-muted);
  max-width: none;
  width: auto;
  margin-left: 0;
  margin-right: 0;
  padding: clamp(28px, 4vw, 44px) 0;
  box-sizing: border-box;
  border-radius: 0;
}
.td2-section--muted > .td2-inner {
  max-width: var(--td-max);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .td2-section--muted {
    margin-left: calc(-1 * var(--td-gutter));
    margin-right: calc(-1 * var(--td-gutter));
    padding-left: var(--td-gutter);
    padding-right: var(--td-gutter);
  }
}
@media (min-width: 768px) {
  .td2-section--muted {
    /* как /skrytaya-dver/: без width:100vw — иначе горизонтальный overflow от scrollbar */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(24px, calc(50vw - 560px));
    padding-right: max(24px, calc(50vw - 560px));
    width: auto;
    max-width: none;
  }
}
.td2-section h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--td-text);
}
.td2-section__lead {
  margin: 0 0 20px;
  max-width: 42em;
  font-size: 16px;
  line-height: 1.55;
  color: var(--td-secondary);
}
.td2-section p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--td-secondary);
  max-width: 46em;
}
.td2-section p:last-child { margin-bottom: 0; }

.td2-grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.td2-grid4 li {
  padding: 18px 16px;
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  background: #fff;
}
.td2-grid4 strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--td-text);
  line-height: 1.3;
}
.td2-grid4 span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--td-secondary);
}

.td2-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.td2-checklist li {
  padding: 14px 0;
  border-top: 1px solid var(--td-line);
}
.td2-checklist strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--td-text);
}
.td2-checklist span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--td-secondary);
}

.td2-cost {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}
.td2-cost li {
  position: relative;
  padding: 6px 0 6px 16px;
  font-size: 15px;
  color: var(--td-text);
  line-height: 1.4;
}
.td2-cost li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--td-accent);
}

.td2-brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.td2-catalog-head {
  max-width: none;
  margin: 0 0 8px;
  padding: 8px 0 4px;
}
.td2-catalog-head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.td2-catalog-head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--td-secondary);
  max-width: 46em;
}

.tdLanding .unifiedLayout {
  margin-top: 8px;
}
.tdLanding .sectionTitle {
  display: none;
}
.tdLanding .mtoIcon { display: none; }
.tdLanding .madeToOrder {
  background: var(--td-muted);
  border: 1px solid var(--td-line);
  border-style: solid;
}

.td2-faq {
  max-width: var(--td-max);
  margin: 0 auto clamp(28px, 4vw, 48px);
  padding: clamp(8px, 2vw, 16px) 0 0;
}
.td2-faq h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
}
.td2-faq__item {
  border-top: 1px solid var(--td-line);
}
.td2-faq__item:last-child {
  border-bottom: 1px solid var(--td-line);
}
.td2-faq__q {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}
.td2-faq__btn {
  appearance: none;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  color: var(--td-text);
}
.td2-faq__btn::after {
  content: '+';
  flex-shrink: 0;
  color: var(--td-secondary);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
}
.td2-faq__btn[aria-expanded="true"]::after { content: '−'; }
.td2-faq__panel { padding: 0 0 4px; }
.td2-faq .td2-faq__a {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--td-secondary);
  max-width: 46em;
}

.filterLink.is-static {
  pointer-events: none;
  cursor: default;
}

@media (max-width: 900px) {
  .td2-grid4 { grid-template-columns: 1fr 1fr; }
  .td2-checklist,
  .td2-cost { grid-template-columns: 1fr; }
  body.tdLanding h1.td2-hero__title,
  body.tdLanding .td2-hero__title {
    font-size: clamp(30px, 7.2vw, 36px) !important;
  }
}

/* Mobile gutters: единый отступ через padding .wrap (не max-width-трюк) */
@media (max-width: 767px) {
  body.tdLanding {
    --td-gutter: 16px;
  }
  body.tdLanding .wrap {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--td-gutter);
    padding-right: var(--td-gutter);
    box-sizing: border-box;
  }
}
@media (min-width: 375px) and (max-width: 430px) {
  body.tdLanding {
    --td-gutter: 18px;
  }
}
@media (min-width: 431px) and (max-width: 767px) {
  body.tdLanding {
    --td-gutter: 20px;
  }
}

@media (max-width: 560px) {
  .td2-grid4 { grid-template-columns: 1fr; }
  .td2-hero { padding-bottom: 16px; margin-bottom: 20px; }
  .td2-hero__lead { font-size: 16px; }
  .td2-hero__note { font-size: 14px; }
  /* только вертикаль — не трогать горизонтальный gutter muted-секций */
  .td2-section {
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .td2-section--muted {
    padding-top: 22px;
    padding-bottom: 22px;
    padding-left: var(--td-gutter);
    padding-right: var(--td-gutter);
  }
  .td2-section p,
  .td2-section__lead { font-size: 16px; }
  .td2-btn { width: 100%; }
  .td2-trust { gap: 6px; }
  .td2-trust li { font-size: 12px; padding: 7px 11px; }
  .tdLanding .unifiedMain { padding-bottom: 24px; }
}
