/* ===== РусЭкоАудит — стили для страниц «Паспорт отходов» (Москва и МО) — FIN ===== */
:root{
  --rea-primary:#2F5D9E;      /* основной синий */
  --rea-primary-ink:#fff;
  --rea-accent:#3C8B5A;       /* зелёный акцент (hover) */
  --rea-text:#1a1a1a;
  --rea-muted:#6b7280;
  --rea-line:#d7e0e8;
  --rea-bg:#f6f8fb;
  --rea-card:#fff;
  --rea-radius:14px;
}

/* База: чтобы ширины считались предсказуемо */
*, *::before, *::after { box-sizing: border-box; }

/* Контейнеры секций */
.po-hero, .po-offer, .po-benefits, .po-need, .po-sets, .po-process,
.po-legal, .po-price, .po-faq, .po-cases, .po-cta, .po-contacts,
.po-form, .po-output, .po-start, .po-geo, .po-terms {
  margin: 28px auto;
  max-width: 1100px;
  padding: 0 16px;
  color: var(--rea-text);
}

/* Hero */
.po-hero{
  background: var(--rea-bg);
  border-radius: var(--rea-radius);
  padding: 24px 16px 20px;
}
.po-hero h1{
  margin: 0 0 8px;
  line-height: 1.2;
  font-size: clamp(26px, 3.2vw, 36px);
}
.lead{
  margin: 0 0 12px;
  font-size: clamp(16px, 2.2vw, 18px);
  opacity: .95;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.hero-bullets{
  margin: 0 0 14px 18px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.hero-bullets li{ margin: 4px 0; }

/* Центр заголовков — с поддержкой id и class */
.po-hero h1,
.po-benefits h2,
.po-need h2,
.po-sets h2,
.po-process h2,
.po-legal h2,
.po-price h2,
.po-faq h2,
.po-cases h2,
.po-cta h2,
.po-contacts h2,
.po-output h2,
.po-start h2,
.po-geo h2,
.po-terms h2 { text-align: center; }

/* Усиленная специфичность против темы */
section[id^="po-"] > h1,
section[id^="po-"] > h2,
section[class^="po-"] > h1,
section[class^="po-"] > h2{
  text-align:center !important;
  line-height:1.25;
}

/* Размер/воздух H2 */
section[id^="po-"] > h2,
section[class^="po-"] > h2{
  font-size: clamp(22px, 2.2vw, 28px);
  margin-top: 0;
  margin-bottom: 14px;
}

.center { text-align: center; }

/* Кнопки */
.btn{
  display:inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  border: 2px solid var(--rea-primary);
  text-decoration: none;
  font-weight: 700;
  transition: transform .12s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  will-change: transform;
  text-align: center;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn[disabled], .btn.disabled{ opacity:.55; pointer-events:none; }
.btn:focus-visible{
  outline: 2px solid var(--rea-primary);
  outline-offset: 2px;
  box-shadow: none;
}
.btn-primary{ background: var(--rea-primary); color: var(--rea-primary-ink); }
.btn-primary:hover{ background: var(--rea-accent); border-color: var(--rea-accent); }
.btn-ghost{ background: #fff; color: var(--rea-primary); }
.btn-ghost:hover{ background: var(--rea-primary); color: #fff; }

/* CTA контейнер */
.cta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content:center;
  align-items:center;
  text-align:center;
}
/* Телефон-CTA выделим пунктиром и гарантируем толщину */
.cta .btn[href^="tel:"]{
  border: 2px dashed var(--rea-primary);
  background:#fff;
}
.cta .btn[href^="tel:"]:hover{ background:#eef3fb; }

/* Глобальные сетки/карточки
   ВАЖНО: .grid используется на <ul>, поэтому убираем маркеры и отступ слева */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  list-style: none;
  padding-left: 0;
}

/* Цена */
.price-card{
  background: var(--rea-card);
  border: 1px solid var(--rea-line);
  border-radius: var(--rea-radius);
  padding: 16px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
.price-head h3{
  margin: 0 0 8px;
  text-align: center !important;
  font-size: clamp(20px, 2.6vw, 24px);
}
.price{
  display:flex; align-items: baseline; gap: 12px; margin-bottom: 4px; justify-content: center;
}
.price .old{ text-decoration: line-through; color: var(--rea-muted); }
.price .current{
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.sub{ margin: 6px 0 10px; opacity:.9; text-align: center; }
.feat{ margin: 0 0 14px 18px; }
.feat li{ margin: 4px 0; }

/* Наборы ФККО */
.sets-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.set{
  background: #ffffff;
  border: 1px solid var(--rea-line);
  border-radius: var(--rea-radius);
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.set h3{
  margin: 0 0 10px;
  text-align: center !important;
  font-size: 18px;
  font-weight: 700;
}
.fkko{ margin: 0; padding-left: 18px; line-height:1.5; }
.fkko li{
  padding: 6px 0;
  border-bottom: 1px dashed #e6edf3;
}
.fkko li:last-child{ border-bottom: none; }
.fkko b{
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing:.2px;
}
.note{ opacity: .9; margin: 10px auto; }
.note.small{ font-size: 13px; }
.note.center{ text-align: center; }
.note a { color: var(--rea-primary); text-decoration: underline; }

/* Процесс — шаги */
.steps{
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.steps li{
  border: 1px solid var(--rea-line);
  border-radius: var(--rea-radius);
  background: var(--rea-card);
  padding: 12px 12px 12px 42px;
  position: relative;
}
.steps li::before{
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px; top: 12px;
  width: 24px; height: 24px;
  border-radius: 50%;
  display:inline-flex; align-items:center; justify-content:center;
  background: var(--rea-primary);
  color: var(--rea-primary-ink);
  font-size: 12px; font-weight: 700;
}

/* Аккредитация */
.po-accreditation{
  margin: 32px auto;
  max-width: 1100px;
  padding: 0 16px;
  text-align: center;
}
.accr-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: center;
}
.accr-text p{ margin-bottom: 12px; }
.accr-img img{
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  min-height: 180px;         /* чтобы не прыгал макет при lazy */
  background: #f3f6fb;
  border: 1px solid var(--rea-line);
  border-radius: var(--rea-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* Гео-блок */
#po-geo{
  background: #f9fbff;
  border: 1px solid #e7eef8;
  border-radius: var(--rea-radius);
  padding-top: 18px;
  padding-bottom: 16px;
}
#po-geo > h2{
  border-bottom: 1px solid #e2eaf5;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* Юридический блок */
.po-legal p{ margin: 8px 0 0; }

/* FAQ */
.po-faq details{
  border: 1px solid var(--rea-line);
  border-radius: 12px;
  background: var(--rea-card);
  padding: 10px 12px;
  margin: 10px 0;
}
.po-faq summary{
  cursor: pointer;
  font-weight: 700;
  position: relative;
  padding-right: 28px;
}
.po-faq summary::-webkit-details-marker{ display: none; }
.po-faq details:hover { border-color:#cfd9e6; }
.po-faq summary:focus-visible { outline: 2px solid rgba(47,93,158,.35); border-radius: 8px; }
/* стрелочка */
.po-faq summary::after{
  content: "▾";
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transition: transform .2s ease; opacity:.7;
}
.po-faq details[open] summary::after{
  transform: translateY(-50%) rotate(0);
}

/* Кейсы */
.po-cases .case{
  border: 1px solid var(--rea-line);
  border-radius: var(--rea-radius);
  background: var(--rea-card);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.case h3{ margin: 0 0 6px; text-align: left; }
.case .meta{ font-size: 12px; color: var(--rea-muted); }

/* Контакты */
.contacts-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.c-item{
  background: var(--rea-card);
  border: 1px solid var(--rea-line);
  border-radius: var(--rea-radius);
  padding: 12px 14px;
}
.po-contacts .c-item h3{ margin: 0 0 6px; text-align: left; }
.po-contacts .c-item p{ margin: 4px 0 0; line-height: 1.4; }

/* Плавная прокрутка (с учётом prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior: smooth; }
}

/* Мобилки: кнопки на всю ширину и зазор между ними */
@media (max-width: 480px){
  .cta{ gap: 8px; }
  .cta .btn{ width:100%; }
}

/* Две колонки в «Что получите/Что нужно» на десктопе */
@media (min-width: 1024px){
  #po-output .grid, #po-start .grid{
    grid-template-columns: repeat(2, minmax(320px, 1fr));
  }
  .po-hero{ padding: 28px 24px; }
}

/* Печать */
@media print{
  .cta, .btn, .po-cta, .note.small, .case .meta,
  a[href^="tel:"], iframe, script{ display:none !important; }
  .price-card, .set{ box-shadow: none !important; }
  body{ color:#000; }
  section[class^="po-"], section[id^="po-"]{ max-width: 100%; padding: 0; }
  a{ color: #000; text-decoration: none; }
}

/* Services */
.po-services { margin: 28px auto; max-width: 1100px; padding: 0 16px; }
.po-services h2 { text-align: center; }
.po-services .set p { margin: 6px 0 10px; min-height: 44px; }
.po-services .set .cta { justify-content: center; }

/* универсальная плашка для текстовых секций */
.po-boxed{
  background:#fcfdff;
  border:1px solid var(--rea-line);
  border-radius: var(--rea-radius);
  padding:18px 16px;
  box-shadow:0 2px 6px rgba(0,0,0,.02);
}
