/* ===== Дизайн-токены (DIAULTRADERM) ===== */
:root {
  --c-blue: #4189C9;
  --c-blue-dark: #2f6cb0;
  --c-orange: #F49100;
  --c-peach: #F9BD79;
  --c-bg-blue-soft: #E4F0F6;
  --c-bg-blue-deep: #B9DCE9;
  --c-tile-blue: #E3EBF2;
  --c-tile-soft: #EEF4F8;
  --c-ink: #1B2C3D;
  --c-text-2: #5a6573;
  --c-muted: #8DA0AD;
  --c-muted-2: #9aa4ad;
  --c-line: #EEF3F6;
  --c-line-2: #F0F4F7;
  --c-success: #0B8F4E;
  --c-success-bg: #E2F6EC;
  --c-page: #F4F8FB;
  --c-chip-bg: #F2F7FA;
  --c-err: #c92d2d;

  --r-card: 18px;
  --r-cta: 16px;
  --r-tile: 14px;
  --r-input: 13px;

  --sh-card: 0 3px 12px rgba(27, 44, 61, 0.05);
  --sh-card-strong: 0 6px 20px rgba(27, 44, 61, 0.07);
  --sh-cta-blue: 0 8px 18px rgba(65, 137, 201, 0.32);
  --sh-cta-orange: 0 8px 18px rgba(244, 145, 0, 0.32);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--c-page);
  color: var(--c-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > footer { flex: 0 0 auto; }
a { color: var(--c-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.dim { color: var(--c-muted); }
.small { font-size: 12.5px; }

/* ===== Header ===== */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--c-line); }
.header-inner {
  display: flex; align-items: center; gap: 28px;
  height: 74px; padding: 0 36px;
  max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--c-ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; object-fit: contain; }
.brand-text { font-size: 19px; font-weight: 800; letter-spacing: 0.03em; line-height: 1; }
.brand-orange { color: var(--c-orange); }
.brand-blue   { color: var(--c-blue); }

.search {
  flex: 1; max-width: 440px;
  display: flex; align-items: center; gap: 10px;
  background: var(--c-chip-bg); border-radius: 13px; padding: 11px 16px;
}
.search input {
  flex: 1; border: 0; background: transparent; outline: none;
  font: 400 14px Manrope, sans-serif; color: var(--c-ink); min-width: 0;
}
.search input::placeholder { color: #a7b3bd; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; flex: none; }

.user-chip {
  background: transparent; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  color: var(--c-ink); font: 600 14px Manrope, sans-serif;
  padding: 4px 6px;
}
.user-chip:hover { color: var(--c-blue); }

.cart-pill {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  background: var(--c-blue); color: #fff;
  border: 0; border-radius: 13px;
  padding: 10px 16px; cursor: pointer;
  font: 800 14px Manrope, sans-serif;
}
.cart-pill:hover { background: var(--c-blue-dark); }
.cart-pill-sum { color: #fff; }
.cart-pill-badge {
  position: absolute; top: -6px; left: 8px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px;
  background: var(--c-orange); color: #fff;
  font: 800 10px Manrope; letter-spacing: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

.category-nav { background: #fff; border-bottom: 1px solid var(--c-line); }
.category-nav-inner {
  display: flex; align-items: center; gap: 26px;
  height: 50px; padding: 0 36px;
  max-width: 1180px; margin: 0 auto;
}
.cat {
  font: 700 13.5px Manrope; color: var(--c-text-2);
  cursor: pointer; height: 50px; display: flex; align-items: center;
  border-bottom: 2px solid transparent;
}
.cat:hover { color: var(--c-blue); }
.cat.active { color: var(--c-blue); border-bottom-color: var(--c-blue); }

/* ===== Catalog layout ===== */
main#app-main { background: var(--c-page); }
.catalog-layout {
  display: flex;
  max-width: 1180px; margin: 0 auto;
}
.catalog-sidebar {
  width: 240px; flex: none;
  background: #fff;
  padding: 26px 22px;
  border-right: 1px solid #EAF1F5;
}
.sidebar-eyebrow {
  font: 800 12px Manrope; color: var(--c-muted);
  letter-spacing: 0.05em; margin-bottom: 14px;
}
.sidebar-check {
  display: flex; align-items: center; gap: 9px;
  font: 500 13px Manrope; color: var(--c-text-2);
  cursor: pointer; margin-bottom: 12px;
  user-select: none;
}
.sidebar-check input { display: none; }
.sidebar-check .box {
  width: 17px; height: 17px; border-radius: 5px;
  flex: none; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1.5px solid #cdd8de;
}
.sidebar-check input:checked + .box {
  background: var(--c-blue); border-color: var(--c-blue);
}
.sidebar-check input:checked + .box::after {
  content: ''; width: 11px; height: 11px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12l5 5L20 6'/></svg>") center/contain no-repeat;
}
.sidebar-check input:checked ~ .lbl,
.sidebar-check input:checked + .box + .lbl { color: var(--c-ink); }

.sidebar-title {
  font: 700 13px Manrope; color: var(--c-ink);
  margin: 22px 0 11px;
}
.price-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.price-chip {
  font: 700 12.5px Manrope; color: var(--c-text-2);
  background: var(--c-chip-bg); border: 0; cursor: pointer;
  padding: 7px 12px; border-radius: 10px;
}
.price-chip.active { background: var(--c-blue); color: #fff; }

.toggle {
  display: flex; align-items: center; gap: 9px;
  font: 500 13px Manrope; color: var(--c-ink);
  margin-top: 22px; cursor: pointer; user-select: none;
}
.toggle input { display: none; }
.toggle .sw {
  width: 34px; height: 19px; border-radius: 11px;
  background: #cdd8de; flex: none;
  display: flex; align-items: center; padding: 0 2px;
  justify-content: flex-start;
  transition: background 0.15s;
}
.toggle .sw::after {
  content: ''; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; transition: transform 0.15s;
}
.toggle input:checked + .sw { background: var(--c-blue); }
.toggle input:checked + .sw::after { transform: translateX(15px); }

/* ===== Grid area ===== */
.catalog-grid-area {
  flex: 1;
  padding: 26px 30px 40px;
  min-width: 0;
}
.grid-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.grid-title { font: 800 15px Manrope; color: var(--c-ink); }
.grid-title .count { color: var(--c-muted); font-weight: 600; }
.sort-pill {
  display: flex; align-items: center; gap: 8px;
  font: 500 12.5px Manrope; color: var(--c-text-2);
  background: #fff; border: 0; cursor: pointer;
  padding: 8px 13px; border-radius: 10px;
}
.sort-pill b { color: var(--c-ink); font-weight: 800; }

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

.prod-card {
  background: #fff; border-radius: var(--r-card); padding: 16px;
  box-shadow: var(--sh-card);
  display: flex; flex-direction: column;
}
.prod-img {
  height: 150px; border-radius: var(--r-tile);
  background: var(--c-tile-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 13px;
  overflow: hidden; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(27,44,61,0.10);
}
.prod-img img { max-width: 100%; max-height: 126px; object-fit: contain; }
.prod-name {
  margin: 0; font: 700 15px Manrope; color: var(--c-ink);
  line-height: 1.2; cursor: pointer;
}
.prod-meta { font-size: 12px; color: var(--c-muted-2); margin: 4px 0 12px; }
.prod-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.prod-price { font: 800 18px Manrope; color: var(--c-ink); }

.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 0; cursor: pointer;
  border-radius: var(--r-cta);
  font: 800 14px Manrope; color: #fff;
  padding: 0 14px; height: 42px;
}
.btn-cta:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-blue   { background: var(--c-blue);   box-shadow: var(--sh-cta-blue); }
.btn-blue:hover { background: var(--c-blue-dark); }
.btn-orange { background: var(--c-orange); box-shadow: var(--sh-cta-orange); }
.btn-orange:hover { filter: brightness(1.02); }
.btn-cta.full { width: 100%; height: 56px; font-size: 15px; border-radius: 16px; }

/* Степпер (общий) */
.qty {
  display: flex; align-items: center; gap: 10px;
  background: var(--c-chip-bg); border-radius: 11px;
  padding: 6px 7px;
}
.qty-btn {
  width: 28px; height: 28px; border-radius: 8px;
  background: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-blue);
}
.qty-btn.qty-plus { background: var(--c-blue); color: #fff; }
.qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.qty span { font: 800 14px Manrope; min-width: 12px; text-align: center; color: var(--c-ink); }

/* ===== Product page ===== */
.product-page {
  max-width: 1180px; margin: 0 auto;
  padding: 24px 36px 40px;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 0; cursor: pointer;
  font: 700 13.5px Manrope; color: var(--c-text-2);
  margin-bottom: 18px; padding: 0;
}
.back-btn:hover { color: var(--c-blue); }
.product-inner {
  display: flex; gap: 40px; align-items: flex-start;
}
.gallery {
  width: 440px; flex: none;
  height: 400px; border-radius: 24px;
  background: var(--c-tile-blue);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(27,44,61,0.10);
}
.gallery img { max-width: 100%; max-height: 348px; object-fit: contain; }

.product-info { flex: 1; min-width: 0; }
.badges { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.badge {
  font: 700 11.5px Manrope; padding: 5px 11px; border-radius: 9px;
}
.badge-stock { color: var(--c-success); background: var(--c-success-bg); }
.badge-cat   { color: var(--c-blue);    background: var(--c-bg-blue-soft); }
.badge-vol   { color: var(--c-text-2);  background: var(--c-chip-bg); }

.product-title { margin: 0; font: 800 30px Manrope; color: var(--c-ink); letter-spacing: -0.02em; line-height: 1.1; }
.product-sub   { font: 500 15px Manrope; color: var(--c-muted); margin-top: 6px; }
.product-desc  { font: 400 15px Manrope; line-height: 1.65; color: var(--c-text-2); margin: 18px 0 22px; max-width: 560px; }

.ingredients-eyebrow {
  font: 800 12px Manrope; color: var(--c-muted);
  letter-spacing: 0.04em; margin-bottom: 12px;
}
.ingredients-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 9px 20px; margin-bottom: 22px; max-width: 560px;
}
.ing-item { display: flex; align-items: center; gap: 9px; }
.ing-bullet {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-bg-blue-soft); flex: none;
  display: flex; align-items: center; justify-content: center;
}
.ing-item span { font: 400 13.5px Manrope; color: var(--c-ink); }

.buy-bar {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border-radius: 20px; padding: 18px 22px;
  box-shadow: var(--sh-card-strong); max-width: 560px;
}
.buy-price .buy-label { font: 500 12px Manrope; color: var(--c-muted); }
.buy-price .buy-value { font: 800 28px Manrope; color: var(--c-ink); line-height: 1.1; }
.buy-bar .btn-cta { flex: 1; height: 56px; font-size: 15px; border-radius: 16px; }

/* ===== Checkout ===== */
.checkout-page {
  max-width: 1180px; margin: 0 auto;
  padding: 24px 36px 40px;
}
.checkout-layout {
  display: flex; gap: 30px; align-items: flex-start;
}
.checkout-col-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.card-block {
  background: #fff; border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 3px 14px rgba(27, 44, 61, 0.05);
}
.card-block h3 { margin: 0 0 16px; font: 800 16px Manrope; color: var(--c-ink); }
.eyebrow {
  font: 800 12px Manrope; color: var(--c-muted);
  letter-spacing: 0.05em; margin-bottom: 14px;
}

.cart-line {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--c-line-2);
}
.cart-line:first-of-type { border-top: 0; padding-top: 4px; }
.cart-line-img {
  width: 62px; height: 62px; border-radius: 14px;
  background: var(--c-tile-blue); flex: none;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(27,44,61,0.10);
}
.cart-line-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { font: 700 15px Manrope; color: var(--c-ink); }
.cart-line-sub  { font: 400 12.5px Manrope; color: var(--c-muted-2); margin-top: 4px; }
.cart-line-sum  { width: 110px; text-align: right; font: 800 16px Manrope; color: var(--c-ink); }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.field label { font: 500 12px Manrope; color: var(--c-muted); }
.field input, .field select {
  border: 1px solid var(--c-line);
  background: #fff; border-radius: 12px;
  padding: 12px 14px; font: 500 14px Manrope; color: var(--c-ink);
  outline: none;
}
.field input:focus { border-color: var(--c-blue); }

.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.opt-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  border: 1.5px solid var(--c-line);
  border-radius: 13px; cursor: pointer;
  margin-bottom: 10px;
}
.opt-row:last-child { margin-bottom: 0; }
.opt-row.active { border-color: var(--c-blue); background: #F4F9FC; }
.opt-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #cdd8de; flex: none;
  transition: border 0.15s;
}
.opt-row.active .opt-radio { border: 5px solid var(--c-blue); }
.opt-info { flex: 1; }
.opt-name { font: 700 14px Manrope; color: var(--c-ink); }
.opt-sub  { font: 400 11.5px Manrope; color: var(--c-muted); }
.opt-price { font: 800 14px Manrope; color: var(--c-ink); }

.pay-row { display: flex; gap: 11px; margin-bottom: 14px; }
.pay-opt {
  flex: 1; text-align: center; cursor: pointer;
  border: 1.5px solid var(--c-line);
  border-radius: 13px; padding: 13px;
}
.pay-opt.active { border-color: var(--c-blue); background: #F4F9FC; }
.pay-opt b { display: block; font: 800 14px Manrope; color: var(--c-ink); }
.pay-opt small { font-size: 10.5px; color: var(--c-muted); margin-top: 3px; display: block; }

.promo-row {
  display: flex; align-items: center; gap: 9px;
  background: var(--c-chip-bg); border-radius: 12px;
  padding: 11px 13px;
}
.promo-row input {
  flex: 1; border: 0; outline: none; background: transparent;
  font: 600 13px Manrope; color: var(--c-ink); min-width: 0;
}
.promo-row input::placeholder { color: var(--c-muted); font-weight: 500; }
.promo-apply {
  background: transparent; border: 0; cursor: pointer;
  font: 700 13px Manrope; color: var(--c-blue);
}

.checkout-summary {
  width: 320px; flex: none;
  background: #fff; border-radius: 20px; padding: 24px;
  box-shadow: var(--sh-card-strong);
  position: sticky; top: 148px;
}
.checkout-summary h3 { margin: 0 0 18px; font: 800 16px Manrope; color: var(--c-ink); }
.sum-row {
  display: flex; justify-content: space-between;
  margin-bottom: 11px;
}
.sum-row .label { font: 400 13.5px Manrope; color: var(--c-muted); }
.sum-row .value { font: 700 13.5px Manrope; color: var(--c-ink); }
.sum-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; margin: 8px 0 18px;
  border-top: 1px solid var(--c-line-2);
  border-bottom: 1px solid var(--c-line-2);
}
.sum-total .label { font: 800 15px Manrope; color: var(--c-ink); }
.sum-total .value { font: 800 20px Manrope; color: var(--c-ink); }
.summary-note {
  font: 400 11.5px Manrope; color: var(--c-muted-2);
  text-align: center; line-height: 1.5; margin-top: 12px;
}

/* ===== Success screen ===== */
.success-page {
  background: var(--c-bg-blue-deep);
  padding: 64px 36px;
  display: flex; flex-direction: column; align-items: center;
  position: relative; overflow: hidden;
  min-height: 60vh;
}
.success-page .peach {
  position: absolute; width: 520px; height: 520px;
  border-radius: 50%; background: var(--c-peach); opacity: 0.4;
  bottom: -300px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.success-inner {
  position: relative; display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 420px;
}
.success-badge {
  width: 88px; height: 88px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(27,44,61,0.16);
  margin-bottom: 22px;
}
.success-title { font: 800 26px Manrope; color: var(--c-ink); text-align: center; }
.success-sub   { font: 500 14.5px Manrope; color: #42586a; text-align: center; margin-top: 8px; line-height: 1.5; }
.success-card {
  background: #fff; border-radius: 16px; padding: 14px 16px;
  margin-top: 22px; width: 100%;
  display: flex; align-items: center; gap: 11px;
  box-shadow: 0 8px 20px rgba(27,44,61,0.08);
}
.success-card .ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: #D4E8F2; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.success-card .text { flex: 1; min-width: 0; }
.success-card .text .top { font: 400 12px Manrope; color: var(--c-muted); }
.success-card .text .bot { font: 700 13.5px Manrope; color: var(--c-ink); }
.success-cta {
  margin-top: 24px; width: 100%;
}

/* ===== Modal ===== */
/* :not([hidden]) — иначе .modal перебьёт HTML-атрибут hidden (одинаковая специфичность, класс выигрывает как позднее правило) */
.modal[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal-bg { position: absolute; inset: 0; background: rgba(15, 30, 45, 0.42); }
.modal-panel {
  position: relative; background: #fff; border-radius: 20px;
  max-width: 400px; width: calc(100% - 32px);
  padding: 6px 24px 24px;
  box-shadow: 0 30px 70px rgba(27,44,61,0.28);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.modal-head h3 { margin: 0; font: 800 18px Manrope; color: var(--c-ink); }
.icon-btn {
  background: transparent; border: 0; cursor: pointer;
  font-size: 22px; color: var(--c-muted); line-height: 1;
  width: 28px; height: 28px;
}
.tabs {
  display: flex; background: var(--c-chip-bg); border-radius: 12px; padding: 4px;
  margin-bottom: 16px;
}
.tab {
  flex: 1; background: transparent; border: 0; cursor: pointer;
  padding: 9px; border-radius: 9px;
  font: 700 13px Manrope; color: var(--c-muted);
}
.tab.active { background: #fff; color: var(--c-ink); box-shadow: 0 2px 6px rgba(27,44,61,0.08); }
.modal-body .field label { font-size: 12.5px; }
.err { color: var(--c-err); font-size: 12.5px; min-height: 16px; margin-bottom: 6px; }

.success-icon-wrap { display: flex; justify-content: center; margin-top: 8px; }
.success-icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--c-bg-blue-soft);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(65,137,201,0.16);
}
.post-card {
  background: var(--c-chip-bg); border-radius: 14px;
  padding: 14px; margin-top: 16px;
}
.post-card b { color: var(--c-ink); font: 800 14px Manrope; }
.post-card .field { margin-top: 10px; }

/* ===== Footer ===== */
.site-footer {
  background: #fff; border-top: 1px solid var(--c-line);
  padding: 22px 0;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font: 500 12.5px Manrope; color: var(--c-muted);
}

.empty {
  padding: 60px; text-align: center;
  background: #fff; border-radius: 20px;
  color: var(--c-muted); font: 700 15px Manrope;
  box-shadow: var(--sh-card);
}

/* ===== Адаптив ===== */
@media (max-width: 1000px) {
  .header-inner { padding: 0 20px; gap: 16px; }
  .category-nav-inner { padding: 0 20px; overflow-x: auto; }
  .catalog-layout { flex-direction: column; }
  .catalog-sidebar { width: 100%; border-right: 0; border-bottom: 1px solid #EAF1F5; }
  .catalog-grid-area { padding: 20px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-inner { flex-direction: column; }
  .gallery { width: 100%; height: 320px; }
  .checkout-layout { flex-direction: column; }
  .checkout-summary { width: 100%; position: static; }
  .delivery-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .products-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .card-block { padding: 18px; }
  .buy-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .buy-bar .btn-cta { width: 100%; }
  .ingredients-grid { grid-template-columns: 1fr; }
  .checkout-page, .product-page { padding: 20px; }
  /* CDEK-виджет: инпуты и select — во всю ширину карточки */
  #ck-cdek-city, #ck-cdek-pvz, #ck-cdek-addr, #fix-city, #fix-point, #fix-addr { font-size: 15px; padding: 10px 12px; }
  .autocomplete-list { max-height: 200px; font-size: 14px; }
  .autocomplete-item { padding: 10px 12px; font-size: 14px; }
  .opt-row { padding: 12px; }
  #ck-cdek-calc { font-size: 13px; padding: 6px 8px; background: #F2F7FA; border-radius: 6px; margin-top: 8px; }
}

/* ===== Legal footer (реквизиты юрлица) ===== */
.legal-footer {
  margin-top: 48px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--c-line, #EEF3F6);
  color: var(--c-muted, #8DA0AD);
  font: 400 10.5px/1.55 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.legal-footer .legal-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.legal-footer .legal-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.legal-footer .legal-line + .legal-line {
  margin-top: 4px;
}
.legal-footer span { white-space: nowrap; }
.legal-footer a { color: inherit; text-decoration: none; }
.legal-footer a:hover { color: var(--c-blue, #4189C9); text-decoration: underline; }
@media (max-width: 640px) {
  .legal-footer { font-size: 10px; padding: 14px 0 22px; }
  .legal-footer .legal-inner { padding: 0 14px; }
  .legal-footer .legal-line { gap: 2px 10px; }
}
.legal-footer details summary {
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
  outline: none;
  list-style: none;
}
.legal-footer details summary::-webkit-details-marker { display: none; }
.legal-footer details summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 6px;
  transition: transform .15s ease;
}
.legal-footer details[open] summary::before { transform: rotate(90deg); }

/* Прогресс-бар в модалке post-order (5-сек ожидание перед редиректом на оплату) */
.post-progress {
  height: 4px;
  background: #e2e8ef;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}
.post-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4189C9 0%, #F49100 100%);
  transition: width 5000ms linear;
}
.post-progress-bar.go { width: 100%; }

/* Минималистичная модалка входа */
.auth-panel { max-width: 380px; }
.auth-panel .modal-body { padding-top: 6px; }
.auth-panel .field label { font: 600 11.5px Manrope; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.auth-panel .field input { font: 500 14px Manrope; padding: 10px 12px; }
.auth-panel .btn-cta { margin-top: 12px; }
.auth-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line, #EEF3F6);
  text-align: center;
}
.auth-note p { margin: 0 0 6px; font: 500 12.5px/1.45 Manrope; color: var(--c-ink); }
.auth-note p:last-child { margin: 0; }
.auth-note .dim { color: var(--c-muted); font-size: 11.5px; }

/* Ghost-CTA — используется как "Продолжить без входа" в pre-order-login. */
.btn-cta.btn-ghost {
  background: transparent;
  color: var(--c-muted);
  border: 1px solid var(--c-line, #EEF3F6);
}
.btn-cta.btn-ghost:hover { color: var(--c-ink); border-color: #d0d9e2; }

/* CDEK city autocomplete в чекауте */
.autocomplete-list {
  position: absolute;
  top: calc(100% + 2px);
  left: 0; right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--c-line, #EEF3F6);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(21, 33, 46, .08);
  max-height: 240px;
  overflow-y: auto;
}
.autocomplete-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13.5px;
}
.autocomplete-item:hover { background: #F2F7FA; }
.autocomplete-item.dim { color: var(--c-muted); cursor: default; }
.autocomplete-item.dim:hover { background: transparent; }
#ck-cdek-pvz {
  padding: 8px 10px;
  border: 1px solid var(--c-line, #EEF3F6);
  border-radius: 8px;
  font-size: 13.5px;
  background: #fff;
}