:root {
  --bg: #0b0f14;
  --bg-elev: #11161d;
  --card: #151c25;
  --card-2: #10151d;
  --line: #1e2836;
  --text: #eaf0f6;
  --muted: #8c98a8;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --accent-glow: rgba(34, 197, 94, 0.35);
  --on-accent: #05230f;

  --r-common: #94a3b8;
  --r-common-bg: rgba(148, 163, 184, 0.16);
  --r-common-bd: rgba(148, 163, 184, 0.45);
  --r-uncommon: #a3e635;
  --r-uncommon-bg: rgba(163, 230, 53, 0.14);
  --r-uncommon-bd: rgba(163, 230, 53, 0.45);
  --r-rare: #38bdf8;
  --r-rare-bg: rgba(56, 189, 248, 0.14);
  --r-rare-bd: rgba(56, 189, 248, 0.45);
  --r-ultra-rare: #c084fc;
  --r-ultra-rare-bg: rgba(192, 132, 252, 0.15);
  --r-ultra-rare-bd: rgba(192, 132, 252, 0.45);
  --r-legendary: #fbbf24;
  --r-legendary-bg: rgba(251, 191, 36, 0.16);
  --r-legendary-bd: rgba(251, 191, 36, 0.5);

  --radius: 18px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.4);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(900px 420px at 50% -160px, rgba(34, 197, 94, 0.09), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: max(env(safe-area-inset-bottom), 12px);
}

button {
  font-family: inherit;
  cursor: pointer;
}

.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ── Шапка ─────────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: rgba(11, 15, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  border: 1px solid var(--line);
  background-color: var(--card-2);
  color: var(--text);
  transition: transform 0.12s ease;
}
.icon-btn:active { transform: scale(0.92); }

.cart-btn { margin-left: auto; }

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #34d77b, var(--accent-dark));
  box-shadow: 0 3px 12px var(--accent-glow);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 800;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-icon {
  font-size: 24px;
  filter: drop-shadow(0 4px 10px var(--accent-glow));
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-text b {
  font-size: 14px;
  letter-spacing: 0.09em;
  background: linear-gradient(90deg, #fff, #b7ffd6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text small {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── Поиск ─────────────────────────────────────────────── */

.greet {
  padding: 14px 16px 0;
  font-size: 13.5px;
  color: var(--muted);
}
.greet b { color: var(--text); }

.search-wrap {
  position: relative;
  margin: 14px 16px 10px;
}
.search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  translate: 0 -50%;
  color: var(--muted);
  pointer-events: none;
}
#searchInput {
  width: 100%;
  height: 46px;
  padding: 0 40px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#searchInput::placeholder { color: #5d6b7d; }
#searchInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
#searchInput::-webkit-search-cancel-button { display: none; }

.clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  translate: 0 -50%;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 9px;
  background: #1b2530;
  color: var(--muted);
  font-size: 13px;
}
.clear-btn:active { color: var(--text); }

/* ── Чипы фильтров ─────────────────────────────────────── */

.chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 16px;
  scrollbar-width: none;
}
.chips-scroll::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: #c3ceda;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rc, var(--muted));
  box-shadow: 0 0 8px var(--rc, transparent);
}
.chip.active {
  background: linear-gradient(135deg, #34d77b, var(--accent-dark));
  border-color: transparent;
  color: var(--on-accent);
  font-weight: 800;
  box-shadow: 0 6px 18px var(--accent-glow);
}
.chip.active .dot { background: var(--on-accent); box-shadow: none; }

.rar-common      { --rc: var(--r-common);      --rc-bg: var(--r-common-bg);      --rc-bd: var(--r-common-bd); }
.rar-uncommon    { --rc: var(--r-uncommon);    --rc-bg: var(--r-uncommon-bg);    --rc-bd: var(--r-uncommon-bd); }
.rar-rare        { --rc: var(--r-rare);        --rc-bg: var(--r-rare-bg);        --rc-bd: var(--r-rare-bd); }
.rar-ultra-rare  { --rc: var(--r-ultra-rare);  --rc-bg: var(--r-ultra-rare-bg);  --rc-bd: var(--r-ultra-rare-bd); }
.rar-legendary   { --rc: var(--r-legendary);   --rc-bg: var(--r-legendary-bg);   --rc-bd: var(--r-legendary-bd); }

/* ── Тулбар: сортировка + вид ──────────────────────────── */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 16px 2px;
}

.sort-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.sort-wrap::after {
  content: "▾";
  position: absolute;
  right: 13px;
  top: 50%;
  translate: 0 -50%;
  color: var(--muted);
  pointer-events: none;
  font-size: 13px;
}
#sortSelect {
  width: 100%;
  height: 38px;
  appearance: none;
  -webkit-appearance: none;
  padding: 0 32px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
}

.view-toggle {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-2);
}
.vt-btn {
  width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}
.vt-btn.active {
  background: linear-gradient(135deg, #34d77b, var(--accent-dark));
  color: var(--on-accent);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.result-count {
  padding: 10px 18px 0;
  font-size: 12px;
  color: var(--muted);
}

/* ── Каталог ───────────────────────────────────────────── */

.catalog.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
  padding: 10px 16px 110px;
}
.catalog.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 16px 110px;
}

.pet-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(168deg, #18202b, #10151d 62%);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.pet-card:active { transform: scale(0.97); }

.pet-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(95% 85% at 50% 8%, var(--rc-bg, rgba(255, 255, 255, 0.05)), transparent 72%),
    #0d1218;
  border-bottom: 1px solid var(--line);
}
.pet-media img {
  max-width: 84%;
  max-height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.5));
}
.fallback-emoji { font-size: 54px; line-height: 1; }

.badge-rarity {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--rc-bg, #222c39);
  border: 1px solid var(--rc-bd, #33404f);
  color: var(--rc, var(--text));
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pet-media .badge-rarity {
  position: absolute;
  top: 8px;
  left: 8px;
}

.pet-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px 12px;
  flex: 1;
}
.name-en {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.name-ru {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #0d131a;
  border: 1px solid #212c3a;
  font-size: 11px;
  color: var(--muted);
}
.price-pill b { color: var(--text); font-size: 11.5px; }
.price-pill.rub b { color: #7ee2a8; }

.add-btn {
  margin-top: auto;
  padding-top: 9px;
}
.add-btn button {
  width: 100%;
  height: 34px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #34d77b, var(--accent-dark));
  box-shadow: 0 6px 16px var(--accent-glow);
  color: var(--on-accent);
  font-size: 12.5px;
  font-weight: 800;
  transition: transform 0.12s ease;
}
.add-btn button:active { transform: scale(0.95); }

/* Список */
.catalog.list .pet-card {
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  padding: 10px;
}
.catalog.list .pet-media {
  width: 86px;
  aspect-ratio: auto;
  height: auto;
  min-height: 86px;
  flex: none;
  border: none;
  border-radius: 13px;
}
.catalog.list .pet-media img { max-width: 78%; max-height: 78%; }
.catalog.list .pet-media .badge-rarity {
  position: static;
}
.catalog.list .name-en,
.catalog.list .name-ru {
  white-space: normal;
}
.catalog.list .add-btn { padding-top: 6px; }
.catalog.list .add-btn button { width: auto; padding: 0 14px; }

/* ── Пустые состояния и загрузка ───────────────────────── */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 48px 24px;
  text-align: center;
}
.empty-emoji { font-size: 52px; }
.empty-state b { font-size: 16px; }
.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 260px;
}

.loader-wrap {
  display: grid;
  place-items: center;
  padding: 70px 0 120px;
}
.loader {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid #223041;
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Нижняя панель заявки ──────────────────────────────── */

.checkout-bar {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  translate: -50% 0;
  z-index: 30;
  width: min(calc(100% - 32px), 520px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: linear-gradient(150deg, #15251c, #0f1721 65%);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 10px 34px var(--accent-glow);
  animation: riseUp 0.22s ease;
}
.cb-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.cb-info b { font-size: 14px; white-space: nowrap; }
.cb-info span { font-size: 12.5px; color: #7ee2a8; font-weight: 700; }
.cb-go {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #34d77b, var(--accent-dark));
  box-shadow: 0 8px 20px var(--accent-glow);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 800;
}
.cb-go:active { transform: scale(0.96); }

@keyframes riseUp {
  from { opacity: 0; translate: -50% 16px; }
  to   { opacity: 1; translate: -50% 0; }
}

/* ── Корзина ───────────────────────────────────────────── */

#cartView {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 64px);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 6px;
}
.cart-head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0.01em;
}

.link-btn {
  border: none;
  background: none;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
}
.link-btn:active { opacity: 0.6; }

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 16px 16px;
}

.cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(168deg, #161e29, #10151d 70%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.cart-row .pet-media {
  width: 64px;
  height: 64px;
  aspect-ratio: auto;
  flex: none;
  border: none;
  border-bottom: none;
  border-radius: 12px;
}
.cart-row .cart-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.cart-row .cart-mid .badge-rarity { align-self: flex-start; }
.cart-row .cart-price { font-size: 12.5px; color: #7ee2a8; font-weight: 700; }
.cart-row .variant-cart { font-size: 12px; color: #aab7c7; }
.cart-row .stepper { flex: none; }
.cart-row .pet-media .badge-rarity { display: none; }
.cart-row .fallback-emoji { font-size: 32px; }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d131a;
  overflow: hidden;
}
.stepper button {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}
.stepper button:active { background: #1a2530; }
.stepper span {
  min-width: 34px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
}

.cart-footer {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px calc(env(safe-area-inset-bottom) + 16px);
  background: linear-gradient(180deg, transparent, var(--bg) 26%);
}
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(17, 22, 29, 0.9);
}
.checkout-form h3 {
  margin: 0 0 2px;
  font-size: 15px;
}
.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}
.field-label input,
.field-label select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #0d131a;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}
.field-label input::placeholder { color: #64748b; }
.field-label input:focus,
.field-label select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}
.form-error {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  font-size: 12.5px;
  line-height: 1.35;
}
.hint {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.07);
  color: #fde68a;
  font-size: 12.5px;
  line-height: 1.45;
}
.hint.warn {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.07);
  color: #fca5a5;
}
.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 15px;
  color: var(--muted);
}
.total-row b {
  font-size: 26px;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #fff, #8ff0bb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Кнопки-акценты ────────────────────────────────────── */

.btn-accent {
  border: none;
  border-radius: 15px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #34d77b, var(--accent) 45%, var(--accent-dark));
  box-shadow: 0 10px 26px var(--accent-glow);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-accent.big { width: 100%; }
.btn-accent:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 5px 14px var(--accent-glow);
}
.btn-accent:disabled {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

/* ── Детальный экран (шторка) ──────────────────────────── */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 11, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } }

.sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  overflow-y: auto;
  border-radius: 26px 26px 0 0;
  border: 1px solid #232f3e;
  border-bottom: none;
  background: var(--bg-elev);
  animation: sheetUp 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
  padding-bottom: max(env(safe-area-inset-bottom), 18px);
}
@keyframes sheetUp {
  from { transform: translateY(60px); opacity: 0.4; }
  to   { transform: translateY(0); opacity: 1; }
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 11px;
  background: rgba(13, 19, 26, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--muted);
  font-size: 14px;
}
.sheet-close:active { color: var(--text); }

.sheet-media {
  height: 230px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 90% at 50% 10%, var(--rc-bg, rgba(255, 255, 255, 0.06)), transparent 75%),
    #0d1218;
  border-bottom: 1px solid var(--line);
}
.sheet-media img {
  max-width: 62%;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55));
}
.sheet-media .fallback-emoji { font-size: 96px; }

.sheet-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 4px;
}
.sheet-titles h2 {
  margin: 0 0 2px;
  font-size: 24px;
  line-height: 1.15;
}
.sheet-titles p {
  margin: 0 0 10px;
  font-size: 14px;
}

.price-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.price-block {
  padding: 11px 8px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #0d131a;
  text-align: center;
}
.price-block small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.price-block b { font-size: 16.5px; }
.price-block.rub {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
}
.price-block.rub b { color: #7ee2a8; }

.variant-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}
.variant-label select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d131a;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.note {
  margin: 0;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0d131a;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.sheet-body .stepper { align-self: center; }
.sheet-body .btn-accent { margin-top: 2px; }

/* ── Тост ──────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 104px;
  translate: -50% 0;
  z-index: 60;
  max-width: min(calc(100% - 40px), 420px);
  padding: 11px 18px;
  border-radius: 14px;
  border: 1px solid #27374a;
  background: rgba(17, 24, 33, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 13.5px;
  text-align: center;
  animation: toastIn 0.22s ease;
}
@keyframes toastIn {
  from { opacity: 0; translate: -50% 10px; }
  to   { opacity: 1; translate: -50% 0; }
}

/* Мелкие экраны */
@media (max-width: 350px) {
  .catalog.grid { grid-template-columns: 1fr 1fr; }
  .brand-text small { display: none; }
}
