/* =============================================================
   hardness.css — статья «Жесткость воды»
   ============================================================= */

body { background: #1e3c72; }
.hardness-main { background: #F4F1EA; padding-top: 40px; padding-bottom: 48px; overflow-x: clip; }
/* Явный отступ под последней секцией до блока анализа */
.hardness-main > div:first-child { padding-bottom: 48px; }
.hardness-main > div:first-child .hardness-section:last-child { margin-bottom: 0; }
/* Отступ ниже блока анализа перед следующим заголовком */
.hardness-main .analysis-cta + .container { padding-top: 56px; }

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

/* Вводный абзац */
.hardness-intro {
  margin: 0 0 40px;
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.6;
  padding-top: 8px;
}

/* Секции */
.hardness-section { margin-bottom: 56px; }
.hardness-section__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--dark);
}
.hardness-section__lead {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--muted);
  margin: -12px 0 24px;
}
.hardness-section p {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

/* Два столбца */
.hardness-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
@media (min-width: 640px) {
  .hardness-two-col { grid-template-columns: 1fr 1fr; }
}

/* Карточка столбца */
.hardness-method-card {
  padding: 20px 24px;
  border-left: 3px solid var(--blue);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--muted);
}
.hardness-method-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 6px;
}

/* Таблица */
.hardness-table-wrap { overflow-x: auto; margin-bottom: 24px; }
.hardness-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  background: #fff;
  border-radius: var(--r-md);
}
.hardness-table th {
  background: var(--dark);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.hardness-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.hardness-table tr:last-child td { border-bottom: none; }
.hardness-table tr:nth-child(even) td { background: #f9f9f9; }

/* Фото */
.hardness-figure { margin: 16px 0 8px; }
.hardness-figure__img { width: 100%; border-radius: var(--r-md); display: block; }
.hardness-figure__caption {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

/* Выноска */
.hardness-callout {
  background: rgba(0,102,204,.08);
  border-left: 4px solid var(--blue);
  padding: 16px 20px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--dark);
  margin-bottom: 24px;
}

/* FAQ */
.hardness-faq { display: flex; flex-direction: column; gap: 12px; }
.hardness-faq__item {
  background: #fff;
  border-radius: var(--r-md);
  padding: 20px 24px;
  border-left: 3px solid var(--blue);
}
.hardness-faq__q {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.hardness-faq__a {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.6;
}

/* Источник */
.hardness-source {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: -16px;
  margin-bottom: 24px;
}
.hardness-source a { color: var(--blue); text-decoration: underline; }

/* Телефон: переносы уже были, не хватало ~34px — ужимаем отступы. */
@media (max-width: 639px) {
  .hardness-table th,
  .hardness-table td { padding-left: 8px; padding-right: 8px; }
}
