/*
Theme Name: EnergoBazis Modern
Theme URI: https://energobazis.kz/
Author: ChatGPT
Description: Современная тема WordPress для ЭнергоБазис: светлый industrial-дизайн, синий/голубой стиль, анимация энергетического тока.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: energobazis-modern
*/

:root{
  --blue:#0057ff;
  --blue2:#2fa8ff;
  --navy:#071b3a;
  --text:#1b2d45;
  --muted:#667792;
  --bg:#ffffff;
  --soft:#f4f8ff;
  --line:#dbe8ff;
  --shadow:0 18px 50px rgba(7,27,58,.10);
  --radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--text);background:#fff;line-height:1.55}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.eb-container{width:min(1560px,calc(100% - 80px));margin:0 auto}
.eb-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);border-bottom:1px solid rgba(219,232,255,.8)}
.eb-header__inner{height:92px;display:flex;align-items:center;gap:32px;justify-content:space-between}
.eb-logo{display:flex;align-items:center;gap:12px;font-weight:900;color:#0b2b5e;letter-spacing:.2px}.eb-logo__mark{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,var(--blue),var(--blue2));display:grid;place-items:center;color:#fff;font-size:28px;box-shadow:0 12px 28px rgba(0,87,255,.22)}.eb-logo__title{font-size:27px;line-height:1}.eb-logo__title span{color:#4aaeff}.eb-logo__sub{font-size:10px;text-transform:uppercase;color:#6d7f96;margin-top:4px;letter-spacing:.45px}
.eb-nav{display:flex;align-items:center;gap:32px;font-weight:700;color:#071b3a;font-size:15px}.eb-nav a{position:relative}.eb-nav a:after{content:"";position:absolute;left:0;right:0;bottom:-33px;height:3px;background:var(--blue);transform:scaleX(0);transition:.25s}.eb-nav a:hover:after,.eb-nav a:first-child:after{transform:scaleX(1)}
.eb-head-actions{display:flex;align-items:center;gap:18px}.eb-phone{font-weight:800;color:#071b3a;font-size:15px}.eb-callback{font-size:13px;color:#0057ff;display:block;text-align:right}.eb-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:none;border-radius:10px;padding:16px 27px;background:#0057ff;color:#fff;font-weight:800;box-shadow:0 14px 28px rgba(0,87,255,.25);transition:.25s;cursor:pointer}.eb-btn:hover{transform:translateY(-2px);box-shadow:0 20px 36px rgba(0,87,255,.32)}.eb-btn--outline{background:#fff;color:#0057ff;border:1px solid rgba(0,87,255,.35);box-shadow:none}.eb-btn--outline:hover{background:#f2f7ff}.eb-mobile{display:none;background:none;border:0;font-size:30px;color:#071b3a}
.eb-hero{position:relative;min-height:640px;overflow:hidden;background:#eef6ff}.eb-hero__bg{position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.86) 25%,rgba(255,255,255,.20) 48%,rgba(255,255,255,0) 100%),url('assets/images/hero-banner.png');background-size:cover;background-position:center right}.eb-hero__circuit{position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 0%,transparent 42%,rgba(92,190,255,.26) 45%,transparent 48%),linear-gradient(165deg,transparent 0%,transparent 66%,rgba(0,87,255,.22) 69%,transparent 73%);opacity:.75}.eb-hero__pulse{position:absolute;inset:0;pointer-events:none;overflow:hidden}.eb-hero__pulse span{position:absolute;height:2px;width:360px;background:linear-gradient(90deg,transparent,rgba(68,190,255,.95),transparent);filter:drop-shadow(0 0 12px #33b7ff);animation:currentFlow 5.5s linear infinite;transform:rotate(-15deg)}.eb-hero__pulse span:nth-child(1){top:170px;right:-180px;animation-delay:0s}.eb-hero__pulse span:nth-child(2){top:260px;right:18%;animation-delay:1.4s;width:260px}.eb-hero__pulse span:nth-child(3){top:435px;right:5%;animation-delay:2.8s;width:310px}.eb-hero__pulse span:nth-child(4){top:120px;left:44%;animation-delay:3.6s;width:220px}@keyframes currentFlow{0%{transform:translateX(-120px) rotate(-15deg);opacity:0}12%{opacity:1}100%{transform:translateX(680px) rotate(-15deg);opacity:0}}
.eb-hero__inner{position:relative;z-index:2;min-height:640px;display:grid;grid-template-columns: minmax(420px,640px) 1fr;align-items:center;gap:40px}.eb-kicker{color:#0057ff;text-transform:uppercase;font-weight:900;font-size:14px;letter-spacing:.05em;margin-bottom:22px}.eb-title{font-size:58px;line-height:1.08;color:#071b3a;margin:0 0 24px;font-weight:950;letter-spacing:-1.8px;text-transform:uppercase}.eb-title span{display:block;color:#0057ff}.eb-lead{font-size:18px;color:#243751;max-width:550px;margin:0 0 34px}.eb-hero__buttons{display:flex;gap:18px;flex-wrap:wrap}.eb-hero__card{justify-self:end;width:250px;background:rgba(255,255,255,.92);border:1px solid rgba(219,232,255,.9);border-radius:18px;padding:20px 24px;box-shadow:var(--shadow);backdrop-filter:blur(12px);animation:floatCard 4.5s ease-in-out infinite}.eb-stat{display:grid;grid-template-columns:45px 1fr;gap:14px;align-items:center;padding:15px 0;border-bottom:1px solid #e8f0ff}.eb-stat:last-child{border-bottom:0}.eb-stat__icon{width:39px;height:39px;border:1px solid rgba(0,87,255,.22);border-radius:12px;display:grid;place-items:center;color:#0057ff;font-size:21px}.eb-stat strong{display:block;font-size:29px;color:#071b3a;line-height:1}.eb-stat span{font-size:13px;color:#44546c}@keyframes floatCard{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.eb-section{padding:78px 0}.eb-section--soft{background:linear-gradient(180deg,#f8fbff,#fff)}.eb-section__head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:32px}.eb-subtitle{font-size:13px;color:#0057ff;text-transform:uppercase;font-weight:900;letter-spacing:.05em}.eb-h2{font-size:34px;line-height:1.18;color:#071b3a;margin:8px 0 0;font-weight:950}.eb-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:22px}.eb-service{background:#fff;border:1px solid #dfeaff;border-radius:16px;padding:28px 23px 22px;min-height:205px;box-shadow:0 10px 30px rgba(7,27,58,.04);transition:.28s;position:relative;overflow:hidden}.eb-service:before{content:"";position:absolute;inset:auto -30px -50px auto;width:120px;height:120px;border-radius:999px;background:rgba(0,87,255,.07);transition:.28s}.eb-service:hover{transform:translateY(-8px);border-color:rgba(0,87,255,.35);box-shadow:0 18px 42px rgba(0,87,255,.12)}.eb-service:hover:before{transform:scale(1.5)}.eb-ico{width:52px;height:52px;border:1px solid rgba(0,87,255,.28);border-radius:14px;display:grid;place-items:center;font-size:28px;color:#0057ff;margin-bottom:18px}.eb-service h3{font-size:17px;line-height:1.22;margin:0 0 13px;color:#071b3a}.eb-service p{font-size:14px;color:#5f7088;margin:0}.eb-arrow{position:absolute;right:20px;bottom:18px;width:32px;height:32px;border-radius:50%;border:1px solid rgba(0,87,255,.35);display:grid;place-items:center;color:#0057ff;font-weight:900}
.eb-why{background:linear-gradient(180deg,#f4f8ff,#ffffff);border:1px solid #e3edff;border-radius:20px;padding:28px 34px;display:grid;grid-template-columns:repeat(5,1fr);gap:22px}.eb-why__item{display:grid;grid-template-columns:60px 1fr;gap:15px;align-items:center;border-right:1px solid #dce8fb}.eb-why__item:last-child{border-right:0}.eb-why__item .eb-ico{margin:0;width:54px;height:54px}.eb-why strong{color:#0057ff;font-size:19px;display:block}.eb-why span{font-size:13px;color:#5f7088}
.eb-projects{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}.eb-project{border:1px solid #dfeaff;border-radius:15px;overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(7,27,58,.05);transition:.25s}.eb-project:hover{transform:translateY(-6px);box-shadow:0 22px 48px rgba(7,27,58,.12)}.eb-project__img{height:165px;background:linear-gradient(135deg,#cbdcf3,#87b5e9);position:relative;overflow:hidden}.eb-project__img:after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent,rgba(0,87,255,.35));}.eb-project:nth-child(1) .eb-project__img{background-image:url('assets/images/hero-banner.png');background-size:cover;background-position:center}.eb-project:nth-child(2) .eb-project__img{background-image:url('assets/images/hero-banner.png');background-size:cover;background-position:right center}.eb-project:nth-child(3) .eb-project__img{background:linear-gradient(135deg,#213a5d,#8fb7e8)}.eb-project:nth-child(4) .eb-project__img{background:linear-gradient(135deg,#9bbbe7,#d4e8ff)}.eb-project__body{padding:18px 18px 20px}.eb-project__tag{display:inline-flex;background:#eef5ff;color:#0057ff;font-weight:800;font-size:12px;border-radius:99px;padding:5px 10px;margin-bottom:9px}.eb-project h3{margin:0;color:#071b3a;font-size:18px;line-height:1.25}.eb-brands{display:flex;align-items:center;gap:52px;overflow:hidden;border-top:1px solid #edf3ff;border-bottom:1px solid #edf3ff;padding:26px 0}.eb-brand-track{display:flex;gap:62px;align-items:center;animation:brandMove 18s linear infinite;white-space:nowrap}.eb-brand{font-size:24px;font-weight:950;color:#1a3150;opacity:.9}.eb-brand:nth-child(odd){color:#0057ff}@keyframes brandMove{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.eb-steps{display:grid;grid-template-columns:repeat(6,1fr);gap:22px;position:relative}.eb-step{text-align:left;position:relative}.eb-step__num{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #dce8ff;color:#0057ff;font-weight:900;margin-bottom:15px;box-shadow:0 10px 28px rgba(0,87,255,.08)}.eb-step h3{font-size:16px;color:#071b3a;margin:0 0 8px}.eb-step p{font-size:13px;color:#63738b;margin:0}
.eb-footer{background:#061833;color:#fff;padding:54px 0 24px;position:relative;overflow:hidden}.eb-footer:before{content:"";position:absolute;right:0;top:0;bottom:0;width:42%;background:radial-gradient(circle at 40% 40%,rgba(47,168,255,.25),transparent 45%)}.eb-footer__grid{position:relative;display:grid;grid-template-columns:1.1fr .8fr 1.2fr;gap:54px}.eb-footer h3{margin:0 0 16px}.eb-footer p,.eb-footer a{color:#c6d4ea}.eb-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.eb-form textarea{grid-column:span 2;min-height:70px}.eb-form input,.eb-form textarea{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);border-radius:9px;color:#fff;padding:13px}.eb-form button{grid-column:span 2}.eb-copy{position:relative;border-top:1px solid rgba(255,255,255,.12);margin-top:40px;padding-top:20px;color:#9fb0c9;font-size:13px}
.reveal{opacity:0;transform:translateY(22px);transition:.7s}.reveal.is-visible{opacity:1;transform:none}
@media(max-width:1180px){.eb-nav{display:none}.eb-mobile{display:block}.eb-grid{grid-template-columns:repeat(3,1fr)}.eb-why{grid-template-columns:repeat(2,1fr)}.eb-why__item{border-right:0}.eb-projects{grid-template-columns:repeat(2,1fr)}.eb-hero__inner{grid-template-columns:1fr}.eb-hero__card{justify-self:start}.eb-title{font-size:48px}}
@media(max-width:760px){.eb-container{width:min(100% - 32px,1560px)}.eb-header__inner{height:76px}.eb-logo__title{font-size:22px}.eb-head-actions{display:none}.eb-hero,.eb-hero__inner{min-height:720px}.eb-hero__bg{background-image:linear-gradient(180deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.88) 46%,rgba(255,255,255,.55) 100%),url('assets/images/hero-banner.png');background-position:center bottom}.eb-title{font-size:34px}.eb-lead{font-size:16px}.eb-hero__card{width:100%;}.eb-grid,.eb-projects,.eb-steps,.eb-footer__grid{grid-template-columns:1fr}.eb-why{grid-template-columns:1fr;padding:24px}.eb-section{padding:54px 0}.eb-section__head{display:block}.eb-form{grid-template-columns:1fr}.eb-form textarea,.eb-form button{grid-column:auto}}


/* === V1.1: closer to approved mockup proportions === */
.eb-container{width:min(1580px,calc(100% - 120px));}
.eb-header__inner{height:86px;}
.eb-logo__mark{width:40px;height:40px;font-size:26px;}
.eb-logo__title{font-size:24px;letter-spacing:.1px;}
.eb-nav{gap:30px;font-size:14px;}
.eb-head-actions .eb-btn{padding:13px 22px;border-radius:7px;font-size:14px;}
.eb-hero{min-height:520px;}
.eb-hero__bg{background-image:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.92) 25%,rgba(255,255,255,.38) 49%,rgba(255,255,255,0) 72%),url('assets/images/hero-banner.png');background-position:center right;}
.eb-hero__inner{min-height:520px;grid-template-columns:minmax(520px,760px) 1fr;gap:55px;}
.eb-kicker{font-size:13px;margin-bottom:16px;}
.eb-title{font-size:48px;line-height:1.12;letter-spacing:-1.1px;max-width:740px;margin-bottom:22px;}
.eb-title span{display:inline;color:#0057ff;}
.eb-lead{font-size:16px;line-height:1.7;max-width:520px;margin-bottom:28px;}
.eb-hero__buttons .eb-btn{min-width:190px;height:54px;padding:0 26px;border-radius:8px;}
.eb-hero__card{width:225px;margin-right:26px;border-radius:16px;padding:16px 21px;}
.eb-stat{grid-template-columns:40px 1fr;padding:14px 0;gap:12px;}
.eb-stat__icon{width:36px;height:36px;font-size:19px;}
.eb-stat strong{font-size:26px;}
.eb-stat span{font-size:12px;}
.eb-section{padding:48px 0;}
.eb-grid{gap:18px;}
.eb-service{min-height:190px;padding:24px 20px 20px;}
@media(max-width:1180px){.eb-title{font-size:44px}.eb-hero__inner{grid-template-columns:1fr}.eb-hero__card{margin-right:0}}
@media(max-width:760px){.eb-container{width:min(100% - 32px,1560px)}.eb-hero,.eb-hero__inner{min-height:680px}.eb-title{font-size:34px}.eb-title span{display:block}}


/* === V2: closer to approved mockup === */
.eb-container{width:min(1640px,calc(100% - 110px));}
.eb-header__inner{height:86px;}
.eb-logo__mark{width:38px;height:38px;border-radius:10px;font-size:25px;}
.eb-logo__title{font-size:25px;letter-spacing:.1px;}
.eb-logo__sub{font-size:9px;letter-spacing:.25px;}
.eb-nav{gap:30px;font-size:14px;}
.eb-nav a:after{bottom:-31px;}
.eb-head-actions{gap:16px;}
.eb-phone{font-size:14px;}
.eb-btn{border-radius:8px;padding:14px 24px;font-size:14px;}

.eb-hero{min-height:430px;}
.eb-hero__bg{background-image:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.93) 25%,rgba(255,255,255,.35) 48%,rgba(255,255,255,.02) 100%),url('assets/images/hero-banner.png');background-position:center right;}
.eb-hero__inner{min-height:430px;grid-template-columns:minmax(520px,650px) 1fr;gap:20px;padding-top:8px;}
.eb-kicker{font-size:13px;margin-bottom:14px;letter-spacing:.06em;}
.eb-title{font-size:43px;line-height:1.06;max-width:610px;margin-bottom:18px;letter-spacing:-1.2px;}
.eb-lead{font-size:16px;max-width:510px;margin-bottom:24px;line-height:1.55;}
.eb-hero__buttons{gap:16px;}
.eb-hero__card{width:220px;padding:18px 20px;border-radius:18px;margin-right:64px;}
.eb-stat{grid-template-columns:42px 1fr;gap:12px;padding:13px 0;}
.eb-stat__icon{width:36px;height:36px;font-size:19px;}
.eb-stat strong{font-size:27px;}
.eb-stat span{font-size:12px;}
.eb-hero__pulse span{height:2px;opacity:.9;}

.eb-section{padding:40px 0;}
.eb-section__head{margin-bottom:24px;}
.eb-subtitle{font-size:12px;}
.eb-h2{font-size:28px;}
.eb-grid{gap:18px;}
.eb-service{min-height:165px;padding:22px 20px 18px;border-radius:12px;}
.eb-service h3{font-size:15px;}
.eb-service p{font-size:12.5px;line-height:1.5;}
.eb-ico{width:44px;height:44px;font-size:23px;border-radius:10px;margin-bottom:14px;}
.eb-arrow{width:28px;height:28px;right:16px;bottom:14px;}
.eb-section--soft{padding:26px 0;background:#fff;}
.eb-why{padding:20px 28px;border-radius:15px;gap:18px;}
.eb-why__item{grid-template-columns:50px 1fr;gap:12px;}
.eb-why__item .eb-ico{width:46px;height:46px;}
.eb-why strong{font-size:16px;}
.eb-why span{font-size:12px;line-height:1.35;}
.eb-projects{gap:18px;}
.eb-project__img{height:124px;}
.eb-project__body{padding:14px 16px 16px;}
.eb-project h3{font-size:15px;}
.eb-project__tag{font-size:11px;}
.eb-brands{padding:18px 0;}
.eb-brand{font-size:21px;}
.eb-steps{gap:18px;}
.eb-step__num{width:48px;height:48px;margin-bottom:12px;}
.eb-step h3{font-size:14px;}
.eb-step p{font-size:12px;}

@media(max-width:1180px){
  .eb-container{width:min(100% - 48px,1640px)}
  .eb-hero{min-height:560px}.eb-hero__inner{min-height:560px;grid-template-columns:1fr}.eb-title{font-size:42px}.eb-hero__card{margin-right:0;width:250px}
}
@media(max-width:760px){
  .eb-container{width:min(100% - 28px,1640px)}
  .eb-hero,.eb-hero__inner{min-height:660px}.eb-title{font-size:34px}.eb-hero__card{width:100%}.eb-grid{grid-template-columns:1fr}.eb-section{padding:46px 0}
}
