@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Manrope:wght@400;500;600;700&display=swap');

/* =========================================================
   UNITA — дизайн-система
   Нейтральная премиальная палитра: айвори, графит, шампань
   ========================================================= */

:root {
  --bg: #faf8f5;
  --bg-warm: #f2eee8;
  --surface: #ffffff;
  --surface-soft: #f4f1ec;
  --surface-tint: #f8f5f0;

  --ink: #221f1d;
  --ink-soft: #5f5952;
  --muted: #948d84;

  --line: #e6e1d8;
  --line-strong: #d5cec2;

  --plum: #3c3733;
  --plum-dark: #262320;
  --plum-soft: #f0ece4;
  --plum-line: #ded7c9;

  --gold: #a5813f;
  --gold-soft: #f7f0e0;

  --rose: #c2a165;
  --rose-soft: #f9f2e3;

  --success: #4d7a5f;
  --success-soft: #eaf2ec;
  --warn: #b3752f;
  --warn-soft: #fbf1e4;
  --danger: #a54b45;
  --danger-soft: #fbeceb;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(60, 55, 51, 0.05);
  --shadow: 0 14px 40px rgba(60, 55, 51, 0.09);
  --shadow-lg: 0 30px 70px rgba(60, 55, 51, 0.14);

  --container: 1180px;
  --header-h: 74px;

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, h4, p { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 { font-size: clamp(38px, 5.4vw, 62px); margin-bottom: 20px; }
h2 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 16px; }
h3 { font-size: 22px; margin-bottom: 10px; }
h4 { font-family: var(--sans); font-size: 15px; font-weight: 700; margin-bottom: 8px; }

p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

/* ---------- Утилиты ---------- */

.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.container-narrow { width: min(calc(100% - 40px), 780px); margin: 0 auto; }

.section { padding: 84px 0; }
.section-sm { padding: 52px 0; }
.section-tint { background: var(--bg-warm); }
.section-plum { background: var(--plum); color: #fff; }

.lead { font-size: 17px; color: var(--ink-soft); line-height: 1.7; }
.muted { color: var(--muted); }
.soft { color: var(--ink-soft); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 700; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gold { color: var(--gold); }
.plum { color: var(--plum); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
}

.eyebrow.center-line { justify-content: center; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }

.divider { height: 1px; background: var(--line); border: 0; margin: 32px 0; }

.grid { display: grid; gap: 20px; }
/* элементы грида не должны раздувать колонку своим min-content */
.grid > *,
.layout-side > *,
.product-layout > *,
[style*="grid-template-columns"] > *,
[style*="display:grid"] > *,
[style*="display: grid"] > * { min-width: 0; }

/* карточки не должны раздуваться из-за длинного неразрывного текста (ссылки, реквизиты) */
.card, .panel { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }

/* ---------- Кнопки ---------- */

.btn {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--plum);
  color: #fff;
  border: 1px solid var(--plum);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn:hover { background: var(--plum-dark); border-color: var(--plum-dark); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--plum); color: var(--plum); box-shadow: none; }

.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: #9a7840; border-color: #9a7840; }

.btn-light { background: #fff; color: var(--plum); border-color: #fff; }
.btn-light:hover { background: var(--plum-soft); border-color: var(--plum-soft); color: var(--plum-dark); }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.link {
  color: var(--plum);
  font-weight: 600;
  border-bottom: 1px solid var(--plum-line);
  transition: border-color .2s ease;
}
.link:hover { border-color: var(--plum); }

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.icon-btn:hover { border-color: var(--plum); color: var(--plum); }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 248, 245, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo small {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav a { color: var(--ink-soft); transition: color .2s ease; }
.nav a:hover, .nav a.active { color: var(--plum); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.header-cart { position: relative; }

.badge-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  background: var(--plum);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
}

.burger { display: none; }

.mobile-nav {
  display: none;
  padding: 12px 0 20px;
  border-top: 1px solid var(--line);
}
.mobile-nav.open { display: grid; gap: 14px; }
.mobile-nav a { color: var(--ink-soft); }

/* ---------- Карточки и панели ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px;
}

.card-soft { background: var(--surface-soft); border-color: transparent; }
.card-tint { background: var(--plum-soft); border-color: var(--plum-line); }
.card-flat { padding: 0; overflow: hidden; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.panel-pad { padding: 26px; }
.panel-head {
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-head h3 { margin-bottom: 0; }

/* ---------- Значки / статусы ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-plum { background: var(--plum-soft); color: var(--plum); }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-rose { background: var(--rose-soft); color: #8a6a2f; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: var(--surface-soft); color: var(--muted); }

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.no-dot::before { display: none; }

/* ---------- Прогресс цепочки ---------- */

.progress {
  height: 8px;
  background: var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #d3b784, var(--gold));
  border-radius: inherit;
  transition: width .8s cubic-bezier(.22,.61,.36,1);
}

.progress-lg { height: 14px; }
.progress-lg .progress-fill { background: linear-gradient(90deg, #e0cba2, #c2a165 45%, #9c7736); }

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
  font-size: 13px;
  color: var(--ink-soft);
}

.progress-ticks {
  position: relative;
  height: 18px;
  margin-top: 6px;
}

.progress-tick {
  position: absolute;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.progress-tick.reached { color: var(--plum); font-weight: 700; }

/* ---------- Цифры ---------- */

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stat-cell { background: var(--surface); padding: 20px 22px; }
.stat-value { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

.price-now { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--plum); }
.price-old { color: var(--muted); font-size: 14px; text-decoration: line-through; }
.price-save { color: var(--success); font-size: 13px; font-weight: 700; }

/* ---------- Товарная карточка ---------- */

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

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

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.product-media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f3eee6, #e8e2d6);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.gallery.tone-2, .product-media.tone-2 { background: linear-gradient(160deg, #eeeee9, #dfe0d8); }
.gallery.tone-3, .product-media.tone-3 { background: linear-gradient(160deg, #f6f0e0, #eadfc9); }
.gallery.tone-4, .product-media.tone-4 { background: linear-gradient(160deg, #ecf0ec, #dce4dd); }
.gallery.tone-5, .product-media.tone-5 { background: linear-gradient(160deg, #f4efe8, #e6ddcd); }
.gallery.tone-6, .product-media.tone-6 { background: linear-gradient(160deg, #ebeef2, #dae0e6); }

.product-media-tags {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }

.product-brand {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-name { font-family: var(--serif); font-size: 25px; line-height: 1.15; margin-bottom: 4px; }
.product-meta { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

.product-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.product-chain-box {
  background: var(--surface-tint);
  border: 1px solid var(--plum-line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.product-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Флакон (CSS-иллюстрация) */

.bottle {
  position: relative;
  width: 104px;
  height: 148px;
  background: linear-gradient(150deg, rgba(255,255,255,.92), rgba(255,255,255,.5));
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 8px 8px 16px 16px;
  box-shadow: 0 20px 34px rgba(90, 60, 70, .16), inset 0 1px 0 rgba(255,255,255,.9);
}

.bottle::before {
  content: '';
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 28px;
  background: linear-gradient(150deg, #d3c3a3, #ad9878);
  border-radius: 4px 4px 2px 2px;
}

.bottle::after {
  content: attr(data-label);
  position: absolute;
  top: 46px;
  left: 10px;
  right: 10px;
  padding: 10px 4px;
  border-top: 1px solid rgba(60, 55, 51, .18);
  border-bottom: 1px solid rgba(60, 55, 51, .18);
  color: var(--plum);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  line-height: 1.5;
}

/* крышечка рисуется выше корпуса — оставляем ей место в контейнерах */
.product-media .bottle { margin-top: 30px; }
.card > .center > .bottle,
.hero-card .center > .bottle { margin: 30px auto 0; }
.card > .center > .bottle-lg,
.hero-card .center > .bottle-lg { margin-top: 46px; }

.bottle-lg { width: 168px; height: 236px; border-radius: 12px 12px 26px 26px; }
.bottle-lg::before { top: -44px; width: 58px; height: 44px; border-radius: 6px 6px 3px 3px; }
.bottle-lg::after { top: 76px; left: 18px; right: 18px; font-size: 10px; padding: 14px 6px; }
.card > .bottle-sm { margin-top: 20px; }
.bottle-sm { width: 66px; height: 94px; }
.bottle-sm::before { top: -18px; width: 24px; height: 18px; }
.bottle-sm::after { top: 28px; left: 6px; right: 6px; font-size: 6px; padding: 7px 2px; letter-spacing: .1em; }

/* ---------- Формы ---------- */

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.label .req { color: var(--rose); }

.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px var(--plum-soft);
}

.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #b3aca2; }
.hint { font-size: 12px; color: var(--muted); }

.check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}

.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--plum); cursor: pointer; }

.qty {
  display: inline-grid;
  grid-template-columns: 44px 58px 44px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--surface);
}

.qty button {
  height: 44px;
  background: transparent;
  border: 0;
  font-size: 17px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.qty button:hover { background: var(--plum-soft); color: var(--plum); }
.qty input {
  height: 44px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  outline: none;
}

.alert {
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-error { background: var(--danger-soft); border-color: #edc9c6; color: #8b3a35; }
.alert-info { background: var(--plum-soft); border-color: var(--plum-line); color: var(--plum); }
.alert-success { background: var(--success-soft); border-color: #cadfd0; color: var(--success); }
.alert-warn { background: var(--warn-soft); border-color: #ecd6b7; color: var(--warn); }

/* ---------- Табы, чипы, фильтры ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 8px 15px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
}
.chip:hover { border-color: var(--plum); color: var(--plum); }
.chip.active { background: var(--plum); border-color: var(--plum); color: #fff; }

.filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; letter-spacing: 0.02em; }
.filter-list { display: grid; gap: 9px; }
.filter-list label { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.filter-list input { accent-color: var(--plum); width: 16px; height: 16px; }

.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tab {
  padding: 12px 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--plum); border-color: var(--plum); }

/* ---------- Таблицы ---------- */

.table-wrap { overflow-x: auto; }

.table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.table-wide { min-width: 980px; }
.table .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table th {
  padding: 13px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 15px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-soft); }
.table .num { font-variant-numeric: tabular-nums; }

.tiers-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tiers-table th { padding: 11px 14px; background: var(--surface-soft); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: left; }
.tiers-table td { padding: 14px; border-bottom: 1px solid var(--line); }
.tiers-table tr:last-child td { border-bottom: 0; }
.tiers-table tr.current { background: var(--plum-soft); }
.tiers-table tr.current td { font-weight: 700; color: var(--plum); }
.tiers-table tr.reached td:first-child::before { content: '✓ '; color: var(--success); }

/* ---------- Степпер статусов ---------- */

.stepper { display: flex; gap: 0; overflow-x: auto; padding-bottom: 6px; }

.step {
  position: relative;
  flex: 1;
  min-width: 116px;
  padding-right: 12px;
  font-size: 12px;
  color: var(--muted);
}

.step::before {
  content: '';
  display: block;
  width: 13px;
  height: 13px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}

.step::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 15px;
  right: 4px;
  height: 1px;
  background: var(--line-strong);
}

.step:last-child::after { display: none; }
.step.done { color: var(--ink); }
.step.done::before { background: var(--plum); border-color: var(--plum); }
.step.done::after { background: var(--plum); }
.step.current { color: var(--plum); font-weight: 700; }
.step.current::before { background: #fff; border-color: var(--plum); box-shadow: 0 0 0 4px var(--plum-soft); }

/* Шаги оформления */
.wizard-steps { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.wizard-step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
}
.wizard-step b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-soft); font-size: 11px; }
.wizard-step.active { border-color: var(--plum); color: var(--plum); }
.wizard-step.active b { background: var(--plum); color: #fff; }
.wizard-step.done { color: var(--success); border-color: #cadfd0; }
.wizard-step.done b { background: var(--success); color: #fff; }

/* ---------- Кабинет / админка ---------- */

.layout-side { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }

.side-nav {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
}

.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-size: 14px;
  transition: background .2s ease, color .2s ease;
}
.side-nav a:hover { background: var(--surface-soft); color: var(--ink); }
.side-nav a.active { background: var(--plum-soft); color: var(--plum); font-weight: 600; }
.side-nav .count { font-size: 12px; color: var(--muted); }
.side-nav .sep { height: 1px; background: var(--line); margin: 8px 4px; }

.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }

.empty {
  padding: 52px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
}

/* ---------- Модалка ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(42, 31, 38, .5);
  backdrop-filter: blur(6px);
}
.modal.open { display: flex; }

.modal-box {
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 22px 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin-bottom: 2px; }
.modal-body { padding: 26px; }

/* ---------- Тост ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  transform: translate(-50%, 24px);
  max-width: min(92vw, 420px);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); flex: 0 0 auto; }

/* ---------- Уведомления ---------- */

.notice-list { display: grid; gap: 10px; }
.notice {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.notice .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); margin-top: 7px; }
.notice.unread { border-color: var(--plum-line); background: var(--surface-tint); }
.notice.unread .dot { background: var(--rose); }

/* ---------- Футер ---------- */

.footer { padding: 64px 0 28px; background: var(--bg-warm); border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-title { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { display: grid; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--plum); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Главная: hero ---------- */

.hero { position: relative; padding: 76px 0 84px; overflow: hidden; }

.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -140px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(165,129,63,.14), transparent 62%);
  pointer-events: none;
}

.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--plum); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }

.hero-visual { position: relative; display: grid; place-items: center end; min-height: 460px; }

.hero-ring {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid var(--plum-line);
  border-radius: 50%;
}
.hero-ring::after {
  content: '';
  position: absolute;
  inset: 44px;
  border: 1px dashed var(--line-strong);
  border-radius: inherit;
}

.hero-chip {
  position: absolute;
  z-index: 3;
  padding: 9px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow);
  font-size: 12px;
  white-space: nowrap;
}
.hero-chip b { color: var(--plum); }
.hero-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }
/* подсказки слева от карточки — карточка прижата к правому краю блока */
.hero-chip.c1 { top: 9%; left: 0; }
.hero-chip.c2 { top: 41%; left: 4%; }
.hero-chip.c3 { bottom: 13%; left: 0; }

@media (max-width: 1080px) {
  .hero-visual { place-items: center; }
  .hero-chip.c1 { top: 4%; left: 2%; }
  .hero-chip.c2 { top: 44%; left: 0; }
  .hero-chip.c3 { bottom: 6%; left: 4%; }
}

@media (max-width: 720px) {
  .hero-chip { font-size: 11px; padding: 7px 12px; }
  .hero-chip.c2 { top: 38%; }
}

.hero-card {
  position: relative;
  z-index: 2;
  width: min(100%, 306px);
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

/* Шаги «как это работает» */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow-item { position: relative; padding-top: 34px; }
.flow-item::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}
.flow-item::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--plum);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--plum-soft);
}
.flow-item:last-child::before { background: linear-gradient(90deg, var(--line-strong), transparent); }
.flow-num { font-family: var(--serif); font-size: 13px; color: var(--gold); letter-spacing: .16em; margin-bottom: 6px; }
.flow-item h3 { font-size: 19px; margin-bottom: 6px; }
.flow-item p { font-size: 13px; color: var(--ink-soft); margin-bottom: 0; }

/* Преимущества */
.benefit { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start; }
.benefit-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--plum-soft);
  color: var(--plum);
  border-radius: 50%;
  font-size: 16px;
}
.benefit h4 { margin-bottom: 4px; }
.benefit p { font-size: 13px; color: var(--ink-soft); margin-bottom: 0; }

/* Цитата / соц.доказательство */
.quote {
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.quote p { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink); }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--plum-soft);
  color: var(--plum);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Карточка товара ---------- */

.product-layout { display: grid; grid-template-columns: 1fr 440px; gap: 44px; align-items: start; }

.gallery {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  aspect-ratio: 1 / 1.05;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f3eee6, #e6e0d4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.buy-box { display: grid; gap: 16px; }

.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.note-col-title { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.note-col p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.spec-list { display: grid; gap: 0; }
.spec-row { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; }

/* Реферальная ссылка */
.ref-box { display: flex; gap: 10px; align-items: center; }
.ref-input {
  flex: 1;
  min-width: 0;
  padding: 12px 15px;
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .layout-side { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 6px; }
  .side-nav .sep { display: none; }
  .side-nav a { white-space: nowrap; }
  .product-layout { grid-template-columns: 1fr; }
  .gallery { position: static; aspect-ratio: 4/3; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-grid, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .flow-item::before, .flow-item::after { display: none; }
  .flow-item { padding-top: 0; border-top: 1px solid var(--line-strong); padding-top: 18px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* любые двухколоночные раскладки, заданные инлайном, схлопываются на планшете и телефоне */
@media (max-width: 1080px) {
  [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="position:sticky"], [style*="position: sticky"] { position: static !important; }
}

@media (max-width: 720px) {
  .container, .container-narrow { width: calc(100% - 32px); }
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 56px; }
  .hero-visual { min-height: 380px; transform: scale(.9); }
  .product-grid, .grid-2, .grid-3, .grid-4, .field-row { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .catalog-layout { grid-template-columns: 1fr !important; }
  .filters-panel { position: static !important; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box { max-height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .spec-row { grid-template-columns: 1fr; gap: 2px; }
  .tabs { overflow-x: auto; gap: 18px; }
  .product-actions { grid-template-columns: 1fr; }
}

@media print {
  .header, .footer, .btn, .side-nav { display: none !important; }
  body { background: #fff; }
}
