/* Калькулятор: прогресс, выбор в строке шага, подсказки, нижняя панель (08.10) */
.ed-prog { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border-radius: 14px; padding: 14px 20px; margin: 0 auto 20px; max-width: 1200px; box-sizing: border-box; font: 14px/1.4 'Inter', Arial, sans-serif; color: #2E2726; box-shadow: 0 1px 3px rgba(120, 100, 60, .05); }
.ed-prog b { color: #1A523F; }
.ed-prog-bar { flex: 1; min-width: 140px; height: 8px; background: #EEE7D8; border-radius: 8px; overflow: hidden; }
.ed-prog-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2E7A5E, #B8944D); transition: width .4s; }
.ed-req { color: #CF2530; }

.mk-step-row .ed-row-sel { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; padding-left: 12px; font-size: 13px; }
.mk-step-row .ed-row-sel:empty { display: none; }
.mk-step-row .ed-row-sel em { font-style: normal; color: #1A523F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.mk-step-row .ed-row-sel b { white-space: nowrap; color: #2E2726; }

.ed-lock { font: 13px/1.45 'Inter', Arial, sans-serif; background: #FAF6EC; color: #A1803A; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.ed-lock a { color: #1A523F; font-weight: 700; text-decoration: underline; }

.ed-mbar { display: none; }
@media (max-width: 1199px) {
  .ed-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 20px rgba(0, 0, 0, .12); font-family: 'Inter', Arial, sans-serif; transition: transform .25s; }
  .ed-mbar.is-hidden { transform: translateY(110%); }
  .ed-mbar-t { flex: 1; min-width: 0; }
  .ed-mbar-t small { display: block; font-size: 11px; color: #6B7280; }
  .ed-mbar-t b { font-size: 19px; color: #2E2726; }
  .ed-mbar-btn { border: 0; border-radius: 10px; padding: 12px 18px; font: 700 15px 'Inter', Arial, sans-serif; color: #fff; background: linear-gradient(135deg, #2E7A5E, #1A523F); cursor: pointer; }
  body { padding-bottom: 72px; }
}
@media (max-width: 600px) {
  .ed-prog { padding: 12px 14px; gap: 8px 12px; font-size: 13px; }
  .ed-prog-bar { order: 3; flex-basis: 100%; }
  .mk-step-row { flex-wrap: wrap; }
  .mk-step-row .ed-row-sel { flex-basis: 100%; margin: 2px 0 0; padding-left: 52px; font-size: 12px; gap: 8px; }
  .mk-step-row .ed-row-sel em { flex: 1; min-width: 0; max-width: none; }
}

/* шаг 3: форма кровли и контур */
.ed-tk { font-family: 'Inter', Arial, sans-serif; }
.ed-tk-roofs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); min-width: 0; gap: 10px; margin-bottom: 16px; }
.ed-tk-roof { min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 6px 10px; border: 1px solid rgba(230, 225, 215, .9); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: #2E2726; transition: border-color .2s, box-shadow .2s; }
.ed-tk-roof:hover { border-color: #D9C08A; box-shadow: 0 4px 14px rgba(184, 148, 77, .15); }
.ed-tk-roof[aria-pressed="true"] { border: 2px solid #1A523F; padding: 5px 5px 9px; }
.ed-tk-img { position: relative; display: block; height: 72px; border-radius: 8px; background: #F5F1E8 center/cover no-repeat; }
.ed-tk-img b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #fff; background: rgba(0, 0, 0, .35); border-radius: 8px; }
.ed-tk-name { font-size: 13px; font-weight: 600; line-height: 1.25; padding: 0 2px; }
.ed-tk-pr { font-size: 12px; color: #A1803A; padding: 0 2px; }
.ed-tk-work { display: grid; grid-template-columns: 1fr 240px; gap: 18px; align-items: start; background: #fff; border: 1px solid rgba(230, 225, 215, .9); border-radius: 14px; padding: 14px; }
.ed-tk-work[hidden] { display: none; }
.ed-tk-svg { width: 100%; height: auto; display: block; touch-action: none; user-select: none; }
.ed-tk-zone { fill: #FAF8F3; stroke: #D9C08A; stroke-dasharray: 5 5; stroke-width: 1; }
.ed-tk-house { fill: #fff; stroke: #2E2726; stroke-width: 5; }
.ed-tk-dl { stroke: #9CA3AF; stroke-width: 1; }
.ed-tk-dt { font: 12px 'Inter', Arial, sans-serif; fill: #6B7280; }
.ed-tk-area { font: 700 18px 'Inter', Arial, sans-serif; fill: #1A523F; }
.ed-tk-hit { fill: transparent; cursor: nwse-resize; }
.ed-tk-handle { fill: #fff; stroke: #1A523F; stroke-width: 3; cursor: nwse-resize; pointer-events: all; }
.ed-tk-svg.is-drag .ed-tk-handle { fill: #1A523F; }
.ed-tk-hint { font-size: 12px; color: #6B7280; text-align: center; margin-top: 4px; }
.ed-tk-dim { margin-bottom: 10px; }
.ed-tk-dim label { display: block; font-size: 12px; color: #6B7280; margin-bottom: 4px; }
.ed-tk-dim div { display: flex; gap: 6px; }
.ed-tk-dim button { width: 40px; flex: none; border: 1px solid rgba(230, 225, 215, .9); border-radius: 10px; background: #FAF8F3; font-size: 18px; cursor: pointer; color: #1A523F; }
.ed-tk-dim input { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid rgba(230, 225, 215, .9); border-radius: 10px; font: 600 15px 'Inter', Arial, sans-serif; text-align: center; }
.ed-tk-lim { font-size: 11px; color: #A1803A; margin-bottom: 12px; line-height: 1.4; }
.ed-tk-calc div { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed rgba(200, 195, 185, .6); }
.ed-tk-calc .ed-tk-sum { font-size: 15px; border: 0; padding-top: 8px; }
.ed-tk-calc .ed-tk-sum b { color: #1A523F; }
.ed-tk-input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
@media (max-width: 700px) {
  .ed-tk-roofs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ed-tk-name { font-size: 12px; }
  .ed-tk-pr { font-size: 11px; }
  .ed-tk-img { height: 56px; }
  .ed-tk-work { grid-template-columns: 1fr; padding: 10px; }
}

/* Карточка планировщика FramingAI (#99): кнопка виджета в стиле главной кнопки сайта.
   w.js ставит inline-стили на кнопку внутри [data-framingai-widget], поэтому !important. */
#sb-planner [data-framingai-widget] > button {
  background: linear-gradient(135deg, #2E7A5E 0%, #1A523F 100%) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(26, 82, 63, 0.3) !important;
  transition: box-shadow .2s, transform .2s;
}
#sb-planner [data-framingai-widget] > button:hover { box-shadow: 0 6px 16px rgba(26, 82, 63, 0.42) !important; transform: translateY(-1px); }
#sb-planner [data-framingai-widget] > button:focus-visible { outline: 2px solid #B8944D !important; outline-offset: 2px; }

/* Проёмы на плане (ed-op.js, п.5) */
.ed-op { font-family: 'Inter', Arial, sans-serif; margin: 0 0 18px; }
.mk-step-content.ed-op-on .ed-op-cards { display: none; }
.ed-op-off { padding: 12px 14px; border: 1px dashed #D9C08A; border-radius: 12px; background: #FAF8F3; font-size: 13px; color: #6B5A35; line-height: 1.45; }
.ed-op-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: start; background: #fff; border: 1px solid rgba(230, 225, 215, .9); border-radius: 14px; padding: 14px; }
.ed-op-pal { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ed-op-p { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px; border: 1px solid rgba(230, 225, 215, .9); border-radius: 10px; background: #fff; }
.ed-op-p.is-on { border-color: #1A523F; background: #F3F8F5; }
.ed-op-pimg { width: 52px; height: 44px; border-radius: 7px; background: #F5F1E8 center/cover no-repeat; }
.ed-op-ptx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ed-op-ptx b { font-size: 13px; font-weight: 600; color: #2E2726; line-height: 1.25; overflow-wrap: anywhere; }
.ed-op-ptx small { font-size: 11px; color: #A1803A; line-height: 1.3; }
.ed-op-pq { display: flex; align-items: center; gap: 4px; }
.ed-op-pq i { min-width: 18px; text-align: center; font-style: normal; font-weight: 700; font-size: 14px; color: #1A523F; }
.ed-op-pq button { width: 32px; height: 32px; border: 1px solid rgba(230, 225, 215, .9); border-radius: 9px; background: #FAF8F3; color: #1A523F; font-size: 18px; line-height: 1; cursor: pointer; }
.ed-op-pq button[data-add] { background: linear-gradient(135deg, #2E7A5E 0%, #1A523F 100%); color: #fff; border-color: transparent; }
.ed-op-pq button:disabled { opacity: .35; cursor: default; }
.ed-op-plan { min-width: 0; }
.ed-op-svg { width: 100%; height: auto; display: block; touch-action: none; user-select: none; }
.ed-op-wall { fill: #CFC6B4; }
.ed-op-in { fill: #FAF8F3; }
.ed-op-lbl { font: 13px 'Inter', Arial, sans-serif; fill: #6B7280; }
.ed-op-it.is-w { fill: #BFE3F2; stroke: #2B7FA8; stroke-width: 1.5; }
.ed-op-it.is-d { fill: #8B5A2B; stroke: #5C3A17; stroke-width: 1.5; }
.ed-op-it.is-other { opacity: .45; }
.ed-op-it.is-sel { stroke: #B8944D; stroke-width: 3; }
.ed-op-hit { fill: transparent; cursor: grab; }
.ed-op-svg.is-small .ed-op-wall { fill: #8F8676; }
.ed-op-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; margin-top: 6px; font-size: 13px; color: #2E2726; }
.ed-op-hint { color: #6B7280; font-size: 12px; }
.ed-op-del { border: 1px solid #E8B4B4; background: #FFF5F5; color: #A33; border-radius: 9px; padding: 7px 12px; cursor: pointer; font: inherit; font-size: 13px; }
.ed-op-sum { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px dashed rgba(200, 195, 185, .6); font-size: 14px; }
.ed-op-sum b { color: #1A523F; }
.ed-op-msg { margin-top: 6px; font-size: 12px; color: #A33; }
@media (max-width: 760px) {
  .ed-op-grid { grid-template-columns: 1fr; padding: 10px; }
  .ed-op-plan { order: -1; }
}
@media (min-width: 761px) { .ed-op-plan { position: sticky; top: 100px; } }

/* Дом «кровля × фасад» (п.6–7) */
.ed-sb-plan { margin: -8px 0 20px; padding: 10px; border: 1px solid rgba(230, 225, 215, .7); border-radius: 12px; background: #fff; }
.ed-sb-plan-t { font-size: 12px; color: #6B7280; margin-bottom: 6px; }
.ed-sb-plan-wait { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: center; padding: 18px 8px; font-size: 13px; line-height: 1.4; color: #6B7280; }
.ed-sb-plan-wait i { grid-row: span 2; width: 24px; height: 24px; border: 3px solid rgba(46, 122, 94, .2); border-top-color: #2E7A5E; border-radius: 50%; animation: ed-rz-spin 1s linear infinite; }
.ed-sb-plan-wait b { display: block; font-size: 14px; color: #1A523F; }
.ed-fs { margin: 0 0 18px; }
.ed-fs-img { width: 100%; aspect-ratio: 4 / 3; max-height: 460px; border-radius: 12px; border: 1px solid rgba(230, 225, 215, .9); background: #F5F1E8 center/cover no-repeat; cursor: zoom-in; transition: background-image .2s; }
.ed-fs-cap { font-size: 13px; color: #6B5A35; margin: 8px 2px; }
.ed-fs-sw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ed-fs-sw button { aspect-ratio: 4 / 3; border: 1px solid rgba(230, 225, 215, .9); border-radius: 9px; background: #F5F1E8 center/cover no-repeat; cursor: pointer; padding: 0; }
.ed-fs-sw button[aria-pressed="true"] { border: 2px solid #1A523F; box-shadow: 0 0 0 2px rgba(26, 82, 63, .2); }

/* Планировка: планировщик в шаге (п.8), замок после покупки (п.8а) */
.ed-pg { margin: 0 0 18px; font-family: 'Inter', Arial, sans-serif; }
.ed-pg .mk-sidebar-planner { margin: 0 0 10px; }
/* #545: карточка FramingAI «Спланировать дом» не видна — открываем кнопкой «Открыть планировку» (ed-sv); рамка живёт за экраном, окно — поверх страницы */
.ed-pg { position: relative; }
.ed-pg .mk-sidebar-planner { position: absolute; left: -10000px; top: 0; width: 320px; margin: 0; }
.ed-pg-off { padding: 12px 14px; border: 1px dashed #D9C08A; border-radius: 12px; background: #FAF8F3; font-size: 13px; color: #6B5A35; line-height: 1.45; }
.ed-pg-off[hidden], .ed-pg-info[hidden] { display: none; }
.ed-pg-cost { margin-top: 8px; padding: 0 12px; font-size: 13px; color: #5B5352; line-height: 1.5; }
.ed-pg-cost[hidden] { display: none; }
.ed-pg-info { padding: 10px 12px; border-radius: 12px; background: #F3F8F5; border: 1px solid rgba(26, 82, 63, .2); font-size: 13px; color: #2E2726; line-height: 1.5; }
/* #338: «Купить план» в одной строке с итогом планировки; ≤600 — под текстом во всю ширину */
.ed-pg-info { display: flex; align-items: center; gap: 16px; }
.ed-pg-txt { flex: 1; min-width: 0; }
.ed-pg-buy { flex: none; display: flex; }
.ed-pg-buy-b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 12px; background: #2E7A5E; color: #fff; font: 600 14px MontserratM, system-ui, -apple-system, sans-serif; cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .3s; }
.ed-pg-buy-b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ed-pg-buy-b:hover { background: #246650; }
.ed-pg-buy-b:disabled { background: #E9ECEB; color: #9AA3A0; cursor: not-allowed; }
.ed-pg-buy-b.is-wait:disabled { background: #EEF6F2; color: #1A523F; cursor: progress; }
.ed-pg-buy-b.is-wait i { width: 14px; height: 14px; border: 2px solid rgba(46, 122, 94, .25); border-top-color: #2E7A5E; border-radius: 50%; animation: ed-rz-spin 1s linear infinite; }
.ed-pg-buy-b.is-done, .ed-pg-buy-b.is-done:disabled { background: #EEF6F2; color: #1A523F; cursor: default; }
.ed-pg-buy-b.is-done svg { stroke-width: 2.4; }
.ed-pg-buy-b.is-flash { box-shadow: 0 0 0 4px rgba(46, 122, 94, .35); }
@media (max-width: 600px) { .ed-pg-info { flex-direction: column; align-items: stretch; gap: 10px; } .ed-pg-buy-b { width: 100%; height: 44px; } }
.ed-pg-notes { margin: 10px 0 0; padding: 0 0 0 18px; font-size: 12px; color: #6B7280; line-height: 1.5; }
.ed-tk.is-locked .ed-tk-roofs, .ed-tk.is-locked .ed-tk-dim, .ed-tk.is-locked .ed-tk-svg { opacity: .55; }
.ed-tk.is-locked .ed-tk-roof, .ed-tk.is-locked .ed-tk-dim button { cursor: not-allowed; }
.ed-tk-locknote { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #FFF8E8; border: 1px solid #E8D3A2; font-size: 13px; color: #6B5A35; }
.ed-pg.has-plan + .mk-contour-vertical-list { display: none; }

/* «Начать заново» (п.9) */
.ed-restart { margin-left: auto; border: 1px solid rgba(230, 225, 215, .9); background: #FAF8F3; color: #6B5A35; border-radius: 10px; padding: 7px 12px; font: 600 13px 'Inter', Arial, sans-serif; cursor: pointer; }
.ed-restart:hover { border-color: #D9C08A; color: #1A523F; }
.ed-sb-note { margin: -8px 0 18px; font: 12px/1.45 "Inter", Arial, sans-serif; color: #6B7280; }

/* Дизайн и инженерные шаги: тот же проект FramingAI в нужном разделе (#55, ed-rz.js) */
.ed-rz { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #F3F8F5; border: 1px solid rgba(26, 82, 63, .2); font: 13px/1.45 'Inter', Arial, sans-serif; color: #2E2726; }
.ed-rz:empty { display: none; }
.ed-rz-t { flex: 1 1 260px; }
.ed-rz button { border: 0; border-radius: 10px; padding: 9px 16px; font: 700 14px 'Inter', Arial, sans-serif; cursor: pointer; white-space: nowrap; }
.ed-rz-open { color: #fff; background: linear-gradient(135deg, #2E7A5E 0%, #1A523F 100%); }
.ed-rz-go { color: #1A523F; background: #fff; border: 1px solid rgba(26, 82, 63, .35) !important; }
.ed-rz-open.is-wait { opacity: .8; }
.ed-rz-open.is-wait::before { content: ""; display: inline-block; width: 11px; height: 11px; margin: 0 8px -1px 0; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: ed-rz-spin 1s linear infinite; }
@keyframes ed-rz-spin { to { transform: rotate(360deg); } }
.ed-rz-t.is-bad { color: #A33A2B; }
.ed-rz-open small { font-size: 12px; font-weight: 600; opacity: .85; white-space: nowrap; margin-left: 4px; }
.ed-rz-under { margin: 16px 0 0; }
@media (max-width: 600px) { .ed-rz button { width: 100%; white-space: normal; } }

/* Проход #163 (#169) */
@media (max-width: 480px) { .ed-tk-roofs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* большие картинки шагов (2400×1792) — целиком, без обрезки на узких экранах */
.mk-step-content > .mk-contour-placeholder[style*="height: 540px"] { height: auto !important; aspect-ratio: 2400 / 1792; }
.mk-partner-title.mk-shimmer-inline { background-image: linear-gradient(90deg, #6E531B 0%, #94712E 50%, #6E531B 100%); }
.ed-hint { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: #FFF8E8; border: 1px solid #E8D3A2; font: 13px/1.45 'Inter', Arial, sans-serif; color: #6B5A35; }
.ed-hint button { margin-left: 8px; border: 1px solid rgba(26, 82, 63, .35); background: #fff; color: #1A523F; border-radius: 8px; padding: 5px 10px; font: 600 13px 'Inter', Arial, sans-serif; cursor: pointer; }

/* Шаги 7–25 — после покупки планировки (#169, ed-zk.js) */
.mk-step-row.ed-zk { border-color: rgba(230, 225, 215, .8) !important; background: #FAF8F3 !important; }
.mk-step-row.ed-zk .mk-step-num { background: #CFC8B8 !important; box-shadow: none !important; }
.mk-step-row.ed-zk .mk-step-title { color: #6B6358 !important; font-weight: 500 !important; }
.ed-zk-tag { margin-left: auto; padding: 2px 9px; border-radius: 20px; background: #F1EEE6; color: #6B5A35; font: 600 11px/1.6 'Inter', Arial, sans-serif; white-space: nowrap; }
.mk-step-row.ed-zk .ed-row-sel { display: none; }
.mk-step-content.ed-zk > :not(.ed-zk-note) { display: none !important; }
.ed-zk-note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: #F3F8F5; border: 1px solid rgba(26, 82, 63, .2); font: 14px/1.5 'Inter', Arial, sans-serif; color: #2E2726; }
.mk-step-content:not(.ed-zk) > .ed-zk-note { display: none; }
.ed-zk-note div { flex: 1 1 260px; }
.ed-zk-note button { border: 0; border-radius: 10px; padding: 10px 16px; font: 700 14px 'Inter', Arial, sans-serif; color: #fff; background: linear-gradient(135deg, #2E7A5E 0%, #1A523F 100%); cursor: pointer; white-space: nowrap; }
@media (max-width: 480px) { .ed-zk-tag span { display: none; } }
/* слайдер фото «Дизайна»: на узком экране у карусели высота auto — слайды были высотой 0 (#163 п.7) */
.mk-carousel > .mk-carousel-inner { position: absolute; inset: 0; }
@media (max-width: 600px) { .mk-step-content .mk-carousel { aspect-ratio: 4 / 3; } }

/* Окна и двери из планировки FramingAI (TG742, #234/#246) */
.ed-op-grid.is-plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ed-op-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 8px 10px; border: 1px solid rgba(230, 225, 215, .9); border-radius: 10px; background: #fff; cursor: pointer; overflow: hidden; }
.ed-op-row.is-sel { border-color: #B8944D; box-shadow: 0 0 0 2px rgba(184, 148, 77, .2); }
.ed-op-num { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: #1A523F; color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ed-op-rt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ed-op-rt b { font-size: 13px; font-weight: 600; color: #2E2726; }
.ed-op-rt small { font-size: 11px; color: #6B7280; }
.ed-op-pick { grid-column: 2; display: grid; grid-template-columns: 56px minmax(0, 1fr) 14px; gap: 10px; align-items: center; width: 100%; min-width: 0; padding: 5px 8px 5px 5px; border: 1px solid rgba(200, 190, 170, .9); border-radius: 8px; background: #FAF8F3; color: #2E2726; font: 13px 'Inter', Arial, sans-serif; text-align: left; cursor: pointer; }
.ed-op-pick:hover, .ed-op-pick[aria-expanded="true"] { border-color: #B8944D; }
.ed-op-pick i { font-style: normal; color: #A1803A; }
.ed-op-pick .ed-op-pimg, .ed-op-o .ed-op-pimg { width: 56px; height: 42px; background-color: #fff; background-size: contain; border: 1px solid rgba(230, 225, 215, .9); }
/* список изделий с фото (#283) */
.ed-op-dd { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px 0 2px; }
.ed-op-dh { grid-column: 1 / -1; padding: 4px 2px 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6B7280; }
.ed-op-o { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 6px; border: 1px solid rgba(230, 225, 215, .9); border-radius: 8px; background: #fff; font: 13px 'Inter', Arial, sans-serif; text-align: left; cursor: pointer; }
.ed-op-o .ed-op-pimg { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.ed-op-o:hover { border-color: #B8944D; }
.ed-op-o.is-on { border-color: #1A523F; box-shadow: 0 0 0 2px rgba(26, 82, 63, .18); }
.ed-op-o.is-on .ed-op-ptx b::after { content: ' ✓'; color: #1A523F; }
.ed-op-row > small { grid-column: 2; font-size: 11px; line-height: 1.35; }
.ed-op-auto { color: #A1803A; }
.ed-op-err { color: #A33; }
.ed-op-pic { border: 1px solid rgba(230, 225, 215, .9); border-radius: 10px; overflow: hidden; background: #fff; }
.ed-op-pic svg { display: block; width: 100%; height: auto; max-height: 520px; }
.ed-op-pic g.proem { cursor: pointer; }
.ed-op-pic g.proem.is-sel polygon, .ed-op-pic g.proem.is-sel rect, .ed-op-pic g.proem.is-sel circle { fill: #FFD54F; }
.ed-op-pic.is-small svg { max-height: 240px; }
.ed-op-wait { padding: 60px 12px; text-align: center; font-size: 13px; color: #6B7280; }
.ed-op-toplan { flex: none; border: 1px solid rgba(26, 82, 63, .35); background: #fff; color: #1A523F; border-radius: 9px; padding: 7px 12px; cursor: pointer; font: 600 13px 'Inter', Arial, sans-serif; }
.ed-op-off .ed-op-toplan { margin-top: 8px; display: block; }
.ed-op-apply { margin: 6px 0 18px; padding: 14px; border: 1px solid rgba(230, 225, 215, .9); border-radius: 14px; background: #fff; font-family: 'Inter', Arial, sans-serif; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ed-op-go { border: 0; border-radius: 10px; padding: 12px 22px; background: linear-gradient(135deg, #2E7A5E 0%, #1A523F 100%); color: #fff; font: 600 15px 'Inter', Arial, sans-serif; cursor: pointer; }
.ed-op-go:disabled { background: #E7EFEA; color: #1A523F; cursor: default; }
.ed-op-ah { flex: 1 1 260px; margin: 0; font-size: 13px; line-height: 1.45; color: #6B5A35; }
.ed-op-ah.is-err { color: #A33; }
/* межкомнатные двери плана (#284): фото полотна — вертикальное, «Всем дверям» — ссылкой под выбором */
.ed-op[data-mode="n"] .ed-op-pick { grid-template-columns: 42px minmax(0, 1fr) 14px; }
.ed-op[data-mode="n"] .ed-op-pick .ed-op-pimg { width: 42px; height: 56px; background-size: cover; background-position: center; }
.ed-op[data-mode="n"] .ed-op-o .ed-op-pimg { aspect-ratio: 1 / 1; background-size: cover; background-position: center; }
.ed-op[data-mode="n"] .ed-op-ah { display: block; margin-top: 8px; }
.mk-step-content.ed-op-on > .ed-wz-doors { display: none; }
.ed-op-row:not(.is-sel) > .ed-op-all { display: none; }
.ed-op-all { grid-column: 2; justify-self: start; border: 0; background: none; padding: 2px 0; color: #1A523F; font: 600 12px 'Inter', Arial, sans-serif; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@media (max-width: 760px) {
  .ed-op-grid.is-plan { grid-template-columns: minmax(0, 1fr); }
  .ed-op-go { width: 100%; }
}
.ed-op-grid.is-plan .ed-op-bar { justify-content: flex-end; }
.ed-op-pal > .ed-op-hint { margin: 4px 2px 0; line-height: 1.4; }

/* «Мои расчёты» своим списком (#254) */
.ed-mr { position: fixed; inset: 0; z-index: 10050; background: rgba(20, 24, 22, .55); display: flex; align-items: center; justify-content: center; padding: 16px; font-family: 'Inter', Arial, sans-serif; }
.ed-mr[hidden] { display: none; }
.ed-mr-box { width: 100%; max-width: 640px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); overflow: hidden; }
.ed-mr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 10px; }
.ed-mr-top h2 { margin: 0; font-size: 20px; font-weight: 700; color: #2E2726; }
.ed-mr-x { width: 36px; height: 36px; flex: none; border: 1px solid rgba(230, 225, 215, .9); border-radius: 10px; background: #FAF8F3; color: #2E2726; font-size: 22px; line-height: 1; cursor: pointer; }
.ed-mr-body { padding: 4px 18px 18px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.ed-mr-lead, .ed-mr-msg { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #6B5A35; }
.ed-mr-wait { padding: 30px 0; text-align: center; color: #6B7280; }
.ed-mr-btn { border: 0; border-radius: 10px; padding: 12px 22px; background: linear-gradient(135deg, #2E7A5E 0%, #1A523F 100%); color: #fff; font: 600 15px 'Inter', Arial, sans-serif; cursor: pointer; }
.ed-mr-list { display: flex; flex-direction: column; gap: 8px; }
.ed-mr-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 8px; border: 1px solid rgba(230, 225, 215, .9); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.ed-mr-card:hover { border-color: #1A523F; background: #F3F8F5; }
.ed-mr-card.is-cur { border-color: #B8944D; }
.ed-mr-img { width: 96px; height: 72px; border-radius: 8px; background: #F5F1E8; overflow: hidden; display: block; }
.ed-mr-img img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.ed-mr-tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ed-mr-tx b { font-size: 15px; font-weight: 600; color: #2E2726; overflow-wrap: anywhere; }
.ed-mr-tx small { font-size: 12px; color: #6B7280; }
.ed-mr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-mr-tags:empty { display: none; }
.ed-mr-tags i { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: #F5F1E8; color: #6B5A35; }
.ed-mr-tags i.is-buy { background: #E7EFEA; color: #1A523F; }
@media (max-width: 480px) {
  .ed-mr { padding: 0; align-items: flex-end; }
  .ed-mr-box { max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh; max-height: 92dvh; }
  .ed-mr-card { grid-template-columns: 76px minmax(0, 1fr); }
  .ed-mr-img { width: 76px; height: 58px; }
  .ed-mr-btn { width: 100%; }
}
.ed-mr-img img.is-dom { object-fit: cover; }
.ed-mr-roof { font-size: 13px; color: #2E2726; }

/* Шаг 1: участок из выписки ЕГРН (#443, ed-uch.js) */
.ed-uch { font-family: 'Inter', Arial, sans-serif; margin: -8px 0 20px; color: #2E2726; }
.ed-uch-load { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.ed-uch-load[hidden], .ed-uch-res[hidden], .ed-uch-msg[hidden] { display: none; }
/* как главная кнопка сайта: зелёный градиент, 12px, тень (#447) */
.ed-uch-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 20px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #2E7A5E 0%, #1A523F 100%); color: #fff; font: 600 16px 'Inter', Arial, sans-serif; letter-spacing: .01em; cursor: pointer; box-shadow: 0 4px 14px rgba(26, 82, 63, .3); transition: box-shadow .2s, transform .2s, filter .2s; }
.ed-uch-btn:hover { box-shadow: 0 6px 20px rgba(26, 82, 63, .38); transform: translateY(-1px); filter: brightness(1.05); }
.ed-uch-btn:active { transform: none; }
.ed-uch-btn:focus-visible { outline: 3px solid rgba(46, 122, 94, .35); outline-offset: 2px; }
.ed-uch-btn:disabled { background: #E9ECEB; color: #9AA3A0; box-shadow: none; transform: none; cursor: wait; }
.ed-uch-btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ed-uch-btn-s { min-height: 42px; padding: 0 18px; font-size: 14px; box-shadow: 0 3px 10px rgba(26, 82, 63, .25); }
.ed-uch-note { font-size: 12px; line-height: 1.45; color: #6B7280; text-align: center; }
.ed-uch-msg { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #EEF6F2; border: 1px solid #CFE3DA; font-size: 13px; color: #1A523F; }
.ed-uch-msg.is-err { background: #FFF8E8; border-color: #E8D3A2; color: #6B5A35; }
.ed-uch-res { margin-top: 12px; background: #fff; border: 1px solid rgba(230, 225, 215, .9); border-radius: 14px; padding: 14px; }
.ed-uch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.ed-uch-svg { width: 100%; height: auto; display: block; background: #FAF8F3; border-radius: 10px; }
.ed-uch-plot { fill: #EEF6F2; stroke: #1A523F; stroke-width: 2.5; stroke-linejoin: round; }
.ed-uch-part { fill: url(#ed-uch-h); stroke: #C2410C; stroke-width: 1.2; stroke-dasharray: 4 3; }
.ed-uch-hl { stroke: #C2410C; stroke-width: 1.2; opacity: .55; }
.ed-uch-pt { fill: #fff; stroke: #1A523F; stroke-width: 1.5; }
.ed-uch-dt { font: 600 11px 'Inter', Arial, sans-serif; fill: #374151; paint-order: stroke; stroke: #FAF8F3; stroke-width: 3px; }
.ed-uch-n path { fill: #2E2726; }
.ed-uch-n text { font: 700 10px 'Inter', Arial, sans-serif; fill: #2E2726; }
.ed-uch-legend { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: #6B7280; }
.ed-uch-legend i { flex: none; width: 16px; height: 10px; border: 1px dashed #C2410C; background: repeating-linear-gradient(45deg, rgba(194, 65, 12, .35) 0 1px, transparent 1px 5px); }
.ed-uch-info > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed rgba(200, 195, 185, .6); }
.ed-uch-info span { color: #6B7280; flex: none; max-width: 48%; }
.ed-uch-info b { font-weight: 600; text-align: right; overflow-wrap: break-word; min-width: 0; }
.ed-uch-info .is-long { flex-direction: column; gap: 2px; }
.ed-uch-info .is-long span { max-width: none; }
.ed-uch-info .is-long b { text-align: left; }
.ed-uch-info .ed-uch-geo { display: block; border: 0; padding-top: 10px; color: #374151; }
.ed-uch-info .ed-uch-acts { border: 0; justify-content: flex-start; flex-wrap: wrap; gap: 6px 16px; padding-top: 10px; }
.ed-uch-link { border: 0; background: none; padding: 0; font: 600 13px 'Inter', Arial, sans-serif; color: #2E7A5E; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ed-uch-man-t { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.ed-uch-man-f { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.ed-uch-man-f label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #6B7280; }
.ed-uch-man-f input { width: 120px; padding: 9px 10px; border: 1px solid rgba(230, 225, 215, .9); border-radius: 10px; font: 600 15px 'Inter', Arial, sans-serif; }
@media (max-width: 760px) {
  .ed-uch-grid { grid-template-columns: 1fr; }
  .ed-uch-res { padding: 10px; }
}

/* Генплан (#461, ed-gp.js): кнопка под стоимостью шага 3; карточка виджета за экраном — окно генплана открывается поверх страницы */
.ed-gp { margin-top: 14px; }
.ed-gp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 12px; background: #2E7A5E; color: #fff; font: 600 14px 'Inter', Arial, sans-serif; cursor: pointer; transition: background .15s; }
.ed-gp-btn:hover { background: #246650; }
.ed-gp-btn:focus-visible { outline: 3px solid rgba(46, 122, 94, .35); outline-offset: 2px; }
.ed-gp-btn:disabled { background: #E9ECEB; color: #9AA3A0; cursor: not-allowed; }
.ed-gp-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ed-gp-note { margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: #6B6660; }
.ed-gp-note .ed-uch-link { font-size: 12.5px; }
.ed-gp-man-f { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.ed-gp-man-f input { flex: 1 1 0; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid #D9D3C7; border-radius: 9px; font: 14px Inter, system-ui, sans-serif; background: #fff; }
.ed-gp-man-f input:focus { outline: none; border-color: #2E7A5E; box-shadow: 0 0 0 3px rgba(46, 122, 94, .15); }
.ed-gp-man-f span { color: #8A847B; }
.ed-gp-ok { flex: none; height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: #2E7A5E; color: #fff; font: 600 13px MontserratM, system-ui, sans-serif; cursor: pointer; }
.ed-gp-ok:hover { background: #246650; }
.ed-gp-note.is-err { color: #B42318; }
.ed-gp-warn { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 9px 11px; border: 1px solid #EBD9A8; border-radius: 10px; background: #FFF8E6; font-size: 12.5px; line-height: 1.45; color: #5C4A1E; }
.ed-gp-warn b { font-weight: 600; color: #4A3A12; }
.ed-gp-warn-i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: #C9A45C; color: #fff; font: 700 12px/1 Georgia, serif; }
.ed-gp-frame { position: absolute; left: -10000px; top: 0; width: 320px; }
/* #510: ленточный и плита — справочно, в калькуляторе выбирается только свайно-винтовой */
/* #776: справочные карточки (фундамент, септик) — полноцветные и читаемые; выбрать по-прежнему нельзя (pointer-events от .is-disabled) */
.mk-contour-card.is-disabled.ed-fund-info { opacity: 1; filter: none; }
.ed-fund-note { margin-top: auto; font: 12.5px/1.45 'Inter', Arial, sans-serif; background: #F3F1EC; color: #6B6660; border-radius: 10px; padding: 8px 12px; }

/* #515 «Что бывает в доме» — картинка с номерками (ed-sv.js) */
.ed-sv { margin: 0 0 18px; font-family: 'Inter', Arial, sans-serif; color: #2E2726; }
.ed-sv-h { font: 700 18px/1.3 MontserratM, 'Inter', Arial, sans-serif; margin: 0 0 4px; }
.ed-sv-sub { font-size: 13px; line-height: 1.45; color: #6B7280; margin: 0 0 12px; }
.ed-sv-pic { position: relative; border-radius: 14px; overflow: hidden; background: #F4F5F3; border: 1px solid rgba(26, 82, 63, .12); }
.ed-sv-pic img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ed-sv-pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #2E7A5E; color: #fff;
  font: 700 12px/22px 'Inter', Arial, sans-serif; text-align: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); transition: transform .15s, background .15s; z-index: 1; }
.ed-sv-pin:hover, .ed-sv-pin.is-on { background: #B8944D; transform: scale(1.18); z-index: 2; }
.ed-sv-tip { position: absolute; z-index: 3; max-width: 260px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .97); box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
  font-size: 13px; line-height: 1.45; pointer-events: none; }
.ed-sv-tip[hidden] { display: none; }
.ed-sv-tip b { display: block; margin: 0 0 2px; color: #1A523F; font-size: 14px; }
.ed-sv-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin: 14px 0 0; }
.ed-sv-g { min-width: 0; }
.ed-sv-gh { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #6B5A35; margin: 0 0 4px; }
.ed-sv-g ul { list-style: none; margin: 0; padding: 0; }
.ed-sv-g li button { display: flex; align-items: center; gap: 6px; width: 100%; padding: 3px 0; border: 0; background: none; font: 14px/1.35 'Inter', Arial, sans-serif; color: #2E2726; text-align: left; cursor: pointer; }
.ed-sv-g li button b { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #E9F2ED; color: #1A523F; font-size: 11px; line-height: 20px; text-align: center; }
.ed-sv-g li button:hover, .ed-sv-g li button.is-on { color: #1A523F; }
.ed-sv-g li button.is-on b { background: #B8944D; color: #fff; }
.ed-sv-more { font-size: 12.5px; color: #8A8F8C; margin: 2px 0 0; }
@media (max-width: 900px) { .ed-sv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ed-sv-pin { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 11px; line-height: 18px; } .ed-sv-tip { max-width: 200px; padding: 8px 10px; font-size: 12px; } .ed-sv-tip b { font-size: 13px; } .ed-sv-h { font-size: 16px; }
  .ed-sv-list { gap: 10px 12px; } .ed-sv-gh { font-size: 13px; text-transform: none; letter-spacing: 0; hyphens: manual; } .ed-sv-g li button { font-size: 13.5px; } }
/* #518 «Что нужно в вашем доме» — состав и площадь */
.ed-sv-need { margin: 22px 0 0; padding: 16px; border-radius: 14px; background: #FAFBFA; border: 1px solid rgba(26, 82, 63, .14); }
.ed-sv-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.ed-sv-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #EEF0EF; }
.ed-sv-rn { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; }
.ed-sv-rn small { display: block; font-size: 12px; color: #8A8F8C; }
.ed-sv-row.is-off .ed-sv-rn { color: #8A8F8C; }
.ed-sv-sw { display: inline-flex; margin-top: 5px; border: 1px solid #D5DAD7; border-radius: 8px; overflow: hidden; }
.ed-sv-sw button { border: 0; background: #fff; color: #4A504D; font: inherit; font-size: 12px; padding: 4px 9px; cursor: pointer; }
.ed-sv-sw button + button { border-left: 1px solid #D5DAD7; }
.ed-sv-sw button.is-on { background: #2E7A5E; color: #fff; }
.ed-sv-cnt { flex: none; display: flex; align-items: center; gap: 4px; }
.ed-sv-cnt button { width: 30px; height: 30px; padding: 0; border: 1px solid rgba(26, 82, 63, .25); border-radius: 8px; background: #fff; color: #1A523F; font: 600 17px/1 'Inter', Arial, sans-serif; cursor: pointer; }
.ed-sv-cnt button:hover:not(:disabled) { background: #EEF6F2; }
.ed-sv-cnt button:disabled { opacity: .35; cursor: default; }
.ed-sv-cnt b { min-width: 20px; text-align: center; font-size: 15px; }
.ed-sv-res { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #F3F8F5; border: 1px solid rgba(26, 82, 63, .2); font-size: 13.5px; line-height: 1.5; }
.ed-sv-res.is-warn { background: #FBF6EA; border-color: #E2CB94; }
.ed-sv-res.is-bad { background: #FCF0EE; border-color: #E6B3AA; }
.ed-sv-v { display: block; margin: 4px 0 0; }
.ed-sv-res.is-ok .ed-sv-v { color: #1A523F; } .ed-sv-res.is-warn .ed-sv-v { color: #8A6418; } .ed-sv-res.is-bad .ed-sv-v { color: #A23B2A; }
.ed-sv-note { margin: 6px 0 0; font-size: 12.5px; color: #6B7280; }
.ed-sv-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.ed-sv-go { height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: #2E7A5E; color: #fff; font: 600 14px MontserratM, system-ui, -apple-system, sans-serif; cursor: pointer; }
.ed-sv-go:hover { background: #246650; }
.ed-sv-go.is-alt { background: #fff; color: #1A523F; border: 1px solid rgba(26, 82, 63, .3); }
@media (max-width: 600px) { .ed-sv-need { padding: 12px; } .ed-sv-rows { grid-template-columns: 1fr; } .ed-sv-go { flex: 1 1 100%; } }
.ed-sv-auto { margin: 10px 0 0; font-size: 12.5px; color: #6B5A35; }
.ed-sv-auto[hidden] { display: none; }
.ed-sv-reset { height: 38px; padding: 0 6px; border: 0; background: none; color: #1A523F; font: 500 13.5px 'Inter', Arial, sans-serif; text-decoration: underline; cursor: pointer; }
/* #536 раскладка по правилам: две кнопки в строку, ниже «Открыть планировку» во всю ширину */
.ed-sv-plan { margin: 14px 0 0; }
.ed-sv-pbtns { display: flex; gap: 8px; margin: 0 0 8px; }
.ed-sv-pbtns .ed-sv-go { flex: 1 1 0; min-width: 0; }
.ed-sv-go.ed-sv-mine { display: block; width: 100%; }
.ed-sv-need.is-locked :is(.ed-sv-sub, .ed-sv-rows, .ed-sv-auto, .ed-sv-res, .ed-sv-pbtns, .ed-sv-chk) { display: none; }
.ed-sv-go small { font-size: 12px; opacity: .85; white-space: nowrap; }
.ed-sv-go:disabled { background: #E9ECEB; color: #8A8F8C; border-color: transparent; cursor: default; }
.ed-sv-pst { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: #6B7280; }
.ed-sv-pst[hidden], .ed-sv-chk[hidden] { display: none; }
.ed-sv-pst.is-ok { color: #1A523F; } .ed-sv-pst.is-warn { color: #8A6418; } .ed-sv-pst.is-bad { color: #A23B2A; }
.ed-sv-chk { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; background: #F3F8F5; border: 1px solid rgba(26, 82, 63, .2); }
.ed-sv-chk.is-warn { background: #FBF6EA; border-color: #E2CB94; }
.ed-sv-chk ul { margin: 4px 0 0; padding: 0 0 0 18px; }
@media (max-width: 600px) { .ed-sv-pbtns { flex-direction: column; } .ed-sv-pbtns .ed-sv-go { flex: none; width: 100%; } }
/* #724 Электрика: покупка плана, схема и состав (ed-el.js) */
.ed-rz-open.ed-rz-sec { color: #1A523F; background: #fff; border: 1px solid rgba(26, 82, 63, .35) !important; }
.ed-el { margin: -4px 0 16px; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid rgba(26, 82, 63, .2); font: 13px/1.45 'Inter', Arial, sans-serif; color: #2E2726; }
.ed-el:empty { display: none; }
.ed-el-h { display: grid; gap: 4px; margin-bottom: 12px; }
.ed-el-h b { font-size: 15px; color: #1A523F; }
.ed-el-h span { color: #5B5552; }
.ed-el-buy { border: 0; border-radius: 10px; padding: 11px 18px; font: 700 14px 'Inter', Arial, sans-serif; color: #fff; background: linear-gradient(135deg, #2E7A5E 0%, #1A523F 100%); cursor: pointer; }
.ed-el-buy[disabled] { opacity: .45; cursor: default; }
.ed-el-buy.is-wait { opacity: .8; }
.ed-el-buy i, .ed-el-wait i { display: inline-block; width: 11px; height: 11px; margin: 0 8px -1px 0; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: ed-rz-spin 1s linear infinite; }
.ed-el-err { margin-bottom: 10px; color: #A33A2B; }
.ed-el-wait { display: flex; align-items: center; padding: 28px 14px; justify-content: center; border-radius: 10px; background: #F3F8F5; color: #5B5552; }
.ed-el-wait i { border-color: rgba(26, 82, 63, .25); border-top-color: #1A523F; }
.ed-el-pic { display: block; width: 100%; padding: 8px; border: 1px solid rgba(26, 82, 63, .15); border-radius: 10px; background: #fff; cursor: zoom-in; }
.ed-el-pic svg, .ed-el-zoom-in svg { display: block; width: 100%; height: auto; max-height: 520px; }
.ed-el-st { margin: 16px 0 8px; font-weight: 700; font-size: 14px; color: #1A523F; }
.ed-el-sost { columns: 2; column-gap: 24px; }
.ed-el-g { break-inside: avoid; margin-bottom: 12px; }
.ed-el-g b { display: block; margin-bottom: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #8A7A55; }
.ed-el-g ul { margin: 0; padding: 0; list-style: none; }
.ed-el-g li { display: flex; gap: 8px; padding: 3px 0; border-bottom: 1px dashed rgba(26, 82, 63, .15); }
.ed-el-g li span { flex: 1; }
.ed-el-g li i { font-style: normal; font-weight: 600; white-space: nowrap; }
.ed-el-zoom { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 25, 22, .75); cursor: zoom-out; }
.ed-el-zoom-in { width: min(1200px, 100%); max-height: 100%; overflow: auto; padding: 12px; border-radius: 12px; background: #fff; }
.ed-el-zoom-in svg { max-height: calc(100vh - 56px); }
.ed-el-zoom > button { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; font-size: 18px; cursor: pointer; }
@media (max-width: 600px) { .ed-el-sost { columns: 1; } .ed-el-buy { width: 100%; } }
.ed-el-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.ed-el-act:first-child { margin-top: 0; }
.ed-el-act .ed-rz { margin: 0; padding: 0; background: none; border: 0; }
@media (max-width: 600px) { .ed-el-act > * { width: 100%; } }
/* #772 Скважина: цена метра сверх 15 м — справочная строка под описанием */
.ed-skv-note { margin: -4px 0 12px; font: 600 12.5px/1.45 'Inter', Arial, sans-serif; color: #A0522D; }
/* #775 листы схемы электрики (как в PDF) */
.ed-el-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ed-el-tabs button { border: 1px solid rgba(26, 82, 63, .3); background: #fff; color: #1A523F; border-radius: 999px; padding: 7px 14px; font: 600 13px 'Inter', Arial, sans-serif; cursor: pointer; }
.ed-el-tabs button[aria-selected="true"] { background: #1A523F; color: #fff; border-color: #1A523F; }
.ed-el-pic svg { max-height: none; }
/* #792 лист без штампа — HTML: чертёж и колонка легенды; кнопка-обёртка не должна менять шрифт и выравнивание */
.ed-el-pic { text-align: left; font: inherit; color: inherit; }
.ed-el-pic img, .ed-el-zoom-in img { max-width: 100%; height: auto; }

/* #833: плавающая кнопка «Помощь консультанта» — ПК: слева внизу в поле страницы, подпись при наведении; ≤1200: справа над нижней панелью итога */
.ed-help-fab { position: fixed; left: 24px; bottom: 24px; z-index: 880; display: flex; align-items: center; gap: 0; padding: 4px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 6px 22px rgba(26, 82, 63, .22); cursor: pointer; font-family: 'Inter', Arial, sans-serif; opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .25s, transform .25s, box-shadow .2s; }
.ed-help-fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ed-help-fab-ava { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #F7F4EC; box-shadow: inset 0 0 0 2px #B8944D; }
.ed-help-fab-ava img { position: absolute; left: 50%; top: 4px; width: 46px; height: auto; transform: translateX(-50%); }
.ed-help-fab-ava::after { content: ''; position: absolute; right: 5px; bottom: 5px; width: 10px; height: 10px; border-radius: 50%; background: #2E7A5E; box-shadow: 0 0 0 2px #fff; }
.ed-help-fab-t { max-width: 0; overflow: hidden; white-space: nowrap; color: #1A523F; font-size: 14px; font-weight: 600; transition: max-width .25s, padding .25s; }
.ed-help-fab:hover .ed-help-fab-t, .ed-help-fab:focus-visible .ed-help-fab-t { max-width: 220px; padding: 0 16px 0 10px; }
.ed-help-fab:hover { box-shadow: 0 8px 28px rgba(26, 82, 63, .3); }
.ed-help.is-flash { animation: ed-help-flash 1.8s ease; }
@keyframes ed-help-flash { 0%, 100% { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); } 25%, 60% { box-shadow: 0 0 0 4px rgba(184, 148, 77, .55), 0 6px 24px rgba(0, 0, 0, .08); } }
@media (max-width: 1200px) {
  .ed-help-fab { left: auto; right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); padding: 3px; }
  .ed-help-fab-ava { width: 46px; height: 46px; }
  .ed-help-fab-ava img { width: 40px; }
  .ed-help-fab:hover .ed-help-fab-t { max-width: 0; padding: 0; }
}
@media print { .ed-help-fab { display: none; } }

/* #889/#903: «Выбрать двери в интернет-магазине» и «Не нужно» (шаги 9 и 10) */
.ed-shop { margin: 0 0 16px; }
.ed-shop-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-shop-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 18px; border-radius: 10px; border: 1px solid #C9A45C; background: #FFF8E6; color: #5C4A1E; font: 600 14px MontserratM, system-ui, -apple-system, sans-serif; cursor: pointer; }
.ed-shop-btn:hover { background: #FBEFCF; }
.ed-shop-btn input { position: absolute; opacity: 0; pointer-events: none; }
.ed-shop-btn:has(input:focus-visible) { outline: 3px solid rgba(201, 164, 92, .4); outline-offset: 2px; }
.ed-shop-mag .ed-shop-on, .ed-shop-mag:has(input:checked) .ed-shop-off { display: none; }
.ed-shop-mag:has(input:checked) .ed-shop-on { display: inline; }
.ed-shop-mag:has(input:checked) { background: #2E7A5E; border-color: #2E7A5E; color: #fff; }
.ed-shop-no { border-color: #E3C9C9; background: #fff; color: #B42318; }
.ed-shop-no:hover { background: #FDF3F3; }
.ed-shop-no:has(input:checked) { background: #B42318; border-color: #B42318; color: #fff; }
.ed-shop-note { margin-top: 8px; font-size: 13px; line-height: 1.45; color: #6B6660; }
.ed-shop-note a { color: #1A523F; font-weight: 600; }
.ed-shop-hint { display: none; }
.ed-shop:has(.ed-shop-cb:checked) .ed-shop-hint { display: inline; }
.ed-shop:has(input:checked) ~ * { opacity: .45; }
@media (max-width: 600px) { .ed-shop-btn { flex: 1 1 100%; justify-content: center; } }
