/* 🏠 Калькулятор налога на аренду — янтарно-медная тёплая тема */

.calc-intro {
  color: #78350f;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 8px 0 0;
}

.calc-block label {
  display: block;
  margin-top: 16px;
  font-weight: bold;
  font-size: 15px;
  color: #5b3d00;
}

.calc-block input,
.calc-block select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #e7c987;
  border-radius: 8px;
  font-size: 15px;
  background: #fffdf5;
  color: #3d2a00;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-block select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.calc-block input:focus,
.calc-block select:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
  background: #fff;
}

.field-hint {
  display: block;
  color: #a0762c;
  font-size: 12px;
  font-weight: normal;
  margin-top: 3px;
}

.calc-block button {
  margin-top: 22px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.calc-block button:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.45);
}

.calc-block button:active {
  transform: translateY(0);
}

/* 💰 Сводка по выбранному режиму */
.tax-summary {
  background: linear-gradient(135deg, #fde68a, #fcd34d);
  border: 1px solid #f0c34d;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.tax-summary .summary-label {
  font-size: 0.85rem;
  font-weight: bold;
  color: #7c4a03;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tax-summary .summary-amount {
  font-size: 1.8rem;
  font-weight: bold;
  color: #7c2d12;
  margin: 4px 0;
}

.tax-summary .summary-meta {
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.5;
}

.tax-summary .summary-meta strong {
  color: #7c2d12;
}

/* 🏆 Баннер лучшего режима */
.best-banner {
  background: #fff7ed;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 1rem;
  color: #7c2d12;
  font-weight: bold;
  line-height: 1.5;
}

.best-banner .best-savings {
  font-weight: normal;
  color: #92400e;
}

/* 📋 Таблица сравнения режимов */
.tax-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
}

.tax-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}

.tax-table th {
  background: #fde68a;
  color: #78350f;
  padding: 10px 8px;
  text-align: left;
  border: 1px solid #f0c34d;
}

.tax-table td {
  padding: 10px 8px;
  border: 1px solid #f0c34d;
  background: #fffdf5;
  vertical-align: top;
}

.tax-table tr.row-best td {
  background: #fffbeb;
  box-shadow: inset 4px 0 0 #f59e0b;
}

.tax-table tr.row-selected td {
  background: #fef3c7;
}

.tax-table .tax-cell {
  font-weight: bold;
  color: #7c2d12;
  white-space: nowrap;
}

.tax-table .net-cell {
  color: #92400e;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: bold;
  border-radius: 20px;
  padding: 2px 10px;
  margin-left: 6px;
  vertical-align: middle;
}

.badge-ok {
  background: #b45309;
}

.row-selected .badge {
  background: #b45309;
}

/* 📝 Примечания и предупреждения */
.tax-note {
  background: #fffbeb;
  border-left: 4px solid #fbbf24;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 0.88rem;
  color: #78350f;
  line-height: 1.5;
}

.tax-note strong {
  color: #7c2d12;
}

.tax-warning {
  border-left-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tax-warning strong {
  color: #7f1d1d;
}

.tax-disclaimer {
  font-size: 0.78rem;
  color: #92690f;
  border-top: 1px dashed #e7c987;
  padding-top: 10px;
  margin-top: 14px;
  line-height: 1.5;
}

/* 📱 Адаптивность */
@media (max-width: 800px) {
  .tax-summary .summary-amount {
    font-size: 1.5rem;
  }
}
