:root {
    --primary: #0f172a; /* Ciemny granat */
    --accent: #0ea5e9;  /* Nowoczesny niebieski */
    --light: #f8fafc;   /* Jasne tło */
    --text: #334155;    /* Ciemnoszary tekst */
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Verdana, sans-serif; }

body { line-height: 1.6; color: var(--text); background-color: var(--light); display: flex; flex-direction: column; min-height: 100vh; }

/* Header & Nav */
header { background: var(--primary); color: var(--white); padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--accent); }
.logo { font-size: 1.5rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; color: white; }
.logo span { color: var(--accent); }

nav ul { display: flex; list-style: none; gap: 20px; }
nav a { color: var(--white); text-decoration: none; font-weight: 500; transition: 0.3s; font-size: 1.05rem; }
nav a:hover, nav a.active { color: var(--accent); }
.btn-nav-cta { background: var(--accent); padding: 8px 18px; border-radius: 4px; color: white !important; font-weight: bold; }
.btn-nav-cta:hover { background: #0284c7; }

/* Main Content Wrapper */
main { flex: 1; }

/* Hero Section */
.hero { 
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1558494949-efc02570f069?auto=format&fit=crop&w=1950&q=80');
    background-size: cover; background-position: center; 
    color: var(--white); padding: 120px 5%; text-align: center; 
}
.hero h1 { font-size: 3rem; margin-bottom: 20px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.hero p { font-size: 1.25rem; max-width: 800px; margin: 0 auto 30px; opacity: 0.95; }
.btn-primary { display: inline-block; background: var(--accent); color: white; padding: 15px 35px; text-decoration: none; font-size: 1.1rem; border-radius: 5px; font-weight: bold; transition: 0.3s; border: none; cursor: pointer; }
.btn-primary:hover { background: #0284c7; transform: translateY(-2px); }

/* Common Sections */
.section { padding: 80px 10%; }
.section-title { text-align: center; margin-bottom: 50px; color: var(--primary); font-size: 2.2rem; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent); margin: 15px auto 0; }

/* Grid Layouts */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 40px; }

/* Cards */
.card { background: var(--white); padding: 35px; border-radius: 8px; border-top: 5px solid var(--accent); box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.card h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.4rem; }
.icon { font-size: 2.5rem; margin-bottom: 20px; display: block; color: var(--accent); }

/* Services Page Specific */
.service-row { display: flex; align-items: center; gap: 40px; margin-bottom: 60px; padding: 30px; background: white; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.service-row:nth-child(even) { flex-direction: row-reverse; }
.service-text { flex: 1; }
.service-text h3 { color: var(--primary); font-size: 1.8rem; margin-bottom: 15px; }
.service-text ul { list-style: none; margin-top: 15px; }
.service-text li { margin-bottom: 8px; position: relative; padding-left: 25px; }
.service-text li::before { content: '✔'; color: var(--accent); position: absolute; left: 0; font-weight: bold; }
.service-img { flex: 1; height: 300px; background: #e2e8f0; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 3rem; }

/* Contact Page Specific */
.contact-container { display: flex; gap: 50px; flex-wrap: wrap; }
.contact-info, .contact-form { flex: 1; min-width: 300px; }
.info-item { margin-bottom: 30px; display: flex; align-items: center; gap: 15px; }
.info-item div strong { display: block; color: var(--primary); font-size: 1.1rem; }

form { display: flex; flex-direction: column; gap: 15px; }
input, textarea, select { padding: 12px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 1rem; width: 100%; outline: none; }
input:focus, textarea:focus { border-color: var(--accent); }
textarea { height: 150px; resize: vertical; }

/* Footer */
footer { background: var(--primary); color: #94a3b8; text-align: center; padding: 30px; border-top: 1px solid #1e293b; margin-top: auto; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    nav ul { gap: 10px; font-size: 0.9rem; }
    .service-row { flex-direction: column !important; }
    .grid-2 { grid-template-columns: 1fr; }
}