/* =============================================================
   pollut.css — страница «Последствия загрязнённой воды»
   ============================================================= */

body { background: #1e3c72; }
main { background: #F4F1EA; }

/* ── Хиро ───────────────────────────────────────────────────── */
.pollut-hero {
  background: var(--dark);
  padding: 24px 0 48px;
}

.pollut-hero__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 12px;
}

.pollut-hero__sub {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,.7);
  margin: 0;
}

/* ── Вводный текст ──────────────────────────────────────────── */
.pollut-intro {
  background: #F4F1EA;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
}

.pollut-intro__text {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Раздел «Почему чистая на вид» ─────────────────────────── */
.pollut-why {
  background: #F4F1EA;
  padding: 40px 0 48px;
}

.pollut-why__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 20px;
  line-height: 1.2;
}

.pollut-why__text {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 16px;
}

.pollut-why__lead {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--dark);
  margin: 20px 0 12px;
}

.pollut-why__list {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}

.pollut-why__list li {
  margin-bottom: 12px;
}

.pollut-why__term {
  display: block;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--dark);
}

.pollut-why__desc {
  display: block;
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.55;
}

.analysis-cta {
  background: var(--dark);
}

.analysis-cta__grid--single {
  grid-template-columns: 1fr;
}


.pollut-plan__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.15);
  margin: 12px 0 0;
}

.pollut-why__ref {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin: 4px 0 0;
}

.pollut-why__ref a {
  color: var(--blue);
  text-decoration: none;
}

.pollut-why__ref a:hover { text-decoration: underline; }

/* ── Заголовок перед интерактивом ───────────────────────────── */
.pollut-section-title {
  background: #F4F1EA;
  padding: 24px 0 20px;
}

.pollut-section-title__h {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
}

.pollut-section-title__sub {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Поиск и фильтры ────────────────────────────────────────── */
.pollut-filter {
  background: #F4F1EA;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--border);
}

.pollut-search-wrap {
  margin-bottom: 14px;
}

.pollut-search-inner {
  position: relative;
}

.pollut-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.pollut-search {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 40px 12px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-base);
  font-size: var(--fs-base);
  color: var(--dark);
  background: #fff;
  outline: none;
  transition: border-color var(--tr);
}

.pollut-search:focus { border-color: var(--blue); }
.pollut-search::placeholder { color: var(--muted); }

.pollut-search__clear[hidden] { display: none; }

.pollut-search__clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: color var(--tr);
}

.pollut-search__clear:hover { color: var(--dark); }

.pollut-filter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pollut-filter__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.pollut-reset {
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.pollut-filter__head {
  cursor: pointer;
  user-select: none;
}

.pollut-filter__head-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pollut-filter__chevron {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .25s;
}

.pollut-filter.is-open .pollut-filter__chevron {
  transform: rotate(180deg);
}

.pollut-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .3s ease, opacity .2s;
}

.pollut-filter.is-open .pollut-checks {
  max-height: 800px;
  opacity: 1;
}

.pollut-chk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  cursor: pointer;
  border-radius: 6px;
  transition: background .15s;
  user-select: none;
}

.pollut-chk:hover { background: #f3f2ef; }

.pollut-chk__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pollut-chk__box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid #c5cdd8;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
}

.pollut-chk__input:checked + .pollut-chk__box {
  background: var(--dark);
  border-color: var(--dark);
}

.pollut-chk__input:checked + .pollut-chk__box::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.pollut-chk__label {
  font-size: var(--fs-base);
  color: var(--dark);
  line-height: 1.2;
  flex: 1;
}

.pollut-chk__count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

/* ── Сетка карточек ─────────────────────────────────────────── */
.pollut-cards { background: #F4F1EA; padding: 32px 0 48px; }

.pollut-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .pollut-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .pollut-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Карточка ───────────────────────────────────────────────── */
.pollut-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}

.pollut-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}

.pollut-card__img-wrap {
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.pollut-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pollut-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pollut-card__name {
  font-size: var(--fs-price);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
  line-height: 1.2;
}

.pollut-card__desc {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px;
}

/* Норма по СанПиН прижата к низу карточки, чтобы во всех карточках
   строка была на одном уровне независимо от длины описания */
.pollut-card__norm {
  margin-top: auto;
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.55;
}

/* у кнопки свой margin-top: auto — гасим, иначе свободное место
   поделится между нормой и кнопкой и выравнивание пропадёт */
.pollut-card__norm + .btn-more { margin-top: 14px; }


/* ── Пусто ──────────────────────────────────────────────────── */
.pollut-empty {
  text-align: center;
  padding: 48px 20px;
  font-size: var(--fs-base);
  color: var(--muted);
}

.pollut-empty a {
  color: var(--blue);
  text-decoration: underline;
}

/* ── Группы риска ───────────────────────────────────────────── */
.pollut-risk {
  background: #F4F1EA;
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
}

.pollut-risk__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 24px;
  line-height: 1.2;
}

.pollut-risk__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pollut-risk__list li {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.pollut-risk__list li strong {
  color: var(--dark);
}

.pollut-risk__list li::before {
  color: var(--dark);
}

.pollut-risk__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
  font-weight: 400;
}

/* ── Пошаговый план ─────────────────────────────────────────── */
.pollut-plan {
  background: var(--dark);
  padding: 48px 0 16px;
}

.pollut-plan__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px;
  line-height: 1.2;
}

.pollut-plan__list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  counter-reset: plan;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pollut-plan__list li {
  font-size: var(--fs-base);
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  padding-left: 36px;
  position: relative;
  counter-increment: plan;
}

.pollut-plan__list li::before {
  content: counter(plan);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


/* ── CTA ────────────────────────────────────────────────────── */
.pollut-cta {
  background: var(--dark);
  padding: 48px 0;
}

.pollut-cta__inner {
  max-width: 580px;
}

.pollut-cta__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.pollut-cta__sub {
  font-size: var(--fs-base);
  color: rgba(255,255,255,.7);
  margin: 0 0 24px;
}

.pollut-cta__field {
  display: flex;
  gap: 12px;
  align-items: center;
}
.pollut-cta__inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pollut-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;
  box-sizing: border-box;
}
.pollut-cta__inputs input::placeholder { color: rgba(255,255,255,.45); }
.pollut-cta__inputs input:focus { border-color: rgba(255,255,255,.7); }
.pollut-cta__btn { align-self: center; height: 48px; }
.pollut-cta__error { margin-top: 6px; font-size: var(--fs-xs); color: #ff8080; min-height: 0; }
.pollut-cta__success { margin-top: 6px; font-size: var(--fs-sm); color: #a3e8b0; min-height: 0; }

@media (min-width: 640px) {
  .pollut-cta__inputs { flex-direction: row; }
  /* не жёсткие 260px: на 640–700px два поля + кнопка не влезали
     и давали горизонтальный скролл страницы */
  .pollut-cta__inputs input { flex: 1 1 0; min-width: 0; max-width: 260px; }
  .pollut-cta__btn { align-self: stretch; }
}

/* ── Кнопка Подробнее ────────────────────────────────────────── */
.btn-more {
  display: inline-block;
  margin-top: auto;
  padding: 8px 24px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: none;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  align-self: flex-start;
}
.btn-more:hover { border-color: var(--blue); color: var(--blue); background: rgba(0,102,204,.04); }

/* ── Модалка ─────────────────────────────────────────────────── */
.pollut-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
}
.pollut-modal.is-open { display: flex; }

.pollut-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.pollut-modal__panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 100%;
  overflow: hidden;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.pollut-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.pollut-modal__close:hover { color: var(--dark); background: #fff; }

.pollut-modal__content {
  overflow-y: auto;
  flex: 1;
  padding: 28px 24px 32px;
}

.pollut-modal__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--dark);
  margin: 0 44px 16px 0;
  line-height: 1.2;
}

.pollut-modal__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 20px;
}

.pollut-modal__body { font-size: var(--fs-base); color: var(--muted); line-height: 1.65; }
.pollut-modal__body strong.modal-heading {
  display: block;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--dark);
  margin: 16px 0 4px;
  line-height: 1.2;
}
.pollut-modal__body strong { color: var(--dark); font-weight: 700; }
.pollut-modal__body ul, .pollut-modal__body ol { padding-left: 0; margin: 4px 0 14px; }
.pollut-modal__body li { margin-bottom: 8px; }
.pollut-modal__body p { margin: 0 0 12px; }
.pollut-modal__body strong.modal-heading + br { display: none; }
.pollut-modal__body br + br { display: none; }
