/* Desktop listing wizard. The mobile wizard keeps its own layout in mobile-sell.css. */
.dsk { overflow-x: visible; background: #f7f7f5; color: var(--ink); font-size: 15px; }
.dsk ::selection { background: #ffe2c2; }

/* Header */
.dsk .dtop { background: rgba(255,255,255,.97); }
.dsk .dtop-in { display: grid; width: auto; max-width: 1200px; height: 64px; margin: 0 auto; padding: 0 32px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.dsk .dl { display: flex; min-width: 0; align-items: center; gap: 14px; }
.dsk .dlogo { display: inline-block; color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; transform: skewX(-8deg); }
.dsk .dlogo b { color: var(--brand); }
.dsk .dsep { width: 1px; height: 20px; background: var(--line-2); }
.dsk .dname { color: var(--text); font-size: 15px; }
.dsk .dr { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.dsk .dr .ttl { flex: none; text-align: right; }
.dsk .dr .ttl span { color: var(--muted); font-size: 13px; }
.dsk .dr .ttl span.ok { color: var(--green); }
.dsk .dclose { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); font-size: 14px; text-decoration: none; }
.dsk .dclose:hover { border-color: var(--ink); color: var(--ink); }

/* Header steps */
.dsk .steps { display: flex; margin: 0; align-items: center; gap: 6px; }
.dsk .steps li { display: flex; overflow: visible; align-items: center; color: inherit; font-size: inherit; }
.dsk .steps li::before { display: none; }
.dsk .steps li + li::before { display: block; width: 28px; height: 1px; margin: 0 6px 0 0; border-radius: 0; background: var(--line-2); content: ""; }
.dsk .steps button { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.dsk .steps button:hover { background: var(--soft); color: var(--ink); }
.dsk .steps .n { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font-size: 12px; }
.dsk .steps .n i { font-style: normal; }
.dsk .steps .n svg { display: none; }
.dsk .steps li.cur button { color: var(--ink); }
.dsk .steps li.cur .n { border-color: var(--ink); background: var(--ink); color: #fff; }
.dsk .steps li.done .n { border-color: var(--green-soft); background: var(--green-soft); color: var(--green); }
.dsk .steps li.done .n i { display: none; }
.dsk .steps li.done .n svg { display: block; }

/* Main shell */
.dsk .shell { display: grid; max-width: 1200px; margin: 0 auto; padding: 32px 32px 48px; grid-template-columns: minmax(0,1fr) 320px; align-items: start; gap: 32px; }
.dsk .shell.is-complete { grid-template-columns: minmax(0,1fr); }
.dsk .center { min-width: 0; overflow: clip; border: 1px solid #e8e8e4; border-radius: 16px; background: #fff; }
.dsk main { width: auto; min-height: 560px; margin: 0; padding: 40px 48px 32px; background: #fff; box-shadow: none; }
.dsk .pvside { position: sticky; top: 96px; }

/* Type and sections */
.dsk h1 { margin-bottom: 6px; font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.dsk .lead { color: var(--muted); font-size: 15px; }
.dsk .sec { margin-top: 36px; padding-top: 32px; border-top: 1.5px solid var(--brand); }
.dsk .sec + .sec { padding-top: 32px; }
.dsk main details.more { margin-top: 32px; }
.dsk .sec h2 { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.dsk .sec .sub { font-size: 13.5px; }
.dsk .grid { margin-top: 16px; gap: 20px 16px; }
.dsk .fld > .lbl, .dsk .field-label { color: var(--text); font-size: 13.5px; font-weight: 500; }
.dsk .req { color: #c25f00; }
.dsk .opt { font-weight: 400; }

/* Inputs */
.dsk .inp { min-height: 44px; padding: 0 12px; border-color: #dadde1; border-radius: 10px; font-size: 15px; }
.dsk textarea.inp { min-height: 140px; padding: 10px 12px; }
.dsk .unit { border-color: #dadde1; border-radius: 10px; }
.dsk .unit .u { background: #fafafa; font-size: 13.5px; }
.dsk .inp:focus, .dsk .unit:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14,17,22,.06); }
.dsk .price-big .inp { font-size: 18px; font-weight: 500; }
.dsk .combo-list { border-radius: 12px; }
.dsk .combo-list li { min-height: 38px; font-size: 14.5px; }
.dsk .combo-list li[aria-selected="true"], .dsk .combo-list li.free { font-weight: 500; }

/* Listing kind, chips and segments */
.dsk .kinds { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 24px; gap: 10px; }
.dsk .kind { min-height: 88px; border: 1px solid #dadde1; border-radius: 12px; gap: 8px; }
.dsk .kind:hover { border-color: #a9afb8; }
.dsk .kind .ic { width: auto; height: auto; background: none; color: var(--muted); }
.dsk .kind .ic svg { width: 26px; height: 26px; stroke-width: 1.5; }
.dsk .kind b { color: var(--text); font-size: 14px; font-weight: 400; }
.dsk .kind[aria-pressed="true"] { border-color: var(--brand); background: #fffaf4; box-shadow: 0 0 0 1px var(--brand); }
.dsk .kind[aria-pressed="true"] .ic { background: none; color: #c25f00; }
.dsk .kind[aria-pressed="true"] b { color: var(--ink); font-weight: 500; }
.dsk .chips { gap: 6px; }
.dsk .chip { min-height: 36px; padding: 0 14px; border-color: #dadde1; color: var(--text); font-size: 14px; font-weight: 400; }
.dsk .chip:hover { border-color: #a9afb8; color: var(--ink); }
.dsk .chip[aria-pressed="true"] { border-color: #f3a65a; background: #fff4e8; color: #7a3a00; }
.dsk .chip.multi[aria-pressed="true"]::before { width: 10px; height: 6px; border-color: #c25f00; border-width: 0 0 2px 2px; }
.dsk .seg { padding: 3px; border-radius: 10px; background: #f2f3f5; }
.dsk .seg button { min-height: 36px; border-radius: 8px; font-size: 14px; font-weight: 400; }
.dsk .seg button[aria-pressed="true"] { font-weight: 500; box-shadow: 0 1px 2px rgba(14,17,22,.12); }
.dsk .contact-seller-mode { max-width: 440px; }
.dsk .contact-seller-mode button { min-height: 44px; font-size: 14.5px; font-weight: 500; }
.dsk .contact-warning { border-radius: 10px; }
.dsk.contact-step { background: #f7f6f2; }
.dsk.contact-step .shell { max-width: 1180px; grid-template-columns: minmax(0,1fr) 340px; gap: 28px; }
.dsk.contact-step .center { overflow: visible; border: 0; background: transparent; }
.dsk.contact-step main { min-height: 560px; padding: 0 0 24px; overflow: visible; background: transparent; }
.dsk.contact-step .contact-page > h1 { font-size: 28px; font-weight: 600; }
.dsk.contact-step .contact-form-card { padding: 26px; border-color: #e6e3dd; border-radius: 20px; }
.dsk.contact-step .contact-sec > .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 16px; }
.dsk.contact-step .contact-sec + .contact-sec { margin-top: 26px; padding-top: 26px; }
.dsk.contact-step .contact-hours-row { grid-template-columns: 1.25fr .85fr .85fr; gap: 10px; }
.dsk.contact-step .contact-method:first-child { padding-top: 8px; }
.dsk.contact-step .contact-location-toggle { padding-top: 2px; }
.dsk.contact-step .foot { overflow: hidden; border: 1px solid #e6e3dd; border-radius: 16px; box-shadow: 0 10px 28px rgba(14,17,22,.06); }

/* Panels and switches */
.dsk .box, .dsk details.more { border-color: #e8e8e4; border-radius: 12px; }
.dsk .sw-row { padding: 12px 0; }
.dsk .sw-row .tx b { font-size: 14.5px; font-weight: 500; }
.dsk .sw { width: 40px; height: 24px; }
.dsk .sw::after { width: 18px; height: 18px; }
.dsk .sw-row[aria-checked="true"] .sw::after { transform: translateX(16px); }
.dsk details.more > summary { min-height: 52px; font-size: 15px; font-weight: 500; }
.dsk details.more > summary .cnt { font-weight: 400; }
.dsk .xg > span { font-weight: 500; }
.dsk .crow { border-color: #e8e8e4; border-radius: 12px; }
.dsk .add-row { min-height: 42px; border-radius: 10px; font-weight: 500; }
.dsk .gen { font-weight: 500; }
.dsk .market, .dsk .missing, .dsk .plan, .dsk .draft { border-radius: 10px; font-size: 14px; }
.dsk .market b, .dsk .plan b, .dsk .missing button, .dsk .draft button { font-weight: 500; }

/* Service AI suggestions */
.dsk textarea.inp.tall { min-height: 120px; }
.dsk .ai { margin-top: 8px; padding: 10px 12px; border: 1px solid #cfe0fb; border-radius: 12px; background: #f5f9ff; }
.dsk .ai-h { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #1d4ed8; font-size: 12.5px; font-weight: 500; }
.dsk .ai-list { display: flex; flex-direction: column; gap: 6px; }
.dsk .ai-s { padding: 8px 10px; border: 1px solid #dce7f8; border-radius: 9px; background: #fff; color: var(--text); font: inherit; font-size: 13.5px; line-height: 1.4; text-align: left; cursor: pointer; }
.dsk .ai-s:hover, .dsk .ai-s.on { border-color: #3b76e0; background: #eaf2ff; color: var(--ink); }
.dsk .ai-empty { margin: 0; color: var(--muted); font-size: 13px; }

/* Photos */
.dsk .ph-grid { position: relative; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; transition: background .15s, box-shadow .15s; }
.dsk .photo-mobile-title { display: none; }
.dsk .photo-desktop-title { display: inline; }
.dsk .photo-drop-hint { display: inline; }
.dsk .ph-grid.is-dragover { border-radius: 12px; background: #fff8ef; box-shadow: 0 0 0 7px #fff8ef, 0 0 0 9px var(--brand); }
.dsk .ph-grid.is-dragover::after { position: absolute; z-index: 20; inset: -7px; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--brand); border-radius: 12px; background: rgba(255,248,239,.94); color: #7a3a00; content: "Пусни снимките тук"; font-size: 17px; font-weight: 600; pointer-events: none; }
.dsk .ph-grid.is-dragover .ph-add { border-color: var(--brand); background: #fff8ef; }
.dsk .ph, .dsk .ph-add { border-radius: 10px; }
.dsk .ph-add { font-weight: 400; }
.dsk .ph-add.big { min-height: 220px; border-color: #d5d9de; background: #fafaf8; font-size: 15px; font-weight: 500; }
.dsk .ph-add .pi { border: 1px solid var(--line); box-shadow: none; }
.dsk .ph .tag { font-weight: 500; }
.dsk .advice { padding: 18px 20px; border: 1px solid #efede8; border-radius: 12px; background: #fafaf8; }
.dsk .advice .ad-h { font-size: 15px; font-weight: 500; }
.dsk .advice .ad-i { width: 30px; height: 30px; }
.dsk .advice li { font-size: 14px; }

/* Sticky actions */
.dsk .foot { position: sticky; z-index: 5; right: auto; bottom: 0; left: auto; border-top: 1px solid #ededeb; border-radius: 0 0 16px 16px; background: rgba(255,255,255,.98); box-shadow: 0 -1px 0 #ededeb; }
.dsk .foot-in { display: flex; width: auto; max-width: none; padding: 12px 24px; align-items: center; gap: 16px; }
.dsk .foot .left { order: 2; min-width: 0; flex: 1; margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.dsk .foot .left button { font-size: 13.5px; font-weight: 500; }
.dsk .btn { min-height: 44px; font-size: 15px; font-weight: 500; }
.dsk .foot .btn { order: 3; width: auto; flex: none; padding: 0 22px; white-space: nowrap; }
.dsk .foot .btn svg { width: 18px; height: 18px; }
.dsk .dback { display: inline-flex; order: 1; height: 44px; align-items: center; gap: 4px; padding: 0 14px 0 8px; border: 0; border-radius: 999px; background: none; color: var(--text); font: inherit; font-size: 14.5px; cursor: pointer; }
.dsk .dback:hover { background: var(--soft); color: var(--ink); }
.dsk .toast { bottom: 100px; }

/* Live preview */
.dsk .pvs-h { display: flex; justify-content: space-between; align-items: baseline; color: var(--text); font-size: 14px; }
.dsk .pct { color: var(--muted); font-size: 13px; }
.dsk .pbar { height: 4px; margin-top: 10px; overflow: hidden; border-radius: 4px; background: #e8e8e4; }
.dsk .pbar i { display: block; width: 0; height: 100%; border-radius: 4px; background: var(--green); transition: width .3s; }
.dsk .pvside .pv { margin-top: 14px; border-color: #e8e8e4; border-radius: 12px; box-shadow: 0 1px 2px rgba(14,17,22,.04); }
.dsk .pvside .contact-pv { margin-top: 14px; padding: 16px; border-color: #e8e8e4; border-radius: 12px; box-shadow: 0 1px 2px rgba(14,17,22,.04); }
.dsk .pvside .contact-pv-actions { grid-template-columns: 1fr; }
.dsk .pvside .contact-pv-seller { align-items: flex-start; }
.dsk .pvside .contact-pv-av { width: 42px; height: 42px; border-radius: 11px; font-size: 13px; }
.dsk .pvside .contact-pv-seller b { font-size: 14.5px; }
.dsk .pvside .contact-pv-seller div > span { font-size: 12.5px; }
.dsk .pv .pt { font-size: 16px; font-weight: 500; }
.dsk .pv .pp b { font-size: 18px; font-weight: 600; }
.dsk .pv .pp .tg { font-weight: 500; }
.dsk .pvs-tips { display: grid; margin: 18px 0 0; padding: 0; gap: 8px; color: var(--muted); font-size: 13px; list-style: none; }
.dsk .pvs-tips li { position: relative; padding-left: 14px; }
.dsk .pvs-tips li::before { position: absolute; top: 8px; left: 2px; width: 4px; height: 4px; border-radius: 50%; background: #c9cdd3; content: ""; }
.dsk .pvs-help { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #e8e8e4; color: var(--muted); font-size: 13px; }
.dsk .pvs-help a { color: var(--ink); }

/* Completion */
.dsk .fin h1 { font-size: 26px; }
.dsk .fin .acts { flex-direction: row; justify-content: center; }
.dsk .fin .acts .btn { width: auto; padding: 0 22px; }
.dsk .fin-success .acts { flex-direction: column; }
.dsk .fin-success .acts .btn { width: min(100%, 320px); }

@media (max-width: 1100px) {
  .dsk .dtop-in { grid-template-columns: auto 1fr auto; }
  .dsk .dname, .dsk .dsep, .dsk .dr .ttl { display: none; }
  .dsk .steps { justify-content: center; }
  .dsk .steps li + li::before { width: 14px; }
  .dsk .shell { padding: 24px; grid-template-columns: minmax(0,1fr) 280px; gap: 24px; }
  .dsk main { padding: 32px 32px 24px; }
  .dsk .ph-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .dsk .shell { padding: 16px; grid-template-columns: 1fr; }
  .dsk .pvside { display: none; }
  .dsk.contact-step .pvside { display: block; position: static; }
  .dsk main { padding: 24px 20px; }
  .dsk.contact-step main { padding: 0 0 20px; }
  .dsk.contact-step .contact-sec > .grid { grid-template-columns: minmax(0,1fr); }
  .dsk.contact-step .contact-hours-row { grid-template-columns: minmax(0,1fr); }
  .dsk .steps button { padding: 6px 4px; gap: 0; font-size: 0; }
  .dsk .steps li.cur button { gap: 8px; font-size: 14px; }
  .dsk .kinds { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dsk .ph-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .dsk *, .dsk *::before, .dsk *::after { transition: none !important; }
}
