/* =====================================================================
   "Design objects" — services as product cards
   3D tilt + holographic foil (pointer), swinging price tag, quick-view dialog.
   ===================================================================== */
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; perspective: 1200px; }
.pc { position: relative; display: flex; flex-direction: column; border-radius: 22px; background: linear-gradient(170deg, #1c1f19, #141513 60%); border: 1px solid #ffffff12; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .3s; box-shadow: 0 10px 28px #0005; }
.pc.tilting { transition: transform .08s linear, border-color .3s, box-shadow .3s; }
.pc:hover { border-color: #c8ff5540; box-shadow: 0 18px 40px #0007; }

.pc-media { position: relative; aspect-ratio: 6 / 5; margin: 10px 10px 0; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, hsl(var(--h, 82) 45% 26%), transparent 62%), radial-gradient(circle at 80% 90%, hsl(calc(var(--h, 82) + 40) 35% 18%), transparent 55%), #121311; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-svg { width: 78%; height: auto; transform: translateZ(30px); filter: drop-shadow(0 14px 18px #0008); }
.pc-svg .fl { animation: pc-float 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.7s); transform-origin: center; }
@keyframes pc-float { 50% { transform: translateY(-6px); } }
/* Holographic foil that follows the pointer */
.pc-foil { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: color-dodge; transition: opacity .35s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #ffffff38, transparent 42%), linear-gradient(115deg, transparent 20%, #c8ff5533 38%, #9fd4ff2e 50%, #ffb4e02a 62%, transparent 80%);
  background-size: 100% 100%, 220% 220%; background-position: center, var(--fx, 50%) var(--fy, 50%); }
.pc:hover .pc-foil { opacity: 1; }
.pc-badge { position: absolute; top: 12px; inset-inline-start: 12px; padding: 5px 10px; border-radius: 99px; background: #10110fcc; color: #d9ddcf; font-size: 11px; font-weight: 700; backdrop-filter: blur(6px); transform: translateZ(40px); }
.pc-eye { position: absolute; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #faf7ee; color: #10110f; cursor: pointer; transform: translateZ(40px) scale(.9); opacity: .9; transition: transform .25s cubic-bezier(.16,1,.3,1), background .2s, opacity .2s; box-shadow: 0 6px 16px #0006; }
.pc-eye .icon { width: 18px; height: 18px; }
.pc-eye:hover, .pc-eye:focus-visible { background: var(--lime); transform: translateZ(40px) scale(1); opacity: 1; }

.pc-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 18px; flex: 1; transform: translateZ(20px); }
.pc-body h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; line-height: 1.25; }
.pc-body h3 a:hover { color: var(--lime); }
.pc-body p { margin: 0 0 6px; font-size: 13px; color: var(--muted); line-height: 1.5; min-height: 2.9em; }
.pc-price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; min-height: 44px; }
.pc-base { font-size: 11px; color: var(--muted); }
.pc-base .money small { font-size: 1em; }
/* Swinging price tag */
.pc-tag { position: relative; display: inline-flex; align-items: baseline; gap: 4px; padding: 8px 14px 8px 26px; background: var(--lime); color: #10110f; font-weight: 800; font-size: 17px; border-radius: 6px 12px 12px 6px; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); transform-origin: 8px 50%; box-shadow: 0 6px 14px #0005; }
html[dir=rtl] .pc-tag { padding: 8px 26px 8px 14px; border-radius: 12px 6px 6px 12px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); transform-origin: calc(100% - 8px) 50%; }
.pc-tag .money small, .pc-tag small { color: #10110fb3; font-size: 11px; font-weight: 700; }
.pc-tag-hole { position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #141513; }
html[dir=rtl] .pc-tag-hole { left: auto; right: 10px; } /* physical sides: the tag itself is dir=ltr, the tip follows the page direction */
.pc-tag-quote { padding: 8px 14px; clip-path: none; border-radius: 10px; font-size: 14px; background: #faf7ee; }
.pc:hover .pc-tag:not(.pc-tag-quote) { animation: tag-swing 1.1s cubic-bezier(.36,.07,.19,.97); }
@keyframes tag-swing { 0% { transform: rotate(0); } 20% { transform: rotate(-9deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(1.5deg); } 100% { transform: rotate(0); } }
.pc-cta { margin-top: auto; border-radius: 14px; }

/* Entrance */
.js-motion .pc-grid .pc { opacity: 0; translate: 0 30px; transition: opacity .7s cubic-bezier(.16,1,.3,1), translate .7s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .3s; transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s, 0s, 0s; }
.js-motion .pc-grid.in .pc { opacity: 1; translate: 0 0; }

/* Quick view dialog */
dialog.qv { width: min(880px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #3a3f33; border-radius: 26px; background: #161815; color: var(--text); box-shadow: 0 40px 100px #000c; overflow: hidden; }
dialog.qv[open] { display: grid; grid-template-columns: .9fr 1.1fr; animation: qv-in .35s cubic-bezier(.16,1,.3,1); }
dialog.qv::backdrop { background: #000a; backdrop-filter: blur(8px); }
@keyframes qv-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.qv-art { display: grid; place-items: center; min-height: 280px; background: radial-gradient(circle at 30% 25%, #2d3d1e, transparent 60%), #111210; }
.qv-art .pc-svg { width: 82%; }
.qv-art img { width: 100%; height: 100%; object-fit: cover; }
.qv-body { position: relative; padding: clamp(22px, 3vw, 36px); overflow-y: auto; max-height: calc(100dvh - 42px); display: grid; gap: 12px; align-content: start; }
.qv-body h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; padding-inline-end: 48px; }
.qv-body > p { margin: 0; }
.qv-close { position: absolute; top: 14px; inset-inline-end: 14px; }
.qv-pkg { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; background: #ffffff04; }
.qv-pkg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qv-pkg-head b { color: var(--lime); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.qv-pkg-head .money { font-size: 22px; font-weight: 800; }
.qv-pkg ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13px; color: #d9ddcf; }
.qv-pkg li::before { content: "✓"; color: var(--lime); margin-inline-end: 8px; }
.qv-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { dialog.qv[open] { grid-template-columns: 1fr; } .qv-art { min-height: 180px; max-height: 32vh; } .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .pc-body { padding: 14px; } .pc-body p { display: none; } .pc-tag { font-size: 14px; } .pc-cta span { font-size: 12px; } }
@media (max-width: 330px) { .pc-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pc { transform: none !important; } .pc-svg .fl, .pc:hover .pc-tag { animation: none !important; } .js-motion .pc-grid .pc { opacity: 1; translate: 0 0; } }

/* Home: product section wrapper */
.shop-section { padding: clamp(100px, 12vw, 170px) 0 40px; }
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; }
.shop-head h2 { font-size: clamp(28px, 4vw, 60px); letter-spacing: -.055em; line-height: 1.02; margin: 10px 0 0; }
html[dir=rtl] .shop-head h2 { letter-spacing: 0; line-height: 1.3; }
.shop-head .row { gap: 10px; }
