/* Elegance — слой ea-inner2: останалите вътрешни страници (списъци, цени, решения, за нас, контакти,
   консултация, тест, ваучери, преди/след, Академия, статии, правни страници).
   Зарежда се след ea-proc.css (където го има) и стъпва на същия език: body.epx2 + body.epx-<тип>.
   Без JS всичко е видимо; анимациите са само transform/opacity и спират при „намалено движение“. */

body.epx2{
	--e2-gold:linear-gradient(100deg,#8A5C2A 0%,#A8783C 30%,#C8975A 58%,#B48448 78%,#946232 100%);
	--e2-rule:#E6D9C1;
	--e2-copper:#9A6A32;
	--e2-ink:#202020;
	--e2-soft:#5E5852;
	--e2-cream:#FBF6EF;
	--e2-ease:cubic-bezier(.2,.7,.2,1);
	--e2-shadow:0 34px 60px -38px rgba(80,55,20,.42),0 12px 26px -18px rgba(80,55,20,.18);
}

/* ================= 0. Общо: херо с по-дълги заглавия, глави на секциите ================= */
@media (min-width:900px){
	body.epx2.epx .ep-hero h1{max-width:15ch!important;font-size:clamp(2.6rem,1.2rem + 3.2vw,4.6rem)!important}
	body.epx2.epx .ep-hero .is-style-ea-lead{max-width:50ch}
}
/* Голи h2 в секция (напр. цените) — като главите на началната: къса златна линия отгоре */
body.epx2.epx .wp-block-post-content>.alignfull>h2.wp-block-heading:not(.has-text-align-center){position:relative;padding-top:24px}
body.epx2.epx .wp-block-post-content>.alignfull>h2.wp-block-heading:not(.has-text-align-center)::before{content:"";position:absolute;left:0;top:0;width:46px;height:1px;background:var(--e2-gold)}
body.epx2 .wp-block-post-content a:focus-visible{outline:2px solid #C8975A;outline-offset:3px}

/* ================= 1. Карти-връзки (процедури, решения, свързани) ================= */
body.epx2 .ep-link b{align-self:flex-start;background-image:linear-gradient(#E8C58E,#E8C58E);background-repeat:no-repeat;background-position:0 100%;background-size:0 1px;padding-bottom:4px;transition:background-size .6s var(--e2-ease)}
body.epx2 .ep-link:is(:hover,:focus-visible) b{background-size:100% 1px}
body.epx2 .ep-link:focus-visible{outline:2px solid #C8975A;outline-offset:4px}
@media (min-width:900px){
	body.epx2:not(.epx-acad) .ep-link::after{opacity:.92!important;transform:scale(.86)!important;transition:transform .5s var(--e2-ease),opacity .4s ease!important}
	body.epx2:not(.epx-acad) .ep-link:is(:hover,:focus-visible)::after{opacity:1!important;transform:scale(1) rotate(45deg)!important}
}
@media (max-width:899.98px){
	body.epx2:not(.epx-acad) .ep-link::after{opacity:.92!important;transform:scale(.8)!important}
}

/* ================= 2. Табове-котви (процедури, цени) + закачената лента ================= */
body.epx2 .ep-tabs a{min-height:44px;display:inline-flex!important;align-items:center;background:rgba(255,255,255,.7)}
body.epx2 .ep-tabs a.is-on{background:#202020!important;border-color:#202020!important;color:#FCF7EE!important}
body.epx2 .epx-tabs-slot{display:flow-root;max-width:1280px;margin-left:auto!important;margin-right:auto!important;width:100%}
body.epx-prices .epx-tabs-slot{max-width:1080px}
body.epx2 .wp-block-post-content [id]{scroll-margin-top:170px}
@media (min-width:900px){
	body.epx2 .ep-tabs.is-pin{position:fixed;z-index:40;top:var(--e2-pin,96px);left:50%;width:auto;max-width:calc(100vw - 40px);margin:0!important;padding:6px!important;gap:4px!important;border:1px solid rgba(230,217,193,.9)!important;border-radius:999px;background:rgba(252,247,238,.88);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 22px 44px -28px rgba(60,40,15,.45);transform:translate(-50%,-12px);opacity:0;visibility:hidden;pointer-events:none;transition:transform .45s var(--e2-ease),opacity .35s ease,visibility 0s linear .45s}
	body.epx2 .ep-tabs.is-pin.is-show{transform:translate(-50%,0);opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s}
	body.epx2 .ep-tabs.is-pin a{border-color:transparent!important;background:transparent}
	body.epx2 .ep-tabs.is-pin a:hover{background:#202020!important;color:#FCF7EE!important}
	body.epx2 .ep-tabs.is-pin a.is-on{background:#202020!important;color:#FCF7EE!important}
}

/* ================= 3. Цени ================= */
body.epx-prices .ep-prices{display:grid;gap:clamp(18px,2vw,26px)}
body.epx-prices .ep-prices__g{padding:clamp(26px,3.4vw,48px)!important}
body.epx-prices .ep-prices__g h3{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px;font-size:clamp(1.7rem,1.3rem + 1vw,2.3rem)!important;line-height:1.1}
body.epx-prices .ep-prices__g h3 small{font-family:"Montserrat",sans-serif;font-size:.68rem!important;font-weight:600;letter-spacing:.2em;text-transform:uppercase}
body.epx-prices .ep-prices li{min-height:56px}
body.epx-prices .ep-note{max-width:1080px;margin-left:auto!important;margin-right:auto!important;padding-left:18px;border-left:1px solid #C8975A}

/* ================= 4. Академия: редакционни карти ================= */
body.epx-acad .ep-links{grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr))!important}
body.epx-acad .ep-link{display:flex!important;flex-direction:column;justify-content:flex-start!important;min-height:0!important;padding:0!important;background:#FBF7F1;border:1px solid #F0E7DA;box-shadow:none;overflow:hidden}
body.epx-acad .ep-link::before{display:none!important}
body.epx-acad .ep-link img{position:relative!important;inset:auto!important;z-index:0!important;width:100%!important;height:auto!important;aspect-ratio:5/4;object-fit:cover;flex:none}
body.epx-acad .ep-link small{position:absolute;left:14px;top:14px;z-index:2;margin:0!important;padding:12px 7px!important;writing-mode:vertical-rl;transform:rotate(180deg);font-size:.6rem!important;line-height:1!important;letter-spacing:.22em!important;background:rgba(255,255,255,.9)!important;border:1px solid rgba(255,255,255,.7)!important;color:var(--e2-copper)!important}
body.epx-acad .ep-link b{margin:clamp(20px,2vw,26px) clamp(20px,2vw,26px) 0;color:var(--e2-ink)!important;font-weight:600!important;font-size:clamp(1.4rem,1.15rem + .6vw,1.75rem)!important;line-height:1.12;background-image:linear-gradient(#C8975A,#C8975A)}
body.epx-acad .ep-link span{margin:10px clamp(20px,2vw,26px) 0;color:#6a645d!important;font-size:.86rem;line-height:1.6}
body.epx-acad .ep-link::after{content:"Прочетете статията"!important;position:static!important;display:flex!important;align-items:center;justify-content:space-between;width:auto!important;height:auto!important;min-height:48px;margin:auto clamp(20px,2vw,26px) 0;padding:18px 26px 18px 0!important;border-radius:0!important;border-top:1px solid #EDE2D0;background:url(../img/arrow-ne.svg) right center/16px no-repeat!important;box-shadow:none!important;opacity:1!important;transform:none!important;font-family:"Montserrat",sans-serif;font-size:.78rem;font-weight:600;letter-spacing:.06em;color:var(--e2-ink);text-decoration:underline;text-decoration-color:#C8975A;text-underline-offset:5px;text-decoration-thickness:1px}
body.epx-acad .ep-link>span{flex:none}
body.epx-acad .ep-link:hover{border-color:#E6D5B8}

/* ================= 5. Форми (контакти, консултация, ваучери): тънки линии, златен фокус ================= */
body.epx2 .ep-form{background:#fff!important;border-radius:28px!important;padding:clamp(26px,4vw,56px)!important}
body.epx2 .ep-form__foot{border-top:1px solid var(--e2-rule);padding-top:clamp(20px,2.4vw,28px);margin-top:clamp(18px,2vw,26px)}
body.epx2 .ep-form__foot small{color:#7a726a}
body.epx2 .ep-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){min-height:48px;border:0!important;border-bottom:1px solid var(--e2-rule)!important;border-radius:0!important;background-color:transparent!important;padding:12px 2px!important;box-shadow:none!important;font-size:1rem;color:var(--e2-ink);transition:border-color .3s ease,box-shadow .3s ease}
body.epx2 .ep-form textarea{min-height:120px;resize:vertical}
body.epx2 .ep-form :is(input,textarea)::placeholder{color:#a39a90}
body.epx2 .ep-form :is(input:not([type=checkbox]):not([type=radio]),select,textarea):hover{border-bottom-color:#D2BC94!important}
body.epx2 .ep-form :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus{outline:0;border-bottom-color:#C8975A!important;box-shadow:0 2px 0 0 #C8975A!important}
body.epx2 .ep-form :is(input[type=checkbox],input[type=radio]):focus-visible{outline:2px solid #C8975A;outline-offset:3px}
body.epx2 .ep-form__grid>div>label:first-child{font-family:"Montserrat",sans-serif;font-size:.66rem!important;font-weight:600!important;letter-spacing:.2em!important;text-transform:uppercase;color:var(--e2-copper)!important;transition:color .3s ease}
body.epx2 .ep-form__grid>div:focus-within>label:first-child{color:#202020!important}
body.epx2 .ep-form .eah__btn{min-height:52px;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;transition:background .35s ease,box-shadow .35s ease,transform .35s var(--e2-ease)!important}
body.epx2 .ep-form .eah__btn:hover{background:linear-gradient(100deg,#8A5C2A 0%,#A8783C 40%,#946232 100%)!important;color:#fff!important;transform:translateY(-2px)}
body.epx2 .ep-form .eah__btn:focus-visible{outline:2px solid #C8975A;outline-offset:3px}
body.epx2 .ep-form__chips label,body.epx2 .ep-zone label{min-height:44px;display:inline-flex;align-items:center}
body.epx2 .wp-block-post-content>.alignfull>.ep-form{max-width:880px!important;margin-left:auto!important;margin-right:auto!important}

/* ================= 6. Контакти: карти + карта един до друг ================= */
body.epx-contact .ep-contact>div{border-radius:28px!important;padding:clamp(24px,2.4vw,34px)!important;position:relative}
body.epx-contact .ep-contact b{font-family:"Advent Pro",sans-serif;font-weight:300!important;font-size:clamp(1.6rem,1.3rem + .8vw,2.1rem)!important;line-height:1.1;color:var(--e2-ink)!important}
body.epx-contact .ep-contact p{color:var(--e2-soft)}
body.epx-contact .ep-contact a{color:var(--e2-ink);text-decoration:underline;text-decoration-color:#C8975A;text-underline-offset:4px}
body.epx-contact .ep-map{border-radius:28px!important;overflow:hidden}
body.epx-contact .ep-map__btn{min-height:44px}
body.epx-contact .ep-map__btn:focus-visible{outline:2px solid #C8975A;outline-offset:-6px}
@media (min-width:1000px){
	body.epx-contact .wp-block-post-content>.alignfull:has(>.ep-contact):has(>.ep-map){display:grid!important;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(22px,2.6vw,36px);row-gap:20px;align-items:stretch;padding-left:max(20px,calc((100% - 1280px)/2))!important;padding-right:max(20px,calc((100% - 1280px)/2))!important}
	body.epx-contact .wp-block-post-content>.alignfull:has(>.ep-contact)>*{max-width:none!important;margin:0!important;grid-column:1/-1}
	body.epx-contact .wp-block-post-content>.alignfull:has(>.ep-contact)>.ep-contact{grid-column:1;display:grid!important;grid-template-columns:1fr!important}
	body.epx-contact .wp-block-post-content>.alignfull:has(>.ep-contact)>.ep-map{grid-column:2;min-height:100%;aspect-ratio:auto!important;height:auto!important}
	body.epx-contact .wp-block-post-content>.alignfull:has(>.ep-contact)>.ep-map>*{height:100%;min-height:420px}
}

/* ================= 7. Тест „Коя процедура е за мен?“ ================= */
body.epx-quiz .ep-quiz{background:#fff!important;padding:clamp(26px,4vw,60px)!important;max-width:980px!important;margin-left:auto!important;margin-right:auto!important}
body.epx-quiz .ep-quiz__bar{height:2px!important;background:var(--e2-rule)!important;border-radius:2px;overflow:hidden}
body.epx-quiz .ep-quiz__n{font-size:.68rem!important;font-weight:600!important;letter-spacing:.22em!important;text-transform:uppercase;color:var(--e2-copper)!important}
body.epx-quiz .ep-quiz h3{font-family:"Advent Pro",sans-serif;font-weight:200!important;font-size:clamp(2rem,1.4rem + 2vw,3.2rem)!important;line-height:1.05}
body.epx-quiz .ep-quiz__opts{gap:12px!important}
body.epx-quiz .ep-quiz__opts button{min-height:56px;border-radius:999px!important;border:1px solid var(--e2-rule)!important;background:#FBF8F3!important;color:var(--e2-ink)!important;transition:background .3s ease,border-color .3s ease,color .3s ease,transform .35s var(--e2-ease)}
body.epx-quiz .ep-quiz__opts button:hover{border-color:#C8975A!important;background:#fff!important;transform:translateY(-2px)}
body.epx-quiz .ep-quiz button{min-height:44px}
body.epx-quiz .ep-quiz button:focus-visible{outline:2px solid #C8975A;outline-offset:3px}
body.epx-quiz .ep-quiz__recs a{border-radius:28px!important}
body.epx-quiz .alignfull:has(>.ep-quiz)>.ep-note{max-width:980px;margin-left:auto!important;margin-right:auto!important;text-align:center}

/* ================= 8. Ваучери: по-големи карти като истински ваучер ================= */
@media (min-width:900px){
	body.epx-voucher .ep-vouchers{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:1080px;margin-left:auto!important;margin-right:auto!important;gap:clamp(20px,2.4vw,32px)!important}
	body.epx-voucher .ep-voucher{aspect-ratio:1.75/1!important;padding:clamp(30px,3vw,44px)!important}
	body.epx-voucher .ep-voucher b{font-size:clamp(2rem,1.4rem + 1.4vw,2.8rem)!important}
	body.epx-voucher .ep-voucher strong{font-size:clamp(2rem,1.5rem + 1.2vw,2.8rem)!important}
}
body.epx-voucher .ep-voucher{border-radius:28px!important;box-shadow:0 30px 60px -44px rgba(80,55,20,.5)}
body.epx-voucher .ep-voucher::before{inset:12px!important;border-radius:20px!important;border-style:dashed!important}
body.epx-voucher .ep-voucher small{font-size:.62rem!important;font-weight:600!important;letter-spacing:.24em!important;text-transform:uppercase;color:var(--e2-copper)!important}
body.epx-voucher .ep-voucher b{font-family:"Advent Pro",sans-serif;font-weight:300!important;line-height:1.05;color:var(--e2-ink)!important}

/* ================= 9. Преди / след ================= */
body.epx-ba .ep-ba figure{border:0!important;background:#fff;box-shadow:0 40px 70px -46px rgba(80,55,20,.5)!important}
body.epx-ba .ep-ba figcaption{font-family:"Advent Pro",sans-serif;font-size:1.25rem!important;font-weight:300;color:var(--e2-ink)!important;padding:18px 24px!important;border-top:1px solid var(--e2-rule)}
body.epx-ba .ep-ba__disc{max-width:72ch;margin-left:auto!important;margin-right:auto!important;text-align:center}

/* ================= 10. За нас ================= */
body.epx-about .ep-split .wp-block-image img{box-shadow:0 50px 90px -50px rgba(80,55,20,.55)}
body.epx-about .ep-split p{color:#4f4943;line-height:1.85}

/* ================= 11. Статия: херо като на процедурите (текст вляво, снимка-карта вдясно) ================= */
body.epx-post .syn-post-head .wp-block-post-featured-image{border:0!important;border-radius:28px!important}
@media (min-width:1000px){
	body.epx-post .syn-post-head:has(>.wp-block-post-featured-image){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);grid-template-rows:1fr auto auto auto 1fr;column-gap:clamp(40px,5vw,90px);text-align:left;min-height:clamp(560px,calc(100vh - 85px),780px);padding:clamp(28px,3vw,48px) max(20px,calc((100% - 1280px)/2))!important;background:linear-gradient(180deg,#FCF7EE 0%,#F5ECDC 100%)!important;margin-top:0!important}
	body.epx-post .syn-post-head:has(>.wp-block-post-featured-image)::before{display:none}
	body.epx-post .syn-post-head:has(>.wp-block-post-featured-image)>*{grid-column:1;max-width:none!important;margin-left:0!important;margin-right:0!important}
	body.epx-post .syn-post-head>.wp-block-synergy-base-breadcrumbs{grid-row:2}
	body.epx-post .syn-post-head .syn-crumbs{justify-content:flex-start!important}
	body.epx-post .syn-post-head>.wp-block-post-title{grid-row:3;max-width:15ch!important;margin:0 0 28px!important;font-size:clamp(2.6rem,1.2rem + 2.8vw,4.2rem)!important;font-weight:200!important}
	body.epx-post .syn-post-head>.syn-meta{grid-row:4;justify-content:flex-start!important;margin-bottom:0!important}
	body.epx-post .syn-post-head>.wp-block-post-featured-image{grid-column:2;grid-row:1/-1;align-self:stretch;margin:0!important;box-shadow:0 50px 90px -50px rgba(80,55,20,.55)!important}
	body.epx-post .syn-post-head>.wp-block-post-featured-image img{height:100%!important;min-height:480px;aspect-ratio:auto!important;object-position:50% 35%}
}
/* Типография на статията: ~70 знака на ред, снимки и цитати */
body.epx-post .entry-content{max-width:min(72ch,760px)!important}
body.epx-post .entry-content :is(figure.wp-block-image,.wp-block-image) img{border-radius:22px}
body.epx-post .entry-content figcaption{font-size:.8rem;color:#8a8178;text-align:center;margin-top:10px}
body.epx-post .entry-content blockquote{position:relative;padding-left:clamp(28px,4vw,48px)!important}
body.epx-post .entry-content blockquote::before{content:"";position:absolute;left:clamp(14px,2vw,22px);top:26px;bottom:26px;width:1px;background:var(--e2-gold)}
body.epx-post .entry-content h2{scroll-margin-top:140px}

/* ================= 12. Правни и други обикновени страници: само чиста типография ================= */
body.epx-legal .wp-block-post-content{font-size:1.02rem;line-height:1.85;color:#3e3934}
body.epx-legal .wp-block-post-content>:not(.alignfull):not(.alignwide){max-width:min(72ch,760px)!important}
body.epx-legal .wp-block-post-content h2{font-weight:300!important;font-size:clamp(1.8rem,1.4rem + 1.2vw,2.4rem)!important;margin-top:2.4em!important}
body.epx-legal .wp-block-post-content h3{font-weight:500!important;font-size:1.35rem!important;margin-top:1.8em!important}
body.epx-legal .wp-block-post-content a{color:#202020;text-decoration:underline;text-decoration-color:#C8975A;text-underline-offset:4px}

/* ================= 13. Телефон и намалено движение ================= */
@media (max-width:899.98px){
	body.epx-contact .ep-map{min-height:320px}
	body.epx2 .ep-form{padding:24px 20px!important}
	body.epx-prices .ep-prices__g{padding:24px 18px!important}
	body.epx-prices .ep-prices ul{padding-left:0!important;margin-left:0!important}
	body.epx-prices .ep-prices li{padding-left:2px!important;padding-right:2px!important;border-radius:0!important}
}
@media (prefers-reduced-motion:reduce){
	body.epx2 .ep-tabs.is-pin,body.epx2 .ep-link b,body.epx2 .ep-link::after,body.epx-quiz .ep-quiz__opts button,body.epx2 .ep-form .eah__btn{transition:none!important}
	body.epx2 .ep-form .eah__btn:hover,body.epx-quiz .ep-quiz__opts button:hover{transform:none}
}

/* ===== Цени: наслагващи се карти (само компютър; класовете идват от ea-inner2.js) ===== */
body.epx-stack-on .wp-block-post-content > .alignfull:has(.ep-prices){content-visibility:visible!important;contain:none!important;contain-intrinsic-size:none!important;overflow:visible!important}
body.epx-stack-on .ep-prices.epx-stack{display:block!important;max-width:1180px;padding-bottom:clamp(40px,8vh,90px)}
body.epx-stack-on .epx-stack > .ep-prices__g{position:sticky;top:calc(var(--epx-stop,120px) + var(--ci,0) * 16px);display:grid;grid-template-columns:minmax(250px,34%) 1fr;padding:0!important;margin:0 0 clamp(28px,5vh,56px);overflow:hidden;background:#fff;border:1px solid var(--e2-rule)!important;border-radius:30px!important;box-shadow:0 40px 70px -40px rgba(60,40,15,.45),0 14px 28px -20px rgba(60,40,15,.25)!important;transform-origin:50% 0;rotate:calc((1 - var(--ce,1)) * -3deg);translate:0 calc((1 - var(--ce,1)) * 60px);scale:calc(1 - var(--cv,0) * .07);will-change:rotate,translate,scale}
body.epx-stack-on .epx-stack > .ep-prices__g.is-tall{position:relative;top:auto}
body.epx-stack-on .epx-chead{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:28px;padding:clamp(28px,3vw,44px);background:radial-gradient(120% 90% at 0% 0%,#3a2f26 0%,#1b1714 62%);color:#F4ECDF;overflow:hidden}
body.epx-stack-on .epx-chead::before{content:"";position:absolute;right:-90px;bottom:-90px;width:260px;height:260px;border-radius:50%;border:1px solid rgba(232,197,142,.22);box-shadow:0 0 0 30px rgba(232,197,142,.04),0 0 0 62px rgba(232,197,142,.03);pointer-events:none}
body.epx-stack-on .epx-cno{font-family:"Advent Pro",sans-serif;font-weight:200;font-size:clamp(3.6rem,5vw,5.4rem);line-height:.85;background:linear-gradient(100deg,#C8975A,#F3DDB0 45%,#B48448);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
body.epx-stack-on .epx-chead h3{position:relative;margin:0!important;padding:0!important;border:0!important;display:flex!important;flex-direction:column;align-items:flex-start!important;gap:12px!important;color:#fff!important;font-weight:300!important;font-size:clamp(1.7rem,1.2rem + 1.1vw,2.4rem)!important;line-height:1.08}
body.epx-stack-on .epx-chead h3 small{color:#E8C58E!important;-webkit-text-fill-color:#E8C58E}
body.epx-stack-on .epx-cbody{padding:clamp(18px,2.4vw,34px) clamp(24px,3vw,44px);align-self:center}
body.epx-stack-on .epx-cbody > :first-child{margin-top:0}
body.epx-stack-on .epx-stack > .ep-prices__g::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;border-radius:inherit;background:#1b1714;opacity:calc(var(--cv,0) * .35)}
