/* =====================================================================
   Pagina Cărți de vizită (carti-de-vizita.php) + ilustrația (includes/illus/cards.php)
   ===================================================================== */

/* --- Ilustrația: carte care se întoarce singură --- */
.cvx { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / .86; margin-left: auto; perspective: 1400px; }
.cvx__glow { position: absolute; inset: 14% 10%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--a1) 42%, transparent), rgba(124,58,237,.28) 55%, transparent 72%); filter: blur(42px); animation: wdxPulse 6s ease-in-out infinite; }
.cvx__stack { position: absolute; left: 14%; top: 30%; width: 66%; aspect-ratio: 9 / 5; }
.cvx__stack span { position: absolute; inset: 0; border-radius: 14px; background: #1c1b26; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 40px -18px rgba(0,0,0,.8); }
.cvx__stack span:nth-child(1) { transform: rotate(-12deg) translate(-6%, 10%); background: #262433; }
.cvx__stack span:nth-child(2) { transform: rotate(-6deg) translate(-3%, 5%); background: #2f2c3e; }
.cvx__stack span:nth-child(3) { transform: rotate(8deg) translate(8%, 14%); background: linear-gradient(135deg, var(--a1), var(--a2)); opacity: .9; }
.cvx__card { position: absolute; left: 18%; top: 18%; width: 66%; aspect-ratio: 9 / 5; z-index: 2; animation: cvxFloat 7s ease-in-out infinite; }
@keyframes cvxFloat { 50% { transform: translateY(-12px); } }
.cvx__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: cvxFlip 8s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes cvxFlip { 0%, 38% { transform: rotateY(-14deg) rotateX(8deg); } 50%, 88% { transform: rotateY(-194deg) rotateX(8deg); } 100% { transform: rotateY(-374deg) rotateX(8deg); } }
.cvx__face { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 34px 70px -24px rgba(0,0,0,.85); }
.cvx__front { display: grid; place-items: center; padding: 12% 16%; background: radial-gradient(circle at 30% 20%, #2c2638, #121119 75%); border: 1px solid rgba(255,255,255,.12); }
.cvx__front img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cvx__front b { font: 900 clamp(18px, 3vw, 28px)/1 var(--display); letter-spacing: .1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cvx__shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); background-size: 250% 100%; animation: asShineC 4s ease-in-out infinite; }
@keyframes asShineC { 0% { background-position: 140% 0; } 60%, 100% { background-position: -140% 0; } }
.cvx__back { transform: rotateY(180deg); display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 6px 10px; padding: 8% 7%; background: #fff; color: #12121a; }
.cvx__back::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad); }
.cvx__who b { display: block; font: 800 clamp(13px, 1.8vw, 17px)/1.15 var(--display); }
.cvx__who small { color: var(--a1); font-weight: 700; font-size: clamp(9px, 1.2vw, 11.5px); }
.cvx__lines { grid-column: 1; align-self: end; display: grid; gap: 4px; font-size: clamp(8.5px, 1.15vw, 11px); color: #3b3c4c; }
.cvx__lines span { display: flex; align-items: center; gap: 5px; }
.cvx__lines .ico { color: var(--a1); width: 11px; height: 11px; }
.cvx__qr { grid-column: 2; grid-row: 1 / 3; align-self: center; display: grid; grid-template-columns: repeat(7, 1fr); gap: 1.5px; width: clamp(48px, 7vw, 66px); padding: 4px; border-radius: 6px; border: 1px solid #e6e6ee; }
.cvx__qr i { aspect-ratio: 1; background: #f1f1f5; border-radius: 1px; }
.cvx__qr i.on { background: #12121a; }
.cvx__tag { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #12121a; background: rgba(255,255,255,.96); box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); animation: wdxFloat 6s ease-in-out infinite; }
.cvx__tag .ico { color: var(--a1); }
.cvx__tag--1 { left: 2%; top: 4%; }
.cvx__tag--2 { right: 0; top: 12%; animation-delay: -2s; }
.cvx__tag--3 { right: 8%; bottom: 6%; animation-delay: -4s; color: #fff; background: linear-gradient(90deg, #22c55e, #16a34a); }
.cvx__tag--3 .ico { color: #fff; }
.cvx__ruler { position: absolute; left: 18%; bottom: 13%; width: 66%; height: 14px; border-left: 1.5px solid rgba(255,255,255,.35); border-right: 1.5px solid rgba(255,255,255,.35); }
.cvx__ruler::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed rgba(255,255,255,.35); }
.cvx__ruler::after { content: '90 mm'; position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: rgba(255,255,255,.6); }

/* --- Cărțile din pagină (stiluri + realizate): se întorc la hover / click --- */
.cv__styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cv__works { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 26px; }
.cv__style-info { margin-top: 14px; text-align: center; }
.cv__style-info b { display: block; font: 700 17px/1.2 var(--display); color: var(--ink); }
.cv__style-info span { font-size: 13.5px; color: var(--ink-2); }
.bc { display: block; width: 100%; aspect-ratio: 9 / 5; padding: 0; border: 0; background: none; perspective: 1000px; cursor: pointer; }
.bc__inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.bc[data-flip]:hover .bc__inner, .bc.is-flipped .bc__inner { transform: rotateY(180deg); }
.bc__face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; border-radius: 12px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 18px 40px -18px rgba(18,18,26,.45), 0 0 0 1px rgba(0,0,0,.05); text-align: left; }
.bc__back { transform: rotateY(180deg); }
.bc__face img { width: 100%; height: 100%; object-fit: cover; }
.bc:hover .bc__face { box-shadow: 0 26px 50px -20px rgba(18,18,26,.55), 0 0 0 1px rgba(0,0,0,.05); }
.bc__logo { display: flex; align-items: center; gap: 9px; }
.bc__logo i { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); }
.bc__logo b { font: 800 14px/1 var(--display); letter-spacing: .12em; }
.bc__tag { margin-top: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.bc__front { align-items: center; text-align: center; padding: 10%; }
.bc__back { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 6px 12px; padding: 8% 8%; }
.bc__name { font: 800 15px/1.2 var(--display); }
.bc__name small { display: block; font: 600 11px/1.4 Inter, sans-serif; opacity: .75; }
.bc__lines { grid-column: 1; align-self: end; display: grid; gap: 3px; font-size: 10.5px; opacity: .85; }
.bc__qr { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 46px; height: 46px; border-radius: 6px;
  background: conic-gradient(currentColor 25%, transparent 0 50%, currentColor 0 75%, transparent 0) 0 0 / 11.5px 11.5px; opacity: .85; }
/* stiluri */
.bc--minimal .bc__face { background: #fff; color: #12121a; }
.bc--minimal .bc__front::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--grad); }
.bc--dark .bc__face { background: radial-gradient(circle at 30% 20%, #2b2738, #0f0e16 75%); color: #f3e3b5; }
.bc--dark .bc__logo i { background: linear-gradient(135deg, #f6d36b, #b8860b); }
.bc--dark .bc__face { border: 1px solid rgba(246,211,107,.25); }
.bc--gradient .bc__face { background: linear-gradient(135deg, var(--a1), var(--a2) 60%, #ffb347); color: #fff; }
.bc--gradient .bc__logo i { background: rgba(255,255,255,.9); }
.bc--corporate .bc__face { background: #f4f6fb; color: #0f2a4a; }
.bc--corporate .bc__front { background: #0f2a4a; color: #fff; }
.bc--corporate .bc__logo i { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.bc--corporate .bc__back::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: linear-gradient(90deg, #38bdf8, #2563eb); }
.bc--img .bc__face { background: #fff; }
.cv__cta { text-align: center; max-width: 780px; margin: 0 auto; }
.cv__cta .lg-cta__files { justify-content: center; flex-wrap: wrap; }

@media (max-width: 980px) {
  .cvx { margin: 0 auto; }
  .cv__styles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cv__styles { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .cvx__tag { font-size: 11px; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) { .cvx__inner { animation: none; transform: rotateY(-14deg); } }
