.calculator-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: center;
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-surface-elevated, #1e293b);
  outline: none;
  transition: var(--transition);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
  transition: transform 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
}

.calc-summary {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.calc-price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.calc-price-val {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--text-main);
}

.calc-price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.calc-specs-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calc-spec-row {
  display: flex;
  justify-content: space-between;
}

.calc-spec-label {
  color: var(--text-dim);
}

.calc-spec-val {
  font-weight: 600;
  color: var(--text-main);
}

.compare-table-wrap {
  overflow-x: auto;
  margin-top: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.compare-table th, .compare-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-table th {
  background: var(--bg-surface);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--text-main);
}

.compare-table tr:hover td {
  background: var(--bg-card-hover);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.pill-primary {
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pill-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pill-gray {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.consent-group {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  cursor: pointer;
}

.consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.consent strong {
  color: var(--text-main);
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

.legal-h {
  font-size: 1.15rem;
  margin: 2.25rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.legal-p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.9rem;
}

.legal-p strong,
.legal-list li strong {
  color: var(--text-main);
}

.legal-list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}

.legal-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-todo {
  display: inline-block;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px dashed rgba(239, 68, 68, 0.5);
  border-radius: 6px;
  padding: 0 0.45rem;
  font-weight: 700;
  font-size: 0.88em;
}

.plan-option {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.plan-option + .plan-option {
  margin-top: 0.85rem;
}

.plan-option:hover {
  border-color: var(--border-focus);
}

.plan-option.is-selected {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 1px var(--primary);
}

.plan-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.plan-option input:focus-visible + .plan-option-head {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.plan-option-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.plan-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

.plan-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
}

.plan-period {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-left: 0.3rem;
}

.plan-specs {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.order-summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin: 1.5rem 0;
  font-family: var(--font-heading);
  font-weight: 700;
}

.order-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.order-line-total {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.6rem;
  margin-top: 0.2rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
}

.order-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 1rem;
}

.back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 1500;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, border-color 0.25s ease, color 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--border-focus);
  color: var(--accent);
}

.toast {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 2000;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-error {
  border-left: 4px solid var(--danger);
}

.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.range-slider:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .calculator-wrap {
    padding: 1.5rem;
  }
}

@media (max-width: 560px) {
  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 4.75rem;
  }
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 42px;
    height: 42px;
  }
}
