html {scroll-padding-top:calc(76px + env(safe-area-inset-top,0px))}
#cw-header-space { display: none; }
body > #header { position: relative; top: 0; z-index: 10001; background-color: #fff; }
html.cw-header-pinned #cw-header-space { display: block; height: var(--cw-header-height); }
html.cw-header-pinned body > #header { position: fixed; left: 0; right: 0; width: 100%; }
html.cw-header-pinned .admin-bar > #header { top: 32px; }
@media (max-width: 782px) { html.cw-header-pinned .admin-bar > #header { top: 46px; } }
html.cw-scrolled body > #header { visibility: hidden; pointer-events: none; }
@media (max-width: 600px) {
    html.cw-scrolled body.admin-bar #cw-compact { top: 0; }
}
#cw-compact[hidden],#cw-install[hidden],#cw-install [hidden]{display:none!important}
#cw-compact{position:fixed;inset:0 0 auto;z-index:10001;background:#fff;box-shadow:0 2px 9px #0002;padding-top:env(safe-area-inset-top,0px);font:inherit;color:#191c20}
.admin-bar #cw-compact{top:32px}
.cw-bar-in{max-width:1440px;width:94%;margin:auto;min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.cw-bar-logo img{display:block;width:clamp(120px,12vw,180px);height:auto}
#cw-compact ul{display:flex;align-items:center;gap:clamp(8px,1.1vw,18px);list-style:none;margin:0;padding:0}
#cw-compact li{margin:0;padding:0;list-style:none}
#cw-compact a{color:inherit;text-decoration:none}
#cw-compact nav a{text-transform:uppercase;font-size:14px}
#cw-compact nav a:hover,#cw-compact .current-menu-item a{color:#bd1022}
.cw-bar-phone{border:1px solid #ce1525;padding:8px;white-space:nowrap;font-weight:600}
.cw-bar-toggle{display:none}
#cw-install{background:#f3f4f5;color:#191c20;padding:8px 12px;font:inherit}
#cw-install>div{max-width:650px;margin:auto;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#cw-install strong{font-size:15px;flex:1 0 100%}
#cw-install button,.cw-bar-toggle{background:white;border:1px solid #ccc;padding:8px 12px;border-radius:4px;font:inherit;cursor:pointer}
#cw-install [data-install]{background:#bd1022;color:#fff;border-color:#bd1022}
#cw-install p{margin:0;font-size:14px}
@media (max-width: 1050px), (max-width: 1366px) and (pointer: coarse) and (hover: none){
.cw-bar-in{min-height:56px}.cw-bar-toggle{display:block}#cw-bar-menu{display:none;position:absolute;top:100%;left:0;right:0;background:white;max-height:70vh;overflow:auto;box-shadow:0 5px 10px #0002}#cw-bar-menu.is-open{display:block}
#cw-compact ul{display:grid;gap:0}#cw-compact nav a{display:block;padding:10px 4vw}
.cw-bar-phone{margin-left:auto;font-size:14px}.cw-bar-logo img{width:clamp(82px,24vw,140px)}
html.cw-scrolled #header .mobile-menu{visibility:hidden}
}
@media(max-width:782px){.admin-bar #cw-compact{top:46px}}
@media(max-height:500px){#cw-bar-menu{max-height:55vh}}

body > .modal-container { z-index: 10002; }

body > #header, #cw-compact {
    animation: none !important;
    transition: none !important;
}
@media (max-width: 1050px), (max-width: 1366px) and (pointer: coarse) and (hover: none) {
    body > #header { display: none !important; }
    body > #cw-compact, body > #cw-compact[hidden] { display: block !important; }
    body > #cw-header-space, html.cw-header-pinned body > #cw-header-space {
        display: block;
        height: calc(56px + env(safe-area-inset-top, 0px));
    }
}

@media (max-width: 1050px), (max-width: 1366px) and (pointer: coarse) and (hover: none) {
    #cw-compact .cw-bar-toggle {
        display: grid;
        place-items: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        min-width: 0;
        padding: 0;
        appearance: none;
        border: 0;
        border-radius: 0;
        box-shadow: none !important;
        background: transparent;
        color: #191c20;
    }
    #cw-compact .cw-bar-toggle::before {
        content: "";
        display: block;
        width: 22px;
        height: 3px;
        background: currentColor;
        box-shadow: 0 -7px currentColor, 0 7px currentColor;
    }
}

/* Keep the promotions link highlighted in both header menus. */
#header .nav-menu a[href$="/akcii/"],
#cw-compact nav a[href$="/akcii/"] {
    color: #e12329 !important;
    background-color: transparent;
    box-shadow: inset 0 -3px currentColor;
}
:is(#header .nav-menu, #cw-compact nav) a[href$="/akcii/"]:is(:hover, :focus-visible, :active, [aria-current="page"]),
body.page-id-5982 :is(#header .nav-menu, #cw-compact nav) a[href$="/akcii/"] {
    color: #be000c !important;
}
@media (max-width: 1050px), (max-width: 1366px) and (pointer: coarse) and (hover: none) {
    #cw-compact nav a[href$="/akcii/"] {
        box-shadow: none;
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
    }
}
#cw-install [data-dismiss] { color: #191c20 !important; background: white; }

@media (max-width: 767px) {
    html.cw-header-pinned body #footer button.scroll-to-top {
        display: block !important;
        position: fixed;
        inset: auto auto calc(12px + env(safe-area-inset-bottom, 0px)) 12px;
        width: 44px;
        height: 44px;
        padding: 0;
        z-index: 9999;
    }
}

@media (min-width: 1051px) and (hover: hover), (min-width: 1367px) {
    body > #header { padding: 5px 0; }
    #header .wrapper > .row {
        display: grid;
        grid-template-columns: minmax(0,1fr) max-content;
        grid-template-areas: "logo contact" "logo nav";
        align-items: center;
        padding-inline: 10px;
        row-gap: 2px;
    }
    #header .wrapper > .row::before, #header .wrapper > .row::after { display: none; }
    #header .row > .logo { grid-area: logo; display: flex; align-items: center; gap: 8px; width: auto; margin: 0; }
    #header .logo > a { display: block; min-width: 0; max-width: 240px; }
    #header .logo > a img { display: block; width: 100%; max-height: 46px; height: auto; object-fit: contain; }
    #header .logo > p { flex: none; width: auto; margin: 0; }
    #header .row > .top-line { grid-area: contact; justify-self: end; width: auto; margin: 0; padding: 0; display: flex; flex-direction: row-reverse; gap: 20px; align-items: center; }
    #header .row > .top-line .address { margin: 0; }
    #header .top-line .divider { display: none; }
    #header .row > .bottom-line { grid-area: nav; justify-self: end; width: auto; margin: 0; padding: 0; }
    #header .row > .mobile-social { display: none !important; }
    #header .bottom-line ul.nav-menu > li.nav-menu-element > a { padding-block: 9px; }
    #cw-compact .cw-bar-in { min-height: 52px; }
}

.cw-bar-logo {display:flex;align-items:center;gap:7px;min-width:0}
.cw-brand-name {font-size:15px;font-weight:650;line-height:1.12}
@media(max-width:600px){
    #cw-compact .cw-bar-in {width:96%;gap:4px}
    .cw-bar-logo {gap:4px}
    .cw-bar-logo img {width:clamp(52px,15vw,86px)}
    .cw-brand-name {font-size:clamp(11px,3vw,14px);max-width:7em}
    #cw-compact .cw-bar-phone {font-size:clamp(12px,3vw,14px);padding:6px 4px}
}
body > button.scroll-to-top {
    position:fixed;right:10px;bottom:10px;z-index:10001;
    display:none;width:50px;height:50px;padding:0;border:0;
    background:#e12329;color:white;cursor:pointer;align-items:center;justify-content:center;
}
html.cw-header-pinned body > button.scroll-to-top {display:flex}
body > button.scroll-to-top::before {content:"";width:13px;height:13px;border:solid white;border-width:4px 4px 0 0;transform:translateY(3px) rotate(-45deg)}
@media(max-width:767px){
    body > button.scroll-to-top {left:12px;right:auto;bottom:calc(12px + env(safe-area-inset-bottom,0px));width:44px;height:44px}
}
@media(max-width:1050px), (max-width:1366px) and (hover:none) and (pointer:coarse){
    html body .services-page .page-content > .we-manage {margin-top:0!important;padding-top:4px!important}
    html body .services-page .we-manage .we-manage-title {margin-top:4px!important}
    html body #main .slider.page-tuning-block, html body #main .slider.page-tuning-block .images {height:auto!important; min-height:0!important}
    html body #main .slider.page-tuning-block .images {display:grid;overflow:hidden}
    html body #main .slider.page-tuning-block .images > .image {grid-area:1/1;position:relative!important;height:auto!important;display:block;width:100%!important}
    html body #main .slider.page-tuning-block .image > img {display:block;position:static!important;width:100%!important;height:clamp(165px,51vw,340px)!important;min-height:0!important;max-height:none!important;object-fit:contain;transform:none!important;margin:0!important}
    html body #main .slider.page-tuning-block .image > .text {box-sizing:border-box;float:none!important;position:static!important;width:100%!important;height:auto!important;padding:10px 12px!important;margin:0!important}
    html body #main .slider.page-tuning-block .controls {position:relative!important;inset:auto!important;margin:0 auto!important;transform:none!important}
}

@media (max-width: 1050px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
    #cw-compact .cw-bar-in {
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content 44px;
        grid-template-areas: "brand phone toggle";
    }
    #cw-compact .cw-bar-logo { grid-area: brand; justify-self: start; max-width: 100%; }
    #cw-compact .cw-bar-toggle { grid-area: toggle; }
    #cw-compact .cw-bar-phone { grid-area: phone; justify-self: end; margin-left: 0; }
}

@media (min-width:1051px) and (hover:hover), (min-width:1367px) {
    #header .logo > a { width: min(32vw,360px); max-width: 100%; }
    #header .logo > a img { max-height: 69px; }
    #header .row > .logo > p { max-width: 9ch; }
    #cw-compact .cw-bar-logo img { width: clamp(205px,20vw,260px); max-height: 50px; object-fit: contain; }
    #cw-compact .cw-brand-name { max-width: 9ch; }
}
@media (max-width:1050px), (max-width:1366px) and (hover:none) and (pointer:coarse) {
    #cw-compact .cw-bar-logo img { width: clamp(150px,49vw,264px); max-width: 100%; min-width: 0; height:auto; }
    #cw-compact .cw-bar-logo .cw-brand-name { flex: 0 0 min-content; }
}

.cw-header-messengers {display:flex;align-items:center;gap:4px;flex:none}
#header .cw-header-messengers a, #cw-compact nav .cw-header-messengers a {
    display:grid;place-items:center;width:32px;height:32px;padding:0;
}
.cw-header-messengers img {display:block;width:24px;height:24px;object-fit:contain}
#cw-bar-menu {display:flex;align-items:center;gap:12px}
#cw-bar-menu .cw-header-messengers {order:1}
@media (min-width:1051px) and (max-width:1250px) and (hover:hover) {
    #cw-compact .cw-bar-in, #cw-bar-menu, #cw-compact ul {gap:8px}
    #cw-compact .cw-bar-logo img {max-width:15vw}
}
@media (max-width:1050px), (max-width:1366px) and (hover:none) and (pointer:coarse) {
    #cw-bar-menu {display:none}
    #cw-bar-menu.is-open {display:block}
    #cw-bar-menu .cw-header-messengers {padding:4px 4vw;border-bottom:1px solid #eee}
    #cw-compact nav .cw-header-messengers a {width:44px;height:44px}
}
