.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.calc-progress { margin-bottom: 36px; }
.calc-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.calc-progress-bar {
  height: 6px;
  background: var(--surface2);
  border-radius: 100px;
  overflow: hidden;
}
.calc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px;
  width: 20%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-step { display: none; animation: calcFadeIn 0.35s ease both; }
.calc-step.active { display: block; }

@keyframes calcFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.calc-step-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.calc-step-hint {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.calc-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.calc-options.calc-options--two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.calc-option {
  display: block;
  cursor: pointer;
  padding: 22px 20px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: all 0.2s;
  position: relative;
}
.calc-option:hover {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.02);
}
.calc-option input { position: absolute; opacity: 0; pointer-events: none; }
.calc-option.selected {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.04);
  box-shadow: 0 0 0 1px var(--accent);
}
.calc-option.selected::after {
  content: '✓';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.calc-option-title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}
.calc-option-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.calc-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.calc-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.calc-checkbox:hover { border-color: rgba(37, 99, 235, 0.3); }
.calc-checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.calc-checkbox.selected {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.04);
}
.calc-checkbox-tick {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: #fff;
  transition: all 0.2s;
  margin-top: 1px;
}
.calc-checkbox.selected .calc-checkbox-tick {
  background: var(--accent);
  border-color: var(--accent);
}
.calc-checkbox.selected .calc-checkbox-tick::after { content: '✓'; }
.calc-checkbox-body { flex: 1; }
.calc-checkbox-title { font-weight: 600; font-size: 0.92rem; }
.calc-checkbox-desc { font-size: 0.8rem; color: var(--muted); margin-top: 2px; line-height: 1.5; }

.calc-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.calc-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.calc-nav .calc-spacer { flex: 1; }

.calc-result { text-align: center; padding: 8px 0; }
.calc-result-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.calc-result-price {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.calc-result-price .calc-currency {
  font-size: 0.55em;
  color: var(--muted);
  font-weight: 600;
}
.calc-result-price .calc-dash { color: var(--muted); font-weight: 500; }
.calc-result-note {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 28px;
}

.calc-summary {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  text-align: left;
  margin-bottom: 28px;
}
.calc-summary h4 {
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.calc-summary-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.calc-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  padding: 4px 0;
}
.calc-summary-list li span:first-child { color: var(--text); }
.calc-summary-list li span:last-child { color: var(--muted); font-weight: 600; white-space: nowrap; text-align: right; }

.calc-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .calc-card { padding: 24px 20px; border-radius: 16px; }
  .calc-step-title { font-size: 1.2rem; }
  .calc-options { grid-template-columns: 1fr; }
  .calc-checkboxes { grid-template-columns: 1fr; }
  .calc-nav { flex-wrap: wrap; }
  .calc-nav button { flex: 1; min-width: 130px; justify-content: center; }
  .calc-actions { flex-direction: column; }
  .calc-actions button { width: 100%; justify-content: center; }
  .calc-summary { padding: 18px 20px; }
}


/* ════════════════════════════════════════════════════════════════════════
   Стили для бейджей цены опций и блока "текущей суммы"
   ════════════════════════════════════════════════════════════════════════ */

/* === Бейдж цены в radio-карточке === */
.calc-option-price {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.calc-option-price--free {
  background: rgba(22, 163, 74, 0.1);
  color: var(--green);
  font-weight: 600;
}

/* === Бейдж цены в чекбоксе (справа от названия) === */
.calc-checkbox-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.calc-checkbox-price {
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.calc-checkbox-price--free {
  background: rgba(22, 163, 74, 0.1);
  color: var(--green);
  font-weight: 600;
}

/* === Running total — блок "Текущая сумма" внизу карточки === */
.calc-running {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.calc-running-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Sora', sans-serif;
}

.calc-running-value {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease;
  transform-origin: right center;
}

.calc-running-prefix {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.calc-running-currency {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

/* Bump-анимация при изменении суммы */
.calc-running--bumped .calc-running-value {
  animation: calcRunBump 0.3s ease;
}

@keyframes calcRunBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media (max-width: 600px) {
  .calc-running-value {
    font-size: 1.25rem;
  }
  .calc-checkbox-row {
    flex-wrap: wrap;
  }
}

.calc-card button {
  padding: 8px 24px;
  line-height: 1.3;
}
