

/* Start:/calculators/assets/brewcalc.css?17938005866077*/
/* Калькуляторы пивовара. Все классы с префиксом bc-, чтобы не конфликтовать с шаблоном сайта */

.bc {
  --bc-accent: #2f6b30;
  --bc-accent-soft: #e8f1e4;
  --bc-accent-line: #b9d3b0;
  --bc-text: #2b2f2b;
  --bc-muted: #6b736b;
  --bc-line: #dfe4df;
  --bc-bg: #f5f7f4;
  --bc-card: #ffffff;
  --bc-warn: #9a5b00;
  --bc-warn-bg: #fff4e0;
  --bc-radius: 10px;

  color: var(--bc-text);
  font-size: 15px;
  line-height: 1.55;
  max-width: 960px;
  margin: 0 0 40px;
}
.bc *, .bc *::before, .bc *::after { box-sizing: border-box; }

.bc-lead { color: var(--bc-muted); margin: 0 0 20px; max-width: 70ch; }

/* ---------- карточка калькулятора ---------- */
.bc-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  background: var(--bc-card);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  overflow: hidden;
}
.bc-form { padding: 24px; }
.bc-result {
  padding: 24px;
  background: var(--bc-accent-soft);
  border-left: 1px solid var(--bc-accent-line);
}
@media (max-width: 720px) {
  .bc-card { grid-template-columns: 1fr; }
  .bc-result { border-left: 0; border-top: 1px solid var(--bc-accent-line); }
  .bc-form, .bc-result { padding: 18px 16px; }
}

/* ---------- поля ---------- */
.bc-field { margin-bottom: 16px; }
.bc-form > .bc-field:last-child, .bc-conv-group > .bc-field:last-child { margin-bottom: 0; }
.bc-label { display: block; font-weight: 600; margin-bottom: 6px; }
.bc-hint { display: block; color: var(--bc-muted); font-size: 13px; margin-top: 4px; }

.bc-input-row { display: flex; gap: 8px; }
.bc-input, .bc-select {
  height: 42px;
  border: 1px solid #c9d0c9;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  color: inherit;
  background: #fff;
  min-width: 0;
}
.bc-input { flex: 1 1 auto; width: 100%; font-variant-numeric: tabular-nums; }
.bc-select { flex: 0 0 auto; padding-right: 28px; }
.bc-input:focus, .bc-select:focus {
  outline: none;
  border-color: var(--bc-accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 48, .15);
}
.bc-unit {
  flex: 0 0 auto;
  display: flex; align-items: center;
  padding: 0 4px;
  color: var(--bc-muted);
  min-width: 34px;
}
.bc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .bc-row2 { grid-template-columns: 1fr; } }

/* ---------- переключатель режимов ---------- */
.bc-tabs {
  display: inline-flex;
  background: var(--bc-bg);
  border: 1px solid var(--bc-line);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.bc-tab {
  border: 0; background: transparent;
  font: inherit; color: var(--bc-muted);
  padding: 7px 14px; border-radius: 6px; cursor: pointer;
}
.bc-tab.is-active { background: #fff; color: var(--bc-accent); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ---------- результат ---------- */
.bc-result-title { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--bc-muted); margin: 0 0 6px; }
.bc-main { font-size: 40px; line-height: 1.1; font-weight: 700; color: var(--bc-accent); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.bc-main small { font-size: 18px; font-weight: 600; margin-left: 4px; }
.bc-sub { color: var(--bc-muted); margin-bottom: 18px; }

.bc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bc-accent-line); }
.bc-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--bc-accent-line);
}
.bc-list li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

.bc-note {
  margin-top: 16px; padding: 10px 12px;
  border-radius: 8px; font-size: 14px;
  background: var(--bc-warn-bg); color: var(--bc-warn);
}

/* ---------- конвертер ---------- */
.bc-conv { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bc-conv-group {
  background: var(--bc-card);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  padding: 18px;
}
.bc-conv-group h2 { font-size: 17px; margin: 0 0 14px; }
.bc-conv-group .bc-field { margin-bottom: 10px; }
.bc-conv-group .bc-unit { flex: 0 0 96px; font-size: 14px; }

/* ---------- текст и навигация ---------- */
.bc-text { margin-top: 32px; max-width: 75ch; }
.bc-text h2 { font-size: 20px; margin: 28px 0 10px; }
.bc-text h2:first-child { margin-top: 0; }
.bc-text p, .bc-text ul, .bc-text ol { margin: 0 0 12px; }
.bc-formula {
  background: var(--bc-bg); border-radius: 8px;
  padding: 10px 14px; font-family: Consolas, Menlo, monospace; font-size: 14px;
  overflow-x: auto; white-space: nowrap;
}

.bc-nav { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--bc-line); }
.bc-nav-title { font-weight: 600; margin-bottom: 12px; }
.bc-nav ul, .bc-cards { list-style: none; margin: 0; padding: 0; }
.bc-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-nav a {
  display: inline-block; padding: 7px 14px;
  border: 1px solid var(--bc-line); border-radius: 20px;
  text-decoration: none; color: var(--bc-text);
}
.bc-nav a:hover { border-color: var(--bc-accent); color: var(--bc-accent); }
.bc-nav .is-current a { background: var(--bc-accent); border-color: var(--bc-accent); color: #fff; }

/* ---------- страница-оглавление ---------- */
.bc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bc-cards a {
  display: block; height: 100%;
  padding: 20px; border: 1px solid var(--bc-line); border-radius: var(--bc-radius);
  background: var(--bc-card); text-decoration: none; color: var(--bc-text);
  transition: border-color .15s, box-shadow .15s;
}
.bc-cards a:hover { border-color: var(--bc-accent); box-shadow: 0 4px 14px rgba(47,107,48,.12); }
.bc-cards b { display: block; font-size: 17px; color: var(--bc-accent); margin-bottom: 6px; }
.bc-cards span { color: var(--bc-muted); font-size: 14px; }

[hidden] { display: none !important; }
.bc-sr { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* End */
/* /calculators/assets/brewcalc.css?17938005866077 */
