:root {
  --paper: #f8f8f6;
  --surface: #ffffff;
  --surface-2: #f1f1ee;
  --ink: #121215;
  --ink-2: #52525b;
  --ink-3: #71717a;
  --line: rgba(18, 18, 21, 0.09);
  --line-soft: rgba(18, 18, 21, 0.055);
  --line-strong: rgba(18, 18, 21, 0.20);
  --accent: #2b44b8;
  --accent-deep: #1e3394;
  --accent-soft: #eef1fb;
  --ok: #166534;
  --ok-soft: #ecfdf5;
  --warn: #92400e;
  --warn-soft: #fef9ec;
  --info: #1e40af;
  --info-soft: #eff6ff;
  --bad: #991b1b;
  --bad-soft: #fef2f2;
  --radius-control: 10px;
  --radius-card: 16px;
  --shadow-card: 0 1px 2px rgba(18, 18, 21, 0.03), 0 8px 24px -12px rgba(18, 18, 21, 0.08);
  --shadow-float: 0 4px 12px rgba(18, 18, 21, 0.05), 0 20px 44px -16px rgba(18, 18, 21, 0.14);
  --font-sans: 'Golos Text', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --header-h: 64px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.cmdk-open {
  overflow: hidden;
}

::selection { background: var(--accent-soft); color: var(--accent-deep); }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

img, svg { display: block; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 90;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  transition: top 0.15s var(--ease);
}
.skip-link:focus-visible { top: 12px; outline: none; }

h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.nowrap { white-space: nowrap; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 248, 246, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(248, 248, 246, 0.96);
  border-bottom-color: rgba(18, 18, 21, 0.14);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }

.brand-mark {
  width: 28px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url('/images/mrekk-m.png') center / contain no-repeat;
  mask: url('/images/mrekk-m.png') center / contain no-repeat;
}

.brand-name { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.brand-name span { font-weight: 400; color: var(--ink-3); }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  position: relative;
  font-size: 14px;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.15s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a.active { color: var(--ink); font-weight: 500; }
.nav a.active::after { transform: scaleX(1); transform-origin: left; }

.header-account { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-account .balance {
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.header-account .balance b { color: var(--ink); font-weight: 500; }

.header-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.header-search:hover { border-color: var(--line-strong); color: var(--ink); }
.header-search .icon { width: 15px; height: 15px; }

kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-3);
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 5px;
  padding: 0 5px;
}

.header-login {
  position: relative;
  font-size: 14px;
  color: var(--ink-2);
  padding: 8px 4px 6px;
  transition: color 0.15s var(--ease);
}
.header-login::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s var(--ease);
}
.header-login:hover { color: var(--ink); }
.header-login:hover::after { transform: scaleX(1); transform-origin: left; }

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.account-btn:hover { border-color: var(--line-strong); }
.account-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}

.account-wrap { position: relative; }
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 216px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-float);
  padding: 6px;
  display: none;
}
.account-menu.open { display: block; }
.account-menu a, .account-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  background: none;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease);
}
.account-menu a:hover, .account-menu button:hover { background: var(--surface-2); color: var(--ink); }
.account-menu .sep { height: 1px; background: var(--line-soft); margin: 6px 4px; }
.account-menu .who { padding: 10px 10px 8px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.account-menu .who strong { display: block; font-size: 14px; font-weight: 500; }
.account-menu .who span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; word-break: break-all; }

.menu-btn {
  display: none;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s var(--ease);
}
.menu-btn:hover { border-color: var(--line-strong); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--paper);
  padding: 20px;
  overflow: auto;
}
.mobile-menu.open { display: block; }
.mm-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink-3);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.mm-search:hover { border-color: var(--line-strong); color: var(--ink); }
.mm-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.mm-user strong { display: block; font-size: 14px; font-weight: 500; }
.mm-user span { display: block; font-size: 12px; color: var(--ink-3); }
.mm-balance { font-size: 13px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mm-balance b { color: var(--ink); font-weight: 600; }
.mobile-menu a.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 500;
}
.mobile-menu a.mm-link .icon { color: var(--ink-3); }
.mobile-menu .mm-actions { display: flex; gap: 12px; margin-top: 24px; }
.mobile-menu .mm-actions .btn { flex: 1; }

/* Buttons & Links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.1s var(--ease), opacity 0.15s var(--ease);
}
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: default; pointer-events: none; }
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { background: #27272c; }
.btn-outline { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-quiet { background: none; color: var(--ink-2); padding: 0 4px; height: 32px; }
.btn-quiet:hover { color: var(--ink); }
.btn-danger { border-color: rgba(153, 27, 27, 0.28); background: var(--surface); color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); background: var(--bad-soft); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }

.link {
  position: relative;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s var(--ease);
}
.link:hover { border-color: var(--line-strong); }
.link:hover::after { transform: scaleX(1); transform-origin: left; }

.link-quiet {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.link-quiet::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s var(--ease);
}
.link-quiet:hover { color: var(--ink); }
.link-quiet:hover::after { transform: scaleX(1); transform-origin: left; }
.link-quiet svg { transition: transform 0.15s var(--ease); }
.link-quiet:hover svg { transform: translateX(2px); }

.link-plain { position: relative; }
.link-plain::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--ink-2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s var(--ease);
}
.link-plain:hover::after { transform: scaleX(1); transform-origin: left; }

.icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-18 { width: 18px; height: 18px; }

/* Breadcrumbs */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--ink-3);
}
.crumbs a { color: var(--ink-2); transition: color 0.14s var(--ease); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--line-strong); }

/* Forms & Controls */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); }

.input, .textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
}
.input::placeholder, .textarea::placeholder {
  font-family: var(--font-sans);
  color: var(--ink-3);
}
.input:hover, .textarea:hover { border-color: rgba(18, 18, 21, 0.34); }
.input:focus, .textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(18, 18, 21, 0.06);
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.55; }

.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 44px; }
.pass-action {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.14s var(--ease), background-color 0.14s var(--ease);
}
.pass-action:hover { color: var(--ink); background: var(--surface-2); }
.pass-action .icon { width: 17px; height: 17px; }

.num-wrap { position: relative; }
.num-wrap .input {
  padding-right: 44px;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}
.num-wrap .input::-webkit-outer-spin-button,
.num-wrap .input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.num-steppers {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  width: 28px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.15s var(--ease);
}
.num-wrap:hover .num-steppers { border-color: var(--line-strong); }
.num-step {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--ink-3);
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease), transform 0.08s var(--ease);
}
.num-step + .num-step { border-top: 1px solid var(--line); }
.num-step:hover { background: var(--surface-2); color: var(--ink); }
.num-step:active { background: var(--line); transform: scale(0.92); }
.num-step .icon { width: 12px; height: 12px; stroke-width: 2; }

.dropdown { position: relative; }
.dropdown-btn {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s var(--ease);
}
.dropdown-btn:hover { border-color: rgba(18, 18, 21, 0.34); }
.dropdown-btn:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 18, 21, 0.06); }
.dropdown-btn .icon { color: var(--ink-3); transition: transform 0.16s var(--ease); }
.dropdown.open .dropdown-btn .icon { transform: rotate(180deg); }
.dropdown-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 100%;
  width: max-content;
  max-width: min(320px, 80vw);
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-float);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0s 0.15s;
}
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0s 0s;
}
.dropdown-option {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 13px;
  color: var(--ink-2);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease);
}
.dropdown-option:hover,
.dropdown-option:focus-visible { outline: none; background: var(--surface-2); color: var(--ink); }
.dropdown-option.is-active { color: var(--ink); font-weight: 500; }
.field-error { font-size: 13px; color: var(--bad); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.5;
}
.check input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.check a { border-bottom: 1px solid var(--line-strong); color: var(--ink); }
.check a:hover { border-color: var(--ink); }

.form-error {
  display: none;
  padding: 12px 14px;
  border: 1px solid rgba(153, 27, 27, 0.25);
  background: var(--bad-soft);
  color: var(--bad);
  border-radius: var(--radius-control);
  font-size: 13px;
  margin-bottom: 16px;
}
.form-error.show { display: block; }
.form-note {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* Page & Section Structure */
.page { min-height: calc(100vh - var(--header-h) - 240px); }
.orders-body { padding: 40px 0 88px; }

.page-head {
  padding: 56px 0 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}
.page-head.page-head-with-crumbs { padding-top: 20px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; }
.page-head .sub { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.page-head .sub .mono { color: var(--ink-3); font-size: 12px; }
.page-head-side { text-align: right; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(22px, 2.8vw, 28px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.section-head .section-note { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.section-head .section-side { margin-left: auto; flex: none; }

/* Home Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 56px;
  padding: 56px 32px 72px;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.hero .lede {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 46ch;
}
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-visual-in {
  from { opacity: 0; transform: scale(1.015); }
  to { opacity: 1; transform: none; }
}
.hero-copy h1 { animation: rise 0.6s var(--ease) 0.04s both; }
.hero .lede { animation: rise 0.6s var(--ease) 0.1s both; }
.hero-actions { animation: rise 0.6s var(--ease) 0.16s both; }
.hero-visual {
  position: relative;
  height: 540px;
  animation: hero-visual-in 0.75s var(--ease) 0.08s both;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  box-shadow: inset 0 0 0 1px rgba(18, 18, 21, 0.08);
  pointer-events: none;
}

/* Showcase, Banners & Product rows */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: stretch; }
.banner { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--surface-2); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(18, 18, 21, 0.08);
  pointer-events: none;
}
.banner-showcase { min-height: 384px; }
.banner-how { min-height: 288px; }

.price-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.price-list:has(.empty-showcase) {
  display: flex;
  align-items: center;
  justify-content: center;
}
.price-list .empty-state { border: 0; border-radius: 0; }
.product-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 112px 18px;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.14s var(--ease);
}
.product-row:last-child { border-bottom: 0; }
.product-row:hover { background: rgba(18, 18, 21, 0.024); }
.product-row:hover .row-arrow { transform: translateX(3px); color: var(--ink); }

.product-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  flex: none;
}
.brand-logo { width: 17px; height: 17px; fill: currentColor; }
.brand-letter { font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1; }
.product-main { min-width: 0; }
.product-name { display: block; font-size: 15px; font-weight: 500; line-height: 1.35; }
.product-sub { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }

.product-stock {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.product-stock::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  flex: none;
}
.product-stock.is-in::before { background: var(--ok); }
.product-stock.is-manual::before { background: var(--accent); }
.product-stock.is-out { color: var(--ink-3); }
.product-stock.is-out::before { background: var(--bad); opacity: 0.7; }

.product-price { font-size: 15px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-go { color: var(--ink-3); display: flex; justify-content: flex-end; }
.row-arrow { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s var(--ease), color 0.15s var(--ease); }

/* Arrivals & Referral */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 56px; align-items: start; }
.arrivals-grid { align-items: start; }

.ledger {
  list-style: none;
  padding: 4px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.ledger li {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.ledger li:last-child { border-bottom: 0; }
.ledger-date { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.ledger-name { font-size: 14px; font-weight: 500; }
.ledger-qty { font-family: var(--font-mono); font-size: 12px; color: var(--ok); font-weight: 500; }

.referral-paper {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.referral-photo { width: 100%; height: 176px; object-fit: cover; display: block; border-bottom: 1px solid var(--line-soft); }
.referral-body { padding: 24px 26px 26px; }
.referral-paper .big {
  font-family: var(--font-mono);
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.referral-paper h3 { margin-top: 14px; font-size: 17px; font-weight: 500; line-height: 1.35; }
.referral-paper p { margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.referral-paper .link-quiet { margin-top: 20px; }

/* How it works */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: stretch; }
.steps { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.step h3 { font-size: 16px; font-weight: 500; }
.step p { font-size: 14px; color: var(--ink-2); line-height: 1.6; max-width: 46ch; }
.steps-note { margin-top: 22px; font-size: 13px; color: var(--ink-3); }

/* Catalog */
.catalog-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 48px; padding: 36px 0 88px; }
.filters { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.filter-group { margin-bottom: 24px; }
.filter-label { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-bottom: 10px; }
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color 0.14s var(--ease), background-color 0.14s var(--ease);
}
.cat:hover { color: var(--ink); background: rgba(18, 18, 21, 0.04); }
.cat.active { color: var(--ink); font-weight: 500; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cat .count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cat.sub { padding-left: 24px; font-size: 13px; }
.cat.parent { margin-top: 4px; }

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  padding: 8px 4px;
}
.filter-check input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface) center / 12px 12px no-repeat;
  cursor: pointer;
  transition: background-color 0.14s var(--ease), border-color 0.14s var(--ease);
}
.filter-check input:hover { border-color: rgba(18, 18, 21, 0.4); }
.filter-check input:focus-visible { outline: none; border-color: var(--ink); }
.filter-check input:checked {
  background-color: var(--ink);
  border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.catalog-toolbar { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 200px; }
.search-box .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-box .input { padding-left: 38px; }

.sort { position: relative; flex: none; }
.sort-btn {
  height: 44px;
  min-width: 184px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s var(--ease);
}
.sort-btn:hover { border-color: rgba(18, 18, 21, 0.34); }
.sort-btn:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 18, 21, 0.06); }
.sort-btn .icon { color: var(--ink-3); transition: transform 0.16s var(--ease); }
.sort.open .sort-btn .icon { transform: rotate(180deg); }
.sort-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 100%;
  width: max-content;
  max-width: 260px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-float);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0s 0.15s;
}
.sort.open .sort-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0s 0s;
}
.sort-option {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 13px;
  color: var(--ink-2);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease);
}
.sort-option:hover,
.sort-option:focus-visible { outline: none; background: var(--surface-2); color: var(--ink); }
.sort-option.is-active { color: var(--ink); font-weight: 500; }

.catalog-count { font-size: 12px; color: var(--ink-3); margin-bottom: 12px; font-variant-numeric: tabular-nums; }

.catalog-rows:has(.product-row) {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.catalog-rows .product-row {
  grid-template-columns: 38px minmax(0, 1fr) auto 110px;
  min-height: 72px;
  animation: row-in 0.28s var(--ease) both;
}
.catalog-rows .product-row:nth-child(2) { animation-delay: 0.025s; }
.catalog-rows .product-row:nth-child(3) { animation-delay: 0.05s; }
.catalog-rows .product-row:nth-child(4) { animation-delay: 0.075s; }
.catalog-rows .product-row:nth-child(5) { animation-delay: 0.1s; }
.catalog-rows .product-row:nth-child(6) { animation-delay: 0.125s; }
@keyframes row-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.catalog-rows .product-sub { max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-rows .product-go { display: none; }

.empty-state {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 52px 32px;
  text-align: center;
  color: var(--ink-2);
  font-size: 14px;
}
.empty-state .btn { margin-top: 16px; }

.empty-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  gap: 12px;
  width: 100%;
  min-height: 260px;
}
.empty-duck {
  width: 136px;
  height: 136px;
  object-fit: contain;
}
.empty-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
}

/* Product Page */
.product-wrap { position: relative; }
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 56px;
  padding: 24px 0 88px;
  align-items: start;
}
.product-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.product-kicker .product-logo { width: 32px; height: 32px; border-radius: 8px; }
.product-cat { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.product-head h1 { font-size: clamp(28px, 3.8vw, 38px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.product-desc { margin-top: 18px; font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 60ch; }

.info-card {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0 24px;
}
.product-head + .info-card { margin-top: 32px; }
.spec-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--ink-3); }
.spec-row dd { color: var(--ink); }
.spec-row dd .mono { font-size: 13px; }
.card-head { display: flex; align-items: center; gap: 9px; padding: 18px 0 12px; color: var(--ink-3); }
.card-head h3 { font-size: 14px; font-weight: 500; color: var(--ink); }
.card-head .icon { width: 16px; height: 16px; }
.discount-table { border-top: 1px solid var(--line-soft); }
.discount-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-2); }
.discount-row:last-child { border-bottom: 0; }
.discount-row .mono { color: var(--ok); font-weight: 500; }

.help-steps { list-style: none; margin: 0; padding: 4px 0 18px; counter-reset: help-step; }
.help-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  counter-increment: help-step;
}
.step-num {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.step-num::before { content: counter(help-step); }

.buy-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.buy-top { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.buy-price { font-size: 32px; font-weight: 500; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.buy-stock { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.buy-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; font-size: 13px; color: var(--ink-2); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--surface); transition: border-color 0.15s var(--ease); }
.qty button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; transition: background-color 0.12s var(--ease), color 0.12s var(--ease); }
.qty button:hover { background: var(--surface-2); color: var(--ink); }
.qty button:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.qty input { width: 46px; height: 36px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: none; text-align: center; font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus-visible, .qty button:focus-visible { outline: none; }
.qty button:focus-visible { background: var(--surface-2); color: var(--ink); }
.qty:has(input:focus-visible) { border-color: var(--ink); }

.buy-lines { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.buy-line { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ink-2); padding: 4px 0; }
.buy-line .mono { color: var(--ink); font-size: 12px; }
.buy-line.discount { color: var(--ok); }
.buy-line.discount .mono { color: var(--ok); }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.buy-total .mono { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.buy-note { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 14px; text-align: center; }
.buy-panel .mono { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-weight: 500; }
.buy-panel .btn { margin-top: 4px; }

.related { border-top: 1px solid var(--line); }
.related .product-row { grid-template-columns: 38px minmax(0, 1fr) auto 110px; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; padding: 36px 0 88px; align-items: start; }
.checkout-form h2 { font-size: 18px; font-weight: 500; margin-bottom: 16px; }
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.14s var(--ease), box-shadow 0.14s var(--ease);
}
.pay-option:hover { border-color: var(--line-strong); }
.pay-option input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.pay-option .po-main { flex: 1; display: flex; flex-direction: column; }
.pay-option .po-title { font-size: 14px; font-weight: 500; }
.pay-option .po-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pay-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.checkout-side { position: sticky; top: calc(var(--header-h) + 24px); }

.receipt {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.receipt-item { padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.receipt-item .ri-name { font-size: 15px; font-weight: 500; }
.receipt-item .ri-meta { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.receipt-lines { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.rl { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: 13px; color: var(--ink-2); }
.rl .mono { font-size: 12px; color: var(--ink); }
.rl.discount, .rl.discount .mono { color: var(--ok); }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.receipt-total .label { font-size: 13px; color: var(--ink-3); }
.receipt-total .mono { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }

.checkout-side .btn { margin-top: 16px; }
.checkout-note { margin-top: 14px; font-size: 12px; color: var(--ink-3); line-height: 1.55; }

/* Panels, Tables & Status Badges */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.panel:has(.dropdown) { overflow: visible; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line-soft); }
.panel-head h2 { font-size: 15px; font-weight: 500; }
.panel-head .mono { font-size: 12px; color: var(--ink-3); }
.panel-body { padding: 24px; }

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 14px 24px; border-bottom: 1px solid var(--line-soft); font-size: 13px; vertical-align: middle; }
.table td.num { white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tr.row-link { cursor: pointer; transition: background-color 0.13s var(--ease); }
.table tr.row-link:hover { background: rgba(18, 18, 21, 0.024); }
.table .num { font-size: 13px; font-variant-numeric: tabular-nums; }
.table .name { font-weight: 500; }
.table .arrow-cell { width: 40px; color: var(--ink-3); text-align: right; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--ink-2);
}
.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.status.delivered { background: var(--ok-soft); color: var(--ok); }
.status.pending,
.status.awaiting_data,
.status.processing { background: var(--warn-soft); color: var(--warn); }
.status.open,
.status.answered { background: var(--info-soft); color: var(--info); }
.status.cancelled,
.status.rejected { background: var(--bad-soft); color: var(--bad); }
.status.closed { background: var(--surface-2); color: var(--ink-3); }

/* Profile */
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding: 36px 0 88px; align-items: start; }
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px 20px; min-width: 0; }
.stat-card dt { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card dd { margin-top: 10px; display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.015em; line-height: 1.1; white-space: nowrap; }

.aside-stack { display: flex; flex-direction: column; gap: 16px; }
.aside-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.aside-block h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.aside-block .aside-note { font-size: 12px; color: var(--ink-3); line-height: 1.55; margin-bottom: 14px; }
.aside-total { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-2); }
.aside-total b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font-family: var(--font-mono); font-size: 12px; min-width: 0; }
.copy-row .btn { flex: none; height: 44px; }
.referral-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.referral-stats dt { font-size: 12px; color: var(--ink-3); }
.referral-stats dd { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 3px; }
.promo-result { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.promo-result.ok { color: var(--ok); }
.promo-result.err { color: var(--bad); }

.small-note { font-size: 12px; color: var(--ink-3); line-height: 1.55; }

/* Order Detail */
.order-wrap { max-width: 680px; margin: 0 auto; padding: 48px 0 88px; }
.order-stage { display: flex; align-items: center; gap: 0; margin: 26px 0 32px; }
.stage { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.stage .sd { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.stage.done { color: var(--ink-2); }
.stage.done .sd { background: var(--ink); }
.stage.current { color: var(--ink); font-weight: 500; }
.stage.current .sd { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.stage-line { flex: 1; height: 1px; background: var(--line); margin: 0 14px; min-width: 16px; }

.delivery-box {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}
.delivery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.item-list { list-style: none; margin: 0; padding: 0; }
.item-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); transition: background-color 0.12s var(--ease); }
.item-row:hover { background: rgba(18, 18, 21, 0.018); }
.item-row:last-child { border-bottom: 0; }
.item-row .code { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; flex: 1; overflow-wrap: anywhere; white-space: pre-wrap; }
.copy-btn { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 4px; border-radius: 6px; transition: color 0.12s var(--ease), background-color 0.12s var(--ease); flex: none; }
.copy-btn:hover { color: var(--ink); background: var(--surface-2); }

.order-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.order-actions .btn-primary { flex: 1; }
.order-actions .input { flex: 1 1 220px; }
.order-data-form { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.order-data-form h3 { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.order-data-form .small-note { margin-bottom: 12px; }

.form-panel { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); padding: 26px; }
.form-panel h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.form-panel .small-note { margin-bottom: 16px; }
.form-panel .form-note { margin-bottom: 14px; }

/* Support & Tickets */
.support-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 48px; padding: 36px 0 88px; align-items: start; }
.support-form-panel { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); padding: 26px; }
.support-form-panel h2 { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.support-form-panel .small-note { margin-bottom: 18px; }
.ticket-list { border-top: 1px solid var(--line); }
.ticket-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 96px; gap: 16px; align-items: center; padding: 16px 8px; border-bottom: 1px solid var(--line-soft); transition: background-color 0.13s var(--ease); }
.ticket-row:hover { background: rgba(18, 18, 21, 0.024); }
.ticket-row .tid { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.ticket-row .tname { font-size: 14px; font-weight: 500; }
.ticket-row .tmeta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.ticket-row .tdate { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); text-align: right; }

.thread { max-width: 760px; margin: 0 auto; padding: 20px 0 88px; }
.thread-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.thread-head h1 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.thread-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.messages { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
.message {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.message.support {
  border-color: rgba(43, 68, 184, 0.2);
  border-left: 3px solid var(--accent);
}
.message-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.message-author { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.message.support .message-author { color: var(--accent-deep); font-weight: 500; }
.message-body { font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.reply-form { margin-top: 24px; }
.reply-form .textarea { min-height: 100px; }

/* Docs & 404 */
.doc { max-width: 700px; margin: 0 auto; padding: 56px 0 96px; }
.doc h1 { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.doc .doc-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.doc h2 { font-size: 18px; font-weight: 500; margin: 32px 0 10px; letter-spacing: -0.01em; }
.doc p { font-size: 15px; line-height: 1.75; color: var(--ink-2); margin: 0 0 12px; }
.doc-back { margin-bottom: 24px; }
.doc-back .link-quiet:hover svg { transform: translateX(-2px); }

.not-found {
  display: flex;
  justify-content: center;
  padding: 112px 0 128px;
}
.nf-copy { max-width: 440px; text-align: center; }
.nf-code { font-size: 13px; color: var(--ink-3); letter-spacing: 0.04em; }
.not-found h1 { margin-top: 12px; font-size: clamp(28px, 4vw, 38px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.nf-lede { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.nf-actions { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }

/* Auth & Gate */
.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  min-height: calc(100vh - var(--header-h));
}
.auth-main { display: flex; align-items: center; justify-content: center; padding: 64px 32px; }
.auth-card { width: 100%; max-width: 380px; }
.gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-card h1 { font-size: 32px; font-weight: 500; letter-spacing: -0.025em; margin-bottom: 6px; line-height: 1.1; }
.auth-sub { font-size: 14px; color: var(--ink-2); margin-bottom: 28px; }
.auth-alt { margin-top: 22px; font-size: 13px; color: var(--ink-2); }
.auth-alt a { border-bottom: 1px solid var(--line-strong); margin-left: 5px; color: var(--ink); }
.auth-alt a:hover { border-color: var(--ink); }
.auth-side {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin: 36px 36px 36px 0;
  position: relative;
  overflow: hidden;
}
.auth-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gate-page .auth-wrap { min-height: 100vh; }

/* Checkout extras */
.bonus-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 24px; }
.bonus-row .check { margin: 0; }
.bonus-row .mono { font-size: 12px; color: var(--ink-2); }
.pay-note { margin-top: 16px; display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.pay-note .icon { margin-top: 2px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 12px; font-size: 13px; color: var(--ink-3); max-width: 30ch; line-height: 1.6; }
.footer-col h3 { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-bottom: 12px; }
.footer-col a {
  display: block;
  width: fit-content;
  position: relative;
  font-size: 13px;
  color: var(--ink-2);
  padding: 5px 0;
  transition: color 0.13s var(--ease);
}
.footer-col a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s var(--ease);
}
.footer-col a:hover { color: var(--ink); }
.footer-col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-col a .icon { display: inline-block; width: 12px; height: 12px; margin-left: 5px; position: relative; top: 1px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

/* Toast */
.toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 80;
  background: var(--ink);
  color: var(--surface);
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13px;
  max-width: 340px;
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Command Palette */
.cmdk {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: start center;
  padding: max(12vh, 72px) 16px 16px;
}
.cmdk-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 21, 0.28);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.18s var(--ease);
}
.cmdk-panel {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.99);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.cmdk.open .cmdk-backdrop { opacity: 1; }
.cmdk.open .cmdk-panel { opacity: 1; transform: none; }
.cmdk-search { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.cmdk-search .icon { width: 18px; height: 18px; }
.cmdk-search input {
  flex: 1;
  min-width: 0;
  height: 26px;
  padding: 0;
  border: 0;
  outline: none;
  background: none;
  font-size: 16px;
  color: var(--ink);
}
.cmdk-search input::placeholder { color: var(--ink-3); }
.cmdk-results { max-height: min(56vh, 420px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.cmdk-group { padding: 10px 10px 4px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}
.cmdk-item.is-active { background: var(--surface-2); }
.cmdk-item .ci-logo { width: 26px; height: 26px; border-radius: 6px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); flex: none; }
.cmdk-item .ci-logo .brand-logo { width: 14px; height: 14px; }
.cmdk-item .ci-icon { width: 26px; display: inline-flex; justify-content: center; color: var(--ink-3); flex: none; }
.cmdk-item .ci-main { flex: 1; min-width: 0; }
.cmdk-item .ci-name { display: block; font-size: 14px; font-weight: 500; }
.cmdk-item .ci-sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item .ci-price { font-size: 13px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmdk-item > .icon { width: 14px; height: 14px; color: var(--ink-3); }
.cmdk-empty { padding: 32px 16px; text-align: center; font-size: 13px; color: var(--ink-3); }
.cmdk-foot { display: flex; align-items: center; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-3); }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 4px; }

/* Skeletons & Helpers */
.skeleton {
  background: linear-gradient(100deg, var(--line-soft) 30%, rgba(18, 18, 21, 0.045) 45%, var(--line-soft) 60%);
  background-size: 300% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: 4px;
  height: 12px;
  display: inline-block;
  vertical-align: middle;
}
@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
.sk-name { width: 240px; max-width: 60%; }
.sk-sub { width: 150px; max-width: 40%; height: 10px; margin-top: 7px; }
.sk-stock { width: 54px; }
.sk-price { width: 56px; }
.sk-full { width: 100%; }
.mt-24 { margin-top: 24px; }
.section-lead { font-size: 13px; color: var(--ink-2); margin-bottom: 16px; }

/* Admin */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 36px 0 88px; }
.admin-order { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); padding: 20px; }
.admin-order + .admin-order { margin-top: 0; }
.admin-order-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.admin-order-head h3 { font-size: 15px; font-weight: 500; }
.admin-order .meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); padding: 12px 0; }
.admin-order .meta .mono { font-size: 12px; color: var(--ink-3); }
.admin-order .data { padding: 12px; border: 1px solid var(--line-soft); background: var(--paper); border-radius: 8px; font-family: var(--font-mono); font-size: 12px; white-space: pre-wrap; word-break: break-word; margin-bottom: 12px; }
.admin-order form { display: flex; gap: 8px; align-items: center; }
.admin-order form .input { flex: 1 1 0%; width: auto; height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.admin-order-btns { display: flex; gap: 8px; flex: none; }
.admin-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.admin-reject-form { margin-top: 10px; }
.admin-list { display: grid; gap: 16px; }
.admin-ticket { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.admin-ticket:last-child { border-bottom: 0; }
.admin-ticket .t-main { min-width: 0; }
.admin-ticket .t-main a { font-weight: 500; }
.admin-ticket .t-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

.catalog-table-wrap { overflow-x: auto; }
.catalog-table { min-width: 640px; }
.catalog-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.catalog-actions .btn { flex: none; }
.catalog-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.catalog-cat-group { border-bottom: 1px solid var(--line-soft); }
.catalog-cat-group:last-child { border-bottom: 0; }
.catalog-cat-row,
.catalog-subcat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.catalog-cat-row { padding: 13px 0; }
.catalog-subcat { padding: 8px 0; }
.catalog-cat-main { min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.catalog-cat-main .name { font-weight: 500; }
.catalog-cat-main .t-sub { font-size: 12px; color: var(--ink-3); }
.catalog-cat-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.catalog-subcats {
  margin: 0 0 12px 10px;
  padding-left: 16px;
  border-left: 1.5px solid var(--line);
  display: flex;
  flex-direction: column;
}
.catalog-sub-form {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 0 4px;
  flex-wrap: wrap;
}
.catalog-sub-form .input { flex: 1 1 200px; width: auto; height: 34px; font-size: 13px; border-radius: 8px; }
.catalog-cat-form { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.catalog-cat-form .input { flex: 1 1 220px; width: auto; }
.catalog-cat-form .btn { flex: none; }

/* Responsive: Tablet */
@media (max-width: 1080px) {
  .hero-inner { gap: 40px; }
  .buy-panel { position: static; }
  .product-layout { grid-template-columns: minmax(0, 1fr) 350px; gap: 40px; }
  .two-col { grid-template-columns: 1fr 330px; gap: 36px; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
  .showcase { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .how-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 36px; }
  .auth-side { margin: 24px 24px 24px 0; }
}

@media (max-width: 920px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .header-account { gap: 10px; }
  .header-account .balance { display: none; }
  .header-search { width: 36px; padding: 0; justify-content: center; }
  .header-search span, .header-search kbd { display: none; }

  .hero .hero-inner { grid-template-columns: 1fr; min-height: 0; padding: 48px 32px 60px; gap: 36px; }
  .hero-copy { max-width: 620px; }
  .hero-visual { height: 460px; max-width: 560px; width: 100%; margin: 4px auto 0; }

  .showcase { grid-template-columns: 1fr; gap: 24px; }
  .banner-showcase { min-height: 0; height: 260px; }
  .how-grid { grid-template-columns: 1fr; gap: 24px; }
  .banner-how { min-height: 0; height: 280px; }

  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .product-layout .buy-panel { max-width: 480px; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .arrivals-grid .referral-paper { max-width: 480px; }
  .checkout-layout { grid-template-columns: 1fr; gap: 32px; }
  .checkout-side { position: static; max-width: 480px; }
  .auth-side { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }

  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
  .filters { position: static; }
  .filter-group { margin-bottom: 12px; }
  .cat-list {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: none;
  }
  .cat-list::-webkit-scrollbar { display: none; }
  .cat {
    flex: none;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    white-space: nowrap;
    gap: 6px;
  }
  .cat.active {
    background: var(--ink);
    color: var(--surface);
    border-color: var(--ink);
    box-shadow: none;
  }
  .cat.active .count { color: rgba(255, 255, 255, 0.72); }
  .cat.sub { padding-left: 14px; }
  .cat.parent { margin-top: 0; }
  .filter-check { margin-top: 4px; }

  .profile-layout { grid-template-columns: 1fr; gap: 28px; }
  .support-layout { grid-template-columns: 1fr; gap: 32px; }
  .support-form-panel { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Responsive: Mobile */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .cmdk { padding: 10px; place-items: start center; }
  .cmdk-panel { max-height: calc(100vh - 20px); }
  .cmdk-results { max-height: calc(100vh - 190px); }
  .cmdk-foot { gap: 12px; }

  .header-inner { gap: 12px; }
  .header-account .btn-outline { display: none; }

  .hero .hero-inner { padding: 40px 20px 52px; gap: 28px; }
  .hero h1 { font-size: clamp(32px, 8.8vw, 42px); }
  .hero .lede { font-size: 15px; }
  .hero-visual { height: 400px; }
  .banner-showcase { height: 220px; }
  .banner-how { height: 240px; }
  .referral-photo { height: 150px; }
  .step { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }

  .section { padding: 52px 0; }
  .section-head { gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }

  .product-row,
  .catalog-rows .product-row,
  .related .product-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    grid-template-areas:
      "logo main price"
      "logo main stock";
    gap: 2px 12px;
    padding: 14px 16px;
    min-height: 64px;
  }
  .product-logo { grid-area: logo; width: 32px; height: 32px; border-radius: 8px; }
  .product-main { grid-area: main; }
  .product-price { grid-area: price; font-size: 14px; align-self: end; }
  .product-stock { grid-area: stock; font-size: 11px; align-self: start; justify-self: end; }
  .product-go { display: none; }
  .catalog-rows .product-sub { white-space: nowrap; max-width: 100%; }

  .catalog-toolbar .search-box { flex-basis: 100%; }
  .catalog-toolbar .sort { width: 100%; }
  .catalog-toolbar .sort-btn { width: 100%; }
  .catalog-toolbar .sort-menu { right: auto; left: 0; width: 100%; max-width: none; }

  .stat-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; padding: 36px 0 24px; }
  .page-head.page-head-with-crumbs { padding-top: 16px; }
  .page-head-side { text-align: left; }

  .table th:nth-child(2), .table td:nth-child(2) { display: none; }
  .table th, .table td { padding: 12px 10px; font-size: 12px; }
  .table td:first-child { white-space: nowrap; }
  .table td.name { overflow-wrap: anywhere; }
  .profile-layout .table th:nth-child(4), .profile-layout .table td:nth-child(4),
  .orders-body .table th:nth-child(4), .orders-body .table td:nth-child(4) { display: none; }
  .table th:nth-child(1), .table td:nth-child(1) { padding-left: 16px; }
  .table th:last-child, .table td:last-child { padding-right: 16px; }

  .ticket-row { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 14px 4px; }
  .ticket-row .tdate { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .order-stage { flex-wrap: wrap; row-gap: 8px; }
  .stage-line { min-width: 12px; }
  .order-actions { flex-direction: column; }
  .admin-order form { flex-direction: column; align-items: stretch; }
  .admin-order form .input { flex: none; width: 100%; }
  .qty input { width: 40px; }
  .info-card { padding: 0 18px; }
  .spec-row { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; font-size: 13px; }
  .receipt, .buy-panel, .form-panel, .aside-block, .support-form-panel { padding: 20px 18px; }
  .auth-main { padding: 40px 20px; }
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

@media (max-width: 440px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 15px; }
  .header-account { gap: 6px; }
  .header-account .header-login { font-size: 13px; padding: 6px 2px; }
  .account-btn { padding: 0 8px 0 4px; gap: 6px; }
  .account-btn > span:not(.account-avatar) {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .menu-btn { padding: 0 10px; }
}

@media (max-width: 380px) {
  .account-btn > span:not(.account-avatar) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .skeleton { animation: none; background: var(--line-soft); }
  .hero-copy h1, .hero .lede, .hero-actions, .hero-visual { animation: none; }
  .catalog-rows .product-row { animation: none; }
  ::view-transition-group(root) { animation: none; }
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 0.16s; }
::view-transition-new(root) { animation-duration: 0.2s; }

.bot-launch-box {
  padding: 14px 16px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.bot-launch-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.turnstile-wrap {
  margin-bottom: 20px;
  min-height: 65px;
}
.auth-step-note {
  padding: 12px 14px;
  margin: 0 0 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}
.auth-code-input {
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 0.28em;
  text-align: center;
}
.auth-step-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.link {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.link:hover {
  border-color: var(--ink);
}
