/* ============ OBUVNOY MAGNAT — собственный стиль поверх базы ============ */
:root {
  --bg: #f2f2f5; --bg-2: #ebebf0; --card: #ffffff; --ink: #121218; --ink-2: #6e6e7a; --line: #e2e2e8;
  --sale: #ea2ad6; --r: 22px;
  --font: 'Manrope', system-ui, sans-serif; --display: 'Unbounded', system-ui, sans-serif;
  --grad: linear-gradient(90deg, #16c6f4, #4b6df6 35%, #9b4cf3 70%, #ea2ad6);
  --hdr: 84px;
}
body { background: var(--bg); font: 500 15px/1.55 var(--font); }
.muted { color: var(--ink-2); }
.up, .field label, .filters h4, .table th, .admin__nav a, .panel h3, .drawer__head h3, .tabs button, .hdr__nav { letter-spacing: 0; text-transform: none; }

/* --- header: плавающая капсула --- */
.hdr { top: 12px; left: 12px; right: 12px; height: 60px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; background: rgba(255,255,255,.78); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 8px 30px -12px rgba(30,20,60,.18); }
.hdr__bar { grid-template-columns: auto 1fr auto; padding: 0 10px 0 20px; }
.hdr__logo img { height: 40px; }
.hdr__nav { justify-self: center; gap: 4px; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.hdr__nav a { padding: 8px 14px; border: 0; border-radius: 999px; transition: background .2s; }
.hdr__nav a:hover, .hdr__nav a.active { background: var(--bg-2); }
.lang { background: var(--bg-2); border-radius: 999px; padding: 3px; margin-right: 6px; }
.lang button { padding: 5px 10px; border-radius: 999px; opacity: .55; font-weight: 700; }
.lang button.on { background: #fff; opacity: 1; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.hdr__icon { border-radius: 50%; transition: background .2s; }
.hdr__icon:hover { background: var(--bg-2); }
#cartBtn { background: var(--ink); color: #fff; width: 44px; height: 44px; }
#cartBtn:hover { background: #000; }
.cart-count { top: -2px; right: -2px; background: var(--sale); }
.cart-count::before { color: #fff; }
main { padding-top: calc(var(--hdr) + 12px); }

/* --- buttons / inputs --- */
.btn { height: 50px; padding: 0 26px; border-radius: 999px; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 700; border: 0; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--ghost { box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; color: var(--ink); }
.btn--grad { background: var(--grad); background-size: 200% 100%; transition: background-position .5s; }
.btn--grad:hover { background-position: 100% 0; opacity: 1; }
.btn--grad span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
.input { border-radius: 14px; border: 1.5px solid var(--line); background: #fff; }
.input:focus { border-color: #9b4cf3; box-shadow: 0 0 0 4px rgba(155,76,243,.12); }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.page-title, .sec__head h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(22px, 2.6vw, 32px); }
.page-title sup { font-family: var(--font); font-size: 13px; color: var(--ink-2); font-weight: 700; margin-left: 4px; }

/* --- hero --- */
.mh { padding-top: 6px; }
.mh__card { position: relative; overflow: hidden; border-radius: 32px; background:
  radial-gradient(60% 70% at 85% 10%, rgba(22,198,244,.22), transparent 60%),
  radial-gradient(50% 60% at 10% 90%, rgba(234,42,214,.16), transparent 60%),
  radial-gradient(60% 60% at 70% 90%, rgba(155,76,243,.18), transparent 60%), #fff;
  min-height: calc(100svh - var(--hdr) - 40px); display: grid; grid-template-rows: auto 1fr auto; padding: 22px 28px 28px; isolation: isolate; }
.mh__word { position: absolute; z-index: -1; left: 50%; top: 46%; translate: -50% -50%; font: 900 clamp(90px, 22vw, 340px)/1 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(18,18,24,.08); white-space: nowrap; user-select: none; }
.mh.go .mh__word { animation: wordin 1.4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes wordin { from { letter-spacing: .1em; opacity: 0; } }
.mh__top { display: flex; justify-content: space-between; align-items: start; }
.mh__pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.05); font-size: 13px; font-weight: 700; }
.mh__pill i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.mhero__badge { width: 110px; height: 110px; animation: spin 18s linear infinite; }
.mhero__badge text { font-size: 14px; font-weight: 800; fill: var(--ink); font-family: var(--font); }
@keyframes spin { to { transform: rotate(360deg); } }
.mhero__stage { position: relative; align-self: center; width: min(760px, 100%); margin: 0 auto; aspect-ratio: 2.1; perspective: 900px; }
.mhero__shoe { position: absolute; inset: 0 0 8%; transform: translateX(-140%) rotate(-8deg); }
.mh.go .mhero__shoe { animation: runin 1.1s cubic-bezier(.2,.9,.25,1.15) .2s forwards, float 4.5s ease-in-out 2.6s infinite; }
@keyframes runin { 0% { transform: translateX(-140%) rotate(-8deg); } 70% { transform: translateX(4%) rotate(3deg); } 100% { transform: translateX(0) rotate(0); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); } 50% { transform: translateY(-14px) rotate(-2deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); } }
.shoe { width: 100%; height: 100%; overflow: visible; }
.shoe .d { stroke-dasharray: 1; stroke-dashoffset: 1; }
.mh.go .shoe .d { animation: draw 1.2s cubic-bezier(.6,0,.2,1) forwards; }
.mh.go .shoe .d1 { animation-delay: .5s; } .mh.go .shoe .d2 { animation-delay: .65s; } .mh.go .shoe .d3 { animation-delay: .75s; }
.mh.go .shoe .d4 { animation-delay: 1s; } .mh.go .shoe .d5 { animation-delay: 1.1s; } .mh.go .shoe .d6 { animation-delay: 1.2s; }
.mh.go .shoe .d7, .mh.go .shoe .d8 { animation-delay: 1.3s; } .mh.go .shoe .d9 { animation-delay: 1.45s; } .mh.go .shoe .d11 { animation-delay: 1.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.shoe__fill { opacity: 0; }
.mh.go .shoe__fill { animation: fillin 1s ease 2s forwards; }
@keyframes fillin { to { opacity: 1; } }
.lace-end { transform-origin: 300px 114px; }
.mh.go .lace-end { animation: draw 1.2s cubic-bezier(.6,0,.2,1) 1.6s forwards, lace 1.6s ease-in-out 3s infinite; }
@keyframes lace { 50% { transform: rotate(-14deg); } }
.mhero__shadow { position: absolute; left: 12%; right: 8%; bottom: 2%; height: 20px; border-radius: 50%; background: radial-gradient(closest-side, rgba(30,10,60,.2), transparent); opacity: 0; }
.mh.go .mhero__shadow { animation: fillin .6s ease 1s forwards, shadow 4.5s ease-in-out 2.6s infinite; }
@keyframes shadow { 50% { transform: scaleX(.86); opacity: .7; } }
.mhero__speed { position: absolute; left: -4%; top: 30%; width: 38%; height: 32%; display: grid; align-content: space-between; opacity: 0; }
.mhero__speed i { display: block; height: 5px; border-radius: 5px; background: var(--grad); }
.mhero__speed i:nth-child(2) { width: 70%; margin-left: 30%; } .mhero__speed i:nth-child(3) { width: 50%; margin-left: 50%; }
.mh.go .mhero__speed { animation: speed 1.3s ease .25s forwards; }
@keyframes speed { 0% { opacity: 0; transform: translateX(-60%); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(30%) scaleX(.2); } }
.mh__bottom { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.mh h1 { font: 800 clamp(40px, 7vw, 96px)/.9 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradmove 6s linear infinite; }
@keyframes gradmove { to { background-position: -200% 0; } }
.mh__side { max-width: 360px; }
.mh__side p { color: var(--ink-2); margin-bottom: 18px; }
.mh__cta { display: flex; gap: 8px; flex-wrap: wrap; }
.mh h1, .mh__side, .mh__top { opacity: 0; transform: translateY(18px); }
.mh.go h1, .mh.go .mh__side, .mh.go .mh__top { opacity: 1; transform: none; transition: opacity .9s, transform .9s cubic-bezier(.2,.8,.2,1); }
.mh.go h1 { transition-delay: 1s; } .mh.go .mh__side { transition-delay: 1.2s; }

/* --- catalog --- */
.shop { display: block; padding: 56px 0 90px; }
.shop__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.shop__tools { display: flex; gap: 8px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink-2); min-width: 240px; }
.search input { border: 0; outline: none; background: none; width: 100%; color: var(--ink); }
.shop__tools select, .shop__top select { height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; font-weight: 700; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 10px 18px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; transition: background .2s, color .2s; }
.chip:hover { background: var(--bg-2); }
.chip.on { background: var(--ink); color: #fff; }
.chips--sub .chip { padding: 7px 14px; font-size: 13px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.chips--sub .chip.on { background: var(--ink); box-shadow: none; }
.chip--flag.on { background: var(--grad) !important; }
.chips__sep { flex-shrink: 0; width: 1px; background: var(--line); margin: 4px 4px; }
.grid.grid--shop { margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { background: var(--card); border-radius: var(--r); padding: 8px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(40,20,80,.35); }
.card__img { border-radius: 16px; aspect-ratio: 1; background: #f6f6f8; margin: 0; }
.card__img img { object-fit: contain; padding: 6%; }
.ph { background: linear-gradient(135deg, #f4f4f7, #ececf2); }
.ph span { font-family: var(--display); font-size: 15px; color: #c9c9d3; }
.card__body { padding: 12px 8px 6px; }
.card__brand { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 700; color: #9b4cf3; }
.card__title { font-weight: 700; font-size: 15px; line-height: 1.3; margin: 2px 0 8px; }
.card__sz { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.card__sz span { padding: 2px 7px; border-radius: 999px; background: var(--bg); font-size: 11px; font-weight: 700; color: var(--ink-2); }
.card__foot { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 800; font-size: 16px; }
.price .red { color: var(--sale); }
.card__go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-weight: 800; transition: background .2s, color .2s; }
.card:hover .card__go { background: var(--ink); color: #fff; }
.badges { top: 14px; left: 14px; }
.badge { border-radius: 999px; padding: 5px 9px; font-size: 11px; }
.badge--sale { background: var(--grad); }

/* --- product page --- */
.pdp__gallery > div { border-radius: var(--r); background: #fff; overflow: hidden; }
.pdp__gallery img { object-fit: contain; padding: 4%; }
.pdp__info { background: #fff; border-radius: var(--r); padding: 26px; }
.pdp h1 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
.sizes { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.size { border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; }
.size.on { background: var(--ink); border-color: var(--ink); }
.size.off { background: var(--bg); border-color: transparent; }

/* --- checkout / panels --- */
.summary, .panel, .order, .empty, .kpi, .tabs, .table-wrap { border-radius: var(--r); }
.summary { background: #fff; }
.panel, .order { background: #fff; border-color: transparent; }
.checkout form { background: #fff; border-radius: var(--r); padding: 26px; }
.narrow > *:not(h1) { }
.ac__list { border-radius: 0 0 14px 14px; border: 1.5px solid #9b4cf3; border-top: 0; }
.drawer__panel { border-radius: 24px 0 0 24px; }
.toast { border-radius: 999px; }
.tabs { background: var(--bg-2); border: 0; padding: 4px; }
.tabs button { border: 0; border-radius: 999px; margin: 0; color: var(--ink-2); }
.tabs button.on { background: #fff; color: var(--ink); }
.kpis { background: transparent; border: 0; gap: 10px; }
.kpi { border-radius: var(--r); }
.table-wrap { background: #fff; padding: 6px 12px; }

/* --- footer: тёмный блок --- */
.ftr { margin: 0 12px 12px; border: 0; border-radius: 32px; background: #121218; color: #fff; }
.ftr .muted, .ftr h4 { color: #8d8d9a; }
.ftr__logo { mix-blend-mode: normal; background: #fff; border-radius: 14px; padding: 6px 10px; height: 60px; }
.ftr__bottom { border-color: #26262e; color: #6e6e7a; }
.socials a { border-radius: 50%; border-color: #2c2c35; }
.socials a:hover { background: var(--grad); border-color: transparent; }

@media (max-width: 860px) {
  .hdr { left: 8px; right: 8px; top: 8px; }
  .hdr__bar { grid-template-columns: auto 1fr auto; padding: 0 6px 0 8px; }
  .hdr__logo { justify-self: center; }
  .hdr__nav { top: 76px; left: 8px; right: 8px; border-radius: 24px; padding: 10px; }
  .hdr__nav a { border-bottom: 0; }
  .mh__card { min-height: auto; padding: 16px 16px 22px; border-radius: 26px; }
  .mhero__badge { width: 76px; height: 76px; }
  .mh__bottom { flex-direction: column; align-items: start; }
  .grid.grid--shop { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card { padding: 6px; border-radius: 18px; }
  .card__img { border-radius: 13px; }
  .card__body { padding: 8px 4px 4px; }
  .card__title { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card__sz { display: none; }
  .card__go { width: 28px; height: 28px; }
  .price { font-size: 14px; flex-wrap: wrap; gap: 2px 6px; }
  .search { min-width: 0; flex: 1; }
  .shop__tools { width: 100%; }
  .ftr { border-radius: 26px; margin: 0 8px 8px; }
}
@media (prefers-reduced-motion: reduce) { .mh .mhero__shoe { transform: none; } .shoe .d { stroke-dashoffset: 0; } .shoe__fill, .mh h1, .mh__side, .mh__top { opacity: 1; transform: none; } }
