/* REZET & ZMIENNE BAZOWE */
:root {
    --primary: #1e1b4b; /* Ciemny granat / navy */
    --primary-light: #312e81;
    --accent: #facc15; /* Żółty / Gold dla CTA */
    --accent-hover: #eab308;
    --bg-main: #f8fafc; /* Jasne tło */
    --bg-card: #ffffff;
    --text-main: #334155;
    --text-light: #64748b;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    line-height: 1.6;
    background: var(--bg-main);
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    line-height: 1.3;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* TOP BAR (Języki) */
.top-bar {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 8px 20px;
    background-color: var(--primary);
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar a {
    color: var(--text-white);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-bar a:hover, .top-bar a[aria-current="true"] {
    opacity: 1;
    color: var(--accent);
}

/* HEADER & NAWIGACJA */
header {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

nav a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
}

nav a:hover, nav a[aria-current="page"] {
    color: var(--primary-light);
    border-bottom: 2px solid var(--accent);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    padding: 100px 40px 140px;
    text-align: center;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin: 0 auto 24px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.hero p {
    font-size: 1.25rem;
    margin: 0 auto 40px;
    opacity: 0.85;
    font-weight: 400;
    max-width: 750px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-button {
    background: var(--accent);
    color: var(--primary);
    padding: 16px 36px;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}

.cta-button--secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

.cta-button--secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.hero-sub {
    display: block;
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* MAIN LAYOUT */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* STATS BAR */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.stat-item {
    text-align: center;
}

.stat-val {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* SPLIT SECTIONS (Partner & Driver) */
.split-section {
    display: flex;
    align-items: center;
    gap: 50px;
}

.split-section:nth-of-type(even) {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.split-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    font-weight: 500;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

.split-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mockup-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.split-image--mobile {
    padding: 20px;
}

.mockup-img--mobile {
    max-width: 320px; /* Szerokość typowego telefonu */
    border-radius: 24px; /* Zaokrąglenie ekranu telefonu */
    box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.2), 0 0 0 8px var(--primary); /* Imitacja ramki telefonu */
    border: none;
}

.accounting-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 350px;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    font-family: monospace;
}

.acc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.acc-label {
    color: var(--text-light);
}

.acc-val {
    color: #ef4444; /* red for deductions */
    font-weight: bold;
}

.acc-green {
    color: #10b981; /* green for total */
}

.acc-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.acc-total {
    font-size: 1.3rem;
    margin-bottom: 0;
}

/* GRID SECTIONS (Benefits & FAQ) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    margin: 0;
}

/* CONTACT SECTION */
.contact-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-main);
    transition: border-color 0.2s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: var(--bg-card);
}

.contact-form input.is-invalid, .contact-form textarea.is-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
}

.checkbox-row input {
    width: auto;
    margin: 4px 0 0;
}

.checkbox-row span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-form button {
    width: 100%;
    text-align: center;
}

/* ALERTS */
.form-alert {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
    font-weight: 500;
}
.form-alert--success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.form-alert--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.form-hp {
    position: absolute;
    left: -9999px;
}

/* ARTICLES (SEO Footer) */
.blog-list {
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    list-style: none;
    padding: 0;
}

.post-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.post-card h3 a {
    color: var(--primary);
    font-size: 1.2rem;
    line-height: 1.4;
}

.post-card time {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 10px 0;
}

.post-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.read-more {
    font-weight: 600;
    color: var(--primary-light);
    font-size: 0.9rem;
}
.read-more:hover {
    text-decoration: underline;
}

/* BREADCRUMBS */
.breadcrumbs {
    list-style: none;
    padding: 0 0 30px;
    margin: 0;
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs li::after {
    content: "/";
    margin-left: 10px;
    opacity: 0.5;
}

.breadcrumbs li:last-child::after {
    display: none;
}

.breadcrumbs li[aria-current="page"] {
    color: var(--primary);
    font-weight: 600;
}

.article-locale-switch {
    display: flex;
    gap: 10px;
    margin: -10px 0 24px;
}

.article-locale-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 700;
}

.article-locale-switch a[aria-current="true"] {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* SINGLE ARTICLE */
.post {
    background: var(--bg-card);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.post header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.post .meta {
    color: var(--text-light);
    margin-bottom: 40px;
}
.post .content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* FOOTER */
footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto 30px;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-email {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-email:hover {
    color: var(--accent-hover);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .split-section, .split-section:nth-of-type(even) {
        flex-direction: column;
        gap: 30px;
    }
    .split-image {
        width: 100%;
        min-height: 250px;
    }
    .hero {
        padding: 60px 20px 100px;
        border-radius: 24px;
    }
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .stats-bar {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    .contact-section {
        padding: 30px 20px;
    }
    .post {
        padding: 30px 20px;
    }
}
