/* ============================================
   NoirPL — Kryminał i thriller po polsku
   Dark neon / wet asphalt / night city
   ============================================ */

:root {
    --bg-deep: #07070d;
    --bg-surface: #0e0e18;
    --bg-card: #111119;
    --bg-card-hover: #181828;
    --bg-input: #13131f;

    --neon-blue: #2d9cdb;
    --neon-blue-dim: rgba(45, 156, 219, 0.15);
    --neon-purple: #8b5cf6;
    --neon-purple-dim: rgba(139, 92, 246, 0.12);
    --amber: #e0952a;
    --amber-hover: #f0a83a;
    --amber-dim: rgba(224, 149, 42, 0.15);

    --text-primary: #d4d4d8;
    --text-secondary: #71717a;
    --text-heading: #f4f4f5;
    --text-link: #5fb8e6;
    --text-link-hover: #8dd0f0;

    --border-subtle: #1e1e2e;
    --border-accent: rgba(45, 156, 219, 0.25);
    --border-purple: rgba(139, 92, 246, 0.25);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-card: 0 2px 12px rgba(0,0,0,0.5);
    --shadow-glow-blue: 0 0 20px rgba(45,156,219,0.08);
    --shadow-glow-purple: 0 0 20px rgba(139,92,246,0.08);

    --grain-opacity: 0.025;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    --max-width: 1140px;
    --header-height: 64px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ---- Grain overlay ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ---- Skip link ---- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--amber);
    color: var(--bg-deep);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 10001;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 8px;
    outline: 2px solid var(--neon-blue);
    outline-offset: 2px;
}

/* ---- Focus ---- */
:focus-visible {
    outline: 2px solid var(--neon-blue);
    outline-offset: 2px;
}

/* ---- Links ---- */
a {
    color: var(--text-link);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--text-link-hover); text-decoration: underline; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.3;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: 0.75rem; margin-top: 2rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: 0.5rem; margin-top: 1.5rem; }
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }
blockquote {
    border-left: 3px solid var(--neon-purple);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--neon-purple-dim);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ---- Container ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 7, 13, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    height: var(--header-height);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-heading);
    font-weight: 700;
    font-size: 1.2rem;
}
.logo-accent { color: var(--neon-blue); }
.logo-dot { color: var(--neon-purple); }

/* ---- Navigation ---- */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.main-nav a:hover {
    color: var(--text-heading);
    background: var(--neon-blue-dim);
    text-decoration: none;
}
.main-nav a.nav-active {
    color: var(--neon-blue);
    background: var(--neon-blue-dim);
}

/* ---- Hamburger ---- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-heading);
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 2px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0;
        background: rgba(7, 7, 13, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px 20px;
        gap: 2px;
        border-bottom: 1px solid var(--border-subtle);
        z-index: 999;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 10px 16px; font-size: 1rem; width: 100%; }
}

/* ---- Hero ---- */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.hero .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0.5rem auto 0;
}

/* ---- Page header ---- */
.page-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
}
.page-header p {
    color: var(--text-secondary);
    max-width: 700px;
}

/* ---- Sections ---- */
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--border-subtle); }

/* ---- Cards (film frame style) ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 2rem 0;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    opacity: 0;
    transition: opacity 0.3s;
}
.card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-2px);
}
.card:hover::before { opacity: 1; }
.card h3 { margin-top: 0; }
.card h3 a { color: var(--text-heading); }
.card h3 a:hover { color: var(--neon-blue); text-decoration: none; }
.card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}
.card-link {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--neon-blue);
}
.card-link:hover { color: var(--text-link-hover); text-decoration: none; }

/* ---- Film frame decorations ---- */
.frame-border {
    position: relative;
    padding-left: 1.5rem;
}
.frame-border::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple), transparent);
    border-radius: 2px;
}

/* ---- Sprocket holes (film strip decoration) ---- */
.film-strip {
    position: relative;
    padding: 1rem 0 1rem 2.5rem;
}
.film-strip::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 20px;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 8px,
        var(--border-subtle) 8px,
        var(--border-subtle) 12px,
        transparent 12px,
        transparent 20px
    );
    border-radius: 2px;
}

/* ---- Tags / Badges ---- */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-accent);
    color: var(--neon-blue);
    background: var(--neon-blue-dim);
}
.tag--purple {
    border-color: var(--border-purple);
    color: var(--neon-purple);
    background: var(--neon-purple-dim);
}
.tag--amber {
    border-color: rgba(224,149,42,0.3);
    color: var(--amber);
    background: var(--amber-dim);
}

/* ---- Read time ---- */
.read-time {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ---- Term highlight (tooltip) ---- */
.term-highlight {
    position: relative;
    border-bottom: 1px dashed var(--neon-purple);
    color: var(--text-heading);
    cursor: help;
}
.term-highlight .term-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-purple);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.82rem;
    color: var(--text-primary);
    white-space: normal;
    width: max-content;
    max-width: 280px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    pointer-events: none;
    font-style: normal;
}
.term-highlight .term-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border-purple);
}
.term-highlight:hover .term-tooltip,
.term-highlight:focus .term-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ---- Filters ---- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}
.filters label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 8px;
    align-self: center;
}
.filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.filter-btn:hover {
    border-color: var(--border-accent);
    color: var(--text-heading);
}
.filter-btn.active {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    background: var(--neon-blue-dim);
}

/* ---- Related links ---- */
.related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}
.related h3 {
    margin-top: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.related-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
}
.related-list li { margin: 0; }
.related-list a {
    display: block;
    padding: 10px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, background 0.2s;
    font-size: 0.9rem;
}
.related-list a:hover {
    border-color: var(--border-accent);
    background: var(--neon-blue-dim);
    text-decoration: none;
}

/* ---- Content blocks ---- */
.content-block {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
}

/* ---- Info box ---- */
.info-box {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: var(--neon-blue-dim);
    border: 1px solid var(--border-accent);
    margin: 1.5rem 0;
}
.info-box--purple {
    background: var(--neon-purple-dim);
    border-color: var(--border-purple);
}

/* ---- Accordion ---- */
.accordion { margin: 1.5rem 0; }
.accordion-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
}
.accordion-btn {
    width: 100%;
    text-align: left;
    background: var(--bg-card);
    border: none;
    padding: 1rem 1.25rem;
    color: var(--text-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: background 0.2s;
}
.accordion-btn:hover { background: var(--bg-card-hover); }
.accordion-btn::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--neon-blue);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
}
.accordion-btn[aria-expanded="true"]::after {
    content: '−';
}
.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.accordion-panel-inner { padding: 0 1.25rem 1.25rem; }

/* ---- Review article ---- */
.review-article { max-width: 800px; margin-left: auto; margin-right: auto; }
.review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.review-meta dt {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.review-meta dd {
    color: var(--text-heading);
    font-size: 0.95rem;
    margin: 0;
}
.review-meta .meta-item { display: flex; flex-direction: column; gap: 2px; }
.review-section { margin: 2rem 0; }

/* ---- For whom box ---- */
.for-whom {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
}
.for-whom h3 { color: var(--neon-blue); margin-top: 0; }

/* ---- Light streaks (decorative lines) ---- */
.light-streak {
    position: relative;
    padding-bottom: 1rem;
}
.light-streak::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-purple), transparent);
}
hr.light-streak {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-purple), transparent);
    margin: 3rem 0;
    padding: 0;
}
hr.light-streak::after { display: none; }

/* ---- Footer ---- */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-col a:hover { color: var(--text-link); }
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ---- Cookie banner ---- */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 1.25rem 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cookie-text {
    flex: 1;
    min-width: 250px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.cookie-text a { color: var(--text-link); }
.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---- Cookie settings panel ---- */
.cookie-settings {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cookie-settings.visible { display: flex; }
.cookie-settings-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}
.cookie-settings-panel h3 { margin-top: 0; }
.cookie-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}
.cookie-toggle:last-of-type { border-bottom: none; }
.cookie-toggle-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.cookie-toggle-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
}
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-subtle);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.3s;
}
.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: transform 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--neon-blue); }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(20px); }
.toggle-switch input:disabled + .toggle-slider { opacity: 0.5; cursor: not-allowed; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-heading);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}
.btn:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    color: var(--text-heading);
    text-decoration: none;
}
.btn-primary {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--bg-deep);
}
.btn-primary:hover {
    background: var(--amber-hover);
    border-color: var(--amber-hover);
    color: var(--bg-deep);
}
.btn-accept {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
    color: var(--bg-deep);
}
.btn-accept:hover { opacity: 0.9; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }

/* ---- Forms ---- */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}
.form-group .optional {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.82rem;
}
.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-input:focus,
.form-textarea:focus {
    border-color: var(--neon-blue);
    outline: none;
    box-shadow: 0 0 0 3px var(--neon-blue-dim);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.form-check input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--neon-blue);
}
.form-check label {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
}
.form-message {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-size: 0.9rem;
}
.form-message--success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}
.form-message--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}
.hp-field { position: absolute; left: -9999px; }

/* ---- Dictionary ---- */
.dict-term {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.dict-term h3 {
    margin-top: 0;
    color: var(--neon-blue);
}
.dict-term .origin {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* ---- Legal pages ---- */
.legal-content h2 {
    padding-top: 1.5rem;
}
.legal-content h3 {
    color: var(--neon-blue);
}
.legal-content ul { margin-bottom: 1.5rem; }

/* ---- Contact info ---- */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}
.contact-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
.contact-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    opacity: 0;
    transition: opacity 0.3s;
}
.contact-item:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow-blue);
}
.contact-item:hover::before { opacity: 1; }
.contact-icon {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--neon-blue);
}
.contact-item h3 {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
    margin-bottom: 6px;
}
.contact-item h4 {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.contact-item p { margin: 0; color: var(--text-heading); font-size: 0.95rem; }

/* ---- Contact form card ---- */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
}
.contact-form-card h2 { margin-top: 0; }
@media (max-width: 600px) {
    .contact-form-card { padding: 1.5rem; }
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--text-link); }
.breadcrumb span { margin: 0 6px; }

/* ---- Two-column layout ---- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}
@media (max-width: 700px) {
    .two-col { grid-template-columns: 1fr; }
}

/* ---- Article images ---- */
.article-img {
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}
.article-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}
.article-img figcaption {
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
}

/* Image floated with text */
.img-with-text {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin: 1.5rem 0;
}
.img-with-text .article-img {
    flex: 0 0 280px;
    max-width: 280px;
    margin: 0;
}
.img-with-text .text-beside { flex: 1; min-width: 0; }

.img-with-text--reverse { flex-direction: row-reverse; }

@media (max-width: 650px) {
    .img-with-text {
        flex-direction: column;
    }
    .img-with-text--reverse {
        flex-direction: column;
    }
    .img-with-text .article-img {
        flex: none;
        max-width: 100%;
    }
}

/* Hero image */
.hero-img {
    max-width: 480px;
    margin: 2rem auto 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}
.hero-img img {
    display: block;
    width: 100%;
    height: auto;
}

/* Card image */
.card-img {
    margin: -1.5rem -1.5rem 1rem;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.card-img img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ---- Print ---- */
@media print {
    body::before,
    .site-header,
    .cookie-banner,
    .cookie-settings,
    .skip-link,
    .filters { display: none !important; }
    body {
        background: #fff;
        color: #000;
    }
    a { color: #000; text-decoration: underline; }
    .card { border: 1px solid #ccc; box-shadow: none; }
}
