/* Кастомные стили поверх Tailwind */

/* Калькуляторная карточка */
.calc-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  padding: 1.75rem;
}

/* Лейбл */
.calc-label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: .375rem;
}

/* Input */
.calc-input {
  width: 100%;
  padding: .6rem .9rem;
  border: 1.5px solid #d1d5db;
  border-radius: .625rem;
  font-size: .9375rem;
  color: #111827;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
.calc-input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}

/* Select */
.calc-select {
  width: 100%;
  padding: .6rem .9rem;
  border: 1.5px solid #d1d5db;
  border-radius: .625rem;
  font-size: .9375rem;
  color: #111827;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.5rem;
}
.calc-select:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}

/* Блок результата */
.calc-result {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 1rem;
  padding: 1.75rem;
  height: 100%;
}
.calc-result-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #c2570e;
  line-height: 1.1;
}
.calc-result-label {
  font-size: .8125rem;
  color: #9a3412;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .25rem;
}

/* Кнопка сброса */
.calc-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: .625rem;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.calc-btn:hover  { background: #ea6a0a; }
.calc-btn:active { transform: scale(.97); }
.calc-btn-ghost {
  background: transparent;
  color: #f97316;
  border: 1.5px solid #f97316;
}
.calc-btn-ghost:hover { background: #fff7ed; }

/* Breadcrumbs */
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  font-size: .8125rem;
  color: #6b7280;
}
.breadcrumb-list a { color: #f97316; text-decoration: none; }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #d1d5db; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid #e5e7eb; }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  font-weight: 600;
  font-size: .9375rem;
  color: #111827;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: .9rem;
  color: #4b5563;
  line-height: 1.7;
}
.faq-answer.open { max-height: 400px; padding-bottom: 1rem; }
.faq-icon { font-size: 1.25rem; color: #f97316; flex-shrink: 0; }

/* Article */
.article-body h2 { font-size: 1.25rem; font-weight: 700; color: #111827; margin: 1.75rem 0 .75rem; }
.article-body h3 { font-size: 1.05rem; font-weight: 600; color: #1f2937; margin: 1.25rem 0 .5rem; }
.article-body p  { margin-bottom: .875rem; line-height: 1.75; color: #374151; }
.article-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: .875rem; }
.article-body ul li { margin-bottom: .375rem; color: #374151; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .875rem; }
.article-body table th { background: #f3f4f6; font-weight: 600; padding: .6rem .875rem; text-align: left; border: 1px solid #e5e7eb; }
.article-body table td { padding: .55rem .875rem; border: 1px solid #e5e7eb; }
.article-body table tr:nth-child(even) { background: #f9fafb; }
.formula-box {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  border-radius: .5rem;
  padding: 1rem 1.25rem;
  font-family: monospace;
  font-size: .9rem;
  color: #14532d;
  margin: 1rem 0;
}

/* Related cards */
.related-card {
  display: block;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.related-card:hover {
  border-color: #f97316;
  box-shadow: 0 4px 16px rgba(249,115,22,.12);
  transform: translateY(-2px);
}

/* Анимация появления результата */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-animate { animation: fadeInUp .25s ease; }

/* Утилиты */
.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}
