/* ==========================================================================
   X SHOP — S2 Мастер создания магазина
   ========================================================================== */

.wizard__head { margin-bottom: var(--sp-2); }
.wizard__head .page-head__title { flex: 1; }
.wizard__count { color: var(--c-text-3); font-size: var(--fs-sm); font-weight: var(--fw-medium); }

/* Шаги */
.wsteps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: var(--sp-5);
}
.wsteps li { display: grid; gap: 6px; min-width: 0; }
.wsteps__bar {
  height: 4px;
  border-radius: 2px;
  background: var(--c-surface-3);
  transition: background-color var(--dur-3);
}
.wsteps .is-done .wsteps__bar,
.wsteps .is-current .wsteps__bar { background: var(--c-accent); }
.wsteps__label {
  font-size: 11px;
  color: var(--c-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wsteps .is-current .wsteps__label { color: var(--c-text); font-weight: var(--fw-semibold); }
.wsteps .is-done .wsteps__label { color: var(--c-text-2); }

/* Сетка: форма + предпросмотр */
.wizard__grid { display: grid; gap: var(--sp-6); }
.wizard__form { min-width: 0; }
.wizard[data-step="basics"] .wizard__preview { display: none; }
.wizard__preview .phone { max-width: 260px; }

@media (min-width: 1024px) {
  .wizard { max-width: 980px; }
  .wizard__grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: var(--sp-10); }
  .wizard__preview { position: sticky; top: var(--sp-8); }
  .wizard[data-step="basics"] .wizard__preview { display: block; }
  .wizard__preview .phone { max-width: 300px; }
  .wsteps__label { font-size: var(--fs-sm); }
}

/* Оформление */
.look-uploads { display: grid; grid-template-columns: 112px 1fr; gap: var(--sp-3); }
.upload--logo { aspect-ratio: 1; border-radius: 24px; }
.upload--cover { aspect-ratio: 16 / 9; min-height: 112px; }

/* Темы */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.theme-card {
  display: grid;
  gap: var(--sp-2);
  padding: 8px;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  box-shadow: 0 0 0 1px var(--c-line) inset;
  text-align: left;
  transition: box-shadow var(--dur-2), transform var(--dur-1);
}
.theme-card:active { transform: scale(0.98); }
.theme-card[aria-checked="true"] { box-shadow: 0 0 0 2px var(--c-accent) inset; }
.theme-card__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 2px;
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
}
.theme-card__label .i { color: var(--c-accent); }
.theme-card__mini {
  display: grid;
  gap: 6px;
  padding: 0 0 8px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--sp-bg);
  box-shadow: 0 0 0 1px var(--sp-line) inset;
}
.tm-cover { height: 34px; background: linear-gradient(160deg, color-mix(in srgb, var(--sp-accent) 55%, var(--sp-bg)), var(--sp-bg)); }
.tm-line { height: 6px; margin: 0 8px; border-radius: 3px; background: var(--sp-text); opacity: 0.85; width: 70%; }
.tm-line--short { width: 45%; opacity: 0.35; }
.tm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 2px 8px 0; }
.tm-grid i { height: 30px; border-radius: 6px; background: var(--sp-surface); box-shadow: 0 0 0 1px var(--sp-line) inset; }
.tm-btn { height: 12px; margin: 2px 8px 0; border-radius: 4px; background: var(--sp-accent); }

/* Публикация */
.summary__store { display: flex; align-items: center; gap: var(--sp-3); }
.summary__name { flex: 1; min-width: 0; display: grid; }
.summary__name strong { font-size: var(--fs-lg); font-weight: var(--fw-semibold); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.summary__name span { color: var(--c-text-2); font-size: var(--fs-sm); }
.summary__list { display: grid; margin: 0; }
.summary__list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--sp-3);
  padding: 10px 0;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-sm);
}
.summary__list dt { color: var(--c-text-3); }
.summary__list dd { margin: 0; color: var(--c-text); overflow-wrap: anywhere; }
.summary__dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset; }
.publish-note {
  display: flex;
  gap: var(--sp-2);
  margin: var(--sp-4) var(--sp-1) 0;
  color: var(--c-text-2);
  font-size: var(--fs-sm);
}
.publish-note .i { color: #8DB6FF; flex: none; margin-top: 2px; }

@media (max-width: 380px) {
  .summary__list div { grid-template-columns: 1fr; gap: 2px; }
}

/* Успех */
.success {
  max-width: 460px;
  margin: 0 auto;
  padding-top: var(--sp-8);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
}
.success__mark svg { width: 76px; height: 76px; }
.success__mark circle {
  fill: var(--c-success-soft);
  stroke: var(--c-success);
  stroke-width: 2;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: draw 0.6s var(--ease-out) forwards;
}
.success__mark path {
  fill: none;
  stroke: var(--c-success);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.4s 0.45s var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.success__title {
  margin-top: var(--sp-2);
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(1.5rem, 6.4vw, 2rem);
  letter-spacing: -0.03em;
}
.success__text { color: var(--c-text-2); max-width: 36ch; }
.success__share {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: 0 0 0 1px var(--c-line) inset;
  text-align: left;
}
.success__qr { padding: 6px; border-radius: 14px; background: #fff; }
.success__link { display: grid; gap: var(--sp-2); justify-items: start; min-width: 0; }
.success__link .share__url { width: 100%; font-size: var(--fs-sm); }
.success__actions { display: grid; gap: var(--sp-2); width: 100%; margin-top: var(--sp-4); }
