/* ==========================================================================
   Шаблон №7: demolition-v1 (Демонтаж кровли, шифера, черепицы и фасада)
   Родная дизайн-система Лидер Стандарт / Лидер Кровля (.lk-mt-page)
   Лёгкий западный первый экран: No-Mess Shield + 10-сек ПУХТО & Trade-In
   Контраст WCAG AA (>= 4.5:1), 0 горизонтального скролла 320..1920px
   ========================================================================== */

.lk-mt-page {
  font-size: 16px;
  line-height: 1.64;
  color: #1e2b37;
  max-width: 100%;
  overflow-x: clip;
}
.lk-mt-page *,
.lk-mt-page *::before,
.lk-mt-page *::after {
  box-sizing: border-box;
}
.lk-mt-page [hidden] {
  display: none !important;
}
.lk-mt-page p {
  margin: 0 0 12px;
}
.lk-mt-page h2 {
  margin: 28px 0 14px;
  font-size: 27px;
  line-height: 1.24;
  color: #173448;
  font-weight: 700;
}
.lk-mt-page h3 {
  margin: 18px 0 8px;
  font-size: 19px;
  line-height: 1.32;
  color: #173448;
  font-weight: 700;
}
.lk-mt-page a {
  color: #145374;
  font-weight: 700;
}
.lk-mt-page a:hover {
  color: #9e3d0c;
}

/* Кнопки с высоким контрастом >= 5.2:1 */
.lk-mt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: #b7470d;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}
.lk-mt-btn:hover,
.lk-mt-btn:focus-visible {
  background: #963808;
  color: #ffffff !important;
}
.lk-mt-btn-secondary {
  background: #e6eff5;
  color: #173448 !important;
  border: 1px solid #bfd1de;
}
.lk-mt-btn-secondary:hover,
.lk-mt-btn-secondary:focus-visible {
  background: #d6e5f0;
  color: #102636 !important;
}
.lk-mt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.lk-mt-note {
  display: inline-block;
  color: #425869;
  font-size: 14px;
}

/* Быстрая навигация разделов (.leader-tool-nav) */
.lk-mt-page .leader-tool-nav {
  margin: 10px 0 18px;
  padding: 13px 18px;
  border: 1px solid #c5d6e3;
  border-radius: 12px;
  background: #f5f9fc;
}
.lk-mt-page .leader-tool-nav__title {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #35586e;
}
.lk-mt-page .leader-tool-nav__main,
.lk-mt-page .leader-tool-nav__extra {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lk-mt-page .leader-tool-nav__main {
  margin-bottom: 8px;
}
.lk-mt-page .leader-tool-nav__main a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 8px;
  background: #173448;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 700;
}
.lk-mt-page .leader-tool-nav__main a:hover {
  background: #b7470d;
}
.lk-mt-page .leader-tool-nav__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffd7a8;
  font-size: 11.5px;
}
.lk-mt-page .leader-tool-nav__extra a {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid #c4d5e2;
  border-radius: 999px;
  background: #ffffff;
  color: #173448 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
}
.lk-mt-page .leader-tool-nav__extra a:hover {
  border-color: #b7470d;
  color: #9e3d0c !important;
}
.lk-mt-page .leader-nav-short {
  display: none;
}

/* ==========================================================================
   ЭКРАН №1 (ЗВЕЗДА СТРАНИЦЫ): #demolition-hero
   Лёгкий западный интерактив: Защита дома No-Mess + 10-сек ПУХТО & Trade-In
   ========================================================================== */
.dmp-hero {
  margin: 16px 0 36px;
  border: 1px solid #b6cad8;
  border-radius: 18px;
  background: linear-gradient(150deg, #f8fbfd 0%, #eaf2f7 100%);
  box-shadow: 0 14px 36px rgba(23, 52, 72, 0.08);
  overflow: hidden;
}
.dmp-hero__ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 24px;
  background: #173448;
  color: #ffffff;
}
.dmp-hero__badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #ffd7a8;
}
.dmp-hero__rates {
  font-size: 14.5px;
  color: #ffffff;
}
.dmp-hero__rates strong {
  color: #ffd7a8;
}
.dmp-hero__jump {
  color: #ffd7a8 !important;
  font-size: 13.5px;
  text-decoration: underline;
}

.dmp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  padding: 20px 24px 24px;
  align-items: stretch;
}
.dmp-shield-card,
.dmp-express-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #c7d7e3;
  border-radius: 14px;
  padding: 20px;
  min-width: 0;
}
.dmp-shield-card h2,
.dmp-express-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.24;
  color: #173448;
}
.dmp-sub {
  font-size: 14px;
  color: #3d5669;
  margin-bottom: 12px !important;
}

/* Тумблер «Наш стандарт No-Mess» vs «Стихийный снос шабашников» */
.dmp-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  background: #e9f0f5;
  border-radius: 10px;
  margin-bottom: 12px;
}
.dmp-mode-btn {
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #1f3749;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.dmp-mode-btn[data-shield-mode="safe"][aria-pressed="true"] {
  background: #173448;
  color: #ffffff;
}
.dmp-mode-btn[data-shield-mode="messy"][aria-pressed="true"] {
  background: #8a2c06;
  color: #ffffff;
}

/* Интерактивная сцена дома на первом экране */
.dmp-stage {
  position: relative;
  border: 1px solid #d5e2ec;
  border-radius: 12px;
  background: #f6fafd;
  padding: 6px;
  margin-bottom: 12px;
}
.dmp-stage img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 4 кнопки зон защиты участка (Drop-Zone Property Protection) */
.dmp-zones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.dmp-zone-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1.5px solid #c5d6e3;
  border-radius: 9px;
  background: #ffffff;
  color: #173448;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dmp-zone-btn:hover {
  border-color: #1f6f8b;
}
.dmp-zone-btn[aria-pressed="true"] {
  border-color: #b7470d;
  background: #fff7f1;
  color: #7c2d06;
}
.dmp-zone-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #173448;
  color: #ffffff;
  font-size: 11px;
  flex-shrink: 0;
}
.dmp-zone-btn[aria-pressed="true"] .dmp-zone-num {
  background: #b7470d;
}

.dmp-pledge-box {
  padding: 13px 15px;
  border-radius: 10px;
  background: #eef6fb;
  border-left: 4px solid #1f6f8b;
}
.dmp-pledge-box.is-risk {
  background: #fff4ef;
  border-left-color: #8a2c06;
}
.dmp-pledge-box__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.dmp-pledge-box__title {
  font-size: 14.5px;
  font-weight: 700;
  color: #173448;
}
.dmp-pledge-box__tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  background: #173448;
  color: #ffffff;
}
.dmp-pledge-box.is-risk .dmp-pledge-box__tag {
  background: #8a2c06;
}
.dmp-pledge-box p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.48;
  color: #223849;
}

/* Правая карточка первого экрана: 10-секундный расчёт ПУХТО, веса и Trade-In */
.dmp-step-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1f394c;
  margin-bottom: 6px;
}
.dmp-mat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 13px;
}
.dmp-mat-chip {
  padding: 7px 11px;
  border: 1.5px solid #c3d4e0;
  border-radius: 8px;
  background: #f8fbfd;
  color: #173448;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}
.dmp-mat-chip:hover {
  border-color: #1f6f8b;
}
.dmp-mat-chip[aria-pressed="true"] {
  background: #173448;
  border-color: #173448;
  color: #ffffff;
}

/* Ползунок площади + быстрые пресеты */
.dmp-area-bar {
  padding: 11px 13px;
  border: 1px solid #d5e2ec;
  border-radius: 10px;
  background: #f7fafc;
  margin-bottom: 13px;
}
.dmp-area-bar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.dmp-area-bar__top label {
  font-size: 13px;
  font-weight: 700;
  color: #173448;
}
.dmp-area-num-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #173448;
}
.dmp-area-num-wrap input {
  width: 78px;
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid #aec3d3;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #173448;
  text-align: right;
  background: #ffffff;
}
.dmp-range {
  width: 100%;
  accent-color: #b7470d;
  cursor: pointer;
  margin: 2px 0 8px;
}
.dmp-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dmp-preset-btn {
  padding: 4px 9px;
  border: 1px solid #c6d6e2;
  border-radius: 999px;
  background: #ffffff;
  color: #243e52;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.dmp-preset-btn:hover {
  border-color: #b7470d;
  color: #9e3d0c;
}

/* 3 уровня глубины разборки (вместо простыни чекбоксов) */
.dmp-depth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}
.dmp-depth-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 9px 10px;
  border: 1.5px solid #c5d6e3;
  border-radius: 9px;
  background: #ffffff;
  color: #173448;
  text-align: left;
  cursor: pointer;
}
.dmp-depth-btn strong {
  font-size: 13px;
  line-height: 1.25;
  color: #173448;
}
.dmp-depth-btn span {
  font-size: 11.5px;
  color: #466073;
}
.dmp-depth-btn[aria-pressed="true"] {
  border-color: #b7470d;
  background: #fff7f1;
}
.dmp-depth-btn[aria-pressed="true"] strong {
  color: #7c2d06;
}

/* Тумблер выгоды Trade-In (Демонтаж + Новая крыша из одних рук) */
.dmp-tradein {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid #9fd1b3;
  border-radius: 10px;
  background: #eef8f2;
  margin-bottom: 13px;
  cursor: pointer;
}
.dmp-tradein input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: #1e6b43;
  flex-shrink: 0;
}
.dmp-tradein__title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #14492d;
  line-height: 1.3;
}
.dmp-tradein__sub {
  display: block;
  font-size: 12px;
  color: #24573b;
  margin-top: 2px;
}

/* Визуальный индикатор контейнеров ПУХТО 8 м³ + тоннажа + итога */
.dmp-gauge-card {
  padding: 14px 16px;
  border-radius: 11px;
  background: #173448;
  color: #ffffff;
  margin-bottom: 12px;
}
.dmp-gauge-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.dmp-gauge-top__label {
  font-size: 12.5px;
  color: #d6e6f2;
}
.dmp-gauge-top__price {
  font-size: 25px;
  font-weight: 800;
  color: #ffd7a8;
}
.dmp-bins-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 8px;
}
.dmp-bins-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.dmp-bin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 215, 168, 0.45);
  font-size: 12px;
  font-weight: 700;
  color: #ffd7a8;
}
.dmp-bins-stats {
  font-size: 12.5px;
  color: #e6f0f7;
}
.dmp-gauge-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #cfe1ee;
}

.dmp-hero-form {
  padding: 12px;
  border: 1px solid #c9d8e4;
  border-radius: 10px;
  background: #f5f9fc;
}
.dmp-hero-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.dmp-hero-form input[name="contact"] {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #b4c8d7;
  border-radius: 8px;
  background: #ffffff;
  color: #173448;
  font-size: 14.5px;
  font-weight: 600;
}
.dmp-hero-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 12.5px;
}
.dmp-hero-status {
  margin: 0 !important;
  font-size: 12.5px;
  font-weight: 700;
  color: #173448;
}

/* ==========================================================================
   БЛОК №2: Западный чек-лист IRC R908.3 (#overlay-vs-tearoff)
   «Можно ли уложить новую кровлю поверх старой без демонтажа?»
   ========================================================================== */
.dmp-advisor {
  margin: 34px 0;
  padding: 22px 24px;
  border: 1px solid #bfd1de;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(23, 52, 72, 0.05);
}
.dmp-advisor__head {
  max-width: 920px;
  margin-bottom: 16px;
}
.dmp-advisor__head h2 {
  margin: 4px 0 8px;
}
.dmp-advisor__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: stretch;
}
.dmp-advisor__controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}
.dmp-verdict-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 12px;
  border: 1.5px solid #e4b4aa;
  background: #fff6f3;
}
.dmp-verdict-card.is-ok {
  border-color: #9fd1b3;
  background: #eef8f2;
}
.dmp-verdict-card.is-partial {
  border-color: #ecc59a;
  background: #fff8ef;
}
.dmp-verdict-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  background: #8a2c06;
  color: #ffffff;
  margin-bottom: 8px;
}
.dmp-verdict-card.is-ok .dmp-verdict-badge {
  background: #1e6b43;
}
.dmp-verdict-card.is-partial .dmp-verdict-badge {
  background: #9e3d0c;
}
.dmp-verdict-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #173448;
}
.dmp-verdict-card p {
  font-size: 14px;
  color: #233848;
}

/* ==========================================================================
   БЛОК №3: Детальный послойный калькулятор Прайса 2026 (#demolition-estimate)
   ========================================================================== */
.dmp-calc-section {
  margin: 38px 0;
  padding: 24px;
  border: 1px solid #b8cbd8;
  border-radius: 16px;
  background: linear-gradient(155deg, #f7fafc 0%, #edf3f8 100%);
}
.dmp-calc-head {
  max-width: 940px;
  margin-bottom: 16px;
}
.dmp-calc-head h2 {
  margin: 4px 0 8px;
}
.dmp-calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 20px;
  align-items: start;
}
.dmp-calc-box {
  background: #ffffff;
  border: 1px solid #c9d8e3;
  border-radius: 13px;
  padding: 18px;
}
.dmp-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.dmp-form-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dmp-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #1e3547;
  min-width: 0;
}
.dmp-field input,
.dmp-field select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #b6cad8;
  border-radius: 7px;
  background: #ffffff;
  color: #173448;
  font-size: 14px;
  font-weight: 600;
}
.dmp-field select {
  padding-right: 30px;
  text-overflow: ellipsis;
}

.dmp-op-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}
.dmp-op-tab {
  padding: 6px 12px;
  border: 1px solid #bfd1de;
  border-radius: 999px;
  background: #f4f8fb;
  color: #173448;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.dmp-op-tab[aria-pressed="true"] {
  background: #173448;
  border-color: #173448;
  color: #ffffff;
}

.dmp-ops-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
.dmp-op-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #d7e3ec;
  border-radius: 8px;
  background: #fafcfe;
  cursor: pointer;
  font-weight: 400;
}
.dmp-op-item:hover {
  border-color: #9ab5c7;
}
.dmp-op-item__left {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}
.dmp-op-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #b7470d;
  flex-shrink: 0;
}
.dmp-op-item__name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #173448;
  line-height: 1.32;
}
.dmp-op-item__hint {
  display: block;
  font-size: 12px;
  color: #486377;
  line-height: 1.35;
}
.dmp-op-item__rate {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: #9e3d0c;
  flex-shrink: 0;
}

.dmp-summary {
  padding: 16px;
  border-radius: 12px;
  background: #173448;
  color: #ffffff;
  margin-bottom: 14px;
}
.dmp-summary__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.dmp-summary__label {
  font-size: 13px;
  color: #d6e6f2;
}
.dmp-summary__total {
  font-size: 26px;
  font-weight: 800;
  color: #ffd7a8;
}
.dmp-summary__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 9px;
  font-size: 13px;
  color: #e2eef7;
}
.dmp-lines-details {
  margin: 10px 0 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
}
.dmp-lines-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffd7a8;
}
.dmp-lines-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 12.5px;
  color: #f0f6fa;
}
.dmp-lines-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}
.dmp-lines-list li strong {
  white-space: nowrap;
  flex-shrink: 0;
  color: #ffd7a8;
}
.dmp-lines-list li:last-child {
  border-bottom: 0;
}

.dmp-inline-lead {
  padding: 14px;
  border: 1px solid #cad8e3;
  border-radius: 10px;
  background: #ffffff;
}
.dmp-inline-lead__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
#demolition-estimate .dmp-inline-lead__row {
  grid-template-columns: 1fr;
}
#demolition-estimate .dmp-inline-lead__row .lk-mt-btn {
  width: 100%;
}
.dmp-lead-status {
  margin: 8px 0 0 !important;
  font-size: 13px;
  font-weight: 700;
  color: #173448;
}

/* ==========================================================================
   БЛОК №4: #kit + #kit-lead (Комплектация консервации и новой кровли со склада)
   ========================================================================== */
.dmp-kit-section {
  margin: 42px 0;
  padding: 26px 24px;
  border: 1px solid #b3c7d6;
  border-radius: 16px;
  background: linear-gradient(145deg, #f6f9fc 0%, #eaf2f7 100%);
}
.dmp-kit-head {
  max-width: 960px;
  margin-bottom: 18px;
}
.dmp-kit-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #9e3d0c;
  margin-bottom: 6px;
}
.dmp-kit-head h2 {
  margin: 0 0 10px;
  font-size: 30px;
  color: #173448;
}
.dmp-kit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.dmp-kit-tab {
  padding: 8px 14px;
  border: 1px solid #bfd1de;
  border-radius: 999px;
  background: #ffffff;
  color: #173448;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.dmp-kit-tab[aria-pressed="true"] {
  background: #173448;
  border-color: #173448;
  color: #ffffff;
}
.dmp-kit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.dmp-kit-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  border: 1.5px solid #cbd9e4;
  border-radius: 12px;
  background: #ffffff;
  min-width: 0;
}
.dmp-kit-card.is-selected {
  border-color: #b7470d;
  box-shadow: 0 6px 18px rgba(183, 71, 13, 0.1);
}
.dmp-kit-card__top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.dmp-kit-card__img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e1ebf2;
  background: #ffffff;
  flex-shrink: 0;
}
.dmp-kit-card__role {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #9e3d0c;
  margin-bottom: 3px;
}
.dmp-kit-card__title {
  margin: 0;
  font-size: 15px !important;
  line-height: 1.32 !important;
}
.dmp-kit-card__title a {
  color: #173448;
  text-decoration: none;
}
.dmp-kit-card__title a:hover {
  text-decoration: underline;
}
.dmp-kit-card__why {
  font-size: 13px;
  color: #3f586a;
  line-height: 1.48;
  margin-bottom: 12px !important;
}
.dmp-kit-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #e7eff5;
}
.dmp-kit-card__price {
  font-size: 13.5px;
  color: #173448;
}
.dmp-kit-card__price strong {
  display: block;
  font-size: 15px;
  color: #173448;
}
.dmp-kit-toggle {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid #173448;
  background: #ffffff;
  color: #173448;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.dmp-kit-card.is-selected .dmp-kit-toggle {
  background: #b7470d;
  border-color: #b7470d;
  color: #ffffff;
}

.dmp-bundle-bar {
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #173448;
}
.dmp-bundle-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.dmp-bundle-cell {
  padding: 11px 13px;
  border-radius: 9px;
  background: #f3f7fa;
  border: 1px solid #d5e2ec;
}
.dmp-bundle-cell span {
  display: block;
  font-size: 12px;
  color: #425a6b;
}
.dmp-bundle-cell strong {
  display: block;
  font-size: 18px;
  color: #173448;
  margin-top: 2px;
}
.dmp-bundle-cell--accent {
  background: #173448;
  border-color: #173448;
}
.dmp-bundle-cell--accent span {
  color: #d6e6f2;
}
.dmp-bundle-cell--accent strong {
  color: #ffd7a8;
}

/* ==========================================================================
   Интерактивный атлас 6 сценариев разборки (#demolition-layers-atlas)
   ========================================================================== */
.dmp-atlas {
  margin: 40px 0;
  padding: 24px;
  border: 1px solid #c4d5e2;
  border-radius: 15px;
  background: #ffffff;
}
.dmp-atlas__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}
.dmp-atlas__tab {
  padding: 9px 14px;
  border: 1px solid #bfd1de;
  border-radius: 8px;
  background: #f4f8fb;
  color: #173448;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.dmp-atlas__tab[aria-selected="true"] {
  background: #173448;
  border-color: #173448;
  color: #ffffff;
}
.dmp-atlas__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid #d7e3ec;
  border-radius: 11px;
  background: #f9fbfd;
}
.dmp-atlas__panel[hidden] {
  display: none !important;
}
.dmp-atlas__checks {
  padding: 14px 16px;
  border-radius: 9px;
  background: #ffffff;
  border-left: 4px solid #2d6a4f;
  border-top: 1px solid #d9e5ee;
  border-right: 1px solid #d9e5ee;
  border-bottom: 1px solid #d9e5ee;
}
.dmp-atlas__checks ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 14px;
}
.dmp-atlas__checks li {
  margin-bottom: 7px;
}

.dmp-area-box,
.dmp-audit-box {
  margin: 36px 0;
  padding: 22px 24px;
  border: 1px solid #c5d6e3;
  border-radius: 14px;
  background: #f6f9fc;
}
.dmp-area-result {
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #cbd9e4;
  font-size: 15px;
  color: #173448;
}

/* Общие текстовые карточки, таблицы и блоки .lk-mt-* */
.lk-mt-top {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid #d0dde7;
  border-left: 4px solid #1f6f8b;
  background: #f5f8fb;
  border-radius: 8px;
}
.lk-mt-eyebrow {
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #35586e;
}
.lk-mt-lead {
  font-size: 18px;
  color: #172633;
}
.lk-mt-facts,
.lk-mt-grid,
.lk-mt-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 22px;
}
.lk-mt-fact,
.lk-mt-card,
.lk-mt-extra-card {
  padding: 15px;
  border: 1px solid #d5e1ea;
  border-radius: 8px;
  background: #ffffff;
}
.lk-mt-fact b,
.lk-mt-card strong,
.lk-mt-extra-card strong {
  display: block;
  margin-bottom: 6px;
  color: #173448;
}
.lk-mt-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.lk-mt-check {
  padding: 14px;
  border-left: 4px solid #2d6a4f;
  background: #f2f8f4;
  border-radius: 6px;
}
.lk-mt-callout,
.lk-mt-warning {
  margin: 16px 0;
  padding: 15px 16px;
  border-left: 4px solid #b7470d;
  background: #fff6ee;
  border-radius: 6px;
  color: #2b180c;
}
.lk-mt-links,
.lk-mt-extra-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 24px;
}
.lk-mt-links > a,
.lk-mt-links > div,
.lk-mt-extra-links > a {
  display: block;
  padding: 13px;
  border: 1px solid #d4e0e9;
  border-radius: 8px;
  background: #ffffff;
  text-decoration: none;
}
.lk-mt-page .editorial-section--brief .lk-mt-extra-links > a {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
}
.lk-mt-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 26px;
}
.lk-mt-media {
  overflow: hidden;
  border: 1px solid #d5e1ea;
  border-radius: 8px;
  background: #ffffff;
}
.lk-mt-media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.lk-mt-media img.is-diagram {
  object-fit: contain;
  background: #f6f9fc;
  padding: 6px;
}
.lk-mt-media-copy {
  padding: 14px;
}
.lk-mt-media-copy strong {
  display: block;
  margin-bottom: 5px;
  color: #173448;
}

/* Таблицы (десктоп + чистая карточная адаптация на мобильных) */
.lk-mt-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 24px;
  border: 1px solid #cfdce6;
  border-radius: 10px;
  background: #ffffff;
}
.lk-mt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.lk-mt-table caption {
  padding: 11px 14px;
  text-align: left;
  font-size: 13px;
  color: #425a6c;
  background: #f7fafc;
  border-bottom: 1px solid #e3ecf2;
}
.lk-mt-table th,
.lk-mt-table td {
  padding: 11px 13px;
  border-bottom: 1px solid #e8eff4;
  text-align: left;
  vertical-align: top;
}
.lk-mt-table thead th {
  background: #173448;
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
}
.lk-mt-table tbody th {
  color: #173448;
  font-weight: 700;
  background: #fbfdfe;
}
.editorial-table__price {
  font-weight: 700;
  color: #9e3d0c;
  white-space: nowrap;
}

@media (min-width: 721px) {
  #content .article_description .lk-mt-page #roof-price-table .editorial-table,
  .lk-mt-page #roof-price-table .editorial-table {
    table-layout: fixed !important;
    width: 100% !important;
  }
  #content .article_description .lk-mt-page #roof-price-table .editorial-table thead th:nth-child(1),
  #content .article_description .lk-mt-page #roof-price-table .editorial-table tbody th:nth-child(1),
  .lk-mt-page #roof-price-table .editorial-table thead th:nth-child(1),
  .lk-mt-page #roof-price-table .editorial-table tbody th:nth-child(1) {
    width: 32% !important;
  }
  #content .article_description .lk-mt-page #roof-price-table .editorial-table thead th:nth-child(2),
  #content .article_description .lk-mt-page #roof-price-table .editorial-table tbody td:nth-child(2),
  .lk-mt-page #roof-price-table .editorial-table thead th:nth-child(2),
  .lk-mt-page #roof-price-table .editorial-table tbody td:nth-child(2) {
    width: 8% !important;
    padding: 10px 8px !important;
  }
  #content .article_description .lk-mt-page #roof-price-table .editorial-table thead th:nth-child(n+3),
  #content .article_description .lk-mt-page #roof-price-table .editorial-table tbody td:nth-child(n+3),
  .lk-mt-page #roof-price-table .editorial-table thead th:nth-child(n+3),
  .lk-mt-page #roof-price-table .editorial-table tbody td:nth-child(n+3) {
    width: 12% !important;
    padding: 10px 8px !important;
  }
  #content .article_description .lk-mt-page #roof-price-table .editorial-table__price,
  .lk-mt-page #roof-price-table .editorial-table__price {
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    display: inline !important;
  }
}

#roof-information-tabs .content-photo-panel__image {
  object-fit: contain !important;
  background: #f6f9fc;
}

/* ==========================================================================
   Адаптив: планшеты (<= 1040px) и смартфоны (<= 720px, <= 390px, 320px)
   ========================================================================== */
@media (max-width: 1040px) {
  .dmp-hero__grid,
  .dmp-advisor__grid,
  .dmp-calc-layout,
  .dmp-atlas__panel {
    grid-template-columns: 1fr;
  }
  .dmp-kit-grid,
  .dmp-bundle-totals,
  .lk-mt-facts,
  .lk-mt-grid,
  .lk-mt-extra-grid,
  .lk-mt-media-grid,
  .lk-mt-links,
  .lk-mt-extra-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .lk-mt-page .leader-nav-long {
    display: none !important;
  }
  .lk-mt-page .leader-nav-short {
    display: inline !important;
  }
  .lk-mt-page {
    font-size: 15px;
  }
  .lk-mt-page h2,
  .dmp-kit-head h2 {
    font-size: 22px;
  }
  .dmp-hero__ribbon,
  .dmp-hero__grid {
    padding-left: 14px;
    padding-right: 14px;
  }
  .dmp-mode-switch,
  .dmp-zones,
  .dmp-depth-grid,
  .dmp-hero-form__row,
  .dmp-form-row,
  .dmp-form-row--3,
  .dmp-inline-lead__row,
  .dmp-kit-grid,
  .dmp-bundle-totals,
  .lk-mt-facts,
  .lk-mt-grid,
  .lk-mt-extra-grid,
  .lk-mt-check-grid,
  .lk-mt-links,
  .lk-mt-extra-links,
  .lk-mt-media-grid {
    grid-template-columns: 1fr;
  }
  .dmp-shield-card,
  .dmp-express-card,
  .dmp-advisor,
  .dmp-calc-section,
  .dmp-calc-box,
  .dmp-kit-section,
  .dmp-atlas,
  .dmp-area-box,
  .dmp-audit-box {
    padding: 15px 14px;
  }
  .dmp-op-item {
    flex-direction: column;
    gap: 5px;
  }
  .dmp-op-item__rate {
    padding-left: 27px;
  }
  .lk-mt-actions .lk-mt-btn,
  .dmp-hero-form__row .lk-mt-btn {
    width: 100%;
  }

  /* Карточная раскладка всех таблиц с data-label на смартфонах 320..720px */
  .lk-mt-table-wrap {
    overflow: visible !important;
    border: 0;
    background: transparent;
  }
  .lk-mt-table,
  .lk-mt-table tbody,
  .lk-mt-table tr,
  .lk-mt-table th,
  .lk-mt-table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .lk-mt-table thead {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
  }
  .lk-mt-table caption {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #d5e1ea;
    border-radius: 8px;
  }
  .lk-mt-table tbody tr {
    margin-bottom: 12px;
    padding: 10px 13px;
    border: 1px solid #cfdce6;
    border-radius: 9px;
    background: #ffffff;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .lk-mt-table tbody th,
  .lk-mt-table tbody td {
    padding: 7px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #edf2f6 !important;
    background: transparent !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .lk-mt-table tbody td:last-child {
    border-bottom: 0 !important;
  }
  .lk-mt-table tbody th[data-label]::before,
  .lk-mt-table tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #446476;
  }
}
