/* 📊 Калькулятор риск-профиля — форма, результат и структура портфеля */

.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 select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
  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='%23555' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.calc-block select: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;
  box-shadow: none;
}

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

.profile-score {
  font-size: 2.6rem;
  font-weight: bold;
  text-align: center;
  margin: 10px 0 0;
  color: #222;
}

.profile-score-caption {
  font-size: 13px;
  color: #888;
  margin: 0 0 8px;
}

/* Цвет числа соответствует профилю */
.profile-score-wrap.profile-conservative .profile-score {
  color: #2e7d32;
}

.profile-score-wrap.profile-moderate .profile-score {
  color: #b26a00;
}

.profile-score-wrap.profile-aggressive .profile-score {
  color: #d84315;
}

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

.profile-badge.conservative {
  background: #2e7d32;
}

.profile-badge.moderate {
  background: #f9a825;
  color: #333;
}

.profile-badge.aggressive {
  background: #d84315;
}

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

/* 📦 Рекомендуемая структура портфеля */
.alloc-block {
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  background: #f7f9fb;
  border: 1px solid #e3e8ee;
}

.alloc-block h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #222;
}

.alloc-item {
  margin-bottom: 10px;
}

.alloc-item:last-child {
  margin-bottom: 0;
}

.alloc-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}

.alloc-name {
  color: #333;
}

.alloc-pct {
  font-weight: bold;
  color: #222;
}

.alloc-bar {
  height: 12px;
  border-radius: 6px;
  background: #e5e5e5;
  overflow: hidden;
}

.alloc-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}

/* 💡 Совет по профилю */
.profile-advice {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f0f7ff;
  border: 1px solid #d4e6f7;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

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

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

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

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

.profile-breakdown .profile-total-row td {
  font-weight: bold;
  border-top: 2px solid #ddd;
  border-bottom: none;
}

.profile-scale {
  font-size: 12px;
  color: #777;
  margin: 10px 0 0;
  line-height: 1.5;
}

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