/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Merriweather:wght@300;400;700&display=swap');

:root {
    --color-primary: #1e3a8a; /* Deep blue */
    --color-primary-light: #2563eb;
    --color-accent: #ea580c; /* Educational orange */
    --color-accent-hover: #c2410c;
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-bg: #ffffff;
    --color-bg-alt: #f1f5f9;
    --color-border: #e2e8f0;
    
    --font-sans: 'Lato', sans-serif;
    --font-serif: 'Merriweather', serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

/* FIX: Utrzymanie stopki na dole */
body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--color-primary);
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--color-accent);
    color: white;
}

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

.btn--outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

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

.btn--xl {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(to right bottom, #ebf4ff, #e0e7ff);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 100 100" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,100 L100,0 L100,100 Z" fill="rgba(255,255,255,0.3)"/></svg>');
    z-index: 1;
    pointer-events: none;
}

.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--color-primary-light);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero__text .hero__desc {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 24px;
}

.hero__btns {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.stats-row {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-item span {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    font-weight: 700;
}

.hero__visual {
    position: relative;
}

.hero-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-hover);
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--color-primary-light);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.hero-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.feature-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    font-size: 1.125rem;
    color: var(--color-primary);
    margin-bottom: 4px;
    font-family: var(--font-serif);
}

.feature-text small {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Sections General */
.section {
    padding: 80px 0;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

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

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary-light);
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.card:hover::after {
    transform: scaleX(1);
}

.card__icon {
    width: 64px;
    height: 64px;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
}

.card p {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* Split Section */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split__content .overline {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.benefit-list {
    list-style: none;
    margin: 32px 0;
}

.benefit-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.benefit-list li i {
    font-size: 1.5rem;
    color: var(--color-primary-light);
    background: #e0e7ff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-list strong {
    display: block;
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 4px;
    font-family: var(--font-serif);
}

.benefit-list span {
    color: var(--color-text-light);
}

/* Graphic elements */
.dashboard-mockup {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    padding: 24px;
    border: 1px solid var(--color-border);
}

.dash-heading {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
}

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

.progress-group:last-child {
    margin-bottom: 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-text);
}

.progress-track {
    height: 12px;
    background: var(--color-bg-alt);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary-light);
    border-radius: 10px;
}

.fill-orange { background: var(--color-accent); }
.fill-green { background: #10b981; }

/* CTA Section */
.cta-section {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M10,10 L90,90 Z" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    background-size: 100px 100px;
    pointer-events: none;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    color: #cbd5e1;
    font-size: 1.25rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn--primary {
    background-color: white;
    color: var(--color-primary);
}

.cta-section .btn--primary:hover {
    background-color: var(--color-bg-alt);
}

/* NEW: Top Notice & Publisher Nav */
.top-notice {
    background-color: #0f172a;
    color: white;
    font-size: 0.875rem;
    padding: 8px 0;
    text-align: center;
}
.top-notice a {
    color: var(--color-accent);
    font-weight: 700;
    margin-left: 8px;
    text-decoration: underline;
}

.publisher-nav {
    background: white;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    position: sticky;
    top: 80px; /* Przykleja się zaraz pod głównym headerem */
    z-index: 999;
    box-shadow: var(--shadow-sm);
}
.pub-nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.pub-links {
    display: flex;
    gap: 32px;
    list-style: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text);
}
.pub-links a:hover {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* NEW: News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.news-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}
.news-date {
    background: var(--color-primary);
    color: white;
    font-size: 0.875rem;
    padding: 8px 16px;
    display: inline-block;
    border-radius: 0 0 8px 0;
    font-weight: 700;
    align-self: flex-start;
}
.news-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.news-category {
    color: var(--color-accent);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.news-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}
.news-link {
    margin-top: auto;
    font-weight: 700;
    color: var(--color-primary-light);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.news-link:hover {
    color: var(--color-accent);
}

/* NEW: Books Section */
.books-section {
    background-color: var(--color-bg);
}
.book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.book-card {
    text-align: center;
    position: relative;
    cursor: pointer;
}
.book-card:hover .book-cover {
    transform: translateY(-8px);
    box-shadow: inset -5px 0 15px rgba(0,0,0,0.3), var(--shadow-hover);
}
.book-card:hover h3 {
    color: var(--color-primary-light);
}
.book-cover {
    height: 320px;
    background: linear-gradient(135deg, var(--color-primary), #0c2152);
    color: white;
    border-radius: 2px 16px 16px 2px;
    box-shadow: inset -5px 0 15px rgba(0,0,0,0.3), var(--shadow-md);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: var(--transition);
    border-left: 12px solid #0f172a;
    margin-bottom: 24px;
}
.book-cover--orange {
    background: linear-gradient(135deg, var(--color-accent), #9a3605);
}
.book-cover--green {
    background: linear-gradient(135deg, #059669, #064e3b);
}
.book-cover--cyan {
    background: linear-gradient(135deg, #0891b2, #164e63);
}
.book-cover .book-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 16px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.book-cover .book-level {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
}
.book-info h3 {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--color-text);
    transition: var(--transition);
}
.book-info p {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* NEW: Logos Grid */
.partners-section {
    padding: 40px 0;
    background: white;
}
.partners-title {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 24px;
}
.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}
.logo-item {
    font-size: 1.5rem;
    color: var(--color-text-light);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
    transition: var(--transition);
    filter: grayscale(100%);
    font-family: var(--font-serif);
}
.logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    color: var(--color-primary);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .hero__grid, .split, .grid-3, .news-grid {
        grid-template-columns: 1fr;
    }
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero__grid { gap: 40px; }
    h1 { font-size: 2.5rem; }
    
    .hero__btns {
        flex-direction: column;
    }
    
    .stats-row {
        justify-content: space-between;
    }
    .pub-links {
        flex-wrap: wrap;
        gap: 16px;
    }
}
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .stats-row {
        flex-direction: column;
        gap: 20px;
    }
    .book-grid {
        grid-template-columns: 1fr;
    }
}