/* Базовый сброс и шрифты */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f0f4f8;
  color: #1a202c;
  min-height: 100vh;
  padding: 20px;
  line-height: 1.5;
}

/* Контейнер по центру */
.container {
  max-width: 560px;
  margin: 0 auto;
}

h1 {
  font-size: 24px;
  margin-bottom: 4px;
  color: #1a202c;
}

.subtitle {
  color: #718096;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Карточки блоков */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Поля ввода */
label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  color: #4a5568;
  font-weight: 500;
}

input[type="number"],
select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  background: #fff;
  color: #1a202c;
  outline: none;
  transition: border-color 0.15s;
}

input[type="number"]:focus,
select:focus {
  border-color: #3182ce;
}

/* Кнопка */
button {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #3182ce;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

button:hover {
  background: #2b6cb0;
}

button:active {
  background: #2c5282;
}

/* Блок результата */
.result {
  font-size: 15px;
  color: #2d3748;
  display: none; /* скрыт до первого расчёта */
}

.result.visible {
  display: block;
}

.result .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.result .row:last-child {
  border-bottom: none;
}

.result .label {
  color: #718096;
}

.result .value {
  font-weight: 600;
  color: #1a202c;
}

.result .big {
  font-size: 20px;
  color: #2b6cb0;
}

.result h2 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
  body { padding: 12px; }
  h1 { font-size: 20px; }
  .card { padding: 16px; }
}