/* =====================================================================
   ГРАНЬ — дизайн-система. Чистый CSS, без фреймворков и CDN.
   Палитра: графит · айвори · терракота · тауп.
   ===================================================================== */

:root {
  --bg: #f6f1e9;
  --bg-2: #efe8dd;
  --surface: #fffcf7;
  --surface-2: #f2ece2;
  --text: #1f1e1c;
  --text-2: #57534d;
  --muted: #8a8278;
  --line: rgba(31, 30, 28, .1);
  --line-strong: rgba(31, 30, 28, .22);
  --accent: #b5563a;
  --accent-hover: #9c472f;
  --accent-soft: rgba(181, 86, 58, .1);
  --on-accent: #fff8f1;
  --ink: #1f1e1c;
  --on-ink: #f6f1e9;
  --taupe: #8c7b6b;
  --success: #3f7a54;
  --success-soft: rgba(63, 122, 84, .12);
  --warning: #a8691a;
  --warning-soft: rgba(183, 121, 31, .13);
  --danger: #b42318;
  --danger-soft: rgba(180, 35, 24, .1);
  --glass: rgba(246, 241, 233, .72);
  --glass-strong: rgba(255, 252, 247, .86);
  --sheet: rgba(255, 252, 247, .95);
  --shadow-sm: 0 1px 2px rgba(31, 30, 28, .06), 0 1px 1px rgba(31, 30, 28, .03);
  --shadow: 0 12px 32px -14px rgba(31, 30, 28, .22);
  --shadow-lg: 0 32px 64px -24px rgba(31, 30, 28, .32);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #141312;
  --bg-2: #1a1917;
  --surface: #1f1e1c;
  --surface-2: #282623;
  --text: #f2ece2;
  --text-2: #cbc3b7;
  --muted: #958c80;
  --line: rgba(242, 236, 226, .1);
  --line-strong: rgba(242, 236, 226, .24);
  --accent: #d0714f;
  --accent-hover: #e0825f;
  --accent-soft: rgba(208, 113, 79, .15);
  --on-accent: #1a1210;
  --ink: #f2ece2;
  --on-ink: #1a1917;
  --taupe: #a8978a;
  --success: #6fbf8a;
  --success-soft: rgba(111, 191, 138, .14);
  --warning: #e3a64a;
  --warning-soft: rgba(227, 166, 74, .14);
  --danger: #f2796b;
  --danger-soft: rgba(242, 121, 107, .14);
  --glass: rgba(20, 19, 18, .72);
  --glass-strong: rgba(31, 30, 28, .88);
  --sheet: rgba(26, 25, 23, .96);
  --shadow: 0 14px 36px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 34px 70px -24px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--font-sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color .35s ease, color .35s ease;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
svg:not([width]) { width: 1.25em; height: 1.25em; flex: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code { overflow-wrap: anywhere; font: 13px/1.4 Consolas, "SFMono-Regular", monospace; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
[hidden], .hidden { display: none !important; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }
.container--mid { max-width: 1080px; }
.section { padding-top: 88px; }
.section--sm { padding-top: 40px; }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; }
.h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px); font-weight: 500; letter-spacing: -.015em; }
.h2 { font-family: var(--font-display); font-size: clamp(32px, 4.2vw, 52px); font-weight: 500; }
.h3 { font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.h4 { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 17px; color: var(--text-2); line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.accent { color: var(--accent); }
.italic { font-style: italic; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-family: Consolas, "SFMono-Regular", monospace; }
.strike { text-decoration: line-through; }
.mt-xs { margin-top: 6px; } .mt-s { margin-top: 12px; } .mt { margin-top: 20px; } .mt-l { margin-top: 32px; } .mt-xl { margin-top: 56px; }
.stack > * + * { margin-top: 16px; }
.stack-s > * + * { margin-top: 8px; }
.stack-l > * + * { margin-top: 28px; }
.row { display: flex; align-items: center; gap: 12px; }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--top { align-items: flex-start; }
.row--end { justify-content: flex-end; }
.grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.split { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); } }
.divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- верхняя плашка и шапка ---------- */
.announce {
  background: var(--ink); color: var(--on-ink); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  text-align: center; padding: 9px 16px; font-weight: 600;
}
.announce b { color: var(--accent); font-weight: 700; }
:root[data-theme="dark"] .announce b { color: #b5563a; }
@media (max-width: 639px) { .announce__more { display: none; } }
.alert-bar { background: var(--danger); color: #fff; font-size: 13px; text-align: center; padding: 8px 16px; }
.alert-bar a { text-decoration: underline; margin-left: 8px; }

.header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: var(--glass); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s ease, background-color .3s ease;
}
.header.is-scrolled { box-shadow: var(--shadow); }
.header__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.nav__link { position: relative; padding: 6px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link--desktop { display: none; }
.logo { display: inline-flex; color: var(--text); transition: opacity .2s; }
.logo svg { height: 26px; width: auto; }
.logo:hover { opacity: .8; }
.header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; color: var(--text); transition: background-color .2s ease, transform .2s var(--ease);
}
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn--desktop { display: none; }
.badge {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.badge.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.4); } 100% { transform: scale(1); } }
.pill-link {
  display: none; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line-strong); padding: 8px 14px; border-radius: 999px; margin: 0 6px; transition: all .2s;
}
.pill-link:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.theme-icon--dark { display: none; }
:root[data-theme="dark"] .theme-icon--dark { display: block; }
:root[data-theme="dark"] .theme-icon--light { display: none; }

@media (min-width: 980px) {
  .nav__link--desktop { display: inline-block; }
  .menu-toggle { display: none; }
  .icon-btn--desktop { display: inline-flex; }
  .pill-link { display: inline-flex; }
}

/* поиск */
.search-panel {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--glass-strong);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line);
  padding: 18px 0; box-shadow: var(--shadow); animation: dropIn .35s var(--ease);
}
.search-form { display: flex; align-items: center; gap: 12px; }
.search-form input { flex: 1; background: none; border: 0; outline: 0; font: 400 26px/1.2 var(--font-display); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* мобильное меню (выезжает слева) */
.sheet { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(15, 14, 13, .42); opacity: 0; transition: opacity .35s ease; backdrop-filter: blur(2px); }
.sheet__panel {
  position: absolute; top: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column;
  background: var(--sheet); backdrop-filter: saturate(160%) blur(24px); -webkit-backdrop-filter: saturate(160%) blur(24px);
  box-shadow: var(--shadow-lg); transition: transform .45s var(--ease);
}
.sheet--left .sheet__panel { left: 0; transform: translateX(-100%); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.sheet--right .sheet__panel { right: 0; transform: translateX(100%); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.sheet.is-open { pointer-events: auto; }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sheet__body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.sheet__foot { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
  font: 500 30px/1.1 var(--font-display); }
.mobile-nav svg { width: 22px; height: 22px; color: var(--muted); }
.mobile-nav a small { font: 600 12px var(--font-sans); color: var(--muted); }
body.is-locked { overflow: hidden; }

/* ---------- кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s var(--ease), box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn.is-disabled { opacity: .42; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary:not(:disabled):hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:not(:disabled):hover { background: var(--accent-hover); box-shadow: 0 14px 30px -14px var(--accent); transform: translateY(-1px); }
.btn--outline { border-color: var(--line-strong); background: transparent; }
.btn--outline:not(:disabled):hover { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { filter: brightness(1.08); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 11.5px; }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn--shine::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-20deg);
  transition: left .7s var(--ease);
}
.btn--shine:hover::after { left: 130%; }
.link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s; }
.link:hover { color: var(--accent); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.link-arrow svg { width: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- формы ---------- */
.field { display: block; }
.label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line-strong); outline: none; font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--taupe); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input.is-invalid, .select.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.input--lg { min-height: 64px; font: 500 30px/1 var(--font-display); text-align: center; letter-spacing: .5em; padding-left: .5em; }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a8278' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.error-text { font-size: 12.5px; color: var(--danger); margin-top: 6px; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 96px; }
.input-wrap__btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-radius: 8px; }
.input-wrap__btn:hover { color: var(--text); background: var(--accent-soft); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-errors { border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); padding: 14px 18px; font-size: 14px; font-weight: 600; }
.form-errors div + div { margin-top: 4px; }
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13.5px;
  background: var(--surface-2); color: var(--text-2); }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice--warn { background: var(--warning-soft); color: var(--warning); }
.notice--ok { background: var(--success-soft); color: var(--success); }

/* переключатель */
.switch { position: relative; display: inline-flex; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background-color .25s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.switch input:checked + span { background: var(--success); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* карточки-варианты (radio) */
.option {
  position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, box-shadow .25s, transform .2s var(--ease);
}
.option:hover { border-color: var(--line-strong); }
.option input[type="radio"] { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.option.is-checked, .option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.option__title { display: block; font-weight: 700; line-height: 1.35; }
.option__meta { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.option__price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.option__icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none;
  background: var(--surface-2); }
.option__icon svg { width: 22px; height: 22px; }
@media (max-width: 479px) { .option { padding: 15px; gap: 12px; } .option__icon { display: none; } }

/* ---------- карточки и поверхности ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card--pad { padding: 24px; }
.card--pad-l { padding: 32px; }
.card--hover { transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.glass { background: var(--glass); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px); border: 1px solid var(--line); }
@media (max-width: 639px) { .card--pad, .card--pad-l { padding: 20px; } }

/* метки и статусы */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; background: var(--glass-strong); color: var(--text);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tag--accent { background: var(--accent); color: var(--on-accent); }
.tag--ink { background: var(--ink); color: var(--on-ink); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-new { background: rgba(59, 104, 196, .12); color: #3657a8; }
.st-paid { background: var(--success-soft); color: var(--success); }
.st-assembling { background: var(--warning-soft); color: var(--warning); }
.st-shipped { background: rgba(122, 79, 160, .13); color: #6d4a95; }
.st-cancelled { background: var(--surface-2); color: var(--muted); }
:root[data-theme="dark"] .st-new { color: #9db8f2; } :root[data-theme="dark"] .st-shipped { color: #c8a5ec; }
.st-danger { background: var(--danger-soft); color: var(--danger); }

/* «Осталось всего 2 шт.» */
.stock-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800;
  animation: badgeIn .45s var(--ease);
}
.stock-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-out infinite; }
.stock-badge--ok { background: var(--success-soft); color: var(--success); }
.stock-badge--ok::before { animation: none; }
.stock-badge--out { background: var(--surface-2); color: var(--muted); }
.stock-badge--out::before { animation: none; }
@keyframes badgeIn { from { opacity: 0; transform: translateY(4px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 100% { box-shadow: 0 0 0 7px transparent; } }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 1.8s ease-out infinite; color: var(--success); }

/* ---------- герой ---------- */
.hero { display: grid; gap: 12px; padding: 12px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.15fr 1fr; padding: 16px; gap: 16px; } }
.hero__panel { position: relative; overflow: hidden; border-radius: var(--radius-xl); min-height: min(76vh, 760px); display: flex; align-items: flex-end;
  background: var(--bg-2); isolation: isolate; }
.hero__panel--small { min-height: 46vh; }
@media (min-width: 820px) { .hero__panel--small { min-height: min(76vh, 760px); } }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 2.4s var(--ease); }
.hero__panel:hover .hero__img { transform: scale(1.1); }
.hero__panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 19, 18, 0) 40%, rgba(20, 19, 18, .62)); }
.hero__copy { padding: 28px; color: #fbf6ee; width: 100%; }
@media (min-width: 820px) { .hero__copy { padding: 44px; } }
.hero__title { font: 500 clamp(48px, 11vw, 104px)/.92 var(--font-display); letter-spacing: -.02em; }
@media (min-width: 820px) { .hero__title { font-size: clamp(46px, 6.2vw, 104px); } }
.hero__title em { color: #e9a383; }
.hero__sub { margin-top: 14px; max-width: 420px; color: rgba(251, 246, 238, .82); font-size: 16px; }
.hero__cta { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero__cta .btn--glass { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hero__cta .btn--glass:hover { background: #fff; color: #1f1e1c; }
.hero__badge { position: absolute; top: 22px; left: 22px; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; margin-top: 12px; }
.marquee__track { display: flex; gap: 44px; width: max-content; animation: marquee 42s linear infinite;
  font: 500 22px/1 var(--font-display); font-style: italic; color: var(--text-2); }
.marquee__track span::after { content: "◆"; font-style: normal; color: var(--accent); font-size: 10px; margin-left: 44px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }

.promo { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .promo { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.promo__media { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--bg-2); }
.promo__media img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fact { padding: 18px 14px; text-align: center; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.fact b { display: block; font: 500 34px/1 var(--font-display); }
.fact span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 8px; }

.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature__icon { width: 46px; height: 46px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); }
.feature__icon svg { width: 22px; height: 22px; }

/* ---------- сетка товаров и карточка ---------- */
.products-grid { display: grid; gap: 28px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; } }
@media (min-width: 1140px) { .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { display: block; }
.pcard__media { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: var(--radius); background: var(--bg-2); isolation: isolate; }
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .55s ease, transform 1.1s var(--ease); }
.pcard__media .is-alt { opacity: 0; }
@media (hover: hover) {
  .pcard:hover .pcard__media img { transform: scale(1.045); }
  .pcard:hover .pcard__media .is-alt { opacity: 1; }
  .pcard:hover .pcard__quick { opacity: 1; transform: none; }
}
.pcard__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.pcard__quick { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  padding: 8px; border-radius: var(--radius-sm); background: var(--glass-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(10px); transition: all .45s var(--ease); }
.pcard__quick span { font-size: 11.5px; font-weight: 700; padding: 4px 7px; border-radius: 6px; }
.pcard__quick span.is-out { color: var(--muted); text-decoration: line-through; }
.pcard__soldout { position: absolute; inset: auto 10px 10px; z-index: 2; text-align: center; padding: 8px; border-radius: var(--radius-sm);
  background: var(--glass-strong); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pcard__body { padding-top: 14px; display: flex; justify-content: space-between; gap: 10px; }
.pcard__title { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.pcard:hover .pcard__title { color: var(--accent); }
.pcard__price { text-align: right; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.pcard__price s { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.pcard__swatches { display: flex; gap: 6px; margin-top: 9px; align-items: center; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5);
  transition: transform .2s var(--ease), box-shadow .2s; }
.swatch:hover, .swatch.is-active { transform: scale(1.18); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--text); }
@media (max-width: 639px) {
  .pcard__title, .pcard__price { font-size: 13.5px; }
  .pcard__body { flex-direction: column; gap: 4px; }
  .pcard__price { text-align: left; }
  .pcard__price s { display: inline; margin-left: 6px; }
}

/* ---------- каталог ---------- */
.page-head { padding-top: 40px; }
.breadcrumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); gap: 2px; }
.segmented a { padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; transition: all .25s var(--ease); }
.segmented a.is-active { background: var(--surface); box-shadow: var(--shadow-sm); }
.toolbar { position: sticky; top: var(--header-h); z-index: 20; margin-top: 28px; padding: 12px 0; background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-block: 1px solid var(--line); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--surface);
  transition: all .2s ease; }
.chip:hover { border-color: var(--line-strong); }
.chip.is-active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.toolbar__controls { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.toolbar__controls .select { min-height: 40px; padding: 6px 40px 6px 14px; font-size: 14px; width: auto; border-radius: 999px; }
@media (min-width: 900px) { .toolbar__row { display: flex; align-items: center; gap: 20px; } .toolbar__row .chips { flex: 1; } .toolbar__controls { margin-top: 0; } }
.empty { padding: 90px 20px; text-align: center; }

/* ---------- страница товара ---------- */
.product { display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 18px; }
@media (min-width: 760px) { .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; } }
@media (min-width: 960px) { .product { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; } }
.gallery { position: relative; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-lg);
  -webkit-overflow-scrolling: touch; background: var(--bg-2); }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 3 / 4; position: relative; overflow: hidden; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery__dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.gallery__dots button { width: 7px; height: 7px; border-radius: 999px; background: var(--line-strong); transition: all .3s var(--ease); }
.gallery__dots button.is-active { width: 22px; background: var(--text); }
.gallery__nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -40px; border-radius: 50%; display: none; align-items: center;
  justify-content: center; background: var(--glass-strong); backdrop-filter: blur(10px); box-shadow: var(--shadow); transition: transform .2s var(--ease); }
.gallery__nav:hover { transform: scale(1.06); }
.gallery__nav--prev { left: 14px; } .gallery__nav--next { right: 14px; }
.gallery__nav svg { width: 20px; }
.gallery__thumbs { display: none; }
@media (min-width: 960px) {
  .gallery { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; }
  .gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
  .gallery__thumbs button { aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; opacity: .6;
    transition: all .25s ease; background: var(--bg-2); }
  .gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
  .gallery__thumbs button.is-active, .gallery__thumbs button:hover { opacity: 1; border-color: var(--text); }
  .gallery__main { position: relative; grid-column: 2; }
  .gallery__dots { display: none; }
  .gallery__nav { display: inline-flex; }
  .gallery__slide { cursor: zoom-in; }
}
.product__info { align-self: start; }
@media (min-width: 760px) { .product__info { position: sticky; top: calc(var(--header-h) + 24px); } }
.product__title { font: 500 clamp(34px, 4vw, 50px)/1.04 var(--font-display); margin-top: 10px; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.price { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 17px; }
.option-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.option-label b { font-weight: 700; }
.colors { display: flex; flex-wrap: wrap; gap: 12px; }
.color-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.color-btn i { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45);
  transition: all .25s var(--ease); }
.color-btn:hover i { transform: scale(1.08); }
.color-btn.is-active { color: var(--text); }
.color-btn.is-active i { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.color-btn.is-out i { opacity: .45; background-image: linear-gradient(135deg, transparent 47%, var(--text) 48%, var(--text) 52%, transparent 53%) !important; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; }
.size-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 58px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: var(--surface);
  font-weight: 800; font-size: 14.5px; transition: all .2s var(--ease);
}
.size-btn small { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.size-btn small.is-low { color: var(--accent); font-weight: 800; }
.size-btn:hover:not(:disabled) { border-color: var(--text); transform: translateY(-1px); }
.size-btn.is-active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.size-btn.is-active small { color: inherit; opacity: .75; }
.size-btn.is-active small.is-low { color: #f0a786; opacity: 1; }
.size-btn:disabled { opacity: .45; cursor: not-allowed; }
.size-btn:disabled b { text-decoration: line-through; }
.size-btn.is-flash { animation: flash 1s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--accent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.buy-row { display: flex; gap: 10px; margin-top: 22px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; height: 50px; }
.qty button { width: 42px; height: 100%; font-size: 18px; border-radius: 999px; }
.qty button:hover { background: var(--accent-soft); }
.qty input { width: 32px; text-align: center; border: 0; background: none; outline: none; font-weight: 700; }
.qty--sm { height: 36px; }
.qty--sm button { width: 32px; font-size: 16px; }
.qty--sm input, .qty--sm span { width: 26px; text-align: center; font-weight: 700; font-size: 14px; }
.accordion { border-top: 1px solid var(--line); margin-top: 32px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; padding: 18px 0;
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 22px; font-weight: 300; transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding-bottom: 18px; color: var(--text-2); font-size: 14.5px; }
.accordion__body li + li { margin-top: 6px; }
.sticky-buy { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; gap: 10px; align-items: center;
  padding: 10px 10px 10px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); transform: translateY(150%); transition: transform .45s var(--ease); }
.sticky-buy.is-visible { transform: none; }
@media (min-width: 760px) { .sticky-buy { display: none; } }

/* ---------- корзина (выезжающая панель) ---------- */
.cart-line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); animation: fadeUp .4s var(--ease) both; }
.cart-line__img { aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__title { font-weight: 700; font-size: 14px; line-height: 1.35; }
.cart-line__meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cart-line__meta i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0, 0, 0, .15); }
.cart-line__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.cart-line__remove { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cart-line__remove:hover { color: var(--danger); }
.cart-line__warn { font-size: 12px; color: var(--warning); font-weight: 700; margin-top: 4px; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress__bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--taupe), var(--accent)); transition: width .6s var(--ease); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.total-row--big { font-size: 20px; font-weight: 800; }
.total-row + .total-row { margin-top: 8px; }
.cart-empty { text-align: center; padding: 70px 10px; }
.cart-empty svg { width: 52px; height: 52px; margin: 0 auto 18px; color: var(--taupe); }

/* ---------- модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 16px;
  background: rgba(15, 14, 13, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal.is-open { display: flex; animation: fadeIn .25s ease; }
.modal__panel { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; border-radius: var(--radius-lg); padding: 30px;
  background: var(--glass-strong); backdrop-filter: saturate(160%) blur(24px); -webkit-backdrop-filter: saturate(160%) blur(24px);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop .4s var(--ease); }
.modal__panel--wide { max-width: 860px; padding: 12px; }
.modal__panel--wide img { border-radius: var(--radius); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- уведомления ---------- */
.toasts { position: fixed; z-index: 90; top: calc(var(--header-h) + 14px); right: 14px; left: 14px; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none; align-items: flex-end; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; width: 100%; max-width: 380px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--glass-strong); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; animation: toastIn .5s var(--ease); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--taupe); flex: none; margin-top: 7px; }
.toast--success::before { background: var(--success); }
.toast--error::before { background: var(--danger); }
.toast--error { color: var(--danger); }
.toast span { flex: 1; }
.toast__close { font-size: 20px; line-height: 1; opacity: .5; }
.toast.is-hiding { opacity: 0; transform: translateX(16px); transition: all .35s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- оформление заказа ---------- */
.checkout { display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 12px; }
@media (min-width: 980px) { .checkout { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; } }
.step-card { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.step-card + .step-card { margin-top: 16px; }
@media (max-width: 639px) { .step-card { padding: 20px 16px; } }
.step-title { display: flex; align-items: center; gap: 12px; font: 500 26px/1.1 var(--font-display); margin-bottom: 20px; }
.step-title span { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  font: 800 13px/1 var(--font-sans); background: var(--ink); color: var(--on-ink); }
.step-title.is-done span { background: var(--success); color: #fff; }
.delivery-body { margin-top: 12px; padding: 18px; border-radius: var(--radius); background: var(--surface-2); animation: fadeUp .35s var(--ease); }
.points { display: grid; gap: 8px; margin-top: 12px; max-height: 300px; overflow-y: auto; padding: 2px; }
.point { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface);
  border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s; font-size: 14px; }
.point input { accent-color: var(--accent); margin-top: 3px; }
.point:has(input:checked) { border-color: var(--accent); }
.point small { display: block; color: var(--muted); font-size: 12px; }
.quote { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px dashed var(--line-strong); font-size: 14px; }
.quote b { font-size: 16px; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 24px; border-radius: var(--radius-lg); }
.summary__items { max-height: 320px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.summary__item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; font-size: 13.5px; }
.summary__item img { width: 52px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.checklist { display: grid; gap: 6px; margin-top: 16px; font-size: 13px; }
.checklist li { display: flex; gap: 8px; align-items: center; color: var(--muted); transition: color .3s; }
.checklist li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; transition: all .3s; }
.checklist li.is-ok { color: var(--success); }
.checklist li.is-ok::before { background: var(--success); border-color: var(--success);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E"); }

/* ---------- оплата ---------- */
.pay-card { padding: 34px; border-radius: var(--radius-xl); }
@media (max-width: 639px) { .pay-card { padding: 22px 18px; } }
.sbp-mark { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; color: #fff; font-weight: 800; font-size: 14px;
  background: linear-gradient(135deg, #5b57a2, #d90751 40%, #fab31e 70%, #0fa8e0); flex: none; }
.qr-wrap { display: grid; gap: 30px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 760px) { .qr-wrap { grid-template-columns: auto 1fr; } }
.qr-box { width: 260px; height: 260px; margin: 0 auto; padding: 14px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); position: relative; }
.qr-box svg { width: 100%; height: 100%; }
.qr-box::after { content: ""; position: absolute; inset: -6px; border-radius: calc(var(--radius-lg) + 6px); border: 2px solid transparent;
  background: linear-gradient(135deg, #5b57a2, #d90751, #fab31e, #0fa8e0) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8; }
.banks { display: grid; gap: 10px; }
.bank { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; transition: all .25s var(--ease); }
.bank:hover, .bank:active { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.bank__dot { width: 34px; height: 34px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.bank svg { width: 18px; margin-left: auto; color: var(--muted); }
.wait { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); font-size: 14px; font-weight: 600; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; animation: dots 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { transform: translateY(0); opacity: .3; } 30% { transform: translateY(-4px); opacity: 1; } }
.cc { position: relative; aspect-ratio: 1.586; max-width: 380px; border-radius: 22px; padding: 24px; color: #f6f1e9; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-lg);
  background: radial-gradient(120% 120% at 100% 0%, #b5563a 0%, transparent 46%), linear-gradient(140deg, #2b2a28, #141312); }
.cc::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); }
.cc__chip { width: 44px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #e9d5a7, #b8975b); }
.cc__num { font: 600 21px/1 Consolas, monospace; letter-spacing: .14em; }
.cc__row { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.success-mark { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--success-soft); color: var(--success); animation: pop .6s var(--ease); }
.success-mark svg { width: 40px; height: 40px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* симулятор банка */
.bank-sim { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(120% 80% at 50% 0%, #2a2724, #121110); }
.bank-sim__phone { width: 100%; max-width: 380px; border-radius: 36px; background: #fbf8f3; color: #1f1e1c; overflow: hidden; box-shadow: 0 40px 80px -30px #000; }
.bank-sim__bar { height: 6px; }
.bank-sim__body { padding: 26px 24px 30px; }
.bank-sim__btn { width: 100%; min-height: 56px; border-radius: 18px; font-weight: 800; font-size: 16px; }

/* ---------- авторизация ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - var(--header-h) - 36px); }
@media (min-width: 980px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.auth__visual { display: none; position: relative; margin: 16px; border-radius: var(--radius-xl); overflow: hidden; background: var(--bg-2); }
@media (min-width: 980px) { .auth__visual { display: block; } }
.auth__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20, 19, 18, .65)); }
.auth__quote { position: absolute; z-index: 1; left: 40px; right: 40px; bottom: 40px; color: #fbf6ee; }
.auth__form { display: flex; align-items: center; justify-content: center; padding: 40px 20px 60px; }
.auth__box { width: 100%; max-width: 440px; min-width: 0; overflow-wrap: anywhere; }
.sms-demo { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; margin-top: 22px;
  background: var(--glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: smsIn .7s var(--ease); }
.sms-demo__icon { width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--success); color: #fff; }
.sms-demo__icon svg { width: 20px; height: 20px; }
.sms-demo b.code { font-size: 20px; letter-spacing: .18em; font-family: Consolas, monospace; }
@keyframes smsIn { from { opacity: 0; transform: translateY(-20px) scale(.96); } to { opacity: 1; transform: none; } }
.strength { height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.strength i { display: block; height: 100%; width: 0; border-radius: inherit; transition: all .3s ease; }
.captcha { padding: 16px; border-radius: var(--radius); background: var(--surface-2); }

/* ---------- кабинет, таблицы ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 14px 16px;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .15s; }
.table tbody tr:hover { background: var(--accent-soft); }
.table tr[data-href] { cursor: pointer; }
.order-list { display: grid; gap: 12px; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); transition: all .25s var(--ease); }
.order-row:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.timeline li { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.timeline li::before { content: ""; display: block; height: 4px; border-radius: 999px; background: var(--surface-2); margin-bottom: 10px; }
.timeline li.is-done { color: var(--text); }
.timeline li.is-done::before { background: var(--accent); }
.kv { display: grid; gap: 4px; font-size: 14px; }
.kv dt { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.kv dt:first-child { margin-top: 0; }
.kv dd { margin: 0; }

/* ---------- чат ---------- */
.chat { display: flex; flex-direction: column; height: calc(100vh - var(--header-h) - 70px); min-height: 460px; overflow: hidden; border-radius: var(--radius-lg); }
@media (max-width: 639px) { .chat { border-radius: 0; height: calc(100dvh - var(--header-h) - 36px); border-inline: 0; } }
.chat__head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.avatar { position: relative; width: 46px; height: 46px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  font: 500 22px/1 var(--font-display); background: linear-gradient(135deg, var(--accent), var(--taupe)); color: #fff; }
.avatar__dot { position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid var(--surface); background: var(--muted); }
.avatar__dot.is-online { background: var(--success); }
.chat__list { flex: 1; overflow-y: auto; padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain;
  background: radial-gradient(100% 60% at 50% 0%, var(--accent-soft), transparent 60%), var(--bg); }
.msg-wrap { display: flex; flex-direction: column; align-items: flex-start; animation: fadeUp .35s var(--ease) both; }
.msg-wrap.is-mine { align-items: flex-end; }
.msg { max-width: min(78%, 520px); padding: 11px 15px; border-radius: 20px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word;
  background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); }
.msg-wrap.is-mine .msg { background: var(--ink); color: var(--on-ink); border-color: transparent; border-radius: 20px; border-bottom-right-radius: 6px; }
.msg--bot { background: var(--accent-soft) !important; border: 1px dashed var(--accent) !important; color: var(--text) !important; }
.msg__ctx { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-bottom: 6px; background: rgba(140, 123, 107, .2); }
.msg__meta { font-size: 11px; color: var(--muted); margin: 4px 6px 0; }
.chat__ctx { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 0; }
.chat__ctx .tag { background: var(--surface-2); text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 700; }
.chat__form { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.chat__form .textarea { min-height: 50px; max-height: 160px; resize: none; border-radius: 25px; padding: 13px 18px; }
.chat__send { width: 50px; height: 50px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent); transition: transform .2s var(--ease), background-color .2s; }
.chat__send:hover { background: var(--accent-hover); transform: rotate(-12deg) scale(1.04); }
.chat__send svg { width: 20px; height: 20px; }
.chat__empty { margin: auto; text-align: center; color: var(--muted); max-width: 300px; font-size: 14px; }

/* рабочее место менеджера */
.mchat { display: grid; grid-template-columns: 1fr; height: calc(100vh - var(--header-h) - 170px); min-height: 560px; overflow: hidden; border-radius: var(--radius-lg); }
@media (min-width: 900px) { .mchat { grid-template-columns: 320px 1fr; } }
.mchat__list { border-right: 1px solid var(--line); overflow-y: auto; }
@media (max-width: 899px) { .mchat__list { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); } }
.conv { display: block; width: 100%; text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.conv:hover { background: var(--accent-soft); }
.conv.is-active { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.conv__top { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 14px; }
.conv__last { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.conv__last span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800;
  line-height: 20px; text-align: center; }
.quick { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px 0; scrollbar-width: none; }
.quick button { flex: none; font-size: 12.5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.quick button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- панель управления ---------- */
.panel { display: grid; gap: 24px; grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 60px; }
@media (min-width: 1000px) { .panel { grid-template-columns: 250px minmax(0, 1fr); gap: 32px; } }
.panel__side { align-self: start; padding: 14px; border-radius: var(--radius-lg); }
@media (min-width: 1000px) { .panel__side { position: sticky; top: calc(var(--header-h) + 20px); } }
.panel__user { padding: 8px 10px 16px; }
.panel-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 1000px) { .panel-nav { flex-direction: column; } }
.panel-nav a, .panel-nav button { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600;
  transition: all .2s ease; width: auto; }
@media (min-width: 1000px) { .panel-nav a, .panel-nav button { width: 100%; } }
.panel-nav a:hover, .panel-nav button:hover { background: var(--accent-soft); }
.panel-nav a.is-active { background: var(--ink); color: var(--on-ink); }
.panel-nav__group { display: none; font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 6px; }
@media (min-width: 1000px) { .panel-nav__group { display: block; } }
.panel-nav .unread { margin-left: auto; }
.panel-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1200px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats--6 { grid-template-columns: repeat(6, 1fr); } }
.stat { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: all .25s var(--ease); display: block; }
a.stat:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.stat__k { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat__v { font: 500 38px/1.1 var(--font-display); margin-top: 6px; }
.stat__v.is-warn { color: var(--warning); } .stat__v.is-bad { color: var(--danger); } .stat__v.is-accent { color: var(--accent); }
.kill { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 760px) { .kill { grid-template-columns: repeat(3, 1fr); } }
.kill-btn { text-align: left; padding: 18px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); transition: all .25s var(--ease); }
.kill-btn:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.kill-btn b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.kill-btn b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.kill-btn span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.kill-btn--live { color: var(--success); } .kill-btn--maintenance { color: var(--warning); } .kill-btn--lockdown { color: var(--danger); }
.kill-btn.is-current { border-width: 2px; border-color: currentColor; box-shadow: 0 0 0 4px var(--accent-soft); }
.kill-btn--lockdown.is-current { background: var(--danger-soft); }
.big-red { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 68px; border-radius: var(--radius); background: var(--danger); color: #fff; font-weight: 800; font-size: 15px;
  letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 16px 30px -16px var(--danger); transition: transform .2s var(--ease), filter .2s; }
.big-red svg { width: 22px; height: 22px; }
.big-red:hover { filter: brightness(1.08); transform: translateY(-1px); }
.lvl-info { color: var(--muted); } .lvl-warning { color: var(--warning); font-weight: 700; } .lvl-critical { color: var(--danger); font-weight: 800; }
.mini-stock { display: flex; flex-wrap: wrap; gap: 4px; }
.mini-stock span { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); }
.mini-stock span.is-low { border-color: var(--warning); color: var(--warning); }
.mini-stock span.is-out { border-color: var(--danger); color: var(--danger); }
.thumb { width: 46px; aspect-ratio: 3 / 4; border-radius: 9px; overflow: hidden; background: var(--bg-2); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* редактор цветов товара */
.variant { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); animation: fadeUp .4s var(--ease) both; }
.variant + .variant { margin-top: 14px; }
.variant.is-removed { opacity: .45; }
.variant__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.color-input { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-strong); padding: 0; overflow: hidden; cursor: pointer; flex: none; }
.color-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.color-input::-moz-color-swatch { border: 0; border-radius: 50%; }
.size-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
@media (min-width: 640px) { .size-inputs { grid-template-columns: repeat(6, 1fr); } }
.size-inputs .input { text-align: center; min-height: 44px; padding: 8px; }
.size-inputs label { font-size: 11px; font-weight: 800; color: var(--muted); text-align: center; display: block; margin-bottom: 4px; }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 14px; }
.imgs label { position: relative; cursor: pointer; }
.imgs .thumb { width: 100%; }
.imgs input { position: absolute; top: 6px; right: 6px; accent-color: var(--danger); }
.imgs label:has(input:checked) .thumb { opacity: .35; outline: 2px solid var(--danger); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin-top: 14px; padding: 18px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); text-align: center; cursor: pointer; transition: all .2s; font-size: 13.5px; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .imgs { width: 100%; }

/* ---------- телефон / QR ---------- */
.phone-qr { width: 220px; height: 220px; padding: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.phone-qr svg { width: 100%; height: 100%; }

/* ---------- подвал ---------- */
.footer { margin-top: 110px; background: var(--ink); color: var(--on-ink); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.footer__grid { display: grid; gap: 36px; padding: 60px 0 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer .logo { color: var(--on-ink); }
.footer__title { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; opacity: .55; margin-bottom: 16px; }
.footer li + li { margin-top: 10px; }
.footer a { opacity: .82; transition: opacity .2s; } .footer a:hover { opacity: 1; color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(246, 241, 233, .12); padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); font-size: 12.5px; opacity: .6;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
:root[data-theme="dark"] .footer { background: #0d0c0b; color: #f2ece2; }
:root[data-theme="dark"] .footer .logo { color: #f2ece2; }
:root[data-theme="dark"] .footer__bottom { border-color: rgba(242, 236, 226, .1); }
.pay-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-chips span { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; padding: 5px 9px; border-radius: 7px; border: 1px solid currentColor; opacity: .7; }

/* ---------- ошибки ---------- */
.error-page { text-align: center; padding: 110px 20px 40px; }
.error-page__code { overflow-wrap: anywhere; font: 500 clamp(110px, 20vw, 190px)/.9 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); }

/* ---------- анимации появления ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.fade-up { animation: fadeUp .9s var(--ease) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--bg-2), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .header, .footer, .announce, .toasts, .sheet { display: none !important; } }
