/* Общая основа для всех вариантов: сброс, переключатель вариантов, всплывающее сообщение. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
.mark { display: inline-block; width: .4em; height: 1em; vertical-align: -.12em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* карточка: подсказка выбрать размер */
@keyframes ss-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.need-size [data-sizes] { animation: ss-shake .4s; }

/* переключатель вариантов */
.ss-switch {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 90;
  display: flex; align-items: center; gap: 2px; padding: 4px;
  font: 500 13px/1 Onest, system-ui, sans-serif; color: #fff;
  background: rgba(18, 18, 20, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 999px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.ss-switch a { padding: 9px 12px; border-radius: 999px; white-space: nowrap; }
.ss-switch a:hover { background: rgba(255, 255, 255, .14); }
.ss-switch .mid b { font-weight: 700; margin-right: 4px; opacity: .6; }

.ss-toast {
  position: fixed; left: 50%; bottom: 72px; z-index: 95; transform: translate(-50%, 16px);
  padding: 12px 18px; border-radius: 999px; background: #111; color: #fff;
  font: 500 14px/1.2 Onest, system-ui, sans-serif; opacity: 0; pointer-events: none;
  transition: .3s cubic-bezier(.2, .8, .2, 1);
}
.ss-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
