/* Системные цвета iOS: светлая и тёмная тема, выбирается по теме Telegram */
:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --card-2: #f2f2f7;
  --label: #000000;
  --secondary: rgba(60, 60, 67, 0.6);
  --tertiary: rgba(60, 60, 67, 0.3);
  --separator: rgba(60, 60, 67, 0.18);
  --fill: rgba(120, 120, 128, 0.12);
  --fill-press: rgba(120, 120, 128, 0.24);
  --material: rgba(249, 249, 249, 0.78);
  --material-strong: rgba(242, 242, 247, 0.92);
  --accent: #007aff;
  --green: #34c759;
  --red: #ff3b30;
  --scrim: rgba(0, 0, 0, 0.32);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
  --t-ui: #007aff;
  --t-dlc: #ff2d55;
  --t-builds: #34c759;
  --t-web: #ff9500;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --press: 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #000000;
  --card: #1c1c1e;
  --card-2: #2c2c2e;
  --label: #ffffff;
  --secondary: rgba(235, 235, 245, 0.6);
  --tertiary: rgba(235, 235, 245, 0.3);
  --separator: rgba(84, 84, 88, 0.6);
  --fill: rgba(118, 118, 128, 0.24);
  --fill-press: rgba(118, 118, 128, 0.4);
  --material: rgba(28, 28, 30, 0.72);
  --material-strong: rgba(28, 28, 30, 0.92);
  /* Оранжевый акцент из интерфейсов GTA5 RP на скриншотах товаров */
  --accent: #ff8a3d;
  --accent-fill: #f26a1b;
  --green: #30d158;
  --red: #ff453a;
  --scrim: rgba(0, 0, 0, 0.6);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --t-ui: #0a84ff;
  --t-dlc: #ff375f;
  --t-builds: #30d158;
  --t-web: #ff9f0a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  background: #000;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: #000;
  color: var(--label);
  font: 400 17px/1.35 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 10px; }

svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

[hidden] { display: none !important; }

/* Страница «уезжает» назад, когда открыт лист или карточка — как в iOS */
.app {
  min-height: 100dvh;
  background: var(--bg);
  transform-origin: 50% 0;
  will-change: transform;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 12px) 0 calc(var(--safe-bottom) + 40px);
}

/* ---------- Навбар и большой заголовок ---------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  height: calc(var(--safe-top) + 46px);
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--material);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 0.5px solid var(--separator);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.navbar.show { opacity: 1; }
.navbar-title { font-weight: 600; font-size: 17px; transform: translateY(6px); transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.navbar.show .navbar-title { transform: none; }

.title-row { display: flex; align-items: center; gap: 10px; padding: 8px 20px 0; }
.large-title {
  flex: 1;
  margin: 0;
  font: 700 34px/1.12 var(--font-display);
  letter-spacing: -0.03em;
  transform-origin: 0 50%;
}

.circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--fill);
  color: var(--accent);
  transition: transform var(--press), background var(--press);
}
.circle-btn svg { width: 20px; height: 20px; }
.circle-btn:active { transform: scale(0.9); background: var(--fill-press); }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.lede { margin: 2px 20px 14px; color: var(--secondary); font-size: 15px; letter-spacing: -0.01em; }

.search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  margin: 0 20px 14px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--fill);
  color: var(--secondary);
}
.search svg { width: 18px; height: 18px; }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  color: var(--label);
  font: 400 17px var(--font);
  letter-spacing: -0.022em;
  outline: none;
}
.search input::placeholder { color: var(--secondary); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- Сегментированный переключатель ---------- */

.segmented-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 20px;
  margin-bottom: 6px;
  overscroll-behavior-x: contain;
}
.segmented-wrap::-webkit-scrollbar { display: none; }

.segmented {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 10px;
  background: var(--fill);
  min-width: 100%;
}
.seg-pill {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
  will-change: transform, width;
}
:root[data-theme="dark"] .seg-pill { background: #636366; }
.seg {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform var(--press);
}
.seg[aria-selected="true"] { font-weight: 600; }
.seg:active { transform: scale(0.95); }

/* ---------- Секции ---------- */

.section { margin-top: 22px; }
.section-title {
  margin: 0 20px 10px;
  font: 700 22px/1.2 var(--font-display);
  letter-spacing: -0.026em;
}

/* Карусель как в App Store: карточки со скриншотами, листается с доводкой */
.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  padding: 2px 20px 18px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }

.feature {
  position: relative;
  flex: 0 0 min(84%, 420px);
  aspect-ratio: 16 / 11;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card-2);
  scroll-snap-align: start;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform var(--press);
}
.feature:active { transform: scale(0.97); }
.feature .media { position: absolute; inset: 0; }
.feature .info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--material);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.feature .info-text { flex: 1; min-width: 0; }
.feature .name { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature .sub { display: block; font-size: 13px; color: var(--secondary); }
.feature .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.feature .badge svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }

.media { overflow: hidden; background: #111; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Сгруппированный список ---------- */

.group {
  margin: 0 16px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}

.item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  position: relative;
  transition: background var(--press);
}
.item:active { background: var(--fill); }
.item + .item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 86px;
  border-top: 0.5px solid var(--separator);
}

.thumb {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  flex: none;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}
.thumb.glyph { display: grid; place-items: center; background: color-mix(in srgb, var(--tint) 20%, #1c1c1e); color: var(--tint); box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--tint) 35%, transparent); }
.thumb.glyph svg { width: 30px; height: 30px; stroke-width: 1.7; }
.thumb .play { position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.5); color: #fff; }
.thumb .play svg { width: 10px; height: 10px; fill: currentColor; stroke: none; }

.item-text { flex: 1; min-width: 0; }
.item-name { display: block; font-size: 16px; font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; line-height: 1.25; }
.item-sub { display: block; font-size: 13px; color: var(--secondary); margin-top: 2px; letter-spacing: -0.005em; }

/* Кнопка-цена как «Загрузить» в App Store */
.price-pill {
  flex: none;
  min-width: 74px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform var(--press), background var(--press);
}
.price-pill:active { transform: scale(0.92); background: var(--fill-press); }
.price-pill.light { background: rgba(255, 255, 255, 0.85); color: #007aff; }
:root[data-theme="dark"] .price-pill.light { background: rgba(255, 255, 255, 0.16); color: var(--accent); }

.empty { padding: 34px 20px; text-align: center; color: var(--secondary); }
.empty b { display: block; color: var(--label); font-size: 17px; font-weight: 600; margin-bottom: 4px; }

.footnote { margin: 14px 32px 0; font-size: 13px; color: var(--secondary); letter-spacing: -0.005em; }

.skeleton { height: 80px; border-bottom: 0.5px solid var(--separator); background: linear-gradient(90deg, transparent, var(--fill), transparent) var(--card); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Затемнение ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 7;
  background: var(--scrim);
  opacity: 0;
  pointer-events: none;
}
.scrim.active { pointer-events: auto; }

/* ---------- Карточка товара (раскрывается из места нажатия) ---------- */

.detail {
  position: fixed;
  inset: 0;
  z-index: 8;
  background: var(--bg);
  transform-origin: 0 0;
  will-change: transform, clip-path;
  overflow: hidden;
}
.detail-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.detail-inner { max-width: 640px; margin: 0 auto; padding-bottom: calc(var(--safe-bottom) + 110px); }

.hero { position: relative; aspect-ratio: 16 / 11; background: #111; }
.hero-track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-track > * { flex: 0 0 100%; scroll-snap-align: start; }
.hero-track img, .hero-track video { width: 100%; height: 100%; object-fit: cover; display: block; background: #111; }
.hero-track video { object-fit: contain; background: #000; }
.hero-glyph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 40%, color-mix(in srgb, var(--tint) 28%, #1c1c1e), #0b0b0c); color: var(--tint); }
.hero-glyph svg { width: 96px; height: 96px; stroke-width: 1.3; opacity: 0.95; }

.dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: none;
}
.dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.45); transition: width 260ms cubic-bezier(0.2, 0.8, 0.2, 1), background 260ms; }
.dots i.on { width: 18px; background: #fff; }

.close-btn {
  position: fixed;
  top: calc(var(--safe-top) + 14px);
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  transition: transform var(--press);
}
.close-btn svg { width: 16px; height: 16px; stroke-width: 2.6; }
.close-btn:active { transform: scale(0.88); }

.detail-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px 6px; }
.detail-head .thumb { width: 72px; height: 72px; border-radius: 17px; }
.detail-title { flex: 1; min-width: 0; }
.detail-title h2 { margin: 0; font: 700 24px/1.15 var(--font-display); letter-spacing: -0.028em; overflow-wrap: anywhere; }
.detail-title span { display: block; color: var(--secondary); font-size: 15px; margin-top: 3px; }

.stats {
  display: flex;
  margin: 14px 20px 4px;
  padding: 12px 0;
  border-top: 0.5px solid var(--separator);
  border-bottom: 0.5px solid var(--separator);
}
.stat { flex: 1; text-align: center; padding: 0 6px; }
.stat + .stat { border-left: 0.5px solid var(--separator); }
.stat small { display: block; font-size: 11px; font-weight: 600; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.02em; }
.stat b { display: block; font-size: 17px; font-weight: 700; margin-top: 3px; letter-spacing: -0.02em; }
.stat span { display: block; font-size: 12px; color: var(--secondary); }

.info-group { margin: 22px 16px 0; border-radius: 14px; overflow: hidden; background: var(--card); }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: 16px; position: relative; }
.info-row + .info-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--separator); }
.info-row span { color: var(--secondary); }
.info-row b { font-weight: 500; text-align: right; }
a.info-row, button.info-row { color: var(--accent); width: 100%; text-align: left; align-items: center; text-decoration: none; }
button.info-row:active { background: var(--fill); }
.info-row svg { width: 18px; height: 18px; color: var(--tertiary); }

.note { margin: 10px 32px 0; font-size: 13px; color: var(--secondary); }

/* Нижняя панель покупки в карточке: материал поверх контента */
.buy-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px calc(var(--safe-bottom) + 12px);
  background: var(--material);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-top: 0.5px solid var(--separator);
}
.buy-bar .price { flex: 1; }
.buy-bar .price b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.025em; }
.buy-bar .price span { font-size: 13px; color: var(--secondary); }

.btn-primary {
  height: 50px;
  padding: 0 28px;
  border-radius: 14px;
  background: var(--accent-fill, var(--accent));
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  transition: transform var(--press), opacity var(--press), filter var(--press);
}
.btn-primary:active { transform: scale(0.96); filter: brightness(0.92); }
.btn-primary:disabled { opacity: 0.35; transform: none; }
.btn-primary.wide { display: block; width: calc(100% - 32px); margin: 18px 16px 0; }

/* ---------- Нижний лист ---------- */

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  max-width: 640px;
  margin: 0 auto;
  max-height: calc(100dvh - var(--safe-top) - 40px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  will-change: transform;
  transform: translateY(110%);
}
.sheet-grab {
  flex: none;
  padding: 8px 16px 6px;
  touch-action: none;
  cursor: grab;
}
.sheet-grab::before { content: ""; display: block; width: 36px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: var(--tertiary); }
.sheet-headline { display: flex; align-items: center; justify-content: space-between; }
.sheet-headline h3 { margin: 0; font: 700 20px/1.2 var(--font-display); letter-spacing: -0.026em; }
.sheet-close { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--secondary); }
.sheet-close svg { width: 14px; height: 14px; stroke-width: 2.8; }
.sheet-close:active { background: var(--fill-press); }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(var(--safe-bottom) + 18px); }

.summary { display: flex; align-items: center; gap: 12px; margin: 6px 16px 0; padding: 12px 14px; border-radius: 14px; background: var(--card); }
.summary .item-text b { display: block; font-size: 16px; font-weight: 600; }
.summary .item-text span { font-size: 13px; color: var(--secondary); }
.summary .sum { font-size: 17px; font-weight: 700; }

.group-label { margin: 22px 32px 7px; font-size: 13px; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.01em; }

.option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; text-align: left; position: relative; transition: background var(--press); }
.option:active { background: var(--fill); }
.option + .option::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; border-top: 0.5px solid var(--separator); }
.option-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.option-icon svg { width: 18px; height: 18px; }
.option .item-text b { display: block; font-weight: 500; font-size: 16px; }
.option .item-text span { font-size: 13px; color: var(--secondary); }
.option .tick { color: var(--accent); opacity: 0; transform: scale(0.5); transition: opacity 180ms ease, transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.option[aria-checked="true"] .tick { opacity: 1; transform: none; }

/* Успех: галочка рисуется линией */
.done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 28px 4px; }
.done-mark { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; margin-bottom: 16px; animation: grow 560ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.done-mark svg { width: 44px; height: 44px; stroke-width: 3; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 420ms 240ms cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.done h4 { margin: 0; font: 700 22px/1.2 var(--font-display); letter-spacing: -0.026em; }
.done p { margin: 6px 0 0; color: var(--secondary); font-size: 15px; max-width: 32ch; }
@keyframes grow { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.profile { display: flex; flex-direction: column; align-items: center; padding: 6px 20px 4px; text-align: center; }
.profile .ph { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--fill); color: var(--secondary); margin-bottom: 10px; }
.profile .ph img { width: 100%; height: 100%; object-fit: cover; }
.profile .ph svg { width: 40px; height: 40px; }
.profile b { font-size: 22px; font-weight: 700; letter-spacing: -0.026em; }
.profile span { color: var(--secondary); font-size: 15px; }

.price-section .group-label { display: flex; align-items: center; gap: 8px; }
.price-section .group-label i { width: 10px; height: 10px; border-radius: 3px; background: var(--tint); }
.price-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; text-align: left; font-size: 16px; position: relative; transition: background var(--press); }
.price-row:active { background: var(--fill); }
.price-row + .price-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--separator); }
.price-row span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.price-row b { font-weight: 600; color: var(--secondary); white-space: nowrap; }

/* ---------- Тост ---------- */

.toast {
  position: fixed;
  left: 50%;
  top: calc(var(--safe-top) + 12px);
  z-index: 12;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--material-strong);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  font-size: 15px;
  font-weight: 600;
  transform: translate(-50%, -120px);
  pointer-events: none;
  will-change: transform;
}
.toast.error { color: var(--red); }

@media (hover: hover) and (pointer: fine) {
  .item:hover, .option:hover, .price-row:hover, button.info-row:hover { background: var(--fill); }
  .feature:hover { transform: translateY(-2px); }
  .circle-btn:hover, .price-pill:hover { background: var(--fill-press); }
}

@media (prefers-reduced-transparency: reduce) {
  .navbar, .feature .info, .buy-bar, .toast { background: var(--material-strong); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

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

/* ---------- Разгруженный макет: секции по категориям ---------- */

.page > .search { margin-bottom: 4px; }
.section { margin-top: 26px; }
.section-title { display: flex; align-items: baseline; gap: 8px; font-size: 20px; margin-bottom: 8px; }
.section-title span { font-size: 15px; font-weight: 500; color: var(--tertiary); letter-spacing: 0; }

.item { gap: 14px; padding: 12px 14px 12px 16px; min-height: 76px; }
.item + .item::before { left: 86px; }
.item .thumb { width: 54px; height: 54px; border-radius: 13px; }
.item-name { font-size: 17px; font-weight: 600; letter-spacing: -0.022em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-price { display: block; margin-top: 3px; font-size: 15px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.item-price b { font-weight: 600; color: var(--accent); }
.item-price span { color: var(--tertiary); }
.item .chev { width: 18px; height: 18px; color: var(--tertiary); stroke-width: 2.2; }

/* ---------- Разгруженная карточка товара ---------- */

.detail-head { display: block; padding: 22px 20px 4px; }
.detail-cat { display: inline-block; font-size: 13px; font-weight: 600; color: var(--tint); text-transform: uppercase; letter-spacing: 0.04em; }
.detail-head h2 { margin: 6px 0 0; font: 700 30px/1.1 var(--font-display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.detail-price { margin-top: 12px; }
.detail-price b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.price-full { display: block; margin-top: 2px; font-size: 15px; color: var(--secondary); }

.detail .group-label { margin-top: 28px; }
.detail .info-group { margin-top: 0; }
.detail .info-group + .group-label { margin-top: 28px; }
.detail-head + .info-group { margin-top: 22px; }
.info-row.method { align-items: center; justify-content: flex-start; gap: 12px; }
.info-row.method b { flex: 1; text-align: left; font-weight: 500; }
.info-row.method > span:last-child { font-size: 15px; }
.methods .info-row + .info-row::before { left: 58px; }
button.info-row { justify-content: flex-start; gap: 12px; }
button.info-row b { flex: 1; font-weight: 500; text-align: left; color: var(--accent); }
button.info-row svg:first-child { color: var(--accent); width: 20px; height: 20px; }

.buy-bar { padding: 12px 16px calc(var(--safe-bottom) + 12px); }
.btn-primary.block { flex: 1; width: 100%; }

.title-row { padding-bottom: 12px; }
