/* Layout only: original site fonts, accent colour and navigation. */
.site-header { --header-grid-gap: 24px; --header-content-gap: 12px; }
.site-header .container { max-width: 1480px; width: 100%; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.header-topbar { background: #f5f5f5; border-bottom: 1px solid #e2e2e2; }
.header-topbar__inner { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: var(--header-grid-gap); min-height: 38px; }
.header-topbar .city { font-size: 14px; padding: 7px 0; }
.header-topbar .city i { color: #bb1d26; margin-right: 5px; }
.header-topbar .select-city, .header-topbar .geo-confirm { left: 0; transform: none; }
.header-links { grid-column: 3; margin: 0; padding: 0; }
.header-links a, .header-links li > span { font-size: 13px; }
.header-alert { display: block; min-width: 0; overflow: hidden; color: #bb1d26; font-size: 13px; font-weight: 700; white-space: nowrap; }
.header-alert--warning { background: #fff8d8; color: #8a6500; }
.header-alert--info { background: #eef6ff; color: #1d5fa7; }
.header-alert__track { display: inline-block; }
.header-alert.is-overflowing .header-alert__track { min-width: max-content; padding-left: 100%; animation: header-alert-marquee 22s linear infinite; }
.header-alert:hover .header-alert__track { animation-play-state: paused; }
@keyframes header-alert-marquee { to { transform: translateX(-100%); } }
.site-header .header_wr { background-size: 100% auto; }
.header-main { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto auto; align-items: center; column-gap: var(--header-grid-gap); row-gap: 10px; padding-top: 18px; padding-bottom: 18px; }
.header-main > * { min-width: 0; }
.header-brand { grid-column: 1; grid-row: 1 / -1; width: 100%; max-width: 190px; justify-self: center; }
.header-brand .logo { display: block; }
.header-brand .logo img { display: block; width: 100%; height: auto; }
.header-brand .performance { margin: 8px 0 0; font-size: 12px; line-height: 1.4; text-align: center; }
.header-location { grid-column: 2 / span 2; grid-row: 1; align-self: center; font-size: 14px; line-height: 1.45; }
.header-address, .header-phones { display: flex; align-items: center; gap: var(--header-content-gap); }
.header-address > i, .header-phones > i { display: flex; flex: 0 0 32px; width: 32px; height: 32px; align-items: center; justify-content: center; color: #bb1d26; font-size: 23px; }
.header-address__heading { display: flex; align-items: baseline; gap: 5px 14px; flex-wrap: wrap; }
.header-address strong { display: block; font-size: 18px; font-weight: 700; color: #222; }
.header-address p { margin: 5px 0 0; font-size: 16px; font-weight: 700; color: #222; }
.header-address .header-order-info { font-size: 14px; line-height: 1.35; }
.header-directions { flex: 0 0 auto; color: #bb1d26; font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.header-directions:hover { color: #8f151c; text-decoration: none; }
.header-location-alert { display: flex; grid-column: 2 / span 2; grid-row: 2; align-items: flex-start; gap: var(--header-content-gap); width: 100%; box-sizing: border-box; padding: 8px 10px; background: #fbf0f1; color: #75232a; font-size: 13px; line-height: 1.35; }
.header-location-alert--warning { background: #fff8d8; color: #8a6500; }
.header-location-alert--info { background: #eef6ff; color: #1d5fa7; }
.header-location-alert i { flex-shrink: 0; margin-top: 2px; }
.header-contact { display: contents; }
.header-phones { grid-column: 4; grid-row: 1; align-self: center; }
.header-phones a { display: block; color: #222; font-size: 19px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.header-phones .font-small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.4; }
.header-phones .font-small:first-child { margin-top: 0; }
.header-max-options { display: grid; grid-column: 5; grid-row: 1; align-self: center; }
.header-max { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 40px; box-sizing: border-box; padding: 4px 9px; margin: 0; border: 1px solid #bb1d26; border-radius: 4px; color: #bb1d26; font-size: 13px; font-weight: 700; text-decoration: none; }
.header-max:hover { background: #fbf0f1; text-decoration: none; }
/* Official white vector: https://go.max.ru/brandbook */
.header-max__icon { display: flex; flex: 0 0 24px; height: 24px; align-items: center; justify-content: center; background: #bb1d26; border-radius: 6px; }
.header-max__icon img { display: block; width: 18px; height: 18px; }
.header-actions { display: flex; grid-column: 6; grid-row: 1; align-self: stretch; align-items: stretch; padding: 0; margin: 0; list-style: none; }
.header-actions li { display: flex; flex: 1; border-left: 0; }
.header-action { position: relative; width: 100%; min-height: 100px; box-sizing: border-box; border: 0; padding: 0 9px; background: none; color: #222; font: inherit; font-size: 13px; text-decoration: none; }
.header-action:disabled { background: none; color: #aaa; opacity: 1; cursor: default; }
.header-action__icon { position: absolute; top: 50%; left: 50%; font-size: 30px; line-height: 34px; transform: translate(-50%, -50%); }
.header-action > span:last-child { position: absolute; top: calc(50% + 25px); left: 0; width: 100%; text-align: center; }
.header-count { position: absolute; top: -8px; right: -14px; min-width: 20px; height: 20px; padding: 0 3px; box-sizing: border-box; border-radius: 50%; background: #bb1d26; color: #fff; font-size: 11px; line-height: 20px; text-align: center; }
.header-action[href]:hover { color: #bb1d26; text-decoration: none; }
.site-header a:focus-visible, .site-header button:focus-visible { outline: 2px solid #bb1d26; outline-offset: 4px; }
.site-header .search-wr:focus-within .header-search { width: 300px; padding: 10px; }
.ui-autocomplete { z-index: 130 !important; box-sizing: border-box; width: min(420px, calc(100vw - 32px)) !important; max-height: 50vh; overflow-x: hidden; overflow-y: auto; border: 1px solid #ddd; background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .16); }
.ui-autocomplete .mse2-ac-wrapper { padding: 0; }
.ui-autocomplete .mse2-ac-link { padding: 0 !important; border: 0; border-bottom: 1px solid #eee; }
.ui-autocomplete .mse2-ac-wrapper:last-child .mse2-ac-link { border-bottom: 0; }
.ui-autocomplete .ui-state-active { margin: 0; border: 0; background: #fbf0f1; color: #222; }
.mse2-ac-heading { display: block; padding: 7px 8px 5px; background: #f3f3f3; color: #777; font-size: 11px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.mse2-ac-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 44px; padding: 5px 7px; box-sizing: border-box; }
.mse2-ac-thumb { display: flex; width: 44px; height: 44px; box-sizing: border-box; align-items: center; justify-content: center; object-fit: contain; background: #fff; color: #aaa; font-size: 18px; }
.mse2-ac-content { min-width: 0; }
.mse2-ac-title { display: -webkit-box; overflow: hidden; color: #222; font-size: 13px; font-weight: 700; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mse2-ac-price { display: block; margin-top: 2px; color: #bb1d26; font-size: 12px; font-weight: 700; line-height: 1.2; }
.site-header .menu > .level1 > a, .site-header .menu > .level1 > span { display: flex; align-items: center; justify-content: center; gap: 8px; }
.site-header .menu > .level1:first-child > a::before, .site-header .menu > .level1:first-child > span::before { position: static; flex: 0 0 20px; margin: 0; }
.site-header .menu > .level1 > a > .menu-icon, .site-header .menu > .level1 > span > .menu-icon { position: static; flex: 0 0 26px; width: 26px; height: 26px; object-fit: contain; transform: skewX(16deg); filter: brightness(0) invert(1); }
.site-header .menu > .level1 > a > .menu-label, .site-header .menu > .level1 > span > .menu-label { white-space: nowrap; }
.site-header .menu > .level1 > a > .menu-icon--font, .site-header .menu > .level1 > span > .menu-icon--font { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; filter: none; }
.header-menu-preview--shade .menu > [data-menu-item="brendyi"] > a, .header-menu-preview--shade .menu > [data-menu-item="brendyi"] > span, .header-menu-preview--shade .menu > [data-menu-item="vidi-sporta"] > a, .header-menu-preview--shade .menu > [data-menu-item="vidi-sporta"] > span { background: #a41921; }
.header-menu-preview--shade .menu > [data-menu-item="brendyi"] > a::before, .header-menu-preview--shade .menu > [data-menu-item="brendyi"] > span::before { display: none; }
.header-menu-preview--shade .menu > [data-menu-item="vidi-sporta"] > a, .header-menu-preview--shade .menu > [data-menu-item="vidi-sporta"] > span { box-shadow: -8px 0 #a41921; }
.header-menu-preview--shade .search-wr { flex: 0 0 40px; margin-left: 12px; }
.store-directions { width: min(860px, calc(100vw - 32px)); padding: 0 !important; }
.store-directions__layout { display: grid; grid-template-columns: minmax(260px, 42%) minmax(0, 1fr); min-height: 320px; }
.store-directions__layout--text { display: block; min-height: 0; }
.store-directions__media { display: flex; min-height: 280px; align-items: center; justify-content: center; overflow: hidden; background: #f3f3f3; }
.store-directions__media img { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: contain; }
.store-directions__content { padding: 32px; align-self: center; }
.store-directions__content h2 { margin: 0 0 16px; color: #222; font-size: 24px; }
.store-directions__text { color: #333; font-size: 15px; line-height: 1.6; white-space: pre-line; }
.mobile-nav-actions, .mobile-search { display: none; }
@media (max-width: 1360px) {
    .header-main { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto; }
    .header-brand { grid-column: 1; grid-row: 1 / span 3; }
    .header-location { grid-column: 2 / -1; grid-row: 1; }
    .header-location-alert { grid-column: 2 / -1; grid-row: 2; }
    .header-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 2 / span 2; grid-row: 3; align-items: center; gap: var(--header-grid-gap); }
    .header-phones, .header-max-options { grid-column: auto; }
    .header-actions { grid-column: 4; grid-row: 3; }
}
@media (min-width: 851px) and (max-width: 1200px) {
    .site-header .menu > .level1 > a, .site-header .menu > .level1 > span { gap: 4px; font-size: 11px; }
    .site-header .menu > .level1 > a > .menu-icon, .site-header .menu > .level1 > span > .menu-icon { flex-basis: 18px; width: 18px; height: 18px; }
}
@media (max-width: 850px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); overflow-x: hidden; }
    .site-header .container { padding-left: 16px; padding-right: 16px; }
    .site-header { --header-grid-gap: 20px; }
    .header-main { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; padding-top: 24px; padding-bottom: 20px; }
    .header-brand { grid-column: 1; grid-row: 1 / span 2; }
    .header-location { grid-column: 2; grid-row: 1; }
    .header-location-alert { grid-column: 2; grid-row: 2; }
    .header-contact { grid-template-columns: minmax(0, 1fr); grid-column: 2; grid-row: 3; }
    .header-actions { display: none; }
    .header-menu-preview .wrap_nav { position: fixed; z-index: 100; right: 0; bottom: 0; left: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); box-sizing: border-box; }
    .header-menu-preview .container { max-width: none; height: 64px; padding: 0; }
    .site-header #mainmenu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 64px; padding: 0 !important; }
    .site-header .navbar-header { display: flex; position: static; z-index: 2; padding: 0; background: transparent; }
    .site-header .navbar-toggle { display: flex; width: 100%; height: 64px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #fff; font-size: 11px; }
    .site-header .mobile-nav-icon { position: relative; display: block; width: 22px; height: 20px; }
    .site-header .navbar-toggle .icon-bar { width: 22px; top: 9px; }
    .site-header .navbar-toggle .icon-bar:first-child { display: block; top: 1px; }
    .site-header .navbar-toggle .icon-bar:last-child { top: auto; bottom: 1px; }
    .site-header .navbar-toggle.active .icon-bar { top: 9px; }
    .site-header .navbar-toggle.active .icon-bar:first-child { display: none; }
    .site-header .navbar-toggle.active .icon-bar:last-child { top: auto; bottom: 9px; }
    .mobile-nav-actions { display: contents; margin: 0; padding: 0; list-style: none; }
    .mobile-nav-actions li { display: flex; min-width: 0; }
    .mobile-nav-action, .mobile-nav-actions .header-action { display: flex; position: relative; width: 100%; min-height: 64px; box-sizing: border-box; border: 0; padding: 6px 4px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: transparent; color: #fff; font: inherit; font-size: 11px; text-decoration: none; }
    .mobile-nav-action > i, .mobile-nav-actions .header-action__icon { position: relative; top: auto; left: auto; font-size: 23px; line-height: 26px; transform: none; }
    .mobile-nav-actions .header-action > span:last-child { position: static; width: auto; }
    .mobile-nav-actions .header-count { top: -7px; right: -12px; background: #fff; color: #bb1d26; }
    .mobile-nav-action--disabled:disabled { background: transparent; color: rgba(255, 255, 255, .55); cursor: default; }
    .mobile-search { display: none; position: absolute; z-index: 2; right: 0; bottom: 100%; left: 0; align-items: center; padding: 10px 16px; background: #bb1d26; box-shadow: 0 -4px 12px rgba(0, 0, 0, .15); }
    .mobile-search.is-open { display: flex; }
    .mobile-search .search-form { width: 100%; margin: 0 8px 0 0; }
    .mobile-search .header-search { position: static; width: 100%; box-sizing: border-box; padding: 10px; transform: none; }
    .header-search-results--mobile { position: fixed !important; top: auto !important; right: 16px !important; bottom: calc(124px + env(safe-area-inset-bottom)) !important; left: 16px !important; width: auto !important; max-height: min(50vh, 320px); }
    .site-header .menu { z-index: 1; bottom: calc(64px + env(safe-area-inset-bottom)); padding-top: 18px; }
    .site-header .menu > .level1 > a > .menu-icon, .site-header .menu > .level1 > span > .menu-icon { transform: none; }
    .header-topbar__inner { grid-template-columns: minmax(0, 1fr) max-content; gap: 4px 8px; padding-top: 4px; padding-bottom: 4px; }
    .header-alert { grid-column: 1 / -1; grid-row: 2; }
    .header-links { grid-column: 2; }
    .header-links a, .header-links li > span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .header-alert.is-overflowing .header-alert__track { min-width: 0; max-width: 100%; overflow: hidden; padding-left: 0; animation: none; text-overflow: ellipsis; }
}
@media (max-width: 600px) {
    .header-main { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .header-brand { grid-column: auto; grid-row: auto; width: 170px; justify-self: center; }
    .header-location, .header-location-alert, .header-contact, .header-actions { grid-column: auto; grid-row: auto; }
    .header-contact { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .header-phones, .header-max-options { grid-column: 1; grid-row: auto; }
    .header-max-options { padding-left: 44px; }
    .header-actions { width: 180px; justify-self: center; }
    .header-address__heading { display: block; }
    .header-directions { display: inline-block; margin-top: 5px; }
    .store-directions__layout { display: block; min-height: 0; }
    .store-directions__media { min-height: 0; max-height: 48vh; }
    .store-directions__content { padding: 24px 20px; }
    .store-directions__content h2 { font-size: 21px; }
}
