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

:root {
    --bg: #0a0a0a;
    --bg-surface: #141414;
    --text: #e8e8e8;
    --text-secondary: #888;
    --accent: #d4a017;
    --container: 760px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    border-top: 3px solid var(--accent);
}

html[lang="en"] .pl { display: none; }
html[lang="pl"] .en { display: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ── */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.05em;
}

#lang-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 6px 16px;
    font-size: 0.8rem;
    font-family: var(--font);
    letter-spacing: 0.12em;
    cursor: pointer;
    border-radius: 4px;
    transition: border-color 0.2s, color 0.2s;
}

#lang-toggle:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* ── Hero ── */

.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
    animation: fadeUp 0.6s ease-out;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 4px;
    animation: fadeUp 0.6s ease-out 0.1s both;
}

.subtitle-detail {
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 20px;
    animation: fadeUp 0.6s ease-out 0.2s both;
}

.location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    animation: fadeUp 0.6s ease-out 0.3s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Sections ── */

section {
    padding: 80px 0;
}

section + section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 32px;
    font-weight: 600;
}

/* ── About ── */

.about p {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 640px;
}

/* ── Skills ── */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.skill-group h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.skill-group ul {
    list-style: none;
}

.skill-group li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
}

.skill-group li:last-child {
    border-bottom: none;
}

/* ── Experience ── */

.timeline-entry {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.timeline-entry:last-child {
    border-bottom: none;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    padding-top: 2px;
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.company-parent {
    color: var(--text-secondary);
    font-weight: 400;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Contact ── */

.contact {
    text-align: center;
    padding: 100px 0;
}

.contact-availability {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.contact-email {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.contact-email:hover {
    border-bottom-color: var(--accent);
}

/* ── Footer ── */

footer {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ── Focus ── */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* ── Responsive ── */

@media (max-width: 640px) {
    .hero {
        padding: 80px 0 60px;
    }

    section {
        padding: 60px 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .timeline-entry {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .contact {
        padding: 80px 0;
    }

    .contact-email {
        font-size: 1.15rem;
    }
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ── Print ── */

@media print {
    body {
        background: white;
        color: #111;
        border-top: none;
        font-size: 12pt;
    }

    header {
        position: static;
        background: white;
        backdrop-filter: none;
        border-bottom: 1px solid #ddd;
    }

    .logo { color: #111; }
    #lang-toggle { display: none; }
    h2 { color: #333; }
    .subtitle { color: #555; }
    .contact-email { color: #111; font-size: 1.1rem; }
    .company-parent { color: #555; }
    .timeline-content p { color: #444; }
    .about p { color: #222; }
    .skill-group li { color: #222; }
    .location { color: #555; }
    footer p { color: #888; }
    .pl { display: none !important; }

    a { text-decoration: none; }

    section + section {
        border-top-color: #ddd;
    }

    .timeline-entry {
        border-bottom-color: #eee;
    }
}
