/* =========================================================
   Стокцен — лендинг магазина
   ========================================================= */


/* ---------- Шрифты ----------
   Лежат на нашем сервере, а не у Google: так страница не ждёт
   соединения с чужими серверами. Браузер скачивает только нужные
   наборы символов: кириллицу, латиницу и отдельно знак рубля (latin-ext). */

/* Nunito Sans, latin */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/nunito-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nunito Sans, latin-ext */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/nunito-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Nunito Sans, cyrillic */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/nunito-sans-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* JetBrains Mono, latin */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono, latin-ext */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* JetBrains Mono, cyrillic */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}


/* ---------- Переменные ---------- */

:root {
  --green: #7AC144;        /* фирменный зелёный из брендбука */
  --green-text: #3F7419;   /* зелёный для текста на белом */
  --ink: #1B1D18;
  --ink-2: #4A4D44;
  --ink-3: #62665B;        /* мелкий серый текст: контраст не ниже 4.5:1 */
  --paper: #FFFFFF;
  --hero-bg: #F3F4EE;      /* светлый фон первого экрана */
  --visit-bg: #EEF5E6;     /* мягкий фирменный зелёный для блока «Как нас найти» */
  --promo-yellow: #FFE14D; /* жёлтые ценники «Герои недели», как в зале */
  --heroes-bg: #FFF8E4;    /* почти белый тёплый фон блока «Герои недели» */
  --line: #E3E4DD;
  --shelf: #2B2E30;        /* цвет полок в магазине */
  --rail: #B9BDC0;

  --wrap: 1200px;
  --gut: 20px;
  --header-h: 72px;
}


/* ---------- Основа ---------- */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* Плавная прокрутка к блокам по ссылкам вида href="#heroes".
   Не включается, если в системе выключены анимации. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Блок, к которому прокручиваем, не должен прятаться под липкой шапкой */
[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

/* height: auto — чтобы высота из атрибута height="" не растягивала фото:
   атрибуты нужны только для того, чтобы браузер заранее знал пропорции */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

section {
  padding: 96px 0;
}

.section-flush-top {
  padding-top: 0;
}

.h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

@media (max-width: 760px) {
  section {
    padding: 64px 0;
  }

  .section-flush-top {
    padding-top: 0;
  }
}


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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  font: 800 17px/1 "Nunito Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.btn-line {
  background: transparent;
  color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: #fff;
}

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--green-text);
  outline-offset: 3px;
}

.arrow {
  font-weight: 400;
}

/* «Подбор техники» — карточка-кнопка: робот в белом круге, подпись, стрелка.
   При наведении робот наклоняет голову, стрелка уезжает вправо, по кнопке
   пробегает блик. Глаза робота моргают сами (см. «Анимации»). */
.pick {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 10px 20px 10px 10px;
  overflow: hidden;
  background: var(--green);
  border-radius: 14px;
  box-shadow: 0 3px 0 #5E9A31;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.pick:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #5E9A31, 0 12px 24px -10px rgba(63, 116, 25, 0.6);
}

.pick:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #5E9A31;
}

/* Блик, пробегает при наведении */
.pick::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.pick:hover::after {
  left: 130%;
  transition: left 0.7s ease;
}

.pick-bot {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--green-text);
  transition: transform 0.25s;
}

.pick-bot .bot {
  width: 30px;
  height: 30px;
  overflow: visible;
}

.pick:hover .pick-bot {
  transform: rotate(-12deg) scale(1.06);
}

.pick-text b {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.pick-text small {
  display: block;
  margin-top: 2px;
  color: #22350F;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.pick-arrow {
  font-size: 22px;
  transition: transform 0.2s;
}

.pick:hover .pick-arrow {
  transform: translateX(5px);
}

/* Строка с кнопкой в конце блока */
.pick-row {
  margin-top: 40px;
}

/* В блоках из двух колонок кнопка — под правой колонкой */
.pick-row--side {
  grid-column: 2;
  margin-top: 0;
}

/* Первый экран: жёлтая ссылка на акцию и кнопка подбора —
   отдельной строкой под текстом и фото, на всю ширину блока, пополам */
.hero-more {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-top: -8px;
}

.hero-more .hero-promo-link {
  justify-content: space-between;
  margin-top: 0;
  padding: 12px 20px;
  font-size: 17px;
}

/* У магазинов без «Героев недели» кнопка одна — тоже на всю ширину */
.hero-more > .pick:only-child {
  grid-column: 1 / -1;
}

.pick--compact {
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 10px;
}

.pick--compact .pick-bot {
  width: 40px;
  height: 40px;
}

.pick--compact .pick-bot .bot {
  width: 26px;
  height: 26px;
}

.pick--compact .pick-text b {
  font-size: 16px;
}

.pick--compact .pick-text small {
  font-size: 12px;
}

/* На телефоне кнопки — под текстом, перед фото, друг под другом */
@media (max-width: 900px) {
  .hero-more {
    order: 1;
    margin-top: 0;
  }

  .hero-media {
    order: 2;
  }
}

@media (max-width: 560px) {
  .hero-more {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-more .hero-promo-link {
    padding: 10px 16px;
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .pick-row--side {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .pick {
    display: grid;
  }
}


/* ---------- Шапка ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.logo {
  display: block;
  flex-shrink: 0;
}

.logo img {
  width: 170px;
  height: 54px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  white-space: nowrap;
}

/* Часы перед статусом: зелёные — открыто, серые — закрыто, жёлтые — скоро открытие */
.clock {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: #8BC34A;   /* как фирменная трубка */
}

.visit-status .clock {
  width: 24px;
  height: 24px;
}

.closed .clock {
  color: #A9ADA2;
}

.soon .clock {
  color: #E0A800;
}

.top-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.top-phone img {
  width: 28px;
  height: 28px;
}

/* Круглые значки соцсетей: в шапке и в подвале */
.socials {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #EEF0EA;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}

.socials a:hover {
  background: var(--green);
  color: #fff;
}

/* Значки в цветах самих соцсетей и мессенджеров */
.socials .soc-vk,
.socials .soc-max,
.socials .soc-tg,
.socials .soc-dzen {
  color: #fff;
  transition: transform 0.15s, filter 0.15s;
}

.socials .soc-vk   { background: #0077FF; }
.socials .soc-max  { background: linear-gradient(135deg, #3C8CFF, #8A3FFC); }
.socials .soc-tg   { background: #27A7E7; }
.socials .soc-dzen { background: #000; }

.socials a:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

@media (max-width: 1000px) {
  .top .status {
    display: none;
  }
}

/* На телефоне от номера остаётся зелёная трубка — звонок в одно касание */
@media (max-width: 640px) {
  .logo img {
    width: 130px;
    height: auto;
  }

  .top-right {
    gap: 10px;
  }

  .top-phone span {
    display: none;
  }

  .top-phone img {
    width: 34px;
    height: 34px;
  }

  .top-socials {
    gap: 5px;
  }

  .top-socials a {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 360px) {
  .top-socials li:nth-child(n+3) {
    display: none;
  }
}


/* ---------- Первый экран ---------- */

.hero {
  padding: 0;
  background: var(--hero-bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.where {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 800;
}

.where img {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.hero h1 {
  position: relative;
  isolation: isolate;
  max-width: 9.5em;
  margin-bottom: 26px;
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1;
}

/* Зелёный маркер под словом «коробка» */
.mark {
  position: relative;
  white-space: nowrap;
}

.mark::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.08em;
  z-index: -1;
  height: 0.38em;
  background: var(--green);
  border-radius: 2px;
  transform-origin: left center;
}

.hero .lead {
  max-width: 30em;
  margin-bottom: 34px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.hero-actions .call {
  font-weight: 800;
  text-underline-offset: 4px;
}

.hero-hours {
  margin-top: 26px;
  color: var(--ink-3);
  font-size: 15px;
}

/* Фото с зелёной плашкой со сдвигом позади */
/* Фото начинается вровень с заголовком, а не по центру блока */
.hero-media {
  position: relative;
  align-self: start;
  margin: 58px 24px 24px 0;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border-radius: 16px;
  background: var(--green);
}

.hero-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ink);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Наклейка на фото — как на ценниках */
.hero-sticker {
  position: absolute;
  top: -14px;
  left: -14px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
  transform: rotate(-4deg);
}

.hero-sticker b {
  display: block;
  color: var(--green-text);
  font-size: 22px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .hero-media {
    margin: 8px 12px 12px 8px;
  }

  .hero-media::before {
    inset: 12px -12px -12px 12px;
    border-radius: 12px;
  }

  .hero-photo {
    border-radius: 12px;
  }

  .hero-sticker {
    top: -10px;
    left: -8px;
    font-size: 14px;
  }

  .hero-sticker b {
    font-size: 18px;
  }
}


/* ---------- Ссылка на акцию в первом экране ---------- */

.hero-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 9px 14px;
  background: var(--promo-yellow);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(27, 29, 24, 0.18);
  transition: transform 0.2s ease;
}

.hero-promo-link:hover {
  transform: translateY(-2px);
}


/* ---------- Герои недели ----------
   Товары меняются каждую неделю, поэтому в блоке только текст акции.
   Фон — почти белый тёплый: отделяет блок от белого «Почему у нас дешевле». */

.heroes {
  background: var(--heroes-bg);
}

/* Заголовок — жёлтый ценник: отверстие для подвеса слева, штрихкод справа.
   Наклон задан свойством rotate, чтобы не спорить с анимацией появления (transform) */
.heroes-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
  padding: 16px 26px 16px 46px;
  background: var(--promo-yellow);
  border-radius: 4px;
  box-shadow:
    0 14px 24px -16px rgba(27, 29, 24, 0.55),
    0 1px 0 rgba(0, 0, 0, 0.12);
  rotate: -2deg;
}

.heroes-tag::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--heroes-bg);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.heroes-tag-code {
  flex-shrink: 0;
  width: 76px;
  height: 0.8em;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 3px,
    var(--ink) 3px 4px,
    transparent 4px 7px,
    var(--ink) 7px 10px,
    transparent 10px 11px
  );
  opacity: 0.85;
}

@media (max-width: 480px) {
  .heroes-tag {
    gap: 14px;
    padding: 12px 18px 12px 38px;
  }

  .heroes-tag::before {
    left: 13px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
  }

  .heroes-tag-code {
    width: 44px;
  }
}

.heroes-lead {
  margin-bottom: 28px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.25;
}

.heroes-copy {
  display: grid;
  gap: 16px;
  color: var(--ink-2);
}

.heroes-copy b {
  color: var(--ink);
  font-weight: 800;
}

.heroes-call {
  margin-top: 28px;
  font-size: 20px;
  font-weight: 800;
}

/* Строка с фирменной иконкой в начале: иконка слева, текст справа */
.with-icon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
}

.with-icon img {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  object-fit: contain;
}

/* Адрес и телефон магазина — белая плашка на всю ширину, пункты рядом */
.heroes-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  margin-top: 20px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #F1E8C8;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.heroes-contacts a {
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* Три кнопки строкой на всю ширину блока, поровну */
.heroes-actions {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 16px;
  margin-top: 22px;
}

@media (max-width: 760px) {
  .heroes-actions {
    grid-auto-flow: row;
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .heroes-contacts {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .heroes-actions .btn,
  .heroes-actions .pick {
    width: 100%;
  }
}


/* ---------- Почему у нас дешевле ---------- */

.why {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px 64px;
}

/* Заголовок и чек едут вместе при прокрутке списка */
.why-side {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
}

/* Иконка, заголовок пункта, пояснение */
.why-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.why-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px 20px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.why-list img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.3, 1.4);
}

.why-list li:hover img {
  transform: translateY(-3px) rotate(-6deg);
}

.why-list b {
  padding-top: 4px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}

.why-list span {
  padding-top: 4px;
  color: var(--ink-2);
}


/* ---------- Чек с разбором цены ---------- */

.receipt {
  --paper-color: #FBFBF6;
  position: relative;
  max-width: 360px;
  margin-top: 40px;
  margin-bottom: 12px;
  padding: 22px 22px 18px;
  background: var(--paper-color);
  color: #2A2C27;
  font-family: "JetBrains Mono", ui-monospace, "Courier New", monospace;
  font-size: 13.5px;
  line-height: 1.55;
  filter: drop-shadow(0 8px 14px rgba(27, 29, 24, 0.14));
  transform: rotate(-1.5deg);
}

/* Зубчатый нижний край, как у оторванного чека */
.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;
  background:
    linear-gradient(-45deg, transparent 6px, var(--paper-color) 0) 0 0 / 12px 8px repeat-x,
    linear-gradient(45deg, transparent 6px, var(--paper-color) 0) 0 0 / 12px 8px repeat-x;
}

.receipt p {
  margin: 0;
}

.receipt-head {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed #B5B8AE;
  color: #6A6E62;
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.04em;
}

.receipt .receipt-item {
  margin-bottom: 10px;
  font-weight: 700;
}

/* Строка с точками-заполнителями между названием и суммой */
.receipt-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.receipt-row i {
  flex: 1;
  border-bottom: 2px dotted #B5B8AE;
  transform: translateY(-4px);
}

.receipt-row span:last-child {
  white-space: nowrap;
}

.receipt-minus {
  color: var(--green-text);
  font-weight: 700;
}

.receipt .receipt-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #B5B8AE;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.receipt-total span:last-child {
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.receipt .receipt-foot {
  margin-top: 14px;
  color: #6A6E62;
  font-size: 12px;
  text-align: center;
}

.receipt-code {
  display: block;
  width: 160px;
  height: 34px;
  margin: 14px auto 4px;
  background: repeating-linear-gradient(
    90deg,
    #2A2C27 0 2px,
    transparent 2px 3px,
    #2A2C27 3px 4px,
    transparent 4px 7px,
    #2A2C27 7px 10px,
    transparent 10px 11px,
    #2A2C27 11px 12px,
    transparent 12px 14px
  );
}

@media (max-width: 900px) {
  .why {
    grid-template-columns: 1fr;
  }

  .why-side {
    position: static;
  }

  .receipt {
    margin-top: 28px;
  }

  .why-list li {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .why-list img {
    grid-row: span 2;
  }

  .why-list span {
    padding-top: 0;
  }
}


/* ---------- Полка с ценниками ---------- */

.shelf {
  background: var(--shelf);
  color: #fff;
}

.shelf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: 44px;
}

.shelf-head p {
  max-width: 28em;
  color: #C9CDD0;
}

/* Металлическая планка, на которой висят ценники */
.rail {
  position: relative;
}

.rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(#D5D8DA, var(--rail));
  border-bottom: 1px solid #8E9295;
}

/* Лента ценников: листается пальцем, колесом и перетаскиванием мышью */
.tags {
  display: flex;
  gap: 18px;
  padding: 0 2px 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #5A5F63 transparent;
  cursor: grab;
}

.tags.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.tags.dragging .tag {
  pointer-events: none;
}

.tag {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 6px 14px;
  flex: 0 0 272px;
  min-height: 168px;
  margin-top: 10px;
  padding: 14px 16px 12px;
  background: #fff;
  color: #111;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  scroll-snap-align: start;
}

.tag .name {
  grid-column: 1 / -1;
  padding-right: 84px;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.tag .was {
  grid-column: 1 / -1;
  align-self: end;
  color: #6A6E72;
  font-size: 14px;
}

.tag .was s {
  text-decoration-thickness: 2px;
  text-decoration-color: #C0392B;
}

/* Штрихкод нарисован полосками, без картинки */
.tag .code {
  align-self: end;
  width: 92px;
  height: 30px;
  background: repeating-linear-gradient(
    90deg,
    #111 0 2px,
    transparent 2px 3px,
    #111 3px 4px,
    transparent 4px 7px,
    #111 7px 10px,
    transparent 10px 11px
  );
}

.tag .price {
  align-self: end;
  font-size: 34px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.tag .price small {
  font-size: 20px;
  font-weight: 800;
}

/* Наклейка со скидкой, приклеена чуть криво */
.sticker {
  position: absolute;
  top: -4px;
  right: -6px;
  padding: 6px 10px;
  background: var(--green);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  transform: rotate(4deg);
}

.shelf-note {
  margin-top: 12px;
  color: #A9AEB2;
  font-size: 15px;
}

.shelf-note a {
  color: #fff;
}


/* ---------- Что есть в зале ---------- */

.range {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px 64px;
}

/* Сетка, а не колонки: строки в обеих колонках одной высоты,
   поэтому линии и иконки стоят на одном уровне */
.range-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Иконка слева, название и пояснение справа */
.range-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.range-list img {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.3, 1.4);
}

.range-list li:hover img {
  transform: translateY(-3px) rotate(-6deg);
}

.range-list b {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.range-list span {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .range {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .range-list {
    grid-template-columns: 1fr;
  }
}


/* ---------- Робот-помощник ----------
   Светло-зелёная карточка: слева робот, справа приглашение в бот. */

.robot-section {
  padding-top: 0;
}

.robot-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 48px;
  padding: 40px 48px;
  background: var(--visit-bg);
  border-radius: 20px;
}

.robot-pic {
  position: relative;
  margin: 0;
}

.robot-pic img {
  display: block;
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 16px 32px -16px rgba(27, 29, 24, 0.4);
  rotate: -2deg;
}

.robot-hello {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  background: #fff;
  border-radius: 999px;
  color: var(--green-text);
  font-size: 15px;
  font-weight: 800;
}

.robot-text .h2 {
  margin-bottom: 16px;
}

.robot-text p:not(.robot-hello) {
  max-width: 34em;
  color: var(--ink-2);
  font-size: 18px;
}

.robot-actions {
  margin-top: 26px;
}

@media (max-width: 900px) {
  .robot-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px;
  }

  .robot-pic img {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .robot-actions .pick {
    display: grid;
  }
}


/* ---------- Фото магазина ---------- */

.photos-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 40px;
  margin-bottom: 32px;
}

.photos-head p {
  max-width: 26em;
  color: var(--ink-2);
}

.grid-a {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  height: 540px;
  margin-bottom: 12px;
}

.grid-b {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 12px;
  height: 380px;
}

.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #eee;
}

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ph figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 80%;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .grid-a,
  .grid-b {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .grid-a .ph:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }

  .grid-a .ph:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 1 / 1;
  }

  .grid-b .ph {
    aspect-ratio: 3 / 4;
  }

  .grid-b .ph:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
}


/* ---------- Рейтинг ---------- */

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 72px;
  padding: 28px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.rating-logo {
  width: 48px;
  height: 48px;
}

.rating .num {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.rating .stars {
  color: #F2B705;
  font-size: 20px;
  letter-spacing: 2px;
}

.rating .txt {
  font-size: 18px;
}

.rating a {
  margin-left: auto;
  font-weight: 800;
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .rating a {
    margin-left: 0;
  }
}


/* ---------- Частые вопросы ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px 64px;
  align-items: start;
}

.faq-list {
  border-top: 2px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 22px 56px 22px 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--green-text);
}

/* Значок «+», при открытии поворачивается в «×» */
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat,
    var(--hero-bg);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq details[open] summary::after {
  background-color: var(--green);
  transform: rotate(45deg);
}

.faq summary:focus-visible {
  outline: 3px solid var(--green-text);
  outline-offset: 3px;
}

.faq details p {
  max-width: 36em;
  padding: 0 56px 24px 0;
  color: var(--ink-2);
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.js-anim .faq details[open] p {
  animation: faq-open 0.3s ease;
}

@media (max-width: 900px) {
  .faq {
    grid-template-columns: 1fr;
  }

  .faq summary {
    font-size: 19px;
  }
}


/* ---------- Как нас найти ----------
   Мягкий зелёный фон отделяет блок от белого FAQ и тёмного подвала.
   Насыщенный зелёный — только в точках: статус, номера шагов. */

.visit {
  background: var(--visit-bg);
}

.visit .h2 {
  margin-bottom: 36px;
}

/* Заголовок с меткой геолокации */
.visit-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.visit-title img {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

/* Карта во всю ширину, карточка с адресом лежит поверх неё слева */
.visit-map {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #E4EADC;
  box-shadow: 0 0 0 1px rgba(27, 29, 24, 0.08);
}

.map {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
}

.visit-card {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100% - 48px));
  padding: 30px 30px 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px -12px rgba(27, 29, 24, 0.28);
}

/* Живой статус: часы + «Сейчас открыто, без выходных» */
.visit-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--green-text);
  font-size: 15px;
  font-weight: 800;
}

.visit-status.closed {
  color: var(--ink-3);
}

.visit-status.soon {
  color: #8A6A00;
}

.visit-address {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.visit-place {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 18px;
  font-weight: 700;
}

.visit-facts {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.visit-facts dt {
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 700;
}

.visit-facts dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 800;
}

.visit-facts a {
  text-decoration: none;
}

.visit-actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

/* Как пройти: три шага с фото */
.steps-title {
  margin: 56px 0 20px;
  font-size: 26px;
  font-weight: 900;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding-bottom: 20px;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
}

.step-photo {
  margin: 0 0 12px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.step-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-num {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.step b,
.step > span:last-child {
  padding: 0 20px;
}

.step b {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.step > span:last-child {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.45;
}

/* На планшете и телефоне карточка встаёт под карту, шаги — в столбик */
@media (max-width: 900px) {
  .visit-card {
    position: static;
    width: auto;
    border-radius: 0;
    box-shadow: none;
  }

  .map {
    height: 320px;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .visit-card {
    padding: 24px 20px 28px;
  }

  .visit-address {
    font-size: 24px;
  }
}


/* ---------- Подвал ----------
   Как у Ситилинка: светлый (белый — логотип на белой подложке), колонки сверху, ниже строка
   «способы оплаты + соцсети», в самом низу — копирайт. */

.foot {
  padding: 56px 0 32px;
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr auto;
  gap: 32px 40px;
}

.foot b {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 17px;
}

.foot ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.foot-brand img {
  width: 150px;
  height: auto;
  margin-bottom: 14px;
}

.foot .foot-contacts {
  gap: 12px;
}

.foot-phone {
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* QR-код на страницу соцсетей */
.foot .foot-qr {
  color: var(--ink-3);
}

.foot-qr {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  width: 132px;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.foot-qr .qr {
  display: block;
  width: 120px;
  height: 120px;
  padding: 6px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line);
}

/* Способы оплаты слева, соцсети справа — между двумя линиями */
.foot-mid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.pay-label {
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 700;
}

.foot .pay-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.pay-list img {
  display: block;
  height: 24px;
  width: auto;
}

.foot .foot-socials {
  display: flex;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 14px;
}

.foot-bottom span:first-child {
  color: var(--ink);
  font-weight: 700;
}

.foot-bottom a {
  margin-left: auto;
  color: var(--ink-3);
}

@media (max-width: 1000px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .foot {
    padding-bottom: 110px;   /* место под нижнюю панель с кнопками */
  }
}

@media (max-width: 560px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .foot-bottom a {
    margin-left: 0;
  }
}


/* ---------- Страница соцсетей /links/ ---------- */

.links-body {
  background: #fff;
}

.links {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px var(--gut) 48px;
  text-align: center;
}

.links-logo {
  width: 170px;
  height: auto;
  margin: 0 auto 28px;
}

.links h1 {
  font-size: 34px;
  line-height: 1.1;
}

.links-lead {
  margin-top: 10px;
  color: var(--ink-2);
}

.links-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.links-list a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  background: var(--visit-bg);
  border-radius: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  transition: transform 0.15s;
}

.links-list a:hover {
  transform: translateY(-2px);
}

.links-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.links-list .links-bot {
  background: var(--ink);
  color: #fff;
}

.links h2 {
  margin-top: 36px;
  font-size: 20px;
}

.links-stores {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.links-legal {
  margin-top: 32px;
  color: var(--ink-3);
  font-size: 13px;
}


/* ---------- Нижняя панель на телефоне ---------- */

.mbar {
  display: none;
}

@media (max-width: 760px) {
  .mbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--line);
  }

  .mbar .btn {
    min-height: 50px;
    padding: 0 12px;
    font-size: 16px;
  }

  .mbar .btn-green {
    background: var(--green);
    border-color: var(--green);
    color: var(--ink);
  }
}


/* =========================================================
   Анимации и живые детали
   Класс .js-anim ставится на <html> скриптом в <head>, только если
   у посетителя не включено «уменьшить движение». Без него
   всё содержимое просто видно сразу.
   ========================================================= */


/* ---------- Мелкие отклики на наведение ---------- */

.btn .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.ph img {
  transition: transform 0.6s ease;
}

.ph:hover img {
  transform: scale(1.04);
}

.tag {
  transition: transform 0.2s ease;
}

.tag:hover,
.js-anim .tag.hung:hover {
  transform: translateY(-3px) rotate(-0.6deg);
}

/* Шапка получает тень, когда страницу прокрутили */
.top {
  transition: box-shadow 0.25s ease;
}

.top.scrolled {
  box-shadow: 0 6px 18px -12px rgba(27, 29, 24, 0.35);
}


/* ---------- Часы «Открыто»: длинная стрелка идёт по кругу ---------- */

@keyframes clock-hand {
  to { transform: rotate(360deg); }
}

.clock-hand {
  transform-origin: 12px 12px;
}

.js-anim .status:not(.closed):not(.soon) .clock-hand,
.js-anim .visit-status:not(.closed):not(.soon) .clock-hand {
  animation: clock-hand 8s linear infinite;
}


/* ---------- Робот на кнопке «Подбор техники»: моргает, лампочка мигает ---------- */

@keyframes bot-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(0.1); }
}

@keyframes bot-led {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.bot-eyes {
  transform-origin: 12px 12px;
}

.js-anim .pick .bot-eyes {
  animation: bot-blink 4s infinite;
}

.js-anim .pick .bot-led {
  animation: bot-led 1.6s ease-in-out infinite;
}


/* ---------- Робот в блоке-приглашении слегка покачивается ---------- */

@keyframes robot-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.js-anim .robot-card.is-visible .robot-pic img {
  animation: robot-float 4s ease-in-out infinite;
}


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

.js-anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

.js-anim .reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ---------- Первый экран: маркер, плашка, наклейка ----------
   Заголовок, текст и фото видны сразу — это важно для скорости
   загрузки в оценке Google. Анимируются только украшения,
   и чистым CSS, без ожидания скрипта. */

@keyframes mark-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes plate-in {
  from { transform: translate(-24px, -24px); }
  to   { transform: none; }
}

@keyframes sticker-in {
  0%   { opacity: 0; transform: translateY(-16px) rotate(-14deg) scale(1.15); }
  60%  { opacity: 1; transform: translateY(0) rotate(-2deg) scale(0.97); }
  100% { opacity: 1; transform: rotate(-4deg); }
}

.js-anim .mark::after {
  animation: mark-draw 0.8s cubic-bezier(0.6, 0.1, 0.2, 1) 0.3s both;
}

.js-anim .hero-media::before {
  animation: plate-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}

.js-anim .hero-sticker {
  animation: sticker-in 0.7s cubic-bezier(0.2, 0.8, 0.3, 1.2) 0.7s both;
}


/* ---------- Бирка «Герои недели» качнулась и замерла ---------- */

@keyframes heroes-tag-swing {
  0%   { rotate: -9deg; }
  55%  { rotate: 1.5deg; }
  80%  { rotate: -3deg; }
  100% { rotate: -2deg; }
}

.js-anim .heroes-tag.is-visible {
  animation: heroes-tag-swing 0.9s cubic-bezier(0.3, 0.7, 0.3, 1) 0.1s both;
}


/* ---------- Чек «печатается» сверху вниз ----------
   Появляется рывками, как из кассового аппарата */

.js-anim .receipt {
  clip-path: inset(0 -30px 100% -30px);
  transition: clip-path 1.3s steps(12, end) 0.3s;
}

.js-anim .receipt.is-printed {
  clip-path: inset(0 -30px -30px -30px);
}


/* ---------- Ценники вешаются на планку ---------- */

@keyframes tag-hang {
  0%   { opacity: 0; transform: translateY(-22px) rotate(-5deg); }
  55%  { opacity: 1; transform: translateY(0) rotate(2.5deg); }
  78%  { transform: rotate(-1deg); }
  100% { opacity: 1; transform: none; }
}

.js-anim .tag {
  opacity: 0;
  transform-origin: 50% 0;
}

.js-anim .tags.is-visible .tag {
  animation: tag-hang 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  animation-delay: var(--delay, 0ms);
}

/* После анимации ценник снова реагирует на наведение */
.js-anim .tags .tag.hung {
  opacity: 1;
  animation: none;
}


/* ---------- Нижняя панель на телефоне ----------
   Выезжает, когда кнопка первого экрана ушла из вида */

@media (max-width: 760px) {
  .js-anim .mbar {
    transform: translateY(110%);
    transition: transform 0.3s ease;
  }

  .js-anim .mbar.is-shown {
    transform: none;
  }
}
