:root {
    --bg: #0a0e17;
    --bg2: #111827;
    --bg3: #1a2332;
    --border: #1e2d3d;
    --text: #e2e8f0;
    --text2: #94a3b8;
    --primary: #22d3ee;
    --primary-dark: #0891b2;
    --accent: #a78bfa;
    --green: #34d399;
    --yellow: #fbbf24;
    --red: #f87171;
    --orange: #fb923c;
    --gradient: linear-gradient(135deg, #22d3ee, #a78bfa);
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }

/* ---- Navbar ---- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    background: rgba(10,14,23,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}
.navbar.scrolled {
    padding: 10px 0;
    border-bottom-color: var(--border);
    background: rgba(10,14,23,0.95);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 1.25rem; }
.logo-icon { font-size: 1.4rem; }
.logo-accent { color: var(--primary); }
.nav-menu { display: flex; list-style: none; gap: 8px; align-items: center; }
.nav-link {
    padding: 8px 16px; border-radius: 8px; color: var(--text2);
    font-size: 0.9rem; font-weight: 500; transition: all 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--bg3); }
.nav-cta {
    background: var(--gradient); color: var(--bg) !important; font-weight: 600;
    padding: 8px 20px; border-radius: 8px;
}
.nav-cta:hover { opacity: 0.9; }
.nav-fb { display: flex; align-items: center; padding: 8px !important; color: var(--text2) !important; }
.nav-fb:hover { color: #1877f2 !important; background: rgba(24,119,242,0.1); }
.nav-fb svg { display: block; }
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; padding: 10px; border-radius: 8px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--text);
    margin: 5px 0; border-radius: 2px; transition: all 0.3s;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 10px;
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    border: 2px solid transparent; transition: all 0.25s;
    text-decoration: none;
}
.btn-primary { background: var(--gradient); color: var(--bg); border-color: transparent; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); color: var(--bg); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--bg); }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }

/* ---- Hero ---- */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; overflow: hidden;
    padding: 120px 0 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(34,211,238,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34,211,238,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-particles { position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-badge {
    display: inline-block; padding: 8px 20px; border-radius: 50px;
    background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.2);
    color: var(--primary); font-size: 0.85rem; font-weight: 600;
    margin-bottom: 24px; letter-spacing: 0.5px;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.text-gradient {
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc { font-size: 1.15rem; color: var(--text2); max-width: 600px; margin: 0 auto 32px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

/* ---- Sections ---- */
.section { padding: 100px 0; }
.section-dark { background: var(--bg2); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-badge {
    display: inline-block; padding: 6px 16px; border-radius: 50px;
    background: rgba(34,211,238,0.08); color: var(--primary);
    font-size: 0.8rem; font-weight: 600; margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.section-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text2); font-size: 1.05rem; }
.section-cta { text-align: center; margin-top: 40px; }

/* ---- Threats grid ---- */
.threats-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px;
}
.threat-card {
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; transition: all 0.3s;
}
.threat-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.threat-icon { font-size: 2.2rem; margin-bottom: 16px; }
.threat-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.threat-card p { color: var(--text2); font-size: 0.9rem; margin-bottom: 16px; }
.threat-level {
    display: inline-block; padding: 4px 12px; border-radius: 6px;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.threat-level.danger { background: rgba(248,113,113,0.15); color: var(--red); }
.threat-level.warning { background: rgba(251,191,36,0.15); color: var(--yellow); }
.threat-level.moderate { background: rgba(251,146,60,0.15); color: var(--orange); }

/* ---- Tips grid ---- */
.tips-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px;
}
.tip-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; position: relative; transition: all 0.3s;
}
.tip-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.tip-num {
    font-size: 3rem; font-weight: 900; line-height: 1;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 16px; opacity: 0.6;
}
.tip-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.tip-card p { color: var(--text2); font-size: 0.9rem; }

/* ---- About grid ---- */
.about-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
}
.about-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; text-align: center; transition: all 0.3s;
}
.about-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.about-icon { font-size: 2.5rem; margin-bottom: 16px; }
.about-card h3 { margin-bottom: 10px; }
.about-card p { color: var(--text2); font-size: 0.9rem; }

/* ---- CTA box ---- */
.cta-box {
    text-align: center; padding: 64px 40px; border-radius: 20px;
    background: linear-gradient(135deg, var(--bg3) 0%, var(--bg2) 100%);
    border: 1px solid var(--border); position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(34,211,238,0.06), transparent 60%);
}
.cta-box h2 { font-size: 1.8rem; margin-bottom: 12px; position: relative; }
.cta-box p { color: var(--text2); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; }
.cta-box .btn { position: relative; }

/* ---- Blog grid ---- */
.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px;
}
.blog-card {
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: all 0.3s; color: var(--text);
}
.blog-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.blog-card-img {
    height: 200px; overflow: hidden; background-color: var(--bg3);
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-img-placeholder {
    display: flex; align-items: center; justify-content: center; font-size: 3rem;
    background: linear-gradient(135deg, var(--bg3), var(--bg));
}
.blog-card-body { padding: 20px; }
.blog-card-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.blog-card-cat {
    padding: 3px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 600;
    background: rgba(34,211,238,0.1); color: var(--primary); text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-card-date { font-size: 0.8rem; color: var(--text2); }
.blog-card h3,
.blog-card .blog-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card p { color: var(--text2); font-size: 0.85rem; margin-bottom: 12px; }
.blog-card-link { color: var(--primary); font-size: 0.85rem; font-weight: 600; }
.blog-empty { text-align: center; padding: 60px 20px; color: var(--text2); }
.blog-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-tag {
    padding: 6px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 500;
    color: var(--text2); border: 1px solid var(--border); transition: all 0.2s;
}
.filter-tag:hover { color: var(--text); border-color: var(--text2); }
.filter-tag.active { background: var(--primary); color: var(--bg); border-color: var(--primary); }

/* ---- Page hero (blog, etc) ---- */
.page-hero {
    padding: 140px 0 60px; text-align: center;
    background: var(--bg2); border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 8px; }
.page-hero p { color: var(--text2); font-size: 1.1rem; }

/* ---- Article page ---- */
.article-page { padding: 120px 0 80px; }
.article-header { margin-bottom: 32px; }
.article-back { display: inline-block; margin-bottom: 20px; color: var(--text2); font-size: 0.9rem; }
.article-back:hover { color: var(--primary); }
.article-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.article-page h1 { font-size: 2rem; font-weight: 800; line-height: 1.3; }
.article-hero-img { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; }
.article-hero-img img { width: 100%; height: auto; display: block; }
.article-body { font-size: 1.05rem; line-height: 1.85; }
.article-body h2 { font-size: 1.4rem; font-weight: 700; margin: 36px 0 16px; color: var(--text); }
.article-body h3 { font-size: 1.15rem; font-weight: 600; margin: 28px 0 12px; }
.article-body p { margin-bottom: 18px; color: var(--text2); }
.article-body ul, .article-body ol { margin: 16px 0; padding-left: 24px; color: var(--text2); }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body blockquote {
    margin: 24px 0; padding: 16px 24px; border-left: 3px solid var(--primary);
    background: var(--bg2); border-radius: 0 8px 8px 0; color: var(--text2); font-style: italic;
}
.article-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.article-share { display: flex; gap: 10px; align-items: center; font-size: 0.9rem; color: var(--text2); }
.share-btn {
    padding: 6px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 600;
    background: var(--bg3); color: var(--text2); border: 1px solid var(--border);
}
.share-btn:hover { color: var(--text); border-color: var(--text2); }

/* ---- Article tags ---- */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-tag {
    padding: 4px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 500;
    background: rgba(167,139,250,0.1); color: var(--accent); letter-spacing: 0.3px;
}

/* ---- Footer ---- */
.footer { padding: 64px 0 32px; background: var(--bg2); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { color: var(--text2); font-size: 0.9rem; line-height: 1.7; }
.footer-links h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text2); font-size: 0.85rem; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { color: var(--text2); font-size: 0.8rem; }

/* ---- Features grid (homepage) ---- */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px;
}
.feature-card {
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; transition: all 0.3s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text2); font-size: 0.9rem; }

/* ---- About text page ---- */
.about-text { line-height: 1.85; }
.about-text h2 { font-size: 1.5rem; font-weight: 700; margin: 40px 0 16px; }
.about-text h2:first-child { margin-top: 0; }
.about-text p { color: var(--text2); margin-bottom: 16px; font-size: 1.02rem; }
.about-text ul { margin: 16px 0 24px; padding-left: 24px; color: var(--text2); }
.about-text li { margin-bottom: 10px; font-size: 1.02rem; }
.about-text strong { color: var(--text); }

/* ---- Contact page ---- */
.contact-box { max-width: 600px; margin: 0 auto; }
.contact-intro { margin-bottom: 40px; }
.contact-intro p { color: var(--text2); font-size: 1.05rem; margin-bottom: 12px; }
.contact-card {
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; text-align: center; margin-bottom: 40px;
}
.contact-icon { font-size: 2.5rem; margin-bottom: 12px; }
.contact-card h3 { margin-bottom: 12px; }
.contact-email {
    display: inline-block; font-size: 1.3rem; font-weight: 700;
    color: var(--primary); margin-bottom: 8px;
}
.contact-card p { color: var(--text2); font-size: 0.9rem; }
.contact-topics h3 { font-size: 1.1rem; margin-bottom: 16px; }
.contact-topics ul { padding-left: 20px; color: var(--text2); }
.contact-topics li { margin-bottom: 8px; font-size: 0.95rem; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; background: var(--bg2);
        border-bottom: 1px solid var(--border); padding: 16px;
    }
    .nav-menu.open { display: flex; }
    .hero h1 { font-size: 2.2rem; }
    .threats-grid, .tips-grid, .about-grid, .blog-grid, .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .section { padding: 60px 0; }
    .cta-box { padding: 40px 24px; }
    .article-page h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; opacity: 0; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(34,211,238,0.1); }
    50% { box-shadow: 0 0 40px rgba(34,211,238,0.2); }
}

/* ---- Glossary link in articles ---- */
.glossary-link {
    color: var(--primary); text-decoration: none;
    border-bottom: 1px dotted rgba(34,211,238,0.4);
    transition: all 0.2s; cursor: help;
}
.glossary-link:hover {
    color: var(--accent); border-bottom-color: var(--accent);
}

/* ---- Glossary tooltip ---- */
.glossary-tooltip {
    position: absolute; z-index: 9999;
    max-width: 360px; width: max-content; min-width: 260px;
    padding: 16px 20px;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(34,211,238,0.1);
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}
.glossary-tooltip.visible {
    opacity: 1; transform: translateY(0);
    pointer-events: auto;
}
.glossary-tooltip-term {
    font-size: 0.95rem; font-weight: 700; color: var(--primary);
    margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between;
}
.glossary-tooltip-close {
    background: none; border: none; color: var(--text2); cursor: pointer;
    font-size: 1.1rem; padding: 0 0 0 8px; line-height: 1;
}
.glossary-tooltip-close:hover { color: var(--text); }
.glossary-tooltip-def {
    font-size: 0.88rem; color: var(--text2); line-height: 1.65; margin-bottom: 10px;
}
.glossary-tooltip-more {
    font-size: 0.78rem; color: var(--primary); font-weight: 600;
    display: inline-block;
}
.glossary-tooltip-more:hover { color: var(--accent); }
.glossary-tooltip-arrow {
    position: absolute; width: 12px; height: 12px;
    background: var(--bg2); border: 1px solid var(--border);
    transform: rotate(45deg);
}
.glossary-tooltip-arrow.top {
    bottom: -7px; border-top: none; border-left: none;
}
.glossary-tooltip-arrow.bottom {
    top: -7px; border-bottom: none; border-right: none;
}

@media (max-width: 768px) {
    .glossary-tooltip { max-width: calc(100vw - 32px); min-width: 240px; }
}

/* ---- Glossary ---- */
.glossary-search-box {
    position: relative; margin-bottom: 24px;
}
.glossary-search {
    width: 100%; padding: 14px 20px 14px 48px;
    background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); font-size: 1rem; font-family: inherit;
    transition: border-color 0.2s;
}
.glossary-search:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34,211,238,0.1);
}
.glossary-search::placeholder { color: var(--text2); }
.glossary-search-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    font-size: 1.1rem; pointer-events: none;
}
.glossary-alphabet {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px;
    padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.glossary-letter {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-weight: 700; font-size: 0.85rem;
    color: var(--text2); background: var(--bg2); border: 1px solid var(--border);
    transition: all 0.2s;
}
.glossary-letter:hover {
    color: var(--bg); background: var(--primary); border-color: var(--primary);
}
.glossary-count {
    font-size: 0.85rem; color: var(--text2); margin-bottom: 32px;
}
.glossary-group { margin-bottom: 40px; }
.glossary-group-letter {
    font-size: 1.6rem; font-weight: 900; color: var(--primary);
    padding-bottom: 8px; margin-bottom: 16px;
    border-bottom: 2px solid rgba(34,211,238,0.2);
}
.glossary-item {
    padding: 20px 24px; margin-bottom: 12px;
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
    transition: all 0.3s;
}
.glossary-item:hover {
    border-color: rgba(34,211,238,0.3); transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.glossary-item:target,
.glossary-highlight {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34,211,238,0.15), 0 4px 16px rgba(0,0,0,0.2);
}
.glossary-term {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text);
}
.glossary-def {
    color: var(--text2); font-size: 0.95rem; line-height: 1.7; margin: 0;
}
.glossary-def-extended {
    color: var(--text2); font-size: 0.95rem; line-height: 1.8;
}
.glossary-def-extended strong { color: var(--text); }
.glossary-def-extended ul {
    margin: 10px 0; padding-left: 20px;
}
.glossary-def-extended li {
    margin-bottom: 6px;
}
.glossary-def-extended a { color: var(--primary); }
.glossary-def-extended a:hover { color: var(--accent); }
.glossary-empty {
    text-align: center; padding: 60px 20px;
    color: var(--text2); font-size: 1.05rem;
}
.glossary-cta {
    text-align: center; margin-top: 48px; padding: 32px;
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
}
.glossary-cta p { color: var(--text2); font-size: 0.95rem; margin: 0; }
.glossary-cta a { color: var(--primary); font-weight: 600; }

@media (max-width: 768px) {
    .glossary-letter { width: 44px; height: 44px; font-size: 0.85rem; }
    .glossary-item { padding: 16px 18px; }
}

/* ---- Odnosnik pomijajacy nawigacje ---- */
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 1100;
    padding: 12px 20px; border-radius: 0 0 8px 8px;
    background: var(--primary); color: var(--bg); font-weight: 700;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; color: var(--bg); }

/* ---- Widoczny fokus klawiatury ---- */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}
.glossary-search:focus-visible { outline-offset: 0; }

/* ---- FAQ pod artykulem ---- */
.article-faq {
    margin-top: 40px; padding: 28px 32px;
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
}
.article-faq h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.article-faq details {
    border-bottom: 1px solid var(--border); padding: 4px 0 12px; margin-bottom: 12px;
}
.article-faq details:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.article-faq summary {
    cursor: pointer; font-weight: 600; color: var(--text);
    padding: 10px 0; list-style-position: outside;
}
.article-faq summary:hover { color: var(--primary); }
.article-faq details p { margin: 8px 0 0; color: var(--text2); line-height: 1.7; }

/* ---- Artykuly powiazane ---- */
.article-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.article-related > h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.article-related-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.article-related-card {
    display: block; overflow: hidden; color: var(--text);
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.article-related-card:hover {
    color: var(--text); border-color: var(--primary);
    transform: translateY(-2px); box-shadow: var(--shadow);
}
.article-related-img { height: 120px; overflow: hidden; background: var(--bg3); }
.article-related-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-related-img-placeholder {
    display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
    background: linear-gradient(135deg, var(--bg3), var(--bg));
}
.article-related-body { padding: 14px 16px; }
.article-related-cat {
    display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--primary);
}
.article-related-card h3 {
    font-size: 0.92rem; font-weight: 700; margin-top: 6px; line-height: 1.35; color: var(--text);
}

/* ---- Cele dotykowe ---- */
.share-btn, .filter-tag {
    display: inline-flex; align-items: center; min-height: 44px;
}

/* ---- Ograniczony ruch ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-particles { display: none; }
    .animate-in { animation: none; opacity: 1; }
    .threat-card:hover, .tip-card:hover, .about-card:hover,
    .blog-card:hover, .glossary-item:hover, .btn-primary:hover,
    .article-related-card:hover { transform: none; }
    .glossary-tooltip { transition: opacity 0.01ms; transform: none; }
    .glossary-tooltip.visible { transform: none; }
}
