/* ==========================================================================
   Дизайн-система «Рядом»: светлый деловой интерфейс, один акцентный цвет.
   Токены → базовые элементы → компоненты → раскладки → адаптив.
   Никаких градиентов, тяжёлых теней и «дизайнерских» контролов: нативные поля,
   кнопки, таблицы. Контраст текста — не ниже WCAG AA.
   ========================================================================== */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e6e9f2;
  --line-strong: #d6dbe8;
  --ink: #0f172a;
  --ink-2: #475569;
  --muted: #7c8798;
  --accent: #4f5dff;
  --accent-ink: #ffffff;
  --accent-soft: #eef0ff;
  --accent-deep: #3a47d6;
  --success: #0f9d63;
  --warning: #b7791f;
  --danger: #dc2626;
  --warning-soft: #fff7e6;
  --danger-soft: #fdecec;
  --success-soft: #e8f8f1;
  --violet: #7c3aed;
  --violet-soft: #f3edff;
  --sky: #0ea5e9;
  --sky-soft: #e8f6fe;
  --hot: #f43f5e;
  --hot-soft: #ffe9ee;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 24px -12px rgba(15, 23, 42, .18);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 28px;
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--font);
}

h1, h2, h3, h4 { margin: 0 0 var(--space-3); line-height: 1.25; color: var(--ink); }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0 0 var(--space-3); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
.page { padding: var(--space-5) 0 var(--space-6); }
.stack > * + * { margin-top: var(--space-4); }
.row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.mt-4 { margin-top: var(--space-4); }
.mb-0 { margin-bottom: 0; }

.skip-link {
  position: absolute; left: -9999px; top: var(--space-2); z-index: 100;
  background: var(--surface); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--space-4); }

/* ---------- шапка и подвал ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__bar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: var(--space-4); padding: 12px 0;
}
.brand { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; font-size: 17px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.brand__tagline { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); letter-spacing: .01em; }

.site-nav { display: flex; gap: var(--space-1); align-items: center; flex-wrap: nowrap; overflow-x: auto; padding: 4px 0; }
.site-nav a {
  display: inline-block; padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.site-nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.site-header__nav { border-top: 1px solid var(--line); }
.site-nav-row { display: flex; align-items: center; gap: var(--space-4); }
.header-search { flex: 0 1 320px; min-width: 0; margin-left: auto; }
.header-search input { width: 100%; }
.header-actions { display: flex; gap: var(--space-2); align-items: center; }
.header-user { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 13.5px; color: var(--ink-2); }

.site-footer { margin-top: var(--space-6); background: var(--surface); border-top: 1px solid var(--line); padding: var(--space-5) 0; }
.site-footer__grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); }
.site-footer__legal { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 8px 14px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: none; transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: #2c4cad; text-decoration: none; }
.btn:active { background: #24408f; }
.btn--secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn--secondary:hover { background: var(--surface-2); }
.btn--ghost { background: transparent; color: var(--accent); border-color: transparent; }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--danger { background: var(--danger); }
.btn--danger:hover { background: #92201a; }
.btn--sm { min-height: 32px; padding: 5px 10px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------- формы ---------- */
label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
input, select, textarea {
  width: 100%; min-height: 38px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid rgba(53, 89, 199, .18); outline-offset: 0; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
.field { display: grid; gap: 6px; }
.field--check { display: flex; align-items: center; gap: var(--space-2); font-weight: 500; }
.form-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-grid--narrow { grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); }
.form-error { color: var(--danger); font-size: 12.5px; font-weight: 500; }
.form-hint { color: var(--muted); font-size: 12.5px; font-weight: 400; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); margin: 0; }
legend { padding: 0 var(--space-2); font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

/* ---------- карточки и панели ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.panel--tight { padding: var(--space-4); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.panel__head h2, .panel__head h3 { margin: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.card:hover { border-color: var(--line-strong); }
.card__body { padding: var(--space-3) var(--space-4) var(--space-4); }
.card__media { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: 22px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__title { font-size: 14.5px; margin: 0 0 6px; line-height: 1.35; }
.card__price { font-size: 17px; font-weight: 700; }
.card__old { color: var(--muted); text-decoration: line-through; font-size: 13px; margin-left: 6px; font-weight: 500; }

.grid { display: grid; gap: var(--space-4); }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid--categories { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.grid--stores { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--kpi { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- таблицы ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfd; }
td .row { gap: var(--space-2); }
.table-empty { padding: var(--space-5); text-align: center; color: var(--muted); }

/* ---------- бейджи, оповещения, пустые состояния ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--accent { background: var(--accent-soft); color: var(--accent); }

.alert { padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.alert--success { border-color: #b8e0ca; background: var(--success-soft); color: var(--success); }
.alert--error { border-color: #f2c4c0; background: var(--danger-soft); color: var(--danger); }
.alert--info { border-color: #c9d6f6; background: var(--accent-soft); color: #24408f; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

.empty-state { padding: var(--space-6) var(--space-4); text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.empty-state h3 { color: var(--ink); }

/* ---------- хлебные крошки, заголовки страниц ---------- */
.breadcrumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: var(--space-3); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span::after { content: "›"; margin-left: 6px; color: var(--line-strong); }
.breadcrumbs > :last-child::after { content: ""; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-4); }
.page-head h1 { margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- фильтры каталога ---------- */
.catalog-layout { display: grid; gap: var(--space-5); grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
.sidebar-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); }
.sidebar-panel h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: var(--space-3); }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-list a { display: block; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 14px; }
.cat-list a:hover { background: var(--surface-2); text-decoration: none; }
.cat-list a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.cat-list ul { list-style: none; margin: 0; padding-left: var(--space-4); display: grid; gap: 1px; }
.cat-list ul a { font-size: 13px; padding: 5px 8px; }
.toolbar { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; margin-bottom: var(--space-4); }
.toolbar form { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.toolbar input[type="search"] { min-width: 220px; }

/* ---------- пагинация ---------- */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: var(--space-5); padding: 0; list-style: none; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-2); font-size: 13.5px;
}
.pagination a:hover { background: var(--surface-2); text-decoration: none; }
.pagination .is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pagination .is-disabled { opacity: .5; }

/* ---------- блоки главной ---------- */
.hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-6); }
.hero h1 { font-size: 32px; max-width: 720px; }
.hero p { color: var(--ink-2); max-width: 640px; font-size: 16px; }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); }
.block-text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); }
.block-text h2 { margin-top: 0; }
.block-banner { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.block-banner img { width: 100%; }
.section { margin-top: var(--space-6); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.section__head h2 { margin: 0; }

/* ---------- кабинеты ---------- */
.panel-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.panel-side { background: var(--surface); border-right: 1px solid var(--line); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; }
.panel-side__brand { font-weight: 700; font-size: 15px; }
.panel-nav { display: grid; gap: var(--space-3); }
.panel-nav__group { display: grid; gap: 2px; }
.panel-nav__title { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 10px; margin-bottom: 2px; }
.panel-nav__title:not(:first-child) { margin-top: var(--space-2); }
.panel-nav a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 14px; line-height: 1.25; }
.panel-nav a:hover { background: var(--surface-2); text-decoration: none; }
.panel-nav a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.panel-main { min-width: 0; display: flex; flex-direction: column; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 10px var(--space-5); background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
.panel-crumbs { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); min-width: 0; }
.panel-crumbs__group { color: var(--muted); white-space: nowrap; }
.panel-crumbs__sep { color: var(--muted); }
.panel-crumbs__page { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-content { padding: var(--space-5); }
.panel-user { display: flex; align-items: center; gap: var(--space-3); font-size: 13.5px; color: var(--ink-2); }

.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); }
.kpi__label { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.kpi__value { font-size: 26px; font-weight: 700; margin-top: 6px; }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: var(--space-5) var(--space-4); background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 22px; }
.auth-links { margin-top: var(--space-4); font-size: 13.5px; color: var(--muted); display: flex; gap: var(--space-3); flex-wrap: wrap; }

.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 15px; height: 15px; }

.price-lg { font-size: 28px; font-weight: 700; }
.product-layout { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.product-media { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: 28px; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .panel-layout { grid-template-columns: 200px minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .catalog-layout, .product-layout { grid-template-columns: minmax(0, 1fr); }
  .site-header__bar { grid-template-columns: minmax(0, 1fr) auto; }
  .site-nav-row { flex-wrap: wrap; padding: 6px 0; }
  .header-search { flex: 1 1 100%; margin-left: 0; }
  .panel-layout { grid-template-columns: minmax(0, 1fr); }
  .panel-side { border-right: 0; border-bottom: 1px solid var(--line); position: static; max-height: none; }
  .panel-nav { grid-auto-flow: row; overflow-x: visible; }
  .panel-nav__group { gap: 2px; }
  .panel-content { padding: var(--space-4); }
}

@media (max-width: 560px) {
  h1 { font-size: 23px; }
  .hero { padding: var(--space-5) var(--space-4); }
  .hero h1 { font-size: 25px; }
  .grid--products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .toolbar form { width: 100%; }
  .toolbar input[type="search"] { min-width: 0; flex: 1 1 100%; }
  .panel { padding: var(--space-4); }
  .page { padding: var(--space-4) 0 var(--space-5); }
}

/* ---------- компоненты страниц ---------- */
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.h2 { font-size: 22px; }
.h3 { font-size: 17px; }

.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

.split { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-5); align-items: start; }

.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14px; }
.link-list > li > a { display: block; padding: 6px 8px; border-radius: var(--radius-sm); color: var(--ink-2); }
.link-list > li > a:hover { background: var(--surface-2); text-decoration: none; }
.link-list > li > a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.link-list ul { list-style: none; margin: 0; padding: 0 0 0 12px; display: grid; gap: 1px; font-size: 13.5px; }
.link-list ul a { display: block; padding: 4px 8px; border-radius: var(--radius-sm); color: var(--muted); }
.link-list ul a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.link-list ul a.is-active { color: var(--accent); font-weight: 600; }

.tile { display: grid; gap: 4px; padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.tile:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); text-decoration: none; }
.tile__title { font-weight: 600; font-size: 15px; }

.checkbox { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; }
.checkbox input { width: 16px; height: 16px; }

.specs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px var(--space-4); margin: 0; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

.stat { display: grid; gap: 4px; padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); justify-items: start; }
.stat__value { font-size: 26px; font-weight: 700; line-height: 1.1; }
.stat__label { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

.badge--pending { background: var(--warning-soft); color: var(--warning); }
.badge--active { background: var(--success-soft); color: var(--success); }
.badge--blocked { background: var(--danger-soft); color: var(--danger); }

.prose { max-width: 72ch; line-height: 1.6; }
.prose h2, .prose h3 { margin-top: var(--space-4); }

.hero { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.hero__lead { margin-bottom: var(--space-4); }
.hero__stats { display: grid; gap: var(--space-3); grid-auto-flow: column; grid-auto-columns: minmax(96px, auto); }
.hero__stat { display: grid; gap: 2px; padding: var(--space-3) var(--space-4); background: var(--surface-2); border-radius: var(--radius); }
.hero__stat-value { font-size: 22px; font-weight: 700; }

.banner { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.banner img { width: 100%; }

.product { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.product__media { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__placeholder { font-size: 56px; font-weight: 700; color: var(--accent); }
.product__price { font-size: 28px; font-weight: 700; display: flex; align-items: baseline; gap: var(--space-3); }

.store-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.store-head__contacts { display: grid; gap: 6px; font-size: 14px; }
.store-head__contacts .row { gap: 8px; }

@media (max-width: 1024px) {
  .split { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .split, .product, .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__stats { grid-auto-flow: row; grid-auto-columns: auto; }
}

@media (max-width: 560px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .product__price { font-size: 24px; }
}
.row--center { justify-content: center; }
/* ---------- корзина и заказы ---------- */
.split--wide { grid-template-columns: minmax(0, 1fr) 300px; }

.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--space-4); margin: 0; font-size: 14px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; white-space: nowrap; }
.totals__sum { font-size: 18px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; }

.qty { width: 72px; min-height: 34px; padding: 4px 8px; }

.badge--order-new { background: var(--accent-soft); color: var(--accent); }
.badge--order-confirmed { background: #e6f0ff; color: #24408f; }
.badge--order-assembling { background: var(--warning-soft); color: var(--warning); }
.badge--order-delivering { background: #eae7ff; color: #4a3ab8; }
.badge--order-done { background: var(--success-soft); color: var(--success); }
.badge--order-cancelled { background: var(--surface-2); color: var(--muted); }

@media (max-width: 1024px) {
  .split--wide { grid-template-columns: minmax(0, 1fr); }
}
.row--end { align-items: end; }

/* ---------- галерея товара ---------- */
.gallery { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gallery__item { margin: 0; display: grid; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
/* ---------- реклама ---------- */
.ad-banner { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.ad-banner img { width: 100%; }
.ad-banner__label {
  position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 999px;
  background: rgba(15, 23, 42, .65); color: #fff; font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
}
.ad-preview img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.ads-products .section__head h2 { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

.steps { display: flex; gap: var(--space-2); list-style: none; margin: 0 0 var(--space-4); padding: 0; flex-wrap: wrap; }
.step { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; font-weight: 600; }
.step a { color: inherit; }
.step.is-active { background: var(--accent); color: var(--accent-ink); }
.step.is-active a { color: var(--accent-ink); }

.badge--ad-draft { background: var(--surface-2); color: var(--muted); }
.badge--ad-pending { background: var(--warning-soft); color: var(--warning); }
.badge--ad-active { background: var(--success-soft); color: var(--success); }
.badge--ad-rejected { background: var(--danger-soft); color: var(--danger); }
.badge--ad-finished { background: var(--surface-2); color: var(--ink-2); }
/* ---------- чек-лист и прогресс ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist__item { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.checklist__item .small { margin-left: auto; }
.checklist__mark { width: 18px; color: var(--muted); }
.checklist__item.is-done { color: var(--ink-2); }
.checklist__item.is-done .checklist__mark { color: var(--success); }
.progress { width: 100%; height: 8px; accent-color: var(--accent); }
.steps-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
/* Превью изображений в админке */
.thumb {
    display: block;
    width: 140px;
    height: auto;
    max-height: 110px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    margin-bottom: 6px;
}

.thumb--sm {
    display: inline-block;
    width: 56px;
    height: 42px;
    margin: 0 8px 0 0;
    vertical-align: middle;
    border-radius: 6px;
    object-fit: cover;
}
/* ---------- отчёты и рейтинги ---------- */
.stat-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.right { text-align: right; }

.input--sm {
    width: 110px;
    padding: 5px 8px;
    font-size: 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: inherit;
}

/* Способы получения в карточке магазина */
.store-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.stars__item {
    color: var(--line, #d8dee9);
    font-size: 15px;
    line-height: 1;
}

.stars__item.is-on { color: #f0a52a; }

.stars__meta {
    margin-left: 6px;
    font-size: 13px;
    color: var(--muted);
}
/* ==========================================================================
   Оформление публичной части: мягче геометрия, спокойные акценты.
   Стили админки не затрагиваются — они ниже и ограничены body.panel-body.
   ========================================================================== */
:root {
  --pistachio: #edf6e2;
  --pistachio-ink: #4a682c;
  --pistachio-line: #d5e8c0;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 55, .05);
  --shadow-md: 0 10px 26px -14px rgba(20, 30, 55, .22);
}

body.theme-public { font-size: 15.5px; line-height: 1.6; }
.theme-public h1 { font-size: 30px; letter-spacing: -.015em; }
.theme-public h2 { font-size: 21px; letter-spacing: -.01em; }
.theme-public .section__head { align-items: center; margin-bottom: var(--space-3); }
.theme-public .section__head h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.theme-public .section__head h2::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); display: inline-block;
}

.theme-public .site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 rgba(20, 30, 55, .06);
}
.theme-public .site-header__bar { padding: 10px 0; }
.theme-public .site-header__nav { border-top-color: var(--line); }
.theme-public .brand { font-size: 17.5px; }
.theme-public .brand__mark { border-radius: 10px; box-shadow: 0 3px 8px -3px rgba(53, 89, 199, .55); }
.theme-public .site-nav a { border-radius: 999px; padding: 6px 12px; }
.theme-public .header-search input {
  border-radius: 999px; background: var(--surface-2); border-color: transparent; padding-left: 14px;
}
.theme-public .header-search input:focus { background: var(--surface); border-color: var(--accent); }

.theme-public .btn { border-radius: 10px; transition: background .16s ease, box-shadow .16s ease, transform .06s ease; }
.theme-public .btn:hover { box-shadow: 0 6px 16px -8px rgba(53, 89, 199, .55); }
.theme-public .btn:active { transform: translateY(1px); }
.theme-public .badge { border-radius: 999px; }

.theme-public .card { border-radius: 14px; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.theme-public .card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.theme-public .card__body { padding: 14px 14px 16px; }
.theme-public .card__title { font-size: 15px; }
.theme-public .card__price { font-size: 18px; }
.theme-public .card__media { background: var(--surface-2); }

.theme-public .hero { border-radius: 18px; padding: var(--space-6); }
.theme-public .hero h1 { font-size: clamp(26px, 3vw, 36px); }
.theme-public .hero__stat { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.theme-public .product__media,
.theme-public .product-media { border-radius: 16px; }

.theme-public .site-footer { border-top: 1px solid var(--line); }
.theme-public .site-footer a:hover { color: var(--accent); }

.theme-public .toolbar { gap: 10px; margin-bottom: var(--space-4); }
.theme-public .toolbar input,
.theme-public .toolbar select { width: auto; }
.theme-public .toolbar input[type="search"] { flex: 1 1 240px; min-width: 180px; max-width: 460px; }

.theme-public .product__placeholder,
.theme-public .card__media { background: var(--surface-2); }
.theme-public .product__placeholder { color: var(--accent); }

/* Фисташковые акценты (включаются настройкой «Фисташковый акцент на сайте») */
body.tint-fresh .site-header__nav { background: var(--pistachio); border-top-color: var(--pistachio-line); }
body.tint-fresh .site-nav a:hover { background: #ffffff; }
body.tint-fresh .hero { background: var(--pistachio); border-color: var(--pistachio-line); }
body.tint-fresh .hero__stat { background: var(--surface); border-color: var(--pistachio-line); }
body.tint-fresh .card__media { background: var(--pistachio); }
body.tint-fresh .badge--accent { background: var(--pistachio); color: var(--pistachio-ink); }
body.tint-fresh .site-footer { border-top: 3px solid var(--pistachio-line); }
body.tint-fresh .section__head h2::before { background: var(--accent); }

/* ==========================================================================
   Админка: строгая компактная раскладка. Включается по умолчанию,
   настройка «Оформление → Плотность админки» переключает на normal.
   ========================================================================== */
body.panel-body { font-size: 13.5px; line-height: 1.5; }

body.density-compact .panel-layout { grid-template-columns: 208px minmax(0, 1fr); }
body.density-compact .panel-side { padding: 12px 10px; gap: 12px; }
body.density-compact .panel-side__brand { font-size: 14px; letter-spacing: -.01em; }
body.density-compact .panel-nav { gap: 1px; }
body.density-compact .panel-nav a { padding: 5px 8px; font-size: 13px; border-radius: 6px; gap: 6px; }
body.density-compact .panel-top { padding: 6px 14px; gap: 8px; font-size: 12.5px; }
body.density-compact .panel-user { gap: 8px; font-size: 12.5px; }
body.density-compact .panel-content { padding: 14px; max-width: 1680px; }

body.density-compact .panel-content h1 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.01em; }
body.density-compact .panel-content h2 { font-size: 15px; margin-bottom: 6px; }
body.density-compact .panel-content .h3 { font-size: 14px; margin-bottom: 6px; }
body.density-compact .panel-content p { margin-bottom: 8px; }
body.density-compact .section__head { margin-bottom: 10px; align-items: center; }
body.density-compact .section__head h2::before { display: none; }

body.density-compact .card { border-radius: 8px; box-shadow: none; }
body.density-compact .card:hover { transform: none; box-shadow: none; }
body.density-compact .card__body { padding: 10px 12px 12px; }
body.density-compact .panel { padding: 12px; border-radius: 8px; box-shadow: none; }
body.density-compact .panel-content.stack > * + * { margin-top: 10px; }
body.density-compact .stack > * + * { margin-top: 10px; }
body.density-compact .grid { gap: 8px; }
body.density-compact .grid--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
body.density-compact .grid--3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

body.density-compact label { font-size: 12px; gap: 4px; }
body.density-compact .field { gap: 4px; }
body.density-compact .field > span { font-weight: 600; color: var(--ink-2); }
body.density-compact input,
body.density-compact select,
body.density-compact textarea { min-height: 30px; padding: 4px 8px; font-size: 13px; border-radius: 6px; }
body.density-compact textarea { min-height: 72px; }
body.density-compact input[type="checkbox"],
body.density-compact input[type="radio"] { width: 15px; height: 15px; }
body.density-compact .checkbox { gap: 6px; font-size: 12.5px; }
body.density-compact .btn { min-height: 30px; padding: 4px 10px; font-size: 12.5px; border-radius: 6px; }
body.density-compact .btn--sm { min-height: 26px; padding: 2px 8px; font-size: 11.5px; }
body.density-compact .btn .icon,
body.density-compact .btn svg { width: 14px; height: 14px; }
body.density-compact .badge { font-size: 11px; padding: 1px 7px; }
body.density-compact .toolbar { gap: 6px; margin-bottom: 10px; }
body.density-compact .toolbar input,
body.density-compact .toolbar select,
body.density-compact .section__head form select { width: auto; }
body.density-compact .toolbar input[type="search"] { flex: 0 1 260px; min-width: 160px; min-height: 30px; }
body.density-compact .thumb { width: 92px; max-height: 64px; margin-bottom: 3px; }
body.density-compact .thumb--sm { width: 40px; height: 30px; margin-right: 6px; border-radius: 4px; }
body.density-compact .input--sm { width: 88px; padding: 3px 6px; font-size: 12px; min-height: 26px; }

/* Таблицы: максимум данных на экране, липкая шапка и зебра */
body.density-compact .panel-content .table-wrap { border-radius: 8px; }
body.density-compact .panel-content table { font-size: 12.5px; }
body.density-compact .panel-content th,
body.density-compact .panel-content td { padding: 4px 8px; }
body.density-compact .panel-content th {
  font-size: 10.5px; letter-spacing: .02em; position: sticky; top: 0; z-index: 2;
  box-shadow: inset 0 -1px 0 var(--line);
}
body.density-compact .panel-content tbody tr:nth-child(even) { background: #fbfcfe; }
body.density-compact .panel-content tbody tr:hover { background: var(--accent-soft); }
body.density-compact .panel-content td .muted.small { font-size: 11px; }
body.density-compact .panel-content td .row { gap: 4px; flex-wrap: nowrap; }
body.density-compact .panel-content td select { min-height: 26px; padding: 2px 6px; font-size: 12px; }
body.density-compact .panel-content td strong { font-weight: 600; }
body.density-compact .stat { padding: 10px 12px; }
body.density-compact .stat__value { font-size: 20px; }
body.density-compact .stat__label { font-size: 11px; }
/* ── Дизайн-система: блоки страниц (метрики, графики, утилиты) ───────────── */
.h4 { font-size: 15px; }
.nowrap { white-space: nowrap; }
.mt-2 { margin-top: var(--space-3); }
.mb-2 { margin-bottom: var(--space-3); }
.card--soft { background: var(--surface-2); box-shadow: none; }
.row--between { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.field--inline { display: flex; align-items: center; gap: var(--space-2); }
.field--inline > span { white-space: nowrap; color: var(--muted); font-size: 13px; }
.input--sm { min-height: 32px; padding: 4px 8px; font-size: 13px; max-width: 120px; }
.split--wide { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 900px) { .split--wide { grid-template-columns: minmax(0, 1fr); } }

.metric { display: grid; gap: 4px; padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.metric--accent { border-color: var(--accent); background: var(--accent-soft); }
.metric--soft { background: var(--surface-2); }
.metric__label { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.metric__value { font-size: 22px; font-weight: 700; line-height: 1.15; }
.metric__hint { font-size: 12.5px; color: var(--muted); }

.chart-bars { display: grid; gap: 6px; }
.chart-bars__row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 96px; gap: var(--space-2); align-items: center; font-size: 13px; }
.chart-bars__label { color: var(--muted); white-space: nowrap; }
.chart-bars__track { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.chart-bars__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #6b8ce8); border-radius: 999px; }
.chart-bars__value { text-align: right; font-variant-numeric: tabular-nums; }
/* ==========================================================================
   Слой «v2»: компактный современный интерфейс. Подключается после базовых
   правил и переопределяет размеры/плотность, не меняя разметку страниц.
   ========================================================================== */

body { font-size: 14px; line-height: 1.5; }
h1 { font-size: 24px; margin-bottom: 10px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }

.panel-content.stack > * + * { margin-top: 12px; }
.panel-content > .stack > * + * { margin-top: 12px; }

/* ---------- кнопки ---------- */
.btn {
  min-height: 34px; padding: 6px 13px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 1px 1px rgba(15, 23, 42, .04);
}
.btn:hover { background: var(--accent-deep); }
.btn:active { background: #2f3bbd; }
.btn--secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); box-shadow: none; }
.btn--secondary:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn--ghost { box-shadow: none; }
.btn--sm { min-height: 28px; padding: 3px 9px; font-size: 12.5px; border-radius: 7px; }
.btn--danger { background: var(--danger); }
.btn--danger:hover { background: #b91c1c; }

/* ---------- формы ---------- */
label { font-size: 12.5px; font-weight: 600; gap: 4px; }
input, select, textarea {
  min-height: 34px; padding: 6px 10px; border-radius: 8px; font-size: 13.5px;
  border-color: var(--line-strong); transition: border-color .15s ease, box-shadow .15s ease;
}
select { padding-right: 28px; }
textarea { min-height: 84px; }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(79, 93, 255, .14);
}
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field small, .form-hint { font-size: 11.5px; line-height: 1.35; }
fieldset { border-radius: 12px; padding: 12px 14px; }

/* ---------- карточки ---------- */
.card { border-radius: 12px; box-shadow: var(--shadow-sm); }
.card__body { padding: 12px 14px 14px; }
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-bottom: 10px;
}
.card__head h2, .card__head h3 { margin: 0; }
.card--form .card__body { padding: 0; }

.page-head { align-items: center; margin-bottom: 12px; gap: 12px; }
.page-head h1 { margin: 0 0 2px; font-size: 22px; }
.page-head__text { min-width: 0; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-head p { margin: 0; }

.section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.section__head h1 { margin: 0; font-size: 22px; }

/* ---------- секции внутри формы ---------- */
.form-section { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.form-section:last-of-type { border-bottom: 0; }
.form-section__title {
  margin: 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700;
}
.form-actions {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 12px 16px; background: var(--surface-2); border-top: 1px solid var(--line);
  position: sticky; bottom: 0; z-index: 2;
}
.form-upload { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.form-upload .field { flex: 1 1 260px; }

/* ---------- таблицы ---------- */
.table-wrap { border-radius: 12px; }
table { font-size: 13px; }
th, td { padding: 8px 10px; }
th { font-size: 10.5px; letter-spacing: .05em; background: var(--surface-2); }
tbody tr:hover { background: #fafbff; }
td .row { gap: 6px; }

/* ---------- бейджи и метрики ---------- */
.badge { padding: 2px 8px; font-size: 11px; font-weight: 600; }
.badge--muted { background: var(--surface-2); color: var(--muted); }
.badge--warn { background: var(--warning-soft); color: var(--warning); }
.metric { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.metric__label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.metric__value { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; }
.metric__hint { font-size: 11.5px; color: var(--muted); }
.metric--accent { border-color: #d9dcff; background: var(--accent-soft); }
.metric--soft { background: var(--surface-2); }

/* ---------- стикеры товаров ---------- */
.sticker {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; line-height: 1.5; letter-spacing: .01em; white-space: nowrap;
}
.sticker--hot { background: var(--hot-soft); color: #be123c; }
.sticker--mint { background: var(--success-soft); color: #087a5b; }
.sticker--red { background: var(--danger-soft); color: #b42318; }
.sticker--amber { background: var(--warning-soft); color: #92600a; }
.sticker--violet { background: var(--violet-soft); color: #6d3fe0; }
.sticker--sky { background: var(--sky-soft); color: #036c96; }
.sticker--neutral { background: var(--surface-2); color: var(--ink-2); }

.sticker-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.sticker-picker__item { display: inline-flex; cursor: pointer; }
.sticker-picker__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sticker-picker__item .sticker { border: 1px solid transparent; padding: 4px 10px; font-size: 11.5px; }
.sticker-picker__item input:checked + .sticker { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(15, 23, 42, .06); }
.sticker-picker__item input:focus-visible + .sticker { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- карточка товара (витрина) ---------- */
.product-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease;
}
.product-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.product-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--surface-2); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__initial { display: grid; place-items: center; height: 100%; font-size: 34px; font-weight: 800; color: var(--line-strong); }
.product-card__stickers { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 16px); }
.product-card__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.product-card__price { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.product-card__price s { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.product-card__title { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.35; }
.product-card__title a { color: var(--ink); }
.product-card__title a:hover { color: var(--accent); text-decoration: none; }
.product-card__store { font-size: 11.5px; color: var(--muted); }
.product-card__action { margin-top: 8px; }

/* ---------- сводка товара в редакторе ---------- */
.product-summary {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.product-summary__thumb {
  width: 68px; height: 68px; flex: 0 0 68px; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); display: grid; place-items: center; text-align: center;
}
.product-summary__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-summary__body { display: grid; gap: 4px; min-width: 0; }
.product-summary__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.product-summary__price { font-size: 18px; font-weight: 800; }
.product-summary__price s { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }

/* ---------- каркас кабинета (v2) ---------- */
.panel-layout { grid-template-columns: 236px minmax(0, 1fr); background: var(--bg); }
.panel-side {
  padding: 10px; gap: 8px; background: var(--surface); border-right: 1px solid var(--line);
  position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto;
}
.panel-side__brand {
  display: flex; align-items: center; gap: 9px; padding: 6px 6px 10px;
  border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.panel-side__brand:hover { text-decoration: none; }
.panel-side__mark {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; letter-spacing: .03em;
}
.panel-side__name { display: grid; font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.2; min-width: 0; }
.panel-side__name small { font-size: 10.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.panel-nav { gap: 2px; overflow-y: auto; max-height: calc(100vh - 210px); padding-right: 3px; }
.panel-nav::-webkit-scrollbar { width: 6px; }
.panel-nav::-webkit-scrollbar-thumb { background: var(--line-strong, var(--line)); border-radius: 3px; }
.panel-nav__group { display: grid; gap: 1px; }
.panel-nav__group + .panel-nav__group { border-top: 1px solid var(--line); margin-top: 3px; padding-top: 3px; }
.panel-nav__title {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 8px 5px; margin: 0; color: var(--ink-2);
  cursor: pointer; list-style: none; border-radius: 7px; user-select: none;
}
.panel-nav__title::-webkit-details-marker { display: none; }
.panel-nav__title::marker { content: ''; }
.panel-nav__title:hover { background: var(--surface-2); color: var(--ink); }
.panel-nav__title .icon { color: var(--muted); transition: transform .15s ease; flex: 0 0 auto; }
.panel-nav__group[open] > .panel-nav__title .icon { transform: rotate(90deg); }
.panel-nav__group:not([open]) > .panel-nav__title { color: var(--muted); }
.panel-nav__items { display: grid; gap: 1px; padding-bottom: 2px; }
.panel-nav a {
  padding: 6px 8px; border-radius: 8px; font-size: 13px; gap: 8px; color: var(--ink-2);
  border-left: 2px solid transparent;
}
.panel-nav a:hover { background: var(--surface-2); color: var(--ink); }
.panel-nav a.is-active {
  background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; border-left-color: var(--accent);
}
.panel-nav a .icon { color: var(--muted); }
.panel-nav a.is-active .icon { color: var(--accent-deep); }

.panel-side__foot {
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line);
  display: grid; gap: 2px; font-size: 12.5px;
}
.panel-side__foot a, .panel-side__foot button {
  display: block; width: 100%; text-align: left; padding: 6px 8px; border-radius: 7px;
  background: none; border: 0; color: var(--ink-2); font: inherit; cursor: pointer;
}
.panel-side__foot a:hover, .panel-side__foot button:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }

.panel-top {
  padding: 8px 16px; min-height: 52px; gap: 10px;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(6px);
}
.panel-crumbs { font-size: 13px; }
.panel-crumbs__page { font-weight: 600; }
.panel-user { gap: 8px; font-size: 12.5px; }
.panel-user__name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-user__avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep); font-size: 12px; font-weight: 700;
}
.panel-content { padding: 14px 16px 28px; }

@media (max-width: 900px) {
  .panel-layout { grid-template-columns: minmax(0, 1fr); }
  /* Плотность админки задаёт колонки с более высокой специфичностью — возвращаем одну колонку на узких экранах. */
  body.density-compact .panel-layout { grid-template-columns: minmax(0, 1fr); }
  .panel-side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  /* Меню остаётся аккордеоном с заголовками групп — так разделы не смешиваются в общий поток ссылок. */
  .panel-nav { max-height: none; overflow: visible; padding-right: 0; }
  .panel-side__foot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
  .panel-side__foot a, .panel-side__foot button { width: auto; }
  .panel-top { position: static; }
  .form-actions { position: static; }
}

/* ---------- витрина: шапка и блоки (v2) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line);
}
.site-header__bar { padding: 10px 0; gap: 14px; }
.brand { font-size: 15px; gap: 9px; }
.brand__mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--accent); font-size: 14px;
  box-shadow: 0 6px 14px -8px rgba(79, 93, 255, .8);
}
.brand__text { display: grid; line-height: 1.15; }
.brand__tagline { font-size: 10.5px; color: var(--muted); letter-spacing: .01em; }

.header-search {
  flex: 1 1 420px; min-width: 0; display: flex; align-items: center; gap: 6px; margin: 0;
  padding: 3px 3px 3px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
}
.header-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 93, 255, .12); }
.header-search .icon { color: var(--muted); flex: 0 0 auto; }
.header-search input {
  flex: 1 1 auto; border: 0; background: transparent; min-height: 30px; padding: 4px 0; box-shadow: none;
}
.header-search input:focus { box-shadow: none; }
.header-search .btn { border-radius: 999px; min-height: 30px; padding: 3px 14px; }
.header-cart { gap: 6px; }

.site-header__nav { border-top: 1px solid var(--line); background: var(--surface); }
.site-nav-row { padding: 6px 0; }
.site-nav { gap: 2px; }
.site-nav a { padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.site-nav a:hover { background: var(--accent-soft); color: var(--accent-deep); }

.page { padding: 18px 0 36px; }
.page > .container.stack > * + * { margin-top: 14px; }

.hero {
  position: relative; overflow: hidden; border-radius: 18px; padding: 26px;
  background: linear-gradient(120deg, #eef0ff 0%, #f7f9ff 55%, #ffffff 100%);
  border: 1px solid #e2e6ff;
}
.hero h1 { font-size: 30px; letter-spacing: -.015em; margin-bottom: 8px; }
.hero p { font-size: 15px; color: var(--ink-2); }
.hero__actions .btn { min-height: 38px; padding: 8px 18px; }

.grid--products { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.grid--categories { gap: 12px; }
.grid--stores { gap: 14px; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.section-title h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.section-title a { font-size: 13px; font-weight: 600; }

.catalog-layout { gap: 18px; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar-panel { border-radius: 14px; padding: 14px; }
.toolbar { gap: 8px; margin-bottom: 12px; }
.toolbar input[type="search"] { min-width: 180px; }

.chip-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.chip:hover { border-color: var(--accent); color: var(--accent-deep); text-decoration: none; }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.site-footer { margin-top: 28px; padding: 22px 0; background: var(--surface); }
.site-footer__grid { gap: 22px; }
.site-footer h3 { font-size: 11px; }

@media (max-width: 860px) {
  .site-header__bar { grid-template-columns: 1fr; row-gap: 8px; }
  .header-search { order: 3; flex-basis: 100%; }
  .header-actions { justify-content: flex-end; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 18px; }
  .hero h1 { font-size: 22px; }
}

/* ---------- строгая палитра: убираем фисташковые акценты ---------- */
body.tint-fresh .site-header__nav { background: var(--surface); border-top-color: var(--line); }
body.tint-fresh .site-nav a:hover { background: var(--accent-soft); }
body.tint-fresh .hero { background: linear-gradient(120deg, #eef0ff 0%, #f8f9ff 55%, #ffffff 100%); border-color: #e2e6ff; }
body.tint-fresh .hero__stat { background: var(--surface); border-color: var(--line); }
body.tint-fresh .card__media { background: var(--surface-2); }
body.tint-fresh .badge--accent { background: var(--accent-soft); color: var(--accent-deep); }
body.tint-fresh .site-footer { border-top: 1px solid var(--line); }
body.tint-fresh .section__head h2::before { background: var(--accent); }

.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.hero__stats { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.hero__stat { padding: 10px 12px; }
.hero__stat-value { font-size: 20px; font-weight: 800; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}

.header-search .btn { white-space: nowrap; }

.header-search { background: var(--surface); }
.header-search input,
.header-search input[type="search"] {
  background: transparent !important; border: 0 !important; box-shadow: none !important; appearance: none;
}
.header-search input::-webkit-search-cancel-button { display: none; }

/* ---------- KPI-плитки кабинетов ---------- */
.stat {
  display: grid; gap: 2px; align-content: start; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.stat__value { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; order: 2; }
.stat__label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); order: 1;
}
.stat .btn {
  order: 3; justify-self: start; margin-top: 6px; min-height: 24px; padding: 2px 8px;
  font-size: 11.5px; background: transparent; color: var(--accent-deep); border-color: transparent; box-shadow: none;
}
.stat .btn:hover { background: var(--accent-soft); }
.section__head .stat { border: 0; box-shadow: none; padding: 0; text-align: right; }
.section__head .stat__value { font-size: 24px; }

.sticker-picker__item input:checked + .sticker {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 93, 255, .16); position: relative;
}
.sticker-picker__item input:checked + .sticker::after { content: "✓"; margin-left: 2px; font-size: 10px; }
.sticker-picker__item input:checked + .sticker.sticker--neutral { border-color: var(--ink); box-shadow: none; }

/* ---------- ячейка товара в таблице ---------- */
.cell-product { display: grid; gap: 3px; min-width: 0; }
.cell-product > a { font-weight: 600; color: var(--ink); }
.cell-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.thumb { border-radius: 8px; object-fit: cover; }
.thumb--sm { width: 34px; height: 34px; }

/* ---------- переключатель вида и компактные списки ---------- */
.view-switch {
  display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface-2); margin-left: auto;
}
.view-switch__item {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.view-switch__item:hover { text-decoration: none; color: var(--accent-deep); }
.view-switch__item.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.view-switch .icon { width: 14px; height: 14px; }

.product-card__meta { display: flex; flex-wrap: wrap; gap: 4px; font-size: 11.5px; color: var(--muted); }
.product-card__meta .is-out, .product-row__stock.is-out { color: var(--danger); }

.product-list, .service-list { display: grid; gap: 6px; }

.product-row, .service-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.product-row:hover, .service-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

.product-row__media, .service-row__media {
  width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--surface-2);
  display: grid; place-items: center; font-weight: 800; color: var(--line-strong); font-size: 18px;
}
.product-row__media img, .service-row__media img { width: 100%; height: 100%; object-fit: cover; }

.product-row__main, .service-row__main { display: grid; gap: 3px; min-width: 0; }
.product-row__title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.product-row__title, .service-row__title {
  font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.product-row__title:hover, .service-row__title:hover { color: var(--accent-deep); text-decoration: none; }
.product-row__meta, .service-row__meta {
  display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--muted);
}
.product-row__meta > span + span::before, .service-row__meta > span + span::before {
  content: "·"; margin-right: 8px; color: var(--line-strong);
}
.product-row__stock { font-weight: 600; color: var(--success); }

.product-row__side, .service-row__side {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: nowrap;
}
.product-row__price, .service-row__price {
  font-size: 15px; font-weight: 800; white-space: nowrap; text-align: right;
}
.product-row__price s { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }

.grid--products { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.product-card__title { font-size: 12.5px; }
.product-card__price { font-size: 16px; }
.product-card__body { padding: 8px 10px 10px; gap: 3px; }
.grid--categories { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

/* ---------- галерея в формах ---------- */
.gallery-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-grid__item { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid__remove {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: rgba(15, 23, 42, .72); color: #fff; font-size: 13px; line-height: 1; cursor: pointer;
}
.gallery-grid__remove:hover { background: var(--danger); }

/* ---------- доставка в карточке товара ---------- */
.delivery-list { display: grid; gap: 6px; }
.delivery-list__item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2);
  font-size: 12.5px;
}
.delivery-list__item strong { font-size: 13px; }
.delivery-list__meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.check-grid__item {
  display: flex; gap: 8px; align-items: flex-start; padding: 7px 9px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--surface); font-weight: 500; cursor: pointer;
}
.check-grid__item:hover { border-color: var(--line-strong); }
.check-grid__item span { display: grid; gap: 1px; font-size: 12.5px; }
.check-grid__item input { margin-top: 2px; }

@media (max-width: 700px) {
  .product-row, .service-row { grid-template-columns: 52px minmax(0, 1fr); }
  .product-row__media, .service-row__media { width: 52px; height: 52px; }
  .product-row__side, .service-row__side { grid-column: 1 / -1; justify-content: space-between; }
}

/* ---------- тёплый акцент витрины: неяркий оранжевый ---------- */
:root {
  --sun: #f0a23c;
  --sun-soft: #fff4e6;
  --sun-ink: #96560a;
  --sun-line: #ffe3c2;
}

body.theme-public { background: linear-gradient(180deg, #fffaf3 0, var(--bg) 320px); }

.hero {
  background:
    radial-gradient(900px 220px at 92% -10%, var(--sun-soft) 0%, rgba(255, 244, 230, 0) 70%),
    linear-gradient(120deg, #eef0ff 0%, #f9f9ff 52%, #fff8ef 100%);
  border-color: #ece6ff;
}
body.tint-fresh .hero {
  background:
    radial-gradient(900px 220px at 92% -10%, var(--sun-soft) 0%, rgba(255, 244, 230, 0) 70%),
    linear-gradient(120deg, #eef0ff 0%, #f9f9ff 52%, #fff8ef 100%);
  border-color: #ece6ff;
}

.section__head h2::before,
.section-title h2::before {
  background: linear-gradient(180deg, var(--sun) 0%, #f7b95f 100%);
}
body.tint-fresh .section__head h2::before { background: linear-gradient(180deg, var(--sun) 0%, #f7b95f 100%); }

.chip:hover { border-color: var(--sun); color: var(--sun-ink); }
.chip.is-active { background: var(--accent); border-color: var(--accent); }

.badge--sun { background: var(--sun-soft); color: var(--sun-ink); }

.site-footer { border-top: 2px solid var(--sun-line); }
body.tint-fresh .site-footer { border-top: 2px solid var(--sun-line); }

.crumbs a:hover { color: var(--sun-ink); }

.product-card:hover { border-color: var(--sun-line); }
.product-card__price { color: var(--ink); }
.sticker--hot { background: var(--sun-soft); color: var(--sun-ink); }
.hero__stat { border-color: var(--sun-line); }
.hero__stat:first-child { background: linear-gradient(180deg, #fffdf9 0%, #fff7ec 100%); }

.btn--sun {
  background: var(--sun); color: #3b2405;
}
.btn--sun:hover { background: #e79628; }

.site-header__nav { border-top-color: var(--sun-line); }

@media (max-width: 860px) {
  body.theme-public { background: var(--bg); }
}

/* ---------- живой редактор шаблона (админка) ---------- */
.live-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 14px; align-items: start; }
.live-preview {
  position: sticky; top: 64px; display: grid; gap: 8px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden;
}
.live-preview__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.live-preview__frame { padding: 12px; background: #fbfcff; min-height: 200px; }
.live-preview__note { padding: 8px 10px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--muted); }

.live-hero { border-radius: 14px; padding: 18px; background: linear-gradient(120deg, #eef0ff 0%, #f9f9ff 52%, #fff8ef 100%); border: 1px solid #ece6ff; }
.live-hero h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.01em; }
.live-hero p { margin: 0 0 10px; color: var(--ink-2); font-size: 13px; }

.live-section { display: grid; gap: 6px; }
.live-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.live-section__head strong { font-size: 13px; }
.live-section__head span { font-size: 11.5px; color: var(--muted); }
.live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.live-tile { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.live-tile__media { aspect-ratio: 1 / 1; background: var(--surface-2); }
.live-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.live-tile__body { padding: 6px 7px; display: grid; gap: 2px; }
.live-tile__price { font-size: 12px; font-weight: 800; }
.live-tile__name { font-size: 10.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.live-text { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.live-banner { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.live-banner img { width: 100%; display: block; }

@media (max-width: 1100px) {
  .live-editor { grid-template-columns: minmax(0, 1fr); }
  .live-preview { position: static; }
}

/* --- Регистрация партнёров: магазин и курьер --- */
.auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--bg);
}
.auth-split__aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: 46px 44px;
  color: #fff;
  background: radial-gradient(900px 520px at 8% -10%, #7c8bff 0%, #3a47d6 52%, #1c2680 100%);
}
.auth-split--courier .auth-split__aside {
  background: radial-gradient(900px 520px at 8% -10%, #34d399 0%, #0f9d63 48%, #0b5f45 100%);
}
.auth-split__aside::after {
  content: '';
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  pointer-events: none;
}
.auth-split__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
}
.auth-split__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.auth-split__foot {
  margin-top: auto;
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.auth-split__foot a { color: rgba(255, 255, 255, .82); }
.auth-split__main { display: grid; place-items: center; padding: 34px 20px; }
.auth-split__card {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.auth-split__card h1 { font-size: 23px; margin: 0 0 6px; }

.join-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, .72);
  position: relative;
  z-index: 1;
}
.join-eyebrow--ink { color: var(--accent); }
.join-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.01em;
  position: relative;
  z-index: 1;
}
.join-lead { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .88); position: relative; z-index: 1; }

.join-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}
.join-benefits li { display: flex; gap: 12px; align-items: flex-start; }
.join-benefits strong { display: block; font-size: 14.5px; }
.join-benefits em { display: block; font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .78); }
.join-benefit__icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, .16);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}
.join-benefits--compact { gap: 8px; }
.join-benefits--compact strong { font-size: 13.5px; font-weight: 600; }

.join-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.join-flow li { display: flex; gap: 12px; align-items: flex-start; }
.join-flow__num {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
}
.join-flow strong { display: block; font-size: 14.5px; }
.join-flow em { display: block; font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .78); }

.join-steps {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  display: grid;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.join-spotlight {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  padding: 16px 18px;
  position: relative;
  z-index: 1;
}
.join-spotlight p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.4; }
.join-spotlight span { font-size: 12.5px; color: rgba(255, 255, 255, .75); }

.join-calc {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.join-calc__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; }
.join-calc__orders b { font-size: 17px; }
.join-calc input[type="range"] { width: 100%; accent-color: #fff; }
.join-calc__totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.join-calc__totals em { display: block; font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .78); }
.join-calc__totals strong { font-size: 19px; }
.join-calc__hint { margin: 0; font-size: 11.5px; color: rgba(255, 255, 255, .68); }

.form-section { display: grid; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.form-section:first-of-type { padding-top: 0; border-top: 0; }
.form-section__title {
  margin: 0;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.vehicle { cursor: pointer; }
.vehicle input { position: absolute; opacity: 0; pointer-events: none; }
.vehicle span {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  transition: border-color .12s ease, background .12s ease;
}
.vehicle input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.vehicle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.vehicle__icon { font-size: 16px; font-style: normal; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  background: var(--surface);
  transition: border-color .12s ease, background .12s ease;
}
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.strength { display: grid; gap: 5px; }
.strength__bar { height: 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.strength__bar i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .16s ease, background .16s ease; }
.strength__bar i[data-score="1"] { background: var(--danger); }
.strength__bar i[data-score="2"] { background: var(--warning); }
.strength__bar i[data-score="3"] { background: var(--success); }

.store-preview {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface-2);
}
.store-preview__mark {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--violet));
}
.store-preview__body { min-width: 0; }
.store-preview__body strong { display: block; font-size: 14.5px; }
.store-preview__body em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); }
.store-preview__body p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }

.btn--lg { padding: 13px 18px; font-size: 15px; }

@media (max-width: 960px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); }
  .auth-split__aside { padding: 26px 22px; gap: var(--space-4); }
  .auth-split__main { padding: 22px 14px; }
  .auth-split__card { padding: 22px; }
  .join-title { font-size: 24px; }
}
/* --- Админка: стикеры разделов и колокольчик очереди модерации --- */
.panel-nav__badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--hot);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
.panel-bell { position: relative; }
.panel-bell > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.panel-bell > summary::-webkit-details-marker { display: none; }
.panel-bell > summary:hover { border-color: var(--line-strong); }
.panel-bell__count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--hot);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
.panel-bell__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px -18px rgba(15, 23, 42, .35);
  padding: 14px;
  display: grid;
  gap: 10px;
}
.panel-bell__head strong { display: block; font-size: 14.5px; }
.panel-bell__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.panel-bell__list li { display: grid; gap: 2px; }
.panel-bell__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13.5px;
}
.panel-bell__list a:hover { background: var(--surface-2); text-decoration: none; }
.panel-bell__badge {
  min-width: 20px;
  padding: 0 6px;
  height: 20px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.panel-bell__new { font-style: normal; font-size: 11.5px; color: var(--hot); padding-left: 9px; }
.panel-bell__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.panel-bell__all { font-size: 13px; }
@media (max-width: 640px) {
  .panel-bell__panel { width: min(320px, calc(100vw - 24px)); }
}
/* --- Продвижение объявлений --- */
.promo-grid { display: grid; gap: 10px; }
.promo-option { cursor: pointer; }
.promo-option input { position: absolute; opacity: 0; pointer-events: none; }
.promo-option span { display: grid; gap: 4px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; transition: border-color .12s ease, background .12s ease; }
.promo-option strong { font-size: 14.5px; }
.promo-option em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.promo-option b { font-size: 13.5px; color: var(--accent-deep); }
.promo-option input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.promo-total { font-size: 22px; font-weight: 700; }
.promo-history li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.promo-history li:last-child { border-bottom: 0; }
.card--highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.product-card--promoted { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.service-row--promoted { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.service-rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--warning); font-size: 12.5px; }
.service-rating small { color: var(--muted); font-weight: 400; }

/* --- Настройки: подразделы --- */
.settings-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.settings-tabs__item { padding: 8px 12px; border-radius: 10px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.settings-tabs__item:hover { background: var(--surface); color: var(--ink); }
.settings-tabs__item.is-active { background: var(--accent); color: #fff; font-weight: 600; }
body.tint-fresh .settings-tabs__item.is-active { background: var(--accent-deep); }

/* --- Липкая шапка сайта --- */
.site-header--sticky { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(180%) blur(8px); }

/* --- Размер карточек каталога --- */
.grid--products { grid-template-columns: repeat(auto-fill, minmax(var(--card-min, 210px), 1fr)); }
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; white-space: nowrap; }

/* --- Фильтры каталога, метки и карточки-ссылки --- */
.filter-group { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; text-decoration: none; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.chip input { margin: 0; }
.chip.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.chip--static { cursor: default; }
.card--soft { background: var(--surface-2); }
.card--link { text-decoration: none; color: inherit; transition: border-color .12s ease, transform .12s ease; }
.card--link:hover { border-color: var(--accent); transform: translateY(-1px); }
.product__price small { font-size: 13px; color: var(--muted); }

/* ---- Корзина: светло-оранжевая кнопка, карточки магазинов и лента публикаций ---- */
:root {
  --cart: #ffb26b;
  --cart-hover: #ffa04d;
  --cart-ink: #4a2400;
  --cart-line: #ffd0a3;
}

.btn--cart {
  background: var(--cart);
  border-color: var(--cart-line);
  color: var(--cart-ink);
}

.btn--cart:hover { background: var(--cart-hover); border-color: var(--cart-hover); }
.btn--cart:disabled, .btn--cart[disabled] { background: var(--surface-2); border-color: var(--line); color: var(--muted); }

.store-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.store-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.store-card__media { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); }
.store-card__media img { width: 100%; height: 100%; object-fit: cover; }
.store-card__initial { display: grid; place-items: center; height: 100%; font-size: 34px; font-weight: 800; color: var(--line-strong); }
.store-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.store-card__title { margin: 0; font-size: 15px; font-weight: 700; }
.store-card__title a { color: var(--ink); }
.store-card__title a:hover { color: var(--accent); }

.feed-list { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feed-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.feed-row:last-child { border-bottom: 0; }
.feed-row:hover { background: var(--surface-2); }
.feed-row__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feed-row__title { font-weight: 600; color: var(--ink); }
.feed-row__title:hover { color: var(--accent); }
.feed-row time { white-space: nowrap; }

@media (max-width: 640px) {
  .feed-row { flex-direction: column; }
}
