/* ============================================================
   Flexxt — упрощённый калькулятор на акцентной панели (электрик)
   ============================================================ */
.ff-calc { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; margin-top: 32px; position: relative; z-index: 1; }
.ff-inputs { display: flex; flex-wrap: wrap; gap: 22px 20px; align-content: start; }
.ff-field { flex: 1 1 100%; }
.ff-field--half { flex: 1 1 calc(50% - 10px); }

.ff-seg-label, .ff-label { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.82); margin-bottom: 10px; }
.ff-label { display: flex; justify-content: space-between; align-items: baseline; }
.ff-label b { font-size: 16px; font-weight: 600; color: #fff; }

/* ползунки */
input[type="range"].ff-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, #fff var(--fill, 12%), rgba(255,255,255,.24) var(--fill, 12%));
}
input[type="range"].ff-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(22,23,46,.28); transition: transform .15s;
}
input[type="range"].ff-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"].ff-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: none; }

/* сегменты (тумблеры) */
.ff-seg { display: flex; gap: 8px; }
.ff-seg button {
  flex: 1 1 0; min-width: 0; min-height: 46px;
  display: flex; align-items: center; justify-content: center;
  padding: 11px 12px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.82); font: 500 14px var(--font); transition: all .18s; text-align: center;
  line-height: 1.25;
}
.ff-seg button:hover { background: rgba(255,255,255,.18); color: #fff; }
.ff-seg button.is-on { background: #fff; color: var(--accent); border-color: #fff; font-weight: 600; }

/* габарит — сетка 2×2 с примерами */
.ff-seg--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ff-seg--grid button { display: flex; flex-direction: column; gap: 3px; padding: 13px 14px; text-align: left; }
.ff-seg--grid button b { font-size: 14.5px; font-weight: 600; }
.ff-seg--grid button em { font-style: normal; font-size: 11.5px; opacity: .8; line-height: 1.3; }
.ff-seg--grid button.is-on em { opacity: .7; }

/* результат */
.ff-result { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column; }
.ff-result-label { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.ff-total { font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 6px 0 2px; color: #fff; }
.ff-per-wrap { font-size: 15px; color: rgba(255,255,255,.9); font-weight: 500; }
.ff-rows { list-style: none; margin: 20px 0 0; padding: 0; }
.ff-rows li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; color: rgba(255,255,255,.82); }
.ff-rows li b { color: #fff; font-weight: 600; white-space: nowrap; }
.ff-cta { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.ff-btn { display: block; text-align: center; padding: 14px 22px; border-radius: var(--radius); background: #fff; color: var(--accent); font-weight: 600; font-size: 15.5px; transition: transform .2s, box-shadow .2s; }
.ff-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,23,46,.22); }
.ff-hint { font-size: 12px; line-height: 1.45; color: rgba(255,255,255,.62); text-align: center; }

@media (max-width: 900px) { .ff-calc { grid-template-columns: 1fr; gap: 26px; } }
@media (max-width: 520px) {
  .ff-field--half { flex: 1 1 100%; }
  .ff-seg--grid { grid-template-columns: 1fr; }
  .ff-result { padding: 20px 18px; }
}
