/* =============================================================
   batchtable.css — таблица объёмов фильтрующей загрузки
   ============================================================= */

.bt-main { background: #F4F1EA; padding-top: 40px; padding-bottom: 48px; }

/* ── Хиро ──────────────────────────────────────────────────── */
.bt-hero {
  background: var(--dark);
  color: #fff;
  padding: 24px 0 48px;
}
.bt-hero__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
}
.bt-hero__sub {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,.7);
  margin: 0;
}

/* ── Секции ─────────────────────────────────────────────────── */
.bt-section { margin-bottom: 32px; }

.bt-section__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 0 0 16px;
}

/* ── Таблица ─────────────────────────────────────────────────── */
.bt-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
}
.bt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-base);
}
.bt-table thead th {
  padding: 10px 8px;
  background: #F4F1EA;
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dark);
  white-space: nowrap;
  border-bottom: 1.5px solid var(--border);
  text-align: center;
}
.bt-table thead th:first-child { text-align: left; }
.bt-table tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid #edeae4;
  text-align: center;
  white-space: nowrap;
}
.bt-table tbody tr:last-child td { border-bottom: none; }
.bt-table thead th:first-child,
.bt-table tbody td:first-child {
  width: 56px;
}
.bt-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--dark);
}
.bt-table tbody tr:nth-child(even) td { background: #faf9f6; }

/* ── Примечание ─────────────────────────────────────────────── */
.bt-note {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}
.bt-note p { margin: 0 0 8px; }
.bt-note p:last-child { margin: 0; }
.bt-note--sub { margin-top: -10px; margin-bottom: 16px; font-style: italic; }

/* ── CTA ──────────────────────────────────────────────────────── */
.bt-cta {
  background: var(--dark);
  padding-block: 36px 32px;
  color: #fff;
}
.bt-cta__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 0 0 12px;
}
.bt-cta__sub {
  font-size: var(--fs-base);
  color: rgba(255,255,255,.7);
  margin: 0 0 20px;
}
.bt-cta__form { }
.bt-cta__field {
  display: flex;
  gap: 12px;
  align-items: center;
}
.bt-cta__inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bt-cta__inputs input {
  width: 188px;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: var(--fs-base);
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s;
}
.bt-cta__inputs input::placeholder { color: rgba(255,255,255,.45); }
.bt-cta__inputs input:focus { border-color: rgba(255,255,255,.7); }
.bt-cta__btn { align-self: center; height: 48px; padding-inline: 16px; }
.bt-cta__error {
  margin-top: 6px;
  font-size: var(--fs-xs);
  color: #ff8080;
}
.bt-cta__success {
  margin-top: 6px;
  font-size: var(--fs-sm);
  color: #a3e8b0;
}

/* ── Адаптив ─────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .bt-hero { padding: 64px 0 56px; }
  .bt-table thead th { padding: 12px 16px; }
  .bt-cta__inputs { flex-direction: row; }
  /* не жёсткие 260px: на 640–700px два поля + кнопка не влезали
     и давали горизонтальный скролл страницы */
  .bt-cta__inputs input { flex: 1 1 0; min-width: 0; max-width: 260px; }
  .bt-cta__btn { height: 48px; align-self: stretch; }
}

/* Телефон: все ячейки стояли nowrap, «Гравий, кг» и «Загрузка, л»
   не давали таблице сжаться. Разрешаем перенос по словам. */
@media (max-width: 639px) {
  .bt-table thead th,
  .bt-table tbody td { white-space: normal; padding-left: 6px; padding-right: 6px; }
}
