/* The product card — one for Space and for the client site /start/ (see product-card.js) */

/* On a computer the card opens in the middle of the screen, not as a side panel */
@media(min-width:1000px){
  #site-product-overlay{justify-content:center;align-items:center;background:radial-gradient(60% 70% at 50% 50%,#06231c88,transparent 70%),rgba(1,8,12,.74)}
  .site-product-drawer{width:min(1080px,92vw);height:min(92vh,1200px);border-radius:28px;border:0;box-shadow:0 50px 140px #000d,inset 0 0 0 1px #6ff7d844;animation:spc-in .6s cubic-bezier(.16,1,.3,1)}
  .site-product-drawer:before{display:none}
  .detail-drawer{left:50%;right:auto;top:4vh;bottom:4vh;width:min(1000px,92vw);border:0;border-radius:28px;overflow:hidden;box-shadow:0 50px 140px #000d,inset 0 0 0 1px #6ff7d844;transform:translate(-50%,36px) scale(.96);opacity:0;pointer-events:none;transition:transform .55s cubic-bezier(.16,1,.3,1),opacity .3s}
  .detail-drawer.open{transform:translate(-50%,0);opacity:1;pointer-events:auto}
  .detail-drawer:before{display:none}
}
@keyframes spc-in{from{opacity:0;transform:translateY(46px) scale(.95)}}

/* Photos of any shape: whole, on a blurred copy of themselves */
.sp-fit{position:relative;isolation:isolate;overflow:hidden;height:auto!important;min-height:0!important;max-height:74vh;padding:0;background:#071016}
.sp-fit:before{content:"";position:absolute;inset:-30px;z-index:-1;background:var(--sp-bg) center/cover no-repeat;filter:blur(26px) brightness(.5) saturate(1.25);transform:scale(1.1)}
.sp-fit img{position:relative;display:block;width:100%!important;height:100%!important;max-height:74vh;object-fit:contain!important;background:none!important}
.sp-fit.is-tall img{filter:drop-shadow(0 18px 40px #000a)}
/* Catalog tiles: the photo fills the tile (the tile keeps the photo's shape) */
#kit-list .product-visual.sp-tile{height:auto!important;background:#0b161d!important;overflow:hidden}
#kit-list .product-visual.sp-tile img{width:100%!important;height:100%!important;object-fit:cover!important}
/* «Подходящие дополнения»: a full-bleed photo on top of each card */
.site-product-related-card{overflow:hidden;align-content:start}
.site-product-related-card img{display:block;width:calc(100% + 28px);max-width:none;height:auto;aspect-ratio:4/3;margin:-14px -14px 4px;object-fit:cover;background:#fff;border-radius:0}

/* «Спросить агента»: one even block — the field with the microphone inside, the send button, quick questions, the answer */
.sp-ask{display:grid;gap:12px;margin:18px 0;padding:18px;border-radius:22px;background:linear-gradient(160deg,#1a1430 0%,#0c1720 60%,#0a141b);box-shadow:inset 0 0 0 1px #c291ff38,0 20px 60px #0004}
.sp-ask .sp-k{font:800 10px "JetBrains Mono",monospace;letter-spacing:.16em;color:#cda8ff}
.sp-ask-f{display:flex;gap:10px;align-items:stretch}
.sp-ask-in{flex:1;min-width:0;display:flex;align-items:center;gap:6px;height:54px;padding:0 6px 0 16px;border-radius:16px;background:#060e14;box-shadow:inset 0 0 0 1px #ffffff1a;transition:box-shadow .25s}
.sp-ask-in:focus-within{box-shadow:inset 0 0 0 1.5px #6ff7d8aa,0 0 0 4px #6ff7d814}
.sp-ask-in input{flex:1;min-width:0;height:100%;border:0;outline:0;background:none;color:#fff;font:500 16px Manrope,sans-serif}
.sp-ask-in input::placeholder{color:#7f969e}
.sp-mic{flex:none;width:42px;height:42px;border:0;border-radius:12px;background:#0f2a2c;box-shadow:inset 0 0 0 1px #6ff7d855;cursor:pointer;display:grid;place-items:center;transition:background .2s,transform .2s}
.sp-mic:hover{background:#13393a;transform:scale(1.05)}
.sp-mic svg{width:20px;height:20px;fill:none;stroke:#6ff7d8;stroke-width:1.8;stroke-linecap:round}
.sp-mic.is-rec{background:#a5434e;box-shadow:0 0 0 0 #ff6b7a88;animation:sp-rec 1.2s infinite}.sp-mic.is-rec svg{stroke:#fff}
@keyframes sp-rec{70%{box-shadow:0 0 0 12px #ff6b7a00}}
/* the send button: a plane that breathes while waiting, leans in when there is a question */
.sp-send{position:relative;flex:none;width:54px;height:54px;border:0;border-radius:16px;display:grid;place-items:center;cursor:pointer;background:radial-gradient(120% 120% at 20% 10%,#2a1e48,#10202a);box-shadow:inset 0 0 0 1px #c291ff66;overflow:visible;transition:transform .25s cubic-bezier(.2,1.4,.4,1),box-shadow .3s}
.sp-send svg{width:26px;height:26px;overflow:visible;animation:sp-breathe 2.8s ease-in-out infinite}
.sp-send .sp-pl{fill:url(#spg)}.sp-send .sp-pl-fold{fill:none;stroke:#0c1720;stroke-width:1.4;stroke-linecap:round}
.sp-send.is-ready{transform:translateY(-1px);box-shadow:inset 0 0 0 1px #6ff7d8,0 10px 30px #58e2ca44}
.sp-send.is-ready svg{animation:sp-lean 1.4s ease-in-out infinite}
.sp-send:hover{transform:translateY(-2px) scale(1.04)}
.sp-send:disabled{cursor:default}
.sp-ring{position:absolute;inset:-3px;border-radius:18px;padding:2px;background:conic-gradient(from var(--a,0deg),#6ff7d8,#c291ff,transparent 55%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transition:opacity .3s;pointer-events:none}
.sp-send.is-busy .sp-ring{opacity:1;animation:sp-orbit 1s linear infinite}
@property --a{syntax:"<angle>";inherits:false;initial-value:0deg}
@keyframes sp-orbit{to{--a:360deg}}
@keyframes sp-breathe{50%{transform:translate(1px,-1px);filter:drop-shadow(0 0 6px #c291ff88)}}
@keyframes sp-lean{0%,100%{transform:rotate(0)}50%{transform:translate(2px,-2px) rotate(-6deg);filter:drop-shadow(0 0 8px #6ff7d8aa)}}
/* quick questions */
.sp-ask-chips{display:flex;flex-wrap:wrap;gap:8px;min-height:34px}
.sp-ask-chips button{border:0;border-radius:999px;padding:8px 14px;background:#ffffff08;box-shadow:inset 0 0 0 1px #c291ff44;color:#e2d4ff;font:600 13px Manrope,sans-serif;cursor:pointer;text-align:left;animation:sp-chip .5s cubic-bezier(.16,1,.3,1) backwards;animation-delay:calc(var(--k,0)*80ms);transition:background .2s,transform .2s}
.sp-ask-chips button:hover{background:#c291ff22;transform:translateY(-1px)}
.sp-chip-wait{width:180px;height:34px;border-radius:999px;background:linear-gradient(90deg,#ffffff08,#c291ff22,#ffffff08) 0 0/200% 100%;animation:sp-shim 1.2s linear infinite}
.sp-chip-wait:nth-child(2){width:220px}.sp-chip-wait:nth-child(3){width:150px}
@keyframes sp-shim{to{background-position:-200% 0}}
@keyframes sp-chip{from{opacity:0;transform:translateY(6px) scale(.96)}}
/* the answer */
.sp-ask-out:empty{display:none}
.sp-ans{position:relative;padding:18px 20px;border-radius:18px;background:linear-gradient(160deg,#16202f,#0b141c);box-shadow:inset 0 0 0 1px #6ff7d833;animation:sp-ans-in .45s cubic-bezier(.16,1,.3,1)}
.sp-ans.is-typing{box-shadow:inset 0 0 0 1px #6ff7d877,0 0 30px #6ff7d81a}
@keyframes sp-ans-in{from{opacity:0;transform:translateY(8px)}}
.sp-ans-q{display:flex;gap:8px;align-items:baseline;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #ffffff10;font-size:13px;color:#9fb6bc}.sp-ans-q b{color:#e8f0f2;font-weight:600}
.sp-ans-k{font:800 10px "JetBrains Mono",monospace;letter-spacing:.14em;color:#6ff7d8}
.sp-ans-h{display:block;margin:6px 0 6px;font-size:19px;line-height:1.3;color:#fff}
.sp-ans-p{margin:0;color:#c9d6da;font-size:15px;line-height:1.65;white-space:pre-wrap}
.sp-caret{display:inline-block;width:8px;height:1.05em;margin-left:3px;vertical-align:-2px;border-radius:2px;background:#6ff7d8;animation:sp-blink .8s steps(2) infinite}
@keyframes sp-blink{50%{opacity:0}}
.sp-ans-act{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.sp-ai{border:0;border-radius:12px;padding:0 16px;height:44px;background:linear-gradient(135deg,#c291ff,#58e2ca);color:#120b26;font:800 13px Manrope,sans-serif;cursor:pointer}
.sp-ans-again{border:0;border-radius:12px;height:44px;padding:0 14px;background:#ffffff0c;color:#cfe;font:700 13px Manrope,sans-serif;cursor:pointer}
.sp-ans-more details{margin-top:4px}.sp-ans-more summary{cursor:pointer;color:#9fb6bc;font-size:13px;font-weight:700}
.sp-qa{margin-top:8px;padding:10px 12px;border-radius:12px;background:#ffffff06}.sp-qa b{display:block;font-size:13.5px}.sp-qa p{margin:4px 0 0;font-size:13.5px;line-height:1.5;color:#c9d6da}
@media(max-width:640px){.sp-ask{padding:14px;border-radius:18px}.sp-ask-in,.sp-send{height:50px}.sp-send{width:50px}.sp-ans{padding:14px 16px}}

/* The site's description, rebuilt into readable pieces (tidyRich in site-product-detail.js) */
.site-product-rich p{margin:0 0 12px;line-height:1.7}
.site-product-rich .site-rich-heading{margin:30px 0 12px}
/* questions: cards that open */
.sr-faq{margin:0 0 10px;border-radius:16px;background:linear-gradient(160deg,#122530,#0c1820);box-shadow:inset 0 0 0 1px #6ff7d822;overflow:hidden;transition:box-shadow .3s}
.sr-faq[open]{box-shadow:inset 0 0 0 1px #6ff7d855,0 14px 40px #0005}
.sr-faq summary{display:flex;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;list-style:none}
.sr-faq summary::-webkit-details-marker{display:none}
.sr-faq summary b{flex:1;font-size:16px;line-height:1.4;color:#f1f7f8}
.sr-q{flex:none;width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:linear-gradient(135deg,#6ff7d8,#58b8e2);color:#06141a;font:900 15px Manrope,sans-serif}
.sr-chev{flex:none;color:#6ff7d8;font-style:normal;font-size:20px;transition:transform .3s}
.sr-faq[open] .sr-chev{transform:rotate(180deg)}
.sr-a{padding:0 18px 16px 56px;color:#c4d4d8;font-size:15px;line-height:1.7}
.sr-a p{margin:0 0 10px}.sr-a p:last-child{margin:0}
/* reviews: cards with a face, a role and stars */
.sr-revs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px;margin:4px 0 18px}
.sr-rev,.sr-quote{margin:0;padding:18px;border-radius:18px;background:linear-gradient(160deg,#14222c,#0c161d);box-shadow:inset 0 0 0 1px #ffffff14}
.sr-rev-h{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.sr-rev-h>div{flex:1;min-width:0;display:grid}.sr-rev-h b{font-size:15.5px;color:#fff}.sr-rev-h small{font-size:12.5px;color:#8fa6ae;line-height:1.35}
.sr-av{flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#c291ff,#58e2ca);color:#120b26;font:800 17px Manrope,sans-serif;box-shadow:0 0 0 3px #ffffff0d}
.sr-stars{flex:none;color:#ffd166;letter-spacing:2px;font-size:14px;text-shadow:0 0 12px #ffd16655}
.sr-rev blockquote,.sr-quote blockquote{margin:0;color:#d3dfe2;font-size:15px;line-height:1.7}
.sr-rev blockquote p,.sr-quote blockquote p{margin:0 0 10px}.sr-rev blockquote p:last-child,.sr-quote blockquote p:last-child{margin:0}
.sr-rev figcaption{margin-top:12px;font-size:12px;color:#7fc8b4}
/* an expert's word: a quote with a big mark */
.sr-quote{position:relative;margin:6px 0 18px;padding:22px 22px 20px;background:linear-gradient(160deg,#1d1736,#0d1820 70%);box-shadow:inset 0 0 0 1px #c291ff40}
.sr-quote:after{content:"“";position:absolute;top:-6px;right:18px;font:900 96px/1 Georgia,serif;color:#c291ff2e;pointer-events:none}
.sr-quote blockquote{font-size:15.5px;color:#e4dcf7}
.sr-quote blockquote p:first-child{font-size:17px;font-weight:600;color:#fff}
@media(max-width:640px){.sr-a{padding:0 14px 14px 14px}.sr-faq summary b{font-size:15px}}
/* a spec list from the site: label on the left, value on the right */
.sr-specs{display:grid;margin:4px 0 18px;border-radius:16px;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff14;background:#0b161d}
.sr-spec{display:grid;grid-template-columns:minmax(140px,38%) 1fr;gap:14px;padding:11px 16px;border-top:1px solid #ffffff0d}
.sr-spec:first-child{border-top:0}.sr-spec:nth-child(odd){background:#ffffff04}
.sr-spec span:first-child{color:#8fa6ae;font-size:14px}.sr-spec span:last-child{color:#f1f7f8;font-weight:700;font-size:14.5px}
@media(min-width:1000px){.site-product-related{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* the price right under the photos (product-card.js order()) */
.sp-price{display:grid;gap:4px;margin:14px 0 4px;padding:14px 16px;border-radius:18px;background:linear-gradient(135deg,#123a35,#151c33);border:1px solid #6ff7d844}
.sp-price-k{font:800 10px "JetBrains Mono",monospace;letter-spacing:.14em;color:#6ff7d8}
.sp-price-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px}
.sp-price-row strong{font:800 30px/1.1 Manrope,sans-serif;color:#eafff9;letter-spacing:-.01em}
.sp-price-row s{color:#8fa9ae;font-size:16px}
.sp-stock{margin-left:auto;padding:5px 10px;border-radius:10px;background:#6ff7d81c;color:#bfffee;font:700 12.5px Manrope,sans-serif}.sp-stock.is-out{background:#ffd27a1f;color:#ffe3a6}
@media(max-width:760px){.sp-price-row strong{font-size:26px}}

/* Market product = the assembly's layout: photos left, the panel right (product-card.js .sp-top/.sp-side) */
.sp-top{display:grid;gap:18px;margin-bottom:18px}
.sp-side{display:grid;align-content:start;gap:14px}
@media(min-width:1000px){
  .sp-top{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);align-items:start;gap:26px}
  .sp-side{position:sticky;top:12px;padding:22px;border-radius:26px;background:linear-gradient(160deg,#0f2329,#0b151c);box-shadow:inset 0 0 0 1.5px #6ff7d855,0 20px 60px -30px #000}
  .sp-side .sp-price{margin:0;padding:0;background:none;box-shadow:none}
  .sp-side .detail-grid{grid-template-columns:1fr 1fr;gap:10px}
  .sp-side .detail-grid .detail-field:last-child:nth-child(odd){grid-column:1/-1}
  .sp-side .sc-delivery{margin:0}
}
@media(min-width:1000px){.sp-top .sp-side .detail-grid{grid-template-columns:1fr 1fr!important}.sp-side .detail-field strong{overflow-wrap:normal;word-break:normal;hyphens:auto}}
