/* Путь заказа через программы посетителя (блок order). Только свои классы w-order*, цвета и шрифты переменными сайта.
   Без скрипта (.w-order без .is-js): готовый журнал для набора по умолчанию, выбор программ выключен. Выбор и повтор включает w-order.js. */
.w-order:not(.is-js) .w-order__js { display: none; }
.w-order.is-js .w-order__nojs { display: none; }
.w-order__vh { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.w-order__head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 32px; }
.w-order__intro { font-size: 19px; color: var(--muted); text-wrap: pretty; }
.w-order__fig { margin: 0; min-width: 0; }
.w-order__stage { display: flex; flex-direction: column; gap: 22px; background: var(--cob); border-radius: 36px; padding: clamp(16px, 2.6vw, 32px); }
.w-order__cols { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.w-order__win { display: flex; flex-direction: column; scroll-margin-top: 92px; container: w-order-win / inline-size; }
.w-order__whd { min-height: 68px; }
.w-order__hd { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.w-order__t { font-family: var(--hf); font-weight: 700; font-size: 18px; line-height: 1.2; }
.w-order__hd small { font-size: 13.5px; color: var(--muted); line-height: 1.3; }
.w-order__st { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 5px 11px; border-radius: 999px; background: var(--tint); color: var(--cob);
  font-size: 13px; font-weight: 600; }
.w-order__st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cob); }
.w-order__st[data-k="run"]::before { animation: w-order-pulse 1s ease-in-out infinite; }
.w-order__lg { width: 28px; height: 28px; border-radius: 7px; }

/* выбор программ: в каждой рубрике одна, как радиокнопки */
.w-order__pick { flex: 1; display: flex; flex-direction: column; gap: 15px; padding: 18px; }
.w-order-g { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.w-order-g__l { font-size: 14px; line-height: 1.3; color: var(--muted); }
.w-order-g__l b { font-weight: 600; color: var(--ink); }
.w-order-dock { display: flex; flex-wrap: wrap; gap: 6px; }
.w-order-o { position: relative; display: block; }
.w-order-o input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.w-order-o input:disabled { cursor: default; }
.w-order-o__b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--stone); border: 2px solid transparent;
  transition: background .15s, border-color .15s, transform .16s var(--ease, ease); }
.w-order__plus { font-size: 24px; font-weight: 500; line-height: 1; color: var(--muted); }
.w-order-o input:checked + .w-order-o__b { background: var(--white); border-color: var(--cob); }
.w-order-o input:checked + .w-order-o__b .w-order__plus { color: var(--cob); }
/* отметка выбранной программы: кобальтовый кружок с галочкой */
.w-order-o input:checked + .w-order-o__b::before { content: ""; position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--white); background: var(--cob); }
.w-order-o input:checked + .w-order-o__b::after { content: ""; position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; background: var(--white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 11px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.w-order-o input:focus-visible + .w-order-o__b { outline: 3px solid var(--cob); outline-offset: 3px; }
.w-order-o:active input:enabled + .w-order-o__b { transform: scale(.94); }
@media (hover: hover) { .w-order-o:hover input:enabled:not(:checked) + .w-order-o__b { background: var(--tint); } }
.w-order__note { margin-top: auto; padding: 12px 14px; border-radius: 14px; background: var(--stone); font-size: 14px; line-height: 1.4; color: var(--muted); }

/* путь заказа */
.w-order__rows { flex: 1; display: flex; flex-direction: column; margin: 0; padding: 8px 0; list-style: none; }
.w-order-row { position: relative; flex: 1; display: flex; align-items: flex-start; gap: 12px; padding: 9px 18px; border-radius: 12px; }
.w-order-row::before, .w-order-row::after { content: ""; position: absolute; left: 37px; top: 53px; bottom: -5px; width: 2px; border-radius: 1px; background: var(--line); }
.w-order-row::after { background: var(--cob); transform: scaleY(0); transform-origin: 50% 0; transition: transform .4s var(--ease, ease); }
.w-order-row.is-done::after { transform: none; }
.w-order-row:last-child::before, .w-order-row:last-child::after { display: none; }
.w-order-row > * { opacity: .34; transition: opacity .3s ease; }
.w-order-row.is-run > *, .w-order-row.is-done > * { opacity: 1; }
.w-order__tile { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 12px; }
.w-order__tile .w-order__plus { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--tint); color: var(--cob);
  font-size: 20px; font-weight: 600; }
.w-order__man { width: 22px; height: 22px; fill: none; stroke: var(--cob); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.w-order-row__t { flex: 1; min-width: 0; min-height: 40px; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.w-order-row__t b { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.w-order-row__t small { font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.w-order-row__r { flex: none; display: flex; align-items: center; gap: 10px; height: 40px; }
.w-order-row__time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .25s ease; }
.w-order-row.is-done .w-order-row__time { opacity: 1; }
.w-order-row__s { position: relative; width: 22px; height: 22px; }
.w-order-row__s > * { position: absolute; inset: 0; }
.w-order-spin { display: none; border-radius: 50%; border: 2.6px solid var(--tint); border-top-color: var(--cob); animation: w-order-spin .6s linear infinite; }
.w-order-row.is-run .w-order-spin { display: block; }
.w-order-row__s svg { opacity: 0; transform: scale(.8); transition: opacity .2s ease, transform .3s var(--ease, ease); }
.w-order-row.is-done .w-order-row__s svg { opacity: 1; transform: none; }
.w-order-flash { animation: w-order-flash 1s ease; }
@container w-order-win (max-width: 540px) { .w-order-row__time { display: none; } }

/* итог и кнопки */
.w-order__bar { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; color: var(--white); }
.w-order__nums { display: flex; gap: 12px 36px; margin: 0; }
.w-order__nums div { display: flex; flex-direction: column-reverse; gap: 2px; }
.w-order__nums dt { font-size: 14px; line-height: 1.3; color: var(--on-cob); }
.w-order__nums dd { margin: 0; font-family: var(--hf); font-weight: 800; letter-spacing: -0.02em; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.w-order__act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.w-order__again, .w-order__cta { transition: background .15s, transform .16s var(--ease, ease); }
.w-order__again:active, .w-order__cta:active { transform: scale(.97); }
.w-order__again:focus-visible, .w-order__cta:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.w-order__again { background: transparent; border: 1.5px solid var(--on-cob); border-color: color-mix(in srgb, var(--white) 50%, transparent); padding: 15.5px 24px; font-size: 16px; }
.w-order__again:hover { background: var(--cob-d); }
.w-order__again[hidden] { display: none; }
.w-order__cap { max-width: 760px; margin: 12px auto 0; font-size: 14px; color: var(--muted); text-align: center; text-wrap: balance; }

@keyframes w-order-spin { to { transform: rotate(360deg); } }
@keyframes w-order-pulse { 50% { opacity: .25; } }
@keyframes w-order-flash { 0%, 35% { background: var(--tint); } }

@media (max-width: 900px) {
  .w-order__stage { border-radius: 28px; }
  .w-order__cols { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .w-order__t { font-size: 17px; }
  .w-order__pick { padding: 16px 14px; gap: 14px; }
  .w-order-o__b { width: 44px; height: 44px; }
  .w-order-row { padding: 9px 14px; gap: 10px; }
  .w-order-row::before, .w-order-row::after { left: 33px; }
  .w-order-row__time { display: none; }
  .w-order__nums { gap: 10px 20px; width: 100%; justify-content: space-between; }
  .w-order__nums dd { font-size: 30px; }
  .w-order__act { width: 100%; }
  .w-order__again, .w-order__cta { flex: 1 1 100%; justify-content: center; text-align: center; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .w-order-row > *, .w-order-row::after, .w-order-row__s svg, .w-order-row__time, .w-order-o__b, .w-order__again, .w-order__cta { transition: none; }
  .w-order-flash, .w-order__st[data-k="run"]::before, .w-order-spin { animation: none; }
}
