.wizard {
  --rule: color-mix(in srgb, var(--ink) 13%, transparent);
  background: var(--sheet);
  color: var(--ink);
  padding-bottom: 88px;
  min-height: 100vh;
}
.seal-wizard-block {
  background: var(--sheet);
}
.wizard--embedded {
  padding: 0;
  background: transparent;
  min-height: 0;
}
.wizard-intro {
  max-width: 820px;
  margin-bottom: 28px;
}
.wizard-intro h2 {
  font:
    600 clamp(1.8rem, 3vw, 3rem)/1.12 Unbounded,
    sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
}
.wizard-intro p {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 14px 0 0;
}
.wizard--embedded .wizard-layout {
  padding-top: 0;
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.scenario-grid label {
  cursor: pointer;
}
.scenario-grid input {
  position: absolute;
  opacity: 0;
}
.scenario-grid span {
  display: flex;
  flex-direction: column;
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}
.scenario-grid small {
  color: var(--ink-2);
  margin-top: 4px;
}
.scenario-grid input:checked + span {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
  box-shadow: inset 0 0 0 1px var(--primary);
}
.mount-toolbar p {
  margin: 0 0 16px;
  color: var(--ink-2);
}
.company-fields {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
.company-fields legend {
  font: 600 1rem Unbounded;
  margin-bottom: 14px;
}
.company-lookup {
  position: relative;
  margin-bottom: 16px;
}
.company-lookup > label {
  display: grid;
  gap: 7px;
}
.company-suggestions {
  position: absolute;
  z-index: 20;
  inset-inline: 0;
  top: calc(100% - 22px);
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--ink) 14%, transparent);
}
.company-suggestions button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  text-align: start;
  cursor: pointer;
}
.company-suggestions button:last-child { border-bottom: 0; }
.company-suggestions button:hover,
.company-suggestions button:focus-visible,
.company-suggestions button.is-active {
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  outline: none;
}
.company-suggestions small,
.company-lookup__status { color: var(--ink-2); }
.company-lookup__status { display: block; margin-top: 7px; }
.contact-grid__wide {
  grid-column: 1/-1;
}
.wizard--embedded .form__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.wizard--embedded .form__foot .btn--ghost {
  margin-right: auto;
}
.wizard--embedded .check {
  margin-top: 18px;
}
.wizard--embedded .form__ok {
  padding: 15px;
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  border-radius: 12px;
}
.wizard--embedded .form__fail {
  color: var(--danger);
}
@media (max-width: 650px) {
  .scenario-grid {
    grid-template-columns: 1fr 1fr;
  }
  .scenario-grid label:last-child {
    grid-column: 1/-1;
  }
  .wizard-intro {
    margin-bottom: 20px;
  }
  .wizard-intro h2 {
    font-size: 1.65rem;
  }
  .wizard--embedded .form__foot {
    flex-wrap: wrap;
  }
  .wizard--embedded .form__foot .form__fail {
    width: 100%;
  }
}
.wizard-head {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.wizard-head .wrap {
  padding-top: 28px;
  padding-bottom: 32px;
}
.wizard-crumbs {
  display: flex;
  gap: 9px;
  color: var(--ink-2);
  font-size: 0.86rem;
}
.wizard-crumbs a {
  text-underline-offset: 4px;
}
.wizard-head__row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-top: 22px;
}
.wizard-head h1 {
  font:
    600 clamp(2rem, 3.8vw, 3.55rem)/1.08 Unbounded,
    sans-serif;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0;
}
.wizard-head p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 1.08rem;
  line-height: 1.55;
}
.wizard-head__meta {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}
.wizard-head__meta > * {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--sheet);
  font-size: 0.84rem;
}
.wizard-head__meta span {
  color: var(--ink-2);
}
.wizard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
  align-items: start;
  padding-top: 36px;
}
.wizard-steps {
  display: grid;
  gap: 12px;
}
.wstep {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
.wstep.is-active {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--rule));
  box-shadow: 0 15px 45px color-mix(in srgb, var(--primary) 10%, transparent);
}
.wstep__head {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 16px;
  align-items: center;
  text-align: left;
  padding: 20px 22px;
  cursor: pointer;
}
.wstep__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sheet);
  font-weight: 750;
  color: var(--ink-2);
}
.wstep.is-active .wstep__num {
  background: var(--primary);
  color: #fff;
}
.wstep.is-done .wstep__num {
  font-size: 0;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--primary);
}
.wstep.is-done .wstep__num:after {
  content: "✓";
  font-size: 1rem;
}
.wstep__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wstep__title b {
  font:
    600 1.08rem Unbounded,
    sans-serif;
}
.wstep__title small {
  color: var(--ink-2);
  font-size: 0.9rem;
}
.wstep__edit {
  font-size: 0.84rem;
  color: var(--primary);
  opacity: 0;
}
.wstep.is-done .wstep__edit {
  opacity: 1;
}
.wstep__body {
  border-top: 1px solid var(--rule);
  padding: 26px 22px 24px;
}
.product-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.product-tabs label {
  cursor: pointer;
}
.product-tabs input {
  position: absolute;
  opacity: 0;
}
.product-tabs span,
.source-tabs button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}
.product-tabs input:checked + span,
.source-tabs button.is-active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
  box-shadow: inset 0 0 0 1px var(--primary);
}
.product-tabs b,
.source-tabs b {
  font-size: 1rem;
}
.product-tabs small,
.source-tabs small {
  margin-top: 4px;
  color: var(--ink-2);
}
.choice-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.choice-line > span {
  color: var(--ink-2);
  margin-right: 4px;
}
.choice-line button,
.catalog-filters button,
.choice-line button.is-active,
.catalog-filters button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.source-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.source-tabs button {
  cursor: pointer;
}
.catalog {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.catalog-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.catalog-search input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--sheet);
  color: var(--ink);
  padding: 0 15px;
  font: inherit;
}
.catalog-filters {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 2px;
}
.catalog-filters button {
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 0.86rem;
}
.layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.layout-option {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.layout-option.is-active {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.layout-preview {
  position: relative;
  aspect-ratio: 1.7;
  display: grid;
  place-items: center;
  background: var(--sheet);
  border-radius: 9px;
  margin-bottom: 12px;
}
.layout-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.layout-seal {
  width: 88px;
  height: 88px;
  border: 3px double var(--primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--primary);
  font-size: 0.5rem;
  line-height: 1.2;
}
.layout-seal.square {
  border-radius: 8px;
  height: 62px;
}
.layout-seal.logo:before {
  content: "П";
  font: 700 1.4rem Unbounded;
}
.layout-option__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.layout-option__meta span {
  font-weight: 700;
}
.catalog-price {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  color: var(--primary);
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}
.catalog-price del {
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 500;
}
.catalog-price.is-discounted strong {
  color: #b42318;
}
.catalog-badge {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  max-width: calc(100% - 18px);
  padding: 5px 9px;
  border-radius: 7px;
  background: #393185;
  color: #fff;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgb(24 18 68 / 0.18);
}
.catalog-badge--new { background: #176b4d; }
.catalog-badge--clearance { background: #b42318; }
.catalog-badge--promo { background: #9a4d08; }
.layout-option small {
  display: block;
  color: var(--ink-2);
  margin-top: 4px;
}
.catalog-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 0.86rem;
}
.pager {
  display: flex;
  gap: 5px;
}
.pager button {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.pager button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.upload-box {
  min-height: 150px;
  border: 1px dashed var(--primary);
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 5%, var(--surface));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.upload-box input {
  position: absolute;
  opacity: 0;
}
.upload-box span {
  color: var(--ink-2);
  margin-top: 5px;
}
.text-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.text-box textarea,
.contact-grid input,
.contact-grid textarea {
  border: 1px solid var(--rule);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
}
.facsimile-box {
  display: grid;
  gap: 16px;
}
.mount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mount-card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.mount-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 1.25;
  background-image: url("/assets/img/prototype/stamp-mounts-demo.png");
  background-size: 300% 200%;
  background-position: var(--x) var(--y);
}
.mount-photo.has-image {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: zoom-in;
}
.mount-photo.has-image:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}
.mount-photo__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  color: var(--primary);
  box-shadow: 0 5px 16px rgb(24 18 68 / 0.18);
  transition: transform 180ms ease-out, background-color 180ms ease-out;
}
.mount-photo.has-image:hover .mount-photo__zoom {
  transform: scale(1.08);
  background: #fff;
}
.mount-lightbox img {
  width: min(900px, calc(100vw - 32px));
  height: min(700px, calc(100vh - 112px));
  background: #fff;
  object-fit: contain;
}
.mount-lightbox .lightbox__cap {
  font-weight: 600;
}
.mount-info {
  padding: 13px;
}
.mount-info b {
  display: block;
  font-size: 0.9rem;
  min-height: 2.5em;
}
.mount-info small {
  color: var(--ink-2);
}
.mount-buy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.mount-buy > .catalog-price { align-items: flex-start; }
.qty {
  display: grid;
  grid-template-columns: 34px 32px 34px;
  align-items: center;
}
.qty button {
  height: 34px;
  border: 1px solid var(--rule);
  background: var(--sheet);
  color: var(--ink);
  cursor: pointer;
}
.qty button:first-child {
  border-radius: 8px 0 0 8px;
}
.qty button:last-child {
  border-radius: 0 8px 8px 0;
}
.qty output {
  text-align: center;
  font-weight: 750;
}
.cliche-qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 16px;
  background: var(--sheet);
  border-radius: 12px;
}
.cliche-qty > span {
  display: flex;
  flex-direction: column;
}
.cliche-qty small {
  color: var(--ink-2);
  margin-top: 3px;
}
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.size-option { overflow: hidden; padding: 0; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.size-option:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--rule)); }
.size-option.is-active { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.size-option__visual { display: grid; place-items: center; aspect-ratio: 1.8; padding: 12px; background: var(--sheet); }
.size-option__visual img { width: 100%; height: 100%; object-fit: contain; }
.size-option__visual i { display: flex; align-items: baseline; gap: 5px; color: var(--primary); font-style: normal; }
.size-option__visual i b { font-size: 1.45rem; }
.size-option__visual i small { color: inherit; }
.size-option__meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px 12px; }
.size-option__meta strong { color: var(--primary); white-space: nowrap; }
.size-grid.has-error, .catalog.has-error { border-radius: 12px; box-shadow: 0 0 0 2px var(--danger, #b42318); }
.facsimile-note {
  padding: 18px;
  background: var(--sheet);
  border-radius: 12px;
  color: var(--ink-2);
}
.deadline-list {
  display: grid;
  gap: 9px;
}
.deadline-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 18px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 15px;
  cursor: pointer;
}
.deadline-list button > strong { min-width: 5.5rem; text-align: right; white-space: nowrap; }
.deadline-list .promo-choice { position: relative; }
.deadline-list .promo-choice > button[data-value] { width: 100%; }
.deadline-list .promo-choice.has-details > button[data-value] { padding-bottom: 42px; }
.deadline-list .promo-choice > .promo-more { position: absolute; left: 15px; bottom: 12px; display: inline; width: auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--primary); font: inherit; font-size: .88rem; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; z-index: 1; }
.deadline-list .promo-choice > .promo-more:hover { text-decoration-thickness: 2px; }
@media (max-width: 560px) {
  .deadline-list button { grid-template-columns: 1fr; gap: 8px; align-items: start; }
  .deadline-list button > strong { min-width: 0; text-align: left; }
}
.deadline-list button span {
  display: flex;
  flex-direction: column;
}
.deadline-list small {
  color: var(--ink-2);
  margin-top: 3px;
}
.deadline-list button.is-active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.wstep__body [hidden],
.wizard [hidden] {
  display: none !important;
}
.wstep__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.wstep__actions .btn--primary {
  margin-left: auto;
}
.order-rail {
  position: sticky;
  top: 96px;
  background: var(--deep);
  color: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(20, 16, 60, 0.2);
}
.order-rail__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.order-rail h2 {
  font: 600 1.18rem Unbounded;
  margin: 0;
}
.order-rail__top span,
.order-rail dt,
.order-rail p,
.order-rail > small {
  color: #c7c2ea;
}
.order-rail dl {
  display: grid;
  gap: 11px;
  margin: 24px 0;
}
.order-rail dl div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.9rem;
}
.order-rail dd {
  margin: 0;
  text-align: right;
}
.order-rail__total {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.order-rail__total strong {
  font: 600 1.55rem Unbounded;
  font-variant-numeric: tabular-nums;
}
.order-rail p {
  font-size: 0.86rem;
  line-height: 1.5;
}
.order-rail .btn {
  margin-top: 14px;
}
.order-rail > small {
  display: block;
  text-align: center;
  margin-top: 10px;
}
.wizard button:focus-visible,
.wizard input:focus-visible,
.wizard textarea:focus-visible,
.product-tabs input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent);
  outline-offset: 3px;
}
.wizard ::selection {
  background: var(--primary);
  color: #fff;
}
@media (max-width: 960px) {
  .wizard-head__meta {
    display: none;
  }
  .wizard-layout {
    grid-template-columns: 1fr;
  }
  .order-rail {
    position: static;
    order: -1;
  }
  .order-rail dl,
  .order-rail p,
  .order-rail > small {
    display: none;
  }
  .order-rail .btn {
    width: auto;
  }
  .order-rail__total {
    margin-top: 15px;
  }
  .order-rail__top span {
    display: none;
  }
}
@media (max-width: 650px) {
  .wizard {
    padding-bottom: 50px;
  }
  .wizard-head .wrap {
    padding-top: 20px;
    padding-bottom: 24px;
  }
  .wizard-head__row {
    margin-top: 16px;
  }
  .wizard-head h1 {
    font-size: 1.85rem;
  }
  .wizard-head p {
    font-size: 0.95rem;
  }
  .wizard-layout {
    padding-top: 20px;
    gap: 16px;
  }
  .order-rail {
    padding: 16px;
  }
  .wstep__head {
    grid-template-columns: 34px 1fr auto;
    gap: 11px;
    padding: 16px 14px;
  }
  .wstep__num {
    width: 32px;
    height: 32px;
  }
  .wstep__title b {
    font-size: 0.94rem;
  }
  .wstep__title small {
    font-size: 0.8rem;
  }
  .wstep__edit {
    font-size: 0;
  }
  .wstep__edit:after {
    content: "Изм.";
    font-size: 0.78rem;
  }
  .wstep__body {
    padding: 20px 14px;
  }
  .product-tabs,
  .source-tabs {
    grid-template-columns: 1fr;
  }
  .product-tabs span,
  .source-tabs button {
    min-height: 66px;
  }
  .choice-line {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .choice-line > span {
    width: 100%;
  }
  .layout-grid,
  .mount-grid {
    grid-template-columns: 1fr 1fr;
  }
  .layout-preview {
    aspect-ratio: 1.45;
  }
  .layout-seal {
    width: 72px;
    height: 72px;
  }
  .layout-option {
    padding: 10px;
  }
  .layout-option__meta {
    display: block;
  }
  .layout-option__meta em {
    display: block;
    margin-top: 4px;
  }
  .catalog-foot {
    align-items: flex-start;
    gap: 10px;
  }
  .catalog-foot > span {
    max-width: 120px;
  }
  .mount-info {
    padding: 10px;
  }
  .mount-info b {
    font-size: 0.82rem;
  }
  .mount-buy {
    align-items: flex-end;
    gap: 4px;
  }
  .mount-buy strong {
    font-size: 0.84rem;
  }
  .qty {
    grid-template-columns: 30px 27px 30px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .wstep__actions {
    position: sticky;
    bottom: 8px;
    background: var(--surface);
    padding-top: 10px;
    z-index: 3;
  }
}
