/* ==========================================================================
   Equipment Premium (template page-equipment-premium.php) · 2026-09-23
   Extends the "hp" (Steel Ledger) system for page 5568. Scoped to .eq so
   nothing else on the site is touched. Tokens inherited from home-premium.css.
   ========================================================================== */

.eq ::selection { background: #ff6600; color: #1a1a1a; }

/* Герой 5568 теперь на общей базе .hp-hero (одинаковая высота со всеми). */

/* ---------- Lead + capability statements ---------- */
.eq-lead__intro { max-width: none; }
.eq-lead__text { margin: 0 0 12px; font-family: var(--hp-text); font-size: 17px; line-height: 1.65; color: var(--hp-body); }

.eq-caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 48px 0 0;
}
.eq-cap { border-top: 2px solid var(--hp-ink); padding-top: 18px; }
.eq-cap__title { margin: 0 0 10px; font-family: var(--hp-display); font-size: 20px; font-weight: 700; line-height: 1.15; text-transform: uppercase; color: var(--hp-ink); }
.eq-cap__text { margin: 0; font-family: var(--hp-text); font-size: 15px; line-height: 1.6; color: var(--hp-body); }

/* ---------- Signature: «Этапы монтажа» scroll timeline ---------- */
.eq-steps { position: relative; }
.eq-steps__rail {
  position: relative;
  height: 4px;
  margin: 40px 0 8px;
  background: var(--hp-line);
  overflow: hidden;
}
.eq-steps__rail > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--hp-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s linear;
}
.eq-steps__list { margin: 0; display: grid; gap: 0; }

.eq-step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--hp-line);
}
.eq-step__num {
  font-family: var(--hp-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--hp-line);
  transition: color .3s ease;
}
.eq-step__title { margin: 0 0 8px; font-family: var(--hp-display); font-size: 24px; font-weight: 700; line-height: 1.1; text-transform: uppercase; color: var(--hp-ink); }
.eq-step__text { margin: 0; max-width: 56ch; font-family: var(--hp-text); font-size: 16px; line-height: 1.6; color: var(--hp-body); }
.eq-step__media { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: var(--hp-alt); }
.eq-step__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .6s cubic-bezier(.19,1,.22,1); }
.eq-step.is-active .eq-step__num { color: var(--hp-ink); }
.eq-step.is-current .eq-step__num { color: var(--hp-accent); }
.eq-step.is-current .eq-step__media { outline: 2px solid var(--hp-accent); outline-offset: -2px; }
.eq-step.is-current .eq-step__media img { transform: scale(1); }

/* Срок этапа плашкой (страница трубопроводов 5867, 2026-09-25) */
.eq-step__meta { margin: 14px 0 0; font-family: var(--hp-text); }
.eq-step__meta strong { display: inline-block; padding: 6px 12px; background: var(--hp-alt); border-left: 2px solid var(--hp-accent); color: var(--hp-ink); font-size: 14px; font-weight: 700; letter-spacing: .01em; }

/* Своя форма CF7 несёт свой <h2> — в закрывающей полосе он дублирует заголовок
   секции. Прячем только на странице трубопроводов (5867), остальные премиум-страницы
   не трогаем. Селектор именно `.wpcf7 form > h2`: заголовок лежит внутри <form>,
   а не прямым потомком .wpcf7 (грабля: правило с `>` после .wpcf7 не срабатывает).
   Заголовок во всплывающем окне (d-lk-popup) остаётся: секции у него нет. */
.pipes-pp .hp-quote__form .wpcf7 form > h2 { display: none; }

.eq-steps__note { margin: 32px 0 0; max-width: 74ch; font-family: var(--hp-text); font-size: 15px; line-height: 1.6; color: var(--hp-muted); }
.eq-steps__more { margin: 16px 0 0; max-width: 75ch; font-family: var(--hp-text); font-size: 15px; color: var(--hp-body); }

/* ---------- Repairs (alt band) ---------- */
.eq-repairs { background: var(--hp-alt); }
.eq-repairs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 40px; }
.eq-repairs__sub { margin: 0 0 10px; font-family: var(--hp-display); font-size: 21px; font-weight: 700; line-height: 1.12; text-transform: uppercase; color: var(--hp-ink); }
.eq-repairs__text { margin: 0 0 14px; font-family: var(--hp-text); font-size: 15px; line-height: 1.6; color: var(--hp-body); }

.eq-facts { margin: 0; }
.eq-facts > li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--hp-line);
  font-family: var(--hp-text);
  font-size: 15px;
  line-height: 1.5;
  color: var(--hp-body);
}
.eq-facts > li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; background: var(--hp-accent); }
.eq-facts strong { color: var(--hp-ink); }

/* ---------- «Знаем многое» ---------- */
.eq-know__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 56px; align-items: center; }
.eq-know__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hp-alt); }
.eq-know__media img { width: 100%; height: 100%; object-fit: cover; }
.eq-know__link { margin: 20px 0 0; }

/* ---------- Gallery ---------- */
.eq-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 0; }
.eq-gallery__item { position: relative; margin: 0; aspect-ratio: 5 / 3; overflow: hidden; background: var(--hp-alt); }
.eq-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.19,1,.22,1); }
.eq-gallery__item:hover img { transform: scale(1.05); }
.eq-gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; font-family: var(--hp-text); font-size: 13px; line-height: 1.35; color: #fff; background: linear-gradient(180deg, transparent, rgba(26,26,26,.82)); }

/* ---------- Objects grid (3 cards, no rail) ---------- */
.eq-objects__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.eq-objects__grid .hp-card { display: flex; height: 100%; }
.eq-objects__grid .hp-card__link { flex: 1; }

/* ---------- Quote: touch targets (fields + checkbox + submit ≥44px) ---------- */
.eq-quote .wpcf7 input[type="text"],
.eq-quote .wpcf7 input[type="email"],
.eq-quote .wpcf7 input[type="tel"],
.eq-quote .wpcf7 input[type="checkbox"],
.eq-quote .wpcf7 textarea { min-height: 44px; }
.eq-quote .wpcf7 input[type="submit"] { min-height: 48px; }
.eq-quote .wpcf7-acceptance { display: flex; align-items: center; min-height: 44px; }

/* ---------- Objects rail links ---------- */
.eq-objects__links { margin-top: 28px; }
.eq-objects__links p { margin: 0; max-width: 72ch; font-family: var(--hp-text); font-size: 14px; line-height: 1.7; color: var(--hp-muted); }
.eq-objects__links p + p { margin-top: 16px; }
.eq-objects__links a { color: var(--hp-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- GOSTs ---------- */
.eq-gosts__list { margin: 28px 0 0; }
.eq-gosts__list > li { border-top: 1px solid var(--hp-line); padding: 14px 0; font-family: var(--hp-text); font-size: 15px; line-height: 1.5; color: var(--hp-body); }
.eq-gosts__list > li:last-child { border-bottom: 1px solid var(--hp-line); }
.eq-gosts__list a { display: block; color: inherit; text-decoration: none; }
.eq-gosts__list a::before { content: "→ "; color: var(--hp-accent); }
.eq-gosts__list a:hover { color: var(--hp-accent); }
.eq-gosts__more { margin: 20px 0 0; max-width: 75ch; font-family: var(--hp-text); font-size: 15px; color: var(--hp-body); }

/* ---------- FAQ ---------- */
.eq-faq .d-faq { border: 1px solid var(--hp-line); background: #fff; margin: 0 0 12px; padding: 14px 18px; }
.eq-faq .d-faq summary { cursor: pointer; font-weight: 700; color: var(--hp-ink); list-style: none; position: relative; padding-right: 28px; }
.eq-faq .d-faq summary::-webkit-details-marker { display: none; }
.eq-faq .d-faq summary::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--hp-accent);
  border-bottom: 2px solid var(--hp-accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.eq-faq .d-faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.eq-faq .d-faq > p { margin: 10px 0 2px; max-width: none; font-family: var(--hp-text); color: var(--hp-body); }

/* ---------- Reveal (restrained) ---------- */
.eq [data-eq-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.19,1,.22,1); }
.eq [data-eq-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .eq [data-eq-reveal] { opacity: 1; transform: none; transition: none; }
  .eq-step__media img { transition: none; }
  .eq-hero__media img { transform: none !important; }
}

/* ---------- Region ring ---------- */
.eq-regions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin: 32px 0 0; }
.eq-regions__grid > li { border-top: 1px solid var(--hp-line); }
.eq-regions__grid > li:last-child, .eq-regions__grid > li:nth-last-child(2), .eq-regions__grid > li:nth-last-child(3) { border-bottom: 1px solid var(--hp-line); }
.eq-regions__grid a { display: block; padding: 12px 0; font-family: var(--hp-text); font-size: 15px; color: var(--hp-body); text-decoration: none; }
.eq-regions__grid a::before { content: "→ "; color: var(--hp-accent); }
.eq-regions__grid a:hover { color: var(--hp-accent); }

/* ---------- Equipment region landing (ob) ---------- */
.eq-region__scope { list-style: decimal; margin: 28px 0 0; padding-left: 24px; }
.eq-region__scope > li::marker { content: counter(list-item) ". "; color: var(--hp-accent); font-weight: 700; }
.eq-region__scope > li::before { content: none; display: none; }
.eq-region__scope > li { margin: 0 0 10px; font-family: var(--hp-text); font-size: 16px; line-height: 1.6; color: var(--hp-body); }
.eq-region__cities, .eq-region__more, .eq-region__mail { margin: 20px 0 0; font-family: var(--hp-text); font-size: 15px; line-height: 1.6; color: var(--hp-body); }
.eq-region__links { margin: 8px 0 64px; }
.eq-region__links p { margin: 0; font-family: var(--hp-text); font-size: 14px; line-height: 1.7; color: var(--hp-muted); }
.eq-region__links a { color: var(--hp-accent); text-decoration: underline; text-underline-offset: 3px; }
.eq-region__cta { background: var(--hp-alt); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .eq-caps { grid-template-columns: 1fr; gap: 22px; }
  .eq-step { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .eq-step__media { grid-column: 2; width: 100%; margin-top: 6px; }
  .eq-repairs__grid { grid-template-columns: 1fr; gap: 32px; }
  .eq-know__grid { grid-template-columns: 1fr; gap: 24px; }
  .eq-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .eq-objects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .eq-step__title { font-size: 20px; }
  .eq-step__num { font-size: 26px; }
}

@media (max-width: 560px) {
  .eq-objects__grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Kontakty (3251, 2026-09-28): FAQ answers span the full row. The shared
   75ch cap wrapped 1-2 sentence contact answers into a narrow half-width
   column on wide screens. Scoped to .kontakty — other premium pages untouched. */
.kontakty .eq-faq .d-faq > p { max-width: none; }

/* Широкие экраны (2026-09-28): вводный блок резал всё внутри (заголовок,
   прямой ответ, текст) на 74 знака — на 4К шла узкая полоса. Ниже 1600px
   предел остаётся. */
@media (min-width: 1600px) {
  .eq-lead__intro { max-width: none; }
}

/* Строки ссылок (2026-09-30): «Смежные услуги» в объектах и список норм
   резались кеглем 72–75 знаков в узкую полосу на широких экранах.
   Это строки ссылок, а не body-текст, — идут на всю ширину всегда. */
.eq-objects__links p,
.eq-gosts__list a,
.eq-gosts__more { max-width: none; }
