/* Медия Груп — хедър v7 (full width, в стила на ELTEK) */
:root{
  --mgh-red:#d20d0d;--mgh-red-2:#a30a0a;--mgh-red-hi:#ff3a3a;
  --mgh-black:#070506;--mgh-black-2:#140d0f;--mgh-line:#271b1e;
  --mgh-ink:#17181c;--mgh-yellow:#ffcd3c;--mgh-yellow-2:#ffd95e;
  --mgh-font:"Geologica",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --mgh-wrap:1410px;--mgh-ann-h:40px;--mgh-main-h:84px;--mgh-cat-h:54px;--mgh-top:0px;
}
body.admin-bar{--mgh-top:32px}
@media (max-width:782px){body.admin-bar{--mgh-top:46px}}
@media (max-width:600px){body.admin-bar{--mgh-top:0px}}
html:has(body.mgh7){scroll-padding-top:calc(var(--mgh-top) + var(--mgh-main-h) + 14px)}

.mgh-header{display:contents}
.mgh-header *,.mgh-drawer *{box-sizing:border-box}
.mgh-header svg,.mgh-drawer svg{display:block;flex:0 0 auto}
.mgh-wrap{width:min(calc(100% - 40px),var(--mgh-wrap));margin-inline:auto}

/* 1 · червена лента със съобщения */
.mgh-announce{position:relative;z-index:9991;background:var(--mgh-red);color:#fff;font-family:var(--mgh-font)}
.mgh-announce-inner{height:var(--mgh-ann-h);display:flex;align-items:center;justify-content:center;gap:18px}
.mgh-announce-track{position:relative;flex:0 1 640px;min-width:0;height:100%;overflow:hidden}
.mgh-header .mgh-announce-track p{position:absolute;inset:0;margin:0;display:flex;align-items:center;justify-content:center;gap:6px;color:#fff;font-family:var(--mgh-font);font-size:13px;font-weight:700;line-height:1;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;opacity:0;transform:translateY(8px);transition:opacity .45s,transform .45s;pointer-events:none}
.mgh-header .mgh-announce-track p.is-active{opacity:1;transform:none;pointer-events:auto}
.mgh-header .mgh-announce-track a{color:#fff;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
.mgh-header .mgh-announce-track a:hover{color:#fff;text-decoration-thickness:2.5px}
.mgh-header .mgh-announce-nav{width:28px;height:28px;display:grid;place-items:center;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:rgba(255,255,255,.78);box-shadow:none;cursor:pointer;transition:background .2s,color .2s}
.mgh-header .mgh-announce-nav:hover,.mgh-header .mgh-announce-nav:focus-visible{background:rgba(0,0,0,.2);color:#fff}
.mgh-announce-nav svg{width:14px;height:14px}

/* 2 · черна основна лента (лепи горе) */
.mgh-main{position:sticky;top:var(--mgh-top);z-index:9990;background:var(--mgh-black);border-bottom:1px solid #120c0e;font-family:var(--mgh-font);transition:box-shadow .3s}
.mgh-main.is-stuck{box-shadow:0 12px 30px rgba(0,0,0,.38)}
.mgh-row{height:var(--mgh-main-h);display:flex;align-items:center;gap:30px}
.mgh-header .mgh-logo{display:inline-flex;align-items:center;flex:0 0 auto;line-height:0;text-decoration:none}
.mgh-header .mgh-logo img{display:block;width:auto;height:50px;max-width:none;filter:none}
.mgh-nav{flex:0 1 auto;min-width:0}
.mgh-header .mgh-nav ul{display:flex;align-items:center;gap:26px;margin:0;padding:0;list-style:none}
.mgh-header .mgh-nav li{margin:0;padding:0;list-style:none;border:0;background:none}
.mgh-header .mgh-nav a{position:relative;display:inline-flex;align-items:center;height:var(--mgh-main-h);color:#fff;font-family:var(--mgh-font);font-size:15.5px;font-weight:700;letter-spacing:.005em;text-decoration:none;white-space:nowrap;background:none;transition:color .2s}
.mgh-header .mgh-nav a::after{content:"";position:absolute;left:0;right:0;bottom:24px;height:3px;background:var(--mgh-red);transform:skewX(-28deg) scaleX(0);transform-origin:left center;transition:transform .25s}
.mgh-header .mgh-nav a:hover,.mgh-header .mgh-nav a:focus-visible,
.mgh-header .mgh-nav :is(.current-menu-item,.current-menu-ancestor,.current_page_item)>a{color:var(--mgh-red-hi)}
.mgh-header .mgh-nav a:hover::after,
.mgh-header .mgh-nav :is(.current-menu-item,.current-menu-ancestor,.current_page_item)>a::after{transform:skewX(-28deg) scaleX(1)}

.mgh-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-left:auto}
.mgh-header .mgh-phone{display:flex;align-items:center;gap:10px;height:46px;margin-right:8px;padding-right:18px;border-right:1px solid var(--mgh-line);color:#fff;text-decoration:none}
.mgh-phone-ic{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:rgba(210,13,13,.18);color:var(--mgh-red-hi);transition:background .2s,color .2s}
.mgh-phone-ic svg{width:19px;height:19px}
.mgh-phone-txt small{display:block;color:#a3979a;font-size:11px;font-weight:600;line-height:1.25;letter-spacing:.08em;text-transform:uppercase}
.mgh-phone-txt b{display:block;color:#fff;font-size:17px;font-weight:800;line-height:1.2;white-space:nowrap;transition:color .2s}
.mgh-header .mgh-phone:hover .mgh-phone-txt b{color:var(--mgh-red-hi)}
.mgh-header .mgh-phone:hover .mgh-phone-ic{background:var(--mgh-red);color:#fff}
.mgh-header .mgh-login{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 14px;border-radius:22px;color:#fff;font-family:var(--mgh-font);font-size:15px;font-weight:700;text-decoration:none;white-space:nowrap;transition:background .2s,color .2s}
.mgh-login svg{width:22px;height:22px}
.mgh-header .mgh-login:hover{background:var(--mgh-black-2);color:var(--mgh-red-hi)}
.mgh-header .mgh-cta{display:inline-flex;align-items:center;gap:8px;height:46px;margin-left:4px;padding:0 28px;background:var(--mgh-yellow);color:#1a1316;font-family:var(--mgh-font);font-size:15px;font-weight:800;text-decoration:none;white-space:nowrap;clip-path:polygon(14px 0,100% 0,calc(100% - 14px) 100%,0 100%);transition:background .2s}
.mgh-cta svg{width:18px;height:18px;transition:transform .2s}
.mgh-header .mgh-cta:hover{background:var(--mgh-yellow-2);color:#1a1316}
.mgh-header .mgh-cta:hover svg{transform:translateX(3px)}
.mgh-header .mgh-burger{display:none;width:44px;height:44px;place-items:center;margin:0 0 0 -8px;padding:0;border:0;border-radius:8px;background:transparent;color:#fff;box-shadow:none;cursor:pointer;flex:0 0 auto}
.mgh-header .mgh-burger:hover,.mgh-header .mgh-burger:focus-visible{background:var(--mgh-black-2);color:#fff}
.mgh-burger svg{width:26px;height:26px}

/* 3 · бяла лента с дейността, с „рамене“ отстрани */
.mgh-catbar{position:relative;z-index:5;background:#fff;font-family:var(--mgh-font);box-shadow:0 1px 0 rgba(0,0,0,.06)}
.mgh-catbar::before,.mgh-catbar::after{content:"";position:absolute;top:0;z-index:2;width:clamp(22px,4vw,64px);height:14px;background:var(--mgh-black);pointer-events:none}
.mgh-catbar::before{left:0;clip-path:polygon(0 0,100% 0,calc(100% - 14px) 100%,0 100%)}
.mgh-catbar::after{right:0;clip-path:polygon(0 0,100% 0,100% 100%,14px 100%)}
.mgh-catbar-inner{height:var(--mgh-cat-h);display:flex;align-items:stretch;justify-content:flex-start;gap:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.mgh-catbar-inner::-webkit-scrollbar{display:none}
.mgh-catbar-inner>:first-child{margin-left:auto}
.mgh-catbar-inner>:last-child{margin-right:auto}
.mgh-catbar-inner.has-more{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent)}
.mgh-header .mgh-catbar a{display:flex;align-items:center;gap:7px;padding:0 13px;border-top:3px solid transparent;border-bottom:3px solid transparent;color:var(--mgh-ink);font-family:var(--mgh-font);font-size:13.5px;font-weight:700;letter-spacing:.035em;text-transform:uppercase;text-decoration:none;white-space:nowrap;background:none;transition:color .2s,border-color .2s}
.mgh-header .mgh-catbar a:hover,.mgh-header .mgh-catbar a:focus-visible,.mgh-header .mgh-catbar a.is-active{color:var(--mgh-red);border-bottom-color:var(--mgh-red)}
.mgh-header .mgh-catbar a.mgh-hot{color:var(--mgh-red)}
.mgh-hot svg{width:15px;height:15px}

/* херо секциите вече не са под плаващ хедър */
body.mgh7 .mgn-ph{padding-top:clamp(44px,5.5vw,80px)!important}
/* профилите на обектите (#mg-object-app) също бяха с отстъп за плаващия хедър */
html body.mgh7 #mg-object-app#mg-object-app .details-info{padding-top:clamp(44px,6vw,84px)!important}
html body.mgh7 #mg-object-app#mg-object-app .catalog-hero{padding-top:clamp(56px,7vw,96px)!important}
body.mgh7 .mgn-hero.mgn-full{padding-top:clamp(36px,4.5vw,64px)!important;min-height:max(560px,calc(100svh - var(--mgh-ann-h) - var(--mgh-main-h) - var(--mgh-cat-h)))!important}

/* мобилно меню */
.mgh-drawer{position:fixed;inset:0;z-index:100000;visibility:hidden;pointer-events:none;font-family:var(--mgh-font)}
.mgh-drawer.is-open{visibility:visible;pointer-events:auto}
.mgh-drawer-backdrop{position:absolute;inset:0;background:rgba(5,3,4,.64);opacity:0;transition:opacity .3s}
.mgh-drawer.is-open .mgh-drawer-backdrop{opacity:1}
.mgh-drawer-panel{position:absolute;top:0;bottom:0;left:0;width:min(88vw,390px);display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;background:#0d090a;color:#fff;border-right:3px solid var(--mgh-red);transform:translateX(-104%);transition:transform .35s cubic-bezier(.2,.7,.1,1)}
.mgh-drawer.is-open .mgh-drawer-panel{transform:none}
.mgh-drawer-head{flex:0 0 auto;height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 14px 0 18px;background:var(--mgh-black);border-bottom:1px solid var(--mgh-line)}
.mgh-drawer-head img{display:block;width:auto;height:32px;max-width:none}
.mgh-drawer .mgh-drawer-close{width:42px;height:42px;display:grid;place-items:center;margin:0;padding:0;border:1px solid #3a2a2e;border-radius:50%;background:transparent;color:#fff;box-shadow:none;cursor:pointer}
.mgh-drawer .mgh-drawer-close:hover{background:var(--mgh-red);border-color:var(--mgh-red);color:#fff}
.mgh-drawer-close svg{width:18px;height:18px}
.mgh-drawer .mgh-dmenu{list-style:none;margin:0;padding:6px 18px 4px}
.mgh-drawer .mgh-dmenu li{margin:0;padding:0;list-style:none;border-bottom:1px solid #20171a}
.mgh-drawer .mgh-dmenu a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;color:#fff;font-size:19px;font-weight:700;letter-spacing:-.01em;text-decoration:none;background:none}
.mgh-drawer .mgh-dmenu a::after{content:"";width:8px;height:8px;border-top:2px solid #5b4a4f;border-right:2px solid #5b4a4f;transform:rotate(45deg);flex:0 0 auto}
.mgh-drawer .mgh-dmenu a:hover,.mgh-drawer .mgh-dmenu :is(.current-menu-item,.current_page_item)>a{color:var(--mgh-red-hi)}
.mgh-drawer-label{margin:18px 18px 10px;color:#8f8286;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.mgh-drawer-cats{display:flex;flex-wrap:wrap;gap:8px;padding:0 18px}
.mgh-drawer .mgh-drawer-cats a{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 14px;background:#1a1214;color:#efe7e9;font-size:12.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;text-decoration:none;clip-path:polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%)}
.mgh-drawer .mgh-drawer-cats a:hover{background:#2a1c20;color:#fff}
.mgh-drawer .mgh-drawer-cats a.mgh-hot{background:var(--mgh-red);color:#fff}
.mgh-drawer-foot{margin-top:auto;display:grid;gap:10px;padding:22px 18px 26px}
.mgh-drawer .mgh-dbtn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 20px;font-size:16px;font-weight:800;text-decoration:none}
.mgh-drawer .mgh-dbtn svg{width:20px;height:20px}
.mgh-drawer .mgh-dbtn-y{background:var(--mgh-yellow);color:#1a1316;clip-path:polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%)}
.mgh-drawer .mgh-dbtn-o{border:1px solid #3d2d31;border-radius:8px;color:#fff}
.mgh-drawer .mgh-dbtn-o:hover{border-color:#fff;color:#fff}
.mgh-drawer-contact{display:grid;gap:2px;margin-top:6px}
.mgh-drawer .mgh-drawer-contact a{display:flex;align-items:center;gap:10px;min-height:40px;color:#d9cfd2;font-size:15px;font-weight:600;text-decoration:none}
.mgh-drawer .mgh-drawer-contact a:hover{color:#fff}
.mgh-drawer-contact svg{width:18px;height:18px;color:var(--mgh-red-hi)}
html.mgh-lock,html.mgh-lock body{overflow:hidden}

@media (max-width:1499px){
  .mgh-phone-txt{display:none}
  .mgh-header .mgh-phone{margin-right:0;padding-right:0;border-right:0}
}
@media (max-width:1379px){
  .mgh-row{gap:24px}
  .mgh-header .mgh-nav ul{gap:18px}
  .mgh-header .mgh-nav a{font-size:14.5px}
  .mgh-header .mgh-login{width:44px;padding:0;justify-content:center}
  .mgh-login span{display:none}
  .mgh-header .mgh-cta{padding:0 22px}
}
@media (max-width:1399px){
  .mgh-header .mgh-catbar a{padding:0 11px;font-size:12.5px}
}
@media (max-width:1199px){
  .mgh-nav{display:none}
  .mgh-header .mgh-burger{display:grid}
  .mgh-row{gap:14px}
}
@media (min-width:769px) and (max-width:1199px){
  .mgh-phone-txt{display:block}
  .mgh-header .mgh-phone{margin-right:4px;padding-right:16px;border-right:1px solid var(--mgh-line)}
  .mgh-header .mgh-login{width:auto;padding:0 14px}
  .mgh-login span{display:inline}
}
@media (max-width:768px){
  :root{--mgh-ann-h:34px;--mgh-main-h:64px;--mgh-cat-h:46px}
  .mgh-wrap{width:min(calc(100% - 24px),var(--mgh-wrap))}
  .mgh-announce-inner{gap:4px}
  .mgh-header .mgh-announce-track p{padding:0 2px;font-size:11px;line-height:1.15;letter-spacing:.04em;white-space:normal;text-align:center}
  .mgh-header .mgh-announce-nav{width:24px;height:24px}
  .mgh-row{gap:8px}
  .mgh-header .mgh-logo img{height:38px}
  .mgh-actions{gap:2px}
  .mgh-header .mgh-cta{display:none}
  .mgh-header .mgh-login{width:42px;padding:0;justify-content:center}
  .mgh-login span{display:none}
  .mgh-phone-ic{width:38px;height:38px}
  .mgh-header .mgh-catbar a{padding:0 11px;font-size:12px}
  .mgh-catbar::before,.mgh-catbar::after{width:16px;height:10px}
  .mgh-catbar::before{clip-path:polygon(0 0,100% 0,calc(100% - 10px) 100%,0 100%)}
  .mgh-catbar::after{clip-path:polygon(0 0,100% 0,100% 100%,10px 100%)}
}
@media (max-width:380px){
  .mgh-header .mgh-logo img{height:34px}
}
@media (prefers-reduced-motion:reduce){
  .mgh-header *,.mgh-drawer *{transition:none!important}
}
