/* Калькулятор стоимости (js/calc.js) — строгий стиль сайта: без скруглений у блоков, кнопки 6 px */
.eqc { --eqc-line: #e1e5ea; --eqc-muted: #8a909b; --eqc-text: #1b2b40; --eqc-gold: var(--buttuns-links, #f4c14a); }
#eq-calc { color: var(--eqc-text); }
.eqc-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
.eqc-view { position: sticky; top: 130px; }
.eqc-stage { position: relative; background: linear-gradient(180deg, #f3f5f8 0%, #e8ecf1 100%); border: 1px solid var(--eqc-line); }
.eqc-svg { display: block; width: 100%; height: auto; cursor: grab; touch-action: none; user-select: none; }
.eqc-svg:active { cursor: grabbing; }
.eqc-face { cursor: pointer; }
.eqc-face:hover { filter: brightness(1.04); }
.eqc-hint { position: absolute; left: 12px; bottom: 10px; right: 12px; font-size: 12px; color: var(--eqc-muted); pointer-events: none; }
.eqc-dims { position: absolute; left: 12px; top: 10px; font-size: 14px; color: var(--eqc-text); background: rgba(255, 255, 255, .85); padding: 6px 10px; pointer-events: none; }

.eqc-panel { background: #fff; border: 1px solid var(--eqc-line); }
.eqc-step { padding: 18px 20px; border-bottom: 1px solid var(--eqc-line); }
.eqc-step:last-child { border-bottom: 0; }
.eqc-label { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--eqc-muted); margin-bottom: 10px; }

.eqc-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.eqc-seg button, .eqc-tabs button { border: 1px solid var(--eqc-line); background: #fff; color: var(--eqc-text); font: inherit; font-size: 14px; padding: 9px 10px; border-radius: 6px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.eqc-seg button:hover, .eqc-tabs button:hover { border-color: #c8ced6; }
.eqc-seg button.is-on, .eqc-tabs button.is-on { background: var(--eqc-text); border-color: var(--eqc-text); color: #fff; }

.eqc-sliders { display: grid; gap: 14px; }
.eqc-slider { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 14px; margin: 0; }
.eqc-sl-val { color: var(--eqc-muted); white-space: nowrap; }
.eqc-sl-val input { width: 64px; padding: 4px 6px; border: 1px solid var(--eqc-line); font: inherit; font-weight: 600; color: var(--eqc-text); text-align: right; }
.eqc-slider input[type=range] { grid-column: 1 / -1; width: 100%; margin: 6px 0 2px; height: 4px; padding: 0; border: 0; -webkit-appearance: none; appearance: none; background: #dfe4ea; outline: none; cursor: pointer; }
.eqc-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--eqc-text); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--eqc-text); }
.eqc-slider input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--eqc-text); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--eqc-text); }
.eqc-slider input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--eqc-text), 0 0 0 5px rgba(244, 193, 74, .5); }

.eqc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.eqc-tabs button { position: relative; font-size: 13px; }
.eqc-tabs button[data-n]:not([data-n="0"])::after { content: attr(data-n); position: absolute; top: -7px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--eqc-gold); color: var(--eqc-text); font-size: 11px; line-height: 18px; font-weight: 700; }
.eqc-counters { display: grid; gap: 2px; }
.eqc-counter { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--eqc-line); }
.eqc-counter:last-child { border-bottom: 0; }
.eqc-cnt { display: inline-flex; align-items: center; gap: 10px; }
.eqc-cnt b { min-width: 18px; text-align: center; }
.eqc-cnt button { width: 30px; height: 30px; border: 1px solid var(--eqc-line); background: #fff; border-radius: 6px; font-size: 18px; line-height: 1; cursor: pointer; color: var(--eqc-text); }
.eqc-cnt button:hover { border-color: var(--eqc-text); }
.eqc-warn { margin-top: 10px; font-size: 13px; color: #b54708; background: #fff6e6; padding: 8px 10px; }

.eqc-extra { display: grid; gap: 10px; }
.eqc-field { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; margin: 0; }
.eqc-field select, .eqc-field input { width: 120px; padding: 6px 8px; border: 1px solid var(--eqc-line); font: inherit; color: var(--eqc-text); background: #fff; }
.eqc-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0; cursor: pointer; }

.eqc-result { margin-top: 28px; }
.eqc-demo { margin-bottom: 14px; padding: 10px 14px; background: #fff6e6; border-left: 3px solid var(--eqc-gold); font-size: 14px; }
.eqc-kpi { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--eqc-line); background: #fff; }
.eqc-kpi div { padding: 16px 18px; }
.eqc-kpi div + div { border-left: 1px solid var(--eqc-line); }
.eqc-kpi span { display: block; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--eqc-muted); margin-bottom: 4px; }
.eqc-kpi b { font-size: 22px; font-weight: 700; white-space: nowrap; }
.eqc-kpi div:first-child b { color: var(--eqc-text); }
.eqc-range { border: 1px solid var(--eqc-line); border-top: 0; background: #fff; padding: 14px 18px; }
.eqc-range-txt { font-size: 15px; margin-bottom: 10px; }
.eqc-bar { position: relative; height: 6px; background: linear-gradient(90deg, #dfe4ea, var(--eqc-gold), #dfe4ea); }
.eqc-bar i { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--eqc-text); left: 50% !important; }
.eqc-table-wrap { overflow-x: auto; border: 1px solid var(--eqc-line); border-top: 0; background: #fff; }
.eqc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.eqc-table th { text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--eqc-muted); padding: 12px 18px; border-bottom: 1px solid var(--eqc-line); }
.eqc-table td { padding: 11px 18px; border-bottom: 1px solid #eef1f4; }
.eqc-table td:not(:first-child), .eqc-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.eqc-table .eqc-total td { font-weight: 700; border-bottom: 0; background: #f7f9fb; }
.eqc-note { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: #5f6c7a; }
.eqc-cta { margin-top: 18px; }
.eqc-cta .top-callback, .eqc-form .top-callback { display: inline-block; border: 0; cursor: pointer; padding: 16px 24px; font: inherit; font-weight: 600; background: var(--eqc-gold); color: var(--eqc-text); }
.eqc-cta .top-callback:hover, .eqc-form .top-callback:hover { background: var(--buttuns-links-hover, #e0a92c); color: #fff; }
.eqc-form { margin-top: 16px; padding: 20px; border: 1px solid var(--eqc-line); background: #fff; }
.eqc-form-title { font-size: 15px; margin-bottom: 12px; }
.eqc-form-row { display: grid; grid-template-columns: 1fr 1fr 160px; gap: 10px; margin-bottom: 10px; }
.eqc-form-row input, .eqc-form-row select { padding: 12px; border: 1px solid var(--eqc-line); font: inherit; background: #fff; }
.eqc-agree { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 0 0 12px; }
.eqc-sent { margin-top: 10px; font-size: 14px; color: #027a48; }
.eqc-sent.is-err { color: #b42318; }
.eqc-form button[disabled] { opacity: .6; cursor: default; }
.eqc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 991px) {
  .eqc-grid { grid-template-columns: 1fr; }
  .eqc-view { position: static; }
  .eqc-kpi { grid-template-columns: 1fr 1fr; }
  .eqc-kpi div:nth-child(3) { border-left: 0; }
  .eqc-kpi div:nth-child(n+3) { border-top: 1px solid var(--eqc-line); }
}
@media (max-width: 575px) {
  .eqc-kpi b { font-size: 18px; }
  .eqc-hint { display: none; }
  .eqc-form-row { grid-template-columns: 1fr; }
  /* на телефоне — одна строка на раздел: «раздел — итого»; материалы и работы есть в карточках выше */
  .eqc-table { font-size: 14px; }
  .eqc-table th:nth-child(2), .eqc-table th:nth-child(3), .eqc-table td:nth-child(2), .eqc-table td:nth-child(3) { display: none; }
  .eqc-table th, .eqc-table td { padding: 10px 14px; }
  .eqc-table td:first-child { white-space: normal; }
}
