/* GuitarStore: основные стили лендинга */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../fonts/inter-400.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../fonts/inter-500.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../fonts/inter-600.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(../fonts/inter-700.woff) format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-display: swap; src: url(../fonts/inter-display-700.woff) format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 800; font-display: swap; src: url(../fonts/inter-display-800.woff) format("woff"); }

:root {
  --ink: #16212c;
  --slate: #2c3e50;
  --slate-deep: #1e2c3a;
  --orange: #e67e22;
  --orange-text: #b35608;
  --paper: #f8f9fa;
  --mist: #eef1f4;
  --line: #dfe4e9;
  --muted: #566473;
  --white: #fff;
  --radius-card: 24px;
  --radius-field: 14px;
  --header-h: 64px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.3, 1.4, .5, 1);
  --display: "Inter Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.is-locked { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--orange); color: var(--ink); }
.btn-accent:hover { background: #f0902f; }
.btn-ghost { border: 1.5px solid var(--slate); color: var(--slate); }
.btn-ghost:hover { background: var(--slate); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-light:hover { background: #ffe6cf; }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); transition: background-color .2s; }
.icon-btn:hover { background: rgba(44, 62, 80, .08); }
.icon-btn.round { background: var(--mist); width: 40px; height: 40px; }

/* Загрузка страницы: шесть струн */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 28px; background: var(--slate-deep); color: var(--white); transition: clip-path .7s var(--ease); clip-path: inset(0 0 0 0); animation: loaderFailsafe .4s 8s forwards; }
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader-strings { width: min(440px, 76vw); height: 88px; overflow: visible; fill: none; stroke: #e9c893; stroke-linecap: round; }
.loader-strings path { stroke-width: 1.4; stroke-dasharray: 620; stroke-dashoffset: 620; animation: stringIn .55s var(--ease) forwards, stringShake .5s ease-out .5s; }
.loader-strings path:nth-child(1) { stroke-width: 2.4; }
.loader-strings path:nth-child(2) { stroke-width: 2.1; animation-delay: .05s, .56s; }
.loader-strings path:nth-child(3) { stroke-width: 1.8; animation-delay: .1s, .62s; }
.loader-strings path:nth-child(4) { stroke: #eef1f4; animation-delay: .15s, .68s; }
.loader-strings path:nth-child(5) { stroke: #eef1f4; stroke-width: 1.1; animation-delay: .2s, .74s; }
.loader-strings path:nth-child(6) { stroke: #eef1f4; stroke-width: .9; animation-delay: .25s, .8s; }
.loader-logo { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; opacity: 0; animation: fadeIn .4s .45s forwards; }
.loader-logo span { color: var(--orange); }
@keyframes stringIn { to { stroke-dashoffset: 0; } }
@keyframes stringShake { 0%, 100% { transform: translateY(0); } 15% { transform: translateY(-3px); } 35% { transform: translateY(2.4px); } 55% { transform: translateY(-1.5px); } 75% { transform: translateY(.8px); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; } }

/* Шапка */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header-h); background: rgba(255, 255, 255, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); transition: box-shadow .25s; }
.site-header.is-stuck { box-shadow: 0 1px 0 rgba(22, 33, 44, .1); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100%; }
.logo { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; color: var(--slate); text-decoration: none; }
.logo span { color: var(--orange-text); }
.nav { display: flex; gap: 32px; font-size: 14.500px; font-weight: 500; }
.nav a { position: relative; color: var(--slate); text-decoration: none; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1.5px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.cart-count { position: absolute; top: 1px; right: -1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.cart-count.is-bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.45); } }
.burger { display: none; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Первый экран */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: center; overflow: hidden; background: radial-gradient(90% 90% at 72% 40%, #fff 0%, var(--mist) 62%, #e2e7ec 100%); padding-top: var(--header-h); touch-action: pan-y; }
.hero-row { position: relative; z-index: 2; pointer-events: none; }
.hero-copy { max-width: 520px; pointer-events: auto; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(50px, 7.400vw, 104px); line-height: .96; letter-spacing: -.035em; color: var(--slate-deep); }
.hero-lead { margin-top: 24px; font-size: clamp(17px, 1.500vw, 20px); line-height: 1.45; color: var(--muted); max-width: 25em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-guitar { --w: min(139vh, 91vw); position: absolute; z-index: 1; top: 50%; left: calc(50% - 60px - var(--w) * .075); width: var(--w); aspect-ratio: 1; transform: translateY(-51%); }
.hero-guitar img { width: 100%; height: 100%; opacity: 0; transform: translate(9%, 9%) rotate(5deg); transition: opacity .7s, transform 1.300s var(--ease); }
.hero-guitar canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
body.is-ready .hero-guitar img { opacity: 1; transform: none; }
.hero-intro { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(.12s + var(--d, 0) * .12s); }
body.is-ready .hero-intro { opacity: 1; transform: none; }
.strum-hint { position: absolute; z-index: 2; right: max(20px, calc(50% - 560px)); top: calc(var(--header-h) + 24px); font-size: 14px; color: var(--muted); }
.hero-card { position: absolute; z-index: 3; right: max(20px, calc(50% - 560px)); bottom: 32px; display: grid; grid-template-columns: 60px 1fr 40px; gap: 14px; align-items: center; width: min(340px, calc(100% - 40px)); padding: 10px 14px 10px 10px; text-align: left; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 22px; box-shadow: 0 18px 40px -18px rgba(22, 33, 44, .35); transition: opacity .7s var(--ease), transform .35s var(--ease); }
.hero-card:hover { transform: translateY(-3px); }
.hero-card img { width: 60px; height: 60px; object-fit: contain; }
.hero-card small { display: block; font-size: 13px; color: var(--muted); }
.hero-card b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.hero-card i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--slate); color: var(--white); font-style: normal; }

/* Шаги: закреплённый экран */
.steps { position: relative; height: 340vh; background: var(--slate-deep); color: var(--white); }
.steps-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; padding-top: var(--header-h); }
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.steps-title h2 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5.200vw, 68px); line-height: 1; letter-spacing: -.03em; }
.steps-title p { margin-top: 16px; color: #b9c4cf; font-size: 18px; max-width: 24em; }
.steps-stage { position: relative; min-height: 400px; }
.step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; opacity: 0; transform: translateY(26px); visibility: hidden; transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .45s; }
.step.is-active { opacity: 1; transform: none; visibility: visible; transition-delay: .08s, .08s, 0s; }
.step.is-past { transform: translateY(-26px); }
.step-num { font-family: var(--display); font-weight: 800; font-size: clamp(120px, 14vw, 180px); line-height: 1; color: transparent; -webkit-text-stroke: 2px #f0b27a; letter-spacing: -.03em; }
.step h3 { margin-top: 18px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.02em; }
.step p { margin: 14px 0 24px; color: #d3dbe2; font-size: 17px; max-width: 28em; }
.steps-track { position: relative; height: 3px; margin-bottom: 28px; background: rgba(255, 255, 255, .16); border-radius: 2px; }
.steps-string { position: absolute; inset: 0; background: var(--orange); border-radius: 2px; transform: scaleX(var(--p, 0)); transform-origin: left; }
.steps-track.is-plucked { animation: trackPluck .5s ease-out; }
@keyframes trackPluck { 15% { transform: translateY(-3px); } 35% { transform: translateY(2.500px); } 55% { transform: translateY(-1.500px); } 75% { transform: translateY(1px); } }

/* Каталог */
.catalog { padding: 96px 0 104px; background: var(--white); }
.catalog-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.catalog-head h2, .about h2 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.03em; color: var(--slate-deep); }
.catalog-head p { margin-top: 14px; font-size: 18px; color: var(--muted); }
.filters { position: sticky; top: var(--header-h); z-index: 20; padding: 12px 0; background: linear-gradient(rgba(255, 255, 255, .96) 70%, rgba(255, 255, 255, 0)); }
.filters-row { display: flex; justify-content: center; gap: 8px; width: min(1120px, 100% - 40px); margin-inline: auto; overflow-x: auto; scrollbar-width: none; }
.filters-row::-webkit-scrollbar { display: none; }
.pill { flex: none; min-height: 42px; padding: 0 20px; border-radius: 999px; background: var(--mist); color: var(--slate); font-size: 15px; font-weight: 600; transition: background-color .25s, color .25s, transform .2s var(--ease); }
.pill:hover { background: var(--line); }
.pill:active { transform: scale(.96); }
.pill.is-active { background: var(--slate); color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; transition: opacity .16s; }
.grid.is-switching { opacity: 0; }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius-card); background: var(--paper); overflow: hidden; animation: cardIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); transition: background-color .25s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.card:hover { background: var(--mist); }
.card-open { display: flex; flex-direction: column; flex: 1; text-align: left; border-radius: var(--radius-card) var(--radius-card) 0 0; }
.card-pic { position: relative; aspect-ratio: 1; overflow: hidden; }
.card-pic img { width: 100%; height: 100%; object-fit: contain; padding: 8%; opacity: 0; filter: blur(10px); transform: scale(.96); transition: opacity .5s, filter .5s, transform .5s var(--ease); }
.card-pic img.is-loaded { opacity: 1; filter: none; transform: none; }
.card:hover .card-pic img.is-loaded { transform: rotate(-2.500deg) scale(1.04); }
.card-pic::before { content: ""; position: absolute; inset: 14%; border-radius: 16px; background: var(--mist); z-index: 0; opacity: .7; }
.card-pic.is-ready::before { display: none; }
.card-pic img { position: relative; z-index: 1; }
.badge { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 3px 11px; border-radius: 999px; background: var(--slate); color: var(--white); font-size: 12.500px; font-weight: 600; }
.card-text { padding: 0 18px; }
.card-text h3 { font-size: 16.500px; font-weight: 600; line-height: 1.28; letter-spacing: -.005em; }
.card-text p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.card-buy { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 18px 18px; margin-top: auto; }
.price { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.add { min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--slate); color: var(--white); font-size: 14px; font-weight: 600; transition: background-color .2s, transform .2s var(--ease); }
.add:hover { background: var(--orange); color: var(--ink); }
.add:active { transform: scale(.95); }
.add:disabled { background: var(--line); color: var(--muted); }
.card.is-out .card-pic img { filter: grayscale(1); opacity: .5; }
.card.is-out .card-pic img:not(.is-loaded) { opacity: 0; }
.card.is-out .price { color: var(--muted); }

/* Скидка: зачёркнутая старая цена, новая цена и процент */
:root { --sale: #c0392b; --sale-soft: #fdeceb; }
.sale-badge { position: absolute; z-index: 2; top: 14px; right: 14px; padding: 4px 10px; border-radius: 999px; background: var(--sale); color: #fff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; box-shadow: 0 6px 14px -6px rgba(192, 57, 43, .7); transform: rotate(-4deg); }
.card.is-sale .sale-badge { animation: salePop .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 45ms + .25s); }
@keyframes salePop { from { transform: rotate(-4deg) scale(.4); opacity: 0; } }
.price.is-sale, .rec-price.is-sale, .line-price.is-sale { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.is-sale s { color: var(--muted); font-size: 13.500px; font-weight: 500; text-decoration-thickness: 1.5px; text-decoration-color: rgba(192, 57, 43, .75); }
.is-sale ins { text-decoration: none; color: var(--sale); font-weight: 700; }
.card.is-out .is-sale ins { color: var(--muted); }
.rec-price { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.rec-price.is-sale { flex-direction: row; align-items: baseline; gap: 6px; }
.rec-price.is-sale s { font-size: 12.500px; }
.line-price.is-sale { align-items: flex-end; }
.line-price.is-sale s { font-size: 12.500px; }
.line-sale { align-self: flex-end; margin-top: -4px; padding: 1px 7px; border-radius: 999px; background: var(--sale-soft); color: var(--sale); font-size: 12px; font-weight: 700; }
.pd-price.is-sale { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.pd-price.is-sale ins { font-size: 32px; font-weight: 800; }
.pd-price.is-sale s { font-family: var(--text); font-size: 18px; letter-spacing: 0; }
.pd-save { display: inline-block; margin: 6px 0 4px; padding: 3px 10px; border-radius: 999px; background: var(--sale-soft); color: var(--sale); font-size: 13.500px; font-weight: 700; }
.pd-pic .sale-badge { top: 18px; right: 18px; font-size: 15px; padding: 5px 12px; }
.saved-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 14.500px; color: #33424f; }
.saved-row b { color: var(--sale); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-card small s { color: var(--muted); }
.hero-sale { font-style: normal; font-weight: 700; color: #fff; background: var(--sale); padding: 0 6px; border-radius: 999px; }

/* Скелетоны загрузки */
.shimmer { position: relative; overflow: hidden; background: var(--mist); }
.shimmer::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .75) 50%, transparent 80%); animation: shimmer 1.300s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skeleton { border-radius: var(--radius-card); background: var(--paper); padding: 16px; }
.skeleton i { display: block; border-radius: 10px; margin-top: 10px; height: 14px; }
.skeleton i:first-child { aspect-ratio: 1; height: auto; margin: 0 0 16px; border-radius: 16px; }
.skeleton i:nth-child(3) { width: 60%; }
.skeleton i:nth-child(4) { width: 42%; height: 28px; margin-top: 20px; border-radius: 14px; }
.grid-message { grid-column: 1 / -1; padding: 56px 20px; text-align: center; color: var(--muted); }
.grid-message .btn { margin-top: 16px; }

/* О нас и контакты */
.about { padding: 96px 0; background: var(--paper); }
.about h2 { text-align: center; margin-bottom: 48px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.about-copy p { font-size: 18px; line-height: 1.6; color: #33424f; }
.about-copy h3 { margin-top: 32px; font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.015em; color: var(--slate-deep); scroll-margin-top: calc(var(--header-h) + 40px); }
.contacts { margin-top: 16px; display: grid; gap: 14px; font-size: 17px; }
.contacts li { display: flex; align-items: center; gap: 12px; }
.contacts svg { flex: none; width: 22px; height: 22px; fill: var(--orange); }
.contacts a { text-decoration: none; }
.contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.map { overflow: hidden; border-radius: var(--radius-card); background: var(--mist); }
.map-frame { position: relative; height: 420px; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .5s; }
.map-frame.is-loaded iframe { opacity: 1; }
.map-skeleton { position: absolute; inset: 0; }
.map-link { display: block; padding: 13px; text-align: center; font-weight: 600; font-size: 15px; color: var(--slate); text-decoration: none; }
.map-link:hover { background: var(--line); }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Подвал как на примере */
.footer { padding: 32px 20px 40px; background: var(--slate); color: var(--white); text-align: center; }
.footer-copy { font-family: var(--display); font-weight: 700; font-size: 18px; }
.footer-links { display: flex; justify-content: center; gap: 14px; margin-top: 20px; }
.footer-links a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background-color .2s, transform .2s var(--ease); }
.footer-links a:hover { background: var(--orange); transform: translateY(-2px); }
.footer-links svg { width: 20px; height: 20px; fill: currentColor; }
.footer-links a:last-child svg { fill: none; }

/* Всплывающая подсказка после добавления */
.add-toast { position: fixed; z-index: 45; left: 50%; bottom: 20px; width: min(420px, calc(100% - 24px)); padding: 16px; background: var(--white); border-radius: 22px; box-shadow: 0 24px 60px -16px rgba(22, 33, 44, .45), 0 0 0 1px rgba(22, 33, 44, .06); transform: translate(-50%, calc(100% + 40px)); opacity: 0; transition: transform .5s var(--spring), opacity .25s; }
.add-toast.is-open { transform: translate(-50%, 0); opacity: 1; }
.toast-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toast-head strong { font-size: 14.500px; font-weight: 600; color: var(--orange-text); }
.toast-name { margin-top: 2px; font-size: 14px; color: var(--ink); }
.toast-sub { margin-top: 12px; font-size: 13.500px; color: var(--muted); }
.toast-open { display: block; width: 100%; margin-top: 10px; padding: 8px; font-size: 14.500px; font-weight: 600; color: var(--slate); text-align: center; border-radius: 10px; }
.toast-open:hover { background: var(--mist); }
.rec { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; margin-top: 10px; }
.rec img { width: 56px; height: 56px; object-fit: contain; padding: 4px; border-radius: 12px; background: var(--paper); }
.rec b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.rec span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.rec-add { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--slate); color: var(--slate); font-size: 13.500px; font-weight: 600; transition: background-color .2s, color .2s; }
.rec-add:hover { background: var(--slate); color: var(--white); }

/* Корзина */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(22, 33, 44, .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.scrim.is-open { opacity: 1; }
.drawer { position: fixed; z-index: 51; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--white); transform: translateX(102%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
.drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; box-shadow: -24px 0 60px -30px rgba(22, 33, 44, .5); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.drawer-head h2 { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 20px 20px; overscroll-behavior: contain; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer-foot:empty { display: none; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: lineIn .35s var(--ease) both; }
@keyframes lineIn { from { opacity: 0; transform: translateX(14px); } }
.line.is-child { margin-left: 16px; padding-left: 12px; border-left: 2px solid var(--orange); }
.line img { width: 64px; height: 64px; object-fit: contain; padding: 4px; border-radius: 12px; background: var(--paper); }
.line-name { font-size: 14.500px; font-weight: 600; line-height: 1.28; }
.line-tag { margin-top: 2px; font-size: 13px; color: var(--orange-text); }
/* Подарок к гитаре */
.gift-icon { flex: none; width: 16px; height: 16px; }
.card-gift, .toast-gift, .pd-gift, .gift-box-head { display: flex; align-items: center; gap: 6px; color: var(--orange-text); font-weight: 600; }
.card-gift { margin-top: 8px; font-size: 13.500px; }
.gift-box { margin: 0 0 0 16px; padding: 10px 0 12px 12px; border-left: 2px solid var(--orange); border-bottom: 1px solid var(--line); animation: lineIn .35s var(--ease) both; }
.gift-box-head { font-size: 13.500px; margin-bottom: 6px; }
.gift-row { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 10px; align-items: center; padding: 3px 0; font-size: 14px; }
.gift-row img { width: 36px; height: 36px; object-fit: contain; padding: 2px; border-radius: 8px; background: var(--paper); }
.gift-name { min-width: 0; font-weight: 500; line-height: 1.25; }
.gift-qty { color: var(--muted); font-size: 13px; white-space: nowrap; }
.gift-free { min-width: 34px; text-align: right; font-weight: 600; color: var(--orange-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gift-free s { margin-right: 6px; color: var(--muted); font-size: 12.500px; font-weight: 500; }
.line-icon { flex: none; width: 22px; height: 22px; }
.delivery-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14.500px; color: #33424f; }
.delivery-row b { margin-left: auto; font-weight: 600; color: var(--orange-text); }
.pd-delivery { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14.500px; color: #33424f; }
.pd-delivery .line-icon, .delivery-row .line-icon { color: var(--orange-text); width: 20px; height: 20px; }
/* Блок над каталогом: подарки к гитаре и бесплатная доставка */
.promo { display: grid; grid-template-columns: 1fr auto; gap: 12px 32px; align-items: center; margin: 0 0 12px; padding: 20px 24px; border-radius: var(--radius-card); background: #fdf0e3; --icon-bg: #fdf0e3; }
.promo.is-solo { grid-template-columns: 1fr; justify-items: center; }
.promo h3 { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: var(--slate-deep); }
.promo h3 .gift-icon { width: 20px; height: 20px; color: var(--orange-text); }
.promo ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.promo li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--white); font-size: 14.500px; font-weight: 600; }
.promo li img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: var(--paper); }
.promo-delivery { display: flex; align-items: center; gap: 12px; max-width: 290px; font-size: 14px; line-height: 1.35; color: #4a3520; }
.promo-delivery .line-icon { width: 36px; height: 36px; color: var(--orange-text); }
.promo-delivery b { display: block; font-size: 16px; font-weight: 700; color: var(--slate-deep); }
.contacts svg.line-icon { fill: none; color: var(--orange); --icon-bg: var(--paper); }
.toast-gift { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: #fdf0e3; font-size: 13.500px; line-height: 1.3; }
.pd-gift { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: #fdf0e3; font-size: 14.500px; line-height: 1.3; }
.line-out { margin-top: 2px; font-size: 13px; color: #a0281e; }
.line-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.line-price { font-weight: 600; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.line-remove { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.line-remove:hover { color: var(--ink); }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border-radius: 999px; background: var(--mist); }
.qty button { width: 34px; height: 34px; border-radius: 50%; font-size: 17px; line-height: 1; }
.qty button:hover { background: var(--line); }
.qty span { min-width: 22px; text-align: center; font-size: 14.500px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-recs { margin-top: 16px; padding: 14px; border-radius: 18px; background: var(--paper); }
.cart-recs h3 { font-size: 14.500px; font-weight: 600; }
.cart-recs .rec img { background: var(--white); }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.total span { font-size: 16px; font-weight: 500; }
.total strong { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.checkout { width: 100%; margin-top: 12px; min-height: 54px; font-size: 16px; }
.checkout svg { width: 20px; height: 20px; fill: currentColor; }
.foot-note { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); text-align: center; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 320px; text-align: center; color: var(--muted); }
.cart-empty h3 { color: var(--ink); font-size: 19px; font-weight: 600; }
.cart-empty p { margin: 6px 0 20px; }

/* Карточка товара */
.product-dialog { width: min(860px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 28px; color: var(--ink); overflow: auto; }
.product-dialog[open] { animation: dialogIn .4s var(--ease); }
.product-dialog::backdrop { background: rgba(22, 33, 44, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeBack .3s; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fadeBack { from { opacity: 0; } }
.pd { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.pd-pic { position: relative; background: var(--paper); display: grid; place-items: center; align-content: center; padding: 20px; min-height: 340px; }
.pd-pic img { width: 100%; max-height: 460px; object-fit: contain; }
.pd.is-out .pd-pic img { filter: grayscale(1); opacity: .55; }
.pd-thumbs { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.pd-thumb { width: 58px; height: 58px; padding: 3px; border-radius: 12px; background: var(--white); border: 2px solid transparent; transition: border-color .2s; }
.pd-thumb.is-active { border-color: var(--slate); }
.pd-pic .pd-thumb img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.pd-info { padding: 32px 28px 28px; display: flex; flex-direction: column; min-width: 0; }
.pd-info h2 { font-family: var(--display); font-weight: 800; font-size: 27px; line-height: 1.12; letter-spacing: -.02em; padding-right: 36px; }
.pd-short { margin-top: 6px; color: var(--muted); }
.pd-desc { margin-top: 16px; font-size: 15.500px; white-space: pre-line; }
.pd-price { margin-top: 18px; font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.015em; }
.pd-stock { font-size: 14px; color: var(--muted); }
.pd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pd-actions .btn { flex: 1 1 auto; }
.pd-actions .btn:disabled { background: var(--line); color: var(--muted); }
.pd-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.pd-recs { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.pd-recs h3 { font-size: 14.500px; font-weight: 600; }

/* Анимация полёта товара в корзину */
.fly { position: fixed; z-index: 60; pointer-events: none; object-fit: contain; }

@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps-grid { gap: 32px; }
}

@media (max-width: 1000px) {
  /* Гитара стоит между текстом и карточкой целиком и подстраивается под высоту экрана */
  .hero { flex-direction: column; align-items: stretch; min-height: 100vh; min-height: 100svh; padding-top: calc(var(--header-h) + 24px); }
  .hero h1 { font-size: clamp(46px, 14vw, 72px); }
  .hero-lead { margin-top: 14px; font-size: 16px; }
  .hero-actions { margin-top: 20px; gap: 8px; }
  .hero-actions .btn { flex: 1 1 auto; min-height: 46px; padding: 0 12px; font-size: 14.500px; max-width: 260px; }
  .hero-row { order: 1; }
  .hero-guitar { --w: clamp(340px, (100vh - 450px) / .782, (100vw - 32px) / .729); order: 2; position: relative; top: auto; left: auto; flex: none; width: var(--w); margin: calc(var(--w) * -.166 + 12px) 0 calc(var(--w) * -.052 + 8px) calc(50% - var(--w) * .4386); transform: none; }
  .hero-card { order: 3; position: relative; right: auto; bottom: auto; align-self: center; width: min(420px, calc(100% - 32px)); margin: auto 0 14px; }
  .strum-hint { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 58px; --radius-card: 20px; }
  .wrap { width: calc(100% - 32px); }
  .header-row { grid-template-columns: 1fr auto; }
  .burger { display: grid; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: rgba(255, 255, 255, .97); box-shadow: 0 16px 30px -18px rgba(22, 33, 44, .4); font-size: 18px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a { padding: 12px 0; }
  .nav a::after { display: none; }


  .steps-grid { grid-template-columns: 1fr; gap: 8px; align-content: center; }
  .steps-title h2 { font-size: 34px; }
  .steps-title p { display: none; }
  .steps-stage { min-height: 390px; }
  .step-num { font-size: 96px; }
  .step h3 { margin-top: 10px; }
  .step p { margin: 10px 0 18px; font-size: 16px; }

  .catalog { padding: 64px 0 72px; }
  .catalog-head p { font-size: 16.500px; }
  .filters { padding: 8px 0; }
  .filters-row { gap: 6px; width: 100%; padding-inline: 12px; overflow: visible; }
  .pill { flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 0 8px; font-size: clamp(12px, 3.550vw, 15px); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-text { padding: 0 12px; }
  .card-text h3 { font-size: 14.500px; }
  .card-text p { font-size: 13px; }
  .card-buy { padding: 10px 12px 12px; }
  .price { font-size: 16px; }
  .add { width: 100%; }
  .badge { top: 10px; left: 10px; }
  .sale-badge { top: 10px; right: 10px; font-size: 12px; padding: 3px 8px; }
  .is-sale s { font-size: 12.500px; }
  .pd-price.is-sale ins { font-size: 28px; }

  .about { padding: 64px 0; }
  .about h2 { margin-bottom: 28px; }
  .about-copy p { font-size: 16.500px; }
  .map-frame { height: 340px; }

  .pd { grid-template-columns: 1fr; }
  .pd-pic { min-height: 0; padding: 12px; }
  .pd-pic img { max-height: 220px; }
  .pd-thumb { width: 48px; height: 48px; }
  .promo { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .promo h3 { font-size: 18px; }
  .promo li { font-size: 13.500px; padding: 4px 12px 4px 4px; }
  .promo li img { width: 34px; height: 34px; }
  .promo-delivery { max-width: none; padding-top: 12px; border-top: 1px solid rgba(179, 86, 8, .2); }
  .pd-info { padding: 20px 18px 20px; }
  .product-dialog { border-radius: 22px; }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .hero-guitar { --w: clamp(340px, (100vh - 520px) / .782, (100vw - 32px) / .729); }
}

/* Узкие телефоны: карточки по одной в ряд */
@media (max-width: 390px) {
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card-pic { aspect-ratio: 4 / 3; }
  .card-pic img { padding: 4%; }
  .card-text { padding: 0 16px; }
  .card-text h3 { font-size: 16px; }
  .card-text p { font-size: 14px; }
  .card-buy { padding: 12px 16px 16px; flex-wrap: nowrap; }
  .add { width: auto; }
}

@media (max-width: 760px) and (max-height: 690px) {
  .steps-title h2 { font-size: 30px; }
  .steps-stage { min-height: 350px; }
  .step-num { font-size: 72px; }
  .step h3 { font-size: 24px; }
  .step p { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .steps { height: auto; }
  .steps-pin { position: static; height: auto; padding: 72px 0; display: block; }
  .steps-stage { min-height: 0; display: grid; gap: 40px; }
  .step { position: static; opacity: 1; transform: none; visibility: visible; }
  .steps-track { display: none; }
  .steps-grid { align-items: start; }
}
