/* Stránka Dárkové poukazy na lanvura.com (/cs/darkove-poukazy/ …) — nad site.css a landing.css, jen na této stránce.
   Barvy rodiny learn z brand kitu (--lv-accent…), sváteční doplňky (sníh, zlatá) jen v období Vánoc (data-gc-season="xmas").
   Pohyb respektuje prefers-reduced-motion (site.css vypne animace, tady navíc sníh a vějíř). */

.gc {
  --gc-gold: #b7791f;
  --gc-gold-soft: #fff4d6;
  --gc-red: #c2410c;
  --gc-card-shadow: 0 22px 44px -22px rgba(30, 20, 80, .45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gc { --gc-gold: #f6c66a; --gc-gold-soft: #3a2f1a; --gc-red: #fb923c; --gc-card-shadow: 0 22px 44px -22px rgba(0, 0, 0, .8); }
}
:root[data-theme="dark"] .gc { --gc-gold: #f6c66a; --gc-gold-soft: #3a2f1a; --gc-red: #fb923c; --gc-card-shadow: 0 22px 44px -22px rgba(0, 0, 0, .8); }
.gc picture, .gc picture img { display: block; max-width: 100%; height: auto; }

/* ---------- úvod: vějíř certifikátů + sníh ---------- */
.gc-hero { overflow: hidden; }
.gc-hero-visual { position: relative; aspect-ratio: 1 / .86; width: 100%; max-width: 520px; justify-self: end; }
.gc-hc { position: absolute; width: 80%; border-radius: 14px; overflow: hidden; box-shadow: var(--gc-card-shadow);
  transition: transform var(--lv-dur-slow, .5s) cubic-bezier(.2, .8, .2, 1); }
.gc-hc img { border-radius: 14px; }
.gc-hc-2 { left: 18%; top: 0; transform: rotate(7deg); }
.gc-hc-1 { left: 0; top: 20%; transform: rotate(-5deg); }
.gc-hc-0 { left: 14%; top: 40%; transform: rotate(2deg); z-index: 2; }
.gc-hero-visual:hover .gc-hc-2 { transform: rotate(10deg) translate(10px, -8px); }
.gc-hero-visual:hover .gc-hc-1 { transform: rotate(-8deg) translate(-10px, 0); }
.gc-snow { position: absolute; inset: 0; pointer-events: none; z-index: -1; display: none; }
.gc[data-gc-season="xmas"] .gc-snow { display: block; }
.gc-snow i { position: absolute; top: -12px; width: 8px; height: 8px; border-radius: 50%; background: var(--lv-accent-soft, #e9e4ff);
  opacity: .9; animation: gc-fall 14s linear infinite; }
.gc-snow i:nth-child(1) { left: 6%; animation-delay: -1s; } .gc-snow i:nth-child(2) { left: 16%; animation-delay: -7s; width: 5px; height: 5px; }
.gc-snow i:nth-child(3) { left: 27%; animation-delay: -3s; } .gc-snow i:nth-child(4) { left: 38%; animation-delay: -11s; width: 6px; height: 6px; }
.gc-snow i:nth-child(5) { left: 49%; animation-delay: -5s; } .gc-snow i:nth-child(6) { left: 61%; animation-delay: -9s; width: 5px; height: 5px; }
.gc-snow i:nth-child(7) { left: 72%; animation-delay: -2s; } .gc-snow i:nth-child(8) { left: 81%; animation-delay: -12s; width: 6px; height: 6px; }
.gc-snow i:nth-child(9) { left: 90%; animation-delay: -6s; } .gc-snow i:nth-child(10) { left: 96%; animation-delay: -10s; width: 5px; height: 5px; }
@keyframes gc-fall { to { transform: translate3d(-30px, 900px, 0); } }

/* ---------- galerie ---------- */
.gc-gallery { text-align: center; }
.gc-tabs { display: inline-flex; margin: 0 auto 26px; }
.gc-panel + .gc-panel { margin-top: 32px; }
.gc-gallery.is-live .gc-panel + .gc-panel { margin-top: 0; }
.gc-gallery.is-live .gc-panel[hidden] { display: none; }
.gc-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); text-align: left; }
.gc-card figure { margin: 0; }
.gc-card picture { border-radius: 14px; overflow: hidden; box-shadow: var(--gc-card-shadow); transition: transform var(--lv-dur-base, .25s) ease; }
.gc-card:hover picture { transform: translateY(-4px) rotate(-.6deg); }
.gc-card figcaption { margin-top: 14px; font-size: 15.5px; color: var(--text-2); }
.gc-card figcaption b { color: var(--text); font-size: 1.05rem; }
.gc-design { margin-top: 6px; display: inline-flex; min-height: 44px; align-items: center; }
.gc-formats { max-width: 720px; margin: 28px auto 0; text-align: center; color: var(--text-2); font-size: 15.5px; }

/* ---------- nabídka ---------- */
.gc-offer-sec { background: linear-gradient(180deg, transparent, var(--bg-2) 16%, var(--bg-2) 84%, transparent); }
.gc-offer { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.gc-tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 22px; border-radius: var(--radius-lg, 22px);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.gc-tile.is-featured { border: 2px solid var(--lv-accent); box-shadow: 0 18px 40px -24px var(--lv-accent); }
.gc-tile h3 { font-size: 1.16rem; letter-spacing: -.02em; margin-top: 4px; }
.gc-tile p { color: var(--text-2); font-size: 15px; }
.gc-buy { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.gc-price b { font-size: 1.45rem; letter-spacing: -.03em; color: var(--text); white-space: nowrap; }
.gc-price small { display: block; font-size: 12.5px; color: var(--text-3); }
.gc-badge, .gc-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }
.gc-badge { background: var(--lv-accent); color: var(--lv-on-accent); }
.gc-tag { background: var(--lv-accent-soft); color: var(--lv-accent-text); }
.gc[data-gc-season="xmas"] .gc-badge { background: var(--gc-red); color: #fff; }
.gc-emblem { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; border-radius: 12px; background: var(--gc-gold-soft); }
.gc-emblem::after { content: ""; position: absolute; inset: 9px; border-radius: 4px; background: var(--gc-gold);
  -webkit-mask: var(--gc-mask) center / contain no-repeat; mask: var(--gc-mask) center / contain no-repeat; }
.gc-em-energy { --gc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.gc-em-pass { --gc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 0 0-4z'/%3E%3C/svg%3E"); }
.gc-em-family { --gc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='7' r='3'/%3E%3Ccircle cx='16' cy='8' r='2.5'/%3E%3Cpath d='M2 20a6 6 0 0 1 12 0zm11 0a5 5 0 0 1 9 0z'/%3E%3C/svg%3E"); }
.gc-em-homework { --gc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h3l2-3h6l2 3h3a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm8 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8z'/%3E%3C/svg%3E"); }
.gc-em-topup { --gc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3h4v7h7v4h-7v7h-4v-7H3v-4h7z'/%3E%3C/svg%3E"); }
.gc-tile .gc-badge, .gc-tile .gc-tag { margin-right: 52px; }

/* ---------- rozbalení ---------- */
.gc-unwrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.gc-unwrap .section-lead { margin-bottom: 22px; }
.gc-unwrap-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gc-unwrap-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); }
.gc-unwrap-steps h3 { font-size: 1.05rem; margin-bottom: 2px; }
.gc-unwrap-steps p { color: var(--text-2); font-size: 15px; }
.gc-box { position: relative; width: min(280px, 80%); aspect-ratio: 1; margin-inline: auto; }
.gc-box-body { position: absolute; left: 8%; right: 8%; bottom: 0; height: 52%; border-radius: 10px 10px 18px 18px;
  background: linear-gradient(135deg, #6d4cf5, #3451c9); box-shadow: var(--gc-card-shadow); }
.gc-box-lid { position: absolute; left: 2%; right: 2%; top: 38%; height: 16%; border-radius: 10px; background: linear-gradient(135deg, #7c5cff, #4b2fd6);
  transform-origin: 10% 100%; animation: gc-lid 4.5s ease-in-out infinite; z-index: 2; }
.gc-box-ribbon { position: absolute; left: 46%; width: 8%; top: 48%; bottom: 0; background: var(--gc-gold); z-index: 1; }
.gc-box-panda { position: absolute; left: 22%; right: 22%; top: 18%; z-index: 1; animation: gc-pop 4.5s ease-in-out infinite; }
.gc-box-panda svg { width: 100%; height: auto; }
@keyframes gc-lid { 0%, 30% { transform: none; } 45%, 80% { transform: translate(-8%, -60%) rotate(-24deg); } 100% { transform: none; } }
@keyframes gc-pop { 0%, 35% { transform: translateY(40%) scale(.85); opacity: 0; } 50%, 80% { transform: translateY(-6%) scale(1); opacity: 1; } 100% { transform: translateY(40%) scale(.85); opacity: 0; } }

/* ---------- pro koho / čím jiné ---------- */
.gc-who li, .gc-why li { background: var(--surface); }
.gc-why { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gc[data-gc-season="xmas"] .gc-final-card { background: linear-gradient(135deg, #4b2fd6 0%, #3451c9 55%, #1e66a8 100%); }

/* ---------- responzivita ---------- */
@media (max-width: 1100px) { .gc-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .gc-hero-visual { justify-self: center; max-width: 420px; margin-top: 8px; }
  .gc-unwrap { grid-template-columns: minmax(0, 1fr); }
  .gc-box { width: min(220px, 60%); }
}
@media (max-width: 760px) {
  .gc-cards { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin-inline: auto; }
  .gc-tabs { display: flex; width: max-content; max-width: 100%; }
}
@media (max-width: 640px) {
  .gc-why { grid-template-columns: minmax(0, 1fr); }
  .gc-tabs button { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gc-snow { display: none !important; }
  .gc-box-lid, .gc-box-panda { animation: none !important; }
  .gc-box-panda { transform: translateY(-6%); opacity: 1; }
  .gc-box-lid { transform: translate(-8%, -60%) rotate(-24deg); }
}
@media print { .gc-snow, .gc-box, .gc-tabs { display: none !important; } .gc-gallery .gc-panel[hidden] { display: block !important; } }
