/* ============================================================
   NOTA — визуальная система v2
   Тёмная «сцена»: глубокий синий, тёплый кремовый текст,
   малиновый акцент. Тонкие линии, крупная типографика.
   ============================================================ */

:root {
  --bg: #0B1422;
  --bg-2: #0F1A2B;
  --surface: #121E31;
  --surface-2: #17253B;
  --ink: #F4EFE5;
  --muted: #9EABBE;
  --dim: #6E7B90;
  --accent: #E23A5C;
  --accent-deep: #C42545;
  --blue: #2B7FE0;
  --line: #22304A;
  --line-soft: #1A273C;

  --display: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --body: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --num: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 700px at 78% -12%, rgba(43, 127, 224, .18), transparent 60%),
    radial-gradient(900px 600px at 8% 4%, rgba(226, 58, 92, .10), transparent 55%);
  background-repeat: no-repeat;
}

body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 12px 18px; z-index: 300; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- типографика ---------- */
.eyebrow {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .num { color: var(--accent); margin-right: 10px; }

.h1, .h2, .h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.012em;
  line-height: .9;
}
.h1 { font-size: clamp(52px, 8vw, 132px); }
.h2 { font-size: clamp(34px, 4.6vw, 68px); }
.h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1; }

.serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.02em;
  color: var(--accent);
}

.lead { margin: 0; color: var(--muted); font-size: 17px; max-width: 46ch; }
.note { font-size: 12px; color: var(--dim); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 2px;
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--wide { width: 100%; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 11px; }

.iconBtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%;
  transition: background .2s, color .2s, border-color .2s;
}
.iconBtn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.iconBtn svg { width: 18px; height: 18px; }

/* ---------- шапка ---------- */
.topline {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 200;
  background: linear-gradient(90deg, var(--blue), #7A5CE0 48%, var(--accent));
}
.header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(11, 20, 34, .72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.is-stuck { border-color: var(--line); background: rgba(11, 20, 34, .92); }
.header__inner { display: flex; align-items: center; gap: 36px; height: 82px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo__img { width: 44px; height: 44px; }
.logo__text { display: flex; flex-direction: column; font-family: var(--serif); font-weight: 700; font-size: 25px; line-height: 1; }
.logo__text small {
  font-family: var(--display); font-weight: 700; font-size: 9px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); margin-top: 6px;
}

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 0;
  font-family: var(--display); font-weight: 700; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }

.cartBtn {
  display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, background .2s;
}
.cartBtn:hover { border-color: var(--ink); }
.cartBtn svg { width: 20px; height: 20px; }
.cartBtn__label { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.cartBtn__count {
  display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
}
.menuBtn { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; }
.menuBtn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(30px, 5vw, 70px) 0 clamp(20px, 4vw, 40px); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.hero__inner > * { min-width: 0; }
.hero__title { margin: 0 0 28px; overflow-wrap: break-word; }
.hero__lead { margin-bottom: 34px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 46px; }

.hero__facts { display: flex; gap: 40px; margin: 0; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__facts div { display: flex; flex-direction: column; gap: 5px; }
.hero__facts dt { font-family: var(--num); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; font-size: 26px; line-height: 1; letter-spacing: -.02em; }
.hero__facts dd { margin: 0; font-size: 12px; letter-spacing: .05em; color: var(--muted); }

.hero__media { position: relative; display: grid; place-items: center; min-height: min(74vh, 660px); }
.hero__glow {
  position: absolute; width: min(680px, 108%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 48%, rgba(43,127,224,.30) 0%, rgba(43,127,224,.12) 42%, transparent 68%);
  filter: blur(10px);
}
.hero__guitar {
  position: relative; height: min(70vh, 620px); width: auto;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55));
  animation: float 10s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }

.hero__tag {
  position: absolute; right: 0; bottom: 6%;
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 22px; background: rgba(18, 30, 49, .86);
  border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.hero__tag span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero__tag strong { font-family: var(--num); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; }

/* ---------- бегущая строка брендов ---------- */
.brands { border-block: 1px solid var(--line); overflow: hidden; }
.brands__track { display: flex; gap: 54px; padding: 18px 0; white-space: nowrap; animation: marquee 42s linear infinite; }
.brands__track span {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted);
}
.brands__track span::after { content: "·"; color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%) } }

/* ---------- секции ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0 0; }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 34px;
}
.section__head .h2 { max-width: 18ch; }
.section__link {
  font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 4px;
  transition: color .2s, border-color .2s;
}
.section__link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- карточка товара ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pcard {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.pcard:hover { border-color: var(--line); background: var(--surface-2); transform: translateY(-4px); }
.pcard__media {
  position: relative; aspect-ratio: 1 / 1.1; overflow: hidden;
  background: radial-gradient(circle at 50% 52%, rgba(43,127,224,.16) 0%, rgba(43,127,224,.04) 42%, transparent 70%);
}
.pcard__media img {
  position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px);
  object-fit: contain; transition: transform .6s var(--ease), opacity .35s;
}
.pcard:hover .pcard__media img { transform: scale(1.04) translateY(-2px); }
.pcard__idx { position: absolute; top: 14px; right: 16px; font-family: var(--num); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; font-size: 11px; color: var(--dim); letter-spacing: .06em; }
.pcard__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 9px;
  background: var(--accent); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
}
.pcard__body { display: flex; flex-direction: column; gap: 7px; padding: 16px 18px 18px; flex: 1; min-width: 0; }
.pcard__brand { font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pcard__name { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.32; }
.pcard__specs { margin: 0; font-size: 12px; color: var(--dim); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.pcard__price { font-family: var(--num); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; font-size: 19px; line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; }
.pcard__add {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); color: var(--muted);
  transition: background .2s, color .2s, border-color .2s;
}
.pcard__add svg { width: 15px; height: 15px; }
.pcard__add:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.pcard--wide { grid-column: span 2; display: grid; grid-template-columns: 1.15fr 1fr; min-height: 380px; }
.pcard--wide .pcard__media { aspect-ratio: auto; height: 100%; }
.pcard--wide .pcard__body { padding: clamp(24px, 3vw, 38px); justify-content: flex-start; gap: 14px; }
.pcard--wide .pcard__name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2.1vw, 30px); line-height: .98; }
.pcard--wide .pcard__price { font-size: 28px; }
.pcard--wide .pcard__foot { margin-top: auto; }

/* ---------- каталог ---------- */
.catalogPage { padding: clamp(28px, 4vw, 52px) 0 90px; }
.catalogPage__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.catalogPage__count { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.catalogLayout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }

.filters { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 26px; }
.filter__title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.filter__list { display: flex; flex-direction: column; gap: 2px; }
.filter__opt { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 14px; }
.filter__opt input { appearance: none; width: 15px; height: 15px; border: 1px solid var(--line); background: transparent; display: grid; place-content: center; flex: none; }
.filter__opt input:checked { background: var(--accent); border-color: var(--accent); }
.filter__opt input:checked::after { content: ""; width: 7px; height: 4px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.filter__opt span { color: var(--muted); margin-left: auto; font-size: 12px; }
.filter__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipBtn {
  padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); transition: all .2s;
}
.chipBtn:hover { color: var(--ink); border-color: var(--ink); }
.chipBtn.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filters__reset { align-self: flex-start; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.filters__reset:hover { color: var(--accent); border-color: var(--accent); }

.catalogToolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.catalogToolbar__count { margin: 0; font-size: 13px; color: var(--muted); }
.searchBox { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); padding: 8px 2px; min-width: 240px; }
.searchBox svg { width: 16px; height: 16px; color: var(--dim); }
.searchBox input { border: 0; background: none; outline: none; color: var(--ink); font: inherit; font-size: 14px; width: 100%; }
.searchBox input::placeholder { color: var(--dim); }
.select { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 10px 14px; border-radius: 2px; font-size: 13px; cursor: pointer; }
.filtersToggle { display: none; }
.empty { padding: 70px 0; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 16px; }

.pagination { display: flex; gap: 6px; justify-content: center; padding-top: 44px; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
  border: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.pagination .is-current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- страница товара ---------- */
.productPage { padding: clamp(24px, 3vw, 40px) 0 90px; }
.crumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 28px; font-size: 12px; color: var(--dim); flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--line); }

.product { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.gallery { position: sticky; top: 104px; }
.gallery__main {
  position: relative; aspect-ratio: 1 / 1.06; max-height: 64vh; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(43,127,224,.18), rgba(43,127,224,.03) 45%, transparent 72%);
  border: 1px solid var(--line-soft);
}
.gallery__main img {
  position: absolute; inset: 7%; width: 86%; height: 86%;
  object-fit: contain; filter: drop-shadow(0 30px 50px rgba(0,0,0,.5));
}
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery__thumbs button { position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line-soft); background: var(--surface); transition: border-color .2s; }
.gallery__thumbs button.is-active { border-color: var(--ink); }
.gallery__thumbs img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }

.productInfo__brand { margin: 0 0 14px; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.productInfo h1 { margin: 0 0 18px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 3.2vw, 44px); line-height: .98; }
.productInfo__price { display: flex; align-items: baseline; gap: 14px; margin: 0 0 22px; }
.productInfo__price strong { font-family: var(--num); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; font-size: 32px; letter-spacing: -.02em; white-space: nowrap; }
.productInfo__price s { color: var(--dim); font-size: 15px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 26px; padding: 0; }
.specs li { padding: 6px 10px; border: 1px solid var(--line); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.productInfo__text { color: var(--muted); font-size: 15px; }
.productInfo__text p { margin: 0 0 12px; }
.productInfo__actions { display: flex; gap: 12px; margin: 26px 0 18px; }
.metaTable { display: grid; grid-template-columns: auto 1fr; gap: 9px 26px; margin: 26px 0 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.metaTable dt { color: var(--dim); }
.metaTable dd { margin: 0; text-align: right; color: var(--ink); }
.deliveryLine { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.deliveryLine span { display: flex; gap: 10px; align-items: center; }
.deliveryLine svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ---------- «о магазине», сервис ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { border-top: 1px solid var(--line); padding-top: 20px; }
.step .num { font-family: var(--num); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; font-size: 13px; color: var(--accent); }
.step h3 { margin: 10px 0 8px; font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--bg); padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.service svg { width: 24px; height: 24px; color: var(--accent); }
.service strong { font-size: 14px; }
.service span { font-size: 13px; color: var(--muted); }

/* спотлайт 12 струн */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.spotlight__media { position: relative; display: grid; place-items: center; min-height: 420px; }
.spotlight__media img { height: min(56vh, 460px); width: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
.spotlight__num { font-family: var(--num); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; font-size: clamp(80px, 11vw, 150px); line-height: 1; letter-spacing: -.03em; color: var(--accent); }
.spotlight__facts { display: flex; gap: 34px; margin: 26px 0 30px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- футер ---------- */
.footer { margin-top: clamp(60px, 8vw, 110px); border-top: 1px solid var(--line); padding: 46px 0 60px; }
.footer__inner { display: grid; grid-template-columns: 1.3fr .7fr .9fr; gap: 40px; align-items: start; }
.footer__brand { display: flex; gap: 14px; }
.footer__brand img { width: 46px; height: 46px; }
.footer__brand strong { font-family: var(--serif); font-size: 22px; }
.footer__brand p { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.footer__nav a:hover { color: var(--ink); }
.footer__note { margin: 0; font-size: 12px; color: var(--dim); line-height: 1.7; }

/* ---------- корзина ---------- */
.cartOverlay { position: fixed; inset: 0; background: rgba(4, 9, 16, .6); backdrop-filter: blur(3px); z-index: 105; opacity: 0; transition: opacity .3s; }
.cartOverlay.is-open { opacity: 1; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 110;
  background: var(--bg-2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(102%);
  transition: transform .38s var(--ease); box-shadow: -30px 0 80px rgba(0,0,0,.5);
}
.cart.is-open { transform: none; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart__head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; }
.cart__body { flex: 1; overflow: auto; padding: 6px 24px; }
.cart__empty { display: grid; place-items: center; gap: 16px; height: 100%; text-align: center; color: var(--muted); font-size: 14px; }
.cartItem { display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.cartItem__img { width: 62px; height: 74px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-soft); }
.cartItem__img img { max-height: 62px; width: auto; }
.cartItem__name { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.cartItem__price { font-size: 12px; color: var(--muted); }
.cartItem__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); font-size: 15px; }
.qty button:hover { color: var(--ink); }
.qty span { min-width: 24px; text-align: center; font-size: 13px; }
.cartItem__remove { font-size: 11px; color: var(--dim); text-decoration: underline; }
.cartItem__remove:hover { color: var(--accent); }
.cart__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.cart__sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cart__sum span { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cart__sum strong { font-family: var(--num); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; font-size: 24px; letter-spacing: -.02em; white-space: nowrap; }
.cart__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.cart__input {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 2px;
  padding: 11px 12px; color: var(--ink); font: inherit; font-size: 14px; outline: none;
}
.cart__input:focus { border-color: var(--accent); }
@media (max-width: 760px) { .cart__fields { grid-template-columns: 1fr; } }
.cart__done { display: grid; place-items: center; gap: 16px; height: 100%; text-align: center; padding: 0 34px; }
.cart__done svg { width: 52px; height: 52px; color: var(--accent); }
.cart__done h3 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 22px; }
.cart__done p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); z-index: 130;
  background: var(--ink); color: var(--bg); padding: 13px 22px; border-radius: 999px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

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

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; min-height: 400px; }
  .hero__guitar { height: min(48vh, 420px); }
  .catalogLayout { grid-template-columns: 1fr; gap: 24px; }
  .filters { position: static; flex-direction: row; flex-wrap: wrap; gap: 28px; }
  .filters > div { min-width: 180px; }
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .spotlight { grid-template-columns: 1fr; gap: 24px; }
  .spotlight__media { order: -1; min-height: 300px; }
  .spotlight__media img { height: min(38vh, 320px); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .duo { grid-template-columns: 1fr; gap: 30px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .header__inner { height: 64px; gap: 8px; }
  .logo { margin-right: auto; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 6px 20px 14px;
    background: var(--bg-2); border-bottom: 1px solid var(--line); z-index: 90;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
  .nav a:last-child { border-bottom: 0; }
  .langSwitch { order: 2; }
  .langSwitch__btn { padding: 5px 8px; font-size: 10px; }
  .cartBtn { order: 3; padding: 0 11px; height: 40px; }
  .menuBtn { display: grid; order: 4; margin-left: 0; width: 40px; height: 40px; }
  .cartBtn__label, .logo__text small { display: none; }

  .hero { padding-top: 8px; }
  .hero__title { font-size: clamp(32px, 9.2vw, 46px); line-height: .96; margin-bottom: 18px; overflow-wrap: break-word; }
  .hero__lead { font-size: 15px; line-height: 1.5; margin-bottom: 22px; max-width: 100%; }
  .hero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .spotlight__facts { gap: 16px 22px; flex-wrap: wrap; }
  .hero__tag { right: 0; bottom: 8px; padding: 9px 12px; max-width: 64%; background: rgba(18, 30, 49, .92); }
  .hero__tag strong { font-size: 17px; }
  .hero__tag span { font-size: 8.5px; letter-spacing: .1em; }
  .brands__track span { font-size: 18px; }

  .grid, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard--wide { grid-column: 1 / -1; grid-template-columns: 1fr; min-height: 0; }
  .pcard--wide .pcard__media { aspect-ratio: 1 / 1.02; height: auto; }
  .pcard--wide .pcard__body { padding: 20px; }
  .pcard__media img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
  .pcard__badge { top: 8px; left: 8px; padding: 3px 7px; font-size: 8.5px; letter-spacing: .12em; }
  .pcard__idx { top: 8px; right: 10px; font-size: 10px; }
  .pcard__body { padding: 10px 10px 12px; gap: 5px; }
  .pcard__name { font-size: 13px; line-height: 1.28; }
  .pcard__specs { font-size: 11px; line-height: 1.35; }
  .pcard__foot { gap: 6px; padding-top: 8px; }
  .pcard__price { font-size: 16px; }

  .section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .catalogPage__head { flex-direction: column; align-items: flex-start; }
  .filters { display: none; flex-direction: column; gap: 18px; padding: 18px; border: 1px solid var(--line); }
  .filters.is-open { display: flex; }
  .filtersToggle { display: inline-flex; }
  .services { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .cart { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Мобильный слой: свайп-галерея, нижняя панель покупки,
   фильтры-шторка, горизонтальные подборки
   ============================================================ */

.carousel { display: none; }
.buyBar { display: none; }

@media (max-width: 760px) {
  /* --- витрина: горизонтальные подборки --- */
  .grid--rail {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none;
  }
  .grid--rail::-webkit-scrollbar { display: none; }
  .grid--rail .pcard { flex: 0 0 72%; scroll-snap-align: start; }

  /* --- hero компактнее --- */
  .hero__media { min-height: 250px; margin-bottom: 6px; padding: 4px 0 12px; }
  .hero__guitar { height: 245px; margin-right: 30%; }
  .hero__tag { right: 0; bottom: 8px; }
  .hero__actions { margin-bottom: 24px; }
  .hero__actions .btn { flex: 1 1 auto; }

  /* --- каталог: липкая панель и шторка фильтров --- */
  .catalogToolbar {
    position: sticky; top: 64px; z-index: 60;
    background: var(--bg); padding: 10px 0 12px; margin-bottom: 8px;
    border-bottom: 1px solid var(--line-soft);
  }
  .catalogToolbar__count { display: none; }
  .searchBox { flex: 1 1 100%; order: 3; min-width: 0; }
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 120;
    display: flex; flex-direction: column; flex-wrap: nowrap; gap: 18px;
    max-height: 84vh; overflow-y: auto; padding: 22px 20px calc(18px + env(safe-area-inset-bottom));
    background: var(--bg-2); border-top: 1px solid var(--line);
    transform: translateY(103%); transition: transform .38s var(--ease);
    visibility: hidden;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters::before {
    content: ""; display: block; width: 40px; height: 3px; border-radius: 2px;
    background: var(--line); margin: -8px auto 4px;
  }
  .filter__opt { padding: 11px 0; }
  .chipBtn { min-height: 44px; display: inline-flex; align-items: center; }
  .sheetApply {
    position: sticky; bottom: -18px; margin-top: 4px; z-index: 2;
    box-shadow: 0 -18px 24px rgba(11, 20, 34, .9);
  }
  .sheetOverlay {
    position: fixed; inset: 0; z-index: 110; background: rgba(4, 9, 16, .6);
    backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s;
  }
  .sheetOverlay.is-open { opacity: 1; }

  /* --- товар: карусель + липкая покупка --- */
  .productPage { padding-bottom: 96px; }
  .gallery { display: none; }
  .carousel { display: block; margin-bottom: 18px; }
  .carousel__track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 10px; margin-inline: -20px; padding: 0 20px; scrollbar-width: none;
  }
  .carousel__track::-webkit-scrollbar { display: none; }
  .carousel__slide {
    position: relative; flex: 0 0 100%; scroll-snap-align: center;
    height: min(56vh, 430px); display: grid; place-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(43,127,224,.18), rgba(43,127,224,.03) 45%, transparent 72%);
    border: 1px solid var(--line-soft);
  }
  .carousel__slide img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
  .carousel__dots { display: flex; gap: 6px; justify-content: center; padding: 12px 0 4px; }
  .carousel__dots button { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
  .carousel__dots button.is-active { background: var(--accent); width: 20px; border-radius: 3px; }

  .productInfo h1 { font-size: 26px; }
  .productInfo__text { font-size: 14px; }
  .metaTable { font-size: 13px; }
  .productInfo__actions { flex-direction: column; gap: 10px; }

  .buyBar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(11, 20, 34, .94); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .buyBar__price { display: flex; flex-direction: column; font-family: var(--num); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; font-size: 17px; line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; min-width: 0; }
  .buyBar__price span { font-family: var(--display); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
  .buyBar .btn { height: 42px; min-height: 42px; padding: 0 12px; font-size: 11px; letter-spacing: .08em; gap: 6px; }
  body[data-page="product"] .waFloat { display: none; }

  /* --- общие тач-правила --- */
  .btn { min-height: 48px; }
  .pcard__add { width: 32px; height: 32px; }
  .nav a { padding: 16px 0; }
  .cartBtn { height: 40px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   Бизнес-слой: ҚАЗ/РУС, Kaspi 0-0-12, 6-в-1 подарок,
   WhatsApp-заказ в 1 клик, быстрый подбор по задаче
   ============================================================ */

.btn--wa {
  background: #1FA855;
  color: #fff;
  border: 1px solid #1FA855;
}
.btn--wa:hover {
  background: #188B45;
  border-color: #188B45;
}

.langSwitch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.langSwitch__btn {
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.langSwitch__btn:hover { color: var(--ink); }
.langSwitch__btn.is-active {
  background: var(--ink);
  color: var(--bg);
}

/* --- Карточка товара: рассрочка, подарок, кнопка WhatsApp --- */
.pcard__giftTag {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  background: rgba(11, 20, 34, .88);
  border: 1px solid rgba(244, 239, 229, .18);
  backdrop-filter: blur(6px);
  font-size: 10px;
  color: var(--ink);
  letter-spacing: .03em;
}
.pcard__priceWrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pcard__kaspi {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .06em;
  color: #FF8A9F;
  background: rgba(226, 58, 92, .14);
  border: 1px solid rgba(226, 58, 92, .32);
  padding: 2px 6px;
  border-radius: 2px;
  width: fit-content;
  white-space: nowrap;
}
.pcard__btns {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pcard__wa {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(31, 168, 85, .45);
  color: #2AD16C;
  transition: background .2s, color .2s, border-color .2s;
}
.pcard__wa svg { width: 16px; height: 16px; }
.pcard__wa:hover {
  background: #1FA855;
  border-color: #1FA855;
  color: #fff;
}

/* --- Быстрый подбор по задаче (4 карточки на главной) --- */
.quizGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.quizCard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 26px;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.quizCard:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--surface-2);
}
.quizCard__tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.quizCard__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1.05;
}
.quizCard__desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  padding-right: 18px;
}
.quizCard__arrow {
  margin-top: auto;
  padding-top: 8px;
  font-size: 18px;
  color: var(--ink);
  transition: transform .2s;
}
.quizCard:hover .quizCard__arrow {
  transform: translateX(6px);
  color: var(--accent);
}

/* --- Секция 6-в-1 подарков на главной --- */
.bundleShowcase {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(226, 58, 92, .08) 100%);
  border: 1px solid var(--line);
}
.bundleGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin-top: 28px;
}
.bundleItem {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.bundleItem__num {
  font-family: var(--num);
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 12px;
  color: var(--accent);
  margin-right: 8px;
}
.bundleItem strong {
  font-size: 15px;
  display: inline;
}
.bundleItem p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.bundleShowcase__media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 50%, rgba(43, 127, 224, .22), transparent 70%);
  border: 1px solid var(--line-soft);
}
.bundleShowcase__media img {
  max-height: 390px;
  width: auto;
  object-fit: contain;
}
.bundleShowcase__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* --- Страница товара: цена + Kaspi, блок подарков, уход --- */
.productInfo__priceRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0 0 22px;
}
.productInfo__price { margin: 0; }
.productInfo__kaspi {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 13px;
  background: rgba(226, 58, 92, .12);
  border: 1px solid rgba(226, 58, 92, .35);
  border-radius: 2px;
  font-size: 13px;
}
.productInfo__kaspi strong {
  color: #FF8A9F;
  font-size: 15px;
}
.productInfo__kaspi small {
  color: var(--muted);
  font-size: 11px;
}
.productGiftBox {
  margin: 0 0 22px;
  padding: 16px 18px;
  background: rgba(31, 168, 85, .09);
  border: 1px solid rgba(31, 168, 85, .35);
}
.productGiftBox__title {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: #5CE08E;
}
.productGiftBox__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink);
}
.productCareBox {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
}
.productCareBox summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.productCareBox ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* --- Корзина и плавающая кнопка WhatsApp --- */
.cart__giftBanner {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(31, 168, 85, .12);
  border: 1px solid rgba(31, 168, 85, .35);
  font-size: 12px;
  color: #77E8A2;
  line-height: 1.45;
}
.cart__installment {
  font-size: 12px;
  color: #FF8A9F;
  margin-top: 2px;
}
.waFloat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 75;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #1FA855;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
  transition: transform .2s, background .2s;
}
.waFloat:hover {
  background: #188B45;
  transform: translateY(-2px);
}
.buyBar__btns {
  display: flex;
  gap: 8px;
}

@media (max-width: 1100px) {
  .quizGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bundleShowcase { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .quizGrid { grid-template-columns: 1fr; gap: 10px; }
  .bundleGrid { grid-template-columns: 1fr; gap: 12px; }
  .productGiftBox__list { grid-template-columns: 1fr; }
  .pcard__giftTag { display: none; }
  .pcard:not(.pcard--wide) .pcard__wa { display: none; }
  .pcard__kaspi { font-size: 9px; letter-spacing: .03em; padding: 2px 5px; }
  .pcard__add { width: 32px; height: 32px; }
  .waFloat span { display: none; }
  .waFloat {
    width: 48px;
    padding: 0;
    justify-content: center;
    right: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
}
