/* ═══════════════════════════════════════════════
   MyTeam - калькулятор вартості (inc/calculator.php, assets/js/calculator.js)
═══════════════════════════════════════════════ */
.mtc {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--rim);
  border-radius: var(--r-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  max-width: 1080px;
  margin: 0 auto;
}
.mtc__title { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--white); letter-spacing: -.02em; margin: 0 0 20px; }
.mtc__choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.mtc__choice-btn {
  font: inherit; text-align: left; color: var(--text); background: var(--glass); border: 1px solid var(--rim);
  border-radius: var(--r); padding: 16px 18px; cursor: pointer; transition: border-color var(--transition), background var(--transition);
  min-height: 48px; text-decoration: none; display: block;
}
.mtc__choice-btn b { display: block; color: var(--white); font-size: 16px; }
.mtc__choice-btn span { font-size: 13px; color: var(--sub); }
.mtc__choice-btn[aria-pressed="true"] { border-color: rgba(77,138,255,.55); background: rgba(77,138,255,.1); }
.mtc__choice-btn:hover { border-color: var(--rim2); }

.mtc__steps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; font-size: 13px; font-weight: 700; color: var(--sub); }
.mtc__step { display: flex; align-items: center; gap: 8px; }
.mtc__step.is-on { color: var(--white); }
.mtc__dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rim2); font-size: 12px; }
.mtc__step.is-on .mtc__dot { background: var(--azure); border-color: var(--azure); color: var(--ink); }
.mtc__step.is-done .mtc__dot { background: rgba(34,211,160,.18); border-color: var(--lime); color: var(--lime); }
.mtc__line { flex: 0 0 28px; height: 1px; background: var(--rim2); }

.mtc__form { max-width: 520px; }
.mtc__field { margin-bottom: 12px; }
.mtc__field label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.mtc__field input {
  width: 100%; font: inherit; font-size: 16px; color: var(--white); background: rgba(255,255,255,.05);
  border: 1px solid var(--rim2); border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px; outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.mtc__field input:focus { border-color: rgba(77,138,255,.6); background: rgba(77,138,255,.06); }
.mtc__err { display: none; color: #ff8fa3; font-size: 13px; margin-top: 4px; }
.mtc__field.is-bad input { border-color: #ff8fa3; }
.mtc__field.is-bad .mtc__err { display: block; }
.mtc__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mtc__hint { font-size: 13px; color: var(--sub); margin: 4px 0 14px; }
.mtc__error { color: #ff8fa3; font-size: 14px; margin: 8px 0; }
.mtc__ahead { margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--rim2); border-radius: var(--r-sm); font-size: 13px; color: var(--sub); max-width: 520px; }
.mtc__ahead span { color: var(--text); }

.mtc__btn { min-height: 48px; cursor: pointer; }
.mtc__btn[disabled] { opacity: .5; cursor: progress; }
.mtc__btn--wide { width: 100%; justify-content: center; margin-top: 12px; }
.mtc__link { background: none; border: 0; color: var(--sub); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; min-height: 44px; padding: 0; }

.mtc__q { margin-bottom: 18px; }
.mtc__q h3 { font-size: 15px; font-weight: 700; color: var(--white); margin: 0 0 8px; }
.mtc__q h3 small { color: var(--sub); font-weight: 500; }
.mtc__q--wiz { min-height: 170px; }
.mtc__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.mtc__opt {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: var(--glass);
  border: 1px solid var(--rim); border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; text-align: left;
  transition: border-color var(--transition), background var(--transition);
  touch-action: manipulation;
}
.mtc__opt:hover { border-color: var(--rim2); }
.mtc__add { font-size: 12px; color: var(--sub); font-weight: 600; font-variant-numeric: tabular-nums; }
.mtc__opt[aria-pressed="true"] { border-color: rgba(77,138,255,.6); background: rgba(77,138,255,.14); color: var(--white); }
.mtc__opt[aria-pressed="true"] .mtc__add { color: #a9c4ff; }
.mtc__opt:focus-visible, .mtc__choice-btn:focus-visible, .mtc__link:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }

.mtc__count { font-size: 13px; color: var(--sub); font-weight: 700; margin-top: 14px; }
.mtc__bar { height: 6px; border-radius: 999px; background: var(--glass2); overflow: hidden; margin: 6px 0 18px; }
.mtc__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--azure), var(--violet)); transition: width .3s ease; }
.mtc__nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.mtc__result { border-radius: var(--r); padding: 20px; background: linear-gradient(135deg, rgba(77,138,255,.16), rgba(139,92,246,.1)); border: 1px solid rgba(77,138,255,.35); }
.mtc__lbl { font-size: 12px; color: var(--sub); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mtc__sum { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--white); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 4px 0; }
.mtc__term { color: var(--text); font-size: 15px; }
.mtc__result ul { margin: 12px 0 0 18px; color: var(--sub); font-size: 13px; }
.mtc__note { margin-top: 10px; font-size: 13px; color: var(--sub); }
.mtc__result--wait { background: linear-gradient(135deg, rgba(77,138,255,.08), rgba(139,92,246,.05)); border-style: dashed; }
.mtc__wait { margin: 8px 0 0; font-size: 14px; color: var(--sub); line-height: 1.55; }
.mtc__ok { display: flex; gap: 10px; align-items: flex-start; color: var(--lime); font-size: 14px; font-weight: 600; margin-top: 12px; }
.mtc__ok svg { flex: 0 0 18px; margin-top: 2px; }

.mtc__panel { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.mtc__aside { position: sticky; top: 90px; }

/* текст без JS */
.mtc__static .mtc__q p { color: var(--sub); font-size: 14px; margin: 0; }

@media (max-width: 899px) {
  .mtc { padding: 20px; }
  .mtc__panel { grid-template-columns: 1fr; }
  .mtc__aside { position: static; }
}
@media (max-width: 560px) {
  .mtc__choice { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mtc *, .mtc__bar i { transition: none !important; }
}
