/* ------------------------------------------------------------------
   Skin's Best — токены и компоненты
   ------------------------------------------------------------------ */
:root {
  --lime: #b8c542;
  --lime-deep: #9aab2e;
  --lime-soft: #e8ecc4;
  --cream: #f6f3ec;
  --cream-2: #efebde;
  --paper: #ffffff;
  --ink: #2c2a24;
  --ink-soft: #6e6a5e;
  --line: #e4dfd0;
  --brown: #7a6f5c;
  --brown-deep: #4a4438;

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

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --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;
  letter-spacing: 0.005em;
  -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 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.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(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--brown-deep); }
.btn-primary.lime { background: var(--accent); color: var(--ink); }
.btn-primary.lime:hover { background: var(--accent-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: 12px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px;
  background: var(--accent);
  display: grid; place-items: center;
  border-radius: 6px;
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .04em;
}
.brand-text .name { font-family: var(--font-serif); font-size: 20px; font-weight: 600; line-height: 1.1; }
.brand-text .sub  { font-size: 10px; letter-spacing: .22em; color: var(--ink-soft); }

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

.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(--accent);
  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-serif);
  font-size: clamp(36px, 5.6vw, 72px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
}
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero p.lead { font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 480px; margin: 0 0 28px; }
.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-serif); font-size: 32px; font-weight: 500; }
.trust .l { font-size: 12px; color: var(--ink-soft); letter-spacing: .02em; }

.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;
  background: rgba(44,42,36,.85);
  color: var(--cream);
  padding: 16px 20px;
  border-radius: 14px;
  max-width: 280px;
  backdrop-filter: blur(6px);
}
.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-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.08;
  max-width: 580px;
  margin: 8px 0 0;
}
.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-serif);
  font-size: 80px;
  line-height: .85;
  color: var(--accent);
  font-weight: 500;
}
.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(--ink-soft); text-transform: uppercase; }
.phase-cell h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.phase-cell p  { font-size: 13px; line-height: 1.55; color: var(--ink-soft); 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-serif);
  font-size: clamp(64px, 8vw, 100px);
  line-height: .85;
  color: var(--accent);
  font-weight: 500;
}
.catalog-section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  line-height: 1;
  margin: 4px 0 0;
}
.catalog-section-head .desc {
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 360px;
  text-align: right;
}

.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(--ink-soft); text-transform: uppercase; }
.prod-card-body h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  margin: 0;
  min-height: 44px;
}
.prod-card-body .desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  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(--ink-soft); }
.prod-card-footer .price { font-family: var(--font-serif); font-size: 22px; font-weight: 600; line-height: 1; }
.btn-cart {
  background: var(--ink);
  color: var(--cream);
  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(--brown-deep); }

/* ---------- 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-serif); font-size: clamp(26px, 3.5vw, 40px); font-weight: 500; line-height: 1.08; margin: 12px 0 16px; }
.pro-banner p { font-size: 15px; line-height: 1.55; opacity: .85; max-width: 560px; margin: 0 0 24px; }
.pro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pro-stat { background: rgba(255,255,255,.06); border-radius: 14px; padding: 18px; }
.pro-stat .n { font-family: var(--font-serif); font-size: 28px; font-weight: 500; color: var(--accent); }
.pro-stat .l { font-size: 12.5px; opacity: .85; margin-top: 4px; }

@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-serif);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 12px 0 16px;
}
.product-info p.desc { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 24px; }
.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-serif); font-size: clamp(32px, 4vw, 42px); font-weight: 600; line-height: 1; }
.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: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-btn.active { color: var(--ink); border-bottom-color: var(--ink); }

.related h2 { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 32px); font-weight: 500; margin-bottom: 18px; }

/* ---------- 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-serif); font-size: 28px; font-weight: 500; margin: 0 0 6px; }
.auth-card .sub { color: var(--ink-soft); margin-bottom: 22px; font-size: 14px; }
.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-serif); font-size: clamp(28px, 4vw, 40px); font-weight: 500; margin: 0 0 24px; }
.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-serif); font-size: 18px; font-weight: 500; margin: 0 0 4px; }
.cart-row .small { font-size: 12px; color: var(--ink-soft); }
.cart-row .line-total { font-family: var(--font-serif); font-size: 20px; font-weight: 600; min-width: 90px; text-align: right; }
.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-serif); font-size: 22px; font-weight: 500; margin: 0 0 16px; }
.summary .line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--ink-soft); }
.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-serif); font-size: 28px; font-weight: 600; }

@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-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  opacity: .7;
}
@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 .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-serif); font-size: 30px; font-weight: 500; margin: 0 0 20px; }

.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-serif); font-size: 22px; font-weight: 500; margin: 0 0 14px; }

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-serif); font-size: 28px; font-weight: 600; margin-top: 4px; }
@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: классические шрифты (без серифа) ---------- */
.admin-body,
.admin-body * {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0;
}
.admin-body .serif {
  font-family: inherit;
  letter-spacing: 0;
  font-weight: 600;
}
.admin-body .admin-main h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.admin-body .card h2       { font-size: 16px; font-weight: 600; 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: 600; }
.admin-body .brand-text .name { font-family: inherit; font-weight: 700; font-size: 16px; letter-spacing: -0.005em; }
.admin-body .brand-mark    { font-family: inherit; }
.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; }

/* ---------- 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); }

/* ---------- Empty / pending ---------- */
.empty { text-align: center; padding: 56px 16px; color: var(--ink-soft); }
.empty h2 { font-family: var(--font-serif); font-size: 28px; font-weight: 500; color: var(--ink); margin: 0 0 8px; }

.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(28px, 8.5vw, 42px); 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; }
}
