/* === Общие стили калькуляторов === */
.calc-page { max-width: 1200px; margin: 0 auto; }
.calc-page__head { text-align: center; margin-bottom: 32px; }
.calc-page__head h1 { font-size: 32px; color: var(--brand); margin-bottom: 8px; }
.calc-page__head p { color: var(--muted); }

.calc-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.calc-form { background: white; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; }
.calc-form__step { margin-bottom: 28px; }
.calc-form__step:last-child { margin-bottom: 0; }
.calc-form__step-num { font-size: 14px; font-weight: 700; color: var(--brand); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

.calc-form label.field { display: flex; flex-direction: column; gap: 6px; }
.calc-form label.field span { font-size: 12px; color: var(--muted); }
.calc-form input[type="number"], .calc-form input[type="text"], .calc-form select {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: 14px; font-family: inherit; background: white;
}
.calc-form input:focus, .calc-form select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.calc-form input[type="range"] { width: 100%; accent-color: var(--brand); }
.calc-form output { font-weight: 600; color: var(--brand); }

.calc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.calc-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.calc-tab {
  position: relative; cursor: pointer; border: 2px solid var(--border);
  border-radius: var(--r-md); padding: 14px 12px; transition: 0.15s;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.calc-tab input { position: absolute; opacity: 0; }
.calc-tab:has(input:checked) { border-color: var(--brand); background: rgba(31,78,121,0.04); }
.calc-tab__pic { width: 60px; height: 50px; background: var(--bg); border-radius: var(--r-md); }
.calc-tab__name { font-size: 13px; font-weight: 500; }

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

.calc-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.calc-color {
  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;
}
.calc-color input { position: absolute; opacity: 0; }
.calc-color.active { box-shadow: 0 0 0 2px var(--brand); transform: scale(1.1); }

.calc-result {
  background: var(--brand-dark); color: white;
  border-radius: var(--r-xl); padding: 24px;
  position: sticky; top: 100px;
}
.calc-result__head h3 { color: var(--accent); margin-bottom: 4px; }
.calc-result__head p { font-size: 13px; opacity: 0.85; margin-bottom: 16px; }
.calc-result__head b { color: white; }
.calc-spec { margin-bottom: 16px; }
.calc-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;
}
.calc-spec-row__name { line-height: 1.3; }
.calc-spec-row__name small { display: block; color: rgba(255,255,255,0.5); font-size: 11px; margin-top: 2px; }
.calc-spec-row__qty { text-align: right; opacity: 0.85; }
.calc-spec-row__total { text-align: right; font-weight: 600; }
.calc-result__total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; font-size: 14px; }
.calc-result__total-sum { font-size: 28px; font-weight: 800; color: var(--accent); }
.calc-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; background: var(--accent); color: white; }
.calc-cta:hover { background: var(--accent-2); }
.calc-cta--secondary { background: rgba(255,255,255,0.15); color: white; }
.calc-cta--secondary:hover { background: rgba(255,255,255,0.25); }
.calc-note { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 12px; text-align: center; }

@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-row2, .calc-row3 { grid-template-columns: 1fr; }
  .calc-result { position: static; }
}

/* Лендинг калькуляторов */
.calc-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.calc-hub__card {
  background: white; border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 28px; text-decoration: none; color: var(--text);
  transition: 0.2s; display: flex; flex-direction: column;
}
.calc-hub__card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); border-color: var(--brand); }
.calc-hub__icon {
  width: 60px; height: 60px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white; font-size: 24px; font-weight: 700;
  border-radius: var(--r-2xl); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.calc-hub__icon--accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.calc-hub__title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.calc-hub__desc { font-size: 13px; color: var(--muted); flex: 1; line-height: 1.5; }
.calc-hub__cta { font-size: 14px; font-weight: 600; color: var(--brand); margin-top: 16px; }
