/* style.css — калькулятор класса ADM Sprint */

.rally-calc {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 32px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 100%;
  margin: 0 auto 24px;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}

.rally-calc h3 {
  margin: 0 0 20px;
  font-size: 24px;
  color: #333;
  text-align: center;
}

.rally-calc label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin: 18px 0 6px;
  color: #444;
}

.rally-calc input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  font-family: inherit;
}

.rally-calc .radio-group {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.rally-calc .radio-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
  font-size: 15px;
  cursor: pointer;
  margin: 0;
}

.rally-calc .radio-group input[type="radio"] {
  width: auto;
  margin-right: 6px;
}

/* Основная кнопка "Рассчитать" */
.rally-calc button.rally-calc-submit {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
  -webkit-user-select: none;
  font-family: inherit;
}

.rally-calc button.rally-calc-submit:hover {
  background: #0052a3;
}

.rally-calc button.rally-calc-submit:focus,
.rally-calc button.rally-calc-submit:active {
  outline: none;
  box-shadow: none;
}

/* Кнопка-ссылка "Как выбрать..." без фона при наведении */
.rally-calc button.help-toggle {
  display: inline-block;
  font-size: 14px;
  color: #333;
  text-decoration: underline;
  text-decoration-color: #999;
  cursor: pointer;
  margin-top: 8px;
  background: transparent;
  border: none;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  font-family: inherit;
  transition: none;
  box-shadow: none;
}

.rally-calc button.help-toggle:hover,
.rally-calc button.help-toggle:focus,
.rally-calc button.help-toggle:active {
  background: transparent;
  color: #333;
  text-decoration-color: #333;
  outline: none;
  box-shadow: none;
}

.rally-calc .help-content {
  display: none;
  margin-top: 12px;
  font-size: 14px;
  color: #555;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 12px 14px;
  line-height: 1.5;
  user-select: text;
  -webkit-user-select: text;
}

.rally-calc .help-content.open {
  display: block;
}

.rally-calc .result {
  margin-top: 24px;
  padding: 18px;
  background: #e9ecef;
  border-radius: 6px;
  text-align: center;
  font-size: 17px;
  color: #222;
  display: none;
}

.rally-calc .result .class-name {
  font-size: 28px;
  font-weight: bold;
  color: #0066cc;
  display: block;
  margin: 6px 0;
}

.rally-calc .error {
  color: #cc0000;
  font-size: 15px;
  margin-top: 12px;
  display: none;
}

.rally-calc .tyres-link-block {
  display: block;
  margin-top: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 2px solid #0066cc;
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
}

.rally-calc .tyres-link-block a {
  color: #0066cc;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  display: block;
}

.rally-calc .tyres-link-block a:hover {
  text-decoration: underline;
}