/* HotSki — cart (template 4): one-page checkout B1–B4, order accepted B5, empty cart B6.
   Grid 4 × 338: content on columns 1–3, the total sticks in column 4 (coolzone payment: menu + content).
   Steps are counted with the brand dots ● ●● ●●● ●●●● (coolzone §3). Motion: transform/opacity only. */

.cart { padding-top: var(--hdr); }
.cart [hidden] { display: none !important; }

/* ‹ Назад (coolzone cart B1) */
.back { display: inline-flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13px; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; transition: color var(--tr); }
.back svg { width: 10px; height: 10px; transition: transform var(--tr); }
.back:hover { color: var(--red); }
.back:hover svg { transform: translateX(-3px); }

/* ---------------- checkout ---------------- */
.ck { padding-top: 24px; padding-bottom: 56px; }
.ck__head { display: flex; align-items: baseline; gap: 22px; margin-top: 30px; }
.ck__head .t44 .ln { overflow: hidden; }
.ck__count { color: var(--gray); }
.ck__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--gap); align-items: start; margin-top: 34px; }
.ck__main { grid-column: 1 / 4; min-width: 0; padding-bottom: 40px; }
.ck__side { grid-column: 4 / 5; position: sticky; top: calc(var(--hdr) + 20px); }

/* section head: line · dots · title (coolzone payment: line above a 20 px caps title) */
.ck-sec { padding-bottom: 58px; }
.ck-sec--last { padding-bottom: 0; }
.ck-sec__head { position: relative; display: flex; align-items: center; gap: 0; padding: 18px 0 28px; }
.ck-sec__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform-origin: 0 50%; }
.ck-sec__dots { width: 58px; flex: 0 0 auto; }
.ck-sec__dots .dot { width: 7px; height: 7px; }
.ck-sec__aside { margin-left: auto; color: var(--gray); }

/* B1 items */
.ck-items { border-bottom: 1px solid #e3e3e3; }
.ck-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) 132px 150px; gap: 0 26px; align-items: stretch; padding: 18px 0; border-top: 1px solid #e3e3e3; }
.ck-item:first-child { border-top: 0; padding-top: 0; }
.ck-item__pic { position: relative; display: block; aspect-ratio: 338 / 479; background: var(--snow); overflow: hidden; }
.ck-item__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ck-item:hover .ck-item__pic img { transform: scale(1.05); }
.ck-item__veil { position: absolute; inset: 0; background: var(--white); transform: scaleY(0); transform-origin: 50% 0; pointer-events: none; }
.ck-item__info { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; padding-top: 1px; }
.ck-item__brand { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); }
.ck-item__name { font-size: 13px; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.02em; max-width: 440px; transition: color var(--tr); }
.ck-item__name:hover { color: var(--red); }
.ck-item__meta { font-size: 12px; color: var(--gray); }
.ck-item__size { font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; margin-top: 6px; }
.ck-item__size span { margin-left: 4px; }
.ck-item__del { margin-top: auto; color: var(--gray); transition: color var(--tr); }
.ck-item__del:hover, .ck-item__del:focus-visible { color: var(--red); }

.ck-qty { display: flex; align-items: flex-start; justify-content: center; gap: 12px; padding-top: 0; }
.ck-qty .arr svg { width: 10px; height: 10px; }
.ck-qty__n { display: inline-grid; place-items: center; min-width: 26px; height: 28px; overflow: hidden; font-size: 15px; }
.ck-qty__n b { grid-area: 1 / 1; font-weight: 400; }
.ck-item__price { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.ck-item__line { font-size: 18px; line-height: 1.15; font-weight: 400; white-space: nowrap; }
.ck-item__unit { font-size: 12px; color: var(--gray); white-space: nowrap; min-height: 16px; }

/* B2 · B3 option tiles: ring with the red dot = the brand sign as a radio (coolzone §3) */
.ck-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ck-opt { position: relative; display: flex; flex-direction: column; min-height: 176px; padding: 16px 18px 20px; border: 1px solid #dcdfe3; background: var(--white); cursor: pointer; transition: border-color var(--tr), box-shadow var(--tr), background-color 0.35s; }
.ck-opt:hover { border-color: var(--ink); }
.ck-opt.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 0.5px var(--ink); background: linear-gradient(170deg, #ffffff 30%, var(--snow)); }
.ck-opt__in { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ck-opt:has(.ck-opt__in:focus-visible), .ck-shop:has(.ck-opt__in:focus-visible) { outline: 2px solid var(--red); outline-offset: 3px; }
.ck-opt__top { display: flex; align-items: flex-start; justify-content: space-between; }
.ck-opt__ico { width: 26px; height: 26px; color: var(--ink); opacity: 0.55; transition: opacity var(--tr), transform 0.6s var(--ease-out); }
.ck-opt:hover .ck-opt__ico, .ck-opt.is-on .ck-opt__ico { opacity: 1; }
.ck-opt__name { margin-top: auto; padding-top: 30px; font-size: 13px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.02em; }
.ck-opt__text { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; font-weight: 300; min-height: 38px; }
.ck-opt__text:empty { min-height: 0; margin-top: 0; }

.ck-ring { position: relative; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--ink); display: inline-grid; place-items: center; }
.ck-ring::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform 0.45s cubic-bezier(0.34, 1.8, 0.5, 1); }
.is-on > .ck-opt__top .ck-ring::after, .is-on .ck-shop__name .ck-ring::after { transform: scale(1); }

/* pickup: two shops (client photos, addresses verbatim) */
.ck-shops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.ck-shop { position: relative; display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 18px; padding: 12px; border: 1px solid #dcdfe3; cursor: pointer; transition: border-color var(--tr), box-shadow var(--tr); }
.ck-shop:hover { border-color: var(--ink); }
.ck-shop.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 0.5px var(--ink); }
.ck-shop__pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--snow); }
.ck-shop__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ck-shop:hover .ck-shop__pic img { transform: scale(1.05); }
.ck-shop__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 2px 4px 2px 0; }
.ck-shop__name { display: flex; align-items: center; gap: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; }
.ck-shop__addr { font-size: 12px; line-height: 1.45; }
.ck-shop .blink { margin-top: auto; }

.ck-note { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 12px; }
.ck-note .dot { width: 6px; height: 6px; flex: 0 0 auto; }

/* B4 fields on the line; a red line grows on focus; error text has its own slot (no jump) */
.ck-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap); }
.ck-field { padding-bottom: 22px; }
.ck-field input { font-size: 15px; padding: 8px 0 10px; }
.ck-field input:focus { border-bottom-color: var(--ink); }
.ck-field input::placeholder { color: #b5b8bd; }
.ck-field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease-out); }
.ck-field:focus-within::after, .ck-field.is-err::after { transform: scaleX(1); }
.ck-field__err { position: absolute; left: 0; bottom: 3px; font-size: 11px; letter-spacing: 0.02em; color: var(--red); opacity: 0; transform: translateY(-4px); transition: opacity 0.25s, transform 0.35s var(--ease-out); }
.ck-field.is-err .ck-field__err { opacity: 1; transform: none; }
.ck-field.is-err .field__label { color: var(--red); }

.ck-submit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap); align-items: center; margin-top: 14px; }
.ck-go { position: relative; min-height: 46px; }
.ck-go__dots { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; }
.ck-go.is-busy .ck-go__txt { opacity: 0; }
.ck-go.is-busy .ck-go__dots { opacity: 1; }
.ck-go[disabled] { opacity: 1; cursor: progress; }
.ck-reg { grid-column: 2 / 4; display: flex; align-items: center; gap: 12px; padding-left: 8px; }
.ck-reg__minus { font-size: 13px; color: var(--red); letter-spacing: 0.02em; }

/* total (column 4, sticky): Alumni figure + goal gradient to 12000 + the client's rule verbatim */
.ck-sum { position: relative; padding: 18px 22px 24px; background: var(--snow); }
.ck-sum::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); }
.ck-sum__total { margin-top: 14px; font-family: var(--f-disp); font-weight: 800; font-size: 76px; line-height: 0.84; letter-spacing: -0.005em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ck-sum__total small { font-size: 0.42em; margin-left: 8px; letter-spacing: 0.02em; }
.ck-goal { margin-top: 26px; }
.ck-goal__track { position: relative; height: 3px; overflow: visible; }
.ck-goal__track::before { content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 1px; background: #c9ced5; }
.ck-goal__fill { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }
.ck-goal__rail { position: absolute; left: 0; right: 0; top: 0; height: 3px; transform: translateX(-100%); pointer-events: none; }
.ck-goal__dot { position: absolute; right: -7px; top: -5.5px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--snow), 0 0 0 5px rgba(226, 17, 25, 0.28); }
.ck-goal__scale { display: flex; justify-content: space-between; margin-top: 12px; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray); }
.ck-goal__msg { margin-top: 14px; font-size: 13px; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.02em; min-height: 34px; }
.ck-goal__msg b { font-weight: 400; color: var(--red); white-space: nowrap; }
.ck-sum__rule { margin-top: 10px; font-size: 12px; line-height: 1.5; }
/* step map ● ●● ●●● ●●●● (coolzone payment: menu of the page's parts) — the step in view is red up to it */
.ck-steps { margin-top: 22px; border-top: 1px solid #d3d8de; }
.ck-step { display: grid; grid-template-columns: 40px auto minmax(0, 1fr); align-items: center; gap: 0 12px; padding: 10px 0 9px; border-bottom: 1px solid #dde1e6; }
.ck-step:last-child { border-bottom: 0; padding-bottom: 0; }
.ck-step__dots { display: inline-flex; gap: 4px; }
.ck-step__dots i { width: 6px; height: 6px; border-radius: 50%; background: #c3c9d1; transition: background-color 0.35s, transform 0.45s cubic-bezier(0.34, 1.8, 0.5, 1); }
.ck-step.is-on .ck-step__dots i, .ck-step.is-past .ck-step__dots i { background: var(--red); }
.ck-step.is-on .ck-step__dots i { transform: scale(1.25); }
.ck-step__name { font-size: 12px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--gray); transition: color var(--tr); }
.ck-step.is-on .ck-step__name, .ck-step:hover .ck-step__name { color: var(--ink); }
.ck-step__val { font-size: 12px; line-height: 1.35; min-height: 16px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- B5 · order accepted (R13: ice glass over a cold sky, 3D flakes behind) ---------------- */
.done { position: relative; overflow: hidden; isolation: isolate; min-height: max(780px, calc(100vh - var(--hdr))); background: var(--white); color: var(--ink); }
.done__sky { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, #1b54b6 0%, #2f6fd0 26%, #6fa3e3 52%, #bcd6f2 74%, #e6eef7 100%); }
.done__alp { position: absolute; z-index: 1; left: -3%; width: 106%; max-width: none; height: auto; bottom: -6%; }
.done__flakes { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.done__inner { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; padding: 3.6vh var(--pad) 70px; }
.done__word { position: relative; margin: 0; color: var(--white); font-weight: 900; font-size: clamp(110px, 11.6vw, 220px); line-height: 0.8; letter-spacing: -0.012em; text-align: center; white-space: nowrap; text-shadow: 0 20px 50px rgba(10, 40, 100, 0.22); }
.done__word .ch { display: inline-block; will-change: transform; }
.done__card { position: relative; width: min(760px, 100%); margin-top: clamp(22px, 2.2vw, 40px); padding: 24px 28px 28px; display: grid; gap: 0; }
.done .ice { background: linear-gradient(160deg, rgba(255, 255, 255, 0.74), rgba(226, 238, 250, 0.42)); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(160, 196, 228, 0.5), 0 40px 80px rgba(20, 50, 100, 0.22); }
.done__head { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(21, 21, 21, 0.85); }
.done__n { margin-left: auto; color: #5a6470; }
.done__pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.done__pulse::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--red); animation: donePulse 2.4s ease-out infinite; }
@keyframes donePulse { 0% { transform: scale(0.5); opacity: 0.9; } 80%, 100% { transform: scale(1.45); opacity: 0; } }
.done__list { display: grid; }
.done__item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(21, 21, 21, 0.12); }
.done__item img { width: 44px; aspect-ratio: 338 / 479; object-fit: cover; background: var(--snow); }
.done__name { font-size: 12px; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.02em; }
.done__name small { display: block; margin-top: 4px; font-size: 11px; color: #5a6470; letter-spacing: 0.02em; }
.done__price { font-size: 15px; font-weight: 400; white-space: nowrap; }
.done__total { display: flex; justify-content: space-between; align-items: flex-end; padding: 16px 0 6px; }
.done__total .t13 { padding-bottom: 4px; }
.done__sum { font-family: var(--f-disp); font-weight: 800; font-size: 54px; line-height: 0.85; white-space: nowrap; }
.done__picks { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.02em; }
.done__picks div { display: flex; gap: 6px; }
.done__picks dt { color: #5a6470; }
.done__picks dt::after { content: "\00a0:"; }
.done__picks dd { margin: 0; }
.done__contact { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(21, 21, 21, 0.85); }
.done__tel { font-size: 20px; line-height: 1.1; transition: color var(--tr); }
.done__tel:hover { color: var(--red); }
.done__cta { margin-top: 22px; display: flex; justify-content: center; }
.done__cta .btn { min-width: 240px; }

/* ---------------- B6 · empty cart (coolzone cart B1 look + new arrivals instead of a dead end) ---------------- */
.empty__top { padding-top: 24px; }
.empty__hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px var(--pad) 64px; }
.empty__cart { width: 164px; height: auto; color: var(--gray); overflow: visible; }
.empty__wheel { transform-box: fill-box; transform-origin: 50% 50%; }
.empty__title { margin-top: 34px; }
.empty__cap { margin-top: 30px; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); }
.empty__links { display: flex; gap: 30px; margin-top: 14px; }
.empty__new { padding-top: 0; border-top: 0; }
.empty__new .shead { position: relative; padding-top: 44px; margin-bottom: 30px; }
.empty__new .shead::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); }

/* narrow screens: the demo is desktop-first (REF_MAP: mobile deferred) — keep it readable */
@media (max-width: 1100px) {
  .ck__grid { grid-template-columns: 1fr; }
  .ck__main, .ck__side { grid-column: 1 / -1; }
  .ck__side { position: static; margin-top: 40px; }
  .ck-opts, .ck-fields, .ck-submit { grid-template-columns: 1fr; gap: 12px; }
  .ck-reg { grid-column: auto; padding-left: 0; }
  .ck-shops { grid-template-columns: 1fr; }
  .ck-item { grid-template-columns: 90px minmax(0, 1fr) auto; }
  .ck-item__price { grid-column: 2 / 4; align-items: flex-start; }
  .done__word { font-size: 17vw; }
}

@media (prefers-reduced-motion: reduce) {
  .done__pulse::before { animation: none; opacity: 0; }
}
h1[tabindex="-1"]:focus { outline: none; }
