/* ═══════════════════════════════════════════════════════════
   ELEMENTS — Trusted / Certificati page
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --color-bg:        #FAFAF8;
    --color-surface:   #FFFFFF;
    --color-border:    #E8E4DC;
    --color-text:      #1A1814;
    --color-muted:     #6B6560;
    --color-accent:    #8B6914;
    --color-accent-lt: #F5EDD6;
    --font-sans:       'Inter', system-ui, sans-serif;
    --font-display:    'Plus Jakarta Sans', var(--font-sans);
    --transition:      0.18s ease;
}
body { font-family: var(--font-sans); background: var(--color-bg); color: var(--color-text); }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.lb-overlay { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,0.88); align-items: center; justify-content: center; padding: 20px; }
.lb-overlay.active { display: flex; }
.lb-box { position: relative; max-width: 90vw; max-height: 90vh; min-width: min(80vw, 400px); min-height: min(60vh, 300px); border-radius: 10px; overflow: hidden; background: #fdfdfd; box-shadow: 0 24px 64px rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; }
.lb-box img { display: block; max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lb-box iframe { display: block; width: min(80vw, 900px); height: 80vh; border: none; }
.lb-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.55); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; line-height: 1; transition: background .15s; z-index: 1; }
.lb-close:hover { background: rgba(0,0,0,0.8); }

.trusted-hero { padding: 64px 0 48px; text-align: center; border-bottom: 1px solid var(--color-border); }
.trusted-hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--color-accent-lt); border: 1px solid rgba(139,105,20,.2); border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--color-accent); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px; }
.trusted-hero h1 { font-family: var(--font-display); font-size: clamp(28px, 5vw, 42px); font-weight: 800; color: var(--color-text); line-height: 1.2; margin-bottom: 14px; }
.trusted-hero p { font-size: 17px; color: var(--color-muted); max-width: 520px; margin: 0 auto; line-height: 1.6; }

.trusted-section { padding: 56px 0; }
.trusted-section + .trusted-section { border-top: 1px solid var(--color-border); }
.trusted-section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.platform-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--color-muted); }
.platform-badge .platform-name { display: inline-block; padding: 5px 14px; border-radius: 6px; font-size: 13px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.platform-badge.platform-bk .platform-name { background: #003580; }
.platform-badge.platform-bb .platform-name { background: #2E7D32; }
.platform-badge.platform-ta .platform-name { background: #00AA6C; }
.trusted-section-header p { font-size: 14px; color: #9B958E; margin-top: 6px; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.cert-card { border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; background: var(--color-surface); transition: transform .2s, box-shadow .2s; cursor: pointer; text-decoration: none; display: flex; flex-direction: column; }
.cert-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.cert-thumb { position: relative; width: 100%; aspect-ratio: 3/4; background: linear-gradient(135deg, #f5edd6 0%, #ede0c4 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-thumb-pdf { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.cert-thumb.broken .cert-thumb-pdf { display: flex; }
.cert-pdf-icon { width: 52px; height: 52px; background: rgba(139,105,20,.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.cert-pdf-icon svg { width: 28px; height: 28px; color: var(--color-accent); }
.cert-pdf-label { font-size: 11px; font-weight: 600; color: var(--color-accent); text-transform: uppercase; letter-spacing: .06em; }
.cert-info { padding: 14px 16px; }
.cert-year { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--color-text); }
.cert-score { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--color-accent); margin-top: 2px; }
.cert-title { font-size: 12px; color: var(--color-muted); margin-top: 4px; line-height: 1.4; }
.cert-open { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--color-accent); margin-top: 8px; text-transform: uppercase; letter-spacing: .05em; }
.cert-card.landscape .cert-thumb { aspect-ratio: 4/3; }
.cert-card--featured { border: 2px solid #D4A843; box-shadow: 0 0 0 1px rgba(212,168,67,.15); }
.cert-card--featured .cert-year::after { content: ' ★'; color: #D4A843; }

.hof-header { margin-bottom: 32px; }
.hof-header .platform-badge { margin-bottom: 14px; }
.hof-title { font-family: var(--font-display); font-size: clamp(18px, 3vw, 24px); font-weight: 800; color: var(--color-text); margin-bottom: 10px; }
.hof-sub { font-size: 15px; color: var(--color-muted); line-height: 1.7; max-width: 560px; }
.cert-gallery { display: flex; gap: 14px; flex-wrap: wrap; }
.cert-gallery-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; cursor: pointer; }
.cert-gallery-thumb { width: 110px; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; border: 1px solid var(--color-border); background: linear-gradient(135deg, #f5edd6 0%, #ede0c4 100%); }
.cert-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.cert-gallery-item:hover .cert-gallery-thumb { box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.cert-gallery-year { font-size: 12px; font-weight: 600; color: var(--color-muted); }

.trusted-cta { padding: 64px 0; text-align: center; background: var(--color-surface); border-top: 1px solid var(--color-border); }
.trusted-cta h2 { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.trusted-cta p { font-size: 16px; color: var(--color-muted); margin-bottom: 28px; }
.trusted-cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--color-accent); color: #fff; padding: 14px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; transition: background .15s; }
.trusted-cta-btn:hover { background: #7a5c10; }

.trusted-footer { background: #1A1814; padding: 56px 0 32px; }
.trusted-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.trusted-footer .footer-logo { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: .04em; }
.trusted-footer .footer-brand p { font-size: 14px; color: #8B8580; line-height: 1.7; }
.trusted-footer .footer-col h4 { font-size: 12px; font-weight: 600; color: #8B8580; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.trusted-footer .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.trusted-footer .footer-col ul li a { font-size: 14px; color: #C4B898; }
.trusted-footer .footer-col ul li a:hover { color: #fff; }
.trusted-footer .footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid #2A2620; gap: 12px; flex-wrap: wrap; }
.trusted-footer .footer-bottom p { font-size: 12px; color: #5A5248; }
@media(max-width:768px) { .trusted-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; } .trusted-footer .footer-bottom { flex-direction: column; align-items: flex-start; } }
@media(max-width:600px) { .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
