/* kit-config.css — SPIKE «Kit configurator» (concept A, 2026-11-11; v2 2026-11-12 — the deck; sections/kit-config.liquid, /demo/pages/kit-config).
   The heading row over two columns: the summary card (2 fr: the kit's photo filling what the summary leaves, the progress, the count, the total,
   Add kit to cart) as tall as the deck (3 fr): a panel per step, stacked like folder dividers — each laps over the one above by a radius and casts
   a soft shadow up onto it; the open one lighter, with a slider of the step's cards; done steps and upcoming
   steps folded into bars. The fold animates the panel's grid row (0fr ↔ 1fr). Below 1024: the photo a short banner, the deck stacked, the summary
   in a bar fixed above the mobile dock. Lime only for the buttons, the progress fills, the open panel's line, the ticks and the pill; numbers and
   type in sand; the cards our graphite card-product with Concept's «Add to bundle». The odometers are S17's strips (about-chapters.css). */

.ext-kc {
  --ext-kc-sand: 230 225 212; --ext-kc-ease: cubic-bezier(.7, 0, .15, 1); --ext-kc-out: cubic-bezier(.22, 1, .36, 1); --ext-kc-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ext-kc-r: var(--border-radius); --ext-kc-pad: 24px; --ext-kc-gap: clamp(24px, 2.2vw, 40px);
  --ext-kc-on: 31 32 37; --ext-kc-done: 24 25 29; --ext-kc-next: 17 18 21; --ext-kc-fold: .6s;
  overflow-x: clip;
}
/* positioned: Concept paints the section's ground on .section::before (absolute), over anything in the plain flow */
.ext-kc__wrap { position: relative; }

/* ---------- the heading row: the eyebrow and the heading on the left, the line on the right ---------- */
.ext-kc__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; margin-bottom: clamp(20px, 2vw, 32px); }
.ext-kc__eyebrow { margin: 0 0 12px; }
.ext-kc__title { margin: 0; font-family: var(--font-heading-family); font-weight: 800; font-size: clamp(40px, 3.4vw, 64px); line-height: .95; letter-spacing: -.03em; }
.ext-kc__lede { max-width: 420px; margin: 0; font-size: 15px; line-height: 1.5; color: rgb(var(--color-foreground) / .68); text-wrap: pretty; }

/* ---------- the odometers (S17's strips): a 1em window over a strip of digits rolled to --d (set on the window); --i staggers a number's strips ---------- */
.ext-kc .ext-odo { display: inline-block; vertical-align: top; height: 1em; overflow: hidden; }
.ext-kc .ext-odo__strip { display: block; transform: translateY(calc(var(--d, 0) * -1em)); transition: transform .9s var(--ext-kc-ease); transition-delay: calc(var(--i, 0) * 30ms); }
.ext-kc .ext-odo__strip b { display: block; height: 1em; font-weight: inherit; text-align: center; }
.ext-kc [data-snap] .ext-odo__strip, .ext-kc [data-snap].ext-odo__strip, .ext-kc .ext-odo[data-snap] .ext-odo__strip { transition: none !important; }

/* ---------- the summary card ---------- */
.ext-kc__aside { position: relative; display: flex; flex-direction: column; min-width: 0; }
.ext-kc__visual { position: relative; margin: 0; overflow: hidden; background: rgb(var(--color-placeholder)); }
.ext-kc__visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--ext-kc-pos-m, var(--ext-kc-pos, 50% 50%)); }
/* the progress: a segment per step — its bar fills lime (width, .7 s) once the step has its pick; the open step's track a shade lighter and its
   name in sand; under each the slot (the step's icon in a dashed square, then the pick's photo), the name and the pick's title */
.ext-kc__progress { display: grid; grid-template-columns: repeat(var(--ext-kc-n, 3), minmax(0, 1fr)); gap: 12px; }
.ext-kc__seg { display: flex; flex-direction: column; align-items: stretch; gap: 14px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ext-kc__seg-bar { position: relative; display: block; width: 100%; height: 4px; border-radius: 4px; overflow: hidden; background: rgb(var(--color-foreground) / .12); transition: background-color .4s; }
.ext-kc__seg-bar > i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: rgb(var(--color-highlight)); transition: width .7s var(--ext-kc-out); }
.ext-kc__seg[data-current] .ext-kc__seg-bar { background: rgb(var(--color-foreground) / .3); }
.ext-kc__seg[data-done] .ext-kc__seg-bar > i { width: 100%; }
.ext-kc__seg-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ext-kc__thumb { position: relative; flex: none; display: grid; place-items: center; width: 44px; aspect-ratio: 1; border-radius: 10px; border: 1px dashed rgb(var(--color-foreground) / .28); background: rgb(var(--color-foreground) / .03); color: rgb(var(--ext-kc-sand) / .5); overflow: hidden; transition: border-color .3s, color .3s; }
.ext-kc__thumb-icon { display: grid; place-items: center; transition: opacity .2s; }
.ext-kc__thumb-icon .icon { width: 20px; height: 20px; stroke-width: 1.25; }
.ext-kc__thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ext-kc__thumb-img[hidden], .ext-kc__picked-img[hidden] { display: none; }
.ext-kc__seg[data-current]:not([data-done]) .ext-kc__thumb { border-color: rgb(var(--ext-kc-sand) / .7); color: rgb(var(--ext-kc-sand)); }
.ext-kc__seg[data-done] .ext-kc__thumb { border-style: solid; border-color: rgb(var(--color-foreground) / .12); }
.ext-kc__seg[data-done] .ext-kc__thumb-icon { opacity: 0; }
.ext-kc__seg-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ext-kc__seg-label { font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--color-foreground) / .5); transition: color .3s; }
.ext-kc__seg[data-current] .ext-kc__seg-label { color: rgb(var(--ext-kc-sand)); }
.ext-kc__seg-pick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1.2; color: rgb(var(--color-foreground) / .4); }
.ext-kc__seg[data-done] .ext-kc__seg-pick { color: rgb(var(--color-foreground) / .92); }
.ext-kc__seg-variant { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.2; color: rgb(var(--color-foreground) / .5); }
.ext-kc__seg-variant:empty { display: none; }
.ext-kc__seg:focus-visible { outline: 2px solid rgb(var(--ext-kc-sand) / .8); outline-offset: 4px; border-radius: 6px; }

/* «Kit total» … «2 / 3 picked» (the first number an odometer digit); with every pick the count steps aside for «−10 % unlocked» */
.ext-kc__sum { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid rgb(var(--color-foreground) / .1); }
.ext-kc__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 26px; }
.ext-kc__total-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--color-foreground) / .55); }
.ext-kc__count, .ext-kc__pill { grid-area: 1 / 2; justify-self: end; }
.ext-kc__count { display: inline-flex; align-items: flex-start; gap: .3em; font-size: 14px; line-height: 1; color: rgb(var(--color-foreground) / .6); transition: opacity .3s, transform .4s var(--ext-kc-out); }
.ext-kc__count .ext-odo { font-family: var(--font-heading-family); font-weight: 800; color: rgb(var(--ext-kc-sand)); }
.ext-kc__pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px 0 8px; border-radius: 999px; background: rgb(var(--color-highlight) / .12); box-shadow: inset 0 0 0 1px rgb(var(--color-highlight) / .38); color: rgb(var(--color-highlight)); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; opacity: 0; transform: scale(.55); visibility: hidden; transition: opacity .2s, transform .45s var(--ext-kc-pop), visibility 0s linear .45s; }
.ext-kc__pill .icon { width: 14px; height: 14px; flex: none; }
.ext-kc .icon path { vector-effect: non-scaling-stroke; }
.ext-kc :is(.ext-kc__pill, .ext-kc__add-done, .ext-kc__tick, .ext-kc__added) .icon path { stroke-width: 2px; }
.ext-kc[data-unlocked] .ext-kc__count { opacity: 0; transform: translateY(-8px); }
.ext-kc[data-unlocked] .ext-kc__pill { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .55s var(--ext-kc-pop), visibility 0s; }
/* the total: big odometer digits ($ · up to four whole digits — the leading ones fold away — · two cents); the struck sum slides in beside it once
   the kit is complete, its line drawn across */
.ext-kc__row--total { display: flex; align-items: baseline; gap: 14px; }
.ext-kc__price { display: inline-flex; align-items: flex-start; font-family: var(--font-heading-family); font-weight: 800; font-size: clamp(34px, 2.6vw, 46px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ext-kc__cur { margin-right: .03em; }
.ext-kc__price .ext-odo { max-width: .75em; transition: max-width .55s var(--ext-kc-ease), opacity .4s; }
.ext-kc__price .ext-odo[data-off] { max-width: 0; opacity: 0; }
.ext-kc__was { position: relative; font-size: 16px; line-height: 1; color: rgb(var(--color-foreground) / .5); text-decoration: none; white-space: nowrap; opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .5s var(--ext-kc-out); }
.ext-kc__was::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ext-kc-out); }
.ext-kc[data-unlocked] .ext-kc__was { opacity: 1; transform: none; }
.ext-kc[data-unlocked] .ext-kc__was::after { transform: none; transition-delay: .25s; }
/* «Discount look» (Artem 2026-11-13: «как работает перечёркивание на скидки — учесть и здесь»). Strike: the struck sum as the shop's compare
   price — Concept .price__sale: the price colour at 60 %, a 1 px red line turned −15° (drawn in as before). Sale: that, plus the total in the
   sale price colour (Concept .price--on-sale), the pill as the «Save 20%» sale tag, the receipt's discount, total and stamp in sale red */
.ext-kc:is([data-discount-look="strike"], [data-discount-look="sale"]) .ext-kc__was { color: rgb(var(--color-foreground) / .6); }
.ext-kc:is([data-discount-look="strike"], [data-discount-look="sale"]) .ext-kc__was::after { left: 0; right: 0; height: 0; background: none; border-bottom: 1px solid red; transform-origin: center; transform: rotate(-15deg) scaleX(0); } /* about its middle, as Concept's — about the left end it rose to the right (Artem 2026-11-13) */
.ext-kc[data-discount-look="strike"] .ext-kc__was::after { border-bottom-color: rgb(var(--color-highlight)); } /* Strike: our lime line (Artem 2026-11-13); Sale keeps the red */
.ext-kc:is([data-discount-look="strike"], [data-discount-look="sale"])[data-unlocked] .ext-kc__was::after { transform: rotate(-15deg); }
.ext-kc[data-discount-look="sale"][data-unlocked] .ext-kc__price { color: rgb(var(--color-sale-price)); }
.ext-kc[data-discount-look="sale"] .ext-kc__pill { background: rgb(var(--color-sale-tag)); box-shadow: none; color: rgb(var(--color-sale-tag-text)); }
.ext-kc[data-discount-look="sale"] .ext-kc__rc-disc .ext-kc__rc-row { color: rgb(var(--color-sale-price)); }
.ext-kc[data-discount-look="sale"] .ext-kc__rc-disc .ext-kc__rc-lead { background-image: radial-gradient(circle, rgb(var(--color-sale-price) / .5) 1px, transparent 1.3px); }
.ext-kc[data-discount-look="sale"][data-unlocked] .ext-kc__rc-total [data-rc-total] { color: rgb(var(--color-sale-price)); }
.ext-kc[data-discount-look="sale"] .ext-kc__rc-stamp { color: rgb(var(--color-sale-price)); }

/* Add kit to cart: our primary (lime) once every step has its pick; until then an outline, «Pick 3 to add» (Concept's disabled is the lime at
   60 %); busy — Concept's aria-busy; added — «✓ Kit added» for a moment */
.ext-kc__add { width: 100%; }
.ext-kc__add .btn-text > span { display: none; align-items: center; justify-content: center; gap: 8px; }
.ext-kc__add:not(:disabled) .ext-kc__add-ready, .ext-kc__add:disabled .ext-kc__add-hint { display: inline-flex; }
.ext-kc[data-cart="added"] .ext-kc__add .btn-text > span { display: none; }
.ext-kc[data-cart="added"] .ext-kc__add .btn-text > .ext-kc__add-done { display: inline-flex; }
.ext-kc__add-done .icon { width: 18px; height: 18px; }
.ext-kc__add:disabled { opacity: 1; background: rgb(var(--color-foreground) / .04); color: rgb(var(--color-foreground) / .6); }
.ext-kc__add:disabled::after { border-color: rgb(var(--color-foreground) / .16); } /* Concept draws the button's border on ::after */
.ext-kc__add[aria-busy="true"] { opacity: .7; }
.ext-kc__error { font-size: 13px; color: rgb(var(--color-error, 239 68 68)); }
.ext-kc__error[hidden] { display: none; }

/* ---------- the deck (v3, 2026-11-12: flat and airy — the page's ink, 1 px hairlines, no shadows) ---------- */
/* --ext-kc-dpad: a panel's inner padding; --ext-kc-cgap: between the cards; --ext-kc-peek: how much of the 4th card shows past the 3rd */
.ext-kc__deck { --ext-kc-line: rgb(var(--color-foreground) / .11); --ext-kc-dpad: 40px; --ext-kc-cgap: 20px; --ext-kc-peek: 56px; position: relative; display: flex; flex-direction: column; min-width: 0; }
/* a panel: rounded top corners, laps over the panel above by a radius (the part of it under the next panel is its bottom padding) — later panels
   lie on top; each one the page's ink with a hairline round it; the open one's hairline brighter */
.ext-kc__panel { position: relative; z-index: var(--k, 1); padding-bottom: var(--ext-kc-r); border: 1px solid var(--ext-kc-line); border-radius: var(--ext-kc-r) var(--ext-kc-r) 0 0; background: rgb(var(--color-background)); transition: border-color .5s; }
.ext-kc__panel + .ext-kc__panel { margin-top: calc(var(--ext-kc-r) * -1); }
/* the last panel: nothing laps over it — round all round, no lap room */
.ext-kc__panel:last-child { padding-bottom: 0; border-radius: var(--ext-kc-r); }
.ext-kc__panel[data-state="on"] { border-color: rgb(var(--color-foreground) / .2); } /* Artem 2026-11-12: no lime line on top (cut at the corners) —
   the open panel stands out by contrast: a brighter hairline, its sand number and its cards; the folded bars stay dim */
.ext-kc__panel-head { margin: 0; font: inherit; letter-spacing: normal; }
/* the bar: a button over the panel's width, one line of light type. Folded, 64 px: done — the tick, «01», the step's name, «·», the pick and its
   variant | its price, «Change»; upcoming — «03 Fuel», muted. Open: «01 / 03», a hairline dash, the heading over its line (the arrows on the right) */
/* Artem 2026-11-12 «цифра 1 как будто застревает — хотелось бы плавнее»: the bar's items sit at its top in both states (folded: 25 px down, the
   22 px number centred in the 72 px bar), so the padding, the number's size, the dash and the bar's height (interpolate-size where the browser
   has it) ease with the fold instead of jumping; the number's strips move in % of their own height, so a size change never sets them rolling */
.ext-kc { interpolate-size: allow-keywords; }
.ext-kc__bar { --ext-kc-bar-top: 25px; display: flex; align-items: flex-start; gap: 14px; width: 100%; height: 72px; padding: var(--ext-kc-bar-top) var(--ext-kc-dpad) 0; border: 0; background: none; color: inherit; font: inherit; font-size: 15px; line-height: 1.25; text-align: left; cursor: pointer; transition: padding var(--ext-kc-fold) var(--ext-kc-ease), height var(--ext-kc-fold) var(--ext-kc-ease), gap var(--ext-kc-fold) var(--ext-kc-ease); }
.ext-kc__panel[data-state="on"] .ext-kc__bar { height: auto; gap: 16px; padding: var(--ext-kc-dpad) calc(var(--ext-kc-dpad) + 96px) 0 var(--ext-kc-dpad); cursor: default; }
/* desktop: the open bar a fixed height — the padding, the heading's line and the hint's, each one line (Artem 2026-11-12 «левая часть чуть
   ужимается, потом расширяется»: with height: auto the closing bar started from its new, shorter content — 27 px at once — while the opening
   one grew over .6 s, so the deck and the summary beside it dipped and came back). 72 ↔ this height: the two bars trade the same pixels */
@media screen and (min-width: 1024px) {
  .ext-kc__panel[data-state="on"] .ext-kc__bar { height: calc(var(--ext-kc-dpad) + clamp(24px, 1.9vw, 30px) * 1.15 + 2px + 14.5px * 1.5); }
  .ext-kc__panel[data-state="on"] :is(.ext-kc__step-title, .ext-kc__hint) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.ext-kc__bar:focus-visible { outline: 1px solid rgb(var(--ext-kc-sand) / .8); outline-offset: -6px; border-radius: var(--ext-kc-r); }
.ext-kc__tick { flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: rgb(var(--color-highlight)); color: rgb(9 9 11); }
.ext-kc__tick .icon { width: 11px; height: 11px; }
/* «01 / 03»: odometer strips in our body font, tabular digits — small and muted folded, sand when open; «/ 03» only when open */
/* Artem 2026-11-12: the closed steps' 02 / 03 in the open step's face too (heading, 800), their names a step bigger to sit with it */
.ext-kc__num { flex: none; display: inline-flex; align-items: flex-start; font-family: var(--font-heading-family); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: rgb(var(--color-foreground) / .45); transition: color .4s, font-size var(--ext-kc-fold) var(--ext-kc-ease), margin var(--ext-kc-fold) var(--ext-kc-ease); }
.ext-kc__num .ext-odo__strip { transform: translateY(calc(var(--d, 0) * -10%)); transition-duration: .8s; transition-delay: calc(var(--i, 0) * 80ms + 120ms); } /* 10 digits: 10 % = one */
.ext-kc__of { display: none; white-space: pre; color: rgb(var(--color-foreground) / .4); }
/* Artem 2026-11-12: «цифру 01 сделать пожирнее, чуть побольше» — the open step's number in the heading face at its brand weight, about the
   heading's size; «/ 03» stays small in the body face, raised like the S17 counter's */
.ext-kc__panel[data-state="on"] .ext-kc__num { margin-top: 1px; font-size: clamp(24px, 1.9vw, 32px); color: rgb(var(--ext-kc-sand)); }
.ext-kc__panel[data-state="on"] .ext-kc__of { margin-left: .2em; padding-top: .1em; font-family: var(--font-body-family); font-weight: 500; font-size: 13px; letter-spacing: .02em; }
.ext-kc__panel[data-state="on"] .ext-kc__of { display: inline; }
/* the dash between the number and the name in every bar (Artem 2026-11-12: «у 02 и 03 тоже черточка») — 20 px at the folded number's middle,
   28 px at the open one's */
.ext-kc__dash { flex: none; width: 20px; height: 1px; margin-top: 11px; background: rgb(var(--color-foreground) / .25); transition: width var(--ext-kc-fold) var(--ext-kc-ease), margin var(--ext-kc-fold) var(--ext-kc-ease), background-color .4s; }
.ext-kc__panel[data-state="on"] .ext-kc__dash { width: 28px; margin-top: 17px; background: rgb(var(--color-foreground) / .3); }
.ext-kc__bar-main { flex: 1; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ext-kc__panel[data-state="on"] .ext-kc__bar-main { flex-direction: column; align-items: flex-start; gap: 2px; } /* Artem: the hint closer to the heading */
.ext-kc__label { flex: none; font-family: var(--font-heading-family); font-weight: 600; font-size: 20px; line-height: 1.1; letter-spacing: -.01em; color: rgb(var(--color-foreground) / .45); }
.ext-kc__panel[data-state="done"] .ext-kc__label { color: rgb(var(--color-foreground) / .6); }
.ext-kc__step-title { display: none; font-family: var(--font-heading-family); font-weight: 600; font-size: clamp(24px, 1.9vw, 30px); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.ext-kc__hint { display: none; font-size: 14.5px; line-height: 1.5; color: rgb(var(--ext-kc-sand) / .6); }
/* the open step's heading and line rise in as the fold opens; a folded step's name fades back in */
.ext-kc__panel[data-state="on"] :is(.ext-kc__step-title, .ext-kc__hint) { display: block; animation: ext-kc-rise .55s var(--ext-kc-out) both; }
.ext-kc__panel[data-state="on"] .ext-kc__hint { animation-delay: .06s; }
.ext-kc__panel[data-state="on"] .ext-kc__label { display: none; }
.ext-kc__panel:not([data-state="on"]) .ext-kc__label { animation: ext-kc-fade .4s ease both; }
@keyframes ext-kc-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes ext-kc-fade { from { opacity: 0; } }
.ext-kc__picked { display: none; align-items: baseline; gap: 8px; min-width: 0; }
.ext-kc__sep { color: rgb(var(--color-foreground) / .35); }
.ext-kc__picked-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgb(var(--color-foreground) / .9); }
.ext-kc__bar-end { display: none; flex: none; align-items: baseline; gap: 20px; margin-top: 2px; margin-left: auto; white-space: nowrap; }
.ext-kc__picked-price { color: rgb(var(--color-foreground) / .9); }
.ext-kc__change { font-size: 13px; color: rgb(var(--ext-kc-sand) / .75); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(var(--ext-kc-sand) / .3); transition: color .2s, text-decoration-color .2s; }
.ext-kc__bar:hover .ext-kc__change { color: rgb(var(--ext-kc-sand)); text-decoration-color: currentColor; }
.ext-kc__tick { display: none; }
.ext-kc__panel[data-state="done"] .ext-kc__tick { display: grid; }
.ext-kc__panel[data-state="done"] .ext-kc__picked, .ext-kc__panel[data-state="done"] .ext-kc__bar-end { display: flex; }
.ext-kc__panel[data-state="next"]:hover .ext-kc__label { color: rgb(var(--color-foreground) / .7); }

/* the fold: the panel's grid row 0fr ↔ 1fr (the height animates with no measuring); the cards rise in after the panel starts opening */
.ext-kc__fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--ext-kc-fold) var(--ext-kc-ease); }
.ext-kc__panel[data-state="on"] .ext-kc__fold { grid-template-rows: 1fr; }
.ext-kc__fold-in { min-height: 0; overflow: hidden; }
.ext-kc__cards { box-sizing: border-box; min-height: var(--ext-kc-cards, 0px); padding: 32px 0 var(--ext-kc-dpad); opacity: 0; transform: translateY(18px); transition: opacity .3s, transform .6s var(--ext-kc-out); }
.ext-kc__panel[data-state="on"] .ext-kc__cards { opacity: 1; transform: none; transition: opacity .45s .2s, transform .7s .15s var(--ext-kc-out); }
/* Concept's prev / next (.indicators, as our sliders), small outline circles in the open panel's top right, level with the heading */
.ext-kc__arrows { position: absolute; z-index: 2; top: calc(var(--ext-kc-dpad) - 2px); right: var(--ext-kc-dpad); display: flex; gap: 8px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
.ext-kc__panel[data-state="on"] .ext-kc__arrows { opacity: 1; visibility: visible; transition: opacity .4s .3s, visibility 0s; }
.ext-kc__arrows .button { --buttons-width: 36px; background: transparent; color: rgb(var(--ext-kc-sand)); }
.ext-kc__arrows .button::after { border-color: var(--ext-kc-line); }
.ext-kc__arrows .button .icon { width: 16px; height: 16px; }
.ext-kc__arrows .button[disabled] { opacity: .35; }
/* the slider: the step's cards in a row (Concept's slider-element: the arrows page it), snapping — three cards and the edge of the fourth; the
   row runs to the panel's edges. A mouse drags it (kit-config.js), a trackpad swipes it */
.ext-kc__slider { --ext-kc-card: calc((100% + var(--ext-kc-dpad) - 3 * var(--ext-kc-cgap) - var(--ext-kc-peek)) / 3); position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: var(--ext-kc-card); gap: var(--ext-kc-cgap); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scroll-padding-inline: var(--ext-kc-dpad); padding: 4px var(--ext-kc-dpad); scrollbar-width: none; cursor: grab; }
.ext-kc__slider::-webkit-scrollbar { display: none; }
.ext-kc__slider[data-drag] { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.ext-kc__slider[data-drag] a { pointer-events: none; }
.ext-kc__item { min-width: 0; scroll-snap-align: start; }
.ext-kc__item img { -webkit-user-drag: none; }

/* the cards: our graphite card-product as the product-bundle builder renders it (bundle: the section), standing out on the ink; its own swatch
   dots, quick view eye, hover frames and «Show on model» layer off — the variant picker in its form sets the photo. Picked: «Added ✓» and a lime
   ring inside its edge (an outline — no shadows) */
.ext-kc .quick-view__button, .ext-kc__item :is(.product-card__carousel, .product-card__model) { display: none !important; }
.ext-kc__card { position: relative; height: 100%; container-type: inline-size; }
/* Artem 2026-11-12: on hover Concept zooms the photo 1.05 — clipped to the card (its top corners rounded); the picked ring is an outline, outside the clip */
.ext-kc__item .product-card { overflow: clip; }
.ext-kc__card > .product-card { height: 100%; outline: 2px solid transparent; outline-offset: 1px; transition: outline-color .3s; } /* just outside the edge: the photo can't cover it */
.ext-kc__item[data-picked] .product-card { outline-color: rgb(var(--color-highlight)); }
/* Concept's hover frames would take the photo over (it hides the cover once they are set up): they are off here, so the cover stays — and the picker
   swaps it */
.ext-kc__item .product-card__media > a > img { opacity: 1 !important; visibility: visible !important; }
.ext-kc__added { display: inline-flex; align-items: center; gap: 8px; }
.ext-kc__added .icon { width: 18px; height: 18px; }
/* Artem 2026-11-12: «точно соответствует Tech demo?» — the card's content, spacing and picker are Concept's as Tech's bundle cards (no overrides):
   «Color: Sand» over the 34 px round swatches, «Size: M» over the label swatches, each row a scroll-shadow strip, the divider over the picker */

/* Layout: Rows — compact (Artem 2026-11-12: «карточки на Surface, свотчи и кнопка меньше, компактность, минимализм; секция не высокая; при
   переключении панелей ничего не дёргается и не скроллится»): our Product chip (the header chips, #44) — a surface plate, radius 18, padding
   8 16 8 8, the packshot 80 on the placeholder ground radius 10; the title and the price on one line, the picker under them (18 px dots, 24 px
   size chips), a small «+ Add» (secondary in sand; lime «Added ✓» once picked, the plate ringed lime as the cards). The list shows three rows:
   a fourth peeks under a fade and scrolls inside (data-more / data-end, kit-config.js) — every step's list is one height, the deck never
   changes height (and on desktop opening a step never scrolls the page, kit-config.js) */
.ext-kc { --ext-kc-prow: 112px; --ext-kc-pgap: 10px; }
.ext-kc__rows { display: flex; flex-direction: column; gap: var(--ext-kc-pgap); max-height: calc(3.5 * var(--ext-kc-prow) + 3 * var(--ext-kc-pgap) + 8px); padding: 4px var(--ext-kc-dpad); overflow-y: auto; overscroll-behavior-y: auto; scrollbar-width: none; }
.ext-kc__rows::-webkit-scrollbar { display: none; }
.ext-kc__rows[data-more]:not([data-end]) { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent); }
.ext-kc__prod { --cart-item-media-width: 88px; flex: none; box-sizing: border-box; display: grid; grid-template-columns: var(--cart-item-media-width) minmax(0, 1fr) auto auto; grid-template-areas: "media title price add" "media picker price add"; align-items: center; column-gap: 20px; row-gap: 12px; min-height: var(--ext-kc-prow); padding: 12px 24px 12px 12px; border-radius: 18px; background: var(--ext-surface); outline: 2px solid transparent; outline-offset: 1px; transition: outline-color .3s; }
.ext-kc__prod[data-picked] { outline-color: rgb(var(--color-highlight)); }
.ext-kc__prod-media { grid-area: media; width: var(--cart-item-media-width); border-radius: 12px; background: rgb(var(--color-placeholder)); }
.ext-kc__prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--animation-long, .6s) var(--ext-kc-out, ease); }
.ext-kc__prod-title { grid-area: title; align-self: end; justify-self: start; max-width: 100%; min-width: 0; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.ext-kc__prod-price { grid-area: price; align-self: center; font-size: 16px; line-height: 1.25; color: rgb(var(--color-foreground) / .75); }
.ext-kc__prod-form { display: contents; }
.ext-kc__prod:not(:has([data-kc-picker])) .ext-kc__prod-title { grid-row: 1 / span 2; align-self: center; } /* a product with no options: its title in the plate's middle */
/* the picker (#249, 2026-11-17): named option groups in Concept's scroll-shadow strip. Option names — beside: «Color ● ● ●» (the name, muted,
   before the values; the row keeps its height); above: «Color: Sand» over each group, the groups side by side. Option values — a text option
   prints its buttons and Concept's select: buttons shows the select past 6 values (data-long), dropdowns for every text option (colours stay
   swatches). A long line — scroll: one line, swiped, faded at the edges in the plate's colour (the strip's template); wrap: whole groups move down */
.ext-kc__picker--row { grid-area: picker; align-self: start; display: block; min-width: 0; }
.ext-kc__scroll { display: block; min-width: 0; }
.ext-kc__opts { display: flex; align-items: center; gap: 10px 22px; min-width: 0; }
.ext-kc__picker--row .variant-input-wrapper { min-width: 0; margin: 0; padding: 0; border: 0; }
.ext-kc__opt { display: flex; flex: none; align-items: center; gap: 10px; }
.ext-kc__opt-label { font-size: 12px; line-height: 1.25; white-space: nowrap; color: rgb(var(--color-foreground) / .55); }
.ext-kc__opt-value { font-weight: var(--font-medium); color: rgb(var(--color-foreground)); }
[data-option-names="beside"] .ext-kc__opt-value { display: none; }
[data-option-names="above"] .ext-kc__opts { align-items: flex-start; gap: 12px 28px; }
[data-option-names="above"] .ext-kc__opt { flex-direction: column; align-items: flex-start; gap: 7px; }
.ext-kc__select { position: relative; display: none; align-items: center; }
:is([data-option-style="dropdowns"] .ext-kc__opt, [data-option-style="buttons"] .ext-kc__opt[data-long]) .ext-kc__pills { display: none; }
:is([data-option-style="dropdowns"] .ext-kc__opt, [data-option-style="buttons"] .ext-kc__opt[data-long]) .ext-kc__select { display: inline-flex; }
:is([data-option-style="dropdowns"] .ext-kc__opt, [data-option-style="buttons"] .ext-kc__opt[data-long]):has(.ext-kc__select) .ext-kc__opt-value { display: none; } /* the select shows the value */
.ext-kc__select .select { width: auto; height: 26px; min-width: 84px; padding-block: 0; padding-inline: 12px 30px; font-size: 12px; font-weight: var(--font-medium); line-height: 1; border: 1px solid rgb(var(--color-foreground) / .15); border-radius: 999px; background-color: transparent; cursor: pointer; } /* a pill with a hairline, as the product page's quantity (Artem 2026-11-17: «лёгкая обводка», «полный радиус») — not the 6 px filled field */
@media (hover: hover) { .ext-kc__select .select:hover { border-color: rgb(var(--color-foreground) / .4); background-color: transparent; } }
.ext-kc__select .select:focus-visible { border-color: rgb(var(--color-foreground)); background-color: transparent; }
.ext-kc__select .icon { inset-block-start: calc(50% - 7px); inset-inline-end: 11px; width: 14px; height: 14px; }
[data-option-overflow="scroll"] .ext-kc__opts { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: -3px -2px; padding: 3px 2px; }
[data-option-overflow="scroll"] .ext-kc__opts::-webkit-scrollbar { display: none; }
[data-option-overflow="wrap"] .ext-kc__opts { flex-wrap: wrap; overflow: visible; } /* Concept's .scroll-area clips y — it cut the chosen pill's ring */
[data-option-overflow="wrap"] .ext-kc__opt { flex: 0 1 auto; }
.ext-kc__picker--row .swatches { flex-wrap: wrap; gap: 6px; }
[data-option-overflow="scroll"] .ext-kc__picker--row .swatches { flex-wrap: nowrap; }
.ext-kc__picker--row .ext-kc__swatches { gap: 10px; padding-inline: 2px; }
.ext-kc__picker--row .color-swatch { --swatch-size: 18px; --swatch-offset: 2px; }
.ext-kc__picker--row .label-swatch { display: grid; place-items: center; min-width: 28px; height: 24px; padding: 0 7px; font-size: 12px; }
.ext-kc__prod .product-form__submit { --color-button-background: var(--ext-kc-sand); --color-button-border: var(--ext-kc-sand); --color-button-text: var(--color-background); grid-area: add; width: 100px; height: 34px; min-height: 0; padding: 0; font-size: 13px; } /* «+ Add» and «Added ✓» one width: the price column never moves */
/* the title as wide as its words (Artem 2026-11-12: Concept's reversed-link underline ran the row's width on hover) */
.ext-kc__prod .product-form__submit .btn-text { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; }
.ext-kc__prod[data-picked] .product-form__submit { --color-button-background: var(--color-highlight); --color-button-border: var(--color-highlight); background: rgb(var(--color-highlight)); color: rgb(var(--color-background)); }
.ext-kc__prod .ext-kc__added { gap: 5px; }
.ext-kc__prod .ext-kc__added .icon { width: 14px; height: 14px; }

/* ---------- the summary card's steps (Artem 2026-11-12: Tiles — the default — List and Bars, the first version (the base styles above);
   «Summary progress», data-summary on the
   root, live in the demo panel, ?summary= in the URL): the same markup — each step a .ext-kc__seg: its bar, its thumb (the flight's target) with a
   tick, label / pick / variant, a price — restyled on desktop; phones keep the bar's small segments ---------- */
.ext-kc__seg-tick { display: none; }
.ext-kc__seg-price { display: none; }
@media screen and (min-width: 1024px) {
  /* the photo melts into the card: a long eased fade to the surface at its foot (Artem: «без резкой границы, плавно в background») */
  .ext-kc__visual::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; pointer-events: none; background: linear-gradient(to bottom, rgb(24 25 29 / 0) 0%, rgb(24 25 29 / .08) 22%, rgb(24 25 29 / .3) 48%, rgb(24 25 29 / .66) 72%, rgb(24 25 29 / .9) 88%, var(--ext-surface) 100%); }

  /* every look: the variant's line is kept while empty, so a pick never adds a line (Artem 2026-11-12: List and Bars jumped a few px) */
  .ext-kc__seg-variant, .ext-kc__seg-variant:empty { display: block; min-height: 1.2em; }
  /* BARS (the first version, the base styles): the three blocks a little further apart (Artem 2026-11-12) */
  .ext-kc[data-summary="bars"] .ext-kc__progress { gap: 28px; }

  /* TILES — three square slots joined by the bundle's «+» (Artem: smaller slots, a smaller «+»; not a dot for «added»): 84–120 px slots, each
     centred in its third with its text,
     dashed with the step's icon while open (sand on the current step), the packshot once picked with the deck's done tick (a lime disc, a
     dark check) on its corner; the step's name and the pick under each; the «+» centred between two slots */
  .ext-kc[data-summary="tiles"] { --ext-kc-tile: clamp(84px, 7vw, 120px); } /* Artem 2026-11-12: a little bigger, each column centred — no empty right side */
  .ext-kc[data-summary="tiles"] .ext-kc__progress { gap: 24px; }
  .ext-kc[data-summary="tiles"] .ext-kc__seg { position: relative; gap: 0; }
  .ext-kc[data-summary="tiles"] .ext-kc__seg-bar { display: none; }
  .ext-kc[data-summary="tiles"] .ext-kc__seg-info { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .ext-kc[data-summary="tiles"] .ext-kc__thumb { width: var(--ext-kc-tile); border-radius: 14px; overflow: visible; }
  .ext-kc[data-summary="tiles"] .ext-kc__thumb-img { border-radius: inherit; }
  .ext-kc[data-summary="tiles"] .ext-kc__thumb-icon .icon { width: 24px; height: 24px; }
  .ext-kc[data-summary="tiles"] .ext-kc__seg-tick { position: absolute; z-index: 1; top: -6px; right: -6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgb(var(--color-highlight)); color: rgb(9 9 11); box-shadow: 0 0 0 3px var(--ext-surface); transform: scale(0); transition: transform .45s var(--ext-kc-pop); }
  .ext-kc[data-summary="tiles"] .ext-kc__seg-tick .icon { width: 12px; height: 12px; }
  .ext-kc[data-summary="tiles"] .ext-kc__seg[data-done] .ext-kc__seg-tick { transform: none; }
  .ext-kc[data-summary="tiles"] .ext-kc__seg:not(:last-child)::after { content: ""; position: absolute; top: calc(var(--ext-kc-tile) / 2 - 5px); left: calc(100% + 12px - 5px); width: 10px; aspect-ratio: 1; background: rgb(var(--ext-kc-sand) / .45); -webkit-mask: linear-gradient(#000 0 0) center / 100% 1.25px no-repeat, linear-gradient(#000 0 0) center / 1.25px 100% no-repeat; mask: linear-gradient(#000 0 0) center / 100% 1.25px no-repeat, linear-gradient(#000 0 0) center / 1.25px 100% no-repeat; }
  .ext-kc[data-summary="tiles"] .ext-kc__seg-text { align-items: center; gap: 4px; max-width: 100%; }

  /* LIST — a checklist: one bar over the whole kit (thirds), then a row per step — thumb, the step's name over the pick and its variant, the
     price right; hairlines between */
  .ext-kc[data-summary="list"] .ext-kc__progress { position: relative; display: flex; flex-direction: column; gap: 0; padding-top: 18px; }
  .ext-kc[data-summary="list"] .ext-kc__progress::before, .ext-kc[data-summary="list"] .ext-kc__progress::after { content: ""; position: absolute; top: 0; left: 0; height: 4px; border-radius: 4px; }
  .ext-kc[data-summary="list"] .ext-kc__progress::before { right: 0; background: rgb(var(--color-foreground) / .12); }
  .ext-kc[data-summary="list"] .ext-kc__progress::after { width: calc(100% * var(--ext-kc-picks, 0) / var(--ext-kc-n, 3)); background: rgb(var(--color-highlight)); transition: width .7s var(--ext-kc-out); }
  .ext-kc[data-summary="list"] .ext-kc__seg { gap: 0; padding: 10px 0; border-bottom: 1px solid rgb(var(--color-foreground) / .07); }
  .ext-kc[data-summary="list"] .ext-kc__seg:last-child { border-bottom: 0; }
  .ext-kc[data-summary="list"] .ext-kc__seg-bar { display: none; }
  .ext-kc[data-summary="list"] .ext-kc__seg-info { gap: 14px; }
  .ext-kc[data-summary="list"] .ext-kc__thumb { width: 44px; }
  .ext-kc[data-summary="list"] .ext-kc__seg-text { flex: 1; }
  .ext-kc[data-summary="list"] .ext-kc__seg-price { display: block; flex: none; font-size: 14px; color: rgb(var(--color-foreground) / .85); }
}

/* ---------- Summary progress: Receipt (Artem 2026-11-12 — «как в чеке, минималистично»; data-summary="receipt", Receipt animation =
   data-receipt-anim print | tear | stamp): on desktop the column moves right of the deck (3 : 2) and shows a printer's slot and a surface paper
   tucked under it — the head (Extrême · Kit, the date), a line per picked step (the name, a dotted leader, the price; the step and the variant
   under it), the kit discount in lime once complete, the total typed up, a barcode. Print: the paper feeds a line in short steps (a thermal
   printer's stepper — steps() timing), the line types in left to right, the price inks in after it; taken back: struck through, folded away.
   Tear-off: once complete the receipt tears from the slot (a torn top edge) and drops; Stamp: a lime «−10%» stamp lands on it. Phones: the bar ---------- */
.ext-kc__receipt { display: none; }
@media screen and (min-width: 1024px) {
  .ext-kc[data-summary="receipt"] .ext-kc__body { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .ext-kc[data-summary="receipt"] .ext-kc__aside { order: 2; background: none; box-shadow: none; overflow: visible; border-radius: 0; }
  .ext-kc[data-summary="receipt"] .ext-kc__progress { display: none; }
  /* the kit's photo at the column's foot, fading up into the page — the receipt grows over it (Artem: the empty column looked bare) */
  .ext-kc[data-summary="receipt"] .ext-kc__visual { position: absolute; z-index: 0; left: 0; right: 0; bottom: 84px; height: 52%; min-height: 0; border-radius: var(--ext-kc-r); -webkit-mask: linear-gradient(to bottom, transparent 0%, #000 45%); mask: linear-gradient(to bottom, transparent 0%, #000 45%); opacity: .85; }
  .ext-kc[data-summary="receipt"] .ext-kc__visual::after { display: none; }
  .ext-kc[data-summary="receipt"] .ext-kc__sum { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* the accessible total stays */
  .ext-kc[data-summary="receipt"] .ext-kc__summary { padding: 20px 18px 0; }
  .ext-kc[data-summary="receipt"] .ext-kc__receipt { position: relative; display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; }

  .ext-kc__rc-paper { position: relative; z-index: 1; margin: 9px 18px 0; transform-origin: 50% 0; transition: transform .7s cubic-bezier(.3, 1.45, .5, 1); }
  .ext-kc__rc-body { padding: 26px 24px 18px; background: var(--ext-surface); font-variant-numeric: tabular-nums; }
  /* the foot: a zigzag tear (print, stamp — a finished receipt); Tear-off: straight while on the roll */
  .ext-kc__rc-edge { height: 9px; background: var(--ext-surface); -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; }
  .ext-kc__rc-tear { position: absolute; left: 0; right: 0; bottom: 100%; height: 9px; background: var(--ext-surface); opacity: 1; -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; transition: opacity .2s .45s; }

  .ext-kc :is(.ext-kc__rc-edge, .ext-kc__rc-tear) { display: block; } /* empty divs: the theme's div:empty hides them */
  /* the top (Artem 2026-11-12: not empty before a pick; as the first receipt): «Your Kit» with the outline word, the kit's terms (3 picks · 10 % off)
     and the date, a box per step — ticked as it is picked */
  .ext-kc__rc-title { margin: 0 0 14px; font-family: var(--font-heading-family); font-weight: 800; font-size: clamp(32px, 2.6vw, 40px); line-height: 1; letter-spacing: -.03em; color: rgb(var(--color-foreground)); }
  .ext-kc__rc-checks { display: flex; justify-content: space-between; margin: 14px 0 10px; padding: 14px 0 0; border-top: 1px dashed rgb(var(--color-foreground) / .16); list-style: none; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--color-foreground) / .55); }
  /* the side notches of the first receipt (Artem 2026-11-12: keep them) — half-circles of the page's ink cut into both edges on the stub's line */
  .ext-kc__rc-checks { position: relative; } /* 10 px under the checks: the first line sits a little lower (Artem 2026-11-13) */
  .ext-kc__rc-checks::before, .ext-kc__rc-checks::after { content: ""; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: rgb(var(--color-background)); }
  .ext-kc__rc-checks::before { left: -33px; }
  .ext-kc__rc-checks::after { right: -33px; }
  .ext-kc__rc-checks li { display: flex; align-items: center; gap: 8px; }
  .ext-kc__rc-box { position: relative; display: grid; place-items: center; width: 14px; height: 14px; border: 1px solid rgb(var(--color-foreground) / .4); border-radius: 3px; }
  .ext-kc__rc-box::after { content: "✓"; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 0; color: rgb(var(--color-foreground)); opacity: 0; transform: scale(1.8); transition: opacity .2s, transform .35s var(--ext-kc-pop); }
  .ext-kc__rc-checks li[data-on] { color: rgb(var(--color-foreground) / .9); }
  .ext-kc__rc-checks li[data-on] .ext-kc__rc-box::after { opacity: 1; transform: none; }
  .ext-kc__rc-head { display: flex; justify-content: space-between; margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--color-foreground) / .45); }
  /* a fold: rows 0fr → 1fr; the paper feeds in short steps */
  .ext-kc__rc-fold, .ext-kc__rc-line { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s steps(6, end); }
  .ext-kc__rc-fold > div, .ext-kc__rc-line-in { min-height: 0; overflow: hidden; }
  .ext-kc[data-picks="0"] .ext-kc__rc-hint, .ext-kc__rc-line[data-state="in"], .ext-kc:not([data-picks="0"]) .ext-kc__rc-sum, .ext-kc[data-unlocked] :is(.ext-kc__rc-disc, .ext-kc__rc-end) { grid-template-rows: 1fr; }
  .ext-kc__rc-hint p { margin: 0; padding-top: 18px; font-size: 13px; color: rgb(var(--color-foreground) / .4); }
  .ext-kc__rc-lines { margin: 0; padding: 0; list-style: none; }
  .ext-kc__rc-line-in { padding-top: 18px; }
  .ext-kc__rc-row { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 15px; line-height: 1.3; }
  .ext-kc__rc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgb(var(--color-foreground) / .92); }
  .ext-kc__rc-lead { flex: 1; min-width: 16px; height: 1px; align-self: center; margin-top: 6px; background: radial-gradient(circle, rgb(var(--color-foreground) / .3) 1px, transparent 1.3px) 0 50% / 5px 3px repeat-x; }
  .ext-kc__rc-price { flex: none; color: rgb(var(--color-foreground) / .92); }
  .ext-kc__rc-meta { margin: 4px 0 0; font-size: 12px; line-height: 1.3; color: rgb(var(--color-foreground) / .45); }
  .ext-kc__rc-step { text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; font-weight: 600; }
  /* print: the name and the step line type in (left to right, in steps), the leader and the price ink in after */
  .ext-kc__rc-line[data-print] :is(.ext-kc__rc-name, .ext-kc__rc-meta) { animation: ext-rc-type .5s steps(14, end) .3s both; }
  .ext-kc__rc-line[data-print] .ext-kc__rc-lead { animation: ext-rc-ink .2s ease .75s both; }
  .ext-kc__rc-line[data-print] .ext-kc__rc-price { animation: ext-rc-ink .25s ease .85s both; }
  @keyframes ext-rc-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes ext-rc-ink { from { opacity: 0; transform: scale(.92); } }
  /* taken back: struck through, then folded away */
  .ext-kc__rc-line[data-state="out"] { transition-delay: .3s; }
  .ext-kc__rc-line[data-state="out"] .ext-kc__rc-name { text-decoration: line-through; text-decoration-color: rgb(var(--color-foreground) / .5); }
  .ext-kc__rc-disc .ext-kc__rc-row { padding-top: 30px; margin-top: 0; /* Artem 2026-11-12: no dashed line over the discount */ color: rgb(var(--color-highlight)); font-size: 14px; }
  .ext-kc__rc-disc .ext-kc__rc-lead { background-image: radial-gradient(circle, rgb(var(--color-highlight) / .5) 1px, transparent 1.3px); }
  .ext-kc__rc-total { display: flex; align-items: baseline; justify-content: space-between; margin: 0; padding-top: 26px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--color-foreground) / .55); }
  .ext-kc:not([data-unlocked]) .ext-kc__rc-total { margin-top: 18px; border-top: 1px dashed rgb(var(--color-foreground) / .16); }
  .ext-kc__rc-total [data-rc-total] { font-family: var(--font-heading-family); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.02em; text-transform: none; color: rgb(var(--color-foreground)); }
  /* a barcode drawn as one (Artem 2026-11-12: «ближе к штрихкоду, выше, уже»): an SVG of bars of 1–4 units and gaps of 1–3, 44 px high, 58 % of the paper, centred */
  .ext-kc__rc-barcode { display: block; width: 58%; height: 44px; margin: 26px auto 0; color: rgb(var(--color-foreground) / .62); }
  .ext-kc__rc-thanks { margin: 10px 0 0; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; text-align: center; color: rgb(var(--color-foreground) / .35); }

  /* TEAR-OFF: on the roll the foot is straight; once complete the paper tears from the slot — a torn top edge — and drops with a small swing */
  .ext-kc[data-receipt-anim="tear"]:not([data-unlocked]) .ext-kc__rc-edge { -webkit-mask: none; mask: none; height: 0; }
  .ext-kc[data-receipt-anim="tear"][data-unlocked] .ext-kc__rc-paper { transform: translateY(22px) rotate(-1.2deg); transition-delay: .55s; }
  .ext-kc[data-receipt-anim="tear"]:not([data-unlocked]) .ext-kc__rc-tear { opacity: 0; transition-delay: 0s; } /* on the roll: a straight top until torn */
  /* STAMP: a lime outline stamp lands over the total — big and faint, then down with a thud */
  /* the stamp in HTML (Artem: as the homepage's badge — a heavy rim, the words turning round it, a dashed ring, «−10%» and the date), lower and
     right, over the barcode */
  .ext-kc__rc-stamp { --ring-r: 46.6px; position: absolute; z-index: 3; bottom: 63px; right: 129px; display: none; width: 120px; height: 120px; color: rgb(var(--color-highlight)); pointer-events: none; opacity: 0; transform: rotate(-14deg) scale(1.7); } /* 120 as in Figma; in the room over the barcode, only its foot on the bars, its middle 33 px left of the total (right-aligned: kept from the right edge, so a narrower paper never slides it under the sum; Artem 2026-11-12) */
  .ext-kc__rc-stamp-rim { position: absolute; inset: 0; border: 2px solid currentColor; border-radius: 50%; }
  /* the words: each letter at the angle of its own width's middle (kit-config.js), centred on a 46.6 px radius, turning slowly */
  .ext-kc__rc-stamp-ring { position: absolute; inset: 0; font-family: var(--font-body-family); font-size: 8.5px; font-weight: 400; line-height: 1; text-transform: uppercase; color: currentColor; animation: ext-rc-spin 14s linear infinite; }
  .ext-kc__rc-stamp-ring > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(var(--a, 0deg)) translateY(calc(var(--ring-r) * -1)); white-space: pre; }
  @keyframes ext-rc-spin { to { transform: rotate(1turn); } }
  .ext-kc__rc-stamp-dash { position: absolute; inset: 25.1px; border: 1px dashed currentColor; border-radius: 50%; }
  .ext-kc__rc-stamp-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .ext-kc__rc-stamp-mid b { font-family: var(--font-heading-family); font-weight: 800; font-size: 16px; line-height: 20px; letter-spacing: -.02em; }
  .ext-kc__rc-stamp-mid small { font-size: 6px; font-weight: 400; line-height: 1; letter-spacing: .1em; }
  .ext-kc[data-receipt-anim="stamp"] .ext-kc__rc-stamp { display: block; }
  .ext-kc[data-receipt-anim="stamp"] .ext-kc__rc-barcode { margin-top: 80px; } /* Artem 2026-11-12: the barcode lower — room over it, so the stamp shows and only its foot is on the bars (Space 20) */
  .ext-kc[data-receipt-anim="stamp"][data-unlocked] .ext-kc__rc-stamp { animation: ext-rc-stamp .42s cubic-bezier(.2, 1.3, .4, 1) .7s both; }
  @keyframes ext-rc-stamp { 0% { opacity: 0; transform: rotate(-4deg) scale(1.7); } 60% { opacity: 1; } 100% { opacity: .95; transform: rotate(-14deg) scale(1); } }
}

/* the flight: the card's photo, cloned, on its arc to the step's slot (kit-config.js) */
.ext-kc__ghost { position: fixed; z-index: 70; margin: 0; object-fit: cover; border-radius: 14px; pointer-events: none; will-change: transform, opacity; }

/* ---------- from 1024: the summary card beside the deck, as tall as it ---------- */
@media screen and (min-width: 1024px) {
  .ext-kc { --ext-kc-pad: clamp(22px, 1.9vw, 32px); }
  .ext-kc__body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: var(--ext-kc-gap); align-items: stretch; }
  .ext-kc__aside { border-radius: var(--ext-kc-r); background: var(--ext-surface); overflow: hidden; box-shadow: inset 0 1px 0 rgb(var(--color-foreground) / .06); }
  /* the photo takes the height the summary leaves (180 px at least) */
  .ext-kc__visual { flex: 1 1 0; min-height: 180px; }
  .ext-kc__visual img { position: absolute; inset: 0; object-position: var(--ext-kc-pos, 50% 50%); }
  .ext-kc__summary { display: grid; flex: none; gap: 20px; padding: 22px var(--ext-kc-pad) var(--ext-kc-pad); }
}

/* ---------- below 1024: the banner, the deck stacked, the summary in a bar over the dock ---------- */
@media screen and (max-width: 1023px) {
  /* phones: the whole list (no inner scroll); the thumbnail 64, title and price beside it, «+ Add» right; the picker the plate's width under them */
  .ext-kc__rows { max-height: none; overflow: visible; }
  .ext-kc__prod { --cart-item-media-width: 64px; grid-template-columns: var(--cart-item-media-width) minmax(0, 1fr) auto; grid-template-areas: "media title add" "media price add" "picker picker picker"; column-gap: 12px; row-gap: 4px; padding: 8px 12px 10px 8px; }
  .ext-kc__prod-title { align-self: end; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; line-height: 1.2; hyphens: auto; overflow-wrap: break-word; } /* «Creatine Monohy-drate», not cut by «+ Add» */
  .ext-kc__prod:not(:has([data-kc-picker])) .ext-kc__prod-title { grid-row: auto; align-self: end; } /* no options: the title stays over its price (the desktop's two-row span sat it on the price) */
  .ext-kc__prod-price { align-self: start; }
  .ext-kc__prod .product-form__submit { width: 88px; } /* «Added ✓» still fits; the title column 112 */
  .ext-kc__select .select { min-width: 72px; } /* High-Rise Leggings' four colours + Size fit the line */
  .ext-kc__picker--row { margin-top: 8px; padding-inline-start: 8px; } /* 16 px from the plate's edge, clear of its corner (the plate pads 8 for the photo) */
  .ext-kc__opts { gap: 8px 18px; }
  [data-option-names="above"] .ext-kc__opts { gap: 10px 22px; }
  .ext-kc { --ext-kc-pad: 16px; }
  .ext-kc__head { margin-bottom: 20px; }
  .ext-kc__visual { aspect-ratio: 16 / 7; margin-bottom: 20px; border-radius: var(--ext-kc-r); }
  /* the deck: 20 px inside the panels, 56 px bars, the open step's cards a swiped row (the next card peeking), no arrows */
  .ext-kc__deck { --ext-kc-dpad: 20px; --ext-kc-cgap: 14px; }
  .ext-kc__bar { --ext-kc-bar-top: 21px; height: 60px; gap: 10px; font-size: 14px; }
  .ext-kc__dash { width: 14px; margin-top: 9px; }
  .ext-kc__num { font-size: 18px; }
  .ext-kc__label { font-size: 17px; }
  .ext-kc__panel[data-state="on"] .ext-kc__bar { flex-wrap: wrap; align-items: center; gap: 12px 10px; padding-right: var(--ext-kc-dpad); }
  .ext-kc__panel[data-state="on"] .ext-kc__num { margin-top: 0; font-size: 22px; }
  .ext-kc__panel[data-state="on"] .ext-kc__dash { width: 18px; margin-top: 0; }
  .ext-kc__panel[data-state="on"] .ext-kc__bar-main { flex-basis: 100%; gap: 2px; }
  .ext-kc__step-title { font-size: 23px; }
  .ext-kc__hint { font-size: 14px; }
  .ext-kc__panel[data-state="done"] .ext-kc__picked-price { display: none; }
  .ext-kc__arrows { display: none; }
  .ext-kc__cards { padding-top: 24px; }
  .ext-kc__slider { --ext-kc-card: min(62vw, 250px); cursor: auto; }

  /* the bar (with the script): the mini progress and the count (or the pill) over the total, the button on the right; fixed 10 px from the
     screen's edges, up while the deck is on screen (data-bar, kit-config.js); the section keeps room under the deck for it */
  .ext-kc[data-ready] { padding-bottom: calc(var(--section-padding-bottom, 96px) + 84px); }
  .ext-kc[data-ready] .ext-kc__summary { position: fixed; z-index: 9; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "prog count add" "price was add"; align-items: center; column-gap: 12px; row-gap: 7px; padding: 10px 10px 10px 16px; border-radius: 18px; background: rgb(24 25 29 / .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -12px rgb(0 0 0 / .75), 0 0 0 1px rgb(var(--color-foreground) / .08); transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden; transition: transform .5s var(--ext-kc-ease), opacity .3s, visibility 0s linear .5s; }
  .ext-kc[data-ready][data-bar="on"] .ext-kc__summary { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--ext-kc-ease), opacity .3s, visibility 0s; }
  /* Concept's mobile dock slides in while the header is hidden or once the page is past it / at its foot: the bar rises over it on the same
     states as Concept's sticky product form (mobile-dock.css) — by the dock's height, measured by the script (--ext-kc-dock) */
  :is(.header-sticky.header-hidden ~ .mobile-dock-section, .mobile-dock-section.active, .mobile-dock-section:has(> .mobile-dock.active)) ~ .page-container .ext-kc[data-ready][data-bar="on"] .ext-kc__summary { transform: translateY(calc(var(--ext-kc-dock, 0px) * -1)); }
  .ext-kc[data-ready] :is(.ext-kc__sum, .ext-kc__row) { display: contents; }
  .ext-kc[data-ready] .ext-kc__progress { grid-area: prog; display: flex; align-items: center; gap: 4px; }
  .ext-kc[data-ready] .ext-kc__seg { flex: none; width: 24px; padding: 6px 0; gap: 0; }
  .ext-kc[data-ready] .ext-kc__seg-info, .ext-kc[data-ready] .ext-kc__total-label { display: none; }
  .ext-kc[data-ready] :is(.ext-kc__count, .ext-kc__pill) { grid-area: count; justify-self: start; }
  .ext-kc[data-ready] .ext-kc__count { font-size: 12px; }
  .ext-kc[data-ready] .ext-kc__pill { height: 22px; padding: 0 9px 0 6px; font-size: 11px; }
  .ext-kc[data-ready] .ext-kc__pill .icon { width: 12px; height: 12px; }
  .ext-kc[data-ready] .ext-kc__price { grid-area: price; font-size: 22px; }
  .ext-kc[data-ready] .ext-kc__was { grid-area: was; justify-self: start; align-self: end; margin-bottom: 2px; font-size: 12px; }
  .ext-kc[data-ready] .ext-kc__add.button { grid-area: add; width: auto; min-height: 46px; padding: 0 16px; font-size: 13px; }
  .ext-kc[data-ready] .ext-kc__error { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 6px); padding: 6px 10px; border-radius: 10px; background: rgb(24 25 29); }
}
/* without the script (any width): the summary under the photo, every step open */
.ext-kc:not([data-ready]) .ext-kc__summary { display: grid; gap: 20px; padding: 20px 0; }
.ext-kc:not([data-ready]) .ext-kc__fold { grid-template-rows: 1fr; }
.ext-kc:not([data-ready]) .ext-kc__cards { opacity: 1; transform: none; }

/* the first state after a load is set at once (data-instant for two frames) */
.ext-kc[data-instant] *, .ext-kc[data-instant] *::after { transition: none !important; }
/* reduced motion: folds, digits, fills, pops and slides change at once (the script also snaps the digits and scrolls instantly) */
@media (prefers-reduced-motion: reduce) {
  .ext-kc *, .ext-kc *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
  .ext-kc * { animation: none !important; }
  .ext-kc[data-receipt-anim="stamp"][data-unlocked] .ext-kc__rc-stamp { opacity: .95; transform: rotate(-14deg); } /* no motion: the stamp simply there */
  .ext-kc__slider { scroll-behavior: auto; }
}

/* the entrance (Artem 2026-11-13: «когда скроллом подходим к кит-билдерам — нет никакой анимации, что-то лёгкое»): the heading rises word by word
   (Concept's split-words, as Best Sellers'); the summary and the deck rise 24 px and fade in, the open step's products after them one by one.
   kit-config.js sets data-reveal="pending" on a configurator below the fold, «in» once its body shows, and takes it away when risen — the
   columns keep no transform after (the phones' summary bar is position: fixed inside). Reduced motion: none. */
.ext-kc[data-reveal="pending"] :is(.ext-kc__lede, .ext-kc__aside, .ext-kc__deck, .ext-kc__panel[data-state="on"] .ext-kc__item) { opacity: 0; transform: translateY(24px); }
.ext-kc[data-reveal="in"] :is(.ext-kc__lede, .ext-kc__aside, .ext-kc__deck, .ext-kc__panel[data-state="on"] .ext-kc__item) { transition: opacity .7s var(--ext-kc-out), transform .9s var(--ext-kc-out); transition-delay: var(--ext-kc-in, 0s); }
.ext-kc__deck { --ext-kc-in: .1s; }
.ext-kc__lede { --ext-kc-in: .15s; }
.ext-kc__panel .ext-kc__item:nth-child(1) { --ext-kc-in: .3s; }
.ext-kc__panel .ext-kc__item:nth-child(2) { --ext-kc-in: .38s; }
.ext-kc__panel .ext-kc__item:nth-child(3) { --ext-kc-in: .46s; }
.ext-kc__panel .ext-kc__item:nth-child(n+4) { --ext-kc-in: .54s; }
