/* ==========================================================================
   ACESPORT · тема 2026
   Sports performance × premium e-commerce × immersive motion
   Заменяет bootstrap.css / style.css / responsive.css / sportshop.css темы sportkute.
   ========================================================================== */

/* ---------- 1. Токены ---------- */
@property --glow { syntax: '<color>'; inherits: true; initial-value: #1f4bff; }
@property --glow-2 { syntax: '<color>'; inherits: true; initial-value: #e6ff2e; }

:root {
  --ink: #0E1014;
  --ink-2: #15181F;
  --ink-3: #20242D;
  --paper: #FFFFFF;
  --mist: #F3F4F6;
  --mist-2: #E9EBEF;
  --line: #E1E4E9;
  --line-dk: rgba(255, 255, 255, .12);
  --text: #0E1014;
  --muted: #5A6170;
  --muted-dk: #A2A9B6;

  --red: #E51E24;        /* фирменный красный логотипа */
  --red-d: #C3151B;
  --blue: #1F4BFF;       /* интерактив, фокус */
  --blue-2: #4D7CFF;
  --volt: #E6FF2E;       /* энергия, акцент на тёмном */

  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --pill: 999px;

  --wrap: 1360px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 128px);
  --header-h: 72px;

  --f-display: 'Unbounded', 'Golos Text', system-ui, sans-serif;
  --f-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .18s;
  --t: .32s;
  --t-slow: .7s;

  --shadow-pop: 0 18px 50px -12px rgba(14, 16, 20, .28);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strike, s { color: var(--muted); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--volt); color: var(--ink); }
.ace-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ace-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ace-i { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.ace-i--flip { transform: scaleX(-1); }
.ace-wrap, .container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.container .container, .ace-wrap .container { padding: 0; max-width: none; }
.ace-skip {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm);
  transition: top var(--t) var(--ease);
}
.ace-skip:focus { top: 12px; color: #fff; }
.hidden { display: none !important; }
.pull-right { float: right; }
.clearfix::after { content: ""; display: table; clear: both; }

/* Совместимость со старыми классами сетки (bootstrap 3), используемыми модулями CMS */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > [class*="col-"] { padding: 0 12px; width: 100%; min-width: 0; }
@media (min-width: 768px) {
  .col-sm-3 { width: 25% !important; } .col-sm-4 { width: 33.333% !important; } .col-sm-6 { width: 50% !important; }
  .col-sm-9 { width: 75% !important; } .col-sm-12 { width: 100% !important; }
}
@media (min-width: 992px) {
  .col-md-3 { width: 25% !important; } .col-md-4 { width: 33.333% !important; } .col-md-6 { width: 50% !important; }
  .col-md-9 { width: 75% !important; } .col-md-12 { width: 100% !important; }
}
.collapse { display: none; } .collapse.in { display: block; }

/* ---------- 3. Типографика ---------- */
.ace-h1, .ace-h2, .ace-hero__title, .page-heading, .sportshop-showcase > h1, #page-heading {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: .95;
}
.ace-h1 { font-size: clamp(38px, 5.6vw, 84px); }
.ace-h2 { font-size: clamp(28px, 3.6vw, 52px); font-weight: 700; line-height: 1; }
.ace-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px;
}
.ace-kicker::before { content: ""; width: 22px; height: 2px; background: var(--red); }
.ace-kicker--volt { color: var(--muted-dk); }
.ace-kicker--volt::before { background: var(--volt); }
.is-volt { color: var(--volt); }

/* ---------- 4. Кнопки ---------- */
.ace-btn {
  --bg: var(--ink); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid var(--bd); border-radius: var(--pill);
  background: var(--bg); color: var(--fg);
  font: 600 15px/1 var(--f-body); letter-spacing: .01em; white-space: nowrap;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t-fast) var(--ease);
  cursor: pointer;
}
.ace-btn:hover { color: var(--fg); }
.ace-btn .ace-i { transition: transform var(--t) var(--ease); }
.ace-btn:hover .ace-i { transform: translateX(4px); }
.ace-btn:active { transform: scale(.97); }
.ace-btn--lg { min-height: 58px; padding: 0 30px; font-size: 16px; }
.ace-btn--primary { --bg: var(--red); }
.ace-btn--primary:hover { --bg: var(--red-d); }
.ace-btn--ghost { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .32); }
.ace-btn--ghost:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.ace-btn--volt { --bg: var(--volt); --fg: var(--ink); }
.ace-btn--volt:hover { --bg: #fff; }
.ace-btn--line { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.ace-btn--line:hover { --bd: var(--ink); }
.ace-iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: var(--pill); background: transparent; color: inherit;
  transition: background var(--t-fast) var(--ease), color var(--t-fast);
}
.ace-iconbtn:hover { background: var(--mist); }
.ace-iconbtn--line { border: 1.5px solid var(--line); }
.ace-iconbtn--line:hover { border-color: var(--ink); background: transparent; }
.ace-iconbtn:disabled { opacity: .35; cursor: default; }

/* ---------- 5. Шапка ---------- */
.ace-header {
  position: sticky; top: -36px; z-index: 100;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.ace-header.is-compact { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(14, 16, 20, .4); }
.ace-topbar { background: var(--ink); color: var(--muted-dk); font-size: 13px; overflow: hidden; height: 36px; }
.ace-topbar__in { display: flex; gap: 28px; align-items: center; height: 36px; }
.ace-topbar__in > * { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ace-topbar__in .ace-i { width: 15px; height: 15px; color: var(--volt); }
.ace-topbar__in a { margin-left: auto; color: #fff; font-weight: 600; }
.ace-topbar__in a:hover { color: var(--volt); }

.ace-bar__in { display: flex; align-items: center; gap: 20px; height: 72px; }
.ace-logo { flex: none; display: block; }
.ace-logo img { display: block; height: 46px; width: auto; transform-origin: left center; transition: transform var(--t) var(--ease); }
.ace-header.is-compact .ace-logo img { transform: scale(.86); }
.ace-burger { display: none; }

.ace-nav { flex: 1; min-width: 0; height: 100%; }
.ace-nav__list { display: flex; height: 100%; align-items: stretch; justify-content: center; gap: 2px; }
.ace-nav__item { display: flex; align-items: center; }
.ace-nav__link {
  position: relative; display: flex; align-items: center; height: 40px; padding: 0 12px;
  font: 600 14.5px/1 var(--f-body); letter-spacing: .01em; border-radius: var(--pill);
  transition: background var(--t-fast) var(--ease), color var(--t-fast);
}
.ace-nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease);
}
.ace-nav__item:hover .ace-nav__link::after, .ace-nav__item.is-open .ace-nav__link::after, .ace-nav__link:focus-visible::after { transform: scaleX(1); }

.ace-mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(14, 16, 20, .35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
  transition-delay: 0s;
}
.ace-nav__item:hover > .ace-mega, .ace-nav__item.is-open > .ace-mega {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--t) var(--ease) .09s, transform var(--t) var(--ease) .09s, visibility 0s linear .09s;
}
.ace-nav.is-closing .ace-mega { opacity: 0 !important; visibility: hidden !important; }
.ace-nav__item.is-open > .ace-mega { transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s; }
.ace-mega__in { display: grid; grid-template-columns: 1fr 340px; gap: 48px; padding-top: 36px; padding-bottom: 40px; }
.ace-mega__cols { display: flex; gap: 48px; }
.ace-mega__col { min-width: 160px; }
.ace-mega__col--wide { min-width: 300px; }
.ace-mega__title { margin-bottom: 14px; }
.ace-mega__title a { font: 600 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ace-mega__title a:hover { color: var(--red); }
.ace-mega__title--gap { margin-top: 26px; }
.ace-mega__col li a {
  display: inline-block; padding: 6px 0; font-size: 15.5px; font-weight: 500;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1.5px no-repeat;
  transition: background-size var(--t) var(--ease), color var(--t-fast);
}
.ace-mega__col li a:hover { background-size: 100% 1.5px; }
.ace-mega__2col { columns: 2; column-gap: 40px; }
.ace-mega__feature { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--mist); }
.ace-mega__feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ace-mega__feature:hover img { transform: scale(1.05); }
.ace-mega__feature span {
  position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r-sm); font-weight: 600;
}
.ace-mega__feature:hover span { color: var(--volt); }

.ace-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.ace-searchbox {
  position: relative; display: flex; align-items: center; width: 260px; height: 44px;
  background: var(--mist); border-radius: var(--pill); padding: 0 14px; gap: 8px;
  transition: width var(--t) var(--ease), background var(--t-fast), box-shadow var(--t-fast);
}
.ace-searchbox:focus-within { background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.ace-searchbox .ace-i { width: 18px; height: 18px; color: var(--muted); }
.ace-searchbox input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 14.5px var(--f-body); color: var(--text); height: 100%; }
.ace-searchbox input::placeholder { color: var(--muted); }
.ace-searchbox input::-webkit-search-cancel-button { display: none; }
.ace-searchbox input:focus-visible { outline: 0; }
.ace-searchbox kbd { font: 600 11px var(--f-body); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; background: #fff; }
.ace-searchbox:focus-within kbd { display: none; }
.ace-search-mob { display: none; }

/* Корзина (вывод модуля basket сохраняется как есть) */
.ace-cart { position: relative; }
.ace-cart #basket { position: relative; }
.ace-cart .cart-link {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--pill);
  font-size: 0; color: var(--ink); transition: background var(--t-fast);
}
.ace-cart .cart-link:hover { background: var(--mist); }
.ace-cart .cart-link::before {
  content: ""; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 8h14l-1 13H6L5 8Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2' fill='none' stroke='black' stroke-width='2'/%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'%3E%3Cpath d='M5 8h14l-1 13H6L5 8Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ace-cart .cart-link .title, .ace-cart .cart-link .total { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ace-cart .notify {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: var(--pill); border: 2px solid #fff;
  background: var(--red); color: #fff; font: 700 10.5px/1 var(--f-body);
}
.ace-cart.is-empty .notify { background: var(--mist-2); color: var(--muted); }
.ace-cart.is-bump .cart-link { animation: ace-bump .6s var(--ease); }
.ace-cart.is-bump .notify { animation: ace-pop .6s var(--ease); }
@keyframes ace-bump { 0%, 100% { transform: none; } 30% { transform: scale(1.18) rotate(-8deg); } 60% { transform: scale(.94); } }
@keyframes ace-pop { 0% { transform: scale(.4); } 50% { transform: scale(1.35); } 100% { transform: none; } }

.ace-cart .cart-block {
  position: absolute; right: -8px; top: calc(100% + 10px); width: 340px; padding: 20px;
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow-pop); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.ace-cart:hover .cart-block, .ace-cart:focus-within .cart-block { opacity: 1; visibility: visible; transform: none; transition-delay: .06s, .06s, 0s; }
.ace-cart .cart-title { font: 600 13px var(--f-body); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.ace-cart .cart-block ul { max-height: 280px; overflow: auto; margin-bottom: 12px; }
.ace-cart .cart-block li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ace-cart .cart-block li img { max-width: 56px; }
.ace-cart .toal-cart { display: flex; justify-content: space-between; font-weight: 700; padding: 8px 0 14px; }
.ace-cart .btn-check-out {
  display: flex; justify-content: center; align-items: center; min-height: 46px; border-radius: var(--pill);
  background: var(--red); color: #fff; font-weight: 600;
}
.ace-cart .btn-check-out:hover { background: var(--red-d); color: #fff; }

/* Поиск */
.ace-search {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(14, 16, 20, .45);
  max-height: calc(100vh - var(--header-h)); overflow: auto; overscroll-behavior: contain;
  padding: 22px 0 36px;
  animation: ace-drop var(--t) var(--ease);
}
.ace-search[hidden] { display: none; }
@keyframes ace-drop { from { opacity: 0; transform: translateY(-10px); } }
.ace-search__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.ace-search__status { font-size: 14px; color: var(--muted); }
.ace-search__status b { color: var(--text); }
.ace-search__mobinput { display: none; }
.ace-search__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ace-search__chips button, .ace-quick a {
  border: 1.5px solid var(--line); background: #fff; border-radius: var(--pill); padding: 8px 14px;
  font: 500 14px var(--f-body); transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.ace-search__chips button:hover, .ace-quick a:hover { border-color: var(--ink); }
.ace-search__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 18px; }
.ace-search__retry { margin-left: 8px; }

/* Мобильное меню */
.ace-drawer { position: fixed; inset: 0; z-index: 200; }
.ace-drawer[hidden] { display: none; }
.ace-drawer__scrim { position: absolute; inset: 0; background: rgba(14, 16, 20, .5); animation: ace-fade var(--t) var(--ease); }
.ace-drawer__panel {
  position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: min(420px, 100%);
  background: #fff; display: flex; flex-direction: column;
  animation: ace-slide var(--t) var(--ease);
}
.ace-drawer.is-closing .ace-drawer__panel { animation: ace-slide var(--t) var(--ease) reverse forwards; }
.ace-drawer.is-closing .ace-drawer__scrim { animation: ace-fade var(--t) var(--ease) reverse forwards; }
@keyframes ace-fade { from { opacity: 0; } }
@keyframes ace-slide { from { transform: translateX(-100%); } }
.ace-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.ace-drawer__head img { height: 38px; width: auto; }
.ace-drawer__body { flex: 1; overflow: auto; padding: 8px 0; }
.ace-drawer details { border-bottom: 1px solid var(--line); }
.ace-drawer summary, .ace-drawer__plain {
  display: flex; justify-content: space-between; align-items: center; min-height: 60px; padding: 0 20px;
  font: 700 18px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; list-style: none; cursor: pointer;
}
.ace-drawer__plain { border-bottom: 1px solid var(--line); }
.ace-drawer summary::-webkit-details-marker { display: none; }
.ace-drawer summary .ace-i { transition: transform var(--t) var(--ease); color: var(--muted); }
.ace-drawer details[open] summary .ace-i { transform: rotate(90deg); color: var(--red); }
.ace-drawer__links { padding: 0 20px 18px; display: grid; gap: 2px; }
.ace-drawer__links a { display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; }
.ace-drawer__links a.is-all { color: var(--red); font-weight: 600; }
.ace-drawer__links p { margin-top: 10px; font: 600 11.5px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ace-drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--mist); display: grid; gap: 10px; font-size: 14.5px; }
.ace-drawer__foot > * { display: flex; align-items: center; gap: 10px; }
.ace-drawer__foot .ace-i { width: 18px; height: 18px; color: var(--red); }

/* Тост */
.ace-toast {
  position: fixed; z-index: 300; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 48px)); visibility: hidden;
  display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px); width: max-content;
  background: var(--ink); color: #fff; padding: 14px 14px 14px 20px; border-radius: var(--r);
  box-shadow: var(--shadow-pop); font-size: 15px; transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.ace-toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
.ace-toast::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--volt); flex: none; }
.ace-toast a { background: var(--volt); color: var(--ink); padding: 10px 16px; border-radius: var(--pill); font-weight: 600; white-space: nowrap; }

/* Летящий товар в корзину */
.ace-fly { position: fixed; z-index: 400; pointer-events: none; border-radius: var(--r); object-fit: contain; background: var(--mist); box-shadow: var(--shadow-pop); }

/* ---------- 6. Hero ---------- */
.ace-main { display: block; }
.ace-main:focus { outline: none; }
.ace-hero {
  --glow: #1f4bff; --glow-2: #e6ff2e;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(620px, calc(100svh - var(--header-full, 108px)), 900px);
  display: flex; align-items: center;
  background: var(--ink); color: #fff;
  transition: --glow 1.1s var(--ease-io), --glow-2 1.1s var(--ease-io);
}
.ace-hero[data-scene="run"]   { --glow: #ff5a1f; --glow-2: #ffb547; }
.ace-hero[data-scene="shoes"] { --glow: #2a5bff; --glow-2: #7ea2ff; }
.ace-hero[data-scene="med"]   { --glow: #0fb5a0; --glow-2: #9ff5e6; }
.ace-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ace-hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(48% 62% at 74% 46%, color-mix(in srgb, var(--glow) 42%, transparent) 0%, transparent 70%),
    radial-gradient(30% 34% at 86% 18%, color-mix(in srgb, var(--glow-2) 14%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .35));
}
.ace-court { position: absolute; inset: 0; width: 100%; height: 100%; }
.ace-court rect, .ace-court path { stroke: rgba(255, 255, 255, .08); stroke-width: 1.5; }
.ace-court .ace-court__net { stroke: color-mix(in srgb, var(--glow-2) 45%, transparent); stroke-dasharray: 4 10; }
.ace-court__dot { fill: var(--glow-2); }
.ace-hero__word {
  position: absolute; left: -1vw; bottom: -3.2vw;
  font: 800 clamp(90px, 19vw, 300px)/1 var(--f-display); letter-spacing: -.05em; text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .075);
  transition: opacity .45s var(--ease), transform .7s var(--ease);
}
.ace-hero__word.is-swap { opacity: 0; transform: translateY(18%); }

.ace-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 24px; padding-top: 48px; padding-bottom: 72px; }
.ace-hero__copy { position: relative; z-index: 2; }
.ace-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dk); margin-bottom: 26px; }
.ace-eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(229, 30, 36, .25); }
.ace-hero__title { font-size: clamp(46px, 7.2vw, 116px); line-height: .9; letter-spacing: -.045em; }
.ace-line { display: block; overflow: hidden; padding-bottom: .04em; }
.ace-line > span { display: inline-block; }
.ace-hero__title .is-accent { color: var(--volt); transition: color 1s var(--ease); }
.ace-hero[data-scene="run"] .is-accent { color: #FF8A4C; }
.ace-hero[data-scene="shoes"] .is-accent { color: #8FB0FF; }
.ace-hero[data-scene="med"] .is-accent { color: #6FF0DB; }
.ace-hero__lead { max-width: 30em; margin-top: 28px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: #C9CED8; }
.ace-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.ace-scenes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 44px; border-top: 1px solid var(--line-dk); padding-top: 18px; }
.ace-scenes a {
  position: relative; display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px 8px 0; margin-right: 14px;
  font: 600 14.5px var(--f-body); color: var(--muted-dk); transition: color var(--t) var(--ease);
}
.ace-scenes a span { font-size: 11px; letter-spacing: .1em; opacity: .7; }
.ace-scenes a::after { content: ""; position: absolute; left: 0; right: 14px; top: -19px; height: 2px; background: var(--glow-2); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.ace-scenes a:hover, .ace-scenes a.is-active { color: #fff; }
.ace-scenes a.is-active::after { transform: scaleX(1); }

.ace-hero__stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 680px; justify-self: end; }
.ace-ball { position: absolute; inset: 0; will-change: transform; }
.ace-ball__canvas { position: relative; z-index: 1; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.ace-ball.is-ready .ace-ball__canvas { opacity: 1; }
.ace-ball__halo {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 55%, transparent), transparent 75%);
  filter: blur(30px); opacity: .75; transform: scale(1.15);
}
.ace-ball__shadow {
  position: absolute; left: 22%; right: 22%; bottom: -2%; height: 9%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .65), transparent);
  filter: blur(6px);
}
.ace-ball__fallback { display: none; }
.ace-ball.is-fallback .ace-ball__canvas { display: none; }
.ace-ball.is-fallback .ace-ball__fallback {
  display: block; position: absolute; inset: 4%; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .85), transparent 22%),
    radial-gradient(circle at 70% 75%, rgba(0, 0, 0, .45), transparent 55%),
    repeating-linear-gradient(115deg, #ffd21a 0 18%, #1f44c9 18% 36%, #f4f4f2 36% 54%);
  box-shadow: inset -30px -40px 80px rgba(0, 0, 0, .45);
}
.ace-mark { position: absolute; font: 600 11px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.ace-mark b { color: var(--glow-2); font-weight: 600; transition: color 1s; }
.ace-mark--tl { left: 4%; top: 6%; }
.ace-mark--br { right: 2%; bottom: 3%; }
.ace-mark--tl::before { content: ""; display: inline-block; width: 26px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; }

.ace-hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 14px; }
.ace-hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: ace-scroll 2s var(--ease) infinite; }
@keyframes ace-scroll { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* intro */
@media (prefers-reduced-motion: no-preference) {
  .js .ace-hero .ace-line > span { transform: translateY(105%); }
  .js .ace-hero .ace-eyebrow, .js .ace-hero .ace-hero__lead, .js .ace-hero .ace-hero__cta, .js .ace-hero .ace-scenes, .js .ace-hero .ace-mark { opacity: 0; transform: translateY(14px); }
  .js .ace-hero.is-in .ace-line > span { transform: none; transition: transform 1s var(--ease); }
  .js .ace-hero.is-in .ace-line:nth-child(2) > span { transition-delay: .08s; }
  .js .ace-hero.is-in .ace-line:nth-child(3) > span { transition-delay: .16s; }
  .js .ace-hero.is-in .ace-eyebrow, .js .ace-hero.is-in .ace-hero__lead, .js .ace-hero.is-in .ace-hero__cta, .js .ace-hero.is-in .ace-scenes, .js .ace-hero.is-in .ace-mark {
    opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .js .ace-hero.is-in .ace-hero__lead { transition-delay: .32s; }
  .js .ace-hero.is-in .ace-hero__cta { transition-delay: .42s; }
  .js .ace-hero.is-in .ace-scenes { transition-delay: .54s; }
  .js .ace-hero.is-in .ace-mark { transition-delay: .9s; }
  .ace-court rect, .ace-court path { stroke-dasharray: 4000; stroke-dashoffset: 4000; }
  .ace-court .ace-court__net { stroke-dasharray: 4 10; stroke-dashoffset: 0; opacity: 0; }
  .ace-hero.is-in .ace-court rect, .ace-hero.is-in .ace-court path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s var(--ease-io) .2s; }
  .ace-hero.is-in .ace-court .ace-court__net { opacity: 1; transition: opacity 1s 1.6s; }
}

/* ---------- 7. Секции ---------- */
.ace-sec { padding: var(--sec) 0; }
.ace-sec__head { margin-bottom: clamp(28px, 4vw, 52px); }
.ace-sec__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ace-sec__note { max-width: 34em; color: var(--muted); font-size: 15px; }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .ace-rail .ace-li { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
  .js .ace-rail.is-in .ace-li, .js .ace-rail .ace-li.is-in { opacity: 1; transform: none; }
}

/* Направления */
.ace-dirs__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(220px, 17vw); gap: 14px; }
.ace-dir { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); background: var(--ink); color: #fff; display: flex; align-items: flex-end; min-height: 220px; }
.ace-dir--volley { grid-column: 1 / 7; grid-row: 1 / 3; }
.ace-dir--run { grid-column: 7 / 10; grid-row: 1 / 3; }
.ace-dir--shoes { grid-column: 10 / 13; grid-row: 1 / 2; }
.ace-dir--wear { grid-column: 10 / 13; grid-row: 2 / 4; }
.ace-dir--med { grid-column: 1 / 5; grid-row: 3 / 4; }
.ace-dir--acc { grid-column: 5 / 10; grid-row: 3 / 4; }
.ace-dir img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.ace-dir::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 16, 20, .05) 0%, rgba(14, 16, 20, .25) 40%, rgba(14, 16, 20, .88) 100%); }
.ace-dir--shoes::before, .ace-dir--med::before { background: linear-gradient(180deg, rgba(14, 16, 20, .15) 0%, rgba(14, 16, 20, .55) 45%, rgba(14, 16, 20, .92) 100%); }
.ace-dir::after {
  content: ""; position: absolute; z-index: -1; right: -18%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid var(--accent); opacity: .0; transform: translate(10%, -10%) scale(.8);
  transition: opacity .6s var(--ease), transform .9s var(--ease);
}
.ace-dir:hover img { transform: scale(1.06); }
.ace-dir:hover::after, .ace-dir:focus-visible::after { opacity: .55; transform: none; }
.ace-dir__body { position: relative; width: 100%; padding: clamp(18px, 2vw, 28px); }
.ace-dir__num { display: block; font: 600 12px/1 var(--f-body); letter-spacing: .14em; color: var(--accent); margin-bottom: 10px; }
.ace-dir__title { font: 800 clamp(22px, 2.3vw, 36px)/1 var(--f-display); text-transform: uppercase; letter-spacing: -.03em; }
.ace-dir--volley .ace-dir__title { font-size: clamp(30px, 4vw, 64px); }
.ace-dir__text { margin-top: 10px; max-width: 26em; font-size: 14.5px; color: rgba(255, 255, 255, .78); }
.ace-dir__cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 16px; border-radius: var(--pill);
  background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-weight: 600; font-size: 14px; transition: background var(--t) var(--ease), color var(--t);
}
.ace-dir:hover .ace-dir__cta { background: var(--accent); color: var(--ink); }
.ace-dir__cta .ace-i { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.ace-dir:hover .ace-dir__cta .ace-i { transform: translateX(3px); }
.ace-dir--light { background: var(--mist); color: var(--ink); }
.ace-dir--light::before { display: none; }
.ace-dir--light img { object-fit: contain; object-position: center; mix-blend-mode: multiply; inset: 0 0 0 52%; width: 48%; padding: 18px; }
.ace-dir--light .ace-dir__body { max-width: 52%; }
.ace-dir--acc .ace-dir__title, .ace-dir--shoes .ace-dir__title { font-size: clamp(20px, 1.85vw, 30px); overflow-wrap: anywhere; }
.ace-dir--wear .ace-dir__body { max-width: none; }
.ace-dir--wear img { inset: 0 0 30% 0; width: 100%; height: 70%; object-position: center; }
.ace-dir--light .ace-dir__text { color: var(--muted); }
.ace-dir--light .ace-dir__num { color: var(--blue); }
.ace-dir--light .ace-dir__cta { background: #fff; }
.ace-dir--light:hover .ace-dir__cta { background: var(--ink); color: #fff; }
.ace-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* Рейлы товаров */
.ace-railnav { display: flex; gap: 8px; }
.ace-rail { position: relative; }
.ace-rail > ul {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0; padding: 4px 0 8px;
}
.ace-rail > ul::-webkit-scrollbar { display: none; }
.ace-rail > ul > li { scroll-snap-align: start; min-width: 0; }

/* Карточка товара (единая для главной, каталога, поиска, похожих) */
.ace-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.ace-card__media {
  position: relative; display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--mist);
}
.ace-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 9%;
  mix-blend-mode: multiply; transition: transform .7s var(--ease), opacity .4s;
}
.ace-card__media img.is-alt { opacity: 0; }
.ace-card:hover .ace-card__media img { transform: scale(1.06); }
.ace-card:hover .ace-card__media img.is-alt { opacity: 1; }
.ace-card:hover .ace-card__media img.is-alt + img, .ace-card__media.has-alt:hover img:not(.is-alt) { opacity: 0; }
.ace-badge {
  position: absolute; z-index: 1; left: 10px; top: 10px; padding: 5px 9px; border-radius: var(--pill);
  background: var(--red); color: #fff; font: 700 12px/1 var(--f-body); letter-spacing: .02em;
}
.ace-card__go {
  position: absolute; z-index: 1; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: var(--pill); background: var(--ink); color: #fff; font: 600 13px/1 var(--f-body);
  opacity: 0; transform: translateY(8px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.ace-card__go .ace-i { width: 15px; height: 15px; }
.ace-card:hover .ace-card__go, .ace-card__media:focus-visible .ace-card__go { opacity: 1; transform: none; }
.ace-card__body { padding: 14px 2px 4px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ace-card__brand { font: 600 11.5px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ace-card__name { font: 500 15px/1.35 var(--f-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ace-card__name a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--t) var(--ease); }
.ace-card__name a:hover { background-size: 100% 1px; }
.ace-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.ace-card__sku { display: none; font-size: 13px; color: var(--muted); }
.ace-card__price { margin-top: auto; padding-top: 4px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.ace-card__price b { font: 700 18px/1.2 var(--f-body); letter-spacing: -.01em; }
.ace-card__price b.is-sale { color: var(--red); }
.ace-card__price s { font-size: 14px; color: var(--muted); }
.ace-card__media, .ace-badge, .ace-card__go { z-index: 1; }

.ace-rail--dark .ace-card__name, .ace-rail--dark .ace-card__price b { color: #fff; }
.ace-rail--dark .ace-card__price b.is-sale { color: var(--volt); }
.ace-rail--dark .ace-card__brand, .ace-rail--dark .ace-card__price s { color: var(--muted-dk); }
.ace-rail--dark .ace-card__media { background: #F1F2F4; }

/* Скелетоны / состояния */
.ace-skeleton-row { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 18px; overflow: hidden !important; }
.ace-skeleton-row li, .ace-skel { aspect-ratio: .78; border-radius: var(--r); background: linear-gradient(100deg, var(--mist) 30%, #fafbfc 50%, var(--mist) 70%) 0 0 / 300% 100%; animation: ace-shimmer 1.4s linear infinite; }
.ace-rail--dark .ace-skeleton-row li { background: linear-gradient(100deg, #1d2129 30%, #272c36 50%, #1d2129 70%) 0 0 / 300% 100%; }
@keyframes ace-shimmer { to { background-position: -150% 0; } }
.ace-state { padding: 48px 24px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }
.ace-state b { display: block; margin-bottom: 6px; font: 700 20px var(--f-display); text-transform: uppercase; color: var(--text); }
.ace-state .ace-btn { display: flex; width: max-content; margin: 18px auto 0; }
.ace-rail--dark .ace-state { border-color: var(--line-dk); color: var(--muted-dk); }
.ace-rail--dark .ace-state b { color: #fff; }

/* Волейбол */
.ace-volley { position: relative; background: var(--ink-2); color: #fff; padding: var(--sec) 0; overflow: hidden; }
.ace-volley::before { content: ""; position: absolute; right: -10%; top: -20%; width: 60vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(31, 75, 255, .28), transparent); pointer-events: none; }
.ace-volley__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "media copy" "media products"; gap: 40px clamp(32px, 5vw, 80px); }
.ace-volley__media { grid-area: media; position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 520px; }
.ace-volley__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.ace-volley__badge { position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; justify-content: space-between; align-items: flex-end; }
.ace-volley__badge span { background: var(--volt); color: var(--ink); padding: 8px 14px; border-radius: var(--pill); font-weight: 600; font-size: 13px; }
.ace-volley__badge b { font: 800 clamp(56px, 7vw, 120px)/.8 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .7); letter-spacing: -.05em; }
.ace-volley__copy { grid-area: copy; align-self: end; min-width: 0; }
.ace-volley__grid > *, .ace-hero__grid > *, .ace-visit__grid > * { min-width: 0; }
.ace-volley__lead { margin-top: 20px; max-width: 34em; color: #C9CED8; font-size: 17px; }
.ace-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.ace-tabs button {
  display: inline-flex; align-items: baseline; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--pill);
  border: 1.5px solid var(--line-dk); background: transparent; color: #fff; font: 600 15px var(--f-body);
  transition: background var(--t) var(--ease), color var(--t), border-color var(--t);
}
.ace-tabs button span { font-size: 11px; letter-spacing: .1em; color: var(--muted-dk); transition: color var(--t); }
.ace-tabs button:hover { border-color: rgba(255, 255, 255, .5); }
.ace-tabs button[aria-selected="true"] { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.ace-tabs button[aria-selected="true"] span { color: var(--ink); }
.ace-volley__products { grid-area: products; min-width: 0; }
.ace-volley__products .ace-rail > ul { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
.ace-volley__foot { display: flex; align-items: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.ace-link-light { color: var(--muted-dk); font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color var(--t-fast); }
.ace-link-light:hover { color: #fff; }

/* Другие направления — раскрывающиеся панели */
.ace-panels { display: flex; gap: 12px; height: clamp(440px, 40vw, 560px); }
.ace-panel {
  position: relative; isolation: isolate; flex: 1; min-width: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--ink); color: #fff;
  display: flex; align-items: flex-end; transition: flex-grow .7s var(--ease);
}
.ace-panel.is-open { flex-grow: 2.6; }
.ace-panel img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.75); transition: filter .7s var(--ease), transform 1.2s var(--ease); }
.ace-panel.is-open img { filter: none; transform: scale(1.03); }
.ace-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(14, 16, 20, .9)); }
.ace-panel::after { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.ace-panel.is-open::after { transform: none; }
.ace-panel__body { padding: clamp(18px, 2vw, 30px); width: 100%; min-width: 0; }
.ace-panel__num { display: block; font: 600 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.ace-panel__title { font: 800 clamp(20px, 2vw, 32px)/1.02 var(--f-display); text-transform: uppercase; letter-spacing: -.03em; }
.ace-panel__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.ace-panel__title { overflow-wrap: break-word; hyphens: auto; transition: font-size .5s var(--ease); }
.ace-panel:not(.is-open) .ace-panel__title { font-size: clamp(15px, 1.25vw, 19px); }
.ace-panel:not(.is-open) .ace-panel__num { font-size: 10.5px; }
.ace-panel__links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s var(--ease); }
.ace-panel.is-open .ace-panel__links { max-height: 200px; opacity: 1; transition-delay: .15s; }
.ace-panel__links a { display: inline-block; padding: 8px 14px; border-radius: var(--pill); background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
.ace-panel__links a:hover { background: var(--accent); color: var(--ink); }

/* Бренды */
.ace-brands { background: var(--mist); }
.ace-brandgrid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ace-brandgrid li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ace-brandgrid button {
  position: relative; width: 100%; height: clamp(84px, 9vw, 128px); border: 0; background: transparent; overflow: hidden;
  font: 700 clamp(15px, 1.6vw, 22px)/1 var(--f-display); letter-spacing: -.01em; color: var(--ink);
  transition: color var(--t) var(--ease);
}
.ace-brandgrid button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .45s var(--ease); }
.ace-brandgrid button { z-index: 0; }
.ace-brandgrid button:hover, .ace-brandgrid button:focus-visible { color: var(--volt); }
.ace-brandgrid button:hover::before, .ace-brandgrid button:focus-visible::before { transform: none; }
.ace-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.ace-pick {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 26px; border-radius: var(--r-lg); background: #fff;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.ace-pick::after { content: "→"; position: absolute; right: 22px; top: 20px; font-size: 22px; transition: transform var(--t) var(--ease); }
.ace-pick:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(14, 16, 20, .35); }
.ace-pick:hover::after { transform: translateX(4px); color: var(--red); }
.ace-pick__k { font: 600 11.5px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ace-pick b { font: 700 21px/1.15 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; }
.ace-pick > span:last-child { color: var(--muted); font-size: 14.5px; }

/* Магазин */
.ace-visit { background: var(--ink); color: #fff; padding: var(--sec) 0; }
.ace-visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.ace-visit__info { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.ace-visit__info dt { font: 600 11.5px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--volt); margin-bottom: 8px; }
.ace-visit__info dd { color: #D5D9E1; font-size: 15.5px; }
.ace-visit__info a:hover { color: var(--volt); }
.ace-visit__cta { grid-column: 2; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 8. Подвал ---------- */
.ace-footer { position: relative; overflow: hidden; background: #08090C; color: var(--muted-dk); padding-top: clamp(56px, 7vw, 96px); font-size: 15px; }
.ace-footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.ace-footer__logo { display: inline-block; background: #fff; border-radius: var(--r-sm); padding: 8px 12px; margin-bottom: 18px; }
.ace-footer__logo img { display: block; height: 40px; width: auto; }
.ace-footer__brand p { color: #fff; margin-bottom: 14px; }
.ace-footer address { font-style: normal; line-height: 1.8; }
.ace-footer a { transition: color var(--t-fast); }
.ace-footer a:hover { color: var(--volt); }
.ace-footer__h { font: 600 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.ace-footer__h--gap { margin-top: 26px; }
.ace-footer__col li { padding: 4px 0; }
.ace-pay { display: flex; gap: 8px; }
.ace-pay span { border: 1px solid var(--line-dk); border-radius: var(--r-xs); padding: 6px 10px; font: 700 12px var(--f-body); letter-spacing: .06em; color: #fff; }
.ace-footer__bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line-dk); font-size: 13.5px; }
.ace-footer__giant { font: 800 clamp(64px, 13.6vw, 230px)/.78 var(--f-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .08); white-space: nowrap; text-align: center; margin-bottom: -2.2vw; user-select: none; }

/* ---------- 9. Внутренние страницы (разметка модулей AVE.CMS) ---------- */
.ace-main > .content, .ace-main > .columns-container { padding: 28px 0 var(--sec); }
.sportshop-showcase { padding-top: 0; }
.sportshop-showcase > br:first-child { display: none; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; padding: 0; background: none; font-size: 13.5px; color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .navigation-pipe::before { content: "/"; color: var(--line); }
.breadcrumb .navigation-pipe { font-size: 0; }
.breadcrumb .navigation-pipe::before { font-size: 13.5px; }
.page-heading { font-size: clamp(28px, 3.6vw, 48px); font-weight: 800; margin: 0 0 24px; }
.sportshop-showcase > h1, #page-heading { font-size: clamp(30px, 4vw, 56px); margin: 8px 0 28px; }
.sportshop-showcase > br { display: none; }

/* Каталог */
#columns > .row { display: block; margin: 0; }
#columns > .row > [class*="col-"] { width: auto !important; padding: 0; }
#columns > .row.ace-has-filters, #columns > .row:has(> #left_column) { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 44px; align-items: start; }
#left_column { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; padding: 4px 6px 24px 2px; scrollbar-width: thin; }
#left_column .left-module { margin-bottom: 8px; }
#left_column .title_block { font: 700 15px var(--f-display); text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 8px; }
#left_column > .left-module > .title_block.ace-hide, #left_column .layered-category > .layered-content > br, #left_column .layered-category > .layered-content > span:empty { display: none; }
.layered_subtitle {
  position: relative; display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 14px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left;
  font: 600 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text); cursor: pointer;
}
.layered_subtitle::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--t) var(--ease); }
.layered_subtitle.is-collapsed::after { transform: rotate(-45deg); }
.layered_subtitle.is-collapsed + .layered-content { display: none; }
.layered-content { padding-bottom: 12px; }
.check-box-list li { position: relative; }
.check-box-list input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.check-box-list label {
  display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 4px 0; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--text) !important; transition: color var(--t-fast);
}
.check-box-list label .button {
  width: 20px; height: 20px; flex: none; border: 1.5px solid #B9BEC8 !important; border-radius: 6px;
  background: #fff none !important; transition: background var(--t-fast), border-color var(--t-fast);
}
.check-box-list label:hover .button { border-color: var(--ink) !important; }
.check-box-list label[data-select="selected"] .button {
  border-color: var(--ink) !important;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5 9-10' fill='none' stroke='%23E6FF2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat !important;
}
.check-box-list label[data-select="selected"] { font-weight: 600; }
.check-box-list input:focus-visible + label .button { outline: 3px solid var(--blue-2); outline-offset: 2px; }
#left_column .panel { border: 0; background: none; box-shadow: none; }
#left_column .panel-heading { padding: 0; }
#left_column .panel-title { font: 500 14px var(--f-body); }
#left_column .panel-title a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; padding: 6px 0; }
#left_column .panel-title a::after { content: "＋"; }
#left_column .panel-title a.is-open::after { content: "－"; }
#collapseOne .check-box-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-top: 8px; }
#collapseOne .check-box-list label { justify-content: center; min-height: 40px; border: 1.5px solid var(--line); border-radius: var(--r-xs); font-size: 13.5px; gap: 0; }
#collapseOne .check-box-list label .button { display: none; }
#collapseOne .check-box-list label:hover { border-color: var(--ink); }
#collapseOne .check-box-list label[data-select="selected"] { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.ace-filter-close, .ace-filter-apply { display: none; }

#view-product-list > .page-heading { margin-bottom: 18px; }
.ace-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 0; margin-bottom: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ace-toolbar__count { font-size: 14.5px; color: var(--muted); margin-right: auto; }
.ace-toolbar__count b { color: var(--text); }
.ace-toolbar__filters { display: none; }
.ace-select { position: relative; }
.ace-select select {
  appearance: none; -webkit-appearance: none; height: 42px; padding: 0 40px 0 16px; border: 1.5px solid var(--line); border-radius: var(--pill);
  background: #fff; font: 500 14.5px var(--f-body); color: var(--text); cursor: pointer;
}
.ace-select select:hover { border-color: var(--ink); }
.ace-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); pointer-events: none; }
.display-product-option { display: flex; gap: 4px; padding: 3px; border-radius: var(--pill); background: var(--mist); margin: 0; }
.display-product-option li { display: grid; place-items: center; height: 36px; padding: 0 14px; border-radius: var(--pill); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.display-product-option li.selected { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.products { position: relative; min-height: 240px; }
.products > .product-list, .products > ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 34px 20px; margin: 0; }
.products > ul > li { width: auto !important; padding: 0 !important; min-width: 0; }
.products > ul.list { grid-template-columns: 1fr; gap: 16px; }
.products > ul.list .ace-card { flex-direction: row; gap: 24px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.products > ul.list .ace-card__media { width: 180px; flex: none; }
.products > ul.list .ace-card__sku { display: block; }
.products > ul.list .ace-card__name { font-size: 17px; -webkit-line-clamp: 3; }
.products.is-loading > ul { opacity: .35; pointer-events: none; transition: opacity .2s; }
.products.is-loading::after { content: ""; position: absolute; left: 50%; top: 120px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; border: 3px solid var(--mist-2); border-top-color: var(--red); animation: ace-spin .8s linear infinite; }
@keyframes ace-spin { to { transform: rotate(360deg); } }
.ace-skelgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 34px 20px; }
.ace-skelgrid .ace-skel { aspect-ratio: .74; }
/* без JS — базовый вид исходной разметки */
.product-container .left-block img, .left-block-new img { aspect-ratio: 1; object-fit: contain; background: var(--mist); border-radius: var(--r); width: 100%; }
.product-container .price, .content_price .price { font-weight: 700; }
.products .info-orther, .products .add-to-cart { display: none; }

/* Карточка товара */
#product .primary-box { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); margin: 0 0 56px; align-items: start; }
#product .primary-box > [class*="col-"] { width: auto !important; padding: 0; }
#product .product-tab { grid-column: 1 / -1; }
.product-full { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--mist); overflow: hidden; cursor: zoom-in; }
.product-full img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7%; mix-blend-mode: multiply; transition: opacity .25s, transform .5s var(--ease); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.product-full.is-zoom img { transform: scale(1.9); }
.product-full.is-swap img { opacity: 0; }
.product-img-thumb { margin-top: 12px; }
.product-img-thumb ul { display: flex; gap: 10px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.product-img-thumb li { flex: none; }
.product-img-thumb a { display: block; width: 84px; height: 84px; border-radius: var(--r-sm); background: var(--mist); border: 2px solid transparent; overflow: hidden; transition: border-color var(--t-fast); }
.product-img-thumb a:hover { border-color: var(--line); }
.product-img-thumb a.is-active { border-color: var(--ink); }
.product-img-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; }
.pb-right-column { position: sticky; top: calc(var(--header-h) + 20px); }
.ace-pp__brand { font: 600 12px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pb-right-column h1.product-name { font: 700 clamp(24px, 2.4vw, 34px)/1.12 var(--f-display); letter-spacing: -.02em; margin-bottom: 14px; }
.pb-right-column .info-orther p { font-size: 14.5px; color: var(--muted); margin: 0 0 4px; }
.pb-right-column .info-orther p.ace-hide { display: none; }
.ace-pp { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 22px 0 6px; font-variant-numeric: tabular-nums; }
.ace-pp b { font: 800 clamp(28px, 2.8vw, 38px)/1 var(--f-display); letter-spacing: -.02em; }
.ace-pp b.is-sale { color: var(--red); }
.ace-pp s { font-size: 18px; color: var(--muted); }
.ace-pp .ace-badge { position: static; }
.product-price-group { position: relative; }
.product-price-group > .price { display: block; font: 800 28px var(--f-display); margin: 16px 0 4px; }
.product-price-group.ace-has-pp > .price { display: none; }
.sizetable:empty { display: none; }
#numBox { margin-top: 22px; font-size: 14px; color: var(--muted); }
#numBox p { margin: 0; }
#numBox strong { color: #0A8F4A; }
#numBox::before { content: "Размер"; display: block; font: 600 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
#sizeBox { position: relative; margin-top: 12px; font-size: 0; }
#sizeBox:empty { display: none; }
.sizeN {
  display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 50px; padding: 0 12px; margin: 0 8px 8px 0;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; user-select: none;
  font: 600 15px var(--f-body); transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.sizeN:hover { border-color: var(--ink); }
.sizeN:active { transform: scale(.96); }
.sizeN.sizeactive { background: var(--ink); border-color: var(--ink); color: #fff; }
.sizeN:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
#sizeBox.is-shake { animation: ace-shake .45s var(--ease); }
@keyframes ace-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.sizebox {
  position: absolute; z-index: 5; margin-top: -8px; transform: translateY(-100%); padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font: 500 13px/1.6 var(--f-body); white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-pop);
}
.pb-right-column > br, .pb-right-column .info-orther > br { display: none; }
.in-stock { color: inherit; }
.error_msg, .inbasked { display: none; margin-top: 10px; padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; }
.error_msg { background: #FFF0F0; color: var(--red-d); }
.inbasked { background: #EEFCE9; color: #0A7A3E; }
.form-action { margin-top: 24px; }
.product-to-basket { display: flex; gap: 10px; }
.product-to-basket input[name="quantity"] { display: none; }
.btn-add-cart, input.btn-add-cart {
  flex: 1; min-height: 58px; padding: 0 28px; border: 0; border-radius: var(--pill); background: var(--red); color: #fff;
  font: 600 16.5px var(--f-body); cursor: pointer; transition: background var(--t) var(--ease), transform var(--t-fast);
}
.btn-add-cart:hover { background: var(--red-d); }
.btn-add-cart:active { transform: scale(.98); }
.btn-add-cart.is-busy { opacity: .7; pointer-events: none; }
.pb-right-column .product-desc { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.form-share { margin-top: 18px; font-size: 14px; color: var(--muted); }
.form-share a:hover { color: var(--text); }
.form-share .network-share { display: none; }
.ace-pp__meta { display: grid; gap: 8px; margin-top: 22px; padding: 16px 18px; border-radius: var(--r); background: var(--mist); font-size: 14px; color: var(--muted); }
.ace-pp__meta b { color: var(--text); font-weight: 600; }
.ace-pp__meta a { color: var(--blue); font-weight: 600; }

.product-tab { margin-top: 8px; }
.nav-tab { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.nav-tab li a { display: block; padding: 14px 0; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--t-fast), border-color var(--t); }
.nav-tab li.active a, .nav-tab li a:hover { color: var(--text); }
.nav-tab li.active a { border-color: var(--red); }
.tab-container .tab-panel { display: none; max-width: 760px; color: #2D323C; }
.tab-container .tab-panel.active { display: block; animation: ace-fade .35s var(--ease); }
.page-product-box { margin-top: 64px; }
.page-product-box .heading { font: 800 clamp(24px, 2.6vw, 36px)/1 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 26px; }
.ace-buybar { display: none; }

/* Корзина и оформление */
.basketitems { font-size: 15px; }
.basketitems > .container { padding: 0; }
.basketitems table { width: 100%; border-collapse: collapse; }
.basketitems th { text-align: left; font: 600 12px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 10px; border-bottom: 1px solid var(--line); }
.basketitems td { padding: 16px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.basketitems td img { max-width: 88px; border-radius: var(--r-sm); background: var(--mist); }
.basketitems .upitem, .basketitems .downitem { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); font-weight: 700; }
.basketitems .upitem:hover, .basketitems .downitem:hover { border-color: var(--ink); }
.basketitems input[type="text"], .basketitems input[type="email"], .basketitems input[type="tel"], .basketitems textarea, .sportshop-showcase input[type="text"], .sportshop-showcase input[type="password"], .sportshop-showcase input[type="email"], .sportshop-showcase textarea, .sportshop-showcase select {
  width: 100%; max-width: 520px; min-height: 48px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font: 500 15.5px var(--f-body); background: #fff; color: var(--text); transition: border-color var(--t-fast);
}
.sportshop-showcase input[type="text"]:focus, .sportshop-showcase input[type="password"]:focus, .sportshop-showcase input[type="email"]:focus, .sportshop-showcase textarea:focus, .basketitems input:focus { border-color: var(--ink); }
.sportshop-showcase input[type="submit"], .sportshop-showcase button[type="submit"], .sportshop-showcase .button, .basketitems input[type="submit"], .basketitems .btn {
  min-height: 50px; padding: 0 26px; border: 0; border-radius: var(--pill); background: var(--ink); color: #fff; font: 600 15.5px var(--f-body); cursor: pointer; transition: background var(--t);
}
.sportshop-showcase input[type="submit"]:hover, .basketitems input[type="submit"]:hover { background: var(--red); }
.basketitems input[type="radio"], .sportshop-showcase input[type="radio"] { accent-color: var(--ink); width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; }
.basketitems label { cursor: pointer; }
.mod_search_big form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 20px; }
.mod_search_big .query { width: min(520px, 100%) !important; }
.mod_search_big input[type="button"] { display: none; }

/* корзина: шаги, количество, итог */
#basket-order > p { max-width: 760px; color: var(--muted); font-size: 15px; margin: 0 0 28px; }
#basket-order > p em { font-style: normal; }
#basket-order > table:first-child { width: auto; margin-bottom: 22px; }
#basket-order > table:first-child tr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#basket-order > table:first-child th, #basket-order > table:first-child td { display: inline-flex; border: 0; padding: 0; font-size: 14.5px; letter-spacing: 0; text-transform: none; }
#basket-order > table:first-child th { width: 30px; height: 30px; border-radius: 50%; justify-content: center; align-items: center; background: var(--mist); color: var(--muted); font-weight: 700; }
#basket-order > table:first-child th.active { background: var(--ink); color: var(--volt); }
#basket-order > table:first-child td { color: var(--muted); font-weight: 500; margin-right: 18px; }
#basket-order > table:first-child td.active { color: var(--text); font-weight: 600; }
.basketitems br { display: none; }
.basketitems form > table { margin-bottom: 36px; }
.basketitems .table-head { font: 700 18px var(--f-display) !important; letter-spacing: -.01em !important; color: var(--text) !important; text-transform: uppercase; padding: 0 10px 14px !important; }
.basketitems .roll_item { display: inline-grid; place-items: center; width: 34px; height: 34px; vertical-align: middle; border-radius: 50%; border: 1.5px solid var(--line); cursor: pointer; transition: border-color var(--t-fast); }
.basketitems .roll_item:hover { border-color: var(--ink); }
.basketitems .upitem::before { content: "+"; font-weight: 700; }
.basketitems .downitem::before { content: "−"; font-weight: 700; }
.basketitems td input[id^="product_quantity_"] { width: 46px; min-height: 34px; padding: 0; margin: 0 6px; text-align: center; border: 0; font-weight: 700; vertical-align: middle; }
.basketitems td:has(> .roll_item) { white-space: nowrap; direction: rtl; text-align: center; }
.basketitems .image_delete { width: 18px; opacity: .5; transition: opacity var(--t-fast); }
.basketitems .image_delete:hover { opacity: 1; }
.basketitems tfoot th { font: 800 clamp(26px, 3vw, 36px) var(--f-display) !important; letter-spacing: -.02em !important; color: var(--text) !important; text-transform: none !important; border: 0; padding-top: 16px !important; }
.basketitems tfoot th::after { content: " ₽"; }
.basketitems tr:has(input[type="radio"]:checked) td { background: var(--mist); }
.basketitems td strong { font-weight: 600; }
/* мини-корзина в шапке */
.ace-cart .cart-block-list li.product-info { display: flex; gap: 12px; align-items: center; }
.ace-cart .p-left { display: flex; align-items: center; gap: 10px; flex: none; }
.ace-cart .p-left img[id^="basket-delete"] { width: 16px; opacity: .45; cursor: pointer; }
.ace-cart .p-left img[id^="basket-delete"]:hover { opacity: 1; }
.ace-cart .p-left .img-responsive { width: 56px; height: 56px; object-fit: contain; background: var(--mist); border-radius: var(--r-xs); mix-blend-mode: multiply; }
.ace-cart .p-right p { margin: 0; font-size: 13.5px; line-height: 1.35; }
.ace-cart .p-right .p-name { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ace-cart .p-right .p-rice { font-weight: 700; margin-top: 4px; }

/* Контакты и текстовые страницы CMS */
.sportshop-showcase .row h1, .sportshop-showcase > .row h1 { font: 800 clamp(30px, 4vw, 56px)/.95 var(--f-display); text-transform: uppercase; letter-spacing: -.03em; margin: 8px 0 28px; }
.sportshop-showcase .col-md-3 { font-size: 15.5px; line-height: 1.6; color: #2D323C; }
.sportshop-showcase .col-md-3 strong { display: inline-block; margin-top: 6px; font: 600 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
@media (min-width: 992px) { .sportshop-showcase .row:has(> .col-md-9 iframe) > .col-md-3 { width: 33% !important; } .sportshop-showcase .row:has(> .col-md-9 iframe) > .col-md-9 { width: 67% !important; } }
/* Контакты */
.sportshop-showcase iframe { width: 100%; border-radius: var(--r-lg); min-height: 420px; filter: grayscale(.2); }

/* закрытие поиска */
.ace-search.is-closing { animation: ace-lift .18s var(--ease) forwards; }
@keyframes ace-lift { to { opacity: 0; transform: translateY(-8px); } }
.btn-add-cart.is-disabled, .btn-add-cart:disabled { background: var(--mist-2); color: var(--muted); cursor: not-allowed; }
#numBox a { color: var(--blue); font-weight: 600; }

/* переходы между страницами (Chrome/Edge/Safari 18+; остальные браузеры игнорируют) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .ace-header { view-transition-name: ace-header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: var(--ease); }
}

/* на сенсорных экранах hover-эффекты не «залипают» */
@media (hover: none) {
  .ace-card:hover .ace-card__media img, .ace-dir:hover img, .ace-mega__feature:hover img, .ace-panel.is-open img { transform: none; }
  .ace-pick:hover { transform: none; box-shadow: none; }
  .ace-dir:hover::after { opacity: 0; }
}

/* ---------- 10. Адаптив ---------- */
@media (max-width: 1240px) {
  .ace-searchbox { width: 210px; }
  .ace-nav__link { padding: 0 9px; font-size: 14px; }
  .ace-nav__item--plain { display: none; }
}
@media (max-width: 1100px) {
  .ace-nav, .ace-searchbox { display: none; }
  .ace-burger, .ace-search-mob { display: inline-grid; }
  .ace-bar__in { gap: 8px; }
  .ace-logo { margin-right: auto; }
  .ace-topbar__hours { display: none; }
  .ace-search__mobinput { display: flex; margin-bottom: 14px; }
  .ace-search__mobinput .ace-searchbox { display: flex; width: 100%; }
  .ace-search__mobinput .ace-searchbox:focus-within { width: 100%; }
  .ace-rail > ul { grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; }
  .ace-volley__grid { grid-template-columns: 1fr; grid-template-areas: "copy" "media" "products"; }
  .ace-volley__media { min-height: 0; aspect-ratio: 21 / 9; }
  .ace-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
  .ace-hero__cta .ace-btn--lg { padding: 0 24px; }
  .ace-hero__title { font-size: clamp(46px, 6.2vw, 72px); }
  .ace-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ace-header { top: 0; }
  .ace-topbar { display: none; }
  .ace-bar__in { height: 64px; }
  .ace-logo img { height: 36px; }

  .ace-hero { min-height: 0; display: block; }
  .ace-hero__grid { grid-template-columns: 1fr; padding-top: 8px; padding-bottom: 64px; gap: 0; }
  .ace-hero__stage { order: -1; justify-self: center; width: min(78vw, 440px); margin: 0 auto -6%; }
  .ace-mark, .ace-court { display: none; }
  .ace-hero__word { -webkit-text-stroke-color: rgba(255, 255, 255, .05); }
  .ace-eyebrow { letter-spacing: .1em; font-size: 11.5px; }
  .ace-hero__scroll { display: none; }
  .ace-hero__word { bottom: auto; top: 30%; font-size: 30vw; }

  .ace-dirs__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 230px; }
  .ace-dir--volley { grid-column: 1 / -1; grid-row: auto; min-height: 320px; }
  .ace-dir--run, .ace-dir--shoes, .ace-dir--wear, .ace-dir--med, .ace-dir--acc { grid-column: auto; grid-row: auto; }
  .ace-dir--wear img { inset: 0 0 35% 0; height: 65%; }

  .ace-panels { flex-direction: column; height: auto; }
  .ace-panel, .ace-panel.is-open { flex: none; min-height: 280px; }
  .ace-panel img { filter: none; }
  .ace-panel .ace-panel__links { max-height: 200px; opacity: 1; }
  .ace-panel::after { transform: none; }

  .ace-brandgrid { grid-template-columns: repeat(2, 1fr); }
  .ace-picks { grid-template-columns: 1fr; }
  .ace-visit__grid { grid-template-columns: 1fr; }
  .ace-visit__cta { grid-column: auto; }

  /* каталог: фильтры в выезжающей панели */
  #columns > .row.ace-has-filters, #columns > .row:has(> #left_column) { grid-template-columns: 1fr; gap: 0; }
  #columns #left_column {
    position: fixed; z-index: 210; inset: 0 0 0 auto; width: min(400px, 100%) !important; max-height: none; top: 0;
    background: #fff; padding: 0 20px 100px; overflow: auto; transform: translateX(100%); visibility: hidden;
    transition: transform var(--t) var(--ease), visibility 0s linear var(--t);
  }
  body.is-filters #columns #left_column { transform: none; visibility: visible; transition: transform var(--t) var(--ease); box-shadow: -30px 0 60px rgba(0, 0, 0, .2); }
  body.is-filters::after { content: ""; position: fixed; inset: 0; z-index: 205; background: rgba(14, 16, 20, .5); animation: ace-fade var(--t); }
  .ace-filter-close { display: flex; position: sticky; top: 0; z-index: 2; justify-content: space-between; align-items: center; height: 64px; margin: 0 -20px 8px; padding: 0 12px 0 20px; background: #fff; border-bottom: 1px solid var(--line); font: 700 18px var(--f-display); text-transform: uppercase; }
  .ace-filter-apply { display: flex; position: fixed; left: auto; right: 0; bottom: 0; width: min(400px, 100%); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .ace-filter-apply .ace-btn { width: 100%; }
  .ace-toolbar__filters { display: inline-flex; }
  .ace-toolbar__count { width: 100%; order: 3; margin: 0; }
  .products > .product-list, .products > ul, .ace-skelgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .products > ul.list { grid-template-columns: 1fr; }
  .ace-toolbar { gap: 10px; }
  .ace-toolbar__filters, .ace-select { flex: 1; }
  .ace-toolbar__filters { min-height: 44px; padding: 0 14px; font-size: 14.5px; }
  .ace-select select { width: 100%; height: 44px; }
  .display-product-option { display: none; }
  .products > ul.list .ace-card__media { width: 120px; }

  /* товар */
  #product .primary-box { grid-template-columns: 1fr; }
  .pb-right-column { position: static; }
  .ace-buybar {
    display: flex; position: fixed; z-index: 150; left: 0; right: 0; bottom: 0; align-items: center; gap: 14px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform var(--t) var(--ease);
  }
  .ace-buybar.is-on { transform: none; }
  .ace-buybar__price { display: grid; line-height: 1.15; font-variant-numeric: tabular-nums; }
  .ace-buybar__price b { font: 800 20px var(--f-display); }
  .ace-buybar__price small { font-size: 12.5px; color: var(--muted); }
  .ace-buybar .ace-btn { flex: 1; min-height: 52px; }
  body.has-buybar .ace-toast { bottom: 92px; }

  .ace-footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .ace-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ace-hero__cta .ace-btn { flex: 1 1 100%; }
  .ace-scenes { gap: 0; }
  .ace-scenes a { margin-right: 6px; padding-right: 8px; font-size: 14px; }
  .ace-dirs__grid { grid-template-columns: 1fr; grid-auto-rows: 210px; gap: 10px; }
  .ace-dir--volley { min-height: 280px; }
  .ace-dir--light img { inset: 0 0 0 38%; width: 62%; }
  .ace-dir--wear img { inset: 0 0 0 38%; width: 62%; height: 100%; }
  .ace-rail > ul, .ace-volley__products .ace-rail > ul { grid-auto-columns: 62%; gap: 12px; margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); scroll-padding-left: 0; }
  .ace-skeleton-row { grid-template-columns: repeat(2, 1fr) !important; }
  .ace-skeleton-row li:nth-child(n+3) { display: none; }
  .ace-railnav { display: none; }
  .ace-card__name { font-size: 14px; }
  .ace-card__price b { font-size: 16px; }
  .ace-card__go { display: none; }
  .ace-tabs { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); scrollbar-width: none; }
  .ace-tabs button { flex: none; }
  .ace-visit__info { grid-template-columns: 1fr; }
  .ace-search__results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .ace-footer__top { grid-template-columns: 1fr; }
  .ace-toast { left: 16px; right: 16px; width: auto; transform: translate(0, calc(100% + 48px)); max-width: none; }
  .ace-toast.is-on { transform: none; }
  .sizeN { min-width: 54px; height: 48px; }
  .basketitems table, .basketitems thead, .basketitems tbody, .basketitems tr, .basketitems td { display: block; width: 100%; }
  .basketitems thead { display: none; }
  .basketitems tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .basketitems td { border: 0; padding: 4px 0; }
}

@media (max-width: 900px) {
  .ace-panel:not(.is-open) .ace-panel__title { font-size: clamp(20px, 5.4vw, 28px); }
  .ace-panel:not(.is-open) .ace-panel__num { font-size: 12px; }
}

/* ---------- 11. Уменьшенное движение ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ace-hero__scroll { display: none; }
}

/* ---------- 12. Печать ---------- */
@media print {
  .ace-header, .ace-footer, .ace-buybar, .ace-toast, .page-product-box, .form-action { display: none !important; }
}

/* ── живой сайт: главная выводится внутри шаблона рубрики «Основные страницы» ── */
.ace-bleed, .content:has(> .container > .ace-home), .sportshop-showcase:has(> .ace-home) { max-width: none !important; padding: 0 !important; margin: 0 !important; width: 100%; }
.ace-main > .content:has(.ace-home) { padding: 0 !important; }
.ace-rail .page-heading { display: none; }
