/* ------------------------------------------------------------------
   Skin's Best — токены и компоненты
   Цвета и шрифты — по брендбуку ATAR22 (Pantone 583 / 186 / 201 / Warm Gray 9).
   Семейство Avenir с фолбэком Nunito Sans (Avenir — лицензионный, не на Google Fonts).
   ------------------------------------------------------------------ */
:root {
  /* Брендовые (логотип + текстовые акценты) */
  --lime: #BABF10;          /* Pantone 583 — главный акцент */
  --lime-deep: #9AA00D;     /* затемнение для hover */
  --lime-soft: #EEF0C2;     /* мягкий лайм-фон */
  --red: #CF0A2C;           /* Pantone 186 */
  --red-deep: #A41F35;      /* Pantone 201 — используем строго на ценах/важных акцентах */
  --red-deeper: #7E1729;
  --warm-gray: #86786F;     /* Pantone Warm Gray 9 — для подписей/eyebrow */
  --warm-gray-dark: #2A2520;/* почти-чёрный тёплый — основной текст и заголовки */

  /* Нейтральные подложки */
  --cream: #F6F3EC;
  --cream-2: #EFEBDE;
  --paper: #FFFFFF;
  --line: #E4DFD0;

  /* Семантические алиасы */
  --ink: var(--warm-gray-dark);   /* основной читаемый текст */
  --ink-soft: var(--warm-gray);   /* подписи/eyebrow */
  --brown-deep: #3A2F2A;          /* тёмные блоки (футер/топбар/админ) — глубокий нейтральный */
  --brown: var(--warm-gray);

  --accent: var(--lime);
  --accent-deep: var(--lime-deep);
  --accent-soft: var(--lime-soft);

  /* Шрифты — Avenir по брендбуку, фолбэк Nunito Sans */
  --font-sans: "Avenir Next", "Avenir", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Avenir Next", "Avenir", "Nunito Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: var(--font-display); /* совместимость со старыми правилами */
  --font-decor: "Cheddar Jack", "Caveat", cursive; /* декор по брендбуку */

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  --container: 1280px;
  --pad: clamp(16px, 4vw, 60px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400; /* Avenir Book — основной вес для длинных текстов */
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

/* По брендбуку «серифа» как класса больше нет; .serif оставлен ради совместимости и
   маппится на Avenir Black/Medium. */
.serif { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.005em; }

.eyebrow {
  font-size: 11px;
  font-weight: 700; /* Avenir Black — служебная/контактная подача */
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

/* Декоративный шрифт — только для рукописных акцентов (Cheddar Jack по брендбуку). */
.decor { font-family: var(--font-decor); font-weight: 400; letter-spacing: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Кнопки ---------- */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background .15s ease, transform .1s ease, color .15s ease;
  text-align: center;
}
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: var(--lime-deep); color: var(--paper); }
.btn-primary.dark { background: var(--ink); color: var(--paper); }
.btn-primary.dark:hover { background: var(--brown-deep); }
.btn-primary.lime { background: var(--lime); color: var(--ink); }
.btn-primary.lime:hover { background: var(--lime-deep); color: var(--paper); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); padding: 13px 22px; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Бейджи ---------- */
.phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--brown-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.phase-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-deep); }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--ink-soft);
}
.badge.pending { background: #fff1c4; color: #7a5b00; }
.badge.approved{ background: #d8edd2; color: #2e6b1f; }
.badge.blocked { background: #f4d3d3; color: #7a2424; }
.badge.unpaid    { background: #f4d3d3; color: #7a2424; }
.badge.pending-pay { background: #fff1c4; color: #7a5b00; }
.badge.paid      { background: #d8edd2; color: #2e6b1f; }
.badge.failed    { background: #f4d3d3; color: #7a2424; }
.badge.refunded  { background: #efebde; color: #6e6a5e; }
.badge.new       { background: #e8ecc4; color: #5e6f25; }
.badge.confirmed { background: #d4e5f5; color: #1f4a73; }
.badge.shipped   { background: #f5e4d4; color: #7a4a1f; }
.badge.delivered { background: #d8edd2; color: #2e6b1f; }
.badge.cancelled { background: #f4d3d3; color: #7a2424; }

/* ---------- Header ---------- */
.topbar {
  background: var(--brown-deep);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: .04em;
}
.topbar .container { display: flex; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; gap: 16px; flex-wrap: wrap; }
.topbar a { opacity: .9; }

.header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* Брендовый знак: инлайновое SVG. Квадратный вариант — на светлых фонах
   (шапка/карточки), plain — только надпись «SKIN'S» поверх тёмной подложки. */
.brand-logo { display: block; flex-shrink: 0; }
.brand-logo--square { width: 55px; height: 55px; }
/* Полный вертикальный локап-логотип: фиксируем высоту, ширина по пропорциям (не искажать). */
.brand-logo--full   { height: 64px; width: auto; }
.brand-logo--plain  { width: 145px; height: auto; }
.brand--light .brand-logo--plain { color: var(--cream); }

/* Слоган-приписка рядом с лого: «BEST BRAZILIAN WAXING» */
.brand-slogan {
  font-size: 9.5px;
  letter-spacing: .22em;
  color: var(--ink-soft);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 88px;
}
.brand--light .brand-slogan { color: var(--cream); opacity: .7; }
.brand-slogan--admin { font-size: 11px; letter-spacing: .18em; max-width: none; }

/* Старая текстовая заглушка-«S» — оставлена как fallback для редких страниц без хелперов. */
.brand-mark {
  width: 42px; height: 42px;
  background: var(--lime);
  display: grid; place-items: center;
  border-radius: 4px;
  color: var(--paper);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
}
.brand-text .name { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.1; letter-spacing: 0.02em; }
.brand-text .sub  { font-size: 10px; letter-spacing: .22em; color: var(--ink-soft); font-weight: 500; }

@media (max-width: 700px) {
  .brand-slogan { display: none; }
  .brand-logo--square { width: 47px; height: 47px; }
  .brand-logo--full { height: 52px; }
}

.nav { display: flex; gap: 22px; margin-left: 8px; flex-wrap: wrap; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--warm-gray);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav a.active, .nav a:hover { color: var(--ink); border-bottom-color: var(--lime); font-weight: 700; }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--ink);
}
.icon-btn:hover { background: var(--cream-2); }
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}
.cart-btn:hover { background: var(--cream-2); }
.cart-count {
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
}

.menu-toggle { display: none; }

@media (max-width: 900px) {
  .nav { display: none; width: 100%; flex-direction: column; gap: 6px; }
  .nav.open { display: flex; }
  .menu-toggle { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--cream-2); }
  .header .container { flex-wrap: wrap; }
  .header-actions { gap: 8px; }
  .cart-btn span:not(.cart-count) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 36px;
  padding-bottom: 8px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(25px, 3.9vw, 50px);
  font-weight: 700;            /* Avenir Black — главный акцент */
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 14px 0 18px;
  color: var(--warm-gray-dark);
}
.hero h1 em { font-style: normal; color: var(--red-deep); }  /* брендовый дарк-ред акцент */
.hero p.lead { font-size: 16px; line-height: 1.55; color: var(--warm-gray); max-width: 480px; margin: 0 0 28px; font-weight: 400; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 28px 40px; }
.trust .n { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--warm-gray-dark); }
.trust .l { font-size: 12px; color: var(--warm-gray); letter-spacing: .02em; font-weight: 500; }

.hero-card {
  background: var(--accent-soft);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: grid;
  place-items: center;
  padding: 32px;
}
.hero-card-bg {
  position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 30% 40%, #f4dcc6 0%, #e8c4a8 40%, #c69a78 70%, #8a6244 100%);
}
.hero-card-quote {
  position: absolute;
  left: 24px; bottom: 24px;
  z-index: 2;
  background: rgba(44,42,36,.85);
  color: var(--cream);
  padding: 16px 20px;
  border-radius: 14px;
  max-width: 280px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.hero-card-quote .eyebrow { color: var(--cream); opacity: .7; margin-bottom: 4px; }
.hero-card-bottle { position: relative; z-index: 1; width: min(70%, 320px); height: auto; }

.hero-slides {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transition: opacity .7s ease, transform .7s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.hero-slide-name { font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin-bottom: 2px; }
.hero-slide-meta { font-size: 13px; opacity: .85; }

.hero-dots {
  position: absolute;
  top: 20px;
  right: 22px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.45);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.hero-dot:hover { background: rgba(255,255,255,.75); }
.hero-dot.active {
  background: var(--accent);
  width: 38px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-card { min-height: 320px; }
}

/* ---------- Phase explainer ---------- */
.phases {
  background: var(--cream);
  padding: 64px 0;
  margin-top: 24px;
}
.phases-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.phases-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 580px;
  margin: 8px 0 0;
  color: var(--warm-gray-dark);
}
.phases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.phase-cell {
  background: var(--paper);
  padding: 26px;
  min-height: 200px;
}
.phase-cell .num {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: .85;
  color: var(--lime);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.phase-cell .row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.phase-cell .sub { font-size: 11px; letter-spacing: .2em; color: var(--warm-gray); text-transform: uppercase; font-weight: 700; }
.phase-cell h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 0 0 6px; color: var(--warm-gray-dark); }
.phase-cell p  { font-size: 13px; line-height: 1.55; color: var(--warm-gray); margin: 0; }

@media (max-width: 1100px) { .phases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .phases-grid { grid-template-columns: 1fr; } }

/* ---------- Catalog ---------- */
.catalog { padding: 64px 0; }
.catalog-section { margin-bottom: 56px; }
.catalog-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.catalog-section-head .num {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 100px);
  line-height: .85;
  color: var(--lime);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.catalog-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
  color: var(--warm-gray-dark);
}
.catalog-section-head .desc {
  font-size: 13px;
  color: var(--warm-gray);
  max-width: 360px;
  text-align: right;
  font-weight: 500;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .products-grid { grid-template-columns: 1fr; } }

.prod-card {
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
}
.prod-card:hover { border-color: var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.04); transform: translateY(-2px); }
.prod-card-art {
  position: relative;
  background: var(--cream-2);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: hidden;
}
.prod-card-art > .prod-art-inner { width: 100%; height: 100%; }
.prod-card-art .phase-pill { position: absolute; top: 12px; left: 12px; }
.prod-card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.prod-card-body .sub-line { font-size: 10px; letter-spacing: .18em; color: var(--warm-gray); text-transform: uppercase; font-weight: 700; }
.prod-card-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
  min-height: 44px;
  color: var(--warm-gray-dark);
}
.prod-card-body .desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--warm-gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.prod-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  gap: 8px;
}
.prod-card-footer .vol { font-size: 11px; color: var(--warm-gray); font-weight: 500; }
.prod-card-footer .price { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1; color: var(--red-deep); letter-spacing: -0.01em; }
.btn-cart {
  background: var(--ink);
  color: var(--paper);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-cart:hover { background: var(--lime); color: var(--ink); }

/* ---------- Pro banner ---------- */
.pro-banner {
  background: var(--brown-deep);
  color: var(--cream);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  margin-bottom: 80px;
}
.pro-banner h2 { font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 40px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; margin: 12px 0 16px; }
.pro-banner p { font-size: 15px; line-height: 1.55; opacity: .9; max-width: 560px; margin: 0 0 24px; font-weight: 400; }
.pro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pro-stat { background: rgba(255,255,255,.08); border-radius: 14px; padding: 18px; }
.pro-stat .n { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--lime); letter-spacing: -0.01em; }
.pro-stat .l { font-size: 12.5px; opacity: .9; margin-top: 4px; font-weight: 500; }

@media (max-width: 800px) { .pro-banner { grid-template-columns: 1fr; } }

/* ---------- Product page ---------- */
.breadcrumbs { padding: 20px 0 0; font-size: 13px; color: var(--ink-soft); }
.breadcrumbs span.sep { margin: 0 6px; opacity: .5; }
.breadcrumbs .current { color: var(--ink); }

.product-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 24px 0 48px;
}
.gallery-main {
  background: var(--cream-2);
  border-radius: 20px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.gallery-main > .gallery-art-inner { width: 78%; height: 78%; }
.product-info h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 12px 0 16px;
  color: var(--warm-gray-dark);
}
.product-info p.desc { font-size: 15.5px; line-height: 1.6; color: var(--warm-gray); margin: 0 0 24px; font-weight: 400; }

/* Особенности — теги-таблетки */
.prod-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prod-features li {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Применение — выделенный блок */
.prod-application {
  background: var(--cream);
  border-left: 3px solid var(--lime);
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  margin: 0 0 22px;
}
.prod-application p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--warm-gray-dark); }
.prop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--cream);
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 24px;
}
.prop-grid .k { font-size: 11px; color: var(--ink-soft); letter-spacing: .1em; text-transform: uppercase; }
.prop-grid .v { font-size: 14px; font-weight: 600; margin-top: 2px; }
.price-block { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.price-block .price-now { font-family: var(--font-display); font-size: clamp(32px, 4vw, 42px); font-weight: 700; line-height: 1; color: var(--red-deep); letter-spacing: -0.015em; }
.qty {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.qty button { width: 34px; height: 34px; font-size: 18px; font-weight: 600; }
.qty input  { width: 40px; text-align: center; border: 0; outline: 0; font-weight: 700; background: transparent; }
.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.delivery-grid .item { display: flex; gap: 12px; }
.delivery-grid .item .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--brown-deep);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.delivery-grid .item .ico svg { width: 20px; height: 20px; }
.delivery-grid .item .t { font-size: 13px; font-weight: 700; }
.delivery-grid .item .d { font-size: 12px; color: var(--ink-soft); line-height: 1.4; }

@media (max-width: 900px) {
  .product-top { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Product tabs / related ---------- */
.tabs-row { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin: 48px 0 24px; flex-wrap: wrap; }
.tab-btn {
  padding: 14px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--warm-gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-btn.active { color: var(--ink); border-bottom-color: var(--lime); font-weight: 700; }

.related h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin-bottom: 18px; letter-spacing: -0.01em; color: var(--warm-gray-dark); }

/* ---------- Forms ---------- */
.auth-card {
  max-width: 460px;
  margin: 56px auto;
  background: var(--paper);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 8px 30px rgba(0,0,0,.05);
}
.auth-card h1 { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; color: var(--warm-gray-dark); }
.auth-card .sub { color: var(--warm-gray); margin-bottom: 22px; font-size: 14px; font-weight: 400; }
.auth-card .form-row { margin-bottom: 14px; }
.auth-card label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.input, textarea.input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font: inherit;
  color: var(--ink);
  transition: border-color .15s;
}
.input:focus, textarea.input:focus { outline: 0; border-color: var(--ink); }
.auth-card .actions { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.alert.error { background: #f7d7d7; color: #7a2424; }
.alert.success { background: #d8edd2; color: #2e6b1f; }
.alert.info { background: var(--accent-soft); color: var(--brown-deep); }

/* ---------- Cart / Checkout ---------- */
.cart-page { padding: 32px 0 64px; }
.cart-page h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin: 0 0 24px; letter-spacing: -0.01em; color: var(--warm-gray-dark); }
.cart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.cart-list { background: var(--paper); border-radius: 16px; padding: 6px 20px; }
.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-row .thumb { width: 80px; height: 80px; border-radius: 12px; background: var(--cream-2); display: grid; place-items: center; padding: 8px; }
.cart-row h4 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 0 0 4px; color: var(--warm-gray-dark); letter-spacing: -0.005em; }
.cart-row .small { font-size: 12px; color: var(--warm-gray); }
.cart-row .line-total { font-family: var(--font-display); font-size: 20px; font-weight: 700; min-width: 90px; text-align: right; color: var(--red-deep); letter-spacing: -0.01em; }
.cart-row .remove { color: var(--ink-soft); font-size: 13px; }
.cart-row .remove:hover { color: #7a2424; }

.summary {
  background: var(--paper);
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 100px;
}
.summary h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 0 0 16px; color: var(--warm-gray-dark); letter-spacing: -0.005em; }
.summary .line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--warm-gray); }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.summary .total .v { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--red-deep); letter-spacing: -0.015em; }

@media (max-width: 900px) {
  .cart-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cart-row {
    display: block;
    position: relative;
    grid-template-columns: none;
    padding: 16px 32px 16px 0;
  }
  .cart-row::after { content: ''; display: block; clear: both; }
  .cart-row .thumb { float: left; width: 64px; height: 64px; margin-right: 14px; }
  .cart-row > div:nth-child(2) form { display: block; margin-top: 8px; }
  .cart-row .line-total { display: block; text-align: left; margin-top: 10px; padding-left: 78px; }
  .cart-row > form { position: absolute; top: 16px; right: 0; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--brown-deep);
  color: var(--cream);
  padding: 56px 0 28px;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.footer h4 { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .7; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { font-size: 13px; opacity: .9; }
.footer ul a:hover { opacity: 1; color: var(--accent); }
.footer-partner {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 36px;
  padding-top: 18px;
  font-size: 12px;
  line-height: 1.7;
  opacity: .6;
}
.footer-bottom {
  margin-top: 14px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  opacity: .7;
}
.footer-bottom a { color: var(--cream); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Admin ---------- */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-side {
  background: var(--brown-deep);
  color: var(--cream);
  padding: 24px 18px;
}
.admin-side .brand-mark { background: var(--accent); }
.admin-side .brand { margin-bottom: 24px; }
.admin-side .brand-logo--plain { width: 96px; }
.admin-side .brand .name { color: var(--cream); }
.admin-side nav { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.admin-side nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: rgba(246,243,236,.85);
}
.admin-side nav a.active, .admin-side nav a:hover { background: rgba(255,255,255,.07); color: var(--cream); }
.admin-side .meta { margin-top: auto; font-size: 12px; opacity: .7; padding-top: 24px; }
.admin-main { padding: 28px clamp(20px, 3vw, 40px) 64px; background: var(--cream); }
.admin-main h1 { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin: 0 0 20px; letter-spacing: -0.01em; color: var(--warm-gray-dark); }

.card {
  background: var(--paper);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 1px 0 var(--line);
}
.card h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.005em; color: var(--warm-gray-dark); }

table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 12px 10px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--line); }
table.data th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .actions { display: flex; gap: 6px; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--paper); border-radius: 14px; padding: 18px 20px; }
.kpi .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.kpi .v { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin-top: 4px; color: var(--red-deep); letter-spacing: -0.015em; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
  .admin-side nav { flex-direction: row; flex-wrap: wrap; }
  .admin-side .meta { display: none; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
}

/* ---------- Admin: тот же Avenir/Nunito Sans, более плотные размеры ---------- */
.admin-body,
.admin-body * {
  font-family: var(--font-sans);
  letter-spacing: 0;
}
.admin-body .serif {
  font-family: var(--font-display);
  letter-spacing: -0.005em;
  font-weight: 700;
}
.admin-body .admin-main h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.admin-body .card h2       { font-size: 16px; font-weight: 700; letter-spacing: -0.005em; }
.admin-body .kpi .v        { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.admin-body .auth-card h1  { font-size: 22px; font-weight: 700; }
.admin-body .brand-text .name { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.01em; }
.admin-body .brand-mark    { font-family: var(--font-display); }
.admin-body table.data,
.admin-body table.data th,
.admin-body table.data td  { font-variant-numeric: tabular-nums; }
.admin-body .eyebrow       { font-size: 10.5px; letter-spacing: 0.12em; font-weight: 700; }

/* ---------- Fly-to-cart анимация ---------- */
.fly-clone {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.18));
  transition:
    transform 750ms cubic-bezier(.5, -0.2, .3, 1),
    opacity   750ms cubic-bezier(.4, 0, .6, 1);
}
.cart-bump { animation: cart-bump-anim .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cart-bump-anim {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.cart-count-pop { animation: cart-count-pop-anim .35s ease; }
@keyframes cart-count-pop-anim {
  0%   { transform: scale(.4); opacity: 0; }
  100% { transform: scale(1);  opacity: 1; }
}

/* мини-toast при добавлении */
.cart-toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
  pointer-events: none;
}
.cart-toast.show { opacity: 1; transform: translateY(0); }

/* ---------- Статейные страницы (Обучение, Мастера и т.п.) ---------- */
.article { padding: 32px 0 64px; }
.article .container { max-width: 880px; }
.article-head { margin-bottom: 36px; }
.article-head h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--warm-gray-dark);
  margin: 14px 0 18px;
}
.article-head h1 em { font-style: normal; color: var(--red-deep); }
.article-head .lead { font-size: 17px; line-height: 1.55; color: var(--warm-gray); max-width: 720px; margin: 0; }

.article-section { margin: 36px 0; }
.article-section h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--warm-gray-dark);
  margin: 8px 0 16px;
}
.article-section h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0 8px;
  color: var(--warm-gray-dark);
}
.article-section p {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 14px;
  color: var(--warm-gray-dark);
}
.article-section p.lead-2 {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  border-left: 3px solid var(--lime);
  padding: 4px 0 4px 18px;
  margin: 0;
}
.article-section a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--lime); }
.article-section a:hover { text-decoration-color: var(--lime-deep); }
.article-section strong { font-weight: 700; color: var(--ink); }

/* Контент инфостраниц из WYSIWYG-редактора (page.php). */
.page-content ul, .page-content ol { margin: 0 0 16px; padding-left: 22px; }
.page-content li { font-size: 15.5px; line-height: 1.65; margin: 0 0 6px; color: var(--warm-gray-dark); }
.page-content em { font-style: italic; }
.page-content u { text-decoration: underline; }
.page-content blockquote {
  margin: 0 0 16px; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--lime); color: var(--ink); font-style: italic;
}
.page-content .ql-align-center { text-align: center; }
.page-content .ql-align-right  { text-align: right; }
.page-content .ql-align-justify { text-align: justify; }

.course-list { list-style: none; padding: 0; margin: 12px 0 18px; }
.course-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--warm-gray-dark);
  border-bottom: 1px solid var(--line);
}
.course-list li:last-child { border-bottom: 0; }
.course-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 10px; height: 2px;
  background: var(--lime);
}

.courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
@media (max-width: 760px) { .courses-grid { grid-template-columns: 1fr; } }

.course-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.course-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.course-card-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 2px;
}
/* Цена курса — единственный «брендовый красный» в карточке (цены = красный, как в каталоге) */
.course-card-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--red-deep);
  letter-spacing: -0.01em;
}
.course-card h3 { margin: 4px 0 10px; }
.course-card p { font-size: 14.5px; line-height: 1.55; color: var(--warm-gray-dark); margin: 0 0 10px; }
.course-card .course-card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--warm-gray);
  font-weight: 500;
}
.course-meta {
  background: var(--cream);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
  font-size: 13.5px;
  color: var(--warm-gray-dark);
}
.course-meta > div { padding: 2px 0; }

.article-cta {
  background: var(--lime-soft);
  border-radius: 20px;
  padding: 32px clamp(20px, 4vw, 40px);
  margin: 40px 0 0;
  text-align: center;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
}
.article-cta p { font-size: 15px; color: var(--warm-gray-dark); margin: 0 0 18px; }
.article-cta-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Empty / pending ---------- */
.empty { text-align: center; padding: 56px 16px; color: var(--ink-soft); }
.empty h2 { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--warm-gray-dark); margin: 0 0 8px; letter-spacing: -0.01em; }

.pending-banner {
  background: var(--accent-soft);
  color: var(--brown-deep);
  padding: 14px 18px;
  border-radius: 12px;
  margin: 16px 0;
  font-size: 14px;
}

/* ===================== Mobile polish ===================== */
@media (max-width: 900px) {
  .topbar { font-size: 11px; }
  .topbar .container { gap: 10px; padding-top: 6px; padding-bottom: 6px; }
  .topbar .container > span:first-child {
    flex: 1; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .header .container { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .brand-mark { width: 34px; height: 34px; font-size: 14px; }
  .brand-text .name { font-size: 17px; }
  .brand-text .sub { display: none; }
  .header-actions { gap: 6px; margin-left: auto; }
  .icon-btn { width: 36px; height: 36px; }
  .cart-btn { padding: 8px 12px; }
}

@media (max-width: 700px) {
  :root { --pad: 16px; }
  body { font-size: 14.5px; }

  /* Hero */
  .hero { padding-top: 24px; }
  .hero-grid { gap: 20px; }
  .hero h1 { font-size: clamp(20px, 6vw, 30px); margin: 10px 0 14px; }
  .hero p.lead { font-size: 14.5px; margin-bottom: 22px; }
  .hero-actions { gap: 8px; margin-bottom: 26px; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { padding: 11px 16px; font-size: 13px; }
  .trust { gap: 18px 28px; }
  .trust .n { font-size: 24px; }
  .trust .l { font-size: 11px; }

  /* Hero card / slider */
  .hero-card { min-height: 300px; padding: 18px; border-radius: 16px; }
  .hero-card-bottle { width: min(60%, 220px); }
  .hero-card-quote {
    left: 14px; right: 14px; bottom: 14px;
    max-width: none;
    padding: 12px 14px;
    border-radius: 12px;
  }
  .hero-card-quote .eyebrow { font-size: 9.5px; letter-spacing: .14em; }
  .hero-slide-name { font-size: 16px; }
  .hero-slide-meta { font-size: 12px; }
  .hero-dots { top: 12px; right: 12px; gap: 6px; }
  .hero-dot { width: 22px; height: 3px; }
  .hero-dot.active { width: 30px; }

  /* Phases */
  .phases { padding: 40px 0; margin-top: 8px; }
  .phases-head { margin-bottom: 20px; }
  .phase-cell { padding: 18px; min-height: 0; }
  .phase-cell .num { font-size: 56px; }
  .phase-cell h3 { font-size: 17px; }
  .phase-cell p { font-size: 12.5px; }

  /* Catalog headings */
  .catalog { padding: 40px 0; }
  .catalog-section { margin-bottom: 36px; }
  .catalog-section-head {
    align-items: flex-start;
    padding-bottom: 10px;
    margin-bottom: 18px;
    gap: 10px;
  }
  .catalog-section-head > div:first-child { gap: 14px; }
  .catalog-section-head .num { font-size: 56px; line-height: .85; }
  .catalog-section-head h2 { font-size: 22px; }
  .catalog-section-head .desc {
    text-align: left;
    max-width: none;
    width: 100%;
    font-size: 12.5px;
  }

  /* Product cards */
  .products-grid { gap: 14px; }
  .prod-card-art { padding: 8px; }
  .prod-card-body { padding: 14px 14px 16px; gap: 6px; }
  .prod-card-body h3 { font-size: 16px; min-height: 0; }
  .prod-card-footer .price { font-size: 18px; }
  .btn-cart { padding: 8px 12px; font-size: 12px; }

  /* Pro banner */
  .pro-banner { padding: 26px 22px; border-radius: 18px; margin-bottom: 48px; }
  .pro-banner h2 { font-size: 22px; }
  .pro-banner p { font-size: 13.5px; margin-bottom: 18px; }
  .pro-stat { padding: 14px; }
  .pro-stat .n { font-size: 22px; }
  .pro-stat .l { font-size: 11.5px; }

  /* Product page */
  .breadcrumbs { font-size: 12px; padding-top: 14px; }
  .breadcrumbs .sep { margin: 0 4px; }
  .product-top { padding: 18px 0 36px; gap: 16px; }
  .product-info h1 { font-size: 26px; margin: 8px 0 12px; }
  .product-info p.desc { font-size: 14.5px; margin-bottom: 18px; }
  .prop-grid { padding: 12px; gap: 10px; }
  .prop-grid .v { font-size: 13.5px; }
  .price-block { margin-bottom: 12px; }
  .price-block .price-now { font-size: 30px; }
  .delivery-grid { gap: 10px; }
  .delivery-grid .item .ico { width: 36px; height: 36px; }
  .delivery-grid .item .ico svg { width: 18px; height: 18px; }
  .delivery-grid .item .t { font-size: 12.5px; }
  .delivery-grid .item .d { font-size: 11.5px; }

  /* Cart — переделываем строку в float-схему */
  .cart-page { padding: 22px 0 48px; }
  .cart-grid { gap: 18px; }
  .cart-list { padding: 4px 14px; }
  .cart-row {
    display: block !important;
    position: relative;
    padding: 16px 32px 16px 0;
  }
  .cart-row::after { content: ''; display: block; clear: both; }
  .cart-row .thumb { float: left; width: 56px; height: 56px; margin-right: 12px; }
  .cart-row h4 { font-size: 15.5px; margin-bottom: 2px; }
  .cart-row .small { font-size: 12px; }
  .cart-row > div:nth-child(2) form { display: block; margin-top: 8px; }
  .cart-row .qty { transform: scale(.92); transform-origin: left center; }
  .cart-row .line-total {
    display: block;
    text-align: left;
    margin-top: 10px;
    padding-left: 68px;
    font-size: 18px;
    min-width: 0;
  }
  .cart-row > form { position: absolute; top: 14px; right: 0; }
  .cart-row .remove { font-size: 18px; padding: 4px 8px; }

  .summary { padding: 18px; position: static; }
  .summary h3 { font-size: 18px; }
  .summary .total .v { font-size: 22px; }

  /* Auth / Profile */
  .auth-card { margin: 28px auto; padding: 24px 20px; border-radius: 16px; }
  .auth-card h1 { font-size: 24px; }
  .auth-card .actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .auth-card .actions .btn-primary { width: 100%; }

  /* Account / профиль — раскладка в один столбец */
  .container > div[style*="grid-template-columns:1fr 2fr"] { grid-template-columns: 1fr !important; gap: 16px !important; }
  table.data th, table.data td { padding: 10px 6px; font-size: 12.5px; }

  /* Footer */
  .footer { padding: 40px 0 20px; margin-top: 32px; }
  .footer-grid { gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }

  /* PVZ-picker */
  .pvz-controls { flex-wrap: wrap; }
  .pvz-controls input.input { flex: 1 1 100%; }
  .pvz-controls .btn-primary { width: 100%; }
  .pvz-grid { gap: 10px; }
  .pvz-map { min-height: 280px; }
  .pvz-list { max-height: 200px; }

  /* Admin */
  .admin-side { padding: 10px 14px; gap: 10px; }
  .admin-side .brand { gap: 8px; }
  .admin-side .brand-text .name { font-size: 14px; }
  .admin-side nav { gap: 4px; flex-wrap: wrap; }
  .admin-side nav a { padding: 6px 10px; font-size: 13px; }
  .admin-main { padding: 18px 16px 48px; }
  .admin-main h1 { font-size: 19px; }
  .kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi .v { font-size: 22px; }

  /* Тост */
  .cart-toast { right: 14px; bottom: 14px; left: 14px; text-align: center; }
}

@media (max-width: 480px) {
  .delivery-grid { grid-template-columns: 1fr; }
  .pro-stats { grid-template-columns: 1fr; }
  .prop-grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .hero-card { min-height: 260px; }
  .hero-card-bottle { width: min(65%, 200px); }
  .catalog-section-head h2 { font-size: 19px; }
  .products-grid { gap: 12px; }
  .price-block { flex-direction: column; align-items: flex-start; gap: 8px; }
}
