/* ============= Site-wide effects (subtle, corporate) ============= */

.hero-visual { isolation: isolate; }

/* 2. Buttons: subtle shimmer on hover */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.28) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.btn--primary:hover::after { transform: translateX(100%); }

/* 3. Service card: подсветка когато hover, и leaving border */
.svc-card { isolation: isolate; }
.svc-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(220px 180px at var(--mx,50%) var(--my,0%),
    color-mix(in srgb, var(--accent, var(--c-orange)) 8%, transparent),
    transparent 70%);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.svc-card:hover::after { opacity: 1; }

/* 4. Hero meta numbers: count-up shimmer baseline */
.hero-meta-item .v { background: linear-gradient(180deg, var(--c-navy) 60%, var(--c-orange) 140%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 5. Section header: subtle anim of underline accent */
.section-head h2 { position: relative; display: inline-block; padding-bottom: 10px; }
.section-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 3px; background: var(--c-orange); border-radius: 2px;
  transition: width .8s cubic-bezier(.2,.8,.2,1) .2s;
}
.section-head.is-in h2::after, [data-r].is-in.section-head h2::after { width: 56px; transform: translateX(-50%); }

/* 6. Process steps connector: subtle line draw */
.process-step .num { transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.process-step:hover .num {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--c-orange);
  box-shadow: 0 10px 24px rgba(232,93,60,.18);
}

/* 7. Why-visual stats: float */
.why-visual .stat { animation: float 8s ease-in-out infinite; }
.why-visual .stat-2 { animation-delay: -2s; animation-duration: 9s; }
.why-visual .stat-3 { animation-delay: -4s; animation-duration: 10s; }
.why-visual .stat-4 { animation-delay: -1s; animation-duration: 11s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

/* 8. Hero LIVE dot pulse */
.hero-tile--main .badge::before {
  animation: livepulse 1.6s ease-out infinite;
}
@keyframes livepulse {
  0%   { box-shadow: 0 0 0 0 rgba(232,93,60,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(232,93,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,93,60,0); }
}

/* 9. Brand strip: marquee-static with hover lift */
.brands-list .brand-name { transition: color var(--t-fast), transform var(--t-fast); }
.brands-list .brand-name:hover { transform: translateY(-2px); color: var(--c-navy); }

/* 10. Cert card: shine on hover */
.cert-card { isolation: isolate; }
.cert-card::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 50%; height: 100%;
  background: linear-gradient(115deg, transparent 30%, rgba(232,93,60,.08) 50%, transparent 70%);
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.cert-card:hover::after { transform: translateX(360%); }

/* 11. Smooth in for everything */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Certificate lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,22,40,.92);
  display: none; align-items: center; justify-content: center; padding: 40px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lightbox.is-open { display: flex; }
.lightbox-figure { max-width: 90vw; max-height: 90vh; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox-image { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #fff; }
.lightbox-caption { color: rgba(255,255,255,.85); font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-align: center; }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 28px; line-height: 1; }
.lightbox-close:hover { background: var(--c-orange); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 32px; line-height: 1; display: grid; place-items: center; }
.lightbox-nav:hover { background: var(--c-orange); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

/* Cert page: clickable button cards */
.cert-section .cert-card { cursor: pointer; border: 1px solid var(--c-line); text-align: left; font: inherit; aspect-ratio: auto; min-height: 280px; }
.cert-section .cert-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Consent banner */
.consent-bar {
  position: fixed; bottom: 18px; left: 18px; right: 18px; z-index: 150;
  max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px;
}
.consent-card { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.consent-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(232,93,60,.1); color: var(--c-orange); display: grid; place-items: center; flex-shrink: 0; }
.consent-body { flex: 1; min-width: 200px; }
.consent-title { font-size: 1rem; margin: 0 0 4px; }
.consent-text { color: var(--c-text-2); font-size: 13.5px; margin: 0 0 6px; line-height: 1.5; }
.consent-link { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--c-orange-dark); }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; align-self: center; }
.consent-actions .btn { padding: 10px 18px; font-size: 13.5px; }

/* GDPR page sections */
.gdpr-section { max-width: 760px; margin: 0 auto 32px; padding: 28px 32px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.gdpr-section h2 { font-size: 1.3rem; margin: 0 0 14px; }
.gdpr-section ul { padding: 0; margin: 0; }
.gdpr-section ul li { position: relative; padding: 6px 0 6px 22px; }
.gdpr-section ul li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 2px; background: var(--c-orange); }
.gdpr-actions { margin-top: 18px; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; padding: 12px 18px; background: var(--c-navy); color: #fff; font-weight: 600; border-radius: var(--radius-sm); }
.skip-link:focus { left: 16px; top: 16px; outline: 2px solid var(--c-orange); color: #fff; }
