/* --- ZMIENNE KOLORYSTYCZNE --- */
:root {
    --bg-dark: #1c1c1e;
    --bg-card: #2c2c2e;
    --bg-light: #f3f4f6;
    --text-main: #ffffff;
    --text-inv: #111827;
    --text-muted: #9ca3af;
    --accent: #f59e0b;       /* POMARAŃCZ */
    --accent-hover: #d97706;
    --font-main: 'Inter', sans-serif;
    --radius: 8px;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-inv); line-height: 1.6; }
a { text-decoration: none; transition: 0.3s; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* IKONY SVG (Stylizacja) */
.icon-svg {
    width: 24px; height: 24px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.card-icon svg { width: 40px; height: 40px; stroke: var(--accent); }

/* HEADER & NAWIGACJA */
header { background-color: var(--bg-dark); color: var(--text-main); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #333; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }

.logo { font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; color: white;}
.logo:hover { color: var(--accent); }

.main-nav ul { display: flex; gap: 30px; align-items: center; }
.main-nav a { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }

/* Dropdown */
.has-dropdown { position: relative; padding: 10px 0; }
.dropdown {
    position: absolute; top: 100%; left: -20px;
    background-color: var(--bg-card); min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5); border-radius: var(--radius);
    padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: 0.3s ease; border-top: 3px solid var(--accent);
}
.dropdown li { display: block; }
.dropdown a { display: block; padding: 10px 20px; color: var(--text-main); }
.dropdown a:hover { background-color: rgba(245, 158, 11, 0.1); color: var(--accent); }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.btn-nav-ksef { border: 1px solid var(--accent); padding: 6px 16px; border-radius: 4px; color: var(--accent) !important; }
.btn-nav-ksef:hover { background-color: var(--accent); color: white !important; }

/* HERO SECTION */
.hero { background-color: var(--bg-dark); color: var(--text-main); padding: 80px 0 100px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 20px; }
.hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; max-width: 500px; }
.hero-btns { display: flex; gap: 15px; }

.btn-primary { background-color: var(--accent); color: white; padding: 12px 30px; border-radius: var(--radius); font-weight: 600; border: none; cursor: pointer; }
.btn-primary:hover { background-color: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid rgba(255,255,255,0.3); padding: 12px 30px; border-radius: var(--radius); font-weight: 600; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* --- ZASTĘPSTWO DLA ZDJĘĆ (ABSTRACT TECH BG) --- */
.tech-visual {
    width: 100%; height: 350px;
    background-color: #2c2c2e;
    background-image: 
        linear-gradient(rgba(245, 158, 11, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.05) 1px, transparent 1px);
    background-size: 40px 40px; /* Siatka */
    border-radius: 12px;
    border: 1px solid #444;
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
/* Efekt "pulsującego serwera" na środku */
.tech-visual::after {
    content: ''; width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(245,158,11,0.2) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    animation: pulse 3s infinite;
}
.tech-icon-big { width: 80px; height: 80px; stroke: var(--accent); opacity: 0.8; z-index: 2; }

@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.5); opacity: 1; } 100% { transform: scale(1); opacity: 0.5; } }

/* ALERT KSEF */
.ksef-alert-section { background: white; transform: translateY(-40px); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); padding: 30px; border-left: 6px solid var(--accent); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.timer-display { font-family: monospace; font-size: 2.5rem; font-weight: 700; color: var(--bg-dark); }
.timer-labels { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 2px; }

/* SEKCJE */
.section-pad { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 10px; color: var(--bg-dark); }

/* KARTY */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s; border-top: 4px solid transparent; }
.card:hover { transform: translateY(-5px); border-top-color: var(--accent); }
.card-icon { width: 50px; height: 50px; background: rgba(245, 158, 11, 0.1); border-radius: 8px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
.link-more { color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 5px; margin-top: 15px;}

/* FORMULARZ I TIMELINE - bez zmian logicznych, tylko poprawki wizualne */
.form-box { background: var(--bg-dark); color: white; padding: 40px; border-radius: 12px; max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border-radius: 6px; border: 1px solid #444; background: #2c2c2e; color: white; font-family: inherit;}
.form-group input:focus { border-color: var(--accent); outline: none; }

.timeline { max-width: 800px; margin: 0 auto; padding-left: 20px; border-left: 2px solid #e5e7eb; }
.timeline-item { margin-bottom: 40px; position: relative; padding-left: 30px; }
.timeline-item::before { content: ''; position: absolute; left: -9px; top: 0; width: 16px; height: 16px; background: white; border: 3px solid var(--accent); border-radius: 50%; }

/* FOOTER */
footer { background-color: var(--bg-dark); color: #888; padding: 50px 0; border-top: 1px solid #333; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer h4 { color: white; margin-bottom: 20px; }
.footer ul li { margin-bottom: 10px; }

@media screen and (max-width: 768px) {
    .nav-container { flex-direction: column; height: auto; padding: 15px; }
    .main-nav ul { flex-direction: column; gap: 15px; margin-top: 15px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; }
    .has-dropdown:hover .dropdown { display: block; }
}