/* Elegance — шаблон за страниците на процедурите (ea-proc).
   Зарежда се САМО на страниците от ea_nav_procedures() (body.epx), след ea-light.css и ea-inner.css.
   Езикът е този на началната: голямо херо със снимка, номерирани секции, тънко + дебело злато,
   заоблени карти, тънки линии. Без JS всичко е видимо; скритите начални състояния са само под html.epx-anim. */

body.epx{
	--epx-gold:linear-gradient(100deg,#8A5C2A 0%,#A8783C 30%,#C8975A 58%,#B48448 78%,#946232 100%);
	--epx-teal:linear-gradient(100deg,#2E7F93 0%,#45B8CB 55%,#2C8DA2 100%);
	--epx-copper:#9A6A32;
	--epx-rule:#E6D9C1;
	--epx-ink:#202020;
	--epx-soft:#5E5852;
	--epx-cream:#FBF6EF;
	--epx-ease:cubic-bezier(.2,.7,.2,1);
	--epx-top:120px;
}

/* ================= 1. Херо: голяма снимка-карта ================= */
body.epx .ep-hero{background:radial-gradient(60% 80% at 0% 0%,rgba(236,222,193,.55),transparent 70%),linear-gradient(180deg,#FCF7EE 0%,#F5ECDC 100%)!important}
body.epx .ep-hero::before,body.epx .ep-hero::after{display:none!important}
body.epx .ep-hero h1{font-weight:200!important}
body.epx .ep-hero .is-style-ea-lead{color:#4f4943}

/* Бутоните в херото: „Запази час“ — графит със златен ринг, „Безплатна консултация“ — беж */
body.epx .ep-hero .wp-block-button__link{min-height:48px;display:inline-flex!important;align-items:center;justify-content:center}
body.epx .ep-hero .wp-block-button__link[href^="/zapazi-chas/"]{background:linear-gradient(100deg,#2a2420,#1b1714)!important;color:#F4ECDF!important;border:0!important;box-shadow:inset 0 0 0 1px rgba(200,151,90,.6),0 16px 28px -18px rgba(60,40,15,.75)!important}
body.epx .ep-hero .wp-block-button__link[href^="/zapazi-chas/"]:hover{background:linear-gradient(100deg,#8A5C2A 0%,#A8783C 40%,#946232 100%)!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(200,151,90,0),0 18px 30px -16px rgba(138,92,42,.8)!important}
body.epx .ep-hero .wp-block-button__link[href^="/konsultaciya/"]{background:#ECDEC1!important;color:#202020!important;border:0!important}
body.epx .ep-hero .wp-block-button__link[href^="/konsultaciya/"]:hover{background:#202020!important;color:#FCF7EE!important}
body.epx .wp-block-post-content .wp-block-button__link:focus-visible{outline:2px solid #C8975A!important;outline-offset:3px}

/* Снимката: голяма заоблена карта */
body.epx .ep-heroimg::before{display:none!important}
body.epx .ep-heroimg__arch{border:0!important;border-radius:28px!important;clip-path:none!important}
body.epx .ep-heroimg__arch::after{background:linear-gradient(180deg,rgba(20,16,12,0) 55%,rgba(20,16,12,.28))!important}
body.epx .ep-heroimg .eh-chip{animation:none!important}

@media (min-width:900px){
	body.epx .ep-hero{min-height:clamp(620px,calc(100vh - 85px),880px);display:flex!important;align-items:center;padding-top:clamp(40px,4vw,72px)!important;padding-bottom:clamp(40px,4vw,72px)!important}
	body.epx .ep-hero h1{font-size:clamp(2.8rem,1.4rem + 3.6vw,5rem)!important}
	body.epx .ep-hero .wp-block-buttons{gap:10px 12px!important}
	body.epx .ep-hero .wp-block-button__link{padding:15px 24px!important}
	body.epx .ep-hero>.wp-block-columns{position:static!important;flex-wrap:nowrap!important}
	body.epx .ep-hero>.wp-block-columns>.wp-block-column:first-child{flex:0 1 auto!important;width:100%;max-width:calc(55vw - 72px - max(40px,(100vw - 1280px)/2));position:relative;z-index:2}
	body.epx .ep-hero>.wp-block-columns>.wp-block-column:last-child{position:absolute!important;top:18px;right:18px;bottom:18px;width:45vw;flex:none!important;margin:0!important;align-self:stretch!important;justify-self:stretch!important;border-radius:28px;overflow:hidden;box-shadow:0 50px 90px -50px rgba(80,55,20,.55)}
	body.epx .ep-heroimg{position:absolute!important;inset:0;max-width:none!important;width:auto!important;aspect-ratio:auto!important;margin:0!important}
	body.epx .ep-heroimg__arch{position:absolute!important;inset:0!important;box-shadow:none!important}
	body.epx .ep-heroimg__arch img{width:100%!important;height:100%!important;object-fit:cover;object-position:50% 35%}
	body.epx .ep-heroimg .eh-chip{left:28px!important;right:auto!important;top:auto!important;bottom:28px!important;max-width:min(320px,80%)}
	body.epx .ep-hero h1{max-width:12ch!important}
}
@media (max-width:899.98px){
	body.epx .ep-hero>.wp-block-columns{flex-wrap:wrap!important}
	body.epx .ep-hero>.wp-block-columns>.wp-block-column{flex-basis:100%!important}
	body.epx .ep-heroimg{max-width:none!important;width:100%;aspect-ratio:4/4.4!important;margin:.6rem 0 0!important}
	body.epx .ep-heroimg__arch{box-shadow:0 40px 70px -46px rgba(80,55,20,.6)!important}
	body.epx .ep-heroimg .eh-chip{left:16px!important;right:auto!important;bottom:16px!important;top:auto!important;max-width:calc(100% - 32px)}
}

/* Вход на херото (само с JS и без „намалено движение“): картата се отваря отдясно */
html.epx-anim body.epx .ep-hero>.wp-block-columns>.wp-block-column:last-child{clip-path:inset(0 0 0 100% round 28px);transition:clip-path 1.5s cubic-bezier(.77,0,.18,1) .1s}
html.epx-anim body.epx .ep-hero.epx-in>.wp-block-columns>.wp-block-column:last-child{clip-path:inset(0 0 0 0 round 28px)}

/* ================= 2. Секции: редуване бяло / крем, големи тънки номера ================= */
body.epx .wp-block-post-content{counter-reset:epx}
body.epx .wp-block-post-content>.alignfull:not(.ep-hero):not(.ep-cta){position:relative;counter-increment:epx;padding-top:clamp(96px,10vw,170px)!important;padding-bottom:clamp(84px,9vw,150px)!important;background-image:none!important}
body.epx .wp-block-post-content>.alignfull:not(.ep-hero):not(.ep-cta):nth-child(even){background:#fff!important}
body.epx .wp-block-post-content>.alignfull:not(.ep-hero):not(.ep-cta):nth-child(odd){background:linear-gradient(180deg,#FCF7EE 0%,#F5ECDC 100%)!important}
body.epx .wp-block-post-content>.alignfull:not(.ep-hero):not(.ep-cta)+.alignfull:not(.ep-cta){border-top:1px solid rgba(230,217,193,.6)}
body.epx .wp-block-post-content>.alignfull:not(.ep-hero):not(.ep-cta)::before{content:counter(epx,decimal-leading-zero);position:absolute;top:clamp(14px,2vw,30px);right:max(20px,calc((100% - 1280px)/2));font-family:"Advent Pro",sans-serif;font-weight:100;font-size:clamp(3rem,1.6rem + 4vw,6.2rem);line-height:1;letter-spacing:-.02em;background:var(--epx-gold);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;opacity:.55;pointer-events:none;z-index:0}
body.epx .wp-block-post-content>.alignfull.is-cooltech-sec::before{background:var(--epx-teal);-webkit-background-clip:text;background-clip:text}
body.epx .wp-block-post-content>.alignfull:not(.ep-hero):not(.ep-cta)>*{position:relative;z-index:1}

/* Главите на секциите: надзаглавие + тънко/дебело h2 */
body.epx .eh-head{border-bottom:1px solid var(--epx-rule);padding-bottom:clamp(1.6rem,3vw,2.4rem)}
body.epx .eh-head>p,body.epx .eh-head>.wp-block-paragraph{color:var(--epx-soft)}
body.epx .wp-block-post-content h2{font-weight:200!important}

/* ================= 3. Карти с предимства ================= */
body.epx .ep-feat{border-color:var(--epx-rule)!important;border-radius:28px!important}
body.epx .ep-feat h3{position:relative;padding-top:16px;margin-top:6px}
body.epx .ep-feat h3::before{content:"";position:absolute;left:0;top:0;width:38px;height:1px;background:var(--epx-gold)}
body.epx .is-cooltech-sec .ep-feat h3::before{background:var(--epx-teal)}
body.epx .ep-feat__i{font-size:2.6rem!important;font-weight:200!important;letter-spacing:0!important;line-height:1;background:var(--epx-gold);-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent}
body.epx .is-cooltech-sec .ep-feat__i{background:var(--epx-teal);-webkit-background-clip:text;background-clip:text}

/* ================= 4. Подписният ефект: лепнеща глава + стъпки, които светват ================= */
body.epx .epx-prog{display:none}
@media (min-width:900px){
	body.epx .epx-stk{content-visibility:visible!important;contain:none!important;overflow:visible!important}
	body.epx .epx-stk>.epx-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(40px,6vw,110px);max-width:1280px;margin:0 auto;align-items:start}
	body.epx .epx-stk .eh-head{display:block!important;position:sticky;top:var(--epx-top);margin:0!important;max-width:none!important;border-bottom:0;padding-bottom:0}
	body.epx .epx-stk .eh-head>p{margin-top:1.4rem!important;max-width:44ch}
	body.epx .epx-stk .ep-feats{display:flex!important;flex-direction:column;gap:22px!important;max-width:none!important;margin:0!important}
	body.epx .epx-stk .ep-feat{display:grid!important;grid-template-columns:auto 1fr;column-gap:clamp(22px,2.4vw,36px);row-gap:.5rem;align-content:center;min-height:min(42vh,380px);padding:clamp(30px,3vw,48px)!important}
	body.epx .epx-stk .ep-feat>:first-child{grid-row:1/span 2;align-self:start}
	body.epx .epx-stk .ep-feat>h3,body.epx .epx-stk .ep-feat>p{grid-column:2;margin:0!important}
	body.epx .epx-stk .ep-feat>h3{font-size:clamp(1.6rem,1.2rem + .9vw,2.2rem)!important}
	body.epx .epx-stk .ep-feat__i{font-size:clamp(3.4rem,2.4rem + 2.6vw,5.4rem)!important;font-weight:100!important}
	body.epx .epx-stk .ep-feat>p{font-size:1.02rem;line-height:1.75}
	body.epx .epx-stk .ep-feat:hover{transform:none}
	/* активна / приглушена стъпка — само прозрачност на децата и рамката (картата се движи от GSAP) */
	body.epx .epx-stk.is-live .ep-feat>*{transition:opacity .6s ease}
	body.epx .epx-stk.is-live .ep-feat:not(.is-on)>*{opacity:.34}
	body.epx .epx-stk.is-live .ep-feat.is-on{border-color:#D9C29A!important;box-shadow:0 40px 70px -46px rgba(80,55,20,.5)}
	body.epx .epx-stk.is-live .ep-feat.is-on::after{transform:scaleX(1)}
	body.epx .epx-stk.is-cooltech-sec.is-live .ep-feat.is-on{border-color:rgba(69,184,203,.55)!important}
	/* индикатор: 01 / 04 + вертикална линия */
	body.epx .epx-stk .epx-prog{display:flex;align-items:flex-end;gap:18px;margin-top:clamp(2rem,4vh,3.2rem)}
	body.epx .epx-prog__n{font-family:"Advent Pro",sans-serif;font-weight:100;font-size:clamp(4.4rem,3rem + 3vw,6.6rem);line-height:.8;background:var(--epx-gold);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;min-width:2ch}
	body.epx .is-cooltech-sec .epx-prog__n{background:var(--epx-teal);-webkit-background-clip:text;background-clip:text}
	body.epx .epx-prog__t{font-family:"Advent Pro",sans-serif;font-weight:300;font-size:1.3rem;color:#8a8178;padding-bottom:4px}
	body.epx .epx-prog__bar{position:relative;flex:1;max-width:220px;height:1px;background:var(--epx-rule);margin:0 0 12px 6px;overflow:hidden}
	body.epx .epx-prog__bar i{position:absolute;inset:0;background:var(--epx-gold);transform-origin:0 50%;transform:scaleX(0)}
	body.epx .is-cooltech-sec .epx-prog__bar i{background:var(--epx-teal)}
	body.epx .epx-prog__s{display:block;width:100%;font-size:.7rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--epx-copper);margin-top:14px;transition:opacity .5s ease}
	body.epx .epx-stk.is-moved .epx-prog__s{opacity:0}
	body.epx .epx-stk .epx-prog{flex-wrap:wrap}
}

/* ================= 5. Цени, въпроси, преди/след ================= */
body.epx .ep-prices__g{border-color:var(--epx-rule)!important;border-radius:28px!important;box-shadow:0 30px 60px -50px rgba(80,55,20,.4)!important}
body.epx .ep-prices__g h3{padding-bottom:16px;border-bottom:1px solid var(--epx-rule);font-weight:200!important}
body.epx .ep-prices li{border-bottom:1px solid var(--epx-rule)!important;border-radius:12px;transition:background-color .3s ease}
body.epx .ep-prices li:last-child{border-bottom:0!important}
@media (hover:hover){body.epx .ep-prices li:hover{background-color:var(--epx-cream)}}
body.epx .ep-prices li :is(a,button){min-height:44px;display:inline-flex;align-items:center}
body.epx .eh-faq .wp-block-details{border-radius:20px!important;border-color:var(--epx-rule)!important}
body.epx .eh-faq .wp-block-details summary{min-height:44px}
body.epx .eh-faq .wp-block-details summary:focus-visible{outline:2px solid #C8975A;outline-offset:4px;border-radius:12px}
body.epx .ep-ba figure{border-radius:28px!important}
body.epx .ep-link{border-radius:28px!important}
body.epx .ep-split .wp-block-image img{border-radius:28px!important}

/* ================= 6. Телефон ================= */
@media (max-width:781px){
	body.epx .wp-block-post-content>.alignfull:not(.ep-hero):not(.ep-cta)::before{top:16px;right:20px;opacity:.45}
	body.epx .ep-feat__i{font-size:2.2rem!important}
}

/* Намалено движение: без скрити състояния и без преходи */
@media (prefers-reduced-motion:reduce){
	html.epx-anim body.epx .ep-hero>.wp-block-columns>.wp-block-column:last-child{clip-path:none;transition:none}
	body.epx .epx-stk.is-live .ep-feat:not(.is-on)>*{opacity:1}
}
