/* === Калькулятор расчёта доски на пол === */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.calc-pol-doska::before { content: 'Калькулятор расчёта доски на пол'; }

.calc-pol-doska,
.calc-pol-doska input,
.calc-pol-doska select,
.calc-pol-doska button {
  font-family: 'Inter', 'Open Sans', sans-serif;
}

/* --- Переопределяем uppercase из redesign.css --- */
.calc-section .calc-pol-doska .r_calc .razmers label .lbl {
  text-transform: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #4a5568 !important;
  letter-spacing: 0 !important;
}

/* --- Заголовки секций --- */
.brus-group-title {
  font-size: 11px;
  font-weight: 700;
  color: #4a90e2;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0ecfb;
}

/* --- Разделитель --- */
.brus-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
}
.brus-divider span {
  font-size: 11px;
  font-weight: 600;
  color: #9aa5b4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.brus-divider::before,
.brus-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0ecfb;
}

/* --- Чипы-подсказки --- */
.brus-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.brus-hint {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid #c8ddf5;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: #4a90e2;
  background: #f0f7ff;
  cursor: pointer;
  line-height: 1.8;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
}
.brus-hint:hover { background: #4a90e2; color: #fff; border-color: #4a90e2; }

/* --- Необязательная пометка --- */
.brus-optional {
  font-size: 11px;
  color: #b0bec5;
  font-weight: 400;
  margin-left: 3px;
}

/* --- Обёртка поля --- */
.brus-field-wrap { display: flex; flex-direction: column; }

/* --- Ошибки валидации --- */
.brus-field-error {
  font-size: 11px;
  font-weight: 500;
  margin-top: 5px;
}

/* --- Блок результатов --- */
.brus-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c8ddf5;
}
.brus-result-title {
  font-size: 11px;
  font-weight: 700;
  color: #4a90e2;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  border: none;
}
.brus-reset-btn {
  background: none;
  border: none;
  color: #9aa5b4;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  font-family: 'Inter', sans-serif;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.brus-reset-btn:hover { color: #e74c3c; background: none; }

/* --- Таблица результатов --- */
.brus-result-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.brus-result-table td {
  padding: 9px 0;
  font-size: 14px;
  border-bottom: 1px solid #f0f6ff;
  vertical-align: middle;
  font-family: 'Inter', sans-serif;
}
.brus-result-table td:first-child { color: #5a6a7e; width: 58%; font-weight: 400; }
.brus-result-table td:last-child  { font-weight: 600; color: #1a2a3a; text-align: right; font-size: 15px; }

/* Заголовок секции внутри таблицы */
.brus-tsection-head td {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9aa5b4 !important;
  padding: 14px 0 5px !important;
  border-bottom: 1px solid #e0ecfb !important;
}
.brus-result-table tbody:first-child .brus-tsection-head td {
  padding-top: 0 !important;
}

/* Итоговые строки */
.brus-total-row td {
  background: #eef6ff;
  padding: 11px 10px !important;
  border-bottom: none !important;
}
.brus-total-row td:first-child {
  color: #2c3e50 !important;
  font-weight: 600 !important;
  border-radius: 10px 0 0 10px;
}
.brus-total-row td:last-child {
  color: #2c6fbb !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  border-radius: 0 10px 10px 0;
}
.brus-total-spacer td {
  padding: 4px 0 !important;
  border-bottom: none !important;
}

/* Футер: кнопка PDF */
.brus-result-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e8f2fd;
}
.calc-pol-doska .pdf_btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  height: auto;
  line-height: normal;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

/* --- Адаптив --- */
@media (max-width: 768px) {
  .brus-result-header { flex-direction: row; }
}
