@import url('https://fonts.cdnfonts.com/css/d-din');

/* D-DIN nie ma polskich liter (poza Ó) — Ą Ć Ę Ł Ń Ś Ź Ż bierzemy z Barlow (krój w stylu DIN) */
@font-face {
    font-family: 'MONTE PL';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/npm/@fontsource/barlow@5.0.13/files/barlow-latin-ext-300-normal.woff2') format('woff2');
    unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C;
}
@font-face {
    font-family: 'MONTE PL';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/npm/@fontsource/barlow@5.0.13/files/barlow-latin-ext-400-normal.woff2') format('woff2');
    unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C;
}
@font-face {
    font-family: 'MONTE PL';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/npm/@fontsource/barlow@5.0.13/files/barlow-latin-ext-700-normal.woff2') format('woff2');
    unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C;
}
@font-face {
    font-family: 'MONTE PL';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/npm/@fontsource/barlow@5.0.13/files/barlow-latin-ext-800-normal.woff2') format('woff2');
    unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'MONTE PL', 'D-DIN', sans-serif;
    text-transform: uppercase;
    /* SpaceX usually uses uppercase everywhere */
    color: white;
}

/* Uwaga: overflow ustawiamy TYLKO na body. Gdy html i body mają naraz
   overflow + height: 100%, przewija się <body> zamiast okna — wtedy
   window.scrollY = 0 i nie działają GSAP ScrollTrigger ani chowanie navbara. */
html {
    background-color: #000;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    background-color: #000;
    overflow-x: hidden;
}

/* Typography styles */
p {
    text-transform: none;
    /* keep paragraphs readable */
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.4s ease, 
                padding 0.4s ease;
}

/* Ukrycie paska przy scrollowaniu w dół */
.navbar.nav-hidden {
    transform: translateY(-100%);
}

/* Aktywny tło paska po przescrollowaniu */
.navbar.nav-scrolled {
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    padding: 10px 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.site-logo:hover {
    transform: scale(1.08);
    /* Efekt drapieżnego powiększenia przy najechaniu */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
}

/* Podkreślenie na hover dla znaków SpaceX */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    z-index: 1;
    background-color: #1a0b08; /* Fallback for mobile */
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    text-align: left;
    max-width: 650px;
    z-index: 10;
    animation: fadeIn 2s ease-out forwards;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: normal;
    color: #ccc;
    text-transform: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
    line-height: 1.1;
}

/* SpaceX style Button */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid white;
    background: transparent;
    color: white;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.btn:hover {
    color: black;
}

.btn:hover::before {
    transform: translateY(0);
}

/* Scroll indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-down span {
    display: block;
    margin-bottom: 5px;
}

.chevron {
    width: 16px;
    height: 16px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 0 auto;
}

/* Content Section (Next Page) */
.intro-section {
    padding: 100px 50px;
    background-color: #000;
    display: flex;
    justify-content: center;
}

.intro-container {
    max-width: 900px;
    text-align: left;
}

/* --- Why Mars Section --- */
.why-mars-section {
    padding: 80px 50px;
    background-color: #000;
}

.why-mars-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.why-mars-image {
    flex: 1.2;
    max-width: 55%;
    display: flex;
    justify-content: center;
}

.why-mars-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    transform: scale(1.1);
}



.why-mars-text {
    flex: 1;
    max-width: 45%;
}

.mars-stats-table {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #fff;
    font-weight: bold;
}

.stat-value {
    font-size: 0.85rem;
    color: #eee;
}

/* New Subpage Content Section */
.content-section {
    padding: 100px 50px;
    background-color: #000;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.text-block h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.text-block p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.image-block img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transition: transform 0.5s ease;
}

.image-block img:hover {
    transform: scale(1.03);
}

.video-block {
    text-align: center;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #222;
}

.video-block h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.user-video {
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    background-color: #111;
}

.video-caption {
    margin-top: 20px;
    color: #888;
    font-style: italic;
    font-size: 0.95rem;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
    font-weight: bold;
}

.text-center {
    text-align: center;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

.highlight-text {
    color: white;
    font-weight: bold;
    border-left: 3px solid white;
    padding-left: 20px;
    margin-top: 30px;
}

.pillars-section {
    padding: 100px 50px;
    background-color: #050505;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.info-card {
    background: #111;
    padding: 40px;
    border: 1px solid #222;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #555;
    transform: translateY(-5px);
    background: #151515;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.info-card p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.card-link {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    display: inline-block;
}

.card-link:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* --- Resources Listing Blocks --- */
.resources-section {
    padding: 80px 20px;
}

details.resource-category {
    margin-bottom: 20px;
    background-color: #050505;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
}

details.resource-category summary.category-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0;
    padding: 20px 30px;
    background-color: #111;
    border-bottom: none;
    letter-spacing: 2px;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: background-color 0.3s;
}

details.resource-category summary.category-title::-webkit-details-marker {
    display: none;
}

details.resource-category summary.category-title:hover {
    background-color: #1a1a1a;
}

details.resource-category summary.category-title::after {
    content: '+';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: #888;
    transition: transform 0.3s;
}

details.resource-category[open] summary.category-title {
    border-bottom: 1px solid #222;
    background-color: #151515;
}

details.resource-category[open] summary.category-title::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.category-content-wrapper {
    padding: 30px;
}

.category-intro {
    margin-bottom: 40px;
}
.category-intro h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #eee;
}
.category-intro p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 15px;
}

.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.resource-card {
    background-color: #0a0a0a;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
    border-color: #444;
}

/* Aktywna karta podświetlona przez ISRU */
.resource-card.active {
    border-color: #00ff88;
    background-color: rgba(0, 255, 136, 0.07);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
    transform: translateY(-4px);
}

.resource-card.active .resource-name {
    color: #00ff88;
}

.resource-card.active:hover {
    border-color: #00ff88;
    box-shadow: 0 0 28px rgba(0, 255, 136, 0.35);
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.resource-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #eee;
}

.resource-availability {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.resource-availability.high { background-color: rgba(0, 255, 0, 0.1); color: #4CAF50; border: 1px solid #4CAF50; }
.resource-availability.medium { background-color: rgba(255, 165, 0, 0.1); color: #FFA500; border: 1px solid #FFA500; }
.resource-availability.low { background-color: rgba(255, 0, 0, 0.1); color: #FF5252; border: 1px solid #FF5252; }
.resource-availability.rare { background-color: rgba(156, 39, 176, 0.1); color: #E040FB; border: 1px solid #E040FB; }

.resource-body {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.5;
}
.resource-body b {
    color: #fff;
    font-size: 0.9rem;
}

/* --- Active State for Navbar --- */
.nav-links a.active {
    color: #fff;
}
.nav-links a.active::after {
    width: 100%;
}

/* --- Global Footer Styles --- */
.site-footer {
    background-color: #050505;
    border-top: 1px solid #222;
    padding: 60px 10%;
    color: #ccc;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}

.footer-links, .footer-copyright {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.footer-links a:hover, .footer-social a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

.engineered-btn {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #333;
    border-radius: 4px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    background-color: #080808;
    text-transform: uppercase;
}

.engineered-btn:hover {
    border-color: #555;
    color: #fff;
    background-color: #111;
}

/* Media Queries for Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .navbar.active .logo {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        z-index: 99;
        transition: right 0.4s cubic-bezier(0.2, 1, 0.3, 1);
        gap: 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        z-index: 100;
        position: relative;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .navbar {
        padding: 15px 20px;
    }

    .navbar.nav-scrolled {
        padding: 12px 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .content-section {
        padding: 60px 20px;
    }

    .why-mars-section {
        padding: 40px 20px;
    }

    .why-mars-grid {
        flex-direction: column;
        gap: 30px;
    }

    .why-mars-image, .why-mars-text {
        max-width: 100%;
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links, .footer-social, .footer-copyright {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .text-block h2 {
        font-size: 2rem;
    }

    .intro-section,
    .pillars-section {
        padding: 60px 20px;
    }

    .section-heading {
        font-size: 1.8rem;
    }
}

/* --- TECH TREE ISRU --- */
.tech-tree {
    background-color: #0c0c0c;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 50px;
    text-align: center;
}

.tech-tree-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.tech-tree-desc {
    color: #aaa;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.tech-nodes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tech-node {
    background-color: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 20px;
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-node:hover {
    border-color: #555;
    background-color: #222;
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.tech-info h4 {
    color: #ccc;
    margin-bottom: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-info p {
    color: #777;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Active tech state */
.tech-node.active-tech {
    border: 2px solid #00ff88;
    background-color: rgba(0, 255, 136, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    transform: translateY(-5px);
}

.tech-node.active-tech .tech-icon {
    transform: scale(1.2);
}

.tech-node.active-tech .tech-info h4 {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.tech-node.active-tech .tech-info p {
    color: #00ff88;
}

/* ============================================
   KARDASHEV — pełnoekranowy "zoom" w stylu SpaceX
   Czysty CSS (tylko transform + opacity), pętla 3 etapów.
   Kamera ciągle się przybliża, a na końcu etapu "przelatuje"
   przez obraz do następnego: Ziemia → Słońce → galaktyka.
   ============================================ */
.kz {
    --kz-total: 18s;            /* cała pętla = 3 etapy × 6 s */
    position: relative;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    background: #000;
    isolation: isolate;
}

.kz-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.kz-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    will-change: transform, opacity;
    animation: var(--kz-total) cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* object-position = transform-origin: kamera celuje w obiekt, także na wąskich ekranach */
.kz-img-1 { object-position: 58% 50%; transform-origin: 58% 50%; opacity: 1; animation-name: kzImg1; }
.kz-img-2 { object-position: 67% 50%; transform-origin: 67% 50%; animation-name: kzImg2; }
.kz-img-3 { object-position: 52% 47%; transform-origin: 52% 47%; animation-name: kzImg3; }

/* Gwiazdy lecące na widza (dwie warstwy przesunięte w czasie) */
.kz-stars {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 27% 72%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 41% 33%, #cfe3ff 50%, transparent 51%),
        radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 78% 64%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 88% 28%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 55% 86%, #ffe1c9 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 8% 54%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 34% 8%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 93% 82%, #cfe3ff 50%, transparent 51%);
    will-change: transform, opacity;
    animation: kzWarp 4s linear infinite;
}

.kz-stars-b {
    background-image:
        radial-gradient(1px 1px at 18% 40%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 36% 90%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 49% 22%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 71% 38%, #cfe3ff 50%, transparent 51%),
        radial-gradient(1px 1px at 84% 9%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 66% 70%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 22% 12%, #ffe1c9 50%, transparent 51%),
        radial-gradient(1px 1px at 5% 85%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 96% 52%, #fff 50%, transparent 51%);
    animation-delay: -2s;
}

/* Przyciemnienie pod tekstem (dół) i pod navbarem (góra) */
.kz-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 70%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 25%);
}

.kz-label {
    position: absolute;
    z-index: 1;
    top: 120px;
    left: 8%;
    right: 8%;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: #e6e6e6;
}

.kz-copy {
    position: absolute;
    z-index: 1;
    left: 8%;
    bottom: 150px;
    width: min(780px, 84%);
    display: grid;
}

.kz-stage {
    grid-area: 1 / 1;
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    will-change: transform, opacity;
    animation: var(--kz-total) ease-in-out infinite;
}

.kz-stage-1 { opacity: 1; animation-name: kzT1; }
.kz-stage-2 { animation-name: kzT2; }
.kz-stage-3 { animation-name: kzT3; }

.kz-tag {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 4px;
}

.kz-title {
    margin: 0;
    font-size: clamp(2rem, 4.4vw, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.5px;
}

.kz-cta {
    position: absolute;
    z-index: 1;
    left: 8%;
    bottom: 72px;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 28px;
    border: 2px solid #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.kz-cta:hover,
.kz-cta:focus-visible {
    background: #fff;
    color: #000;
}

.kz-progress {
    position: absolute;
    z-index: 1;
    right: 8%;
    bottom: 84px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.kz-segs {
    display: flex;
    gap: 8px;
}

.kz-segs span {
    position: relative;
    width: 96px;
    height: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.25);
}

.kz-segs i {
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left center;
    animation: var(--kz-total) linear infinite;
}

.kz-segs span:nth-child(1) i { animation-name: kzSeg1; }
.kz-segs span:nth-child(2) i { animation-name: kzSeg2; }
.kz-segs span:nth-child(3) i { animation-name: kzSeg3; }

.kz-humanity {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: #cfcfcf;
}

/* Poza ekranem animacja stoi (oszczędza CPU/GPU); JS przełącza klasę */
.kz.is-paused .kz-img,
.kz.is-paused .kz-stars,
.kz.is-paused .kz-stage,
.kz.is-paused .kz-segs i {
    animation-play-state: paused;
}

@keyframes kzImg1 {
    0%     { opacity: 1; transform: scale(1); }
    28%    { opacity: 1; transform: scale(1.22); }
    33.3%  { opacity: 0; transform: scale(2.6); }
    94.9%  { opacity: 0; transform: scale(0.8); }
    100%   { opacity: 1; transform: scale(1); }
}
@keyframes kzImg2 {
    0%, 28% { opacity: 0; transform: scale(0.8); }
    33.3%   { opacity: 1; transform: scale(1); }
    61.6%   { opacity: 1; transform: scale(1.22); }
    66.6%   { opacity: 0; transform: scale(2.6); }
    100%    { opacity: 0; transform: scale(2.6); }
}
@keyframes kzImg3 {
    0%, 61.6% { opacity: 0; transform: scale(0.8); }
    66.6%     { opacity: 1; transform: scale(1); }
    95%       { opacity: 1; transform: scale(1.22); }
    100%      { opacity: 0; transform: scale(2.6); }
}
@keyframes kzWarp {
    0%   { opacity: 0; transform: scale(0.4); }
    25%  { opacity: 0.9; }
    100% { opacity: 0; transform: scale(2.4); }
}
@keyframes kzT1 {
    0%    { opacity: 1; transform: none; }
    27%   { opacity: 1; transform: none; }
    30.5% { opacity: 0; transform: translateY(-24px); }
    96%   { opacity: 0; transform: translateY(32px); }
    100%  { opacity: 1; transform: none; }
}
@keyframes kzT2 {
    0%, 31% { opacity: 0; transform: translateY(32px); }
    36%     { opacity: 1; transform: none; }
    60.5%   { opacity: 1; transform: none; }
    64%     { opacity: 0; transform: translateY(-24px); }
    100%    { opacity: 0; transform: translateY(-24px); }
}
@keyframes kzT3 {
    0%, 64% { opacity: 0; transform: translateY(32px); }
    69%     { opacity: 1; transform: none; }
    94%     { opacity: 1; transform: none; }
    97.5%   { opacity: 0; transform: translateY(-24px); }
    100%    { opacity: 0; transform: translateY(-24px); }
}
@keyframes kzSeg1 { 0% { transform: scaleX(0); } 33.3%, 100% { transform: scaleX(1); } }
@keyframes kzSeg2 { 0%, 33.3% { transform: scaleX(0); } 66.6%, 100% { transform: scaleX(1); } }
@keyframes kzSeg3 { 0%, 66.6% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

@media (max-width: 768px) {
    .kz-label {
        top: 100px;
        left: 20px;
        right: 20px;
        font-size: 0.7rem;
        letter-spacing: 3px;
    }

    .kz-copy {
        left: 20px;
        width: calc(100% - 40px);
        bottom: 190px;
    }

    .kz-tag {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .kz-cta {
        left: 20px;
        bottom: 110px;
    }

    .kz-progress {
        left: 20px;
        right: auto;
        bottom: 48px;
        align-items: flex-start;
    }

    .kz-segs span {
        width: 72px;
    }
}

/* Ograniczony ruch: statyczny pierwszy kadr (Ziemia + etap I) */
@media (prefers-reduced-motion: reduce) {
    .kz-img,
    .kz-stars,
    .kz-stage,
    .kz-segs i {
        animation: none;
    }
}

/* ============================================
   STRONA: ZAGROŻENIA MISJI
   ============================================ */

/* Filtry */
.threat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 22px;
    border: 1px solid #333;
    background: transparent;
    color: #aaa;
    font-family: 'MONTE PL', 'D-DIN', sans-serif;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #888;
    color: #fff;
}

.filter-btn.active {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Siatka zagrożeń */
.threats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

/* Karta zagrożenia */
.threat-card {
    background: #0d0d0d;
    border: 1px solid #222;
    border-top: 3px solid #333;
    padding: 30px;
    transition: all 0.35s ease;
    cursor: pointer;
}

.threat-card:hover {
    background: #141414;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* Kolory paska górnego wg powagi */
.threat-card[data-severity="krytyczne"]  { border-top-color: #ff3b3b; }
.threat-card[data-severity="wysokie"]    { border-top-color: #ff8c00; }
.threat-card[data-severity="umiarkowane"] { border-top-color: #f0d000; }
.threat-card[data-severity="latwe"]      { border-top-color: #00cc55; }

/* Nagłówek karty */
.threat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
}

.threat-name {
    font-size: 1.05rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
    flex: 1;
}

.threat-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

/* Badge kategorii */
.badge-category {
    font-size: 0.68rem;
    padding: 3px 9px;
    letter-spacing: 1.5px;
    font-weight: bold;
    border: 1px solid #444;
    color: #aaa;
    text-transform: uppercase;
}

/* Badge powagi */
.badge-severity {
    font-size: 0.68rem;
    padding: 3px 9px;
    letter-spacing: 1.5px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-severity.krytyczne  { background: rgba(255, 59, 59, 0.12);  color: #ff3b3b; border: 1px solid #ff3b3b; }
.badge-severity.wysokie    { background: rgba(255, 140, 0, 0.12);  color: #ff8c00; border: 1px solid #ff8c00; }
.badge-severity.umiarkowane { background: rgba(240, 208, 0, 0.10); color: #f0d000; border: 1px solid #f0d000; }
.badge-severity.latwe      { background: rgba(0, 204, 85, 0.10);   color: #00cc55; border: 1px solid #00cc55; }

/* Separator */
.threat-divider {
    width: 100%;
    height: 1px;
    background: #222;
    margin-bottom: 18px;
}

/* Label i lista rozwiązań */
.threat-solutions-label {
    font-size: 0.7rem;
    color: #555;
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-weight: bold;
}

.threat-solutions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.threat-solutions li {
    font-size: 0.88rem;
    color: #aaa;
    line-height: 1.6;
    padding: 8px 0 8px 16px;
    border-bottom: 1px solid #1a1a1a;
    position: relative;
    text-transform: none;
}

.threat-solutions li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #444;
    font-size: 0.8rem;
}

.threat-solutions li:last-child {
    border-bottom: none;
}

/* Ukrywanie kart po filtrze */
.threat-card.hidden {
    display: none;
}

/* Legenda powagi */
.severity-legend {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    color: #aaa;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.krytyczne   { background: #ff3b3b; box-shadow: 0 0 8px rgba(255, 59, 59, 0.5); }
.legend-dot.wysokie     { background: #ff8c00; box-shadow: 0 0 8px rgba(255, 140, 0, 0.5); }
.legend-dot.umiarkowane { background: #f0d000; box-shadow: 0 0 8px rgba(240, 208, 0, 0.5); }
.legend-dot.latwe       { background: #00cc55; box-shadow: 0 0 8px rgba(0, 204, 85, 0.5); }

/* Licznik wyników */
.results-count {
    text-align: center;
    font-size: 0.78rem;
    color: #444;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

/* Responsywność — zagrożenia */
@media (max-width: 768px) {
    .threats-grid {
        grid-template-columns: 1fr;
    }

    .threat-header {
        flex-direction: column;
    }

    .threat-badges {
        flex-direction: row;
        align-items: center;
    }
}

/* ============================================
   STRONA: KOLONIZACJA — ETAPY
   ============================================ */

/* Zakładki etapów */
.phase-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #222;
}

.phase-tab {
    padding: 16px 40px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #555;
    font-family: 'MONTE PL', 'D-DIN', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -1px;
}

.phase-tab:hover {
    color: #aaa;
}

.phase-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}

/* Panele etapów */
.phase-panels {
    background: #0a0a0a;
    border: 1px solid #222;
    border-top: none;
    padding: 50px 50px 60px;
}

.phase-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.phase-panel.active {
    display: block;
}

/* Nagłówek panelu */
.phase-label {
    font-size: 0.72rem;
    color: #555;
    letter-spacing: 4px;
    font-weight: bold;
    margin-bottom: 16px;
}

.phase-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.phase-subtitle {
    font-size: 1rem;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.phase-divider {
    width: 100%;
    height: 1px;
    background: #1e1e1e;
    margin-bottom: 30px;
}

/* Bloki z faktami (lokalizacja, priorytet, status) */
.phase-facts {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #1e1e1e;
}

.fact-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fact-label {
    font-size: 0.65rem;
    color: #444;
    letter-spacing: 3px;
    font-weight: bold;
}

.fact-value {
    font-size: 0.9rem;
    color: #ccc;
    letter-spacing: 0.5px;
}

/* Statusy etapów */
.phase-status {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.68rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.phase-status.s1 { background: rgba(255, 140, 0, 0.1); color: #ff8c00; border: 1px solid #ff8c00; }
.phase-status.s2 { background: rgba(100, 120, 255, 0.1); color: #8899ff; border: 1px solid #8899ff; }
.phase-status.s3 { background: rgba(0, 204, 85, 0.1);  color: #00cc55; border: 1px solid #00cc55; }

/* Siatka szczegółów */
.phase-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    padding: 24px;
    transition: border-color 0.3s, transform 0.3s;
}

.detail-item:hover {
    border-color: #333;
    transform: translateY(-3px);
}

.detail-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.detail-item strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.detail-item p {
    font-size: 0.88rem;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

/* Responsywność */
@media (max-width: 768px) {
    .phase-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .phase-tab {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
        padding: 14px 20px;
    }

    .phase-tab.active {
        border-left-color: #fff;
        border-bottom: none;
    }

    .phase-panels {
        padding: 30px 20px;
    }

    .phase-title {
        font-size: 2rem;
    }

    .phase-facts {
        flex-direction: column;
        gap: 20px;
    }

    .phase-details {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SEKCJA: BAZA DANYCH SUROWCÓW (zasoby.html)
   ============================================ */

.db-note {
    text-align: center;
    font-size: 0.78rem;
    color: #555;
    letter-spacing: 1px;
    margin: 0 auto 40px;
    max-width: 900px;
    line-height: 1.8;
}

.db-count {
    font-size: 0.72rem;
    color: #444;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 20px;
}

/* Wrapper z poziomym scrollem na mobile */
.resource-db-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Tabela */
.resource-db-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    table-layout: fixed;
    word-break: break-word;
}

.resource-db-table thead tr {
    background: #111;
    border-bottom: 2px solid #333;
}

.resource-db-table th {
    padding: 12px 10px;
    text-align: left;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    font-weight: bold;
    color: #777;
    text-transform: uppercase;
    user-select: none;
}

/* Szerokości kolumn */
.resource-db-table th:nth-child(1) { width: 22%; }
.resource-db-table th:nth-child(2) { width: 7%;  }
.resource-db-table th:nth-child(3) { width: 14%; }
.resource-db-table th:nth-child(4) { width: 18%; }
.resource-db-table th:nth-child(5) { width: 39%; }

.resource-db-table th.sortable {
    cursor: pointer;
    transition: color 0.2s;
}

.resource-db-table th.sortable:hover {
    color: #fff;
}

.sort-arrow {
    margin-left: 4px;
    font-size: 0.8rem;
    opacity: 0.5;
}

.resource-db-table tbody tr {
    border-bottom: 1px solid #151515;
    transition: background 0.2s;
}

.resource-db-table tbody tr:hover {
    background: #0f0f0f;
}

.resource-db-table td {
    padding: 12px 10px;
    vertical-align: top;
    color: #bbb;
}

.db-name {
    color: #eee !important;
    font-weight: bold;
    line-height: 1.4;
}

.db-symbol {
    font-family: monospace;
    color: #888 !important;
    font-size: 0.9rem;
}

.db-cat-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    letter-spacing: 1.5px;
    font-weight: bold;
    border: 1px solid;
    text-transform: uppercase;
    white-space: nowrap;
}

.db-qty {
    font-family: monospace;
    font-size: 0.83rem;
    color: #ccc !important;
}

.db-src {
    font-size: 0.76rem;
    color: #555 !important;
    line-height: 1.5;
}

/* Adnotacja pod nazwą surowca */
.db-note-inline {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.72rem;
    font-weight: normal;
    color: #c8a000;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* ============================================
   STRONA: TECHNOLOGIA — karty technologii
   ============================================ */

.tech-card-item {
    background: #0d0d0d;
    border: 1px solid #222;
    border-top: 3px solid #333;
    padding: 26px;
    transition: all 0.3s ease;
}

.tech-card-item:hover {
    background: #141414;
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.6);
}

/* Kolory paska wg statusu */
.tech-card-item[data-status="gotowe"]   { border-top-color: #00cc55; }
.tech-card-item[data-status="testy"]    { border-top-color: #ff8c00; }
.tech-card-item[data-status="badania"]  { border-top-color: #4ab4ff; }
.tech-card-item[data-status="koncepcja"] { border-top-color: #cc66ff; }

/* Ukrycie po filtrze */
.tech-card-item.hidden {
    display: none;
}

/* Nagłówek karty */
.tci-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.tci-name {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.tci-cat {
    display: inline-block;
    font-size: 0.65rem;
    padding: 2px 8px;
    letter-spacing: 1.5px;
    font-weight: bold;
    border: 1px solid #444;
    color: #888;
    text-transform: uppercase;
    background: rgba(255,255,255,0.03);
}

/* Kolory badge kategorii */
.cat-naped        { color: #ff8c00 !important; border-color: #ff8c00 !important; background: rgba(255,140,0,0.07) !important; }
.cat-energia      { color: #f0d000 !important; border-color: #f0d000 !important; background: rgba(240,208,0,0.07) !important; }
.cat-zycie        { color: #00cc55 !important; border-color: #00cc55 !important; background: rgba(0,204,85,0.07) !important; }
.cat-ochrona      { color: #ff3b3b !important; border-color: #ff3b3b !important; background: rgba(255,59,59,0.07) !important; }
.cat-komunikacja  { color: #4ab4ff !important; border-color: #4ab4ff !important; background: rgba(74,180,255,0.07) !important; }
.cat-ai           { color: #cc66ff !important; border-color: #cc66ff !important; background: rgba(204,102,255,0.07) !important; }
.cat-budownictwo  { color: #aaaaaa !important; border-color: #555 !important; background: rgba(255,255,255,0.03) !important; }
.cat-robotyka     { color: #ff6b9d !important; border-color: #ff6b9d !important; background: rgba(255,107,157,0.07) !important; }
.cat-terraformowanie { color: #00e5ff !important; border-color: #00e5ff !important; background: rgba(0,229,255,0.07) !important; }

/* Kategorie Misji (Ujednolicone z Technologią) */
.cat-archiwizacja    { color: #00e5ff !important; border-color: #00e5ff !important; background: rgba(0,229,255,0.07) !important; }
.cat-bezpieczenstwo  { color: #ff3b3b !important; border-color: #ff3b3b !important; background: rgba(255,59,59,0.07) !important; }
.cat-ekonomia        { color: #f0d000 !important; border-color: #f0d000 !important; background: rgba(240,208,0,0.07) !important; }
.cat-filozofia       { color: #cc66ff !important; border-color: #cc66ff !important; background: rgba(204,102,255,0.07) !important; }

/* Legenda Kolorów */
.legend-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #222;
    border-radius: 4px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

/* =============================================
   OS CZASU (TIMELINE) STYLES
   ============================================= */
.timeline-section {
    padding: 100px 50px;
    background: #050505;
    position: relative;
    overflow: hidden;
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* Centralna linia */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #333 10%, #333 90%, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 40px 0;
    width: 50%;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
    text-align: left;
}

/* Punkt na linii */
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #000;
    border: 2px solid white;
    border-radius: 50%;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-item:hover .timeline-dot {
    background: white;
    box-shadow: 0 0 20px rgba(255,255,255,0.8);
    transform: translateY(-50%) scale(1.3);
}

.timeline-year {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.timeline-content {
    background: rgba(255,255,255,0.03);
    padding: 30px;
    border: 1px solid #222;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: #444;
}

.timeline-content h4 {
    color: #ff8c00;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.timeline-content p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsywność Timeline */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 12px !important;
    }

    .timeline-year {
        font-size: 1.8rem;
    }
}

/* Badge statusu */
.tci-status {
    font-size: 0.65rem;
    padding: 3px 9px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-gotowe   { color: #00cc55; border: 1px solid #00cc55; background: rgba(0,204,85,0.1); }
.status-testy    { color: #ff8c00; border: 1px solid #ff8c00; background: rgba(255,140,0,0.1); }
.status-badania  { color: #4ab4ff; border: 1px solid #4ab4ff; background: rgba(74,180,255,0.1); }
.status-koncepcja { color: #cc66ff; border: 1px solid #cc66ff; background: rgba(204,102,255,0.1); }

/* Separator */
.tci-divider {
    height: 1px;
    background: #1e1e1e;
    margin-bottom: 14px;
}

/* Lista specyfikacji */
.tci-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tci-specs li {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
    padding: 6px 0 6px 14px;
    border-bottom: 1px solid #151515;
    position: relative;
    text-transform: none;
}

.tci-specs li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #444;
    font-size: 1rem;
}

.tci-specs li:last-child {
    border-bottom: none;
}

.tci-specs li b {
    color: #ccc;
}
