/* Zmienne stylów */
:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --secondary: #0f172a;
    --accent: #0d9488;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #ffffff;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #555555; /* Średnio-szare tło */
    color: #ffffff;      /* Biały tekst dla kontrastu */
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;      /* Biały kolor napisów w menu */
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 6px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 90px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 30px;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #38bdf8;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Przyciskowe style */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.btn-block {
    width: 100%;
}

/* Sekcje */
.section {
    padding: 70px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
}

/* Grid & Karty */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-4px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

/* O nas grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.about-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.about-card h3 {
    margin-bottom: 10px;
    color: var(--secondary);
}

/* Sprzęt */
.equipment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.equip-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 15px 20px;
    border-radius: 8px;
}

/* Kalkulator */
.calc-card {
    max-width: 650px;
    margin: 0 auto;
    background-color: #555555 !important; /* Ciemnoszare tło zgodne z boksem kontaktu */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.calc-card .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff !important; /* Białe etykiety dla pełnej widoczności */
}

/* Pola tekstowe oraz listy wyboru (select) jako białe */
.calc-card .form-control,
.calc-card select.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background-color: #ffffff !important; /* Białe tło pól */
    color: #334155 !important;            /* Ciemny tekst wewnątrz pól */
}

.calc-card .form-control::placeholder {
    color: #94a3b8 !important;
}

.calc-result {
    margin-top: 25px;
    padding: 20px;
    background: #e0f2fe;
    border-left: 4px solid var(--primary);
    border-radius: 6px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff; /* Białe etykiety wewnątrz formularza */
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background-color: #555555; /* Szare tło pol tekstowych pasujące do boksu */
    color: #ffffff; /* Biały tekst wpisywany przez użytkownika */
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7); /* Jaśniejszy placeholder */
}

.calc-result {
    margin-top: 25px;
    padding: 20px;
    background: #e0f2fe;
    border-left: 4px solid var(--primary);
    border-radius: 6px;
}

/* Kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.contact-info h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.contact-info p {
    margin-bottom: 10px;
}

/* Boks formularza (ciemnoszary) */
.section#kontakt .contact-form-box {
    background-color: #555555 !important;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Etykiety nad polami (białe, żeby były widoczne na ciemnym tle) */
.contact-form-box .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff !important;
}

/* Pola tekstowe w formularzu (białe tło, ciemny tekst) */
.contact-form-box .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background-color: #ffffff !important; /* Białe tło pól */
    color: #334155 !important;            /* Ciemny kolor wpisywanego tekstu */
}

/* Tekst zastępczy (placeholder) w polach */
.contact-form-box .form-control::placeholder {
    color: #94a3b8 !important;
}

/* Zgoda RODO pod formularzem */
.contact-form-box #rodoConsent + label,
.contact-form-box div[style*="font-size: 0.85rem"] {
    color: #ffffff !important;
}

.contact-form-box div[style*="font-size: 0.85rem"] a {
    color: #38bdf8 !important; /* Jasnoniebieski link do polityki prywatności dla widoczności */
}

/* Zgoda RODO w formularzu kontaktowym */
.contact-form-box label[for="rodoConsent"],
.contact-form-box .form-group span,
.contact-form-box .form-group div {
    color: #ffffff !important;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: #94a3b8;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
}

/* Styl dla Banera Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a202c;
    color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    min-width: 280px;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    border: none;
    transition: background-color 0.2s;
}

#acceptAllCookies {
    background-color: #0066cc;
    color: #ffffff;
}

#acceptAllCookies:hover {
    background-color: #0052a3;
}

#rejectCookies {
    background-color: #4a5568;
    color: #ffffff;
}

#rejectCookies:hover {
    background-color: #2d3748;
}

@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}