/*
Theme Name: EPS Electro
Theme URI: https://energo73.ru/
Author: ЭНЕРГОПРОМСТАНДАРТ
Description: Тема сайта электролаборатории: протоколы испытаний, заявки, квиз, галерея объектов.
Version: 2.3.3
Requires PHP: 7.4
Text Domain: eps
*/

/* Lato — единый шрифт сайта: кириллица и латиница, два начертания */
@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/lato-cyr-400.woff2) format('woff2')}
@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/lato-cyr-700.woff2) format('woff2')}

:root{
  --accent:#f9ae40;
  --accent-dark:#e69b2b;
  --dark:#000;
  --text:#333;
  --muted:#666;
  --light:#f9f9f9;
  --line:#e6e6e6;
  --radius:0;
  --font:'Lato','Helvetica Neue',Helvetica,Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-size:16px;line-height:1.6;color:var(--text);background:#fff}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-dark)}
h1,h2,h3,h4{margin:0 0 .6em;line-height:1.25;color:var(--text);font-weight:400}
h1{font-size:34px}
h2{font-size:28px}
h3{font-size:20px}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em;padding-left:1.3em}
.container{max-width:1140px;margin:0 auto;padding:0 20px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}

/* ===== Шапка ===== */
.eps-header{background:#000;position:relative;z-index:100}
.eps-header-inner{display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:117px}
.eps-brand{display:block;color:#fff}
.eps-brand-name{display:block;font-size:26px;font-weight:400;letter-spacing:normal;color:#fff;line-height:1.2}
.eps-brand-name:hover{color:#fff}
.eps-brand-tag{display:block;font-size:14px;letter-spacing:normal;text-transform:none;color:var(--accent);margin-top:4px}
.eps-nav ul{display:flex;align-items:center;gap:6px;margin:0;padding:0;list-style:none}
.eps-nav a{display:block;padding:10px 18px;font-size:16px;color:#f2f2f2;font-weight:400;letter-spacing:.3px;white-space:nowrap}
.eps-nav a:hover,.eps-nav .current-menu-item>a{color:var(--accent)}
.eps-nav .sub-menu{display:none;position:absolute;background:#fff;padding:8px;border-radius:0;box-shadow:0 10px 30px rgba(0,0,0,.15);min-width:180px}
.eps-nav li{position:relative}
.eps-nav li:hover>.sub-menu{display:block}
.eps-nav .sub-menu a{color:#333}
.eps-head-contacts{text-align:right;color:#fff}
.eps-phone{display:inline-flex;align-items:center;gap:8px;font-size:20px;font-weight:700;color:#fff;white-space:nowrap}
.eps-phone-ico{color:var(--accent);flex:0 0 auto}
.eps-phone:hover{color:var(--accent)}
.eps-hours{display:block;font-size:12px;color:#b9b9b9;margin-top:2px}
.eps-burger{display:none;background:none;border:0;padding:8px;cursor:pointer}
.eps-burger span{display:block;width:26px;height:2px;background:#fff;margin:5px 0;transition:.2s}
.eps-burger.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.eps-burger.is-open span:nth-child(2){opacity:0}
.eps-burger.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ===== Баннер-слайдер ===== */
.eps-slider{position:relative;overflow:hidden;background:#111;min-height:100vh}
.eps-slider-track{display:flex;height:100vh;transition:transform .6s cubic-bezier(.4,0,.2,1);will-change:transform}
.eps-slide{flex:0 0 100%;position:relative;display:flex;align-items:center;justify-content:center;text-align:center;
  background-size:cover;background-position:center;background-color:#111;padding:120px 0 90px}
.eps-slide::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.35) 0%,rgba(0,0,0,.15) 45%,rgba(0,0,0,.35) 100%)}
.eps-slide-inner{position:relative;width:100%;max-width:none;color:#fff;
  display:flex;flex-direction:column;align-items:center;text-align:center;
  background:rgba(12,12,12,0);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  padding:34px 40px 38px;
  border-left:4px solid transparent;
  transition:background .45s ease, backdrop-filter .45s ease, -webkit-backdrop-filter .45s ease, border-color .45s ease}
/* по умолчанию полосы нет — фото открыто целиком; текст держим тенью */
.eps-slide-title,.eps-slide p{text-shadow:0 2px 10px rgba(0,0,0,.9), 0 0 26px rgba(0,0,0,.75)}
/* при наведении проступает матовая полоса и текст становится ещё чётче */
.eps-slide-inner:hover{
  background:rgba(12,12,12,.42);
  -webkit-backdrop-filter:blur(10px) saturate(120%);
  backdrop-filter:blur(10px) saturate(120%);
  border-left-color:var(--accent)}
.eps-slide-inner:hover .eps-slide-title,
.eps-slide-inner:hover p{text-shadow:0 1px 6px rgba(0,0,0,.7)}
.eps-slide-inner > *{width:100%;max-width:860px}
.eps-slide h1,.eps-slide .eps-slide-title{font-size:44px;color:#eeee22;margin:0 0 18px;font-weight:800}
.eps-slide p{font-size:18px;line-height:1.6;color:#fff;margin:0 0 28px;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.eps-buttons{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.eps-btn{display:inline-block;padding:14px 32px;font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;
  border-radius:0;border:2px solid var(--accent);background:var(--accent);color:#fff;cursor:pointer;transition:.18s}
.eps-btn:hover{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}
.eps-btn-outline{background:transparent;color:var(--accent)}
.eps-btn-outline:hover{background:var(--accent);color:#fff}
.eps-dots{position:absolute;right:26px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:12px;z-index:5}
.eps-dot{width:11px;height:11px;border-radius:50%;border:2px solid #fff;background:transparent;padding:0;cursor:pointer;opacity:.65}
.eps-dot.is-active{background:var(--accent);border-color:var(--accent);opacity:1}
.eps-arrow{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;border:0;
  background:rgba(0,0,0,.35);color:#fff;font-size:22px;cursor:pointer;z-index:5;display:flex;align-items:center;justify-content:center}
.eps-arrow:hover{background:var(--accent)}
.eps-arrow.prev{left:18px}
.eps-arrow.next{right:70px}

/* ===== Секции ===== */
.eps-section{padding:90px 0;position:relative}
/* Секции: не зебра, а мягкие переходы фона.
   Полоса чуть темнее, но границы растворяются градиентом 120px. */
.eps-section.alt{
  background:#f4f5f6;
  position:relative;
  isolation:isolate;
}
.eps-section.alt::before,
.eps-section.alt::after{
  content:"";
  position:absolute;
  left:0;right:0;
  height:120px;
  pointer-events:none;
  z-index:-1;
}
.eps-section.alt::before{top:0;height:120px;background:linear-gradient(180deg,#fff 0%,rgba(255,255,255,0) 100%)}
.eps-section.alt::after{bottom:0;height:120px;background:linear-gradient(0deg,#fff 0%,rgba(255,255,255,0) 100%)}
/* тонкая линия на стыке разделов — как разделитель в галерее */
.eps-section + .eps-section:not(.alt),
.eps-section.alt + .eps-section{
  border-top:1px solid #f0f0f0;
}
.eps-section.alt + .eps-section{border-top-color:#f0f0f0}
.eps-section-head{text-align:center;max-width:820px;margin:0 auto 46px}
.eps-section-head h2{font-size:30px;margin:0 0 12px}
/* текст под заголовком: единый размер и ритм, инлайн-стили из редактора не должны вмешиваться */
.eps-section-head p,.eps-section-head div{
  color:var(--muted)!important;font-size:17px!important;line-height:1.75!important;
  margin:0!important;text-align:center!important}
.eps-section-head p:last-child,.eps-section-head div:last-child{margin-bottom:0!important}
/* пустые абзацы и абзацы из одного переноса — убираем, из-за них скакали отступы */
.eps-section-head p:empty,.eps-section-head div:empty{display:none!important}
.eps-section-head strong{color:var(--accent)!important;font-weight:600}

/* прилипание секций только на главной */
.eps-snap{scroll-snap-type:y proximity}
.eps-snap .eps-section,.eps-snap .eps-slider{scroll-snap-align:start}
html.eps-snap-on{scroll-behavior:smooth}

/* Преимущества */
.eps-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.eps-card{background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.04);background:#fff;border-radius:0;padding:32px 26px;box-shadow:0 6px 24px rgba(0,0,0,.06);
  border-top:4px solid var(--accent);transition:.2s}
.eps-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(0,0,0,.1)}
.eps-card-icon{width:54px;height:54px;border-radius:50%;background:rgba(249,174,64,.12);display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.eps-card-icon svg{width:26px;height:26px;stroke:var(--accent);fill:none;stroke-width:1.8}
.eps-card h3{font-size:19px;margin:0 0 10px}
.eps-card p{color:var(--muted);margin:0;font-size:15px}

/* Статьи */
.eps-posts{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.eps-post{background:#fff;border-radius:0;overflow:hidden;box-shadow:0 6px 22px rgba(0,0,0,.06);display:flex;flex-direction:column}
.eps-post-thumb{position:relative;aspect-ratio:4/3;overflow:hidden;background:#eee;display:block}
.eps-post-thumb-link{display:block;width:100%;height:100%}
.eps-post-cat{
  position:absolute;top:12px;left:12px;z-index:2;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.85);
  color:#fff;font-size:11px;font-weight:600;
  letter-spacing:.8px;text-transform:uppercase;
  padding:4px 10px;border-radius:0;
  transition:background .25s ease,border-color .25s ease,color .25s ease;
}
/* бейдж категории — ссылка: при наведении заливается оранжевым */
.eps-post-cat:hover,.eps-post-cat:focus-visible{
  background:var(--accent);border-color:var(--accent);color:#1a1a1a;
}
.eps-post-thumb img{width:100%;height:100%;object-fit:cover;transition:.3s}
.eps-post:hover .eps-post-thumb img{transform:scale(1.05)}
.eps-post-body{background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.04);padding:18px 18px 22px;display:flex;flex-direction:column;flex:1}
.eps-post-body h3{font-size:16px;line-height:1.4;margin:0 0 10px;text-align:center}
.eps-post-excerpt{color:#777;font-size:14px;line-height:1.6;margin:0;text-align:center}
.eps-post-author{
  display:flex;align-items:center;justify-content:center;gap:8px;
  border-top:1px solid #eee;padding-top:13px;margin-top:auto;
  font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:#9a9a9a;
}
.eps-post-author svg{width:14px;height:14px;stroke:#9a9a9a;fill:none;stroke-width:1.8;flex:0 0 auto}
.eps-post-body h3 a{color:var(--text)}
.eps-post-body h3 a:hover{color:var(--accent)}
.eps-post-date{font-size:12px;color:#999;margin-bottom:8px;text-transform:uppercase;letter-spacing:.4px}
.eps-post-more{margin-top:auto;font-size:14px;font-weight:600}

/* Галерея */
/* --- галерея «Обратите внимание»: тёмная секция, фото в белых рамках --- */
#gallery{position:relative;background:#101216;padding:96px 0;overflow:hidden}
#gallery::before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.5;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:84px 84px}
#gallery .container{position:relative;z-index:1}
.eps-gallery-layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:56px;align-items:start}
.eps-gallery-kicker{display:inline-flex;align-items:center;gap:9px;font-size:12.5px;letter-spacing:.18em;
  text-transform:uppercase;color:#f9ae40;margin-bottom:20px;font-weight:600}
.eps-gallery-kicker::before{content:'';width:10px;height:10px;background:#f9ae40}
.eps-gallery-text h2{font-size:44px;line-height:1.1;margin:0 0 22px;font-weight:800;letter-spacing:-.01em;color:#f4f5f7;text-transform:uppercase}
.eps-gallery-text p{margin:0 0 14px;font-size:17px;line-height:1.72;color:#b6bac1}
.eps-gallery-cta{color:#f0f1f3!important;font-weight:600;font-size:17.5px!important;
  border-left:3px solid #f9ae40;padding-left:16px;margin-top:22px!important}
.eps-gallery-hint{margin-top:22px!important;font-size:13px!important;color:#767c85!important}

/* коллаж: снимки лежат навалом и слегка перекрывают друг друга, уголки выглядывают */
.eps-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:30px 34px;align-items:start;
  perspective:1400px;padding:10px 4px 40px}
.eps-gallery-cell{position:relative;transition:transform .45s cubic-bezier(.2,.75,.3,1);will-change:transform}
.eps-gallery-cell:nth-child(1){transform:rotate(-2deg)}
.eps-gallery-cell:nth-child(2){transform:rotate(1.6deg) translateY(30px)}
.eps-gallery-cell:nth-child(3){transform:rotate(1.3deg) translateY(-14px)}
.eps-gallery-cell:nth-child(4){transform:rotate(-1.7deg) translateY(22px)}
.eps-gallery-cell:hover{transform:rotate(0deg) translateY(-8px) scale(1.015);z-index:9}
.eps-gallery-item{position:relative;display:block;border:0;padding:10px 10px 0;background:#fbfbf9;
  cursor:pointer;touch-action:manipulation;transform-style:preserve-3d;backface-visibility:visible;
  box-shadow:0 10px 26px rgba(0,0,0,.35);transition:transform .3s ease,box-shadow .3s ease;
  -webkit-tap-highlight-color:transparent}
.eps-gallery-item:hover{box-shadow:0 24px 50px rgba(0,0,0,.55)}
.eps-gallery-frame{display:block;overflow:hidden;background:#e9e9e9;aspect-ratio:4/5}
.eps-gallery-frame img{display:block;width:100%;height:100%;object-fit:cover}
.eps-gallery-cap{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  padding:11px 2px 13px;font-size:12.5px;line-height:1.4;color:#5b6068;text-align:left;
  letter-spacing:.01em;height:64px}
.eps-gallery-item.is-flip{animation:eps-flip .78s cubic-bezier(.45,.05,.25,1)}
@keyframes eps-flip{
  0%{transform:rotateY(0) scale(1)}
  45%{transform:rotateY(160deg) scale(.94)}
  55%{transform:rotateY(200deg) scale(.94)}
  100%{transform:rotateY(360deg) scale(1)}
}
@media (prefers-reduced-motion: reduce){
  .eps-gallery-item.is-flip{animation:none}
  .eps-gallery-item:hover{transform:none}
}


/* Лайтбокс */
.eps-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.92);display:none;align-items:center;justify-content:center;z-index:9999;padding:40px}
.eps-lightbox.is-open{display:flex}
.eps-lightbox img{max-width:92vw;max-height:86vh;object-fit:contain;border-radius:0}
.eps-lightbox-close{position:absolute;top:18px;right:24px;background:none;border:0;color:#fff;font-size:40px;cursor:pointer;line-height:1}
.eps-lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.12);border:0;color:#fff;
  width:52px;height:52px;border-radius:50%;font-size:24px;cursor:pointer}
.eps-lightbox-nav.prev{left:20px}
.eps-lightbox-nav.next{right:20px}
.eps-lightbox-caption{position:absolute;bottom:20px;left:0;right:0;text-align:center;color:#ddd;font-size:14px;padding:0 40px}

/* Отзывы */
.eps-slider-reviews{max-width:760px;margin:0 auto}
.eps-reviews-viewport{overflow:hidden}
.eps-reviews{display:flex;transition:transform .45s cubic-bezier(.4,0,.2,1)}
.eps-reviews .eps-review{flex:0 0 100%;min-width:100%}
.eps-review-dots{display:flex;justify-content:center;gap:12px;margin-top:28px}
.eps-review-dot{width:9px;height:9px;padding:0;border-radius:50%;border:0;background:#cfcfcf;
cursor:pointer;transition:background .25s ease,transform .25s ease}
.eps-review-dot:hover{transform:scale(1.15)}
.eps-review-dot.is-active{background:#8a8a8a}
.eps-review{background:#fff;border-radius:0;border:1px solid transparent;padding:34px 34px 30px;box-shadow:0 6px 24px rgba(0,0,0,.05);text-align:center}
.eps-review-avatar{width:96px;height:96px;border-radius:50%;object-fit:cover;margin:0 auto 16px;border:3px solid rgba(249,174,64,.25)}
.eps-review-text{color:#777;font-size:18px;line-height:1.65;margin:0 0 18px;font-style:italic}
.eps-review-text::after{content:'';display:block;width:52px;height:2px;background:var(--accent);margin:16px auto 0}
.eps-review-name{font-weight:700;color:var(--accent);font-size:15px}
.eps-review-role{font-weight:400;color:var(--accent);font-size:15px}

/* CTA */
.eps-cta{background:linear-gradient(135deg,#1a1a1a,#333);color:#fff;text-align:center;padding:80px 20px}
.eps-cta h2{color:#fff;font-size:30px;margin:0 0 14px}
.eps-cta p{color:#ccc;font-size:17px;margin:0 0 28px}


/* ===== Тёмная техническая секция с аккордеоном (приём с сайта-конкурента, но с нашим контентом) ===== */
.eps-dark{background:#0b0b0b;color:#e8e8e8;padding:90px 0}
.eps-dark .eps-tests{display:grid;grid-template-columns:420px 1fr;gap:56px;align-items:center}
.eps-dark h2{color:#fff;font-size:30px;margin:0 0 16px;text-transform:uppercase;letter-spacing:1px}
.eps-dark p{color:#b9b9b9;font-size:16px;line-height:1.65;margin:0 0 26px}
.eps-tests-media{
  position:relative;
  border:1px solid var(--accent);
  padding:26px;
  display:flex;align-items:center;justify-content:center;
  min-height:360px;
  background:
    radial-gradient(circle at 30% 25%,rgba(249,174,64,.14),transparent 55%),
    radial-gradient(circle at 70% 75%,rgba(249,174,64,.08),transparent 55%),
    #0f0f0f;
}
.eps-tests-media svg{width:78%;height:auto;stroke:#fff;fill:none;stroke-width:1.1;opacity:.92}
.eps-acc{border-top:1px solid #2a2a2a;margin-bottom:26px}
.eps-acc-item{border-bottom:1px solid #2a2a2a}
.eps-acc-head{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;
  background:none;border:0;color:var(--accent);
  font:inherit;font-size:16px;font-weight:600;text-align:left;
  padding:16px 0;cursor:pointer;
}
.eps-acc-head:hover{color:#ffb74d}
.eps-acc-icon{flex:0 0 auto;width:18px;height:18px;position:relative;transition:transform .25s}
.eps-acc-icon::before,.eps-acc-icon::after{content:"";position:absolute;background:currentColor}
.eps-acc-icon::before{left:0;top:8px;width:18px;height:2px}
.eps-acc-icon::after{left:8px;top:0;width:2px;height:18px;transition:opacity .2s}
.eps-acc-item.is-open .eps-acc-icon::after{opacity:0}
.eps-acc-body{max-height:0;overflow:hidden;transition:max-height .35s ease}
.eps-acc-item.is-open .eps-acc-body{max-height:520px}
.eps-acc-body ul{list-style:none;margin:0 0 18px;padding:0}
.eps-acc-body li{position:relative;padding-left:22px;margin-bottom:9px;color:#d0d0d0;font-size:15px;line-height:1.5}
.eps-acc-body li::before{content:"";position:absolute;left:0;top:9px;width:9px;height:9px;border:1px solid var(--accent)}
@media (max-width:991px){
  .eps-dark{padding:56px 0}
  .eps-dark .eps-tests{grid-template-columns:1fr;gap:30px}
  .eps-tests-media{min-height:240px;padding:18px}
  .eps-dark h2{font-size:22px}
}

/* Подвал */
.eps-footer{background:#333;color:#c9c9c9;padding:56px 0 26px;font-size:14px}
.eps-footer a{color:#e8e8e8}
.eps-footer a:hover{color:var(--accent)}
.eps-footer-h1{font-size:17px;color:#fff;margin:0 0 10px;font-weight:600;line-height:1.45;max-width:560px}
.eps-footer-desc{font-size:13px;color:#b8b8b8;margin:0 0 24px;max-width:540px}
.eps-footer-contacts{display:grid;grid-template-columns:.85fr 1.15fr;gap:14px 28px;margin:0 0 26px;max-width:560px}
.eps-footer-label{font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:#8f8f8f}
.eps-footer-value{font-size:14px;color:#eaeaea}
.eps-footer-value a{color:var(--accent)}
/* нижняя полоса подвала: слева правовая информация, справа информер Метрики */
.eps-footer-bottom{border-top:1px solid #4a4a4a;padding-top:18px;margin-top:26px;
  font-size:12px;color:#8f8f8f;display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.eps-footer-bottom p{margin:0 0 4px}
.eps-footer-legal{min-width:0}
.eps-footer-badge{flex:0 0 auto;line-height:0}
.eps-footer-badge img{display:block;border:0}
@media (max-width:768px){
  .eps-footer-bottom{flex-direction:column;align-items:stretch;gap:14px}
  .eps-footer-legal{align-self:flex-start}
  .eps-footer-badge{align-self:flex-end}
}


/* ===== Появление при прокрутке (как в прежней теме: fadeInUp волной) =====
   Класс eps-anim ставит скрипт: без JS всё видно сразу. */
.eps-anim .eps-post,
.eps-anim .eps-card,
.eps-anim .eps-review,
.eps-anim .eps-gallery-item,
.eps-anim .eps-section-head{
  opacity:0;
  transform:translate3d(0,170px,0);
  transition:opacity .85s ease-out,transform .85s cubic-bezier(.19,.72,.28,1);
  will-change:opacity,transform;
}
.eps-anim .is-visible{opacity:1;transform:translate3d(0,0,0)}
@media (prefers-reduced-motion:reduce){
  .eps-anim .eps-post,.eps-anim .eps-card,.eps-anim .eps-review,.eps-anim .eps-gallery-item,.eps-anim .eps-section-head{
    opacity:1!important;transform:none!important;transition:none!important;
  }
}

/* Страницы и записи */
.eps-page-head{background:#000;color:#fff;padding:54px 0 46px}
.eps-page-head h1{color:#fff;margin:0;font-size:32px}
.eps-content{padding:60px 0}
.eps-content img{border-radius:0}
.eps-content .entry-meta{color:#999;font-size:13px;margin-bottom:24px}
.eps-breadcrumbs{font-size:13px;color:#aaa;margin-top:10px}
.eps-breadcrumbs a{color:#ccc}
.eps-pagination{display:flex;gap:8px;justify-content:center;margin:40px 0}
.eps-pagination .page-numbers{padding:9px 15px;border-radius:0;background:#f0f0f0;color:#333;font-weight:600}
.eps-pagination .page-numbers.current,.eps-pagination .page-numbers:hover{background:var(--accent);color:#fff}

/* Адаптив */
@media (min-width:1251px){.eps-brand-tag{white-space:nowrap}}
@media (max-width:1250px){
  .eps-nav a{padding:10px 8px;font-size:14px}
  .eps-brand-name{font-size:22px}
  .eps-phone{font-size:17px}
}
@media (max-width:991px){
  .eps-burger{display:block}
  .eps-nav{position:absolute;left:0;right:0;top:100%;background:#000;display:none;padding:12px 20px 20px}
  .eps-nav.is-open{display:block}
  .eps-nav ul{flex-direction:column;align-items:flex-start;gap:0}
  .eps-nav a{padding:12px 0;font-size:16px;width:100%}
  .eps-nav .sub-menu{position:static;display:block;background:transparent;box-shadow:none;padding:0 0 0 14px}
  .eps-nav .sub-menu a{color:#ccc}
  .eps-header-inner{min-height:auto;padding:14px 0;flex-wrap:wrap}
  .eps-head-contacts{order:3;text-align:left;flex:0 0 100%;margin-top:6px}
  .eps-head-contacts .eps-phone{font-size:16px}
  .eps-slide h1,.eps-slide .eps-slide-title{font-size:28px}
  .eps-slide p{font-size:16px}
  .eps-slider,.eps-slider-track{min-height:auto;height:auto}
  .eps-slide{padding:90px 18px 70px;min-height:70vh}
  .eps-dots{right:10px;gap:8px}
  .eps-dot{width:9px;height:9px}
  .eps-arrow{width:38px;height:38px;font-size:18px}
  .eps-arrow.next{right:52px}
  .eps-section{padding:56px 0}
  .eps-cards,.eps-reviews{grid-template-columns:1fr}
  .eps-gallery-layout{grid-template-columns:1fr;gap:28px}
  .eps-gallery-text h2{font-size:26px}
  .eps-gallery{grid-template-columns:repeat(2,1fr)}
  .eps-posts{grid-template-columns:repeat(2,1fr)}
  .eps-gallery{grid-template-columns:repeat(2,1fr);gap:16px;padding-bottom:16px}
  .eps-gallery-cell:nth-child(1){transform:rotate(-1.2deg)}
  .eps-gallery-cell:nth-child(2){transform:rotate(1.1deg) translateY(14px)}
  .eps-gallery-cell:nth-child(3){transform:rotate(.9deg) translateY(-8px)}
  .eps-gallery-cell:nth-child(4){transform:rotate(-1.1deg) translateY(12px)}
  h1{font-size:26px}
  h2,.eps-section-head h2{font-size:23px}
}
@media (max-width:560px){
  .eps-posts{grid-template-columns:1fr}
  .eps-buttons{flex-direction:column;align-items:stretch}
  .eps-btn{width:100%;text-align:center}
  .eps-footer{padding-bottom:70px}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* ===== Подзаголовок секции ===== */
.eps-section-sub{max-width:640px;margin:10px auto 0;color:var(--muted);font-size:16px;line-height:1.6;text-align:center}

/* ===== Плавающая кнопка звонка ===== */
.eps-call{position:fixed;right:24px;bottom:24px;z-index:900;width:60px;height:60px;border-radius:50%;
background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;
box-shadow:0 6px 20px rgba(0,0,0,.22);transition:transform .18s,background .18s;isolation:isolate}
/* волны: две расходящиеся окружности, как в оригинале */
.eps-call::before,.eps-call::after{content:'';position:absolute;inset:0;border-radius:50%;
background:var(--accent);opacity:0;z-index:-1;animation:epsWave 2s ease-out infinite}
.eps-call::after{animation-delay:1s}
@keyframes epsWave{
0%{transform:scale(1);opacity:.6}
100%{transform:scale(2.8);opacity:0}
}
@media(prefers-reduced-motion:reduce){.eps-call::before,.eps-call::after{animation:none}}
.eps-call__hint{position:absolute;right:72px;top:50%;transform:translateY(-50%);white-space:nowrap;
background:#000;color:#fff;font-size:13px;padding:7px 12px;opacity:0;pointer-events:none;transition:opacity .18s}
.eps-call:hover .eps-call__hint{opacity:1}
@media(max-width:992px){.eps-call{width:54px;height:54px;right:16px;bottom:16px}}

/* ===== Всплывающее окно заявки ===== */
body.eps-locked{overflow:hidden}
.eps-modal{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:20px}
.eps-modal.is-open{display:flex}
.eps-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.62)}
.eps-modal__box{position:relative;background:#fff;width:100%;max-width:430px;padding:34px 30px 26px;
box-shadow:0 20px 60px rgba(0,0,0,.35);animation:epsPop .22s ease}
@keyframes epsPop{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.eps-modal__close{position:absolute;top:8px;right:12px;border:0;background:none;font-size:30px;line-height:1;
color:#999;cursor:pointer;padding:4px 8px}
.eps-modal__close:hover{color:#333}
.eps-modal__head{font-size:22px;font-weight:700;color:var(--text);margin-bottom:8px}
.eps-modal__text{font-size:14px;color:var(--muted);line-height:1.55;margin:0 0 18px}
.eps-modal__foot{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.eps-modal__foot a{color:var(--text);font-weight:600}
.eps-input{width:100%;padding:13px 15px;border:1px solid #ddd;font-size:15px;font-family:inherit;
margin-bottom:12px;background:#fff;color:var(--text)}
.eps-input:focus{outline:none;border-color:var(--accent)}
.eps-agree{display:flex;gap:9px;align-items:flex-start;font-size:12.5px;color:var(--muted);line-height:1.5;margin:2px 0 16px;cursor:pointer}
.eps-agree input{margin-top:2px;flex:0 0 auto;accent-color:var(--accent);width:16px;height:16px}
.eps-agree a{color:var(--accent-dark);text-decoration:underline}
.eps-btn--full{width:100%;border:0;cursor:pointer;font-family:inherit;font-size:16px;padding:14px 20px;
background:var(--accent);color:#fff;font-weight:600}
.eps-btn--full:hover{background:var(--accent-dark)}
.eps-btn--full:disabled{opacity:.6;cursor:default}
.eps-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.eps-form__msg{font-size:13.5px;line-height:1.5;margin-top:12px;min-height:18px}
.eps-form__msg.is-error{color:#c0392b}
.eps-form__msg.is-ok{color:#1e8449}

/* ===== Вертикальная навигация по разделам (как в оригинале) ===== */
.eps-navdots{position:fixed;right:47px;top:30%;z-index:60;display:flex;flex-direction:column;align-items:center}
.eps-navdots a{display:block;position:relative;width:26px;height:26px;margin:15px 0;border-radius:50%;
box-shadow:inset 0 0 0 2px var(--accent);
background-image:linear-gradient(var(--accent),var(--accent));
background-size:100% 0;background-position:50% 100%;background-repeat:no-repeat;
transition:background-size .3s ease}
.eps-navdots a:hover{background-size:100% 30%}
.eps-navdots a.active{background-size:100% 100%}
/* полоска только МЕЖДУ кругами: внутри круга её не видно */
.eps-navdots a::before{content:'';position:absolute;left:50%;top:-30px;width:2px;height:30px;
background:var(--accent);transform:translateX(-50%);z-index:-1}
.eps-navdots a:last-child::after{content:'';position:absolute;left:50%;top:100%;width:2px;height:30px;
background:var(--accent);transform:translateX(-50%);z-index:-1}
@media(max-width:992px){
  .eps-navdots{right:9px;top:26%}
  .eps-navdots a{width:16px;height:16px;margin:9px 0;box-shadow:inset 0 0 0 2px var(--accent)}
  .eps-navdots a::before{top:-18px;height:18px;width:2px}
  .eps-navdots a:last-child::after{height:18px;width:2px}
  /* текст не заезжает под точки */
  .eps-slide .container,.eps-section .container{padding-right:30px}
}

/* точки баннера на десктопе не нужны — есть навигация по разделам */
@media(min-width:993px){.eps-dots{display:none}}

/* ===== Квиз проверки риска ===== */
.eps-quiz-section{background:#ebedee}
.eps-quiz{max-width:820px;margin:0 auto;background:#fff;box-shadow:0 10px 40px rgba(0,0,0,.06);padding:44px 46px;border-top:4px solid var(--accent)}
.eps-quiz-title{font-size:28px;margin:0 0 14px;line-height:1.3}
.eps-quiz-lead{font-size:16px;color:#555;line-height:1.65;margin:0 0 18px}
.eps-quiz-bullets{list-style:none;padding:0;margin:0 0 26px}
.eps-quiz-bullets li{position:relative;padding-left:26px;margin-bottom:8px;font-size:15px;color:#555}
.eps-quiz-bullets li::before{content:'';position:absolute;left:0;top:7px;width:12px;height:2px;background:var(--accent)}
.eps-quiz-start{border:0;cursor:pointer;font-family:inherit}
.eps-quiz-progress{display:flex;align-items:center;gap:16px;margin-bottom:26px}
.eps-quiz-progress span{font-size:13px;color:#888;white-space:nowrap;letter-spacing:.5px;text-transform:uppercase}
.eps-quiz-bar{flex:1;height:3px;background:#eee;position:relative}
.eps-quiz-bar i{position:absolute;left:0;top:0;height:100%;width:0;background:var(--accent);transition:width .3s ease}
.eps-quiz-q{font-size:21px;line-height:1.35;margin:0 0 8px}
.eps-quiz-hint{font-size:14px;color:#888;line-height:1.55;margin:0 0 20px}
.eps-quiz-options{display:flex;flex-direction:column;gap:10px}
.eps-quiz-opt{display:flex;align-items:center;gap:12px;width:100%;text-align:left;cursor:pointer;
border:1px solid #e2e2e2;background:#fff;padding:14px 16px;font-size:15px;font-family:inherit;color:#333;
transition:border-color .15s,background .15s}
.eps-quiz-opt:hover{border-color:var(--accent)}
.eps-quiz-opt.is-selected{border-color:var(--accent);background:#fffaf2}
.eps-quiz-mark{flex:0 0 auto;width:18px;height:18px;border:2px solid #ccc;border-radius:50%;position:relative}
.eps-quiz-opt.is-selected .eps-quiz-mark{border-color:var(--accent);background:var(--accent)}
.eps-quiz-opt.is-selected .eps-quiz-mark::after{content:'';position:absolute;left:5px;top:2px;width:4px;height:8px;
border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.eps-quiz-nav{display:flex;justify-content:space-between;align-items:center;margin-top:26px;gap:14px}
.eps-quiz-back{border:0;background:none;color:#888;font-size:14px;font-family:inherit;cursor:pointer;padding:10px 0}
.eps-quiz-back:hover{color:#333}
.eps-quiz-next{border:0;cursor:pointer;font-family:inherit}
.eps-quiz-next:disabled{opacity:.45;cursor:default}
.eps-quiz-score{display:inline-block;font-size:13px;font-weight:700;letter-spacing:1px;text-transform:uppercase;
padding:7px 14px;margin-bottom:16px;color:#fff}
.eps-quiz-score.is-high{background:#c0392b}
.eps-quiz-score.is-mid{background:#e69b2b}
.eps-quiz-score.is-low{background:#1e8449}
.eps-quiz-res-title{font-size:24px;margin:0 0 12px;line-height:1.3}
.eps-quiz-res-text{font-size:15px;color:#555;line-height:1.7;margin:0 0 18px}
.eps-quiz-res-list{margin:0 0 28px;padding-left:20px}
.eps-quiz-res-list li{font-size:15px;color:#444;line-height:1.6;margin-bottom:7px}
.eps-quiz-res-list li.eps-quiz-note{color:#c0392b;list-style:none;margin-left:-20px;font-size:14px}
.eps-quiz-form{background:#fafafa;border:1px solid #eee;padding:24px}
.eps-quiz-form-title{font-size:17px;font-weight:700;margin-bottom:14px;color:#333}
.eps-quiz-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.eps-quiz-form-row .eps-input{margin-bottom:12px}
.eps-quiz-send{border:0;cursor:pointer;font-family:inherit;width:100%}
.eps-quiz-again{display:block;margin:18px auto 0;border:0;background:none;color:#999;font-size:13px;
font-family:inherit;cursor:pointer;text-decoration:underline}
@media(max-width:768px){
  .eps-quiz{padding:30px 22px}
  .eps-quiz-title{font-size:23px}
  .eps-quiz-q{font-size:18px}
  .eps-quiz-form-row{grid-template-columns:1fr}
}

/* ===== Наведение: плотная тень и оранжевый ободок (по образцу карточек «Почему стоит выбрать нас») ===== */
.eps-card,.eps-post-body,.eps-review,.eps-quiz-opt,.eps-quiz{
  transition:border-color .35s ease,box-shadow .4s ease,transform .4s ease,background .25s ease}
.eps-card,.eps-post-body{border:1px solid #ececec}
.eps-quiz-opt{border:1px solid #e2e2e2}
.eps-review{border:1px solid transparent}
.eps-card:hover,.eps-review:hover,.eps-quiz-opt:hover,.eps-quiz:hover{
  border-color:var(--accent);
  box-shadow:0 0 20px rgba(249,174,64,.35), 0 22px 48px -12px rgba(249,174,64,.75);
  transform:translateY(-4px)}

/* карточка статьи поднимается и подрастает ЦЕЛИКОМ, а не только её нижняя часть */
.eps-post{position:relative;transition:transform .4s cubic-bezier(.2,.75,.3,1),box-shadow .4s ease;will-change:transform}
.eps-post:hover{
  transform:translateY(-6px) scale(1.035);
  z-index:5;
  box-shadow:0 0 20px rgba(249,174,64,.35), 0 26px 52px -14px rgba(249,174,64,.7)}
.eps-post:hover .eps-post-body{
  border-color:var(--accent);
  box-shadow:0 0 0 rgba(0,0,0,0);
  transform:none}
.eps-post:hover .eps-post-thumb img{transform:scale(1.06)}
/* у вариантов квиза подъём не нужен — строки списка не должны прыгать */
.eps-quiz-opt:hover{transform:none;background:#fffaf2}
.eps-quiz-opt.is-selected{border-color:var(--accent);
  box-shadow:0 0 20px rgba(249,174,64,.30), 0 18px 40px -12px rgba(249,174,64,.6)}
@media (hover:none){
  .eps-card:hover,.eps-review:hover,.eps-post:hover{transform:none;box-shadow:none;border-color:#ececec}
  .eps-post:hover .eps-post-body{border-color:#ececec}
}

/* ===== Баннер без полосы: текст держится тенью, кнопки читаются ===== */
.eps-slide p{color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.95), 0 0 30px rgba(0,0,0,.85), 0 1px 3px rgba(0,0,0,.9)}
.eps-slide .eps-slide-title{text-shadow:0 2px 14px rgba(0,0,0,.95), 0 0 34px rgba(0,0,0,.8)}
.eps-slide-inner:hover p{text-shadow:0 1px 8px rgba(0,0,0,.85), 0 0 20px rgba(0,0,0,.7)}
/* «Услуги»: в покое бледная, при наведении яркая */
.eps-slide .eps-btn{background:rgba(249,174,64,.62);color:#fff;transition:background .25s ease,box-shadow .25s ease,transform .25s ease}
.eps-slide .eps-btn:hover{background:var(--accent);color:#1a1a1a;transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(249,174,64,.5)}
/* «Испытания»: в покое как сейчас, при наведении — оранжевая */
.eps-slide .eps-btn-outline{background:rgba(0,0,0,.42);border-color:#fff;color:#fff;backdrop-filter:blur(4px);
  transition:background .25s ease,border-color .25s ease,color .25s ease,transform .25s ease,box-shadow .25s ease}
.eps-slide .eps-btn-outline:hover{background:var(--accent);border-color:var(--accent);color:#1a1a1a;
  transform:translateY(-2px);box-shadow:0 10px 26px rgba(249,174,64,.5)}

/* строка «Итог всегда один…» — без переноса на широком экране */
.eps-nowrap{white-space:nowrap}
@media(max-width:1200px){.eps-nowrap{white-space:normal}}

/* ===== Шапка: бренд слева, меню перед телефоном (как на «Наших контактах») ===== */
@media(min-width:1301px){
  .eps-header .container{max-width:1440px}
  .eps-header-inner{display:flex;align-items:center}
  .eps-brand{white-space:nowrap;margin-right:auto}
  .eps-head-contacts{margin-left:42px}
  .eps-nav a{font-size:15px;padding:10px 14px}
  .eps-brand-name{font-size:25px}
}
@media(min-width:993px) and (max-width:1300px){
  .eps-header-inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px}
  .eps-brand{justify-self:start;white-space:nowrap}
  .eps-nav{justify-self:center}
  .eps-nav a{font-size:13px;padding:9px 8px}
  .eps-head-contacts{justify-self:end;text-align:right}
  .eps-brand-name{font-size:21px}
}

/* ===== Подвал: слева контакты, справа карта на всю высоту ===== */
.eps-footer-grid{display:grid;grid-template-columns:minmax(0,1fr) 40%;gap:48px;align-items:stretch}
.eps-footer-left{display:flex;flex-direction:column}
.eps-footer-left{align-self:stretch;display:flex;flex-direction:column}
.eps-footer-map{display:block;position:relative;overflow:hidden;height:100%;min-height:240px;
  border:1px solid rgba(255,255,255,.16);
  transition:border-color .3s ease,box-shadow .3s ease}
.eps-footer-map img{display:block;width:100%;height:100%;object-fit:cover}
.eps-footer-map-hint{position:absolute;left:0;bottom:0;right:0;padding:9px 14px;
  background:rgba(0,0,0,.68);color:#fff;font-size:13px;letter-spacing:.4px;
  transform:translateY(100%);transition:transform .3s ease}
.eps-footer-map:hover{border-color:var(--accent);box-shadow:0 0 18px rgba(249,174,64,.3), 0 18px 40px -10px rgba(249,174,64,.5)}
.eps-footer-map:hover .eps-footer-map-hint{transform:translateY(0)}
.eps-footer-map:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:900px){
  .eps-footer-grid{grid-template-columns:1fr;gap:24px}
  .eps-footer-map{min-height:200px}
}

@media(max-width:992px){
  .eps-footer-bottom{padding-bottom:76px}
}

/* ===== Контакты: превью карты заполняет карточку целиком, без пустоты снизу ===== */
body.page-id-70 .energo-map-box{overflow:hidden}
body.page-id-70 .energo-map-box img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;display:block}
body.page-id-70 .energo-map-box > *:not(img){position:relative;z-index:3}
body.page-id-70 .energo-map-box > img + *{position:relative;z-index:2}

.eps-navdots{transition:opacity .3s ease}
.eps-call{transition:opacity .3s ease,transform .3s ease}
.eps-navdots.is-hidden{opacity:0;pointer-events:none}
.eps-call.is-hidden{opacity:0;pointer-events:none;transform:translateY(12px)}

/* На странице контактов подвал без дубля контактов — копирайт сразу под описанием */
body.page-id-70 .eps-footer-bottom{margin-top:22px;padding-top:18px}
body.page-id-70 .eps-footer-map{min-height:200px}
body.page-id-70 .eps-footer-grid{grid-template-columns:1fr}

/* ===== Предварительный расчёт стоимости (тёмная секция перед подвалом) ===== */
.eps-calc{background:#101112;color:#e8e8e8;padding:84px 0}
.eps-calc a{color:var(--accent)}
.eps-calc-head{max-width:900px;margin:0 0 48px}
.eps-calc-kicker{display:inline-flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--accent);margin-bottom:20px}
.eps-calc-kicker::before{content:'';width:9px;height:9px;background:var(--accent)}
.eps-calc-head h2{color:#fff;font-size:46px;line-height:1.06;margin:0 0 22px;font-weight:800;
  letter-spacing:-.01em;text-transform:uppercase}
.eps-calc-rule{display:block;width:74px;height:2px;background:var(--accent);margin:0 0 22px}
.eps-calc-head p{margin:0;color:#a6a6a6;font-size:17px;line-height:1.6;max-width:660px}
.eps-calc-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:40px;align-items:start}

/* список услуг */
.eps-calc-picks{display:flex;flex-direction:column;gap:8px}
.eps-pick{display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:14px 16px;border:1px solid rgba(255,255,255,.12);background:#161718;
  transition:border-color .25s ease,background .25s ease}
.eps-pick:hover{border-color:rgba(249,174,64,.55);background:#1a1b1c}
.eps-pick.is-on{border-color:var(--accent);background:#1c1a15}
.eps-pick-main{display:flex;align-items:flex-start;gap:12px;cursor:pointer;flex:1 1 auto;min-width:0}
.eps-pick-check{position:absolute;opacity:0;pointer-events:none}
.eps-pick-box{flex:none;width:20px;height:20px;border:1px solid rgba(255,255,255,.35);margin-top:2px;
  display:grid;place-items:center;transition:border-color .2s,background .2s}
.eps-pick-box svg{width:13px;height:13px;fill:none;stroke:#101112;stroke-width:3;opacity:0;transition:opacity .2s}
.eps-pick.is-on .eps-pick-box{background:var(--accent);border-color:var(--accent)}
.eps-pick.is-on .eps-pick-box svg{opacity:1}
.eps-pick-name{font-size:14px;line-height:1.45;color:#d6d6d6}
.eps-pick.is-on .eps-pick-name{color:#fff}
.eps-pick-side{display:flex;align-items:center;gap:14px;flex:none;margin-left:auto}
.eps-qty{display:flex;align-items:center;border:1px solid rgba(255,255,255,.16);opacity:.35;transition:opacity .2s}
.eps-pick.is-on .eps-qty{opacity:1;border-color:rgba(249,174,64,.5)}
.eps-qty-btn{width:28px;height:30px;background:transparent;border:0;color:#cfcfcf;font-size:16px;line-height:1;cursor:pointer;
  transition:color .2s,background .2s}
.eps-qty-btn:hover{color:var(--accent);background:rgba(249,174,64,.1)}
.eps-qty-input{width:38px;height:30px;background:transparent;border:0;color:#fff;text-align:center;font-size:13px;
  -moz-appearance:textfield}
.eps-qty-input::-webkit-outer-spin-button,
.eps-qty-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* чек — кремовая бумага с наклоном, как отрывной талон */
.eps-receipt-wrap{position:sticky;top:24px}
/* корпус аппарата: чек выходит из щели, а не из чёрного пятна */
.eps-receipt{position:relative;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
/* верхняя панель принтера */
.eps-receipt-bar{position:relative;z-index:2;display:flex;align-items:center;gap:6px;
  background:#0a0a0a;color:#e9e3d2;border:1px solid #2b2b2b;
  padding:10px 12px;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;overflow:hidden;
  box-shadow:0 6px 14px rgba(0,0,0,.55)}
.eps-receipt-bar span{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis}
.eps-receipt-bar b{color:#e07b00;font-weight:700}
.eps-receipt-led{width:6px;height:6px}
/* щель в аппарате */
.eps-receipt::before{content:'';position:absolute;left:14px;right:14px;top:40px;height:5px;
  background:linear-gradient(#000,#1c1c1c);border-bottom:1px solid #3a3a3a;z-index:3;pointer-events:none}
/* лёгкая тень на бумаге у щели — эффект выходящего чека */
.eps-receipt-paper{position:relative;z-index:1;margin-top:7px;transform:rotate(-1.6deg);transform-origin:50% 0;
  box-shadow:0 -8px 14px rgba(0,0,0,.3) inset, 0 14px 26px -14px rgba(0,0,0,.8)}
.eps-receipt-bar span{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis}
.eps-receipt-led{flex:none;width:7px;height:7px;border-radius:50%;background:#5a5a5a}
.eps-receipt-led:first-of-type{background:#e07b00;animation:eps-dot 1.7s ease-out infinite}
.eps-receipt-paper{position:relative;background:#f3edda;color:#1c1a16;padding:20px 20px 30px}
/* нижняя перфорация: полукруглые вырезы, как на отрывном чеке */
.eps-receipt-paper::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:9px;z-index:2;
  background-image:radial-gradient(circle at 7px 0, #101112 6.5px, transparent 7px);
  background-size:14px 9px;background-repeat:repeat-x;background-position:0 0;pointer-events:none}
.eps-receipt-org{text-align:center;font-size:16px;letter-spacing:.1em;color:#111;font-weight:700}
.eps-receipt-org-sub{text-align:center;font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:#7a7160;margin-top:5px}
.eps-receipt-meta{display:flex;justify-content:space-between;gap:10px;font-size:10.5px;color:#6f6656;margin-top:9px}
.eps-receipt-title{position:relative;text-align:center;margin:16px 0 12px;font-size:11px;
  letter-spacing:.18em;text-transform:uppercase;color:#1c1a16}
.eps-receipt-title::before,.eps-receipt-title::after{content:'';position:absolute;top:50%;width:26%;height:1px;background:#cfc6b0}
.eps-receipt-title::before{left:0}
.eps-receipt-title::after{right:0}
.eps-receipt-items{padding:6px 0 4px;display:flex;flex-direction:column;gap:9px;min-height:64px;
  border-top:1px dashed #c9c0aa;border-bottom:1px dashed #c9c0aa;margin-bottom:8px;padding-top:12px;padding-bottom:12px}
.eps-receipt-empty{font-size:11.5px;color:#8a8170;line-height:1.6;text-align:center;padding:10px 0}
.eps-rc-item{display:flex;justify-content:space-between;gap:10px;font-size:12px;line-height:1.35;color:#2a271f}
.eps-rc-item .qn{max-width:72%}
.eps-rc-item .qi{display:block;color:#8a8170;font-size:10.5px;margin-top:2px}
.eps-rc-item .qs{white-space:nowrap;color:#111;font-variant-numeric:tabular-nums;font-weight:600}
.eps-receipt-row{display:flex;justify-content:space-between;gap:10px;font-size:11.5px;color:#6f6656;padding:3px 0;
  text-transform:uppercase;letter-spacing:.06em}
.eps-receipt-total{display:flex;justify-content:space-between;align-items:baseline;
  margin-top:10px;padding-top:10px;border-top:1px solid #c9c0aa}
.eps-receipt-total span{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#6f6656}
.eps-receipt-total strong{font-size:25px;color:#1c1a16;font-variant-numeric:tabular-nums}

.eps-receipt-fine{margin:12px 0 0;font-size:10px;line-height:1.55;color:#7d7464}
.eps-receipt-barcode{display:flex;align-items:flex-end;gap:0;height:38px;margin:16px 0 6px;justify-content:center;overflow:hidden}
.eps-receipt-barcode i{background:#111;display:block;height:100%;flex:none}
.eps-receipt-barcode-cap{text-align:center;font-size:9.5px;letter-spacing:.22em;text-transform:uppercase;
  color:#6f6656;padding-bottom:6px}
.eps-receipt-tear{text-align:center;font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:#8a8170;margin-top:6px}
.eps-receipt [hidden]{display:none!important}
.eps-receipt-btn{width:100%;margin-top:26px;justify-content:center}
.eps-receipt-btn[disabled]{opacity:.45;cursor:not-allowed}
.eps-receipt-cut{position:relative;margin-top:14px;text-align:center}
.eps-receipt-cut span{position:relative;font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;color:#5f5f5f;background:#101112;padding:0 12px}
.eps-receipt-cut::before{content:'';position:absolute;left:0;right:0;top:50%;height:1px;
  background:repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 6px, transparent 6px 12px)}

@media(max-width:1024px){
  .eps-receipt-wrap{position:static}
  .eps-receipt{transform:rotate(-.9deg)}
}



/* планшет и телефон: одна колонка, чек под списком */
@media(max-width:1024px){
  .eps-calc{padding:64px 0}
  .eps-calc-grid{grid-template-columns:1fr;gap:28px}
  .eps-calc-head h2{font-size:34px;line-height:1.1}
  .eps-receipt-wrap{position:static}
}

/* мобильный вид расчёта: строки друг под другом, количество — отдельной строкой */
@media(max-width:640px){
  .eps-calc{padding:52px 0}
  .eps-calc-head h2{font-size:25px;line-height:1.12;margin-bottom:16px}
  .eps-calc-head{margin-bottom:26px}
  .eps-calc-head p{font-size:15px}
  .eps-calc-rule{width:54px;margin-bottom:16px}
  .eps-pick{flex-direction:column;align-items:stretch;gap:10px;padding:13px 14px}
  .eps-pick-main{width:100%}
  .eps-pick-name{font-size:13px;line-height:1.4}
  .eps-pick-side{width:100%;margin-left:0;justify-content:space-between;gap:10px}
  .eps-qty{margin-left:auto}
  .eps-qty-btn{width:32px;height:32px;font-size:17px}
  .eps-qty-input{width:44px;height:32px;font-size:14px}
  .eps-receipt{transform:rotate(-.7deg)}
  .eps-receipt-paper{padding:16px 15px 22px}
  .eps-receipt-org{font-size:14px}
  .eps-receipt-total strong{font-size:22px}
}


/* блок расчёта внутри модалки заявки */
.eps-modal__calc{margin:4px 0 16px;background:#f7f4ea;border:1px solid #e0d8c4;padding:14px 14px 12px}
.eps-modal__calc-head{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#8a7f68;margin-bottom:8px}
.eps-modal__calc-items{display:flex;flex-direction:column;gap:7px;max-height:180px;overflow:auto}
.eps-mc-item{display:flex;justify-content:space-between;gap:12px;font-size:12.5px;line-height:1.35;color:#2b281f}
.eps-mc-item span{flex:1 1 auto;min-width:0;max-width:78%;overflow-wrap:anywhere}
.eps-mc-item i{display:block;font-style:normal;font-size:11px;color:#8a7f68;margin-top:2px}
.eps-mc-item b{flex:none;white-space:nowrap;font-variant-numeric:tabular-nums}
.eps-modal__calc-total{display:flex;justify-content:space-between;align-items:baseline;
  margin-top:10px;padding-top:10px;border-top:1px solid #ddd4bd}
.eps-modal__calc-total span{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#8a7f68}
.eps-modal__calc-total strong{font-size:21px;color:#1c1a16;font-variant-numeric:tabular-nums}
.eps-modal__calc-note{margin:8px 0 0;font-size:10.5px;line-height:1.45;color:#8a7f68}



/* чек уже — чтобы читался как кассовая лента, а не блокнот */
.eps-receipt{max-width:340px;margin-left:auto;margin-right:auto}
.eps-receipt-btn{display:flex;width:min(340px,100%)!important;max-width:340px;margin-left:auto;margin-right:auto}
.eps-receipt-phone,.eps-receipt-cut{max-width:340px;margin-left:auto;margin-right:auto}
.eps-receipt-cut{margin-top:14px}

/* мигающая точка над чеком */
@keyframes eps-dot{
  0%{box-shadow:0 0 0 0 rgba(249,174,64,.6);opacity:1}
  60%{box-shadow:0 0 0 9px rgba(249,174,64,0);opacity:.45}
  100%{box-shadow:0 0 0 0 rgba(249,174,64,0);opacity:1}
}
@media (prefers-reduced-motion: reduce){
  .eps-receipt-led:first-of-type{animation:none}
}
/* телефон под кнопкой расчёта */
.eps-receipt-phone{margin:12px 0 0;text-align:center;font-size:13px;color:#9a9a9a}
.eps-receipt-phone a{color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.35);
  padding-bottom:1px;transition:color .2s,border-color .2s}
.eps-receipt-phone a:hover{color:var(--accent);border-color:var(--accent)}


/* модалка заявки на телефоне: всё влезает по ширине, длинные названия переносятся */
@media(max-width:520px){
  .eps-modal{padding:12px}
  .eps-modal__box{max-width:100%;padding:28px 16px 20px}
  .eps-modal__head{font-size:19px;line-height:1.25;padding-right:24px}
  .eps-modal__text{font-size:13px;margin-bottom:14px}
  .eps-modal__calc{padding:12px 12px 10px}
  .eps-modal__calc-items{max-height:200px}
  .eps-mc-item{font-size:12px;gap:8px}
  .eps-mc-item i{font-size:10.5px}
  .eps-modal__calc-total strong{font-size:19px}
  .eps-modal__calc-note{font-size:10px}
}

/* ===== Бегущая строка под баннерами ===== */
.ep-ticker{background:#f39c12;overflow:hidden;border-block:1px solid #1a1a1a}
.ep-ticker .ep-track{display:flex;width:max-content;animation:ep-tick 26s linear infinite}
.ep-ticker .ep-chunk{display:flex;align-items:center;gap:28px;padding:11px 14px;flex:none}
.ep-ticker .ep-chunk span{font-size:15px;font-weight:700;letter-spacing:.06em;color:#1a1a1a;text-transform:uppercase;white-space:nowrap}
.ep-ticker .ep-sep{width:8px;height:8px;background:#1a1a1a;transform:rotate(45deg);flex:none}
.ep-ticker:hover .ep-track{animation-play-state:paused}
@keyframes ep-tick{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.ep-ticker .ep-track{animation:none!important}}
@media(max-width:640px){
  .ep-ticker .ep-chunk span{font-size:13px}
  .ep-ticker .ep-chunk{gap:18px;padding:9px 12px}
}

/* ===== Единый стиль: прямые углы везде, кроме кругов ===== */
/* сетка новостей (/novosti/) — карточки как на главной, с подъёмом при наведении */
.eps-news-item{
  border-radius:0!important;
  transition:transform .4s cubic-bezier(.2,.75,.3,1),box-shadow .4s ease;
  will-change:transform;
}
.eps-news-item:hover{
  transform:translateY(-4px);
  box-shadow:0 0 20px rgba(249,174,64,.35),0 22px 48px -12px rgba(249,174,64,.75)!important;
}
.eps-news-item img{border-radius:0!important;display:block}
/* бейдж категории на карточках новостей — как на главной: плашка, при наведении оранжевая */
.eps-news-item .eps-category{
  border-radius:0!important;
  background:#f0f0f0!important;color:#555!important;
  border:1px solid #e2e2e2!important;
  font-size:11px!important;font-weight:600!important;
  letter-spacing:.8px!important;text-transform:uppercase!important;
  padding:5px 11px!important;margin:0 4px 0 0!important;
  transition:background .25s ease,color .25s ease,border-color .25s ease!important;
}
.eps-news-item .eps-category:hover,
.eps-news-item .eps-category:focus-visible{
  background:#f9ae40!important;border-color:#f9ae40!important;color:#1a1a1a!important;
}
.eps-news-item .eps-read-more{
  border-radius:0!important;background:#f9ae40!important;
  transition:background .25s ease,transform .25s ease!important;
}
.eps-news-item .eps-read-more:hover{background:#e8952c!important}
@media (hover:none){
  .eps-news-item:hover{transform:none;box-shadow:0 2px 8px rgba(0,0,0,.08)!important}
}

/* кнопки и картинки в тексте страниц и записей */
.entry-content img,.eps-page-content img,.eps-content img{border-radius:0!important}
.entry-content a[style*="border-radius"],
.entry-content div[style*="border-radius"]{border-radius:0!important}
.wp-block-button__link,.wp-block-button a{border-radius:0!important}

/* остатки скруглений: кнопка «Читать другие статьи» и кнопки «Поделиться» Яндекса */
.eps-read-other-btn,.ya-share2__badge,.ya-share2__icon,.ya-share2__item{border-radius:0!important}
.eps-read-other-btn{background:#f9ae40!important;transition:background .25s ease}
.eps-read-other-btn:hover{background:#e8952c!important}

/* canvas молнии в секции «РАЗДЕЛ · РЕАЛЬНОСТЬ» */
.eps-lightning{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
#gallery .container{position:relative;z-index:1}

/* информер Яндекс.Метрики в подвале */
.eps-footer-bottom a[href*="metrika.yandex.ru"]{display:inline-block;margin-top:12px;line-height:0}
.eps-footer-bottom a[href*="metrika.yandex.ru"] img{display:block;border:0}

/* ===== «Испытания»: картинки обтекаются текстом (текст справа, под картинкой — на всю ширину) ===== */
body.page-id-1767 .eps-entry img.alignnone{
  float:left;
  display:block;
  margin:6px 26px 12px 0;
  max-width:40%;
  height:auto;
}
body.page-id-1767 .eps-entry p{
  overflow-wrap:break-word;
}
/* блоки после абзаца с картинкой не должны заезжать под неё */
body.page-id-1767 .eps-entry > div{
  clear:both;
}

/* «Образцы протоколов»: та же логика обтекания, что на «Испытаниях» */
body.page-id-1820 .eps-entry img.alignnone{
  float:left;
  display:block;
  margin:6px 26px 12px 0;
  max-width:40%;
  height:auto;
}
body.page-id-1820 .eps-entry > div{clear:both;}
