/*
 * У Шахнозы — «светлый бутик»: тёплая слоновая кость, глубокий сливово-чернильный,
 * коралловый акцент. У каждого отдела свой цвет:
 * канцтовары — подсолнух, одежда — шалфей, косметика — пудра, дом — небо.
 * Заголовки — Unbounded, текст — Manrope (оба с казахскими буквами).
 */
:root {
  --bg: #fbf7f2;
  --bg-2: #f4ede4;
  --surface: #ffffff;
  --ink: #1f1830;
  --ink-2: #5d566b;
  --ink-3: #8a8396;
  --line: #ebe3d8;
  --plum: #2a1f3d;
  --plum-2: #3a2c55;

  --accent: #ff6b4a;
  --accent-deep: #c2391d;
  --accent-soft: #ffe6de;

  --st: #ffcf3f;        /* канцтовары */
  --st-soft: #fff4cf;
  --st-deep: #8a6400;
  --cl: #b9d3c2;        /* одежда */
  --cl-soft: #e6f0e9;
  --cl-deep: #2f6b4f;
  --bt: #f6c4cf;        /* косметика */
  --bt-soft: #fde9ed;
  --bt-deep: #a3365a;
  --hm: #c9dcf5;        /* дом */
  --hm-soft: #eaf1fb;
  --hm-deep: #2e5aa8;

  --wa: #1fa855;
  --wa-dark: #168a44;

  --r-xs: 8px;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 28px;
  --r-xl: 40px;
  --sh-1: 0 1px 2px rgba(31, 24, 48, 0.05), 0 6px 18px rgba(31, 24, 48, 0.06);
  --sh-2: 0 18px 48px rgba(31, 24, 48, 0.16);
  --sh-pop: 0 10px 0 -4px rgba(31, 24, 48, 0.08);
  --gutter: 16px;
  --section: clamp(56px, 7vw, 112px);
  --header-h: 113px;
  --fast: 160ms;
  --mid: 320ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(15px, 0.94rem + 0.15vw, 17px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 0.45em; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 1.1rem + 2vw, 46px); }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-top: var(--section); padding-bottom: var(--section); }
.lead { font-size: 1.08em; color: var(--ink-2); max-width: 58ch; margin: 0 0 28px; }
.muted { color: var(--ink-2); font-size: 0.88em; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- promo bar ---------- */
.promo { background: var(--plum); color: #fff; font-size: 13px; font-weight: 700; overflow: hidden; }
.promo__track { display: flex; justify-content: center; gap: 40px; padding: 9px var(--gutter); white-space: nowrap; }
.promo__track span { display: inline-flex; align-items: center; gap: 10px; }
.promo__track span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--st); }
.promo__track span:nth-child(2)::before { background: var(--cl); }
.promo__track span:nth-child(3n)::before { background: var(--bt); }
.promo__track span:nth-child(3n+2)::before { background: var(--cl); }
.promo__dup { display: none !important; }
@media (max-width: 900px) { .promo__dup { display: inline-flex !important; } }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 247, 242, 0.88);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header__row { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--plum); color: var(--accent); font-family: var(--display); font-weight: 700; font-size: 18px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
  transition: transform var(--mid) var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.05); }
.logo__text { font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: -0.03em; }
.logo__text b { font-weight: 700; }

.search { position: relative; flex: 1; max-width: 520px; display: block; }
.search__icon { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--ink-3); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%; height: 46px; padding: 0 18px 0 46px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(31, 24, 48, 0.08); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { display: flex; background: var(--bg-2); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; cursor: pointer; color: var(--ink-2); }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.list-btn {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; color: var(--accent-deep);
  transition: border-color var(--fast), transform var(--fast) var(--ease);
}
.list-btn:hover { border-color: var(--accent); }
.list-btn:active { transform: scale(0.94); }
.list-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.list-btn__count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--bg);
}
.cart-btn {
  display: flex; align-items: center; gap: 10px; height: 46px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; padding: 0 8px 0 16px; border-radius: 999px; font-weight: 800;
  transition: transform var(--fast) var(--ease), background var(--fast);
}
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.cart-btn:hover { background: var(--plum-2); }
.cart-btn:active { transform: scale(0.96); }
.cart-btn__count { background: var(--accent); min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; }
.cart-btn.bump, .list-btn.bump { animation: bump 450ms var(--ease); }
@keyframes bump { 35% { transform: scale(1.14) rotate(-4deg); } }

.nav { display: flex; align-items: center; gap: 4px; height: 44px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a, .nav__dept {
  flex-shrink: 0; padding: 7px 12px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: background var(--fast), color var(--fast);
}
.nav a:hover, .nav__dept:hover { background: var(--bg-2); color: var(--ink); }
.nav__dept { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.nav__dept::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--st)); }
.nav__dept--clothes { --dot: var(--cl); }
.nav__dept--beauty { --dot: var(--bt); }
.nav__dept--home { --dot: var(--hm); }
.nav__dept.is-active { background: var(--surface); box-shadow: var(--sh-1); }
.nav__sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 800; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--fast) var(--ease), background var(--fast), box-shadow var(--fast), border-color var(--fast);
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.02em; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -8px rgba(255, 107, 74, 0.7); }
.btn--primary:hover { background: #ff5a36; box-shadow: 0 12px 28px -8px rgba(255, 107, 74, 0.8); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }
.btn--tg { background: #229ed9; color: #fff; }
.btn--tg:hover { background: #1b87bb; }
.btn--block { width: 100%; }
.btn--link { background: none; color: var(--ink-2); text-decoration: underline; min-height: 36px; padding: 0 8px; }
.btn--link:hover { transform: none; color: var(--ink); }
.round-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--surface);
  cursor: pointer; font-size: 18px; font-weight: 800; transition: background var(--fast), color var(--fast), transform var(--fast) var(--ease);
}
.round-btn:hover { background: var(--ink); color: #fff; }
.round-btn:active { transform: scale(0.92); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: radial-gradient(rgba(31, 24, 48, 0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center;
  padding-top: clamp(36px, 6vw, 88px); padding-bottom: clamp(28px, 4vw, 56px);
}
.hero__grid > * { min-width: 0; }
.hero__title { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 1.2rem + 5vw, 84px); line-height: 1.02; letter-spacing: -0.045em; margin: 0 0 22px; }
.hero__line { display: block; width: fit-content; }
.hero__line--a { position: relative; z-index: 0; }
.hero__line--a::after { content: ''; position: absolute; left: -0.08em; right: -0.08em; bottom: 0.08em; height: 0.34em; background: var(--st); z-index: -1; border-radius: 6px; transform: rotate(-1.2deg); }
.hero__line--b { color: var(--bt-deep); font-weight: 500; font-style: normal; }
.hero__line--c { color: var(--ink); }
.hero__lead { font-size: 1.12em; color: var(--ink-2); max-width: 46ch; margin: 0 0 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px); margin: 36px 0 0; padding-top: 24px; border-top: 1px dashed var(--line); }
.hero__stats div { display: flex; flex-direction: column-reverse; }
.hero__stats dt { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 1rem + 1vw, 28px); letter-spacing: -0.03em; }
.hero__stats dd { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: lowercase; }

/* bento с отделами */
.bento { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1.08; }
.bento__tile {
  position: relative; border: 0; cursor: pointer; text-align: left; color: var(--ink); overflow: hidden;
  border-radius: var(--r-l); padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  transition: transform var(--mid) var(--ease), box-shadow var(--mid);
}
.bento__tile:hover { transform: translateY(-5px) rotate(-0.6deg); box-shadow: var(--sh-2); }
.bento__tile--main { grid-row: 1 / 3; background: var(--st-soft); }
.bento__tile--clothes { background: var(--cl); }
.bento__tile--beauty { background: var(--bt); }
.bento__photos { position: absolute; inset: 16px 16px 84px; }
.bento__photos img {
  position: absolute; width: 58%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; padding: 8px;
  border-radius: var(--r-m); box-shadow: var(--sh-1); transition: transform var(--mid) var(--ease);
}
.bento__photos img:nth-child(1) { left: 0; top: 2%; transform: rotate(-6deg); }
.bento__photos img:nth-child(2) { right: 0; top: 18%; transform: rotate(5deg); z-index: 1; }
.bento__photos img:nth-child(3) { left: 16%; bottom: 0; width: 50%; transform: rotate(-2deg); z-index: 2; }
.bento__tile--main:hover .bento__photos img:nth-child(1) { transform: rotate(-10deg) translate(-4px, -4px); }
.bento__tile--main:hover .bento__photos img:nth-child(2) { transform: rotate(9deg) translate(4px, -2px); }
.bento__label { position: relative; z-index: 3; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bento__title { font-family: var(--display); font-weight: 600; font-size: clamp(17px, 0.8rem + 0.9vw, 24px); letter-spacing: -0.03em; }
.bento__count { font-size: 13px; font-weight: 800; background: var(--surface); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.bento__icon {
  position: absolute; top: 14px; right: 14px; width: 46%; max-width: 120px; fill: none; stroke: rgba(31, 24, 48, 0.55);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--mid) var(--ease);
}
.bento__tile:hover .bento__icon { transform: rotate(-8deg) scale(1.06); }
.bento__note { font-size: 12px; font-weight: 800; color: rgba(31, 24, 48, 0.7); }

/* полоса доверия */
.trust {
  position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 0; margin-bottom: 0; padding-bottom: clamp(20px, 3vw, 36px);
}
.trust li {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-m);
  background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; line-height: 1.3;
}
.trust__dot { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); position: relative; }
.trust__dot::after { content: ''; position: absolute; left: 9px; top: 6px; width: 6px; height: 11px; border: solid var(--accent-deep); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* ---------- отделы ---------- */
.depts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: clamp(20px, 3vw, 36px); }
.dept {
  position: relative; overflow: hidden; text-align: left; cursor: pointer; border: 0; color: var(--ink);
  display: flex; flex-direction: column; gap: 8px; min-height: 196px; padding: 24px; border-radius: var(--r-l);
  background: var(--soft); transition: transform var(--mid) var(--ease), box-shadow var(--mid);
}
.dept::after {
  content: ''; position: absolute; right: -36px; bottom: -36px; width: 120px; height: 120px; border-radius: 50%;
  background: var(--tone); opacity: 0.8; transition: transform var(--mid) var(--ease);
}
.dept:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.dept:hover::after { transform: scale(1.35); }
.dept--stationery { --soft: var(--st-soft); --tone: var(--st); --deep: var(--st-deep); }
.dept--clothes { --soft: var(--cl-soft); --tone: var(--cl); --deep: var(--cl-deep); }
.dept--beauty { --soft: var(--bt-soft); --tone: var(--bt); --deep: var(--bt-deep); }
.dept--home { --soft: var(--hm-soft); --tone: var(--hm); --deep: var(--hm-deep); }
.dept__title { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.03em; }
.dept__text { color: var(--ink-2); font-size: 0.92em; position: relative; z-index: 1; }
.dept__link { margin-top: auto; font-weight: 800; color: var(--deep); position: relative; z-index: 1; }
.dept.is-active { box-shadow: 0 0 0 2px var(--ink); }

/* ---------- полка «до 500 ₸» ---------- */
.shelf { padding-bottom: clamp(24px, 4vw, 48px); }
.shelf__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.shelf__nav { display: flex; gap: 8px; margin-bottom: 28px; }
.shelf__row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 210px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 6px max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))) 18px;
  scroll-padding-left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
}
.shelf__row::-webkit-scrollbar { display: none; }
.shelf__row .card { scroll-snap-align: start; }

/* ---------- каталог ---------- */
.catalog { padding-top: clamp(40px, 5vw, 72px); }
.catalog__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0 32px; }
.catalog__head .lead { margin-bottom: 20px; }
.toolbar {
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgba(251, 247, 242, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.toolbar__inner { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 16px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
  font-weight: 800; font-size: 14px; white-space: nowrap; transition: background var(--fast), border-color var(--fast), color var(--fast);
}
.tab:hover { border-color: var(--ink); }
.tab__count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--bg-2); display: grid; place-items: center; font-size: 12px; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab[aria-selected="true"] .tab__count { background: var(--tone, var(--accent)); color: var(--ink); }
.tab--stationery { --tone: var(--st); }
.tab--clothes { --tone: var(--cl); }
.tab--beauty { --tone: var(--bt); }
.tab--home { --tone: var(--hm); }
.sort select {
  height: 40px; padding: 0 38px 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: 14px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 17px, calc(100% - 15px) 17px; background-size: 5px 5px; background-repeat: no-repeat;
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent;
  padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; color: var(--ink-2);
  transition: background var(--fast), color var(--fast);
}
.chip:hover { background: var(--bg-2); color: var(--ink); }
.chip__count { font-size: 11px; font-weight: 800; color: var(--ink-3); }
.chip[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-deep); }
.chip[aria-selected="true"] .chip__count { color: var(--accent-deep); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }

/* карточка товара */
.card {
  --tone: var(--st-soft);
  position: relative; min-width: 0; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border-radius: var(--r-m); padding: 10px 10px 14px; border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 120px);
  transition: box-shadow var(--mid), transform var(--mid) var(--ease), border-color var(--mid);
}
.card[data-dept="clothes"] { --tone: var(--cl-soft); }
.card[data-dept="beauty"] { --tone: var(--bt-soft); }
.card[data-dept="home"] { --tone: var(--hm-soft); }
.card[data-cat="sets"] { --tone: var(--accent-soft); }
.card:hover { box-shadow: var(--sh-2); transform: translateY(-4px); border-color: transparent; }
.card__media { position: relative; display: block; padding: 0; border: 0; background: var(--tone); border-radius: var(--r-s); overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.card__pic { width: 100%; height: 100%; display: grid; place-items: center; font-size: 56px; }
.card__pic--photo { object-fit: contain; padding: 10px; mix-blend-mode: multiply; transition: transform 500ms var(--ease); }
.card:hover .card__pic--photo { transform: scale(1.06); }
.card__badges { position: absolute; top: 18px; left: 18px; display: flex; gap: 6px; pointer-events: none; }
.badge { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--st); }
.badge--order { background: var(--plum); color: #fff; }
.card__tools { position: absolute; top: 18px; right: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.card__tool {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.95);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2); box-shadow: var(--sh-1);
  transition: color var(--fast), transform var(--fast) var(--ease), opacity var(--fast);
}
.card__tool:hover { color: var(--accent-deep); transform: scale(1.08); }
.card__tool:active { transform: scale(0.9); }
.card__tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.card__heart { width: auto; display: inline-flex; gap: 5px; padding: 0 12px 0 9px; border-radius: 999px; font-weight: 800; font-size: 12px; white-space: nowrap; }
.card__heart-text { max-width: 0; overflow: hidden; transition: max-width var(--mid) var(--ease); }
.card__heart { padding: 0 9px; }
.card:hover .card__heart-text, .card__heart[aria-pressed="true"] .card__heart-text { max-width: 90px; }
.card:hover .card__heart, .card__heart[aria-pressed="true"] { padding: 0 12px 0 9px; }
.card__heart[aria-pressed="true"] { color: #fff; background: var(--accent); }
.card__heart[aria-pressed="true"] svg { fill: currentColor; }
.card__cat { margin: 6px 4px 0; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__title { margin: 0 4px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.card__name {
  padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-weight: 700; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.card__name:hover { color: var(--accent-deep); }
.card__desc { margin: 0 4px; color: var(--ink-2); font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__variant { margin: 2px 4px 0; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--r-xs); background: var(--bg); font-size: 14px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: auto 4px 0; padding-top: 8px; }
.card__price { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; line-height: 1.15; }
.card__price--ask { font-family: var(--font); color: var(--ink-2); font-weight: 700; font-size: 13px; }
.card__unit { display: block; font-family: var(--font); font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: 0; }
.card__add {
  flex-shrink: 0; border: 0; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; height: 38px; padding: 0 14px;
  border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background var(--fast), transform var(--fast) var(--ease);
}
.card__add:hover { background: var(--accent); }
.card__add:active { transform: scale(0.94); }
.card__add--in { background: var(--cl-soft); color: var(--cl-deep); }
.card__add--in:hover { background: var(--cl); color: var(--ink); }
.card--hl { box-shadow: 0 0 0 3px var(--accent), var(--sh-2); animation: hl 900ms var(--ease) 2; }
@keyframes hl { 50% { transform: translateY(-6px); } }
.card--compact .card__add { width: 38px; padding: 0; font-size: 0; position: relative; }
.card--compact .card__add::before { content: '+'; font-size: 22px; font-weight: 600; line-height: 38px; }
.card--compact .card__add--in::before { content: '✓'; font-size: 16px; }
.empty { color: var(--ink-2); text-align: center; padding: 32px; }
.dept-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  margin-bottom: 20px; padding: 20px 24px; border-radius: var(--r-l); background: var(--plum); color: #fff;
}
.dept-cta__text { margin: 0; max-width: 56ch; font-weight: 600; }

.more { display: grid; justify-items: center; gap: 12px; margin-top: 36px; }
.more__meta { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.more__bar { width: 200px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.more__bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transition: transform var(--mid) var(--ease); }

/* ---------- одежда и косметика под заказ ---------- */
.order-band { background: var(--plum); color: #fff; position: relative; overflow: hidden; }
.order-band::before {
  content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 196, 207, 0.35), transparent 65%);
}
.order-band__grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding-top: var(--section); padding-bottom: var(--section); }
.order-band h2 { color: #fff; }
.order-band__text { color: rgba(255, 255, 255, 0.75); font-size: 1.08em; max-width: 46ch; margin: 0; }
.order-band__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.order-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 230px; padding: 22px; border-radius: var(--r-l);
  color: var(--ink); text-decoration: none; overflow: hidden; transition: transform var(--mid) var(--ease);
}
.order-card:hover { transform: translateY(-6px) rotate(0.6deg); }
.order-card--clothes { background: var(--cl); }
.order-card--beauty { background: var(--bt); }
.order-card svg { width: 84px; height: 84px; margin-bottom: auto; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.order-card__title { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; }
.order-card__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.order-card__cta::after { content: '→'; transition: transform var(--fast) var(--ease); }
.order-card:hover .order-card__cta::after { transform: translateX(5px); }

/* ---------- наборы, опт, доставка, контакты ---------- */
.sets { background: linear-gradient(180deg, var(--bg) 0%, var(--accent-soft) 100%); }
.grid--sets { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--sets .card__media { aspect-ratio: 16 / 9; cursor: pointer; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.steps {
  list-style: none; margin: 0; padding: clamp(24px, 3vw, 36px); background: var(--surface); border-radius: var(--r-xl);
  border: 1px solid var(--line); counter-reset: step; display: grid; gap: 18px; box-shadow: var(--sh-pop);
}
.steps__title { font-family: var(--display); font-size: 22px; font-weight: 600; }
.steps li:not(.steps__title) { counter-increment: step; display: flex; gap: 16px; align-items: center; font-weight: 700; }
.steps li:not(.steps__title)::before {
  content: counter(step); flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; background: var(--st); color: var(--ink);
}
.steps li:nth-child(3)::before { background: var(--cl); }
.steps li:nth-child(4)::before { background: var(--bt); }
.delivery { background: var(--bg-2); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.facts li { display: flex; flex-direction: column; gap: 14px; background: var(--surface); padding: 22px; border-radius: var(--r-m); font-weight: 700; line-height: 1.35; }
.facts svg { width: 34px; height: 34px; fill: none; stroke: var(--accent-deep); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.contacts-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: stretch; padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line);
}
.contacts { display: grid; gap: 6px; margin-bottom: 24px; }
.contacts p { margin: 0; color: var(--ink-2); }
.contacts #contactPhone { font-family: var(--display); font-size: clamp(22px, 1rem + 1.4vw, 32px); font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.insta-box { border-radius: var(--r-l); padding: 24px; background: linear-gradient(135deg, var(--st-soft), var(--bt-soft) 60%, var(--hm-soft)); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.insta-box__title { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; margin: 0; }
.insta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.insta a { padding: 9px 14px; border-radius: 999px; background: var(--surface); font-weight: 800; text-decoration: none; font-size: 14px; transition: background var(--fast), color var(--fast); }
.insta a:hover { background: var(--ink); color: #fff; }
.footer { padding: 28px 0 32px; color: var(--ink-2); border-top: 1px solid var(--line); font-size: 14px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.logo--footer .logo__mark { width: 32px; height: 32px; font-size: 15px; border-radius: 10px; }
.logo--footer .logo__text { font-size: 16px; }
body.has-cart .footer { padding-bottom: 110px; }

/* ---------- drawers ---------- */
.overlay, .sheet-backdrop { position: fixed; inset: 0; background: rgba(31, 24, 48, 0.5); backdrop-filter: blur(3px); z-index: 40; animation: fade 200ms ease; }
.sheet-backdrop { z-index: 70; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); z-index: 50;
  padding-top: env(safe-area-inset-top, 0px); padding-right: env(safe-area-inset-right, 0px);
  display: flex; flex-direction: column; box-shadow: var(--sh-2); animation: slide 320ms var(--ease);
}
@keyframes slide { from { transform: translateX(100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 20px; margin: 0; }
.drawer__body { overflow-y: auto; padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; align-content: start; }
.icon-btn { border: 0; background: var(--bg-2); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 15px; transition: background var(--fast); }
.icon-btn:hover { background: var(--line); }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: var(--surface); padding: 10px; border-radius: var(--r-s); border: 1px solid var(--line); }
.line__icon { font-size: 28px; text-align: center; }
.line__icon--photo { width: 56px; height: 56px; object-fit: contain; background: var(--bg); border-radius: 10px; padding: 3px; }
.line__name { font-weight: 700; line-height: 1.25; font-size: 14px; }
.line__variant { color: var(--ink-2); font-size: 0.82em; }
.line__sum { font-size: 0.88em; font-weight: 800; color: var(--accent-deep); margin-top: 2px; }
.qty { display: flex; align-items: center; gap: 2px; background: var(--bg); border-radius: 999px; padding: 3px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--surface); cursor: pointer; font-weight: 800; box-shadow: var(--sh-1); }
.qty span { min-width: 26px; text-align: center; font-weight: 800; }
.summary { margin: 0; font-weight: 800; }
.summary p { margin: 0 0 4px; }
#cartTotal { font-family: var(--display); font-weight: 600; }
.line__btns { display: flex; gap: 6px; }
.line__btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; font-size: 15px; }
.line__btn:hover { border-color: var(--ink); }
.list-actions { display: grid; gap: 10px; }
.shared-note { margin: 0; padding: 12px 14px; border-radius: var(--r-s); background: var(--cl-soft); font-weight: 600; }
.order { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.order label { display: grid; gap: 4px; font-weight: 700; font-size: 0.88em; }
.order input, .order select, .order textarea { padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--r-xs); background: var(--bg); font-weight: 500; }
.order input:focus, .order select:focus, .order textarea:focus { outline: none; border-color: var(--ink); }

/* ---------- быстрый просмотр и «Поделиться» ---------- */
.quick {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 71;
  width: min(880px, calc(100% - 2 * var(--gutter))); max-height: calc(100dvh - 32px); overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--sh-2);
  animation: pop 320ms var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(0.97); } }
.quick__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--surface); box-shadow: var(--sh-1); }
.quick__media { background: var(--st-soft); display: grid; place-items: center; min-height: 320px; padding: 24px; }
.quick__media[data-dept="clothes"] { background: var(--cl-soft); }
.quick__media[data-dept="beauty"] { background: var(--bt-soft); }
.quick__media[data-dept="home"] { background: var(--hm-soft); }
.quick__pic { font-size: 96px; }
.quick__pic--photo { width: 100%; max-height: 460px; object-fit: contain; mix-blend-mode: multiply; }
.quick__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 10px; }
.quick__name { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 1rem + 1vw, 28px); margin: 0; }
.quick__desc { color: var(--ink-2); margin: 0; }
.quick__price { font-family: var(--display); font-weight: 600; font-size: 28px; margin: 6px 0; letter-spacing: -0.02em; }
.quick__actions { display: grid; gap: 10px; margin-top: auto; padding-top: 10px; }
.quick .card__variant { margin: 0; }
.sheet {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 71;
  width: min(440px, calc(100% - 2 * var(--gutter))); background: var(--bg); border-radius: var(--r-m);
  box-shadow: var(--sh-2); overflow: hidden; animation: pop 300ms var(--ease);
}
.sheet__body { padding: 16px 20px 20px; display: grid; gap: 12px; }
.sheet__what { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.sheet__url { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-xs); background: var(--surface); font-size: 14px; color: var(--ink-2); }
.sheet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet__grid .btn { padding: 0 12px; }
.sheet__grid .btn:first-child { grid-column: 1 / -1; }

/* ---------- плавающие элементы ---------- */
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 25;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--sh-2);
  animation: up 360ms var(--ease);
}
@keyframes up { from { transform: translateY(140%); } }
.cart-bar__info { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-bar .btn { min-height: 42px; }
.fab {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 10px 28px -6px rgba(31, 168, 85, 0.6); z-index: 20; transition: transform var(--fast) var(--ease);
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 160%); background: var(--ink); color: #fff;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; z-index: 80; pointer-events: none;
  opacity: 0; transition: transform var(--mid) var(--ease), opacity var(--fast);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
body.has-cart .toast { bottom: 92px; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .cart-btn__label { display: none; }
  .depts { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 163px; }
  .header__row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hero__grid, .split, .order-band__grid, .contacts-card { grid-template-columns: 1fr; }
  .bento { aspect-ratio: auto; grid-template-rows: 200px 200px; max-width: 560px; }
  .quick { grid-template-columns: 1fr; }
  .quick__media { min-height: 240px; }
  .quick__pic--photo { max-height: 300px; }
  .promo__track { justify-content: flex-start; animation: marquee 18s linear infinite; width: max-content; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  :root { --header-h: 119px; }
  .header .nav { display: none; }
  .header__actions { gap: 6px; }
  .lang button { padding: 6px 8px; }
  .list-btn, .cart-btn { height: 42px; }
  .list-btn { width: 42px; }
  .logo__text { font-size: 17px; }
  .hero__title { font-size: clamp(36px, 11vw, 48px); }
  .hero__stats { margin-top: 26px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px; }
  .bento__tile--main { grid-column: 1 / 3; grid-row: 1; }
  .bento__photos { inset: 12px 12px 64px; }
  .bento__photos img { width: 42%; }
  .bento__photos img:nth-child(1) { left: 4%; }
  .bento__photos img:nth-child(2) { right: 4%; top: 6%; }
  .bento__photos img:nth-child(3) { left: 30%; width: 38%; }
  .trust { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trust li { padding: 10px 12px; font-size: 13px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__stats div:nth-child(3) { display: none; }
  .depts {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74%; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px;
  }
  .depts::-webkit-scrollbar { display: none; }
  .dept { min-height: 168px; padding: 18px; scroll-snap-align: start; }
  .dept__title { font-size: 17px; }
  .dept__text { font-size: 13px; }
  .shelf__nav { display: none; }
  .toolbar { position: relative; top: auto; }
  .toolbar__inner { flex-wrap: wrap; gap: 8px; }
  .tabs { flex-basis: 100%; }
  .sort { margin-left: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 8px 8px 12px; }
  .card__badges { top: 14px; left: 14px; }
  .card__tools { top: 14px; right: 14px; }
  .card__tool { width: 32px; height: 32px; }
  .card__heart-text { display: none; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card__add { width: 100%; }
  .card--compact .card__foot { flex-direction: row; align-items: center; }
  .card--compact .card__add { width: 38px; }
  .order-band__cards { grid-template-columns: 1fr 1fr; }
  .order-card { min-height: 190px; padding: 18px; }
  .order-card svg { width: 60px; height: 60px; }
  .order-card__title { font-size: 18px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .facts li { padding: 16px; font-size: 14px; }
  .cart-bar { display: flex; }
  body.has-cart .fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 400px) {
  .logo__text { display: none; }
  .logo__mark { width: 34px; height: 34px; }
  .grid { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
