:root {
    /* --- BRANDBOOK COLORS (Sekcja 1.9 Brandbook) --- */
    /* [cite: 133, 138, 140, 141] */
    --brand-orange: #FA803E;
    --brand-cyan: #01C5FC;
    --brand-navy: #023064;
    --brand-black: #231F20;
    --brand-white: #FFFFFF;

    /* --- DOMYŚLNE KOLORY (LIGHT) --- */
    --color-bg: #FFFFFF; /* [cite: 119] Zalecane tło białe */
    --color-bg-alt: #F8F9FA;
    --color-text: var(--brand-black);
    --color-text-muted: #555555;
    --color-heading: var(--brand-navy);

    --color-primary: var(--brand-orange);
    --color-secondary: var(--brand-navy);
    --color-accent: var(--brand-cyan);

    --card-bg: #FFFFFF;
    --card-border: #E5E7EB;

    /* Zwiększona przezroczystość dla lepszego "oddechu" w nagłówku */
    --nav-bg: rgba(255, 255, 255, 0.98);

    /* Tła sekcji Hero (pochodne od kolorów brandowych) */
    --hero-parent-bg: #FFF5F0;
    --hero-student-bg: #F0FBFF;

    /* Typografia - Sekcja 1.10 [cite: 157] */
    --font-main: 'Geist', sans-serif;

    --container-width: 1200px;
    --radius: 12px;
}

/* --- MOTYW CIEMNY (DARK MODE) --- */
/* W brandbooku zalecane wersje negatywowe na ciemnym tle [cite: 75, 122] */
[data-theme="dark"] {
    --color-bg: #011a36; /* Ciemny granat nawiązujący do brand-navy */
    --color-bg-alt: #022347;
    --color-text: #E0E0E0;
    --color-text-muted: #B0B0B0;
    --color-heading: #FFFFFF;

    --color-primary: var(--brand-orange);
    --color-secondary: #FFFFFF;
    --color-accent: var(--brand-cyan);

    --card-bg: #022347;
    --card-border: #034085;
    --nav-bg: #011a36;

    --hero-parent-bg: #022347;
    --hero-student-bg: #00334d;
}

/* --- MOTYW WYSOKIEGO KONTRASTU --- */
[data-theme="contrast"] {
    --color-bg: #000000;
    --color-bg-alt: #000000;
    --color-text: #FFFF00;
    --color-text-muted: #FFFFFF;
    --color-heading: #FFFFFF;

    --color-primary: #FFFF00;
    --color-secondary: #FFFFFF;
    --color-accent: #FFFF00;

    --card-bg: #000000;
    --card-border: #FFFFFF;
    --nav-bg: #000000;
    --hero-parent-bg: #000000;
    --hero-student-bg: #000000;
    --radius: 0px;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    /* Brandbook s.18: P GEIST REGULAR 18/1,5  */
    line-height: 1.5;
    font-weight: 400; /* Regular [cite: 160] */
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
}

/* TYPOGRAFIA ZGODNA Z BRANDBOOKIEM (s. 16-19) */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    margin-bottom: 0.8em;
}

h1 {
    /* Brandbook sugeruje Titan One lub mocny Geist dla nagłówków [cite: 174, 182] */
    font-weight: 800; /* ExtraBold */
    line-height: 1.2;
}

h2 {
    /* Brandbook s.16: H2 GEIST BLACK 40/1,3  */
    font-weight: 800; /* ExtraBold/Black */
    line-height: 1.3;
}

h3 {
    /* Brandbook s.17: H3 GEIST BOLD 32/1,3 [cite: 198] */
    font-weight: 700; /* Bold */
    line-height: 1.3;
}

h4, h5 {
    /* Brandbook s.17-18: GEIST SEMIBOLD [cite: 202, 210] */
    font-weight: 600; /* SemiBold */
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul, li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

/* UTILS */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.center {
    text-align: center;
}

.section-padding {
    padding: 5rem 0;
}

.text-link {
    color: var(--color-heading);
    text-decoration: underline;
    font-weight: 600;
}

.text-link:hover {
    color: var(--color-primary);
}

/* HEADER */
.site-header {
    /* Padding zapewnia przestrzeń pionową */
    padding: 1.2rem 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
}

/* BRAND LOGO - STRICT RULES */
.brand {
    margin-right: 2rem;
    display: flex;
    align-items: center;
}

.brand img {
    height: 44px !important;
    width: auto;
    display: block;
}

[data-theme="contrast"] .site-header {
    border-bottom: 2px solid #fff;
}

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

/* NAV TOGGLE */
.nav-toggle {
    display: none;
}

/* NAV */
.site-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.site-nav a {
    /* Brandbook s.13: Font Geist Regular/SemiBold [cite: 158] */
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.95rem;
}

.site-nav a:hover, .site-nav a.active {
    color: var(--color-primary);
}

/* BUTTONS */
.btn {
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 700; /* Bold dla przycisków */
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- PRIMARY BUTTON --- */
.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: #d96d32;
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(250, 128, 62, 0.4);
    transform: translateY(-2px);
}

[data-theme="contrast"] .btn-primary {
    background-color: #FFFF00 !important;
    color: #000000 !important;
    border: 2px solid #fff;
    box-shadow: none;
}

[data-theme="contrast"] .btn-primary:hover {
    background-color: #000 !important;
    color: #FFFF00 !important;
    border-color: #FFFF00;
}

/* --- ACCENT BUTTON --- */
.btn-accent {
    background-color: var(--color-accent);
    color: var(--brand-navy); /* Kontrast cyan-navy [cite: 138, 140] */
}

.btn-accent:hover {
    filter: brightness(1.05);
}

/* --- OUTLINE BUTTON --- */
.btn-outline {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn-outline:hover {
    background-color: var(--color-secondary);
    color: #fff;
}

[data-theme="dark"] .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

[data-theme="dark"] .btn-outline:hover {
    background-color: #ffffff;
    color: var(--brand-navy);
}

[data-theme="contrast"] .btn-outline {
    border-color: #FFFF00;
    color: #FFFF00;
    background: transparent;
}

[data-theme="contrast"] .btn-outline:hover {
    background-color: #FFFF00;
    color: #000000;
}

/* THEME & LANG SWITCHER */
.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.theme-btn svg {
    width: 22px;
    height: 22px;
}

.icon-sun, .icon-moon, .icon-contrast {
    display: none;
}

html:not([data-theme]) .icon-sun, html[data-theme="light"] .icon-sun {
    display: block;
}

html[data-theme="dark"] .icon-moon {
    display: block;
}

html[data-theme="contrast"] .icon-contrast {
    display: block;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    border-right: 1px solid var(--card-border);
    padding-right: 15px;
}

.lang-switcher a {
    opacity: 0.6;
    filter: grayscale(1);
    font-size: 1.2rem;
}

.lang-switcher a:hover, .lang-switcher a.active {
    opacity: 1;
    filter: grayscale(0);
}

/* HERO SECTION */
.hero {
    padding: 8rem 0 5rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
    transition: background-color 0.5s ease;
    overflow: hidden;
}

[data-mode="parent"] .hero {
    background-color: var(--hero-parent-bg);
}

[data-mode="student"] .hero {
    background-color: var(--hero-student-bg);
}

.hero-stack-container {
    display: grid;
    grid-template-areas: "stack";
    align-items: center;
    min-height: 500px;
}

.hero-content {
    grid-area: stack;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 0.5rem;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-content.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 1;
}

.hero-text h1 {
    /* Brandbook H1 style reference [cite: 182] */
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--color-heading);
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: var(--color-text-muted);
    max-width: 90%;
    /* Brandbook P style reference 1.5  */
    line-height: 1.5;
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-parent {
    background: rgba(250, 128, 62, 0.15); /* Brand Orange 15% */
    color: var(--brand-orange);
}

.badge-student {
    background: rgba(1, 197, 252, 0.15); /* Brand Cyan 15% */
    color: #009ac7; /* Darker cyan for text readability */
}

[data-theme="contrast"] .badge-parent,
[data-theme="contrast"] .badge-student {
    background: #222;
    color: #FFFF00;
    border: 1px solid #FFFF00;
}

.highlight-parent {
    color: var(--brand-orange);
}

.highlight-student {
    color: var(--brand-cyan);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* SWITCHER UI */
.mode-switcher-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.switcher-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.mode-switcher {
    background: var(--card-bg);
    padding: 5px;
    border-radius: 60px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--card-border);
}

.switch-btn {
    border: none;
    background: transparent;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: 0.3s;
}

.switch-btn.active[data-target="parent"] {
    background-color: var(--brand-orange);
    color: #fff;
    box-shadow: 0 4px 15px rgba(250, 128, 62, 0.3);
}

.switch-btn.active[data-target="student"] {
    background-color: var(--brand-cyan);
    color: var(--brand-navy);
    box-shadow: 0 4px 15px rgba(1, 197, 252, 0.3);
}

/* VIDEO STYLING */
.video-wrapper {
    width: 100%;
    /* To kluczowe: ucina ostre rogi wideo, żeby pasowały do zaokrąglonej ramki */
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid transparent;
    display: flex;
}

/* Kolor ramki dla Ucznia (Cyan) */
.student-wrapper {
    border-color: var(--brand-cyan);
}

/* Kolor ramki dla Rodzica (Orange) */
.parent-wrapper {
    border-color: var(--brand-orange);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    /* Wypełnia ramkę bez pasów */
    object-fit: cover;
    display: block;
}

/* PLACEHOLDERS (Fallback if no video) */
.placeholder-img {
    width: 100%;
    height: 420px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.parent-placeholder {
    background: #fff;
    border: 1px solid var(--brand-orange);
    color: var(--brand-orange);
}

.student-placeholder {
    background: #fff;
    border: 1px solid var(--brand-cyan);
    color: var(--brand-cyan);
}

/* FEATURES GRID & ICONS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card h3 {
    color: var(--color-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    /* Zgodność z H3 Geist Bold [cite: 198] */
    font-weight: 700;
}

.card p {
    color: var(--color-text-muted);
}

.icon-box svg {
    width: 48px;
    height: 48px;
}

.icon-orange {
    color: var(--brand-orange);
}

.icon-cyan {
    color: var(--brand-cyan);
}

.icon-navy {
    color: var(--brand-navy);
}

[data-theme="dark"] .icon-navy {
    color: #fff;
}

/* FOOTER */
.site-footer {
    background: var(--brand-navy);
    color: #fff;
    padding: 4rem 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 20px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--brand-cyan);
    text-decoration: none;
}

[data-theme="contrast"] .site-footer {
    border-top: 2px solid #fff;
}

/* SUBPAGES & FAQ */
.page-hero {
    background-color: var(--color-bg-alt);
    padding: 7rem 0 4rem;
    text-align: center;
    margin-bottom: 3rem;
}

.page-hero h1 {
    font-size: 2.8rem;
    color: var(--color-heading);
    margin-bottom: 1rem;
    font-weight: 800;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.page-content {
    max-width: 800px;
    margin: 0 auto 5rem;
}

.text-section h2 {
    color: var(--color-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.feature-list li {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

details {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1.2rem;
}

details[open] {
    border-color: var(--color-accent);
}

summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 40px;
    color: var(--color-heading);
    font-size: 1.1rem;
}

summary::after {
    content: '+';
    position: absolute;
    right: 0;
    font-weight: 800;
    color: var(--color-primary);
    font-size: 1.5rem;
    line-height: 1.2rem;
}

details[open] summary::after {
    content: '-';
}

.answer {
    margin-top: 1rem;
    color: var(--color-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
    line-height: 1.5;
}

.cta-box {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem;
    background: var(--color-bg-alt);
    border-radius: 20px;
}

/* --- PROCESS DIAGRAM (JAK TO DZIAŁA) --- */
.process-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 3rem;
    gap: 1rem;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Ikony kroków (Kółka) */
.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 3px solid transparent;
}

.process-step:hover .step-icon {
    transform: scale(1.1);
}

.step-icon svg {
    width: 32px;
    height: 32px;
}

/* Kolorystyka zgodna z rolami (Brandbook) */
.icon-parent {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

.icon-invite {
    border-color: var(--brand-orange);
    color: var(--brand-navy);
}

.icon-student {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
    background: #f0fbff;
}

.icon-view {
    border-color: var(--brand-navy);
    color: var(--brand-navy);
    background: #fff;
}

/* Mały numerek przy ikonie */
.step-num {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: var(--brand-navy);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-heading);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Łączniki (Linie między krokami) */
.process-connector {
    flex-grow: 1;
    height: 3px;
    background: #e0e0e0;
    margin-top: 35px; /* Połowa wysokości ikony */
    border-radius: 2px;
    position: relative;
    top: 0;
    z-index: 1;
    max-width: 100px;
}

/* RESPONSYWNOŚĆ (MOBILE) */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-toggle .hamburger {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--color-text);
        position: relative;
        top: 14px;
    }

    .nav-toggle .hamburger::before, .nav-toggle .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--color-text);
    }

    .nav-toggle .hamburger::before {
        top: -8px;
    }

    .nav-toggle .hamburger::after {
        top: 8px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 6rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        padding: 2rem;
        border-bottom: 1px solid var(--card-border);
    }

    .site-nav.open {
        display: flex;
    }

    /* Process Mobile */
    .process-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .process-step {
        flex-direction: row;
        text-align: left;
        width: 100%;
        max-width: 500px;
        margin-bottom: 2rem;
        align-items: flex-start;
    }

    .step-icon {
        margin-bottom: 0;
        margin-right: 1.5rem;
        flex-shrink: 0;
    }

    /* Linia pionowa na mobile */
    .process-connector {
        display: none; /* Ukrywamy poziome łączniki */
    }

    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 35px; /* Środek ikony */
        top: 70px;
        bottom: -30px;
        width: 2px;
        background: #e0e0e0;
        z-index: 0;
    }
}

/* MEDIA QUERY DLA WIDEO NA DESKTOP */
@media (min-width: 900px) {
    .video-wrapper {
        height: 420px; /* Sztywna wysokość tylko na dużym ekranie */
    }
}

/* ===========================
   BLOG / BAZA WIEDZY
   =========================== */

.blog-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.blog-hero {
    background: var(--brand-navy);
    color: var(--brand-white);
    padding: 4rem 0 3rem;
    text-align: center;
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 3rem;
}

.blog-hero .container {
    max-width: var(--container-width);
}

.blog-hero h1 {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: var(--brand-white);
}

.blog-hero p {
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.9;
    color: var(--brand-white);
}

.blog-hero .container {
    max-width: var(--container-width);
}

.blog-hero h1 {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.blog-hero p {
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Siatka kart z postami */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

/* Karta posta */
.post-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-border);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--color-accent);
}

.post-image {
    height: 200px;
    background-color: #e0e0e0;
    object-fit: cover;
    width: 100%;
}

.post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-date {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.post-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.3;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    text-decoration: underline;
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0 0 1.2rem 0;
}

.read-more {
    margin-top: auto;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more::after {
    content: "→";
    font-size: 1rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Footer bloga – korzysta z tego samego .site-footer, ale łatwiej go wypchnąć na dół */
.blog-footer {
    margin-top: auto;
}

/* --- POJEDYNCZY POST --- */

.post {
    max-width: 760px;
    margin: 0 auto 4rem;
    padding: 2.5rem 1.5rem 4rem;
}

.post h1 {
    font-size: clamp(2.2rem, 4vw, 2.6rem);
    color: var(--color-heading);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.post .meta {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 2rem;
}

.post h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.4rem;
}

.post p {
    line-height: 1.7;
    margin-bottom: 1.4rem;
}

/* Drobne dopasowania dla wysokiego kontrastu */
[data-theme="contrast"] .blog-hero {
    background: #000000;
    color: #FFFFFF;
    border-radius: 0;
    border-bottom: 2px solid var(--color-accent);
}

[data-theme="contrast"] .post-card {
    background: #000000;
    box-shadow: none;
    border-color: #FFFFFF;
}

[data-theme="contrast"] .post-title,
[data-theme="contrast"] .post-excerpt,
[data-theme="contrast"] .post-date {
    color: #FFFFFF;
}

[data-theme="contrast"] .read-more {
    color: #FFFF00;
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-heading);
}

.back-link:hover {
    color: var(--color-primary);
}
