/* Stylistyka KRAK-MAN OKSS - Nowoczesny wygląd z poprawnym kontrastem */
:root {
    --primary-color: #004b87;       /* Głęboki błękit Grupy Technitel */
    --primary-hover: #003663;
    --secondary-color: #00a8cc;     /* Cyjan / niebieski akcent */
    --accent-color: #00e5ff;        /* Neonowy błękit do akcentów */
    --dark-bg: #0b1726;             /* Bardzo ciemny błękit tła */
    --card-dark-bg: #132337;        /* Jasniejszy odcień ciemnego tła pod karty */
    --light-bg: #f0f4f8;            /* Szaro-niebieskie tło */
    --white-bg: #ffffff;
    --text-main: #2c3e50;           /* Tekst na jasnym tle */
    --text-muted: #64748b;          /* Wygaszony tekst na jasnym tle */
    --text-light: #ffffff;          /* Główny tekst na ciemnym tle */
    --text-light-muted: #cbd5e1;    /* Pomocniczy tekst na ciemnym tle */
    --white: #ffffff;
    --border-color: #e2e8f0;
    --border-dark: rgba(255, 255, 255, 0.12);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white-bg);
}

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

/* Globalna kasacja podkrreśleń dla WSZYSTKICH linków */
a, a:hover, a:focus, a:visited {
    text-decoration: none !important;
    outline: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: #008cae;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 168, 204, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white) !important;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color) !important;
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.4);
    color: var(--white) !important;
    background: transparent;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Header & Topbar */
.top-bar {
    background-color: var(--dark-bg);
    color: var(--white);
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-dark);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-badge span {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.top-contact a {
    color: var(--text-light-muted) !important;
    margin-left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.top-contact a:hover {
    color: var(--accent-color) !important;
}

.icon {
    width: 16px;
    height: 16px;
}

.navbar {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main) !important;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--secondary-color) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Hero Section z Animacją Canvas */
.hero {
    position: relative;
    background: var(--dark-bg);
    color: var(--white);
    padding: 130px 0 140px 0;
    text-align: center;
    overflow: hidden;
}

#fiberCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(11,23,38,0.4) 0%, rgba(11,23,38,0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero h1 {
    color: var(--white);
    font-size: 42px;
    max-width: 850px;
    margin: 0 auto 20px auto;
    line-height: 1.25;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 35px auto;
    color: var(--text-light-muted);
}

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

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

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

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

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

.section-header {
    text-align: center;
    margin-bottom: 55px;
}

.section-header h2 {
    font-size: 32px;
    text-transform: uppercase;
}

.section-header.light h2 {
    color: var(--white);
}

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

.divider {
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

/* Gridy */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Card Stylings */
.card {
    background: var(--white);
    padding: 35px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.feature-box {
    border-left: 5px solid var(--secondary-color);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Karta "Dla kogo pracujemy" - Rozwiązany problem czytelności */
.bg-gradient {
    background: linear-gradient(135deg, #003663 0%, #0b1726 100%);
    border: 1px solid var(--border-dark);
    color: var(--white) !important;
}

.bg-gradient h3 {
    color: var(--accent-color) !important;
}

.bg-gradient p {
    color: var(--text-light-muted) !important;
}

.check-list {
    list-style: none;
    margin-top: 15px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-light) !important;
    font-size: 15px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
}

.stat-number {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-color);
}

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.service-card:hover::before {
    background: var(--secondary-color);
}

.service-icon {
    width: 55px;
    height: 55px;
    background: rgba(0, 168, 204, 0.1);
    color: var(--secondary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

/* Sekcja Ciemna: Sieć Światłowodowa - Rozwiązany problem kontrastu tekstu */
.glass-card {
    background: var(--card-dark-bg);
    border: 1px solid var(--border-dark);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.glass-card h3 {
    color: var(--accent-color) !important;
}

.glass-card p {
    color: var(--text-light-muted) !important;
    font-size: 15px;
}

.glass-card strong {
    color: var(--white) !important;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

.timeline-item {
    padding: 25px 30px;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.timeline-date {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 13px;
    text-transform: uppercase;
}

/* Sekcja Kontaktowa - Poprawione kolory i kontrast */
.contact-info h3, .persons-info h3 {
    color: var(--white) !important;
}

.contact-list {
    list-style: none;
    margin: 25px 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-light-muted);
}

.contact-list li span {
    color: var(--text-light-muted);
}

.contact-list a {
    color: var(--accent-color) !important;
    transition: var(--transition);
}

.contact-list a:hover {
    color: var(--white) !important;
}

.group-info {
    color: var(--secondary-color) !important;
}

.company-details {
    padding-top: 15px;
    border-top: 1px solid var(--border-dark);
    font-size: 13.5px;
    color: var(--text-light-muted);
}

.company-details strong {
    color: var(--white);
}

.person-card {
    background: var(--card-dark-bg);
    padding: 22px;
    border-radius: 8px;
    margin-bottom: 18px;
    border: 1px solid var(--border-dark);
}

.person-card h4 { 
    color: var(--white) !important; 
    margin-bottom: 4px; 
}

.person-card .role { 
    color: var(--secondary-color) !important; 
    font-size: 13px; 
    margin-bottom: 10px; 
    font-weight: 600;
}

.person-card p {
    color: var(--text-light-muted);
    margin-bottom: 4px;
    font-size: 14px;
}

.person-card a {
    color: var(--accent-color) !important;
}

.person-card a:hover {
    color: var(--white) !important;
}

/* Footer */
.footer {
    background-color: #060e18;
    color: var(--text-light-muted);
    padding: 25px 0;
    font-size: 13px;
    border-top: 1px solid var(--border-dark);
}

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

.footer-links a { 
    color: var(--text-light-muted) !important; 
    transition: var(--transition);
}

.footer-links a:hover { 
    color: var(--accent-color) !important; 
}

/* Cookie Banner & Modal */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    color: var(--white);
    padding: 20px 0;
    z-index: 9999;
    border-top: 3px solid var(--secondary-color);
    display: none;
}

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

.cookie-content a {
    color: var(--accent-color) !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    position: relative;
    color: var(--text-main);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
}

/* Responsywność */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        display: none;
    }
    .nav-menu.active { display: flex; }
    .hero h1 { font-size: 30px; }
    .cookie-content { flex-direction: column; text-align: center; }
}