

/* Start:/local/components/metal_house/calc.roof/templates/.default/style.css?17772803845649*/
.calc-roof { max-width: 1200px; margin: 0 auto; }
.calc-roof__head { text-align: center; margin-bottom: 32px; }
.calc-roof__head h1 { font-size: 32px; color: var(--brand); margin-bottom: 8px; }
.calc-roof__head p { color: var(--muted); }

.calc-roof__layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}

.calc-roof__form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
}
.calc-roof__step { margin-bottom: 28px; }
.calc-roof__step:last-child { margin-bottom: 0; }
.calc-roof__step-num {
  font-size: 14px; font-weight: 700; color: var(--brand);
  margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* Тип крыши */
.calc-roof__roof-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rt-card {
  position: relative; cursor: pointer;
  border: 2px solid var(--border); border-radius: var(--r-md);
  padding: 12px; transition: 0.15s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.rt-card input { position: absolute; opacity: 0; }
.rt-card:has(input:checked) { border-color: var(--brand); background: rgba(31,78,121,0.04); }
.rt-card__pic { width: 60px; height: 50px; }
.rt-card__name { font-size: 12px; font-weight: 500; }
/* SVG-имитация типов крыши */
.rt-double  { background: linear-gradient(45deg, transparent 49%, var(--muted) 49%, var(--muted) 51%, transparent 51%), linear-gradient(-45deg, transparent 49%, var(--muted) 49%, var(--muted) 51%, transparent 51%); }
.rt-quad    { background: radial-gradient(ellipse at center, var(--muted) 0%, var(--muted) 30%, transparent 31%); }
.rt-valm    { background: linear-gradient(to bottom, transparent 30%, var(--muted) 30%, var(--muted) 100%); border-radius: 8px 8px 0 0; }
.rt-mansard { background: linear-gradient(to bottom, var(--muted) 0%, var(--muted) 50%, transparent 50%, transparent 60%, var(--muted) 60%, var(--muted) 100%); }

/* Размеры */
.calc-roof__row3 { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 12px; }
.calc-roof__row3 label { display: flex; flex-direction: column; gap: 6px; }
.calc-roof__row3 span { font-size: 12px; color: var(--muted); }
.calc-roof__row3 input[type="number"] {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: 14px; font-family: inherit;
}
.calc-roof__row3 input[type="number"]:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.calc-roof__row3 input[type="range"] { width: 100%; accent-color: var(--brand); }
.calc-roof__row3 output { font-weight: 600; color: var(--brand); }

/* Материал и цвет */
.calc-roof__form select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: 14px; font-family: inherit; margin-bottom: 12px;
  background: white;
}
.calc-roof__colors { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid white; box-shadow: 0 0 0 1px var(--border);
  cursor: pointer; transition: 0.15s; position: relative;
}
.color-swatch input { position: absolute; opacity: 0; }
.color-swatch.active { box-shadow: 0 0 0 2px var(--brand); transform: scale(1.1); }

/* Опции */
.calc-roof__opts { display: flex; flex-direction: column; gap: 10px; }
.calc-roof__opts label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: 14px;
}
.calc-roof__opts label:has(input:checked) { background: rgba(31,78,121,0.04); border-color: var(--brand); }

/* Спецификация */
.calc-roof__result {
  background: var(--brand-dark); color: white;
  border-radius: var(--r-xl); padding: 24px;
  position: sticky; top: 100px;
}
.calc-roof__result-head h3 { color: var(--accent); margin-bottom: 4px; }
.calc-roof__result-head p { font-size: 13px; opacity: 0.85; margin-bottom: 16px; }
.calc-roof__result-head b { color: white; }
.calc-roof__spec { margin-bottom: 16px; }
.spec-row {
  display: grid; grid-template-columns: 1.4fr 0.6fr 0.7fr; gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
}
.spec-row__name { line-height: 1.3; }
.spec-row__name small { display: block; color: rgba(255,255,255,0.5); font-size: 11px; margin-top: 2px; }
.spec-row__qty { text-align: right; opacity: 0.85; }
.spec-row__total { text-align: right; font-weight: 600; }

.calc-roof__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0;
  font-size: 14px;
}
.calc-roof__total-sum { font-size: 28px; font-weight: 800; color: var(--accent); }

.calc-roof__cta {
  width: 100%; padding: 14px;
  border: 0; border-radius: var(--r-md);
  font-size: 15px; font-weight: 600; cursor: pointer;
  margin-bottom: 8px;
  font-family: inherit;
  transition: 0.15s;
}
.calc-roof__cta { background: var(--accent); color: white; }
.calc-roof__cta:hover { background: var(--accent-2); }
.calc-roof__cta:disabled { opacity: 0.6; cursor: wait; }
.calc-roof__cta--secondary { background: rgba(255,255,255,0.15); color: white; }
.calc-roof__cta--secondary:hover { background: rgba(255,255,255,0.25); }

.calc-roof__note { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 12px; text-align: center; }

@media (max-width: 900px) {
  .calc-roof__layout { grid-template-columns: 1fr; }
  .calc-roof__roof-types { grid-template-columns: repeat(2, 1fr); }
  .calc-roof__row3 { grid-template-columns: 1fr; }
  .calc-roof__result { position: static; }
}

/* End */
/* /local/components/metal_house/calc.roof/templates/.default/style.css?17772803845649 */
