/* ==========================================================================
   Bembi Bao — вкусняшки со всего мира
   Один файл на весь сайт: главная + страницы категорий.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Токены
   -------------------------------------------------------------------------- */

:root {
  --brand: #742af0;
  --brand-dark: #5e20d6;
  --brand-light: #9b5cf0;
  --brand-pale: #f1ebff;
  --brand-pale-2: #f5f1fe;

  --pink: #ff3984;
  --pink-dark: #e92a73;
  --pink-pale: #ffe6f1;

  --cyan: #48c3df;
  --cyan-dark: #2aa6c4;
  --cyan-pale: #e7f6fa;
  --cyan-ink: #1f6e85;
  --cyan-ink-2: #3e6b79;

  --blue: #4c86c7;

  --ink: #3e3266;
  --ink-2: #6e6394;
  --ink-strong: #4a2a9e;
  --ink-deep: #3a1e7a;
  --muted: #a78fe0;
  --muted-2: #9e8cd0;

  --bg: #fbf9ff;
  --surface: #ffffff;
  --line: #eee8fb;
  --line-2: #efe9fb;

  --footer-bg: #43346f;
  --footer-text: #d4cbec;
  --footer-muted: #a996de;

  --topbar-text: #6a4fc0;

  --shadow-card: 0 10px 30px rgba(116, 42, 240, 0.12);
  --shadow-card-lg: 0 16px 34px rgba(116, 42, 240, 0.18);
  --shadow-round: 0 6px 18px rgba(80, 60, 140, 0.16);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --pill: 999px;

  --container: 1200px;
  --gutter: 24px;

  --cat-card-w: 272px;
}

/* --------------------------------------------------------------------------
   2. База
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* хедер sticky — чтобы якоря не уезжали под него */
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease,
    transform 0.2s ease, box-shadow 0.2s ease, opacity 0.18s ease;
}

a:hover {
  color: var(--brand-dark);
}

button {
  font: inherit;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease,
    transform 0.2s ease, box-shadow 0.2s ease, opacity 0.18s ease, width 0.25s ease;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   3. Анимация появления карточек (из дизайна)
   -------------------------------------------------------------------------- */

@keyframes bbCardIn {
  from {
    opacity: 0;
    transform: translateY(60px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* класс js ставится инлайн-скриптом в <head>: без JS контент виден сразу */
.js [data-reveal] > * {
  opacity: 0;
}

[data-reveal].is-revealed > * {
  opacity: 1;
  animation: bbCardIn 0.4s ease-in-out both;
}

[data-reveal].is-revealed > *:nth-child(1) { animation-delay: 0s; }
[data-reveal].is-revealed > *:nth-child(2) { animation-delay: 0.08s; }
[data-reveal].is-revealed > *:nth-child(3) { animation-delay: 0.16s; }
[data-reveal].is-revealed > *:nth-child(4) { animation-delay: 0.24s; }
[data-reveal].is-revealed > *:nth-child(5) { animation-delay: 0.32s; }
[data-reveal].is-revealed > *:nth-child(6) { animation-delay: 0.4s; }
[data-reveal].is-revealed > *:nth-child(7) { animation-delay: 0.48s; }
[data-reveal].is-revealed > *:nth-child(n + 8) { animation-delay: 0.56s; }

/* --------------------------------------------------------------------------
   4. Кнопки и мелкие элементы
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--pill);
  padding: 13px 28px;
  font-size: 14.5px;
  font-weight: 800;
  white-space: nowrap;
  text-align: center;
}

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

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

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

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

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

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

.btn--white {
  background: #fff;
  color: var(--brand);
}

.btn--white:hover {
  background: var(--brand-pale);
  color: var(--brand);
}

.btn--ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
  padding: 13px 32px;
}

.btn--ghost:hover {
  background: var(--brand-pale);
  color: var(--brand-dark);
}

.btn--lg {
  padding: 14px 30px;
  font-size: 16px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--brand-pale);
  flex-shrink: 0;
}

.icon-btn:hover {
  background: #e4d8fa;
}

.tag {
  align-self: flex-start;
  border-radius: var(--pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
}

.tag--uppercase {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.deco-sparkle,
.deco-heart,
.deco-circle {
  position: absolute;
  pointer-events: none;
}

.deco-circle {
  top: -30px;
  right: -20px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   5. Верхняя плашка
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--brand-pale);
  font-size: 13px;
  font-weight: 700;
  color: var(--topbar-text);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar a {
  color: var(--topbar-text);
}

.topbar a:hover {
  color: var(--brand);
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar__city {
  font-weight: 800;
}

.topbar__sep {
  color: #b9a8e8;
}

.topbar__spacer {
  flex: 1;
  min-width: 12px;
}

/* --------------------------------------------------------------------------
   6. Шапка
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__mark {
  display: block;
  width: 172px;
  height: 24px;
  background: var(--brand);
  mask: url("/assets/img/logo.svg") no-repeat center / contain;
  -webkit-mask: url("/assets/img/logo.svg") no-repeat center / contain;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink);
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 260px;
  min-width: 0;
  margin-left: auto;
  border-radius: var(--pill);
  padding: 9px 16px;
  background: var(--brand-pale-2);
}

.search__input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

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

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

.section {
  margin-top: 56px;
}

.section--tight {
  margin-top: 26px;
}

.section--wide {
  margin-top: 60px;
}

.section__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.section__head--baseline {
  align-items: baseline;
}

.section__head--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.section__title {
  font-size: 32px;
  font-weight: 900;
  color: var(--ink-strong);
  letter-spacing: -0.4px;
}

.section__title--sm {
  font-size: 26px;
  letter-spacing: -0.3px;
}

.section__note {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.section__note--lg {
  font-size: 15px;
}

.section__spacer {
  flex: 1;
}

/* --------------------------------------------------------------------------
   8. Карусель героя
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  margin-top: 24px;
}

.hero__slide {
  display: none;
  position: relative;
  height: 430px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--slide-bg);
}

.hero__slide.is-active {
  display: block;
}

.hero__slide--purple {
  --slide-bg: linear-gradient(120deg, #ece4fe, #e1eefb);
  --accent: #742af0;
  --slide-text: #6e6394;
}

.hero__slide--pink {
  --slide-bg: linear-gradient(120deg, #ffe0ec, #ffc7dd);
  --accent: #ff3984;
  --slide-text: #a6567e;
}

.hero__slide--blue {
  --slide-bg: linear-gradient(120deg, #e4eefc, #ece4fe);
  --accent: #4c86c7;
  --slide-text: #48699a;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.72) 24%,
    rgba(255, 255, 255, 0.28) 42%,
    rgba(255, 255, 255, 0) 56%
  );
}

.hero .deco-sparkle {
  top: 36px;
  right: 40%;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.85);
}

.hero__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  height: 100%;
  max-width: 500px;
  padding: 50px 56px;
}

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

.hero__title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.5px;
  color: var(--accent);
  text-wrap: balance;
}

.hero__text {
  max-width: 370px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--slide-text);
  text-wrap: pretty;
}

.hero__cta {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--accent);
  color: #fff;
}

.hero__cta:hover {
  opacity: 0.9;
  color: #fff;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-round);
}

.hero__arrow:hover {
  background: var(--brand-pale-2);
}

.hero__arrow--prev {
  left: 42px;
}

.hero__arrow--next {
  right: 42px;
}

.hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: var(--pill);
  background: #d9cff3;
}

.hero__dot.is-active {
  width: 26px;
  background: var(--brand);
}

/* --------------------------------------------------------------------------
   9. Слайдер категорий
   -------------------------------------------------------------------------- */

.cats__track {
  display: flex;
  gap: 16px;
  padding: 6px 2px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

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

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

.cat-card {
  position: relative;
  flex: 0 0 var(--cat-card-w);
  height: 252px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-lg);
}

.cat-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  pointer-events: none;
}

.cat-card__name {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.3px;
  color: var(--ink-deep);
}

.cat-card__kicker {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.cat-card__wave {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 54%;
}

.cat-card__photo {
  position: absolute;
  left: 50%;
  bottom: -60px;
  z-index: 2;
  height: 205px;
  width: auto;
  max-width: 248px;
  object-fit: contain;
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.cat-card__photo--tall {
  height: 215px;
}

.cat-card__photo--xl {
  height: 225px;
  bottom: -58px;
}

/* --------------------------------------------------------------------------
   10. Карточка товара
   -------------------------------------------------------------------------- */

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 342px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.product__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.product__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

/* заглушка для позиций без фото — вместо тяжёлого image-slot из дизайна */
.product__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-pale) 0%, var(--cyan-pale) 100%);
  font-size: 46px;
  font-weight: 900;
  color: rgba(116, 42, 240, 0.35);
  user-select: none;
}

.product__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border-radius: var(--pill);
  padding: 4px 10px;
  background: var(--pink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
}

.product__badge--brand {
  background: var(--brand);
}

.product__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.product__origin {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.product__price {
  margin-top: auto;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink-strong);
}

.product.is-hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   11. Подарки и сертификаты
   -------------------------------------------------------------------------- */

.gifts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gift {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 34px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gift--brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
}

.gift--cert {
  background: var(--surface);
  border: 1px solid var(--line);
}

.gift__kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gift--brand .gift__kicker {
  opacity: 0.85;
}

.gift--cert .gift__kicker {
  color: var(--pink);
}

.gift__title {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.12;
}

.gift--cert .gift__title {
  color: var(--ink-strong);
}

.gift__text {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.gift--brand .gift__text {
  opacity: 0.94;
}

.gift--cert .gift__text {
  color: var(--ink-2);
}

.gift__btn {
  align-self: flex-start;
  margin-top: 4px;
}

.gift .deco-sparkle {
  top: 26px;
  right: 30px;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.8);
}

.gift .deco-heart {
  top: 26px;
  right: 30px;
  font-size: 20px;
  color: rgba(255, 57, 132, 0.35);
}

.price-chips {
  display: flex;
  gap: 10px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.price-chip {
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 900;
}

.price-chip--pink {
  background: var(--pink-pale);
  color: var(--pink);
}

.price-chip--purple {
  background: var(--brand-pale);
  color: var(--brand);
}

.price-chip--cyan {
  background: var(--cyan-pale);
  color: var(--cyan-dark);
}

/* --------------------------------------------------------------------------
   12. Предзаказ
   -------------------------------------------------------------------------- */

.panel {
  position: relative;
  padding: 46px 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(125deg, var(--brand-pale) 0%, var(--cyan-pale) 100%);
}

.panel .deco-sparkle {
  top: 30px;
  right: 44px;
  font-size: 22px;
  color: rgba(116, 42, 240, 0.3);
}

.panel__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin-bottom: 30px;
}

.panel__title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: var(--ink-strong);
}

.panel__text {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.step__num--brand { background: var(--brand); }
.step__num--cyan { background: var(--cyan); }
.step__num--pink { background: var(--pink); }

.step__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-strong);
}

.step__text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-2);
}

.b2b {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--surface);
}

.b2b__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--cyan);
  color: #fff;
}

.b2b__body {
  flex: 1;
  min-width: 260px;
}

.b2b__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-strong);
}

.b2b__text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   13. Соцсети
   -------------------------------------------------------------------------- */

.socials {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.social {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.social:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(116, 42, 240, 0.12);
  color: var(--ink);
}

.social__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.social__icon--tg { background: var(--cyan); }
.social__icon--ig { background: var(--pink); }
.social__icon--tt { background: var(--brand); }
.social__icon--vk { background: var(--blue); }
.social__icon--max { background: linear-gradient(140deg, var(--cyan-dark), var(--brand)); }

.social__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social__name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-strong);
}

.social__handle {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   14. О компании
   -------------------------------------------------------------------------- */

.about {
  position: relative;
  margin-top: 60px;
  min-height: 400px;
  background: var(--cyan-pale);
  /* маскот намеренно выходит вверх за секцию, но не должен давать
     горизонтальную прокрутку: clip режет только по X и, в отличие от
     hidden, не превращает секцию в скролл-контейнер */
  overflow-x: clip;
  overflow-y: visible;
}

.about__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  padding-top: 52px;
  padding-bottom: 52px;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about__kicker {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-dark);
}

.about__title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: var(--cyan-ink);
}

.about__text {
  max-width: 560px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--cyan-ink-2);
  text-wrap: pretty;
}

.about__btn {
  align-self: flex-start;
  margin-top: 6px;
  padding: 13px 30px;
  font-size: 15px;
}

.shops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
  margin-top: 8px;
}

.shop {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--cyan-ink);
}

.shop:hover {
  background: var(--cyan);
  color: #fff;
}

.shop__label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.62;
}

.shop__addr {
  font-size: 16.5px;
  font-weight: 900;
}

.shop__hours {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.75;
}

.about__mascot {
  position: absolute;
  z-index: 0;
  right: -20px;
  top: -125px;
  width: min(783px, 58vw);
  height: 721px;
  pointer-events: none;
}

.about__mascot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  transform: translateY(20px) rotate(3deg);
  transform-origin: bottom center;
}

/* --------------------------------------------------------------------------
   15. Футер
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 2;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer--spaced {
  margin-top: 56px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-top: 44px;
  padding-bottom: 28px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.footer__col--brand {
  gap: 14px;
}

.footer__logo {
  display: block;
  width: 146px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.footer__about {
  max-width: 320px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
}

.footer__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.footer a {
  color: var(--footer-text);
}

.footer a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__copy {
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--footer-muted);
}

/* --------------------------------------------------------------------------
   16. Страница категории
   -------------------------------------------------------------------------- */

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--brand);
}

.crumbs__current {
  color: var(--ink-2);
}

.cat-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 250px;
  margin-top: 16px;
  padding: 42px 46px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--cat-hero-bg);
}

.cat-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.cat-hero__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: min(620px, 56%);
  color: #fff;
}

.cat-hero__badge {
  background: rgba(255, 255, 255, 0.22);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cat-hero__title {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.cat-hero__text {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
  opacity: 0.95;
  text-wrap: pretty;
}

.cat-hero__stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
}

.cat-hero__stat {
  border-radius: var(--pill);
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.2);
}

.cat-hero__photo {
  position: absolute;
  right: 40px;
  bottom: -30px;
  z-index: 1;
  height: clamp(200px, 26vw, 300px);
  width: auto;
  max-width: 38%;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.24));
}

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

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 10px 18px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 800;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.sort {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 8px 16px;
  background: var(--surface);
}

.sort__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.sort__select {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}

.more {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.more.is-hidden {
  display: none;
}

.empty {
  padding: 40px 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
}

.empty.is-hidden {
  display: none;
}

.strip {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, var(--brand-pale) 0%, var(--cyan-pale) 100%);
}

.strip__body {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.strip__title {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink-strong);
}

.strip__text {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink-2);
}

.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-link {
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 11px 20px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 800;
}

.pill-link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   17. Адаптив
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .about__mascot {
    right: -40px;
    top: -60px;
    width: min(560px, 56vw);
    height: 540px;
  }
}

@media (max-width: 1024px) {
  .header__inner {
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 18px;
  }

  .search {
    flex: 1 1 200px;
  }

  .products {
    grid-template-columns: repeat(3, 1fr);
  }

  .socials {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .about__mascot {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
  }

  .about__mascot img {
    width: 100%;
    max-width: 460px;
    height: auto;
    transform: none;
  }

  .panel {
    padding: 36px 30px;
  }

  .hero__body {
    padding: 40px 36px;
  }

  .hero__arrow--prev { left: 16px; }
  .hero__arrow--next { right: 16px; }
}

@media (max-width: 768px) {
  :root {
    --gutter: 16px;
  }

  .topbar__inner {
    font-size: 12px;
    gap: 10px;
  }

  .topbar__spacer {
    display: none;
  }

  .search {
    order: 2;
    margin-left: 0;
  }

  .section,
  .section--wide {
    margin-top: 40px;
  }

  .section__title {
    font-size: 26px;
  }

  .hero__slide {
    height: auto;
    min-height: 420px;
  }

  .hero__veil {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.88) 52%,
      rgba(255, 255, 255, 0.25) 100%
    );
  }

  .hero__body {
    max-width: none;
    padding: 34px 24px 80px;
  }

  .hero__text {
    max-width: none;
  }

  /* стрелки уходят вниз к точкам, чтобы не перекрывать текст слайда */
  .hero__arrow {
    top: auto;
    bottom: 14px;
    transform: none;
  }

  .hero__arrow--prev { left: 16px; }
  .hero__arrow--next { right: 16px; }

  .hero__dots {
    bottom: 27px;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .socials {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gift,
  .strip {
    padding: 26px 22px;
  }

  .cat-hero {
    padding: 30px 24px 200px;
  }

  .cat-hero__body {
    max-width: none;
  }

  .cat-hero__photo {
    right: 50%;
    bottom: -20px;
    transform: translateX(50%);
    max-width: 70%;
    height: 200px;
  }

  .filters {
    gap: 10px;
  }

  .sort {
    width: 100%;
    justify-content: space-between;
  }
}

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

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

  .product {
    height: auto;
  }

  .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav a {
    flex: 0 0 auto;
  }

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

  .hero__arrow {
    width: 38px;
    height: 38px;
  }
}

/* --------------------------------------------------------------------------
   18. Уважаем системную настройку «меньше движения»
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cats__track {
    scroll-behavior: auto;
  }

  .js [data-reveal] > * {
    opacity: 1;
  }
}
