/* ==========================================================================
   ЭЛКОРЕКС — посадочная /energy-epc и опросный лист ЦОД
   Подключается только там, где нужен (partials/epc-landing, блок #cod на главной).
   Цвета берутся из переменных site.css (:root).
   ========================================================================== */

/* ---------- Первый экран ---------- */
.epc-hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
.epc-hero__text { position: relative; z-index: 1; min-width: 0; }
.epc-hero .eyebrow { margin-top: 8px; }
.epc-hero__title { max-width: 660px; }
.epc-hero__lead { max-width: 600px; }
.epc-hero__actions .btn { width: auto; }
.epc-hero__art { position: relative; min-width: 0; color: var(--accent); }
.epc-hero__art .xr { display: block; width: 100%; height: auto; }
@media (max-width: 1000px) {
    .epc-hero__in { grid-template-columns: 1fr; }
    .epc-hero__art { max-width: 620px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
    .epc-hero__actions .btn { width: 100%; }
    .epc-hero__art { margin-top: -8px; }
}

/* ---------- «Рентген» (SVG из partials/xray-powerskid) ---------- */
.xr { overflow: visible; }
.xr text { font-family: var(--mono); }
.xr-bg { opacity: 1; }
.xr-fill { fill: currentColor; fill-opacity: .025; stroke: none; }
.xr-fill--side { fill-opacity: .05; }
.xr-shell > path { stroke-width: 1.4; opacity: .55; }
.xr-hid { stroke-dasharray: 3 4; opacity: .3; }
.xr-rib { stroke-width: .8; opacity: .14; }
.xr-base { stroke-width: 1.2; opacity: .4; }
.xr-part { transition: opacity .3s var(--ease); }
.xr-part > path { stroke-width: 1.3; opacity: .9; transition: stroke-width .25s var(--ease); }
.xr-part .xr-detail { stroke-width: .9; opacity: .5; }
.xr-part .xr-hid { opacity: .3; }
.xr-pfill { fill: currentColor; fill-opacity: .06; stroke: none; transition: fill-opacity .25s var(--ease); }
.xr-pfill--side { fill-opacity: .1; }
.xr-label circle { fill: currentColor; stroke: none; }
.xr-label path { stroke-width: .8; opacity: .55; }
.xr-label text { fill: var(--on-dark); stroke: none; font-size: 12px; font-weight: 500; letter-spacing: .06em; transition: fill .25s var(--ease); }
/* Сканирующая полоса по корпусу */
.xr-scan { animation: xr-scan 5.5s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes xr-scan { 0% { transform: translateX(40px); } 70%, 100% { transform: translateX(680px); } }
/* Подсветка блока и его подписи при наведении (на компьютере) */
@media (hover: hover) {
    .xr:has(.xr-part:hover) .xr-part:not(:hover) { opacity: .45; }
    .xr-part:hover .xr-pfill { fill-opacity: .2; }
    .xr-part:hover > path { stroke-width: 1.8; }
    .xr:has(.xr-part[data-part="tr"]:hover)   .xr-label[data-for="tr"] text,
    .xr:has(.xr-part[data-part="grsh"]:hover) .xr-label[data-for="grsh"] text,
    .xr:has(.xr-part[data-part="ups"]:hover)  .xr-label[data-for="ups"] text,
    .xr:has(.xr-part[data-part="bat"]:hover)  .xr-label[data-for="bat"] text,
    .xr:has(.xr-part[data-part="bus"]:hover)  .xr-label[data-for="bus"] text { fill: var(--accent); }
}
@media (prefers-reduced-motion: reduce) { .xr-scan { animation: none; opacity: 0; } }

/* ---------- Полоса доверия ---------- */
.epc-trust { background: var(--dark-1); border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.epc-trust__list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin: 0 auto; padding-top: 18px; padding-bottom: 18px; list-style: none; font: 500 13px/1.4 var(--mono); letter-spacing: .04em; color: var(--on-dark-muted); }
.epc-trust__list li { display: inline-flex; align-items: center; gap: 10px; }
.epc-trust__list li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
@media (max-width: 700px) { .epc-trust__list { justify-content: flex-start; font-size: 12px; } .epc-trust__list li { flex: 1 1 100%; } }

/* ---------- «Почему ЭЛКОРЕКС» 3×2 ---------- */
.epc-why__title { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.epc-why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.epc-why__item { position: relative; padding: clamp(22px, 2.6vw, 34px); background: var(--light-0); transition: background .25s var(--ease); }
.epc-why__item::before { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 3px; background: var(--accent); transition: width .35s var(--ease); }
.epc-why__item:hover::before { width: 100%; }
.epc-why__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.epc-why__num { font: 500 13px/1 var(--mono); letter-spacing: .1em; color: var(--accent-ink); }
.epc-why__icon { width: 34px; height: 34px; padding: 6px; color: var(--accent-ink); border: 1px solid var(--line); border-radius: var(--radius); }
.epc-why__item h3 { margin: 0 0 10px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.3; color: var(--text); }
.epc-why__item p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
@media (max-width: 980px) { .epc-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .epc-why__grid { grid-template-columns: 1fr; } }

/* ---------- Кнопка «Отправить заполненный лист» (главная #cod и /energy-epc) ---------- */
.btn--outline-accent { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--outline-accent:hover { background: var(--accent); color: var(--dark-0); }
.cod__send-btn { margin-top: 14px; min-height: 52px; }
.cod__send-note { margin: 10px 0 0; font-size: 13px; color: var(--on-dark-muted); }
/* На телефоне подписи «рентгена» слишком мелкие — оставляем только рисунок */
@media (max-width: 600px) { .xr-labels { display: none; } }

/* ---------- Блок «Опросный лист» на /energy-epc: тёмный, как «Срочно» на главной ---------- */
.epc-survey { position: relative; color: var(--on-dark); background: var(--dark-1); overflow: hidden; }
.epc-survey::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(242,164,23,.05) 0 14px, transparent 14px 28px); -webkit-mask-image: linear-gradient(90deg, #000, transparent 55%); mask-image: linear-gradient(90deg, #000, transparent 55%); pointer-events: none; }
.epc-survey .cod__grid { position: relative; }
.epc-survey .eyebrow { color: var(--signal); }
.epc-survey .section__title { color: #fff; }
.epc-survey .cod__text { color: var(--on-dark-muted); }
.epc-survey .cod__list li { color: var(--on-dark); }
.epc-survey .cod__list svg { color: var(--signal); }
.epc-survey .cod__card { background: var(--dark-2); border: 1px solid var(--dark-line); border-top: 3px solid var(--signal); }
.epc-survey .cod__card::before { display: none; }

/* Шаги в карточке опросного листа: 1 — скачать, 2 — отправить (главное действие, оранжевое) */
.cod__step { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.cod__step-num { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; letter-spacing: 0; }
.cod__step--send { margin-top: 24px; color: var(--signal); }
.cod__step + .cod__send-btn { margin-top: 0; }
.cod__send-btn.btn--signal { min-height: 56px; font-weight: 600; }
.cod__send-btn.btn--signal svg { width: 18px; height: 18px; }

/* ---------- «Рентгены» в шапках посадочных (partials/xray-{slug}) ---------- */
.hero__xray--rich { pointer-events: auto; color: var(--accent); }
.hero--page .hero__xray--rich { width: clamp(360px, 40vw, 560px); right: -24px; }
.hero__xray--rich svg { opacity: 1; }
.hero__xray--rich .xr-bg { display: none; }
@media (max-width: 1100px) { .hero__xray--rich .xr-labels { display: none; } .hero__xray--rich svg { opacity: .5; } }
.xr-wall { stroke-width: 1.4; opacity: .55; }
.xr-part .xr-rib, .xr-rib { stroke-width: .8; }
.xr-part .xr-rib { opacity: .3; }
.xr-dim { stroke-width: .8; opacity: .6; stroke-dasharray: 2 3; }
.xr-arrow { stroke: var(--signal); stroke-width: 1.6; opacity: .95; }
.xr-legs { stroke-width: .7; opacity: .6; }
.xr-blue { stroke-width: .8; opacity: .16; }
