.shop-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:var(--paper,#fff6e8);
  color: var(--ink,#101439);
  font-size:1.125rem;
}
.shop-page *, .shop-page *::before, .shop-page *::after { box-sizing: border-box; }
.shop-page [hidden] { display: none !important; }
.shop-page a { color: inherit; }
.shop-page :focus-visible { outline: 3px dashed #124bec; outline-offset: 4px; }
.shop-skip { position: fixed; z-index: 10; left: 12px; top: -90px; padding: .8rem; background: white; }
.shop-skip:focus { top: 6px; }
.shop-header {
  z-index: 2;
  position: relative;
  padding: 0 max(20px,calc((100% - 1176px)/2));
  background-color:var(--blue,#1651d3);
  background-image:linear-gradient(rgba(10,49,151,.8),rgba(10,49,151,.8)),url("assets/blue-ink.webp");
  background-size:auto,320px;
}
.shop-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px; height: 13px;
  background: inherit;
  clip-path: polygon(0 0,100% 0,100% 45%,99% 65%,97% 45%,96% 75%,93% 50%,90% 78%,88% 38%,85% 65%,84% 42%,82% 72%,80% 49%,78% 77%,76% 55%,75% 78%,73% 46%,70% 74%,69% 54%,66% 88%,64% 70%,62% 85%,59% 50%,57% 67%,55% 46%,53% 70%,50% 42%,48% 73%,46% 57%,43% 89%,41% 58%,39% 75%,36% 51%,34% 70%,33% 41%,30% 73%,28% 48%,26% 65%,24% 42%,21% 70%,19% 48%,17% 85%,15% 60%,13% 82%,11% 60%,9% 86%,7% 50%,5% 72%,3% 50%,1% 76%,0 54%);
  pointer-events: none;
}
.shop-head-inner {
  display:flex; justify-content:space-between; align-items:center; gap:24px;
  min-height:82px;
}
.shop-brand { font-size:clamp(2.45rem,4.4vw,3.95rem); color: var(--paper,#fff6e8) !important; text-decoration: none; }
.shop-header :focus-visible { outline-color: #fff5df; }
.shop-nav { display:flex; gap:16px; }
.shop-nav a {
  display:inline-grid; place-items:center; padding:7px 23px; color:var(--ink);
  background: var(--paper); border:2px solid var(--ink); box-shadow:3px 3px var(--ink);
  text-decoration:none; font-weight:600; font-size:1rem;
  clip-path:polygon(0 6px,5px 6px,5px 2px,8px 2px,8px 0,calc(100% - 6px) 0,calc(100% - 6px) 3px,100% 3px,100% calc(100% - 5px),calc(100% - 5px) calc(100% - 5px),calc(100% - 5px) 100%,4px 100%,4px calc(100% - 3px),0 calc(100% - 3px));
}
.shop-nav a:hover { background:#ffe1b6; }
.shop-mobile-nav { display:none; }
.shop-wrap {
  flex:1 0 auto; width:min(calc(100% - 56px),1144px); margin:0 auto;
  padding: 32px 0 clamp(48px,7vw,100px);
}
.shop-back {
  display:inline-flex; align-items:center; gap:.55rem; width:fit-content;
  min-height:44px; margin-bottom:clamp(19px,3vw,43px);
  text-decoration:none; font-weight:500; font-size:1rem;
}
.shop-back span { font-size:1.7rem; line-height:.7; }
.shop-back:hover, .order-meta a:hover { text-decoration:underline; text-underline-offset:.22em; }
.product-stage {
  display:grid; align-content:start; align-items:start; grid-template-columns:minmax(0,1.34fr) minmax(310px,.9fr);
  grid-template-areas:"photo title" "photo buy"; column-gap:clamp(35px,7vw,110px);
}
.product-title { grid-area:title; padding-top:24px; }
.product-title h1, .checkout-title, .success-panel h1 {
  margin:0; overflow-wrap:normal; font-size:clamp(2rem,4vw,3.25rem); line-height:1.2; font-weight:700;
}
.product-title p { margin: 15px 0 0; font-size:1.07rem; font-weight:560; }
.product-photo { grid-area:photo; position:relative; align-self:start; min-height:0; height:auto; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; margin:0; padding:24px 6px; }
.product-photo::before, .product-photo::after {
  content:""; position:absolute; width:30px; height:12px;
  opacity:.84; transform:skewX(-22deg); background: repeating-linear-gradient(90deg,var(--blue) 0 7px,transparent 7px 11px);
}
.product-photo::before { top:4%; left:4%; }
.product-photo::after { right:3%; bottom:4%; }
.product-photo img { display:block; position:relative; width:100%; height:auto; max-height:560px; object-fit:contain; filter:drop-shadow(0 12px 11px rgba(61,43,21,.14)); }
.controller-image { position:relative; display:block; width:100%; }
.controller-image > .controller-transition-layer { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; pointer-events:none; }
.controller-image[data-image-error]::after { content:"Фото тимчасово недоступне"; position:absolute; inset:0; display:grid; place-items:center; padding:16px; font:400 1rem/1.5 var(--blip-text-font); color:var(--ink); background:var(--paper); text-align:center; }
.selection-pending [data-selection-surface] { visibility:hidden; }
.visualization-note { display:block; margin:12px 0 0; font-size:1rem; line-height:1.5; text-align:center; color:#4b4c61; }
.shop-checkers, .finish-flag {
  background:conic-gradient(var(--blue) 25%,transparent 0 50%,var(--blue) 0 75%,transparent 0) 0 0 / 16px 16px;
  transform:skewX(-12deg) rotate(-9deg);
}
.shop-checkers { position:absolute; right:2%; top:3%; width:53px; height:23px; }
.product-buy { grid-area:buy; margin-top:30px; }
.product-title .product-price { margin:16px 0 8px; }
.product-title .product-price .total-label { flex-basis:100%; }
.single-saving { margin:0 0 12px; color:#175e41; font:500 1.125rem/1.4 var(--blip-text-font); }
.product-includes { margin:0 0 4px; font-size:1.125rem; line-height:1.5; }
.product-conditions { display:flex; flex-wrap:wrap; gap:4px 20px; margin:0 0 20px; }
.product-conditions a { display:inline-flex; align-items:center; min-height:44px; font-size:1.125rem; line-height:1.4; text-underline-offset:.2em; }
.colour-control, .model-control { padding:0; margin:0; min-width:0; border:0; }
.model-control { margin-bottom:23px; }
.colour-control { container-type:inline-size; container-name:colour-options; }
.colour-control legend, .model-control legend { margin:0 0 12px; padding:0; font-weight:600; font-size:1.125rem; }
.colour-control strong { margin-left:6px; font-weight:600; }
.swatches, .model-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.swatch, .model-option { position:relative; min-width:0; cursor:pointer; }
.swatch input, .model-option input { position:absolute; z-index:2; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.swatch-tile, .model-tile { position:relative; isolation:isolate; display:flex; align-items:center; gap:9px; width:100%; min-height:64px; padding:12px 22px 12px 12px; pointer-events:none; }
.swatch-paint { width:27px; height:32px; flex-shrink:0; background:var(--swatch); clip-path:polygon(0 4px,4px 4px,4px 0,calc(100% - 4px) 0,calc(100% - 4px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 4px) calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 4px),0 calc(100% - 4px)); }
.swatch-name { line-height:1.3; font-size:1.0625rem; font-weight:500; }
.option-check { position:absolute; right:8px; top:8px; opacity:0; font:600 1rem/1 var(--blip-text-font); color:var(--ink); }
.model-tile { flex-direction:column; align-items:flex-start; justify-content:center; gap:3px; padding-right:24px; }
.model-tile strong { font-family:var(--blip-text-font); font-weight:650; font-size:1.25rem; line-height:1.2; }
.model-tile > span:not(.option-check) { font-size:1rem; line-height:1.4; }
.colour-preview-controls { margin-top:16px; text-align:left; }
.colour-preview-status { min-height:3em; margin:8px 0 0; font-size:1rem; line-height:1.5; color:#4b4c61; }
.bundle-control { min-width:0; margin:24px 0 0; padding:0; border:0; text-align:left; }
.bundle-control legend { margin:0 0 12px; padding:0; font-size:1.125rem; font-weight:600; }
.bundle-options { display:grid; gap:10px; }
.bundle-option { position:relative; min-width:0; cursor:pointer; }
.bundle-option input { position:absolute; z-index:2; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.bundle-tile { position:relative; display:grid; grid-template-columns:minmax(max-content,3.5rem) minmax(0,1fr); align-items:center; gap:3px 12px; min-height:76px; padding:12px 32px 12px 14px; pointer-events:none; }
.bundle-tile > strong { grid-row:span 2; white-space:nowrap; font-size:1.125rem; font-weight:650; line-height:1.4; }
.bundle-option-total { font-size:1.1875rem; font-weight:650; line-height:1.4; font-variant-numeric:tabular-nums; }
.bundle-caption { font-size:1rem; line-height:1.45; font-weight:400; }
.bundle-rules { margin:10px 0 0; font-size:1rem; line-height:1.5; color:#3a3b50; }
.bundle-math { margin:0 0 18px; font-size:1rem; line-height:1.5; color:#3a3b50; text-align:left; }
.bundle-math p { margin:6px 0 0; }
.total-label { font-size:1rem; font-weight:500; }
.success-panel .bundle-math { text-align:center; }
.product-price { margin:26px 0 18px; font-size:clamp(2rem,3vw,2.75rem); line-height:1.2; font-weight:750; }
.product-price .price-was { font-size:1.5rem; }
.shop-action { width:100%; }
.product-note { margin:16px 0 0; font-size:1rem; line-height:1.5; color:#3a3b50; }
.product-demo { margin:10px 0 0; font-size:1rem; line-height:1.5; color:#4b4c61; }
.track-end { margin-top:auto; height:14px; background:var(--blue) url("assets/blue-ink.webp") repeat; background-size:320px; }
.checkout-wrap { max-width:1030px; }
.checkout-title { text-transform:none; margin-bottom:clamp(26px,4vw,50px); }
.checkout-layout { display:grid; gap:clamp(32px,7vw,100px); grid-template-columns: minmax(240px,.95fr) minmax(320px,1.1fr); align-items:start; }
.order-slip {
  border:2px solid var(--ink); box-shadow:4px 4px 0 var(--ink); padding:clamp(18px,2.2vw,30px);
  display:flex; flex-direction:column; align-items:stretch; gap:20px; background:rgba(255,255,255,.16);
}
.order-thumb { display:grid; place-items:center; min-width:0; }
.order-summary-top { display:flex; flex-direction:column; gap:18px; }
.order-thumb img { display:block; width:100%; max-height:215px; object-fit:contain; }
.order-meta { padding-top:15px; border-top:1px solid #10143955; min-width:0; }
.order-meta h2 { margin:0 0 8px; font-size:clamp(1.2rem,2.1vw,1.6rem); line-height:1.3; font-weight:650; }
.order-meta p { margin:0 0 4px; }
.order-meta .order-price { font-size:1.6rem; font-weight:750; margin:12px 0; }
.order-price .price-was { font-size:1rem; }
.order-slip > .order-price { margin:0; gap:6px 14px; font-size:2rem; line-height:1.3; }
.order-slip > .order-price .total-label { flex-basis:100%; }
.order-slip > .order-price .price-was { font-size:1.5rem; }
.order-slip > .order-price .price-now { font-size:2rem; }
.order-includes { font-size:1rem; }
.checkout-editor { border-top:1px solid #10143955; }
.checkout-editor > summary { display:list-item; min-height:44px; padding:14px 0; font:600 1.125rem/1.45 var(--blip-text-font); cursor:pointer; }
.checkout-editor > summary:hover { color:#1749a5; }
.checkout-choices { padding-top:8px; }
.order-meta a { font-size:1rem; text-underline-offset:3px; }
.order-form { display:grid; gap:0; }
.demo-note { padding:0 0 0 12px; border-left:3px solid var(--orange); font-size:1rem; line-height:1.55; margin:0 0 24px; color:#33394b; }
.demo-note strong { font-weight:600; }
.order-form label { font-size:1rem; font-weight:600; margin-bottom:8px; }
.order-form input {
  display:block; width:100%; font:400 1rem/1.5 var(--blip-reading-font);
  color:var(--ink); background:#fffcf7; border:1.5px solid #62657b; border-radius:5px;
  min-height:50px; padding:11px 12px; margin-bottom:20px;
}
.order-form input[aria-invalid="true"] { border-color:#982338; margin-bottom:0; }
.order-form .field-error { color:#852035; margin:.35rem 0 1rem; font-size:1rem; line-height:1.4; }
.order-form input::placeholder { color:#636270; opacity:1; }
.order-form .shop-action { margin-top:8px; }
.success-panel { max-width:500px; margin:20px auto 36px; text-align:center; }
.finish-flag { width:62px; height:34px; margin:0 auto 28px; }
.success-panel > p { line-height:1.5; margin:15px 0 26px; }
.success-item { border-block:1px solid #10143966; display:flex; align-items:center; justify-content:center; gap:16px; padding:15px 0; margin:0 0 26px; }
.success-item img { width:108px; }
.success-item .controller-image { width:108px; flex-shrink:0; }
.success-item span { text-align:left; line-height:1.45; }
@media (max-width:760px) {
  .shop-header { padding:0 20px; }
  .shop-head-inner { min-height:64px; }
  .shop-nav { display:none; }
  .shop-mobile-nav { display:block; position:relative; }
  .shop-mobile-nav summary { display:grid; place-items:center; width:44px; height:44px; color:var(--paper); cursor:pointer; list-style:none; }
  .shop-mobile-nav summary::-webkit-details-marker { display:none; }
  .shop-mobile-nav summary span { width:23px; height:3px; background:currentColor; box-shadow:0 -7px currentColor,0 7px currentColor; }
  .shop-mobile-nav nav { position:absolute; z-index:3; right:0; top:calc(100% + 3px); min-width:158px; border:2px solid var(--ink); background:var(--paper); box-shadow:3px 3px var(--ink); }
  .shop-mobile-nav nav a { display:block; padding:13px 16px; font-weight:500; text-decoration:none; }
  .shop-mobile-nav nav a:hover { background:#ffdea9; }
  .shop-wrap { width:min(calc(100% - 40px),560px); padding:17px 0 42px; }
  .shop-back { margin-bottom:13px; }
  .product-stage { display:flex; flex-direction:column; gap:0; }
  .product-title { padding:0; }
  .product-title h1 { font-size:clamp(1.75rem,7.2vw,2.5rem); }
  .product-title p { font-size:1rem; margin:9px 0 3px; }
  .product-photo { min-height:0; width:100%; height:auto; padding:23px 5px 14px; }
  .product-photo img { width:100%; max-height:325px; object-fit:contain; }
  .shop-checkers { width:33px; height:15px; background-size:11px 11px; top:4%; right:3%; }
  .product-photo::before { top:14%; width:22px; height:7px; }
  .product-photo::after { display:none; }
  .product-buy { margin:10px auto 0; width:100%; text-align:center; }
  .colour-control legend { width:100%; }
  .colour-control legend, .model-control legend { text-align:left; }
  .swatches { text-align:left; }
  .product-price { justify-content:center; font-size:2.3rem; margin:22px 0; }
  .product-note { font-size:1rem; max-width:350px; margin:16px auto 0; }
  .shop-page .shop-action { min-height:54px; }
  .checkout-title { font-size:clamp(1.75rem,6.6vw,2.5rem); margin:0 0 24px; }
  .checkout-layout { display:flex; flex-direction:column; align-items:stretch; gap:25px; }
  .order-slip { flex-direction:column; align-items:stretch; padding:16px; gap:20px; box-shadow:2px 2px 0 var(--ink); }
  .order-summary-top { flex-direction:row; align-items:center; gap:13px; }
  .order-thumb { width:32%; flex-shrink:0; }
  .order-thumb img { max-height:94px; }
  .order-meta { padding:0 0 0 13px; border:0; border-left:1px solid #10143955; }
  .order-meta h2 { font-size:1.2rem; }
  .order-meta p, .order-meta .order-price { font-size:1rem; margin:3px 0; }
  .order-meta .order-price { margin:7px 0; }
  .order-price .price-was { font-size:1rem; }
  .order-price .price-now { font-size:1.4rem; }
  .order-meta .order-includes { font-size:1rem; }
  .order-meta a { display:inline-block; font-size:1rem; padding:5px 0; }
  .demo-note { font-size:1rem; margin-bottom:22px; }
  .order-form input { margin-bottom:16px; }
}
@media (max-width:360px) {
  .swatch-tile { gap:7px; padding:10px 20px 10px 9px; }
  .swatch-name { font-size:1rem; }
  .swatch-paint { width:22px; height:28px; }
  .model-tile { padding-left:9px; padding-right:20px; }
}
@media (min-width:761px) and (max-width:950px) {
  .shop-wrap { width:calc(100% - 48px); }
  .product-stage { column-gap:28px; grid-template-columns:minmax(0,1.2fr) minmax(260px,.9fr); }
  .product-photo { min-height:0; }
  .checkout-layout { gap:35px; }
}
@media (min-width:1000px) and (min-height:740px) {
  .product-photo { position:sticky; top:1rem; }
  .product-photo img { max-height:min(560px,calc(100vh - 8rem)); }
}
.product-title .product-price .price-now {font-size:clamp(2.1rem,3.2vw,3rem);line-height:1.12}

input:checked + .blip-choice .option-check { opacity:1; }
.swatch-tile { min-height:56px; }
.colour-preview-controls { margin-top:8px; }
.colour-preview-status { min-height:1.5em; margin-top:4px; }
.shop-page .shop-action { min-height:54px; }
.purchase-action { flex-wrap:wrap; gap:.1rem .8rem; }
.purchase-action [data-total-price] { white-space:nowrap; }
.checkout-editor > summary { list-style:none; display:flex; align-items:center; gap:1rem; justify-content:space-between; min-height:50px; }
.checkout-editor > summary::-webkit-details-marker { display:none; }
.checkout-editor > summary::after { content:"+"; font:600 1.3rem/1 var(--blip-text-font); }
.checkout-editor[open] > summary::after { content:"−"; }
.reward-note, [data-price-notice] { color:#40304a; padding:.55rem .8rem; margin:.5rem 0 1rem; background:#ffe2ef; border-left:3px solid #a22760; font-weight:600; line-height:1.4; font-size:1rem; }
@media (max-width:760px) {
  .product-buy { text-align:left; }
  .product-title .product-price { justify-content:flex-start; }
  .shop-wrap, .store-info { width:min(calc(100% - 2 * var(--store-gutter)),560px); margin-inline:auto; }
}
@container colour-options (max-width:20rem) {
  .swatch-tile { display:grid; grid-template-columns:1fr; justify-items:start; align-content:center; min-height:68px; gap:4px; padding:9px 10px; }
  .swatch-paint { height:14px; width:25px; }
  .option-check { right:6px; top:6px; }
}

/* The product sits on a lit workbench. The light central field keeps each
   model and colour legible, while the skyline echoes the race's garage. */
.product-photo .controller-image {
  isolation:isolate;
  padding:clamp(10px,2vw,24px);
  overflow:hidden;
  border:2px solid #192a56;
  background:
    linear-gradient(to top,#c9d7eb 0 12%,#a2b4cd 12% 12.7%,transparent 12.7%),
    linear-gradient(110deg,#f2f7fc 8%,#e2eefa 54%,#c6d7ee 100%);
  box-shadow:4px 4px 0 #182b55;
}
.product-photo .controller-image::before {
  content:""; position:absolute; z-index:-1; inset:0 0 56%;
  background:linear-gradient(to top,#ddeaf6,transparent 55%),url("assets/drive-sky.webp") center 86% / cover;
  opacity:.31;
}
.product-photo .controller-image::after {
  content:""; position:absolute; right:10px; bottom:7px; width:50px; height:6px;
  background:repeating-linear-gradient(-48deg,#2453aa 0 5px,transparent 5px 10px);
}
.product-photo .controller-image img { mix-blend-mode:multiply; filter:none; }
.product-photo .controller-image img[src*="ps4-"] { filter:brightness(1.12); }
.product-photo .shop-checkers, .product-photo::before, .product-photo::after { display:none; }
