/* 💸 Калькулятор инфляции — форма и результаты */

.calc-intro {
  color: #555;
  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: #222;
}

/* 🎛 Поля ввода */
.calc-block input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-block input:hover {
  border-color: #999;
}

.calc-block input:focus {
  outline: none;
  border-color: #0077cc;
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.15);
}

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

.calc-block button {
  margin-top: 22px;
  padding: 12px 24px;
  background: #0077cc;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease;
}

.calc-block button:hover {
  background: #005fa3;
}

.calc-block button:active {
  background: #004f87;
}

/* 🎴 Карточка результата */
.result-block h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  color: #222;
}

.result-output {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}

/* 🔢 Результат: крупное число и бейдж */
.infl-score-wrap {
  text-align: center;
}

.infl-score-label {
  margin: 14px 0 2px;
  font-size: 13px;
  color: #777;
}

.infl-score {
  font-size: 2.4rem;
  font-weight: bold;
  margin: 0 0 10px;
  color: #b26a00;
  line-height: 1.2;
}

.infl-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  background: #b26a00;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
}

.infl-badge.zero {
  background: #2e7d32;
}

.infl-verdict {
  text-align: center;
  font-size: 14px;
  color: #444;
  margin: 12px 0 4px;
  line-height: 1.5;
}

/* 📋 Разбивка по показателям */
.infl-breakdown {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
}

.infl-breakdown th,
.infl-breakdown td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  vertical-align: top;
}

.infl-breakdown th {
  background: #f5f5f5;
  font-size: 13px;
}

.infl-breakdown td:last-child {
  text-align: right;
  font-weight: bold;
  white-space: nowrap;
}

.infl-breakdown .total-row td {
  background: #f0f7ff;
  font-weight: bold;
}

/* 📆 Таблица по годам */
.infl-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.infl-year-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}

.infl-year-table th,
.infl-year-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #eee;
  text-align: right;
  white-space: nowrap;
}

.infl-year-table th:first-child,
.infl-year-table td:first-child {
  text-align: left;
}

.infl-year-table th {
  position: sticky;
  top: 0;
  background: #f5f5f5;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #555;
  z-index: 1;
}

.infl-year-table tbody tr:hover td {
  background: #fafcff;
}

.infl-year-table td.loss-col {
  color: #d32f2f;
}

.infl-note {
  font-size: 12px;
  color: #888;
  margin-top: 14px;
  line-height: 1.5;
  border-top: 1px dashed #ddd;
  padding-top: 10px;
}
