/* Поэтапный калькулятор бетона v220. Подключается только на странице бетона. */
.calc-wizard-v219{
  --wizard-green:#167a3f;
  --wizard-green-dark:#0f6031;
  --wizard-soft:#f3faf5;
  --wizard-line:#dbe9df;
  --wizard-text:#14231a;
  --wizard-muted:#617066;
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:24px;
  align-items:start;
}
.calc-wizard-main-v219,
.calc-wizard-summary-v219{
  min-width:0;
}
.calc-wizard-main-v219{
  border:1px solid var(--wizard-line);
  border-radius:24px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 18px 45px rgba(31,76,48,.08);
}
.calc-wizard-head-v219{
  padding:24px 26px 20px;
  background:linear-gradient(135deg,#f6fbf7 0%,#edf8f0 100%);
  border-bottom:1px solid var(--wizard-line);
}
.calc-wizard-kicker-v219{
  margin:0 0 8px;
  color:var(--wizard-green);
  font-weight:800;
  font-size:.78rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.calc-wizard-head-v219 h2{
  margin:0;
  font-size:clamp(1.35rem,2.2vw,1.9rem);
  color:var(--wizard-text);
}
.calc-wizard-head-v219 p{
  margin:8px 0 0;
  color:var(--wizard-muted);
  line-height:1.55;
}
.calc-wizard-progress-v219{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:20px;
}
.calc-wizard-progress-v219 button{
  appearance:none;
  border:0;
  background:transparent;
  color:#708076;
  padding:0;
  text-align:left;
  cursor:pointer;
  min-width:0;
}
.calc-wizard-progress-v219 button:disabled{cursor:default;opacity:.7}
.calc-wizard-progress-v219 .progress-line-v219{
  display:block;
  height:5px;
  border-radius:999px;
  background:#d8e6dc;
  margin-bottom:8px;
  overflow:hidden;
}
.calc-wizard-progress-v219 .progress-line-v219::after{
  content:"";
  display:block;
  width:0;
  height:100%;
  background:var(--wizard-green);
  transition:width .25s ease;
}
.calc-wizard-progress-v219 button.is-active .progress-line-v219::after,
.calc-wizard-progress-v219 button.is-complete .progress-line-v219::after{width:100%}
.calc-wizard-progress-v219 b{
  display:block;
  font-size:.82rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.calc-wizard-progress-v219 button.is-active b{color:var(--wizard-green-dark)}
.calc-wizard-step-v219{
  display:none;
  padding:26px;
}
.calc-wizard-step-v219.is-active{display:block;animation:wizardFadeV219 .22s ease}
@keyframes wizardFadeV219{from{opacity:.25;transform:translateY(5px)}to{opacity:1;transform:none}}
.calc-wizard-step-title-v219{
  margin-bottom:22px;
}
.calc-wizard-step-title-v219 h3{
  margin:0 0 7px;
  color:var(--wizard-text);
  font-size:1.3rem;
}
.calc-wizard-step-title-v219 p{
  margin:0;
  color:var(--wizard-muted);
  line-height:1.55;
}
.calc-wizard-v219 .construction-tabs{
  margin:0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.calc-wizard-v219 .construction-tabs button{
  min-height:112px;
  border-radius:16px;
  padding:14px 10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:normal;
  line-height:1.25;
}
.calc-wizard-v219 .construction-tabs button img{
  width:42px;
  height:42px;
}
.calc-wizard-fields-v219{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.calc-wizard-fields-v219 > label,
.calc-wizard-fields-v219 > .field{
  min-width:0;
  margin:0;
}
.calc-wizard-v219 label{
  overflow-wrap:normal;
  word-break:normal;
}
.calc-wizard-v219 .input-unit,
.calc-wizard-v219 input,
.calc-wizard-v219 select{
  min-width:0;
  max-width:100%;
}
.calc-wizard-v219 .advanced-detail{
  margin-top:18px;
  border:1px solid var(--wizard-line);
  border-radius:16px;
  background:#fbfdfb;
}
.calc-wizard-v219 .advanced-detail summary{
  padding:16px 18px;
}
.calc-wizard-v219 .advanced-grid{
  padding:0 18px 18px;
}
.calc-wizard-note-v219{
  margin-top:18px;
  padding:14px 16px;
  border-radius:14px;
  background:var(--wizard-soft);
  color:#3d5546;
  line-height:1.5;
  font-size:.92rem;
}
.calc-wizard-actions-v219{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:20px 26px 26px;
  border-top:1px solid #edf2ee;
  background:#fff;
}
.calc-wizard-actions-v219 .btn{
  min-width:150px;
}
.calc-wizard-actions-v219 .btn-next-v219{
  margin-left:auto;
}
.calc-wizard-error-v219{
  display:none;
  margin:0 26px 16px;
  padding:12px 14px;
  border:1px solid #efc3c3;
  border-radius:12px;
  color:#8a2929;
  background:#fff5f5;
  font-size:.9rem;
}
.calc-wizard-error-v219.is-visible{display:block}
.calc-wizard-v219 .is-invalid-v219 input,
.calc-wizard-v219 .is-invalid-v219 select{
  border-color:#c83d3d!important;
  box-shadow:0 0 0 3px rgba(200,61,61,.1)!important;
}
.calc-wizard-summary-v219{
  position:sticky;
  top:88px;
  border:1px solid var(--wizard-line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 16px 35px rgba(31,76,48,.07);
  overflow:hidden;
}
.calc-wizard-summary-head-v219{
  padding:18px 20px;
  background:linear-gradient(135deg,#f4faf5,#edf8f0);
  border-bottom:1px solid var(--wizard-line);
}
.calc-wizard-summary-head-v219 small{
  display:block;
  color:var(--wizard-green);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.calc-wizard-summary-head-v219 h3{
  margin:5px 0 0;
  font-size:1.1rem;
}
.calc-wizard-summary-list-v219{
  margin:0;
  padding:8px 20px;
}
.calc-wizard-summary-list-v219 div{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid #edf2ee;
}
.calc-wizard-summary-list-v219 div:last-child{border-bottom:0}
.calc-wizard-summary-list-v219 dt{
  color:var(--wizard-muted);
  font-size:.9rem;
}
.calc-wizard-summary-list-v219 dd{
  margin:0;
  color:var(--wizard-text);
  font-weight:800;
  text-align:right;
  max-width:150px;
  overflow-wrap:break-word;
}
.calc-wizard-summary-total-v219{
  padding:17px 20px;
  background:#f7fbf8;
  border-top:1px solid var(--wizard-line);
}
.calc-wizard-summary-total-v219 span{
  display:block;
  color:var(--wizard-muted);
  font-size:.85rem;
}
.calc-wizard-summary-total-v219 b{
  display:block;
  margin-top:3px;
  color:var(--wizard-green-dark);
  font-size:1.45rem;
}
.calc-wizard-summary-total-v219 button{
  width:100%;
  margin-top:13px;
}
.calc-wizard-step-v219[data-step="4"]{
  padding:0;
}
.calc-wizard-step-v219[data-step="4"] > .calc-wizard-step-title-v219{
  padding:26px 26px 0;
}
.calc-wizard-step-v219[data-step="4"] .result-card,
.calc-wizard-step-v219[data-step="4"] .estimate-card,
.calc-wizard-step-v219[data-step="4"] .selfmix-card{
  margin:18px 26px 0;
}
.calc-wizard-step-v219[data-step="4"] .selfmix-card{margin-bottom:26px}
.calc-wizard-v219 .result-card,
.calc-wizard-v219 .estimate-card,
.calc-wizard-v219 .selfmix-card{
  max-width:none;
}
.calc-wizard-v219 .calculate-btn{
  display:none!important;
}
.calc-wizard-v219 .calc-note{
  margin-top:16px;
}
.calc-wizard-mobile-summary-v219{display:none}
.calc-wizard-v219 [hidden]{display:none!important}
.calc-wizard-v219[data-current-step="1"] .calc-wizard-mobile-summary-v219,
.calc-wizard-v219[data-current-step="4"] .calc-wizard-mobile-summary-v219{display:none!important}


@media (max-width:980px){
  .calc-wizard-v219{grid-template-columns:minmax(0,1fr)}
  .calc-wizard-summary-v219{position:static;display:none}
  .calc-wizard-mobile-summary-v219{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    margin:0 18px 18px;
    padding:14px 16px;
    border:1px solid var(--wizard-line);
    border-radius:15px;
    background:#f4faf5;
  }
  .calc-wizard-mobile-summary-v219 small{display:block;color:var(--wizard-muted)}
  .calc-wizard-mobile-summary-v219 b{display:block;color:var(--wizard-green-dark);font-size:1.18rem}
  .calc-wizard-mobile-summary-v219 button{white-space:nowrap}
}
@media (max-width:760px){
  .concrete-hero{padding:18px 0 20px}
  .concrete-hero-grid{display:block;min-height:0}
  .concrete-hero-art,.hero-mini-badges.hero-badges-v29{display:none!important}
  .concrete-hero h1{font-size:clamp(27px,8vw,34px);margin-bottom:10px}
  .concrete-hero p{font-size:15px;line-height:1.5}
  .breadcrumbs{margin-bottom:14px;overflow-x:auto;white-space:nowrap}
  .concrete-calculator{padding-left:12px!important;padding-right:12px!important}
  .calc-wizard-main-v219{border-radius:18px}
  .calc-wizard-head-v219{padding:20px 18px 16px}
  .calc-wizard-progress-v219{gap:5px}
  .calc-wizard-progress-v219 b{font-size:.72rem}
  .calc-wizard-step-v219{padding:20px 18px}
  .calc-wizard-v219 .construction-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .calc-wizard-v219 .construction-tabs button{min-height:94px;padding:11px 8px;font-size:.88rem}
  .calc-wizard-fields-v219{grid-template-columns:minmax(0,1fr)}
  .calc-wizard-actions-v219{padding:16px 18px 20px;flex-wrap:wrap}
  .calc-wizard-actions-v219 .btn{min-width:0;flex:1 1 130px}
  .calc-wizard-error-v219{margin:0 18px 14px}
  .calc-wizard-step-v219[data-step="4"] > .calc-wizard-step-title-v219{padding:20px 18px 0}
  .calc-wizard-step-v219[data-step="4"] .result-card,
  .calc-wizard-step-v219[data-step="4"] .estimate-card,
  .calc-wizard-step-v219[data-step="4"] .selfmix-card{margin:14px 12px 0}
  .calc-wizard-step-v219[data-step="4"] .selfmix-card{margin-bottom:18px}
}
@media (max-width:430px){
  .calc-wizard-progress-v219 b{font-size:0}
  .calc-wizard-progress-v219 b::before{font-size:.72rem}
  .calc-wizard-progress-v219 button:nth-child(1) b::before{content:"Тип"}
  .calc-wizard-progress-v219 button:nth-child(2) b::before{content:"Размеры"}
  .calc-wizard-progress-v219 button:nth-child(3) b::before{content:"Смета"}
  .calc-wizard-progress-v219 button:nth-child(4) b::before{content:"Итог"}
  .calc-wizard-mobile-summary-v219{grid-template-columns:minmax(0,1fr);}
  .calc-wizard-mobile-summary-v219 button{width:100%}
}


/* v220: подробная смета занимает всю ширину финального шага. */
.calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card,
.calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card .table-wrap,
.calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card .table-scroll-v173{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
}

@media (min-width:431px){
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card .table-wrap,
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card .table-scroll-v173{
    display:block !important;
    overflow-x:hidden !important;
  }
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card table{
    display:table !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    table-layout:fixed !important;
    border-collapse:collapse !important;
  }
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card thead{
    display:table-header-group !important;
  }
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card tbody{
    display:table-row-group !important;
  }
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card tr{
    display:table-row !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:transparent !important;
  }
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card th,
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card td,
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card td:nth-child(n),
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card th:nth-child(n){
    display:table-cell !important;
    min-width:0 !important;
    max-width:none !important;
    padding:13px 12px !important;
    border-bottom:1px solid #e4ece7 !important;
    vertical-align:top !important;
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:break-word !important;
    line-height:1.4 !important;
    text-align:left !important;
  }
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card th{
    background:#f5faf6 !important;
    color:#3f5749 !important;
    font-weight:900 !important;
  }
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card td::before{
    content:none !important;
    display:none !important;
  }
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card th:nth-child(1),
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card td:nth-child(1){width:29% !important;}
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card th:nth-child(2),
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card td:nth-child(2){width:18% !important;}
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card th:nth-child(3),
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card td:nth-child(3){width:11% !important;}
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card th:nth-child(4),
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card td:nth-child(4){width:42% !important;}
}

@media (max-width:430px){
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card .table-wrap,
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card .table-scroll-v173{
    overflow:visible !important;
  }
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card table,
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card thead,
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card tbody,
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card tr,
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card th,
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] .estimate-card td{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
}


/* v221: устранение конфликта с глобальной .estimate-card главной страницы.
   Заголовок и экспорт остаются в верхней строке, таблица занимает обе колонки. */
@media (min-width:761px){
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] > .estimate-card{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-auto-flow:row !important;
    column-gap:24px !important;
    row-gap:18px !important;
    width:calc(100% - 52px) !important;
    max-width:none !important;
    min-width:0 !important;
    align-items:center !important;
    padding:22px !important;
  }
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] > .estimate-card > h2{
    grid-column:1 !important;
    grid-row:1 !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
    align-self:center !important;
  }
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] > .estimate-card > .calc-export-actions-v178{
    grid-column:2 !important;
    grid-row:1 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    justify-self:end !important;
    align-self:center !important;
  }
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] > .estimate-card > .table-wrap,
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] > .estimate-card > .table-scroll-v173{
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    justify-self:stretch !important;
    align-self:stretch !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
  }
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] > .estimate-card > .table-wrap > table,
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] > .estimate-card > .table-scroll-v173 > table{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
  }
}

@media (max-width:760px){
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] > .estimate-card{
    display:block !important;
    grid-template-columns:none !important;
  }
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] > .estimate-card > .calc-export-actions-v178{
    width:100% !important;
    margin:0 0 14px !important;
  }
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] > .estimate-card > .table-wrap,
  .calc-wizard-v219 .calc-wizard-step-v219[data-step="4"] > .estimate-card > .table-scroll-v173{
    width:100% !important;
  }
}


/* v222 restore visible construction icons */
.calc-wizard-v219 .construction-tabs button{
  position:relative;
  background:#fff;
  border:1px solid #dcebe1;
  box-shadow:0 10px 22px rgba(16,32,24,.04);
}
.calc-wizard-v219 .construction-tabs button img{
  width:56px;
  height:56px;
  display:block;
  padding:10px;
  border-radius:16px;
  background:linear-gradient(180deg,#f5faf6 0%,#eef8f1 100%);
  border:1px solid #dbece0;
  box-shadow:0 8px 18px rgba(18,145,58,.08);
  object-fit:contain;
}
.calc-wizard-v219 .construction-tabs button.active img,
.calc-wizard-v219 .construction-tabs button[aria-selected="true"] img{
  background:linear-gradient(180deg,#eefaf1 0%,#e3f6e8 100%);
  border-color:#a9ddb6;
  box-shadow:0 10px 22px rgba(18,145,58,.14);
}
.calc-wizard-v219 .construction-tabs button.active,
.calc-wizard-v219 .construction-tabs button[aria-selected="true"]{
  background:#f7fcf8;
  border-color:#9cd4aa;
}
@media (max-width:760px){
  .calc-wizard-v219 .construction-tabs button img{
    width:52px;
    height:52px;
    padding:9px;
    border-radius:14px;
  }
}

/* v223 transparent tab icons */
.calc-wizard-v219 .construction-tabs button img,
.construction-tabs button img[src*="concrete-tab-icons-v223"]{
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: transparent !important;
  filter: none !important;
}
@media (max-width: 760px){
  .calc-wizard-v219 .construction-tabs button img,
  .construction-tabs button img[src*="concrete-tab-icons-v223"]{
    width: 46px;
    height: 46px;
  }
}

/* v224: final transparent construction-choice icons */
.calc-wizard-v219 .construction-tabs button img[src*="concrete-tab-icons-v223"] {
  width: 76px !important;
  height: 76px !important;
  padding: 0 !important;
  margin: 0 auto 4px !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}
.calc-wizard-v219 .construction-tabs button.active img[src*="concrete-tab-icons-v223"],
.calc-wizard-v219 .construction-tabs button[aria-selected="true"] img[src*="concrete-tab-icons-v223"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}
@media (max-width: 760px) {
  .calc-wizard-v219 .construction-tabs button img[src*="concrete-tab-icons-v223"] {
    width: 64px !important;
    height: 64px !important;
  }
}
