:root {
    --primary: #000033;
    --accent: #FFBE00;
    --bg: #FFFFFF;
    --surface: #F4F7F6;
    --text: #1A1A1A;
    --text-light: #575757;
    --border: #D1D1D1;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --nav-text: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
    :root:not(.light-mode) {
        --bg: #0a0a0a;
        --surface: #161616;
        --text: #f0f0f0;
        --border: #333;
    }
}

.dark-mode {
    --bg: #0a0a0a;
    --surface: #161616;
    --text: #f0f0f0;
    --border: #333;
}

/* POPRAWIONY TRYB KONTRASTOWY */
.high-contrast {
    --primary: #000000 !important;
    --accent: #FFFF00 !important;
    --bg: #000000 !important;
    --surface: #000000 !important;
    --text: #FFFFFF !important;
    --nav-text: #FFFF00 !important;
    --border: #FFFFFF !important;
    --text-light: #FFFF00 !important;
}

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

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    transition: all 0.3s ease;
}

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

header {
    background: var(--primary);
    padding: 15px 0;
    border-bottom: 4px solid var(--accent);
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-weight: 900; 
    color: #FFF; 
    font-size: 1.5rem; 
    text-decoration: none;
    letter-spacing: 1px;
}

nav ul { display: flex; list-style: none; gap: 15px; align-items: center; }

.nav-link { 
    cursor: pointer; 
    color: var(--nav-text); 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.9rem; 
    padding: 5px 0;
    transition: 0.3s;
    opacity: 0.8;
}

.nav-link:hover, .nav-link.active { 
    opacity: 1; 
    color: var(--accent);
    border-bottom: 2px solid var(--accent); 
}

.mode-btn {
    cursor: pointer;
    background: var(--accent);
    color: #000 !important;
    border: 2px solid transparent;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.8rem;
    transition: 0.2s;
}

.mode-btn:hover { transform: translateY(-2px); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

.high-contrast .mode-btn {
    background: #FFFF00 !important;
    color: #000000 !important;
    border: 2px solid #FFFFFF !important;
}

.hero { padding: 80px 0; background: var(--primary); color: white; text-align: center; }
.hero h1 { font-size: 2.5rem; margin-bottom: 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding: 50px 0; }

.card {
    background: var(--surface);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
    height: 100%;
}

.card h3 { color: var(--accent); margin-bottom: 15px; }

.skip-link { position: absolute; top: -40px; left: 0; background: var(--accent); color: #000; padding: 8px; z-index: 1001; }
.skip-link:focus { top: 0; }

.hidden { display: none !important; }

/* STYLE KONFIGURATORA */
.config-panel { background: var(--surface); padding: 25px; border-radius: 15px; margin: 30px 0; border: 1px solid var(--border); }
.config-row { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.config-row .label { min-width: 150px; font-weight: bold; color: var(--primary); }

.dark-mode .label { color: var(--accent); }
.high-contrast .label { color: #FFFF00 !important; } /* Żółty tekst dla etykiet w kontraście */

.sub-btn { 
    border: 2px solid var(--primary); 
    background: transparent; 
    color: var(--primary); 
    padding: 6px 14px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 600; 
    transition: 0.2s;
    font-family: inherit;
}

.sub-btn.active-sub { background: var(--primary); color: #fff; }

.dark-mode .sub-btn { border-color: var(--accent); color: var(--accent); }
.dark-mode .sub-btn.active-sub { background: var(--accent); color: #000; }

.high-contrast .sub-btn { border: 2px solid #FFF !important; color: #FFF !important; }
.high-contrast .sub-btn.active-sub { background: #FFFF00 !important; color: #000 !important; border-color: #FFFF00 !important; }

/* Naprawa SELECTA (lista krajów) */
select.sub-btn { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E'); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }

.info-box { background: rgba(255,190,0,0.1); padding: 10px; border-left: 4px solid var(--accent); margin-top: 15px; font-size: 0.9rem; }
.high-contrast .info-box { border: 1px solid #FFFF00; color: #FFFF00; background: #000; }

/* STYLE TABELI - ZWĘŻENIE I POGRUBIENIE */
#price-display-wrapper { 
    max-width: 600px; /* Zwężenie kontenera tabeli */
    margin: 0 auto; 
}

table { width: 100%; border-collapse: collapse; margin-top: 15px; background: transparent; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; }
th { font-size: 0.8rem; text-transform: uppercase; color: var(--text-light); letter-spacing: 1px; }

.divider { background: rgba(0, 0, 51, 0.05); font-weight: bold; color: var(--primary); }
.dark-mode .divider { background: rgba(255, 255, 255, 0.05); color: var(--accent); }
.high-contrast .divider { background: #222; color: #FFFF00; border: 1px solid #FFF; }

.price-tag { 
    font-weight: normal; /* Wyłączone pogrubienie */
    color: var(--primary); 
    font-size: 1.1rem; 
}
.dark-mode .price-tag { color: var(--accent); }
.high-contrast .price-tag { color: #FFF !important; }

.cta-wrapper { text-align: center; margin-top: 30px; padding-bottom: 50px; }

/* Responsywność dla etykiet */
@media (max-width: 600px) {
    .config-row .label { min-width: 100%; margin-bottom: 5px; }
}
