/* ============ EsaLanding design-base: общий скелет (одинаков для v1/v2/v3) ============ */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--esa-font, 'Manrope', 'Segoe UI', sans-serif);color:var(--esa-text, #17181c);background:var(--esa-bg, #fff);line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{line-height:1.2;margin:0 0 .5em}
.container{max-width:1200px;margin:0 auto;padding:0 20px}

/* header — лого слева, справа 2 линии: контакты + меню */
.esa-header{position:sticky;top:0;z-index:50;background:var(--esa-header-bg, rgba(255,255,255,.97));backdrop-filter:blur(8px);border-bottom:1px solid var(--esa-border, #e5e7eb)}
.esa-header__inner{display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:84px;max-width:1600px;margin:0 auto;padding:10px 24px}
.esa-brand{flex:none}
.esa-brand img{max-height:60px;width:auto}
.esa-brand__text{font-weight:800;font-size:1.25rem;letter-spacing:.02em}
.esa-header__side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:1;min-width:0}
.esa-header__contacts{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.esa-header__phones{display:flex;gap:18px;flex-wrap:wrap;justify-content:flex-end}
.esa-header__phone{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:1.05rem;transition:.2s}
.esa-header__phone:hover{color:var(--esa-accent, #cc0000)}
.esa-header__meta{display:flex;align-items:center;gap:8px;opacity:.78;font-size:.85rem;flex-wrap:wrap;justify-content:flex-end}
.esa-header__time{padding-left:8px;border-left:1px solid var(--esa-border,#e5e7eb)}
.esa-ico{width:18px;height:18px;flex:none;color:var(--esa-accent,#cc0000)}
.esa-nav{width:100%}
.esa-menu{display:flex;justify-content:flex-end;gap:2px;list-style:none;margin:0;padding:0}
.esa-menu a{display:block;padding:8px 14px;border-radius:8px;font-weight:600;font-size:.95rem;transition:.2s}
.esa-menu a:hover{background:var(--esa-accent-soft, #f1f5f9);color:var(--esa-accent,#cc0000)}
.esa-menu .current-menu-item>a,.esa-menu .current_page_item>a{background:var(--esa-accent-soft, #f1f5f9);color:var(--esa-accent,#cc0000)}
.esa-burger{display:none;background:none;border:0;cursor:pointer;padding:8px}
.esa-burger span{display:block;width:24px;height:2px;background:var(--esa-text,#17181c);margin:5px 0;border-radius:2px}

/* buttons */
.esa-btn{display:inline-block;padding:14px 28px;border-radius:12px;font-weight:700;font-size:1rem;text-align:center;transition:.2s;border:2px solid transparent}
.esa-btn--primary{background:var(--esa-accent, #cc0000);color:#fff}
.esa-btn--primary:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(204,0,0,.3)}
.esa-btn--ghost{border-color:var(--esa-border,#e5e7eb);color:var(--esa-text,#17181c);background:transparent}
.esa-btn--ghost:hover{border-color:var(--esa-accent,#cc0000);color:var(--esa-accent,#cc0000)}
.esa-btn--lg{padding:16px 36px;font-size:1.1rem}

/* hero */
.esa-hero{padding:110px 0;background-size:cover;background-position:center;color:#fff;position:relative;overflow:hidden}
.esa-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg, rgba(8,10,15,.88) 0%, rgba(8,10,15,.55) 45%, rgba(8,10,15,.15) 100%)}
.esa-hero__inner{position:relative;z-index:1;max-width:1200px;margin:0 auto;padding:0 20px}
.esa-hero__kicker{text-transform:uppercase;letter-spacing:.14em;font-weight:700;font-size:.8rem;color:var(--esa-hero-kicker, #ff6b6b);margin-bottom:16px}
.esa-hero__title{font-size:clamp(2rem,4.5vw,3.4rem);font-weight:800;margin-bottom:20px;max-width:640px}
.esa-hero__title span{color:var(--esa-hero-kicker,#ff6b6b)}
.esa-hero__subtitle{font-size:1.1rem;opacity:.95;max-width:520px;margin-bottom:28px}
.esa-hero__actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:28px}
.esa-hero__badges{display:flex;gap:10px;flex-wrap:wrap}
.esa-badge{display:inline-block;padding:7px 14px;border-radius:999px;background:rgba(255,255,255,.14);backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,.28);font-size:.85rem;font-weight:600}

/* features */
.esa-features{padding:64px 0;background:var(--esa-features-bg, #f8fafc)}
.esa-features__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.esa-feature{background:var(--esa-card-bg,#fff);border:1px solid var(--esa-border,#e5e7eb);border-radius:16px;padding:28px;transition:.2s}
.esa-feature:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(0,0,0,.08)}
.esa-feature__title{font-size:1.2rem;margin-bottom:8px;color:var(--esa-accent,#0f766e)}

/* section titles */
.esa-section-title{font-size:clamp(1.6rem,3vw,2.4rem);font-weight:800;text-align:center}
.esa-section-subtitle{text-align:center;color:#64748b;margin:-.5em auto 40px;max-width:560px}

/* services */
.esa-services{padding:72px 0}
.esa-services__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.esa-service-card{background:var(--esa-card-bg,#fff);border:1px solid var(--esa-border,#e5e7eb);border-radius:18px;overflow:hidden;transition:.25s;display:flex;flex-direction:column}
.esa-service-card:hover{transform:translateY(-6px);box-shadow:0 18px 36px rgba(0,0,0,.12);border-color:var(--esa-accent,#0f766e)}
.esa-service-card__media{aspect-ratio:4/3;overflow:hidden;background:#eee}
.esa-service-card__media img{width:100%;height:100%;object-fit:cover;transition:.4s}
.esa-service-card:hover .esa-service-card__media img{transform:scale(1.06)}
.esa-service-card__body{padding:18px;display:flex;flex-direction:column;gap:8px;flex:1}
.esa-service-card__title{font-weight:700;font-size:1.02rem;line-height:1.3}
.esa-service-card__price{color:var(--esa-accent,#0f766e);font-weight:800;font-size:1.05rem;margin-top:auto}

/* works */
.esa-works{padding:72px 0;background:var(--esa-features-bg,#f8fafc)}
.esa-works__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.esa-work-card{position:relative;background:linear-gradient(135deg,#1e293b,#334155);color:#fff;border-radius:16px;padding:26px;min-height:150px;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;transition:.25s}
.esa-work-card:hover{transform:translateY(-4px);box-shadow:0 16px 32px rgba(0,0,0,.2)}
.esa-work-card__plus{position:absolute;top:16px;right:20px;font-size:1.6rem;opacity:.5}
.esa-work-card__title{font-weight:700;font-size:1.05rem;line-height:1.3}
.esa-work-card__more{font-size:.85rem;opacity:.8;margin-top:6px;color:#5eead4}

/* courses — фоновая секция с затемнением, оффер + CTA */
.esa-courses{padding:0;background-size:cover;background-position:center;position:relative;color:#fff;overflow:hidden}
.esa-courses::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg, rgba(8,10,15,.92) 0%, rgba(8,10,15,.62) 55%, rgba(8,10,15,.2) 100%)}
.esa-courses__inner{position:relative;z-index:1;display:grid;grid-template-columns:1.25fr .75fr;gap:48px;align-items:center;padding:88px 20px;background:transparent;border:0}
.esa-courses__kicker{font-weight:800;color:#ff5a5a;text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;margin-bottom:10px}
.esa-courses__title{font-size:clamp(1.8rem,3.4vw,2.7rem);font-weight:800;margin-bottom:16px;color:#fff}
.esa-courses__desc{font-size:1.06rem;opacity:.94;max-width:520px;margin-bottom:24px}
.esa-courses__list{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-direction:column;gap:10px}
.esa-courses__list li{position:relative;padding-left:30px;font-weight:500}
.esa-courses__list li::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:20px;height:20px;background:#ff5a5a;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat}
.esa-courses__cta{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.esa-courses__cta-label{font-weight:700;font-size:1.15rem;margin-bottom:2px}
.esa-courses__cta .esa-btn{width:auto;min-width:260px;justify-content:center}
.esa-courses__note{opacity:.85;font-size:.92rem;margin-top:6px}

/* contacts */
.esa-contacts{padding:64px 0;background:var(--esa-hero-bg, linear-gradient(135deg,#0f172a,#1e293b));color:#fff}
.esa-contacts__inner{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.esa-contacts__info .esa-section-title{text-align:left}
.esa-contacts__line{margin:8px 0}
.esa-contacts__cta{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.esa-contacts__note{opacity:.8}

/* footer */
.esa-footer{background:var(--esa-footer-bg,#0b1120);color:#cbd5e1;padding:56px 0 0}
.esa-footer__inner{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:40px;padding-bottom:36px}
.esa-footer__title{color:#fff;font-size:1rem;margin-bottom:14px}
.esa-footer__menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.esa-footer__menu li{position:relative;padding-left:22px}
.esa-footer__menu li::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:14px;height:14px;background:var(--esa-accent,#cc0000);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center/contain no-repeat}
.esa-footer__menu a{display:inline-block;transition:.2s}
.esa-footer__menu a:hover{color:#fff;transform:translateX(2px)}
.esa-footer__line{display:flex;align-items:flex-start;gap:10px;margin:8px 0}
.esa-footer__line .esa-ico{color:var(--esa-accent,#cc0000);margin-top:3px}
.esa-footer__line a:hover{color:#fff}
.esa-footer__bottom{border-top:1px solid rgba(255,255,255,.1);padding:18px 0;font-size:.85rem;opacity:.7}
.esa-footer__bottom-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.esa-footer__dev{display:inline-flex;align-items:center;gap:8px;color:#cbd5e1;opacity:1;transition:.2s}
.esa-footer__dev:hover{opacity:1;color:#fff}
.esa-footer__dev img{height:32px;width:auto;border-radius:6px;opacity:.85;transition:.2s}
.esa-footer__dev:hover img{opacity:1}

/* map */
.esa-map{margin-top:28px;border-radius:16px;overflow:hidden;box-shadow:0 12px 30px rgba(0,0,0,.18)}
.esa-map iframe{display:block;border:0}

/* pages (page.php) */
.esa-page{padding:56px 0 72px}
.esa-page__inner{max-width:900px;margin:0 auto}
.esa-page h1{font-size:clamp(1.8rem,3vw,2.6rem);margin-bottom:24px}
.esa-page__cta{margin-top:40px;padding:28px;border:1px solid var(--esa-border,#e5e7eb);border-radius:16px;background:var(--esa-card-bg,#fff);text-align:center}
.esa-page__cta p{font-weight:600;margin-bottom:16px}
.esa-page__cta-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.esa-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0}
.esa-gallery a{display:block;border-radius:12px;overflow:hidden}
.esa-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;transition:.3s}
.esa-gallery a:hover img{transform:scale(1.04)}
.esa-img{margin:16px 0}

/* mobile */
@media(max-width:960px){
  .esa-nav,.esa-header__right{display:none}
  .esa-burger{display:block}
  .esa-hero__inner,.esa-contacts__inner,.esa-courses__inner{grid-template-columns:1fr}
  .esa-features__grid{grid-template-columns:1fr}
  .esa-services__grid,.esa-works__grid{grid-template-columns:repeat(2,1fr)}
  .esa-gallery{grid-template-columns:repeat(2,1fr)}
  .esa-footer__inner{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .esa-services__grid,.esa-works__grid{grid-template-columns:1fr}
  .esa-header__inner{min-height:64px;padding:0 16px}
  .esa-hero{padding:70px 0}
}

/* ============ Мобильное меню: открытое состояние бургера (правка 21.09.2026) ============ */
.esa-header{position:sticky;top:0;z-index:50}
@media(max-width:960px){
  .esa-nav.esa-open{display:block;position:absolute;left:0;right:0;top:100%;background:var(--esa-header-bg,#0d1117);padding:14px 16px;box-shadow:0 8px 24px rgba(0,0,0,.35)}
  .esa-burger.active span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .esa-burger.active span:nth-child(2){opacity:0}
  .esa-burger.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .esa-burger span{transition:transform .2s,opacity .2s}
  .esa-nav.esa-open .esa-menu{flex-direction:column;width:100%;gap:4px}
  .esa-nav.esa-open .esa-menu a{width:100%;text-align:left;white-space:nowrap}
  .esa-nav.esa-open .esa-menu .current-menu-item>a,.esa-nav.esa-open .esa-menu .current_page_item>a{background:var(--esa-accent-soft,#1c2530);color:var(--esa-accent,#cc0000)}
}

/* ============ Мобильная шапка: компактная (правка 21.09.2026) ============ */
/* Лого меньше, телефоны в колонку, адрес под ними, высота шапки 70-80px */
@media(max-width:768px){
  .esa-header__inner{min-height:76px;padding:4px 12px;gap:8px}
  .esa-brand img,.custom-logo{max-height:40px !important;width:auto}
  .esa-header__phones{flex-direction:column;gap:2px}
  .esa-header__phone{white-space:nowrap;font-size:.9rem;gap:4px}
  .esa-header__phone span{white-space:nowrap}
  .esa-header__meta{white-space:nowrap;font-size:.72rem;gap:3px}
}
@media(max-width:480px){
  .esa-header__inner{min-height:72px;padding:2px 8px;gap:6px}
  .esa-brand img,.custom-logo{max-height:34px !important;width:auto}
  .esa-header__phone{font-size:.78rem;gap:3px}
  .esa-header__meta{gap:2px;font-size:.66rem}
  .esa-header__time{display:none}
}
