/* === Zmienne Globalne i Reset === */
:root {
    --color-text: #1C2627;
    --color-background: #FFFFFF;
    --color-footer-bg: #1C2627;
    --color-accent-blue: #1E7399; /* Zaktualizowano z #30B4E3 dla kontrastu WCAG AA */
    --color-accent-green: #689630; /* Zaktualizowano z #8BC53F dla kontrastu WCAG AA */
    --font-primary: 'Poppins', sans-serif;
    --container-width: 1140px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-background);
    margin: 0;
    padding-top: 80px; /* Odsunięcie treści od przyklejonego nagłówka */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === Nagłówek === */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--color-background);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}
.sticky-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2em;
}
.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}
.login-link {
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}
.logo {
    flex-shrink: 0;
}
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}
.cta-button {
    background-color: var(--color-accent-green);
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
}

/* === Stopka === */
.main-footer {
    background-color: var(--color-footer-bg);
    color: white;
    padding: 60px 0 0;
}
.main-footer .container:first-child {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}
.footer-column h4 {
    font-size: 1.1em;
    margin-bottom: 1em;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    margin-bottom: 0.75em;
}
.footer-column a, .footer-column p, .footer-column address {
    color: #f0f0f0;
    text-decoration: none;
    font-style: normal;
}
.footer-logo { max-width: 150px; margin-bottom: 1em; }
.social-media { display: flex; gap: 15px; margin-top: 1em; }

.footer-bottom-bar {
    border-top: 1px solid #4A5455;
    padding: 20px 0;
}
.footer-bottom-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}
.footer-bottom-bar nav a {
    margin-left: 20px;
}

/* === Sekcje Strony Głównej === */
section {
    padding: 80px 0;
}
.hero { text-align: center; }
.hero h1 { font-size: 2.8em; margin-bottom: 0.5em; }
.hero p { max-width: 700px; margin: 0 auto 2em auto; line-height: 1.6; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; }
.button-primary { background-color: var(--color-accent-blue); color: white; padding: 15px 30px; text-decoration: none; border-radius: 5px; }
.button-secondary { background-color: transparent; color: var(--color-text); border: 2px solid #ddd; padding: 15px 30px; text-decoration: none; border-radius: 5px; }

.partners { text-align: center; }
.partners h2, .industries h2 { margin-bottom: 2em; }
.partner-logos { display: flex; justify-content: center; align-items: center; gap: 50px; }
.partner-logos img { max-height: 50px; }
.partners-link {
    margin-top: 2em;
    text-align: center;
}
.partners-link a {
    color: var(--color-text);
    font-weight: 600;
}

.industries { text-align: center; }
.industry-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.card { border: 1px solid #eee; border-radius: 8px; padding: 30px; text-decoration: none; color: var(--color-text); transition: all 0.3s ease; }
.card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.1); transform: translateY(-5px); }
.card img { height: 50px; margin-bottom: 1em; }

/* === Sekcje Strony "O Nas" === */
.page-hero {
    background-color: #f7f9fa;
    text-align: center;
    padding: 60px 0;
}
.page-hero h1 {
    font-size: 2.5em;
}
.mission-vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.text-block h2 {
    font-size: 1.8em;
    color: var(--color-accent-blue);
    margin-bottom: 0.5em;
}
.text-block p {
    line-height: 1.7;
}
.values {
    background-color: #f7f9fa;
}
.values h2 {
    text-align: center;
    margin-bottom: 2em;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.value-card img {
    height: 50px;
    margin-bottom: 1em;
}

/* === Sekcja Biogramu "O Nas" === */
.bio-section {
    padding: 80px 0;
}
.bio-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}
.bio-image img {
    max-width: 100%;
    border-radius: 50%;
}
.bio-text h2 {
    margin-top: 0;
    font-size: 2em;
}
.bio-text h3 {
    font-size: 1.2em;
    font-weight: normal;
    color: #555;
    margin-top: -15px;
    margin-bottom: 30px;
}
.bio-text p {
    line-height: 1.7;
}

/* === Sekcje Strony Branżowej === */
.page-hero .subtitle {
    max-width: 800px;
    margin: 1em auto 0 auto;
    font-size: 1.1em;
    line-height: 1.6;
}
.challenges {
    background-color: #fff;
}
.challenges h2, .solution h2 {
    text-align: center;
    margin-bottom: 2em;
}
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.challenge-card {
    border: 1px solid #eee;
    border-left: 4px solid var(--color-accent-blue);
    padding: 25px;
    border-radius: 5px;
    font-size: 1.1em;
}
.solution {
    background-color: #f7f9fa;
    text-align: center;
}
.solution p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2em;
    line-height: 1.7;
}

/* === Sekcje Strony Głównej "Dla Branż" === */
.industries-list {
    padding: 80px 0;
}

/* === Sekcje Strony "Kontakt" === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info address, .contact-info p { line-height: 1.7; }
.contact-info h3 { margin-top: 2em; }
.info-text { font-style: italic; color: #555; }
.contact-map { min-height: 400px; }

.contact-form-section { background-color: #f7f9fa; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"], .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.form-group input[type="checkbox"] { margin-right: 10px; }
.form-group button { background-color: var(--color-accent-green); color: white; padding: 15px 30px; border: none; border-radius: 5px; cursor: pointer; }

/* Styl dla podpowiedzi o haśle */
.password-hint {
    font-size: 0.85em;
    color: #555;
    margin-top: 5px;
}

/* === Layout Strefy Klienta === */
.client-zone-body {
    padding-top: 0;
    background-color: #f7f9fa;
}
.client-zone-container {
    display: flex;
    min-height: 100vh;
}
.cz-sidebar {
    width: 260px;
    background-color: #fff;
    padding: 30px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.cz-sidebar .logo {
    display: block;
    margin-bottom: 40px;
}
.cz-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cz-nav ul a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    border-radius: 5px;
}
.cz-nav ul a:hover {
    background-color: #f7f9fa;
}
.cz-nav .submenu {
    padding-left: 20px;
    margin-top: 5px;
}
.cz-nav .submenu a {
    font-weight: normal;
    font-size: 0.95em;
    padding: 8px 15px;
}

.cz-main-content {
    flex-grow: 1;
    padding: 40px;
}
.cz-header {
    margin-bottom: 40px;
}
.cz-page-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Tabela Płatności */
.cz-table {
    width: 100%;
    border-collapse: collapse;
}
.cz-table th, .cz-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.cz-table th {
    background-color: #f7f9fa;
}
.status-pill {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}
.status-zaksiegowana { background-color: #d4edda; color: #155724; }
.status-oczekujaca { background-color: #fff3cd; color: #856404; }
.status-po-terminie { background-color: #f8d7da; color: #721c24; }

/* === Baner Cookies === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-footer-bg);
    color: var(--text-light);
    padding: 20px 0;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}
.cookie-banner.visible {
    transform: translateY(0);
}
.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cookie-banner p {
    margin: 0;
}
.cookie-banner a {
    color: var(--text-light);
    text-decoration: underline;
}
.cookie-banner-actions {
    display: flex;
    gap: 15px;
}
.cookie-banner .button-primary, .cookie-banner .button-secondary {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}
.cookie-banner .button-secondary {
    background-color: #555;
    color: white;
}

.newsletter-form .form-message, .footer-newsletter .form-message {
    width: 100%;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
}
.footer-newsletter button {
    width: 100%;
    padding: 10px;
    background-color: var(--color-accent-green);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

/* === Widok Pojedynczego Artykułu === */
.article-container {
    max-width: 800px;
    margin: 80px auto;
}
.article-header {
    margin-bottom: 40px;
    text-align: center;
}
.article-meta {
    margin-bottom: 1em;
    font-size: 0.9em;
    color: #555;
}
.article-meta .article-category {
    text-decoration: none;
    font-weight: 600;
}
.article-header h1 {
    font-size: 2.8em;
}
.article-content {
    line-height: 1.8;
    font-size: 1.1em;
}
.article-content h2 { font-size: 1.8em; margin-top: 2em; }
.article-content h3 { font-size: 1.5em; margin-top: 1.8em; }
.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tag-pill {
    display: inline-block;
    background-color: #eee;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    text-decoration: none;
    color: var(--color-text);
    margin-right: 5px;
}

/* === Ustawienia w Strefie Klienta === */
.settings-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.settings-box {
    background-color: #f7f9fa;
    padding: 25px;
    border-radius: 5px;
}
.settings-box h4 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
.settings-box input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}
.settings-box button {
    margin-top: 10px;
}

/* === Sekcja Webinarów w Strefie Klienta === */
.webinars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.webinar-card {
    text-decoration: none;
    color: var(--color-text);
    background-color: #f7f9fa;
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.webinar-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.webinar-thumbnail img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.webinar-info {
    padding: 15px;
}
.webinar-info h4 {
    margin: 0 0 10px 0;
}
.webinar-info p {
    font-size: 0.9em;
    margin: 0;
}
.video-player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}
.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.webinar-description {
    margin-top: 20px;
    line-height: 1.7;
}

/* === Zaawansowany Baner Cookies === */
.cookie-banner .button-primary, 
.cookie-banner .button-secondary {
    font-size: 0.9em;
}

.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 3000;
    display: none; /* Domyślnie ukryty */
    justify-content: center;
    align-items: center;
}
.cookie-modal-overlay.visible {
    display: flex;
}
.cookie-modal {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
}
.cookie-modal h3 {
    margin-top: 0;
}
.cookie-option {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.cookie-option input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 5px;
    width: 20px;
    height: 20px;
}
.cookie-option label small {
    display: block;
    color: #555;
    font-size: 0.9em;
}
.cookie-modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}
 
/* === Sekcja Raportów w Strefie Klienta === */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.report-card {
    background-color: #f7f9fa;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.report-thumbnail img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.report-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.report-info h4 {
    margin: 0 0 10px 0;
}
.report-info p {
    font-size: 0.9em;
    margin: 0 0 20px 0;
    flex-grow: 1;
}
.report-info .button-primary {
    align-self: flex-start;
}

/* === Sekcja Powiadomień w Strefie Klienta === */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.notification-item {
    background-color: #f7f9fa;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid var(--color-accent-blue);
}
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.notification-date {
    font-size: 0.85em;
    color: #555;
}
.notification-message {
    line-height: 1.6;
}

/* === Sekcje Strony Głównej .com === */
.process-steps {
    background-color: #f7f9fa;
}
.process-steps h2 {
    text-align: center;
    margin-bottom: 2em;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.step-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--color-accent-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.step-card h3 {
    margin-top: 0;
}