/* ============================================================
   Asia Pro Cosmetics — базовые стили
   Палитра: белый / фиолетовый. Строгий люкс.
   ============================================================ */

:root {
  --white: #ffffff;
  --bg-soft: #f7f5fb;
  --bg-tint: #efeaf8;
  --purple: #5b3fa6;
  --purple-deep: #3e2a80;
  --purple-ink: #2e1f5e;
  --lavender: #c9b8f0;
  --lavender-soft: #e6dff6;
  --ink: #1f1b2e;
  --muted: #6b6880;
  --muted-2: #9c99ad;
  --line: #e4e1ec;
  --line-strong: #cfcadf;
  --sale: #b0306a;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --container: 1240px;
  --gutter: 24px;
  --radius: 4px;
  --radius-pill: 999px;

  --t-fast: 160ms ease;
  --t-med: 260ms ease;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (max-width: 900px) { body.is-locked { overflow: hidden; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(38px, 5vw, 64px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
h4 { font-size: 20px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

/* ---------- утилиты ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
}
.muted { color: var(--muted); }
.serif { font-family: var(--font-display); }
.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 28px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-deep); }
.btn-outline { border-color: var(--purple-ink); color: var(--purple-ink); background: transparent; }
.btn-outline:hover { background: var(--purple-ink); color: var(--white); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-sm { height: 40px; padding: 0 20px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--purple-ink);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), gap var(--t-fast);
}
.link-arrow:hover { color: var(--purple); gap: 12px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- бегущая строка ---------- */
.ticker {
  background: var(--purple-ink);
  color: var(--white);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  height: 34px; overflow: hidden; display: flex; align-items: center;
}
.ticker__track {
  display: flex; gap: 0; white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker__track span { padding: 0 32px; display: inline-flex; align-items: center; gap: 32px; }
.ticker__track span::after { content: "·"; opacity: .5; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- шапка ---------- */
.header {
  position: relative; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
/* шапка при прокрутке: фиксируется, прячется при скролле вниз и выезжает при скролле вверх */
.header.is-fixed {
  position: fixed; top: 0; left: 0; right: 0;
  transform: translateY(0);
  transition: transform 480ms cubic-bezier(.22,.61,.36,1), box-shadow 480ms ease;
  will-change: transform;
  box-shadow: 0 8px 24px -18px rgba(46,31,94,.35);
}
.header.is-fixed.is-hidden { transform: translateY(-100%); box-shadow: none; }
.header-spacer { display: none; }
.header-spacer.is-on { display: block; }
.header__row {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; height: 84px;
}
.header__nav { display: flex; gap: 32px; }
.header__nav > li { position: relative; }
.header__nav a, .header__nav button {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); padding: 8px 0; display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--t-fast);
}
.header__nav a:hover, .header__nav button:hover, .header__nav a.is-active { color: var(--purple); }
.header__logo { display: block; justify-self: center; }
.header__logo img { height: 52px; width: auto; }
.header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; position: relative; color: var(--ink);
  transition: color var(--t-fast);
}
.icon-btn:hover { color: var(--purple); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn__badge {
  position: absolute; top: 2px; right: 0;
  min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 999px; background: var(--purple); color: var(--white);
  font-size: 10px; font-weight: 700; display: none; align-items: center; justify-content: center;
}
.icon-btn__badge.is-visible { display: inline-flex; }
.burger { display: none; }
.lang-btn {
  height: 30px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--purple-ink);
  transition: all var(--t-fast);
}
.lang-btn:hover { border-color: var(--purple); color: var(--purple); }
/* двуязычные блоки: показываем только текущий язык */
html[lang="ru"] [data-lang="en"], html[lang="en"] [data-lang="ru"] { display: none !important; }

/* мегаменю каталога */
.mega {
  position: absolute; left: -24px; top: 100%; transform: translateY(8px);
  width: min(1000px, calc(100vw - 48px));
  background: var(--white); border: 1px solid var(--line);
  padding: 32px 36px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
  opacity: 0; visibility: hidden; transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  box-shadow: 0 18px 40px -24px rgba(46,31,94,.25);
}
.header__nav > li:hover .mega, .header__nav > li:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega h5 { margin: 0 0 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mega li a { font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 500; padding: 5px 0; display: block; }
.mega li a:hover { color: var(--purple); }
.mega__all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }

/* поиск */
.search {
  position: fixed; inset: 0; z-index: 90; background: rgba(31,27,46,.45);
  display: none; align-items: flex-start; justify-content: center; padding-top: 12vh;
}
.search.is-open { display: flex; }
.search__box { width: min(720px, 92vw); background: var(--white); padding: 24px; }
.search__input {
  width: 100%; height: 56px; border: 0; border-bottom: 1px solid var(--purple-ink);
  font-size: 22px; font-family: var(--font-display); padding: 0 4px; outline: none; background: transparent;
}
.search__results { margin-top: 16px; max-height: 50vh; overflow: auto; }
.search__item { display: flex; gap: 14px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.search__item img { width: 48px; height: 48px; object-fit: contain; }
.search__item b { display: block; font-weight: 500; font-size: 14px; }
.search__item span { font-size: 13px; color: var(--muted); }
.search__item:hover b { color: var(--purple); }

/* мобильное меню */
.drawer {
  position: fixed; inset: 0; z-index: 95; display: none;
}
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(31,27,46,.45); }
.drawer__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(360px, 88vw);
  background: var(--white); overflow: auto; padding: 24px;
  animation: slideIn 220ms ease;
}
@keyframes slideIn { from { transform: translateX(-100%);} to { transform: none; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.drawer__head img { height: 40px; width: auto; }
.drawer__group { border-top: 1px solid var(--line); padding: 16px 0; }
.drawer__group h5 { margin: 0 0 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.drawer__group a { display: block; padding: 8px 0; font-size: 15px; font-weight: 500; }
.drawer__group a:hover { color: var(--purple); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #f8f6fc 0%, #f1edf9 55%, #e9e3f6 100%);
}
.hero::after {
  content: ""; position: absolute; right: -8%; top: -20%; width: 46vw; height: 46vw; max-width: 720px; max-height: 720px;
  border-radius: 50%; border: 1px solid rgba(91,63,166,.12); pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; right: 4%; bottom: -30%; width: 34vw; height: 34vw; max-width: 520px; max-height: 520px;
  border-radius: 50%; border: 1px solid rgba(91,63,166,.10); pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  min-height: min(680px, calc(100vh - 118px));
  padding: 64px 0;
}
.hero h1 { margin: 20px 0 24px; font-style: normal; font-weight: 600; letter-spacing: -0.015em; }
.hero h1 em { font-style: normal; font-weight: 600; color: var(--purple); }
.hero__lead { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 460px; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__visual img {
  position: relative; z-index: 1; width: min(100%, 540px); height: auto;
  filter: drop-shadow(0 34px 44px rgba(46,31,94,.18));
}
.hero__brands {
  display: flex; gap: 32px; flex-wrap: wrap; align-items: center;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(91,63,166,.18);
}
.hero__brands span:first-child { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero__brands a { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--purple-ink); letter-spacing: .02em; opacity: .8; transition: opacity var(--t-fast), color var(--t-fast); }
.hero__brands a:hover { opacity: 1; color: var(--purple); }

/* ---------- секции ---------- */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 40px;
}
.section__head h2 { margin-top: 12px; }
.section__head p { color: var(--muted); max-width: 520px; margin: 12px 0 0; }

/* цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 36px 28px 32px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(38px, 4vw, 56px); font-weight: 600; line-height: 1; color: var(--purple-ink); letter-spacing: -.02em; }
.stat__num small { font-size: .55em; color: var(--purple); font-weight: 500; margin-left: 2px; }
.stat__label { margin-top: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* бренды — крупные блоки с фото флагмана */
.brand-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.brand-card { display: block; border: 1px solid var(--line); background: var(--white); transition: border-color var(--t-fast), transform var(--t-med); }
.brand-card:hover { border-color: var(--purple); transform: translateY(-4px); }
.brand-card__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.brand-card__media img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: transform var(--t-med); }
.brand-card:hover .brand-card__media img { transform: scale(1.05); }
.brand-card__body { padding: 18px 20px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand-card__name { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--purple-ink); line-height: 1.1; }
.brand-card__count { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 500; }
.brand-card svg { width: 18px; height: 18px; color: var(--purple); flex: 0 0 auto; opacity: 0; transform: translateX(-6px); transition: all var(--t-fast); }
.brand-card:hover svg { opacity: 1; transform: none; }

/* категории — горизонтальная лента */
.cat-strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: var(--lavender) transparent; }
.cat-strip::-webkit-scrollbar { height: 4px; }
.cat-strip::-webkit-scrollbar-thumb { background: var(--lavender); border-radius: 2px; }
.cat-strip .cat { flex: 0 0 240px; scroll-snap-align: start; min-height: 200px; }
.cat-strip .cat h3 { margin-top: 56px; }

/* появление при скролле */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * { opacity: 1; transform: none; transition: none; }
}

/* преимущества */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); }
.feature { padding: 36px 32px; border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature__num { font-family: var(--font-display); font-size: 40px; font-weight: 500; color: var(--purple); line-height: 1; }
.feature h4 { margin: 18px 0 8px; font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

/* категории */
.cat {
  position: relative; display: block; border: 1px solid var(--line); background: var(--white);
  padding: 28px 28px 26px; min-height: 180px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.cat:hover { border-color: var(--purple); }
.cat__count { font-size: 12px; color: var(--muted-2); letter-spacing: .1em; }
.cat h3 { margin: 42px 0 0; font-size: 26px; }
.cat svg { position: absolute; right: 24px; bottom: 24px; width: 20px; height: 20px; color: var(--purple); opacity: 0; transform: translateX(-6px); transition: all var(--t-fast); }
.cat:hover svg { opacity: 1; transform: none; }

/* ---------- карточка товара ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); background: var(--white);
  transition: border-color var(--t-fast);
}
.card:hover { border-color: var(--purple); }
.card__media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--white);
  display: block; border-bottom: 1px solid var(--line);
}
.card__media img {
  width: 100%; height: 100%; object-fit: contain; padding: 8%;
  transition: transform var(--t-med);
}
.card:hover .card__media img { transform: scale(1.04); }
/* товар без фото: вместо пустой рамки — бледный логотип */
.card__media img.is-placeholder, .gallery__main img.is-placeholder { padding: 28%; opacity: .35; }
.card__tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.tag {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 8px; border: 1px solid currentColor; background: var(--white);
  color: var(--purple-ink);
}
.tag--sale { color: var(--sale); }
.tag--new { color: var(--purple); }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__brand { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card__title { font-size: 14px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 15px; font-weight: 600; white-space: nowrap; }
.price s { color: var(--muted-2); font-weight: 400; margin-left: 8px; font-size: 13px; }
.price .from { font-weight: 400; color: var(--muted); font-size: 12px; margin-right: 4px; }
.card__add {
  position: relative; z-index: 3;
  width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--purple-ink);
  transition: all var(--t-fast);
}
.card__add:hover { background: var(--purple); border-color: var(--purple); color: var(--white); }
.card__add svg { width: 16px; height: 16px; }
.card--soldout .card__media img { opacity: .5; }
.card--soldout .card__add { display: none; }

/* ---------- цитата / о нас ---------- */
.about-band { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-band blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); line-height: 1.3; font-weight: 500; color: var(--purple-ink); }
.about-band ul { display: grid; gap: 14px; }
.about-band li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.about-band li::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); margin-top: 9px; }

/* ---------- статьи ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; transition: border-color var(--t-fast); }
.post:hover { border-color: var(--purple); }
.post time { font-size: 12px; color: var(--muted-2); letter-spacing: .1em; }
.post h3 { font-size: 24px; }
.post p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }

/* ---------- футер ---------- */
.footer { background: var(--purple-ink); color: rgba(255,255,255,.82); padding: 72px 0 32px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__logo { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.65); max-width: 320px; }
.footer h5 { margin: 0 0 18px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 600; }
.footer li a, .footer li { display: block; padding: 5px 0; font-size: 14px; color: rgba(255,255,255,.85); transition: color var(--t-fast); }
.footer li a:hover { color: var(--lavender); }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; transition: all var(--t-fast);
}
.footer__social a:hover { background: var(--white); color: var(--purple-ink); border-color: var(--white); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.5);
}
.footer__bottom a { color: rgba(255,255,255,.7); margin-right: 20px; }
.footer__bottom a:hover { color: var(--white); }

/* ---------- формы ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.input, .select, .textarea {
  height: 48px; border: 1px solid var(--line-strong); background: var(--white);
  padding: 0 14px; font-size: 15px; outline: none; border-radius: var(--radius);
  transition: border-color var(--t-fast);
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--purple); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232e1f5e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.checkbox input { margin-top: 3px; accent-color: var(--purple); }

/* ---------- страницы ---------- */
.page-head { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 10px; font-size: 12px; color: var(--muted-2); letter-spacing: .06em; margin-bottom: 18px; }
.crumbs a:hover { color: var(--purple); }
.crumbs span::before { content: "/"; margin-right: 10px; }
.page-head h1 { font-size: clamp(34px, 4vw, 52px); }
.page-head p { color: var(--muted); max-width: 640px; margin: 14px 0 0; }
.prose { max-width: 760px; font-size: 16px; line-height: 1.75; }
.prose h2 { font-size: 30px; margin: 40px 0 14px; }
.prose h3 { font-size: 22px; margin: 28px 0 10px; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: var(--purple); }
.prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose ol li { padding-left: 4px; }
.prose ol li::before { display: none; }
.prose a { color: var(--purple); border-bottom: 1px solid var(--lavender); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 20px; }
.prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.prose td:first-child { color: var(--muted); width: 40%; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; padding-top: 56px; padding-bottom: 80px; align-items: start; }  /* боковые поля — от .container */
.aside-card { border: 1px solid var(--line); padding: 28px; background: var(--bg-soft); position: sticky; top: 110px; }
.aside-card h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.aside-card a.big { display: block; font-family: var(--font-display); font-size: 24px; color: var(--purple-ink); margin-bottom: 4px; }
.aside-card a.big:hover { color: var(--purple); }
.aside-card p { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.aside-card .btn { margin-top: 20px; }

/* ---------- каталог ---------- */
.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
.filters { position: sticky; top: 108px; }
.filters__group { border-top: 1px solid var(--line); padding: 20px 0; }
.filters__group h5 { margin: 0 0 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.filters__group label { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; color: var(--ink); }
.filters__group label:hover { color: var(--purple); }
.filters__group label small { color: var(--muted-2); }
.filters__group label input { display: none; }
.filters__group label.is-on { color: var(--purple); font-weight: 600; }
.filters__reset { font-size: 12px; color: var(--muted); text-decoration: underline; margin-top: 8px; }

/* ползунок цены */
.price-range__values { font-size: 14px; color: var(--ink); margin-bottom: 14px; font-weight: 500; }
.price-range__slider { position: relative; height: 26px; }
.price-range__track, .price-range__fill {
  position: absolute; top: 11px; height: 3px; border-radius: 2px;
}
.price-range__track { left: 0; right: 0; background: var(--line); }
.price-range__fill { background: var(--purple); }
.price-range__slider input[type="range"] {
  position: absolute; left: 0; top: 0; width: 100%; height: 26px; margin: 0;
  -webkit-appearance: none; appearance: none; background: none; pointer-events: none;
}
.price-range__slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; cursor: grab;
  width: 18px; height: 18px; border-radius: 50%; background: var(--white);
  border: 2px solid var(--purple); box-shadow: 0 1px 4px rgba(46,31,94,.25);
}
.price-range__slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: grab;
  width: 16px; height: 16px; border-radius: 50%; background: var(--white);
  border: 2px solid var(--purple); box-shadow: 0 1px 4px rgba(46,31,94,.25);
}
.price-range__slider input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--purple); outline-offset: 2px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.toolbar__count { font-size: 13px; color: var(--muted); }
.toolbar .select { height: 40px; font-size: 13px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; }
.chip button { color: var(--muted); }
.chip button:hover { color: var(--sale); }
.empty { padding: 80px 0; text-align: center; color: var(--muted); }
.filters-toggle { display: none; }
.filters__head { display: none; }
.filters__apply { display: none; position: sticky; bottom: 0; background: var(--white); padding: 16px 0 0; margin-top: 16px; }

/* ---------- товар ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
.gallery { position: static; }
.gallery__main { border: 1px solid var(--line); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumbs button { width: 72px; height: 72px; border: 1px solid var(--line); background: var(--white); padding: 6px; transition: border-color var(--t-fast); }
.gallery__thumbs button.is-on, .gallery__thumbs button:hover { border-color: var(--purple); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product__info h1 { font-size: clamp(28px, 3vw, 40px); margin: 10px 0 18px; }
.product__price { font-size: 28px; font-weight: 600; font-family: var(--font-display); margin: 8px 0 26px; }
.product__price s { font-size: 20px; color: var(--muted-2); font-weight: 400; margin-left: 12px; }
.variants { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.variants button { height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); font-size: 13px; transition: all var(--t-fast); }
.variants button.is-on { border-color: var(--purple); color: var(--purple); font-weight: 600; }
.variants button[disabled] { opacity: .4; text-decoration: line-through; }
.qty { display: inline-flex; border: 1px solid var(--line-strong); height: 48px; }
.qty button { width: 44px; font-size: 18px; color: var(--muted); }
.qty button:hover { color: var(--purple); }
.qty input { width: 48px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); outline: none; }
.product__buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.product__meta { display: grid; gap: 8px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 28px; }
.product__meta b { color: var(--ink); font-weight: 500; }
.product__desc { font-size: 15px; line-height: 1.75; color: var(--ink); }
.product__desc p { margin-bottom: .9em; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fa66b; }
.stock--no::before { background: var(--muted-2); }

/* ---------- корзина ---------- */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
.cart__list { border-top: 1px solid var(--line); }
.cart__item { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart__item img { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line); padding: 6px; }
.cart__item .qty { height: 40px; }
.cart__item .qty button { width: 36px; }
.cart__item .qty input { width: 40px; }
.cart__title { font-size: 14px; font-weight: 500; }
.cart__title small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }
.cart__title .stock { display: flex; margin-top: 6px; }
.cart__remove { font-size: 12px; color: var(--muted); text-decoration: underline; margin-top: 6px; display: inline-block; }
.cart__remove:hover { color: var(--sale); }
.summary { border: 1px solid var(--line); padding: 32px; background: var(--bg-soft); position: sticky; top: 108px; }
.summary h3 { font-size: 26px; margin-bottom: 20px; }
.summary__row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--muted); }
.summary__row.total { border-top: 1px solid var(--line-strong); margin-top: 8px; padding-top: 16px; font-size: 18px; color: var(--ink); font-weight: 600; }
/* minmax(0, 1fr): иначе колонка сетки растягивается по самому длинному
   варианту в списке доставки, и поля вылезают за панель */
.summary form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 24px; }
.summary .field { min-width: 0; }
.summary .select { width: 100%; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.summary .note { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* тост */
/* Уведомление: светлая полоса с тонкой рамкой и прямыми углами — как
   карточки товаров. Текст в одну строку, длинное название — с многоточием,
   поэтому на телефоне полоса не раздувается. */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  width: min(420px, calc(100vw - 32px));
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  transition: opacity var(--t-med), transform var(--t-med);
  display: flex; align-items: center; gap: 20px;
  padding: 14px 18px; background: var(--white); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 13px; line-height: 1.45;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast__text { flex: 1; min-width: 0; }
.toast__head { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-ink); }
.toast__sub { margin-top: 3px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast__link {
  flex: none; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--purple); white-space: nowrap; padding-bottom: 2px; border-bottom: 1px solid currentColor;
}
@media (max-width: 640px) {
  .toast { bottom: 16px; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .brand-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header__nav--right { display: none; }
  .header__nav { gap: 22px; }
  .grid, .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature:nth-child(3) { border-right: 0; }
  .feature:nth-child(n+4) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header__row { grid-template-columns: auto 1fr auto; height: 68px; }
  .header__nav-wrap, .header__nav--right { display: none; }
  .burger { display: inline-flex; }
  .header__logo img { height: 42px; }
  .header__actions { gap: 8px; }
  .header__actions .lang-btn { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 48px; min-height: 0; }
  .hero__visual { order: -1; }
  .hero__visual img { width: min(72%, 380px); }
  .hero::after, .hero::before { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 20px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 56px 0; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .about-band { grid-template-columns: 1fr; gap: 28px; }
  .posts { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .filters { position: fixed; inset: 0; z-index: 95; background: var(--white); padding: 24px; overflow: auto; display: none; }
  .filters.is-open { display: block; }
  .filters__apply { display: block; }
  .filters__head { display: flex; }
  .filters-toggle { display: inline-flex; }
  .product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cart { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .aside-card { position: static; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { padding: 24px 20px; }
  .feature:nth-child(2n) { border-right: 0; }
  .feature:nth-child(3) { border-right: 1px solid var(--line); }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cat { padding: 20px; min-height: 140px; }
  .cat-strip .cat { flex-basis: 200px; min-height: 160px; }
  .cat-strip .cat h3 { margin-top: 36px; }
  .brand-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .brand-card__name { font-size: 19px; min-width: 0; overflow-wrap: anywhere; }
  .brand-card__body { padding: 14px 14px 16px; }
  .cat h3 { font-size: 21px; margin-top: 28px; }
  .card__body { padding: 12px 12px 14px; }
  .card__title { font-size: 13px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__brands { gap: 18px; }
  .hero__brands a { font-size: 17px; }
  .cart__item { grid-template-columns: 72px 1fr; }
  .cart__item img { width: 72px; height: 72px; }
  .cart__item .qty { grid-column: 2; }
  .cart__item .price { grid-column: 2; }
}

/* ---------- уменьшенная анимация ---------- */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- результат онлайн-оплаты ---------- */
.pay-result { max-width: 640px; padding: 8px 0 96px; }
.pay-result__text { font-size: 17px; line-height: 1.65; color: var(--ink); }
.pay-result__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- карта 2ГИС ----------
   Подвал: картинка-превью, живая карта по нажатию (js/main.js, mapPreviewHTML).
   «Контакты»: живая карта в тексте страницы (data-map-slot). */
.fmap { margin-top: 10px; max-width: 320px; }
.fmap__preview {
  position: relative; display: block; width: 100%; height: 132px; padding: 0;
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  background: rgba(255,255,255,.05); overflow: hidden; cursor: pointer; font: inherit; color: inherit;
}
.fmap__preview svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fmap__btn {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; background: var(--white); color: var(--purple-ink);
  font-size: 12px; font-weight: 600; letter-spacing: .02em; transition: background var(--t-fast);
}
.fmap__preview:hover .fmap__btn { background: var(--lavender); }
.fmap__preview:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }
.fmap__frame { display: block; width: 100%; height: 240px; border: 0; border-radius: var(--radius); background: rgba(255,255,255,.05); }
.footer .fmap__link { display: inline-block; padding: 8px 0 0; font-size: 12px; color: rgba(255,255,255,.6); }
.footer .fmap__link:hover { color: var(--lavender); }
.map-frame { margin: 20px 0 6px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft, #f7f5fb); }
.map-frame:empty { display: none; }
.map-frame__map { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 640px) { .map-frame__map { height: 320px; } }
