/* SENET CUBE header — responsive master rules */

.site-header{box-shadow:inset 0 -2px #B87333!important}

.site-header .main-nav>a.active,.site-header .main-nav>a:hover{color:#B87333!important}

.site-header .main-nav>a.active:after,.site-header .main-nav>a:hover:after{background:#B87333!important}

.site-header .lang-switch .lang-item{display:inline-flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;min-width:34px;min-height:42px;padding:4px 5px!important;color:#fff!important;background:transparent!important;border-radius:4px!important;line-height:1!important;white-space:nowrap;opacity:1!important}

.site-header .lang-switch .lang-code{order:0;display:block!important;color:inherit!important;font-size:10px!important;font-weight:700}

.site-header .lang-switch .flag{order:1;display:block!important;width:20px!important;height:15px!important;object-fit:cover}

.site-header .lang-switch .lang-item.active,.site-header .lang-switch .lang-item[aria-current=page]{color:#000!important;background:#B87333!important}

.site-header .lang-switch .lang-item.active .lang-code,.site-header .lang-switch .lang-item[aria-current=page] .lang-code{color:#000!important}

.site-header .nav-toggle:focus-visible,.site-header .lang-item:focus-visible,.site-header .main-nav>a:focus-visible{outline:2px solid #B87333;outline-offset:3px}

@media screen and (min-width:900px),(orientation:landscape) and (min-width:768px){

header.site-header>.header-inner{display:grid!important;grid-template-columns:clamp(76px,9vw,112px) minmax(0,1fr) max-content!important;align-items:center!important;gap:clamp(8px,1vw,16px)!important;width:100%;max-width:1440px;margin:auto;padding:8px clamp(12px,2vw,24px)!important;direction:ltr}

header.site-header .brand{grid-column:1;display:flex;width:100%;min-width:0}

header.site-header .brand img{display:block;width:100%;max-width:112px;height:auto;object-fit:contain}

header.site-header #primary-navigation,header.site-header #primary-navigation.close{grid-column:2;position:static!important;display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:center!important;gap:clamp(5px,.8vw,12px)!important;width:100%!important;min-width:0;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important;background:transparent!important;visibility:visible!important;opacity:1!important;transform:none!important;transition:none!important}

header.site-header #primary-navigation>a{display:inline-flex!important;flex:0 0 auto!important;align-items:center;padding:6px 0!important;color:#F7F5F0;font-size:clamp(10px,1vw,13px)!important;line-height:1.2;white-space:nowrap}

header.site-header .header-actions{grid-column:3;position:static!important;display:flex!important;align-items:center!important;justify-self:end!important;width:max-content!important;min-width:max-content!important;margin:0!important;transform:none!important;visibility:visible!important;opacity:1!important;z-index:2}

header.site-header .header-actions .lang-switch.desktop{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;visibility:visible!important;opacity:1!important}

header.site-header .lang-switch.mobile{display:none!important}

header.site-header .nav-toggle{display:none!important}}

@media screen and (max-width:767px),(orientation:portrait) and (max-width:1024px){

header.site-header>.header-inner{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:clamp(4px,1.5vw,12px)!important;direction:ltr;padding:6px 12px!important}

header.site-header .brand{grid-column:1;width:clamp(58px,17vw,84px)!important;min-width:0}

header.site-header .brand img{display:block;width:100%!important;max-width:100%!important;height:auto}

header.site-header .lang-switch.mobile{grid-column:2;display:flex!important;align-items:center;justify-content:center;gap:1px;min-width:0;margin:0 auto;visibility:visible!important;opacity:1!important}

header.site-header .lang-switch.mobile .lang-item{min-width:32px;min-height:40px;padding:4px 3px!important}

header.site-header .header-actions{grid-column:3;display:flex!important;align-items:center;justify-self:end;margin:0!important;position:static!important;transform:none!important}

header.site-header .lang-switch.desktop{display:none!important}

header.site-header .nav-toggle{display:inline-flex!important;margin:0!important}

header.site-header #primary-navigation,header.site-header #primary-navigation.close{position:fixed!important;top:0;right:0;left:auto;z-index:10000;display:flex!important;flex-direction:column!important;align-items:stretch;width:min(82vw,360px)!important;height:100dvh!important;padding:76px 24px 24px!important;overflow-y:auto!important;background:#10213f!important;transition:transform .25s ease!important}

header.site-header #primary-navigation.close{transform:translateX(105%)!important}

header.site-header #primary-navigation.open{transform:translateX(0)!important}

header.site-header #primary-navigation>a{display:flex;padding:12px 0!important;color:#F7F5F0}}

@media(prefers-reduced-motion:reduce){header.site-header #primary-navigation{transition:none!important}}

/* Restore language switcher suppressed by legacy responsive rules. */
@media screen and (min-width: 768px) {
  header.site-header .header-actions .lang-switch { display: flex !important; flex-flow: row nowrap !important; align-items: center !important; visibility: visible !important; opacity: 1 !important; }
  header.site-header .header-actions .lang-switch .lang-item { display: inline-flex !important; visibility: visible !important; opacity: 1 !important; }
}
@media screen and (max-width: 767px), (orientation: portrait) and (max-width: 1024px) {
  header.site-header > .header-inner > .header-actions { display: contents !important; }
  header.site-header .header-actions .lang-switch { grid-column: 2 !important; display: flex !important; justify-content: center !important; visibility: visible !important; opacity: 1 !important; }
  header.site-header .header-actions .lang-switch .lang-item { display: inline-flex !important; }
  header.site-header .nav-toggle { grid-column: 3 !important; }
}

@media screen and (max-width: 767px), (orientation: portrait) and (max-width: 1024px) {
  header.site-header .nav-toggle { border: 1px solid #B87333 !important; border-radius: 12px !important; }
  header.site-header .nav-toggle span { background-color: #fff !important; }
}
