/* =============================================================================
   GATE A — MOBILE RECONSTRUCTION V2 — style.css
   ISOLATED PREVIEW — NOT PRODUCTION
   Typography: local @font-face — DM Serif Display / Noto Serif / Inter (Phase 2C-E2A)
   Colors: exact Figma variable values (figma-variables.md, Light mode)
   ============================================================================= */

/* ── Local font faces ─────────────────────────────────────────────────────── */

/* DM Serif Display — Latin Extended */
@font-face {
  font-family: 'DM Serif Display';
  src: url('assets/fonts/dm-serif-display-latin-ext-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Serif Display — Latin */
@font-face {
  font-family: 'DM Serif Display';
  src: url('assets/fonts/dm-serif-display-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Noto Serif — Cyrillic Extended (heading Cyrillic fallback) */
@font-face {
  font-family: 'Noto Serif';
  src: url('assets/fonts/noto-serif-cyrillic-ext-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Noto Serif — Cyrillic */
@font-face {
  font-family: 'Noto Serif';
  src: url('assets/fonts/noto-serif-cyrillic-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Inter — Cyrillic Extended */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-cyrillic-ext-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Inter — Cyrillic */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-cyrillic-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Inter — Latin Extended */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-latin-ext-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter — Latin */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-latin-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Noto Serif Display — local variable TTF (owner override / substitute) */
@font-face {
  font-family: "Noto Serif Display";
  src:
    url("assets/fonts/NotoSerifDisplay[wdth,wght].ttf")
    format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* ── Design tokens ────────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --c-bg-cream:          #FFF8F0;
  --c-bg-card:           #FFFFFF;
  --c-bg-surface:        #FFFDFB;
  --c-text-primary:      #3D2B1F;
  --c-text-secondary:    #6B5344;
  --c-text-tertiary:     #7A6254;
  --c-text-on-primary:   #FFFFFF;
  --c-action:            #CF4331;
  --c-action-pressed:    #B03A2A;
  --c-action-disabled:   #E8B4AD;
  --c-blush:             #FDEAE4;
  --c-blush-strong:      #F9D4C8;
  --c-border:            #E8DDD3;
  --c-border-input:      #D4C4B7;
  --c-border-focus:      #CF4331;
  --c-error:             #C62828;
  --c-error-bg:          #FFF0F0;
  --c-success:           #2E7D32;
  --c-success-bg:        #F0F9F0;
  --c-disabled-surface:  #F5F0EB;
  --c-disabled-text:     #9E8E82;
  --c-scrim:             #3D2B1F;
  --c-warning:           #7A5C00;
  --c-warning-bg:        #FFFBE6;
  --c-info:              #1A5276;
  --c-info-bg:           #EAF4FB;

  /* Spacing */
  --sp-2:  2px;
  --sp-4:  4px;
  --sp-6:  6px;
  --sp-8:  8px;
  --sp-10: 10px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-48: 48px;

  /* Radius */
  --r-sm:    8px;
  --r-input: 12px;
  --r-card:  16px;
  --r-xl:    20px;
  --r-cta:   100px;

  /* Sticky bar */
  --sticky-h: 76px;

  /* Site header heights (sticky offset) */
  --site-header-h: 73px;         /* 12 + 48 + 12 + 1 = normal */
  --site-header-h-compact: 57px; /* 6 + 44 + 6 + 1   = compact */

  /* Horizontal margins */
  --page-px: 16px;
}

/* ── Base reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--c-bg-cream);
  color: var(--c-text-primary);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px) + var(--sp-16));
  overscroll-behavior-y: none;
}

h1, h2, h3 {
  font-family: "DM Serif Display", "Noto Serif", serif;
  font-weight: normal;
  color: var(--c-text-primary);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible {
  outline: 2px solid var(--c-border-focus);
  outline-offset: 2px;
}

.radio-card-header:focus-visible,
.delivery-zone-chip:focus-visible {
  outline: 2px solid var(--c-border-focus);
  outline-offset: 2px;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

/* Ensure [hidden] is never overridden by author display rules */
[hidden] {
  display: none !important;
}

/* ── Preview banner ───────────────────────────────────────────────────────── */
.preview-banner {
  background: var(--c-scrim);
  color: #FFF;
  text-align: center;
  font-size: 11px;
  font-family: system-ui, sans-serif;
  letter-spacing: 0.06em;
  padding: var(--sp-8) var(--page-px);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Site header ──────────────────────────────────────────────────────────── */
.site-header {
  background: var(--c-bg-card);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 90;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-12) var(--page-px);
  max-width: 430px;
  margin: 0 auto;
}

.header-brand {
  display: flex;
  align-items: center;
}

.header-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.header-instagram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--c-action);
  text-decoration: none;
  background: var(--c-bg-card);
  border: 1.5px solid var(--c-border);
  border-radius: 50%;
  transition: background 0.15s;
}

.header-instagram-link:active {
  background: var(--c-blush);
}

/* ── Compact header (scroll state) ───────────────────────────────────────── */
.site-header--compact .site-header-inner {
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-6);
}

.site-header--compact .header-logo {
  width: 40px;
  height: 40px;
}

body.header-compact .category-nav-outer {
  top: var(--site-header-h-compact);
}

/* ── Hero section ─────────────────────────────────────────────────────────── */
.hero-section {
  background: var(--c-bg-cream);
  padding: var(--sp-32) var(--page-px) 0;
  max-width: 430px;
  margin: 0 auto;
}

.hero-title {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 34px;
  text-align: center;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-8);
}

.hero-subtitle {
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-20);
}

/* ── Trust strip ──────────────────────────────────────────────────────────── */
.trust-strip {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: var(--sp-16);
  max-width: 325px;
  margin: 0 auto;
}

.trust-item {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--c-text-secondary);
  background: var(--c-blush);
  border: 1px solid var(--c-blush-strong);
  border-radius: var(--r-sm);
  padding: 2px 6px;
  flex: 1;
  text-align: center;
}

/* Legacy: icon-based trust item rendered by script.js (Phase 2B will reconcile) */
.trust-item-icon {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  margin-top: 1px;
}

/* ── Section heading ──────────────────────────────────────────────────────── */
.section-heading {
  font-size: 24px;
  line-height: 30px;
  font-family: "DM Serif Display", "Noto Serif", serif;
  color: var(--c-text-primary);
  padding: var(--sp-24) var(--page-px) 0;
  max-width: 430px;
  margin: 0 auto;
}

/* owner correction: Catalog heading uses same typeface treatment as hero-title */
#catalog-heading {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-style: normal;
  letter-spacing: normal;
}

/* ── Catalog section ──────────────────────────────────────────────────────── */
.catalog-section {
  /* Category nav is now inside; sticky positioning on nav-outer handles layering */
}

/* ── Category nav ─────────────────────────────────────────────────────────── */
.category-nav-outer {
  overflow: hidden;
  background: var(--c-bg-cream);
  position: sticky;
  top: var(--site-header-h);
  z-index: 80;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  padding-inline: var(--page-px);
}

.category-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--sp-6);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: var(--sp-8) 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: var(--sp-8) var(--sp-12);
  border-radius: var(--r-cta);
  border: 1.5px solid var(--c-border);
  background: var(--c-bg-card);
  color: var(--c-text-secondary);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
  min-height: 37px;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.cat-chip--selected {
  background: var(--c-action);
  border-color: var(--c-action);
  color: var(--c-text-on-primary);
}

.cat-chip:active:not(.cat-chip--selected) {
  background: var(--c-blush);
}

/* ── Catalog content wrapper ──────────────────────────────────────────────── */
.catalog-content {
  padding: var(--sp-16) var(--page-px);
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

/* ── All-category nav grid (2-column, 2+2+1) ──────────────────────────── */
.all-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  width: 100%;
}

.all-cat-card:nth-child(5) {
  grid-column: 1 / -1;
  width: calc(50% - 4px);
  margin: 0 auto;
}

.all-cat-card {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: var(--sp-16);
  background: var(--c-bg-card);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-card);
  text-align: center;
  min-height: 94px;
  min-width: 0;
  transition: background 0.12s;
}

.all-cat-card:active {
  background: var(--c-blush);
}

.all-cat-card__content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.all-cat-card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--c-text-primary);
  line-height: 1.3;
}

.all-cat-card__helper {
  font-size: 13px;
  color: var(--c-text-secondary);
  line-height: 1.4;
}

.all-cat-card__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-primary);
}

.all-cat-card__action {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-action);
  margin-top: var(--sp-4);
}

/* ── Product card ─────────────────────────────────────────────────────────── */
.product-card {
  background: var(--c-bg-card);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-card);
  padding: var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.product-card-header {
  display: flex;
  gap: var(--sp-12);
  align-items: flex-start;
}

.product-card-info {
  flex: 1;
  min-width: 0;
}

.product-card-name {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-4);
}

.product-card-desc {
  font-size: 13px;
  color: var(--c-text-secondary);
  line-height: 1.4;
  margin-bottom: var(--sp-4);
}

.product-card-price {
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  color: var(--c-text-primary);
}

/* ── Media slot ───────────────────────────────────────────────────────────── */
.media-slot {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-disabled-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-slot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.media-slot-placeholder-text {
  font-size: 10px;
  color: var(--c-disabled-text);
  text-align: center;
  line-height: 1.3;
}

/* ── Configurable card sections ───────────────────────────────────────────── */
.card-section-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-8);
}

/* ── Bundle size chips ────────────────────────────────────────────────────── */
.bundle-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.bundle-size-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-8) var(--sp-12);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-bg-surface);
  min-width: 64px;
  min-height: 52px;
  transition: background 0.12s, border-color 0.12s;
}

.bundle-size-chip--selected {
  border-color: var(--c-action);
  background: var(--c-blush);
}

.bundle-size-chip:active {
  background: var(--c-blush-strong);
}

.bundle-size-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-primary);
}

.bundle-size-price {
  font-size: 12px;
  color: var(--c-text-tertiary);
}

/* ── Filling chips ────────────────────────────────────────────────────────── */
.filling-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.filling-chip {
  padding: var(--sp-8) var(--sp-12);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-cta);
  background: var(--c-bg-surface);
  font-size: 13px;
  color: var(--c-text-secondary);
  line-height: 1.3;
  min-height: 44px;
  transition: background 0.12s, border-color 0.12s;
}

.filling-chip--selected {
  border-color: var(--c-action);
  background: var(--c-blush);
  color: var(--c-text-primary);
}

.filling-chip:active {
  background: var(--c-blush-strong);
}

/* ── Stepper ──────────────────────────────────────────────────────────────── */
.stepper-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.stepper-row-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-secondary);
  flex: 1;
  min-width: 0;
}

.stepper-row-max {
  font-size: 12px;
  color: var(--c-text-tertiary);
}

.stepper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  flex-shrink: 0;
}

.stepper-input {
  width: 52px;
  min-height: 36px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text-primary);
  border: 1.5px solid var(--c-border-input);
  border-radius: var(--r-sm);
  padding: var(--sp-4) var(--sp-6);
  background: var(--c-bg-card);
  -moz-appearance: textfield;
}

.stepper-input:focus {
  outline: none;
  border-color: var(--c-border-focus);
}

.stepper-input--error {
  border-color: var(--c-error);
  background: var(--c-error-bg);
}

.stepper-outer {
  display: contents;
}

.stepper-error {
  flex-basis: 100%;
  font-size: 11px;
  color: var(--c-error);
  line-height: 1.3;
  min-height: 0;
  min-width: 0;
  display: none;
}

.stepper-error:not(:empty) {
  display: block;
}

.stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--c-border);
  background: var(--c-bg-card);
  color: var(--c-text-primary);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s;
  flex-shrink: 0;
}

.stepper-btn:active:not(:disabled) {
  background: var(--c-blush);
}

.stepper-btn:disabled {
  color: var(--c-disabled-text);
  border-color: var(--c-border);
  cursor: default;
}

.stepper-value {
  min-width: 28px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text-primary);
}

/* ── Kg input ─────────────────────────────────────────────────────────────── */
.kg-input-row {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
}

.kg-input {
  width: 90px;
  padding: var(--sp-8) var(--sp-12);
  border: 1.5px solid var(--c-border-input);
  border-radius: var(--r-input);
  font-size: 16px;
  text-align: center;
  background: var(--c-bg-card);
}

.kg-input:focus {
  outline: none;
  border-color: var(--c-border-focus);
}

.kg-unit-label {
  font-size: 14px;
  color: var(--c-text-secondary);
}

/* ── Price preview ────────────────────────────────────────────────────────── */
.price-preview {
  display: flex;
  align-items: baseline;
  gap: var(--sp-8);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
}

.price-preview-label {
  font-size: 13px;
  color: var(--c-text-tertiary);
}

.price-preview-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text-primary);
  margin-left: auto;
}

/* ── Add to request button ────────────────────────────────────────────────── */
.add-to-request-btn {
  width: 100%;
  padding: var(--sp-12) var(--sp-16);
  border-radius: var(--r-cta);
  background: var(--c-action);
  color: var(--c-text-on-primary);
  font-size: 15px;
  font-weight: 600;
  min-height: 48px;
  text-align: center;
  transition: background 0.15s;
}

.add-to-request-btn:active:not(:disabled) {
  background: var(--c-action-pressed);
}

.add-to-request-btn:disabled {
  background: var(--c-action-disabled);
  cursor: default;
}

/* ── Card add button (partner "+" control) ────────────────────────────────── */
.card-add-btn {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--c-action);
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: background 0.15s;
}

.card-add-btn::before,
.card-add-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--c-text-on-primary);
  border-radius: 1px;
  pointer-events: none;
}

.card-add-btn::before {
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.card-add-btn::after {
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
}

.card-add-btn:active:not(:disabled) {
  background: var(--c-action-pressed);
}

.card-add-btn:disabled {
  background: var(--c-action-disabled);
  cursor: default;
}

/* ── Card feedback flash ──────────────────────────────────────────────────── */
.card-feedback {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: var(--sp-8);
  border-radius: var(--r-sm);
}

.card-feedback--added {
  color: var(--c-success);
  background: var(--c-success-bg);
}

.card-feedback--merged {
  color: var(--c-info);
  background: var(--c-info-bg);
}

/* ── Product card added state (VC-05) ─────────────────────────────────────── */
.product-card--added {
  border-color: var(--c-success);
}

.product-card--added .card-add-btn {
  background: var(--c-success);
}

.product-card--added .card-add-btn:active:not(:disabled) {
  background: var(--c-success);
}

/* ── ProductCard selected status ─────────────────────────────────────────── */
.product-card-status {
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-success);
  width: 100%;
  line-height: 1.4;
}

.product-card-status:empty {
  display: none;
}

.product-card-status:not(:empty) {
  padding-top: var(--sp-8);
}

/* ── Parcel forbidden notice ──────────────────────────────────────────────── */
.parcel-forbidden-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-8);
  background: var(--c-warning-bg);
  border: 1px solid #E0C040;
  border-radius: var(--r-sm);
  padding: var(--sp-8) var(--sp-12);
  font-size: 12px;
  color: var(--c-warning);
  line-height: 1.4;
}

/* ── custom_set dividers ──────────────────────────────────────────────────── */
.custom-set-group {
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-12);
  display: flex;
  flex-direction: column;
  gap: var(--sp-10);
}

.custom-set-group:first-child {
  border-top: none;
  padding-top: 0;
}

.custom-set-group-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Accordion steps (VC-07: partner card surface) ───────────────────────── */
.accordion-step {
  background: var(--c-bg-card);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-card);
  max-width: calc(430px - 2 * var(--page-px));
  margin: 0 var(--page-px) var(--sp-8);
  overflow: hidden;
}

.accordion-step:first-of-type {
  margin-top: var(--sp-16);
}

/* Always-visible header block */
.step-hd {
  padding: var(--sp-20) var(--page-px) var(--sp-12);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.step-hd-meta {
  display: flex;
  align-items: baseline;
  gap: var(--sp-8);
}

.step-index {
  font-size: 12px;
  font-family: system-ui, sans-serif;
  color: var(--c-text-tertiary);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.step-index {
  display: none;
}

/* Completed-summary container — populated by Phase 2B state machine */
.step-summary {
  font-size: 13px;
  color: var(--c-text-secondary);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.step-hd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.step-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--c-text-primary);
  line-height: 26px;
}

/* «Изменить» button — hidden until step is completed (Phase 2B) */
.step-edit-btn {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-action);
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--r-cta);
  min-height: 44px;
  min-width: 44px;
  transition: background 0.12s;
}

.step-edit-btn:active {
  background: var(--c-blush);
}

.step-back-btn {
  width: 100%;
  padding: var(--sp-12) var(--sp-16);
  border-radius: var(--r-cta);
  background: transparent;
  color: var(--c-action);
  border: 2px solid var(--c-action);
  font-size: 16px;
  font-weight: 600;
  min-height: 52px;
  text-align: center;
  transition: background 0.15s;
  margin-top: var(--sp-8);
}

.step-back-btn:active {
  background: var(--c-blush);
}

/* Locked-step visual treatment */
.accordion-step--locked .step-hd {
  opacity: 0.55;
}

/* Current-step visual treatment */
.accordion-step--current {
  border-color: var(--c-action);
}

.accordion-step--current .step-index {
  color: var(--c-action);
}

/* Completed-step visual treatment */
.accordion-step--completed {
  border-color: var(--c-success);
}

.accordion-step--completed .step-index {
  color: var(--c-success);
}

/* Error-step visual treatment (VC-07: border + text marker, not colour alone) */
.accordion-step--error {
  border-color: var(--c-error);
  border-width: 2px;
}

.accordion-step--error .step-index {
  color: var(--c-error);
}

/* Textual error label appended to step-index via CSS content */
.accordion-step--error .step-title::after {
  content: ' · ошибка';
  font-size: 11px;
}

/* ── Phase 2D: Remove outer card surface — Current/Error form steps only ── */
#step-contacts.accordion-step--current,
#step-contacts.accordion-step--error,
#step-request.accordion-step--current,
#step-request.accordion-step--error,
#step-fulfillment.accordion-step--current,
#step-fulfillment.accordion-step--error,
#step-confirmation.accordion-step--current,
#step-confirmation.accordion-step--error {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

#step-contacts.accordion-step--current > .step-hd,
#step-contacts.accordion-step--error > .step-hd,
#step-request.accordion-step--current > .step-hd,
#step-request.accordion-step--error > .step-hd,
#step-fulfillment.accordion-step--current > .step-hd,
#step-fulfillment.accordion-step--error > .step-hd,
#step-confirmation.accordion-step--current > .step-hd,
#step-confirmation.accordion-step--error > .step-hd,
#step-contacts.accordion-step--current > .step-body,
#step-contacts.accordion-step--error > .step-body,
#step-request.accordion-step--current > .step-body,
#step-request.accordion-step--error > .step-body,
#step-fulfillment.accordion-step--current > .step-body,
#step-fulfillment.accordion-step--error > .step-body,
#step-confirmation.accordion-step--current > .step-body,
#step-confirmation.accordion-step--error > .step-body {
  padding-inline: 0;
}

/* Expandable content panel */
.step-body {
  padding: 0 var(--page-px) var(--sp-24);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

/* Inline error region for whole-step errors */
.step-error-region {
  font-size: 13px;
  color: var(--c-error);
  line-height: 1.4;
  min-height: 0;
}

/* «Продолжить» button */
.btn-continue {
  width: 100%;
  padding: var(--sp-12) var(--sp-16);
  border-radius: var(--r-cta);
  background: var(--c-action);
  color: var(--c-text-on-primary);
  font-size: 16px;
  font-weight: 600;
  min-height: 52px;
  text-align: center;
  transition: background 0.15s;
  margin-top: var(--sp-8);
}

.btn-continue:active {
  background: var(--c-action-pressed);
}

.btn-continue:disabled {
  background: var(--c-action-disabled);
  cursor: default;
}

/* Single sticky CTA — hide per-step inline Continue buttons */
#step-contacts-continue,
#step-request-continue,
#step-fulfillment-continue {
  display: none;
}

/* ── Form field groups ────────────────────────────────────────────────────── */
/* Legacy names kept for any dynamic DOM nodes created before Phase 2B */
.form-fields,
.field-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.form-field,
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

/* ── Form labels ──────────────────────────────────────────────────────────── */
.field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-secondary);
}

.field-required,
.required-mark {
  color: var(--c-error);
}

.field-optional {
  font-weight: 400;
  color: var(--c-text-tertiary);
  font-size: 13px;
}

/* ── Field inputs ─────────────────────────────────────────────────────────── */
.field-input {
  padding: var(--sp-12) var(--sp-16);
  border: 1.5px solid var(--c-border-input);
  border-radius: var(--r-input);
  background: var(--c-bg-card);
  font-size: 16px;
  color: var(--c-text-primary);
  min-height: 52px;
  transition: border-color 0.12s;
  width: 100%;
}

.field-input:focus {
  outline: none;
  border-color: var(--c-border-focus);
}

.field-input--error {
  border-color: var(--c-error);
  background: var(--c-error-bg);
}

/* Prefixed input row (@ Instagram) */
.field-prefix-row {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--c-border-input);
  border-radius: var(--r-input);
  background: var(--c-bg-card);
  overflow: hidden;
  transition: border-color 0.12s;
}

.field-prefix-row:focus-within {
  border-color: var(--c-border-focus);
}

.field-prefix {
  padding: 0 var(--sp-8) 0 var(--sp-16);
  font-size: 16px;
  color: var(--c-text-tertiary);
  flex-shrink: 0;
  align-self: center;
}

.field-input--prefixed {
  border: none;
  border-radius: 0;
  background: transparent;
  padding-left: 0;
  flex: 1;
  min-width: 0;
}

.field-input--prefixed:focus {
  outline: none;
  border-color: transparent;
}

/* ── Textarea ─────────────────────────────────────────────────────────────── */
.field-textarea {
  padding: var(--sp-12) var(--sp-16);
  border: 1.5px solid var(--c-border-input);
  border-radius: var(--r-input);
  background: var(--c-bg-card);
  font-size: 15px;
  color: var(--c-text-primary);
  min-height: 96px;
  resize: vertical;
  transition: border-color 0.12s;
  width: 100%;
  line-height: 1.5;
}

.field-textarea:focus {
  outline: none;
  border-color: var(--c-border-focus);
}

/* ── Field messages ───────────────────────────────────────────────────────── */
.field-error {
  font-size: 13px;
  color: var(--c-error);
  min-height: 18px;
  line-height: 1.4;
}

.field-helper {
  font-size: 12px;
  color: var(--c-text-tertiary);
  line-height: 1.4;
}

/* ── Privacy consent field ────────────────────────────────────────────────── */
.field--consent {
  gap: var(--sp-8);
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-12);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.consent-checkbox {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--c-action);
  cursor: pointer;
}

.consent-text {
  font-size: 14px;
  color: var(--c-text-primary);
  line-height: 1.5;
}

/* ── Confirmation step helper text ───────────────────────────────────────── */
.confirmation-helper {
  font-size: 13px;
  color: var(--c-text-secondary);
  line-height: 1.6;
  background: var(--c-bg-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: var(--sp-16);
}

/* ── Selected request section ─────────────────────────────────────────────── */
.selected-request {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.selected-empty-hint {
  font-size: 14px;
  color: var(--c-text-tertiary);
  text-align: center;
  padding: var(--sp-20);
  background: var(--c-bg-card);
  border: 1.5px dashed var(--c-border);
  border-radius: var(--r-card);
}

/* ── Selected product card ────────────────────────────────────────────────── */
.selected-card {
  background: var(--c-bg-card);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-card);
  padding: var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.selected-card--warning {
  border-color: #E0C040;
  background: var(--c-warning-bg);
}

.selected-card--editing {
  border-color: var(--c-border-focus);
}

.selected-card--removing {
  border-color: var(--c-error);
  background: var(--c-error-bg);
}

.selected-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-8);
}

/* ── Selected card media thumbnail (VC-04) ────────────────────────────────── */
.selected-card-media {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-disabled-surface);
}

.selected-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.selected-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text-primary);
  line-height: 1.3;
  flex: 1;
}

.selected-card-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text-primary);
  flex-shrink: 0;
}

.selected-card-summary {
  font-size: 13px;
  color: var(--c-text-secondary);
  line-height: 1.5;
}

.selected-card-parcel-warning {
  font-size: 12px;
  color: var(--c-warning);
  background: var(--c-warning-bg);
  border-radius: var(--r-sm);
  padding: var(--sp-6) var(--sp-8);
}

.selected-card-actions {
  display: flex;
  gap: var(--sp-8);
}

.selected-card-action-btn {
  flex: 1;
  padding: var(--sp-10) var(--sp-8);
  border-radius: var(--r-cta);
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  text-align: center;
  transition: background 0.12s;
}

.selected-card-action-btn--edit {
  border: 1.5px solid var(--c-border-input);
  color: var(--c-text-secondary);
  background: var(--c-bg-surface);
}

.selected-card-action-btn--edit:active {
  background: var(--c-blush);
}

.selected-card-action-btn--remove {
  border: 1.5px solid var(--c-error);
  color: var(--c-error);
  background: transparent;
}

.selected-card-action-btn--remove:active {
  background: var(--c-error-bg);
}

/* Remove confirm state */
.selected-card-remove-confirm {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.selected-card-remove-question {
  font-size: 14px;
  color: var(--c-text-primary);
  font-weight: 600;
}

.selected-card-remove-buttons {
  display: flex;
  gap: var(--sp-8);
}

.remove-confirm-btn {
  flex: 1;
  padding: var(--sp-10);
  border-radius: var(--r-cta);
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  text-align: center;
  transition: background 0.12s;
}

.remove-confirm-btn--yes {
  background: var(--c-error);
  color: #FFF;
}

.remove-confirm-btn--yes:active {
  background: #A52020;
}

.remove-confirm-btn--cancel {
  border: 1.5px solid var(--c-border-input);
  color: var(--c-text-secondary);
  background: var(--c-bg-surface);
}

.remove-confirm-btn--cancel:active {
  background: var(--c-blush);
}

/* Edit mode within selected card */
.selected-card-edit {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-12);
}

.selected-card-edit-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-secondary);
}

.selected-card-edit-actions {
  display: flex;
  gap: var(--sp-8);
  padding-top: var(--sp-8);
}

.edit-save-btn {
  flex: 1;
  padding: var(--sp-10);
  border-radius: var(--r-cta);
  background: var(--c-action);
  color: #FFF;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  text-align: center;
}

.edit-save-btn:active {
  background: var(--c-action-pressed);
}

.edit-cancel-btn {
  flex: 1;
  padding: var(--sp-10);
  border-radius: var(--r-cta);
  border: 1.5px solid var(--c-border-input);
  color: var(--c-text-secondary);
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  text-align: center;
}

.edit-cancel-btn:active {
  background: var(--c-blush);
}

/* ── Add more button ──────────────────────────────────────────────────────── */
.add-more-btn {
  width: 100%;
  padding: var(--sp-12) var(--sp-16);
  border: 1.5px dashed var(--c-action);
  border-radius: var(--r-cta);
  background: transparent;
  color: var(--c-action);
  font-size: 14px;
  font-weight: 600;
  min-height: 48px;
  text-align: center;
  transition: background 0.12s;
}

.add-more-btn:active {
  background: var(--c-blush);
}

/* ── Fulfillment ──────────────────────────────────────────────────────────── */
.fulfillment-options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.radio-card {
  background: var(--c-bg-card);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color 0.12s;
}

.radio-card--selected {
  border-color: var(--c-action);
}

.radio-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  padding: var(--sp-16);
  min-height: 64px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.radio-indicator {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--c-border-input);
  background: var(--c-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.12s;
}

.radio-card--selected .radio-indicator {
  border-color: var(--c-action);
}

.radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-action);
  display: none;
}

.radio-card--selected .radio-dot {
  display: block;
}

/* ── Radio card state variants (VC-09) ───────────────────────────────────── */
.radio-card--error {
  border-color: var(--c-error);
  border-width: 2px;
}

.radio-card--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.radio-card-text {
  flex: 1;
  min-width: 0;
}

.radio-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text-primary);
}

.radio-card-subtitle {
  font-size: 13px;
  color: var(--c-text-secondary);
}

.radio-card-expanded {
  padding: 0 var(--sp-16) var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  border-top: 1px solid var(--c-border);
  margin: 0 var(--sp-16);
  padding-top: var(--sp-12);
}

/* ── Pickup location chips ────────────────────────────────────────────────── */
.pickup-locations {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.pickup-location-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  padding: var(--sp-12) var(--sp-16);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-input);
  background: var(--c-bg-surface);
  font-size: 14px;
  color: var(--c-text-secondary);
  min-height: 52px;
  transition: background 0.12s, border-color 0.12s;
}

.pickup-location-chip--selected {
  border-color: var(--c-action);
  background: var(--c-blush);
  color: var(--c-text-primary);
}

.pickup-location-chip:active {
  background: var(--c-blush-strong);
}

.pickup-indicator {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--c-border-input);
  background: var(--c-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pickup-location-chip--selected .pickup-indicator {
  border-color: var(--c-action);
}

.pickup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-action);
  display: none;
}

.pickup-location-chip--selected .pickup-dot {
  display: block;
}

/* ── Delivery zones ───────────────────────────────────────────────────────── */
.delivery-zones {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.delivery-zone-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  padding: var(--sp-12) var(--sp-16);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-input);
  background: var(--c-bg-surface);
  min-height: 52px;
  transition: background 0.12s, border-color 0.12s;
}

.delivery-zone-chip--selected {
  border-color: var(--c-action);
  background: var(--c-blush);
}

.delivery-zone-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.delivery-zone-dot--green {
  background: var(--c-success);
}

.delivery-zone-dot--red {
  background: var(--c-error);
}

.delivery-zone-dot--unknown {
  background: var(--c-text-tertiary);
}

.delivery-zone-info {
  flex: 1;
  min-width: 0;
}

.delivery-zone-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-primary);
}

.delivery-zone-price {
  font-size: 13px;
  color: var(--c-text-secondary);
}

.delivery-zone-indicator {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--c-border-input);
  background: var(--c-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.delivery-zone-chip--selected .delivery-zone-indicator {
  border-color: var(--c-action);
}

.delivery-zone-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-action);
  display: none;
}

.delivery-zone-chip--selected .delivery-zone-radio-dot {
  display: block;
}

/* ── Address input ────────────────────────────────────────────────────────── */
.fulfillment-address-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-secondary);
}

.fulfillment-field-input {
  padding: var(--sp-12) var(--sp-16);
  border: 1.5px solid var(--c-border-input);
  border-radius: var(--r-input);
  background: var(--c-bg-card);
  font-size: 15px;
  color: var(--c-text-primary);
  min-height: 52px;
  width: 100%;
  transition: border-color 0.12s;
}

.fulfillment-field-input:focus {
  outline: none;
  border-color: var(--c-border-focus);
}

.fulfillment-field-input--error {
  border-color: var(--c-error);
}

/* ── Map placeholder (legacy — superseded by VC-10 delivery-map-slot) ─────── */
.map-placeholder {
  background: var(--c-disabled-surface);
  border-radius: var(--r-sm);
  padding: var(--sp-16);
  text-align: center;
  font-size: 12px;
  color: var(--c-disabled-text);
  line-height: 1.5;
}

/* ── Delivery map slot — owner-confirmed external viewer link; no embed;
   no geolocation; no address transmission. */
.delivery-map-slot {
  padding: var(--sp-4) 0;
}

.delivery-map-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-action);
  padding: var(--sp-6) var(--sp-12);
  border: 1.5px solid var(--c-action);
  border-radius: var(--r-cta);
  opacity: 1;
  cursor: pointer;
  user-select: auto;
  text-decoration: none;
}

.delivery-map-helper {
  font-size: 12px;
  color: var(--c-text-tertiary);
  line-height: 1.5;
  margin-top: var(--sp-6);
}

/* ── Bolt Send note ───────────────────────────────────────────────────────── */
.bolt-send-note {
  font-size: 12px;
  color: var(--c-warning);
  background: var(--c-warning-bg);
  border-radius: var(--r-sm);
  padding: var(--sp-8) var(--sp-12);
  line-height: 1.4;
}

/* ── Parcel locker fields ─────────────────────────────────────────────────── */
.parcel-locker-incompatible {
  background: var(--c-error-bg);
  border: 1px solid var(--c-error);
  border-radius: var(--r-sm);
  padding: var(--sp-8) var(--sp-12);
  font-size: 13px;
  color: var(--c-error);
  line-height: 1.4;
}

/* ── Feedback region ──────────────────────────────────────────────────────── */
.feedback-region {
  min-height: 0;
}

.feedback-msg {
  padding: var(--sp-12) var(--sp-16);
  border-radius: var(--r-card);
  font-size: 14px;
  line-height: 1.5;
}

.feedback-msg--error {
  background: var(--c-error-bg);
  color: var(--c-error);
  border: 1px solid var(--c-error);
}

.feedback-msg--info {
  background: var(--c-info-bg);
  color: var(--c-info);
  border: 1px solid #AED6F1;
}

.feedback-success {
  background: var(--c-success-bg);
  border: 1.5px solid var(--c-success);
  border-radius: var(--r-card);
  padding: var(--sp-20) var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.feedback-success-heading {
  font-family: "DM Serif Display", "Noto Serif", serif;
  font-size: 18px;
  color: var(--c-success);
}

.feedback-success-text {
  font-size: 14px;
  color: var(--c-text-secondary);
  line-height: 1.5;
}

.feedback-failure {
  background: var(--c-error-bg);
  border: 1.5px solid var(--c-error);
  border-radius: var(--r-card);
  padding: var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.feedback-failure-text {
  font-size: 14px;
  color: var(--c-error);
  line-height: 1.5;
}

.feedback-retry-btn {
  padding: var(--sp-10) var(--sp-16);
  border-radius: var(--r-cta);
  border: 1.5px solid var(--c-error);
  color: var(--c-error);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  align-self: flex-start;
}

.feedback-retry-btn:active {
  background: var(--c-error-bg);
}

/* ── Feedback error wrapper (VC-12) ───────────────────────────────────────── */
.feedback-error {
  background: var(--c-error-bg);
  border: 1.5px solid var(--c-error);
  border-radius: var(--r-card);
  padding: var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.feedback-error-heading {
  font-family: "DM Serif Display", "Noto Serif", serif;
  font-size: 17px;
  color: var(--c-error);
}

.feedback-error-text {
  font-size: 14px;
  color: var(--c-error);
  line-height: 1.5;
}

/* ── Sticky summary ───────────────────────────────────────────────────────── */
.sticky-summary {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--c-bg-card);
  border-top: 1.5px solid var(--c-border);
  padding: var(--sp-12) var(--page-px);
  padding-bottom: max(var(--sp-12), env(safe-area-inset-bottom, var(--sp-12)));
}

.sticky-summary-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  max-width: 430px;
  margin: 0 auto;
}

/* Vertical stack: count → total → hint */
.sticky-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.sticky-count {
  font-size: 13px;
  color: var(--c-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text-primary);
  line-height: 1.2;
}

/* «предварительно» — rendered after total in DOM order */
.sticky-hint {
  font-size: 11px;
  color: var(--c-text-tertiary);
}

.sticky-cta {
  flex-shrink: 0;
  padding: var(--sp-12) var(--sp-20);
  border-radius: var(--r-cta);
  font-size: 15px;
  font-weight: 600;
  min-height: 48px;
  min-width: 140px;
  text-align: center;
  transition: background 0.15s;
}

.sticky-cta--incomplete:not(:disabled) {
  background: var(--c-action);
  color: var(--c-text-on-primary);
  border: 1.5px solid var(--c-action);
}

.sticky-cta--incomplete:not(:disabled):active {
  background: var(--c-action-pressed);
}

.sticky-cta--incomplete:disabled {
  background: var(--c-disabled-surface);
  color: var(--c-disabled-text);
  border: 1.5px solid var(--c-border);
}

.sticky-cta--ready {
  background: var(--c-action);
  color: #FFF;
}

.sticky-cta--ready:active {
  background: var(--c-action-pressed);
}

.sticky-cta--submitting {
  background: var(--c-action-disabled);
  color: #FFF;
}

/* VC-11: retry/failure state — distinct from ready, signals corrective action */
.sticky-cta--retry {
  background: var(--c-error);
  color: #FFF;
}

.sticky-cta--retry:active {
  background: #B03A2A;
}

.sticky-cta--success {
  background: var(--c-success);
  color: #FFF;
}

/* ── Misc ─────────────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-4) 0;
}

/* ── Horizontal overflow guard ────────────────────────────────────────────── */
/* Controlled candidate fix: html removed from selector (STRONG CANDIDATE — scroll root fix).
   Body retains horizontal overflow protection. Manual owner wheel verification required. */
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ── Phase 2E: Single-step wizard — hide completed/locked form steps ───────── */
#step-contacts.accordion-step--completed,
#step-contacts.accordion-step--locked,
#step-request.accordion-step--completed,
#step-request.accordion-step--locked,
#step-fulfillment.accordion-step--completed,
#step-fulfillment.accordion-step--locked,
#step-confirmation.accordion-step--completed,
#step-confirmation.accordion-step--locked {
  display: none;
}

#step-contacts.accordion-step--current,
#step-request.accordion-step--current,
#step-fulfillment.accordion-step--current,
#step-confirmation.accordion-step--current {
  margin-top: var(--sp-16);
}

/* ── Phase 2F: Catalog-first wizard ──────────────────────────────────────── */
body.wizard-on-products .accordion-step {
  display: none !important;
}
body.wizard-on-form .hero-section,
body.wizard-on-form .catalog-section {
  display: none !important;
}
#wizard-products-label {
  display: none;
  font-size: 12px;
  font-family: system-ui, sans-serif;
  color: var(--c-text-tertiary);
  letter-spacing: 0.04em;
  padding: var(--sp-16) var(--page-px) 0;
}

