:root {
    --primary: #3D2817;        /* głęboki brąz kory */
    --secondary: #6B4423;      /* ciepły orzech */
    --accent: #A67C3A;         /* miodowy bursztyn */
    --bg: #F5EFE6;             /* kremowy pergamin */
    --bg-card: #FFFFFF;
    --text: #2A1F15;           /* prawie czarny brąz */
    --text-light: #6B5C4F;
    --border: #D9CFC0;         /* ciepły beż */
    --success: #4A7C59;        /* zielony las */
    --danger: #A63D40;
    --river: #5B7C8F;          /* łupkowy błękit rzeki */
    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-body), sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-feature-settings: 'kern' 1, 'liga' 1;
    /* Subtelna tekstura pergaminu — diagonalne włókna + drobny szum */
    background-image:
        repeating-linear-gradient(135deg, rgba(166, 124, 58, 0.025) 0px, rgba(166, 124, 58, 0.025) 1px, transparent 1px, transparent 9px),
        repeating-linear-gradient(45deg, rgba(61, 40, 23, 0.018) 0px, rgba(61, 40, 23, 0.018) 1px, transparent 1px, transparent 13px);
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    font-family: var(--font-display), serif;
    font-optical-sizing: auto;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

header {
    background: var(--primary);
    color: #F5EFE6;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}
.logo {
    font-family: var(--font-display), serif;
    font-size: 30px;
    font-weight: 600;
    font-style: italic;
    letter-spacing: -0.01em;
    text-transform: none;
}
.logo a {
    color: #F5EFE6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo span { color: var(--accent); }
.logo-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
nav { display: flex; gap: 30px; }
nav a {
    color: #F5EFE6;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--accent); }
.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: #F5EFE6;
    text-decoration: none;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 60vh;
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #5C4028 100%);
    color: #F5EFE6;
    padding: 80px 40px;
    border-radius: 8px;
    margin-bottom: 50px;
    text-align: center;
}
.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    font-weight: 500;
    font-variation-settings: 'opsz' 144;
}
.hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}
.hero p { font-size: 18px; opacity: 0.88; max-width: 600px; margin: 0 auto 30px; line-height: 1.55; }
.hero-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 14px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background 0.2s;
    font-size: 16px;
    font-family: inherit;
    border: none;
    cursor: pointer;
}
.hero-btn:hover { background: #C09850; }

.section-title {
    font-size: 36px;
    margin-bottom: 35px;
    text-align: center;
    position: relative;
    font-weight: 500;
    letter-spacing: -0.015em;
}
.section-title em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 14px auto 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text);
    display: block;
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.category-icon { font-size: 48px; margin-bottom: 15px; }
.category-card h3 { font-size: 20px; margin-bottom: 8px; }
.category-card p { color: var(--text-light); font-size: 14px; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #E5DAC8 0%, #D9CFC0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    overflow: hidden;
}
.product-image a { text-decoration: none; display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
}
.product-info { padding: 20px; }
.product-category {
    font-size: 12px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.product-info h3 { font-size: 18px; margin-bottom: 8px; font-weight: 500; letter-spacing: -0.005em; }
.product-info h3 a { color: var(--text); text-decoration: none; }
.product-info h3 a:hover { color: var(--secondary); }
.product-price {
    font-family: var(--font-display), serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: background 0.2s;
}
.btn-primary { background: var(--primary); color: #F5EFE6; }
.btn-primary:hover { background: #2A1810; }
.btn-accent { background: var(--accent); color: var(--primary); font-weight: bold; }
.btn-accent:hover { background: #C09850; }
.btn-block { display: block; width: 100%; text-align: center; }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.product-detail-image {
    background: linear-gradient(135deg, #E5DAC8 0%, #D9CFC0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    min-height: 400px;
    overflow: hidden;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: 38px; margin-bottom: 12px; font-weight: 500; letter-spacing: -0.015em; }
.product-detail-info .product-category { margin-bottom: 15px; }
.product-detail-info .product-price { font-size: 28px; margin-bottom: 20px; }
.product-detail-info .description { color: var(--text-light); margin-bottom: 25px; line-height: 1.8; }
.quantity-selector { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.quantity-selector button {
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
}
.quantity-selector span { font-size: 18px; min-width: 30px; text-align: center; }

.cart-panel {
    position: fixed;
    right: -420px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 200;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}
.cart-panel.open { right: 0; }
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.cart-header h2 { font-size: 22px; font-weight: 500; }
.cart-close { background: none; border: none; font-size: 24px; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item-icon {
    width: 60px; height: 60px;
    background: #E5DAC8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.cart-item-details { flex: 1; }
.cart-item-details h4 { font-size: 14px; margin-bottom: 4px; }
.cart-item-details .price { color: var(--secondary); font-weight: bold; }
.cart-item-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 18px; }
.cart-footer { padding: 20px; border-top: 1px solid var(--border); }
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}
.cart-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 199;
    display: none;
}
.cart-overlay.open { display: block; }

body.checkout-modal-open { overflow: hidden; }

.checkout-modal {
    position: fixed;
    inset: 0;
    background: rgba(42, 31, 21, 0.55);
    z-index: 260;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.checkout-modal.open { display: flex; }
.checkout-dialog {
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(42, 31, 21, 0.25);
}
.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.checkout-header h2 {
    font-size: 24px;
    font-weight: 500;
}
.checkout-close {
    width: 36px;
    height: 36px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text);
    font-size: 24px;
    line-height: 1;
}
.checkout-form { padding: 22px 24px 24px; }
.checkout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.checkout-grid .form-group { margin-bottom: 0; }
.checkout-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: var(--text-light);
    font-weight: 500;
}
.checkout-consent input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex: 0 0 auto;
}
.checkout-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: #FAF6F0;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-weight: 600;
}
.checkout-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}
.checkout-actions .btn { min-width: 140px; }

.contact-container { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: bold; font-size: 14px; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    background: var(--bg-card);
}
.form-group textarea { height: 150px; resize: vertical; }

.newsletter {
    background: var(--primary);
    color: #F5EFE6;
    padding: 60px 40px;
    border-radius: 4px;
    text-align: center;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}
.newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(45deg, rgba(245, 239, 230, 0.025) 0px, rgba(245, 239, 230, 0.025) 1px, transparent 1px, transparent 14px);
    pointer-events: none;
}
.newsletter h2 { margin-bottom: 12px; font-size: 32px; font-weight: 500; font-style: italic; letter-spacing: -0.015em; }
.newsletter p { opacity: 0.82; margin-bottom: 24px; max-width: 540px; margin-left: auto; margin-right: auto; font-size: 16px; }
.newsletter-form { display: flex; gap: 10px; max-width: 500px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 12px; border: none; border-radius: 4px; font-size: 15px; font-family: inherit; }

footer {
    background: var(--primary);
    color: #F5EFE6;
    padding: 40px 20px;
    margin-top: 50px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.footer-section h3 { margin-bottom: 15px; color: var(--accent); font-size: 20px; font-weight: 500; font-style: italic; }
.footer-section p, .footer-section a {
    color: #c4b8a8;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}
.footer-section a:hover { color: var(--accent); }
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #8a7d6f;
}

.thank-you { text-align: center; padding: 60px 20px; }
.thank-you h1 { color: var(--success); margin-bottom: 15px; font-size: 42px; font-weight: 500; letter-spacing: -0.015em; }

.category-description {
    text-align: center;
    font-family: var(--font-display), serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    color: var(--text-light);
    max-width: 720px;
    margin: -18px auto 32px;
    line-height: 1.55;
    letter-spacing: -0.005em;
}
.category-description code {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    background: var(--border);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85em;
    font-style: normal;
}
.breadcrumb { margin-bottom: 25px; font-size: 14px; color: var(--text-light); }
.breadcrumb a { color: var(--secondary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.filter-bar { display: flex; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: #F5EFE6;
    border-color: var(--primary);
}

.toast {
    position: fixed;
    bottom: 30px; right: 30px;
    background: var(--primary);
    color: #F5EFE6;
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 300;
}
.toast.show { transform: translateY(0); opacity: 1; }

.simulator-toggle {
    position: fixed;
    bottom: 20px; left: 20px;
    background: var(--danger);
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    z-index: 300;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}
.simulator-panel {
    position: fixed;
    bottom: 60px; left: 20px;
    width: 380px;
    max-height: 500px;
    background: #1a1a2e;
    color: #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    z-index: 300;
    display: none;
    flex-direction: column;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}
.simulator-panel.open { display: flex; }
.simulator-header {
    padding: 12px 15px;
    background: #16213e;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.simulator-header h3 { font-size: 14px; color: #e94560; }
.simulator-controls {
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid #2a2a4a;
}
.sim-btn {
    padding: 5px 12px;
    border: 1px solid #3a3a5a;
    background: #2a2a4a;
    color: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
}
.sim-btn:hover { background: #3a3a6a; }
.sim-btn.active { background: #e94560; border-color: #e94560; }
.simulator-log { flex: 1; overflow-y: auto; padding: 10px 15px; max-height: 300px; }
.log-entry { padding: 4px 0; border-bottom: 1px solid #2a2a3a; }
.log-time { color: #666; }
.log-action { color: #e94560; font-weight: bold; }
.log-email { color: #4ecdc4; }
.log-anon { color: #f9a825; }

/* =========================================================
   HERO SPLIT — asymetryczny hero z ilustracją bobra
   ========================================================= */
.hero-split {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
    padding: 70px 60px;
    background: linear-gradient(135deg, var(--primary) 0%, #5C4028 65%, #6B4423 100%);
    color: #F5EFE6;
    border-radius: 4px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}
.hero-split::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(60deg, rgba(245, 239, 230, 0.03) 0px, rgba(245, 239, 230, 0.03) 1px, transparent 1px, transparent 18px);
    pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }
.hero-text h1 {
    font-size: 60px;
    margin-bottom: 24px;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.025em;
}
.hero-text p {
    font-size: 18px;
    opacity: 0.88;
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.55;
}
.hero-eyebrow {
    font-family: var(--font-body), sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 20px;
    display: inline-block;
}
.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-visual svg,
.hero-visual img {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 8px 30px rgba(0,0,0,0.25));
}
.hero-visual img {
    border-radius: 6px;
    display: block;
}

/* =========================================================
   MANIFEST — sekcja z cytatem i 3 wartościami marki
   ========================================================= */
.manifest {
    text-align: center;
    padding: 70px 30px;
    margin: 60px 0;
    position: relative;
}
.manifest-quote {
    font-family: var(--font-display), serif;
    font-size: 32px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    color: var(--primary);
    max-width: 720px;
    margin: 0 auto 14px;
    letter-spacing: -0.015em;
    position: relative;
}
.manifest-quote::before {
    content: '"';
    position: absolute;
    left: -30px;
    top: -20px;
    font-size: 90px;
    color: var(--accent);
    opacity: 0.4;
    line-height: 1;
    font-family: var(--font-display), serif;
}
.manifest-attribution {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-light);
    margin-bottom: 50px;
}
.manifest-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}
.manifest-value {
    padding: 0 10px;
}
.manifest-value-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    color: var(--accent);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.manifest-value h3 {
    font-size: 22px;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 10px;
    color: var(--primary);
    letter-spacing: -0.01em;
}
.manifest-value p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.55;
    max-width: 240px;
    margin: 0 auto;
}

/* =========================================================
   SECTION DIVIDER — falowana drewniana linia między sekcjami
   ========================================================= */
.section-divider {
    display: flex;
    justify-content: center;
    margin: 50px 0;
    color: var(--accent);
    opacity: 0.7;
}
.section-divider svg {
    width: 220px;
    height: 22px;
}

/* =========================================================
   AI BADGE — odznaka na produktach AI-wspomaganych
   ========================================================= */
.product-card { position: relative; }
.ai-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--primary);
    font-family: var(--font-body), sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(42, 31, 21, 0.22);
    cursor: help;
}

/* =========================================================
   PRACOWNIA CYFROWA — sekcja behind-the-scenes ML/AI
   ========================================================= */
.digital-lab {
    margin: 70px 0;
    padding: 60px 40px;
    background: linear-gradient(135deg, #2A1F15 0%, #3D2817 60%, #4A3220 100%);
    color: #F5EFE6;
    border-radius: 4px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.digital-lab::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(60deg, rgba(245, 239, 230, 0.025) 0px, rgba(245, 239, 230, 0.025) 1px, transparent 1px, transparent 16px),
        repeating-linear-gradient(-30deg, rgba(166, 124, 58, 0.04) 0px, rgba(166, 124, 58, 0.04) 1px, transparent 1px, transparent 22px);
    pointer-events: none;
}
.digital-lab > * { position: relative; z-index: 1; }
.digital-lab .section-title { color: #F5EFE6; margin-bottom: 50px; }
.digital-lab .section-title em { color: var(--accent); }
.digital-lab .section-title::after { background: var(--accent); }

.lab-eyebrow {
    display: inline-block;
    font-family: var(--font-body), sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: 18px;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}
.lab-card {
    background: rgba(245, 239, 230, 0.05);
    border: 1px solid rgba(166, 124, 58, 0.3);
    border-radius: 4px;
    padding: 32px 28px;
    transition: border-color 0.2s, background 0.2s;
}
.lab-card:hover {
    border-color: var(--accent);
    background: rgba(245, 239, 230, 0.08);
}
.lab-card-stat {
    font-family: var(--font-display), serif;
    font-size: 56px;
    font-weight: 500;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}
.lab-card-stat span {
    font-size: 22px;
    margin-left: 4px;
    opacity: 0.72;
    font-style: italic;
}
.lab-card-label {
    font-family: var(--font-body), sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(245, 239, 230, 0.55);
    margin-bottom: 22px;
}
.lab-card h3 {
    color: #F5EFE6;
    font-size: 22px;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.lab-card p {
    color: rgba(245, 239, 230, 0.78);
    font-size: 14px;
    line-height: 1.6;
}
.lab-signature {
    margin-top: 48px;
    font-size: 13px;
    color: rgba(245, 239, 230, 0.58);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.lab-signature strong {
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-display), serif;
    font-style: italic;
    letter-spacing: 0.01em;
}

/* =========================================================
   SKILL MARKETPLACE — sekcja D, .skill files jak produkty
   ========================================================= */
.skills-marketplace { margin: 70px 0 50px; }
.skills-marketplace .section-title { margin-bottom: 14px; }
.skills-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    max-width: 720px;
    margin: 0 auto 45px;
    line-height: 1.65;
}
.skills-intro code {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    background: var(--border);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 13px;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.skill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 31, 21, 0.1);
}
.skill-header {
    background: var(--primary);
    color: #F5EFE6;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent);
}
.skill-filename {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 14px;
    font-weight: 500;
}
.skill-price {
    font-family: var(--font-display), serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.01em;
}
.skill-frontmatter {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text);
    padding: 20px;
    background: #FAF6F0;
    margin: 0;
    white-space: pre-wrap;
    flex: 1;
}
.skill-cta {
    margin: 16px 20px 20px;
    text-align: center;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 25px;
        gap: 30px;
    }
    .hero-text h1 { font-size: 38px; }
    .hero-text p { max-width: none; margin-left: auto; margin-right: auto; }
    .hero-visual svg { max-width: 280px; }
    .manifest-quote { font-size: 22px; }
    .manifest-quote::before { display: none; }
    .manifest-values { grid-template-columns: 1fr; gap: 30px; }
    .digital-lab { padding: 40px 25px; margin: 40px 0; }
    .lab-grid { grid-template-columns: 1fr; gap: 18px; }
    .lab-card { padding: 26px 22px; }
    .lab-card-stat { font-size: 42px; }
    .skills-grid { grid-template-columns: 1fr; gap: 18px; }
    .skill-frontmatter { font-size: 12px; padding: 16px; }
    .ai-badge { font-size: 9px; padding: 3px 8px; top: 8px; right: 8px; }
    .section-title { font-size: 28px; }
    .product-detail { grid-template-columns: 1fr; }
    .product-detail-info h1 { font-size: 30px; }
    .footer-content { grid-template-columns: 1fr; }
    nav { gap: 15px; }
    nav a { font-size: 12px; }
    .newsletter-form { flex-direction: column; }
    .logo { font-size: 24px; }
    .logo-icon { width: 36px; height: 36px; }
    .checkout-modal {
        align-items: flex-end;
        padding: 0;
    }
    .checkout-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 8px 8px 0 0;
    }
    .checkout-header { padding: 18px 20px; }
    .checkout-form { padding: 18px 20px 20px; }
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-actions { flex-direction: column-reverse; }
    .checkout-actions .btn {
        width: 100%;
        min-width: 0;
    }
}
