/* Витрина Dyson — мини-приложение Telegram.
   Светлая тема: тёплая бумага и глубокий изумруд. Тёмная: изумрудная ночь и золото.
   Визуальный вес несут фотографии товара, а не декоративная графика. */

:root {
  --bg:        #EFF4F6;
  --surface:   #FFFFFF;
  --sunken:    #E1EBEF;
  --ink:       #0F2730;
  --muted:     #5F7883;
  --line:      #DAE6EA;
  --accent:    #0E6076;
  --on-accent: #FFFFFF;
  --halo:      rgba(14, 96, 118, .16);
  --scrim:     linear-gradient(to top, rgba(7, 26, 34, .80), rgba(7, 26, 34, .06) 62%, transparent);

  --display: 'Prata', Georgia, 'Times New Roman', serif;
  --ui:      'Golos Text', system-ui, -apple-system, sans-serif;

  --pad:  18px;
  --topbar: 54px;
  --tabbar: 62px;
}

[data-theme="dark"] {
  --bg:        #071520;
  --surface:   #0C1E2B;
  --sunken:    #102737;
  --ink:       #E8F1F5;
  --muted:     #8AA3B0;
  --line:      #1B3243;
  --accent:    #56C4DC;
  --on-accent: #06171F;
  --halo:      rgba(86, 196, 220, .22);
  --scrim:     linear-gradient(to top, rgba(2, 10, 16, .88), rgba(2, 10, 16, .08) 62%, transparent);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s, color .35s;
}

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- воздушное поле ---------- */

.air { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* за шапкой поле живёт узкой полосой и растворяется к товарам,
   чтобы не спорить с фотографиями */
.air--header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 230px;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent);
          mask-image: linear-gradient(to bottom, #000 45%, transparent);
}

.air--splash { z-index: 0; }

/* ---------- заставка ---------- */

.splash {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .5s ease, visibility .5s;
}

.splash--gone { opacity: 0; visibility: hidden; }

.splash__inner { position: relative; z-index: 1; text-align: center; }

.splash__mark--ring img,
.splash__word,
.splash__line { opacity: 0; transition: opacity .55s ease; }

.splash--ready .splash__mark--ring img,
.splash--ready .splash__word,
.splash--ready .splash__line { opacity: 1; }

.splash--ready .splash__line { transition-delay: .18s; }

.splash__mark {
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: .06em;
  color: var(--ink);
}

/* знак — кольцо из техники, название стоит в его пустой середине */
.splash__mark--ring {
  position: relative;
  display: inline-block;
  width: min(64vw, 250px);
}

.splash__mark--ring img { display: block; width: 100%; height: auto; }

.splash__word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--ui);
  font-size: clamp(19px, 5.6vw, 25px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.05;
  color: var(--ink);
}

.wordmark__i { color: var(--accent); }

.splash__line {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- верхняя панель ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--topbar);
  padding: 0 10px 0 var(--pad);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .35s;
  padding-top: env(safe-area-inset-top);
  height: calc(var(--topbar) + env(safe-area-inset-top));
}

.topbar--lifted { border-bottom-color: var(--line); }

.topbar__brand {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.brand__mark { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }

.brand__text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }

.wordmark {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.brand__sub {
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.topbar__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink);
  flex: 0 0 auto;
}

.topbar__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar__icon:active { background: var(--sunken); }

/* ---------- полотно ---------- */

.screen {
  position: relative;
  z-index: 1;
  padding: 18px var(--pad) calc(var(--tabbar) + 34px + env(safe-area-inset-bottom));
  max-width: 720px;
  margin: 0 auto;
}

/* переходы между экранами: вглубь — приезжает справа, назад — слева,
   между вкладками — мягкое проявление */
.screen--from-right { animation: enterRight .32s cubic-bezier(.22, .8, .3, 1) both; }
.screen--from-left  { animation: enterLeft  .32s cubic-bezier(.22, .8, .3, 1) both; }
.screen--fade       { animation: enterFade  .28s cubic-bezier(.22, .8, .3, 1) both; }

@keyframes enterRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes enterLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes enterFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.title {
  margin: 0;
  font-family: var(--display);
  font-size: 27px;
  line-height: 1.15;
  font-weight: 400;
}

/* в длинных списках название раздела остаётся на виду при прокрутке */
.title--sticky {
  position: sticky;
  top: calc(var(--topbar) + env(safe-area-inset-top));
  z-index: 15;
  margin: 0 calc(var(--pad) * -1);
  padding: 10px var(--pad) 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
}

.lead {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 14px;
  max-width: 34em;
}

.label {
  margin: 30px 0 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- категории: крупные карточки с фото ---------- */

.cats { display: grid; gap: 12px; }

.cat {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--sunken);
  text-align: left;
  will-change: border-radius;
  transition: border-radius .6s cubic-bezier(.25, 1.1, .4, 1);
}



.cat img {
  position: absolute;
  left: 0; top: -9%;
  width: 100%; height: 118%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.cat__veil { position: absolute; inset: 0; background: var(--scrim); }

.cat__text {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  color: #FFF;
}

.cat__name { font-family: var(--display); font-size: 22px; line-height: 1.1; }

.cat__count { font-size: 12px; opacity: .8; padding-bottom: 3px; white-space: nowrap; }

/* категория без фото — не пустая плитка, а типографская */
.cat--plain { aspect-ratio: auto; padding: 20px 18px; border: 1px solid var(--line); background: var(--surface); }

.cat--plain .cat__text { position: static; color: var(--ink); }

/* ---------- сетка товаров ---------- */

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  transition: transform .25s, box-shadow .25s;
}



.card__shot { position: relative; aspect-ratio: 1 / 1; background: var(--sunken); }

.card__shot img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.card__heart {
  position: absolute;
  top: 7px; right: 7px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(6px);
}

.card__heart svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.7; }

.card__heart--on svg { fill: var(--accent); stroke: var(--accent); }

.card__body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.card__name { font-size: 13px; line-height: 1.35; }

.card__price { margin-top: auto; font-weight: 600; font-variant-numeric: tabular-nums; }

.stub { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 11px; text-align: center; padding: 12px; }

/* ---------- карточка товара ---------- */

.gallery {
  display: flex; gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(var(--pad) * -1) 18px;
  padding: 0 var(--pad);
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar { display: none; }

.gallery__shot {
  flex: 0 0 82%;
  aspect-ratio: 1 / 1;
  scroll-snap-align: center;
  border-radius: 20px;
  background: var(--sunken);
  overflow: hidden;
}

.gallery__shot img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }

.detail__name { margin: 0 0 10px; font-family: var(--display); font-size: 23px; line-height: 1.2; font-weight: 400; }

.detail__price { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }

.specs { margin-top: 4px; border-top: 1px solid var(--line); }

.spec { display: grid; grid-template-columns: minmax(92px, 40%) 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }

.spec__key { color: var(--muted); font-size: 13px; }

.spec__val { font-size: 13px; }

.spec--plain { display: block; font-size: 14px; }

/* ---------- выбор количества ---------- */

.qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.qty__btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--sunken);
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
}

.qty__btn:active { transform: scale(.94); }

.qty__n {
  width: 66px;
  height: 42px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  -moz-appearance: textfield;
}

/* стрелки браузера в поле числа только мешают на телефоне */
.qty__n::-webkit-outer-spin-button,
.qty__n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.qty__quick { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.qty__chip {
  min-width: 46px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: border-color .2s, color .2s, background .2s;
}

.qty__chip--on {
  border-color: var(--accent);
  color: var(--on-accent);
  background: var(--accent);
}

/* ---------- кнопки ---------- */

.actions { display: flex; gap: 10px; margin-top: 22px; }

.btn {
  flex: 1;
  padding: 15px 20px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  transition: transform .2s, opacity .2s;
}

.btn:active { transform: scale(.98); }

.btn--ghost { flex: 0 0 auto; background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 15px; }

.btn--ghost svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.btn--ghost.is-on svg { fill: var(--accent); stroke: var(--accent); }

.btn--quiet { background: var(--sunken); color: var(--ink); }

.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- строки корзины и избранного ---------- */

.rows { display: grid; gap: 10px; }

.row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.row__shot { width: 62px; height: 62px; border-radius: 11px; background: var(--sunken); overflow: hidden; }

.row__shot img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }

.row__name { font-size: 13px; line-height: 1.35; }

.row__price { margin-top: 4px; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }

.stepper { display: flex; align-items: center; gap: 2px; }

.stepper__btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--sunken); font-size: 17px; line-height: 1; }

.stepper__n { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.summary {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.summary__row { display: flex; justify-content: space-between; align-items: baseline; }

.summary__row + .summary__row { margin-top: 8px; }

.summary__key { color: var(--muted); font-size: 13px; }

.summary__total { font-family: var(--display); font-size: 25px; }

.note { margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- профиль ---------- */

.me { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }

.me__ava { width: 56px; height: 56px; border-radius: 50%; background: var(--sunken); object-fit: cover; display: grid; place-items: center; font-family: var(--display); font-size: 21px; color: var(--muted); }

.me__name { font-family: var(--display); font-size: 21px; line-height: 1.2; }

.me__sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

.menu { display: grid; gap: 1px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }

.menu__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 15px 16px; background: var(--surface); text-align: left; font-size: 15px; }

.menu__item:active { background: var(--sunken); }

.menu__chev { color: var(--muted); }

.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--sunken); gap: 3px; }

.seg__opt { flex: 1; padding: 9px 10px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--muted); }

.seg__opt--on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.info { padding: 17px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }

.info + .info { margin-top: 10px; }

.info__title { font-family: var(--display); font-size: 17px; margin-bottom: 6px; }

.info__text { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- состояния ---------- */

.state { padding: 56px 6px; text-align: center; }

.state__title { font-family: var(--display); font-size: 20px; margin-bottom: 8px; }

.state__note { color: var(--muted); font-size: 14px; margin: 0 auto; max-width: 26em; }

.state .btn { display: inline-block; flex: 0 0 auto; margin-top: 20px; padding-left: 28px; padding-right: 28px; }

.loading { height: 2px; margin: 44px 0; border-radius: 2px; background: var(--sunken); overflow: hidden; }

.loading::after {
  content: '';
  display: block;
  width: 36%; height: 100%;
  border-radius: 2px;
  background: var(--accent);
  animation: sweep 1.1s ease-in-out infinite;
}

@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(360%); }
}

/* ---------- нижние вкладки ---------- */

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .02em;
  transition: color .2s;
}

.tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.tab--on { color: var(--accent); }

.tab__badge {
  position: absolute;
  top: 6px;
  left: 50%;
  margin-left: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

/* ---------- крупные экраны ---------- */

@media (min-width: 640px) {
  :root { --pad: 26px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .gallery__shot { flex-basis: 46%; }
  .title { font-size: 31px; }
}

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


/* ---------- появление при прокрутке ---------- */

.reveal { opacity: 0; transform: translateY(16px); }

.reveal--in {
  opacity: 1;
  transform: none;
  transition: opacity .65s cubic-bezier(.22, .8, .3, 1),
              transform .65s cubic-bezier(.22, .8, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}


/* ---------- полёт товара в корзину ---------- */

.fly {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sunken);
}

.fly img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.tab__badge--pop { animation: pop .5s cubic-bezier(.3, 1.4, .5, 1) both; }

@keyframes pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* ---------- мерцающие заготовки ---------- */

.sk {
  border-radius: 16px;
  background: linear-gradient(100deg,
              var(--sunken) 28%, color-mix(in srgb, var(--surface) 70%, var(--sunken)) 46%,
              var(--sunken) 64%);
  background-size: 320% 100%;
  animation: shimmer 1.25s ease-in-out infinite;
}

.sk--cat  { aspect-ratio: 16 / 9; border-radius: 20px; }
.sk--card { aspect-ratio: 3 / 4; }
.sk--row  { height: 84px; }
.sk--shot { aspect-ratio: 1 / 1; border-radius: 20px; margin-bottom: 18px; }
.sk--title { height: 26px; width: 70%; margin-bottom: 12px; border-radius: 9px; }
.sk--line { height: 17px; width: 45%; border-radius: 9px; }

.sk-stack { display: grid; gap: 12px; }

@keyframes shimmer {
  from { background-position: 130% 0; }
  to   { background-position: -30% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; }
}

/* ---------- поиск ---------- */

.search { margin-bottom: 18px; }

.search__field {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  -webkit-appearance: none;
}

.search__field::placeholder { color: var(--muted); }

.search__field:focus { outline: none; border-color: var(--accent); }

/* ---------- переключатели рынков ---------- */

.chips { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s;
}

.chip--on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

/* ---------- плитка: модель, рынок, комплектация ---------- */

.card__market {
  position: absolute;
  top: 7px; left: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(6px);
  font-size: 12px;
  line-height: 1.2;
}

.card__note {
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}

.card__row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.card__add {
  width: 30px; height: 30px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 19px;
  line-height: 1;
}

.card__add:active { transform: scale(.92); }

/* распроданное показываем приглушённым, а не прячем */
.card--out .card__shot img,
.card--out .card__body { opacity: .45; }

.card__out {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 5px 8px;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  color: var(--bg);
  font-size: 11px;
  text-align: center;
}

/* ---------- карточка товара ---------- */

.detail__meta {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.detail__flag { font-size: 17px; }

.detail__about { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- плавающая корзина ---------- */

.cartbar {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(var(--tabbar) + 10px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px -10px var(--halo);
  animation: barUp .3s cubic-bezier(.22, .8, .3, 1) both;
}

.cartbar__left { display: flex; align-items: center; gap: 8px; opacity: .9; }

.cartbar__count {
  min-width: 22px; height: 22px;
  display: grid; place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--on-accent) 22%, transparent);
  font-weight: 600;
}

.cartbar__total { font-weight: 600; font-variant-numeric: tabular-nums; margin-left: auto; }

.cartbar__go { display: flex; align-items: center; gap: 2px; opacity: .9; }

.cartbar__go svg { stroke: currentColor; }

@keyframes barUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cartbar { animation: none; }
}


/* упругость выключается вместе со всем остальным движением */
@media (prefers-reduced-motion: reduce) {
  .cat { will-change: auto; transition: none; }
}


/* ---------- фотографии проявляются, а не выскакивают ---------- */

.card__shot img,
.gallery__shot img,
.row__shot img,
.cat img {
  opacity: 0;
  transition: opacity .35s ease;
}

.card__shot img.is-loaded,
.gallery__shot img.is-loaded,
.row__shot img.is-loaded,
.cat img.is-loaded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .card__shot img, .gallery__shot img, .row__shot img, .cat img {
    opacity: 1; transition: none;
  }
}


/* ---------- галочка отправленной заявки ---------- */

.tick {
  width: 68px;
  height: 68px;
  display: block;
  margin: 0 auto 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tick__ring {
  stroke-dasharray: 152;
  stroke-dashoffset: 152;
  opacity: .45;
  animation: tickRing .6s ease-out .05s forwards;
}

.tick__line {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: tickLine .45s cubic-bezier(.3, .9, .4, 1) .38s forwards;
}

@keyframes tickRing { to { stroke-dashoffset: 0; } }
@keyframes tickLine { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .tick__ring, .tick__line { animation: none; stroke-dashoffset: 0; }
}


/* ---------- слои перетекания темы и вырастания фото ---------- */

.theme-veil {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.hero-fly {
  position: fixed;
  z-index: 70;
  pointer-events: none;
  object-fit: contain;
  transform-origin: top left;
}
