/* DESIGN SYSTEM APPLIED */
/* ========================================
   DESIGN SYSTEM & VARIABLES
   ======================================== */
:root {
    /* Design tokens */
    --primary: #FF6A00;
    --secondary: #4ADE80;
    --text-dark: #222222;
    --text-light: #FFFFFF;
    --bg-light: #F5F5F5;
    --surface: var(--text-light);
    --surface-muted: color-mix(in srgb, var(--text-light) 82%, var(--text-dark) 18%);
    --border: color-mix(in srgb, var(--text-dark) 18%, transparent);
    --success: var(--secondary);
    --error: #E53935;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "IBM Plex Mono", monospace;
    --h1-size: 3rem;
    --h2-size: 2.25rem;
    --h3-size: 1.75rem;
    --h4-size: 1.5rem;
    --text-base: 1rem;
    --text-small: 0.875rem;
    --line-heading: 1.2;
    --line-body: 1.6;
    --line-button: 1;
    --fw-regular: 400;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;

    /* Borders & Elevation */
    --radius: 12px;
    --radius-button: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);

    /* Motion */
    --easing: cubic-bezier(0.33, 1, 0.68, 1);

    /* Legacy aliases */
    --bg: var(--bg-light);
    --surface-alt: var(--surface-muted);
    --ink: var(--text-dark);
    --ink-white: var(--text-light);
    --ink-black: var(--text-dark);
    --muted: color-mix(in srgb, var(--text-dark) 82%, var(--text-light) 18%);
    --text-subtle: color-mix(in srgb, var(--text-dark) 78%, var(--text-light) 22%);
    --line: var(--border);
    --line-strong: color-mix(in srgb, var(--text-dark) 32%, transparent);
    --accent: var(--primary);
    --accent-light: color-mix(in srgb, var(--primary) 60%, var(--text-light));
    --accent-ink: var(--text-dark);
    --hero-gradient: linear-gradient(135deg,
            color-mix(in srgb, var(--primary) 12%, var(--bg-light)) 0%,
            var(--bg-light) 55%,
            var(--surface) 100%);
    --primary-ink: color-mix(in srgb, var(--primary) 55%, var(--text-dark) 45%);
    --radius-sm: var(--radius-button);
    --radius-md: var(--radius);
    --radius-lg: var(--radius);
    --radius-xl: calc(var(--radius) + 4px);
    --radius-full: 999px;
}

/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-main);
    font-size: var(--text-base);
    line-height: var(--line-body);
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

code,
.mono {
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

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

img,
svg {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin: 0 0 var(--space-sm);
}

h1 {
    font-size: var(--h1-size);
    line-height: var(--line-heading);
    font-weight: var(--fw-bold);
}

h2 {
    font-size: var(--h2-size);
    line-height: var(--line-heading);
    font-weight: var(--fw-bold);
}

h3 {
    font-size: var(--h3-size);
    line-height: var(--line-heading);
    font-weight: var(--fw-semibold);
}

h4 {
    font-size: var(--h4-size);
    line-height: var(--line-heading);
    font-weight: var(--fw-semibold);
}

p,
li {
    font-size: var(--text-base);
    line-height: var(--line-body);
    color: var(--text-dark);
}

small,
.text-sm {
    font-size: var(--text-small);
    line-height: var(--line-body);
    color: var(--text-subtle);
}

strong,
b {
    font-weight: var(--fw-bold);
}

.wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-md) 0;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 12px 24px;
    min-height: 44px;
    border-radius: var(--radius-button);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-dark);
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    font-family: var(--font-main);
    line-height: var(--line-button);
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.2s var(--easing), box-shadow 0.2s var(--easing), background 0.2s var(--easing), color 0.2s var(--easing);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-dark);
    border-color: color-mix(in srgb, var(--primary) 80%, transparent);
    box-shadow: var(--shadow-lg);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: var(--fw-bold);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-dark);
    border-color: var(--border);
    box-shadow: none;
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--primary) 88%, var(--text-dark));
    box-shadow: var(--shadow-lg);
}

.btn-secondary:hover {
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

.btn-ghost:hover {
    color: color-mix(in srgb, var(--primary) 85%, var(--text-dark));
}

.btn.pulse {
    animation: pulse 2.2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--shadow), 0 0 0 0 color-mix(in srgb, var(--primary) 15%, transparent);
    }
    50% {
        box-shadow: var(--shadow), 0 0 0 8px color-mix(in srgb, var(--primary) 0%, transparent);
    }
}

/* ========================================
   COMMON SECTION STYLES
   ======================================== */
section {
    padding: var(--space-xl) 0;
}

.section-title {
    margin: 0 0 var(--space-sm);
    font-size: var(--h2-size);
    line-height: var(--line-heading);
    letter-spacing: -0.01em;
    text-align: center;
    font-weight: var(--fw-bold);
}

.section-lead {
    color: var(--muted);
    margin: 0 auto var(--space-lg);
    max-width: 65ch;
    text-align: center;
    font-size: var(--text-base);
}

.highlight {
    color: var(--primary-ink);
    font-weight: var(--font-semibold);
}

/* ========================================
   LOADER
   ======================================== */
.loader {
    position: fixed;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: transform 0.6s var(--easing);
}

.loader.done {
    transform: scaleX(1);
}

.skip {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip:focus {
    left: var(--space-md);
    top: var(--space-md);
    width: auto;
    height: auto;
    padding: var(--space-xs) var(--space-sm);
    background: var(--ink-white);
    color: var(--ink-black);
    z-index: 999;
    border-radius: var(--radius-sm);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--surface) 88%, var(--text-dark) 12%);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 500;
}

header.scrolled {
    background: color-mix(in srgb, var(--surface) 80%, var(--text-dark) 20%);
    backdrop-filter: blur(12px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
}

.brand {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    font-weight: var(--fw-bold);
    font-size: var(--h4-size);
}

.brand .accent {
    color: var(--primary-ink);
}

.brand-logo {
    height: 22px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a.link {
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid transparent;
    border-radius: var(--radius-button);
    transition: border-color 0.25s var(--easing), opacity 0.25s var(--easing);
}

.nav a.link:hover {
    border-color: var(--border);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    padding: var(--space-xxl) 0;
    min-height: min(680px, 95vh);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero.compact {
    min-height: auto;
    padding: var(--space-lg) 0;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(11, 13, 15, 0.65) 0%,
        rgba(11, 13, 15, 0.55) 50%,
        rgba(11, 13, 15, 0.65) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content .sub {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8),
                 0 4px 24px rgba(0, 0, 0, 0.6);
}

.hero-content h1 {
    color: #FFFFFF;
    font-weight: 900;
}

.hero-content .sub {
    color: #E7EAEE;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    border: 1px solid var(--border);
    color: var(--text-subtle);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 999px;
    font-size: var(--text-small);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow .dot {
    width: var(--space-xs);
    height: var(--space-xs);
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent);
}

h1 {
    margin: var(--space-sm) 0 var(--space-xs);
    letter-spacing: -0.01em;
}

.hero-subheadline {
    color: var(--primary-ink);
    font-size: var(--h4-size);
    font-weight: var(--fw-semibold);
    margin: var(--space-md) auto;
}

.sub {
    color: var(--muted);
    max-width: 65ch;
    margin: 0 auto var(--space-md);
    font-size: var(--text-base);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

/* ========================================
   NEWSLETTER CTA SECTION
   ======================================== */
#newsletter-cta {
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.05) 0%, rgba(255, 106, 0, 0.02) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: var(--space-xl) 0;
}

.newsletter-cta-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 12px 40px rgba(255, 106, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.newsletter-cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6A00, #FF8533, #FF6A00);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.newsletter-cta-logo {
    flex-shrink: 0;
}

.newsletter-cta-logo img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(255, 106, 0, 0.2));
}

.newsletter-cta-content {
    flex: 1;
    text-align: left;
}

.newsletter-cta-content h2 {
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0 0 var(--space-sm) 0;
    color: var(--text);
    line-height: 1.2;
}

.newsletter-cta-content p {
    font-size: 1.125rem;
    color: var(--muted);
    margin: 0 0 var(--space-md) 0;
    line-height: 1.5;
}

.newsletter-cta-content strong {
    color: var(--accent);
    font-weight: 700;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(255, 106, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-large:hover {
    box-shadow: 0 6px 24px rgba(255, 106, 0, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .newsletter-cta-container {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
        gap: var(--space-lg);
    }

    .newsletter-cta-logo img {
        width: 100px;
        height: 100px;
    }

    .newsletter-cta-content {
        text-align: center;
    }

    .newsletter-cta-content h2 {
        font-size: 1.5rem;
    }

    .newsletter-cta-content p {
        font-size: 1rem;
    }

    .btn-large {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--space-lg);
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.about-photo {
    border-radius: var(--radius-lg);
    border: 2px solid var(--line-strong);
    padding: var(--space-xs);
    background: var(--surface);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.about-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
    border-radius: var(--radius-md);
}

.about-text h3 {
    font-size: var(--h3-size);
    margin: 0 0 var(--space-xs);
}

.about-text p {
    margin: 0;
    color: var(--muted);
}

/* ========================================
   CARD COMPONENTS
   ======================================== */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    gap: var(--space-sm);
    background: var(--surface);
    transition: transform 0.4s var(--easing), border-color 0.25s var(--easing), box-shadow 0.3s var(--easing);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s var(--easing);
}

.card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    width: 40px;
}

.card .icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-md);
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.15), rgba(255, 106, 0, 0.05));
    border-radius: var(--radius-lg);
    color: var(--accent);
    border: 2px solid rgba(255, 106, 0, 0.2);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.1);
}

.card h3 {
    margin: 0;
    font-size: var(--h4-size);
    font-weight: var(--fw-semibold);
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: var(--line-body);
}

.card .kpi {
    font-size: 2.5rem;
    font-weight: var(--fw-bold);
    margin-top: var(--space-sm);
}

.card .kpi .mono {
    font-variant-numeric: tabular-nums;
}

.card.emph {
    border-color: color-mix(in srgb, var(--primary) 45%, transparent);
}

/* ========================================
   BENTO GRID
   ======================================== */
.bento {
    display: grid;
    gap: var(--space-sm);
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    max-width: 960px;
    margin: 0 auto;
}

/* ========================================
   PROCESS SECTION
   ======================================== */
#proces {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: var(--space-md);
    max-width: 960px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
}

.step-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-sm);
    color: var(--accent);
}

.step-number {
    font-size: var(--text-small);
    font-weight: var(--fw-semibold);
    color: var(--text-subtle);
    margin-bottom: var(--space-xs);
}

.process-step h3 {
    font-size: var(--h4-size);
    margin: 0 0 var(--space-xs);
}

.process-step p {
    font-size: var(--text-base);
    color: var(--muted);
    margin: 0;
}

.process-separator {
    margin-top: var(--space-xl);
    color: var(--line-strong);
}

/* ========================================
   FEATURE LIST
   ======================================== */
.feature-list-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.feature-list-item+.feature-list-item {
    margin-top: 64px;
}

.feature-list-item:nth-child(even) .feature-visual {
    order: 2;
}

.feature-visual {
    background: transparent;
    border-radius: var(--radius);
    padding: 0;
    border: none;
    display: grid;
    place-items: center;
    min-height: auto;
}

.feature-visual svg {
    color: var(--primary);
    opacity: 0.85;
}

.feature-visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    display: block;
}

.feature-text .eyebrow {
    font-size: var(--text-small);
}

.feature-text h3 {
    font-size: var(--h3-size);
    margin: var(--space-xs) 0;
}

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

/* ========================================
   TESTIMONIALS MARQUEE
   ======================================== */
.marquee {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.marquee-row {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
    animation: scroll 40s linear infinite;
}

.marquee-row.reverse {
    animation-direction: reverse;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.testimonial-marquee-card {
    width: 340px;
    flex-shrink: 0;
    background: var(--surface);
    padding: var(--space-md);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.testimonial-marquee-card p {
    margin: 0 0 var(--space-xs);
    color: var(--muted);
    font-size: var(--text-base);
}

.testimonial-marquee-card .author {
    font-weight: var(--fw-semibold);
    font-size: var(--text-base);
}

.testimonial-marquee-card .author span {
    display: block;
    font-weight: 400;
    color: var(--muted);
    font-size: var(--text-small);
}

/* ========================================
   FEATURED ARTICLES SECTION
   ======================================== */
#blog-preview {
    background: var(--bg);
    padding: var(--space-xl) 0;
}

.featured-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.featured-article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    gap: var(--space-md);
    transition: all 0.3s ease;
}

.featured-article:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(255, 106, 0, 0.12);
    transform: translateY(-2px);
}

.featured-article-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.1), rgba(255, 106, 0, 0.05));
    border: 1px solid rgba(255, 106, 0, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.featured-article-icon svg {
    width: 28px;
    height: 28px;
}

.featured-article-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.featured-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    width: fit-content;
}

.featured-article h3 {
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    color: var(--text);
}

.featured-article p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9375rem;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.2s ease;
    margin-top: auto;
    padding-top: var(--space-xs);
}

.featured-link:hover {
    gap: 8px;
}

@media (max-width: 768px) {
    .featured-articles-grid {
        grid-template-columns: 1fr;
    }

    .featured-article {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .featured-article-content {
        align-items: center;
    }
}

/* ========================================
   CONTACT SECTION
   ======================================== */
#rezerwacja {
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
    background: var(--surface);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.contact-text-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.contact-text-wrapper h3 {
    font-size: var(--h3-size);
    line-height: var(--line-heading);
    margin: 0;
    text-align: left;
    color: var(--text);
    padding-top: var(--space-sm);
}

.contact-form {
    display: grid;
    gap: var(--space-sm);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--text-dark);
    font-family: inherit;
    font-size: var(--text-base);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted);
}

.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.consent-group input {
    width: auto;
    margin-top: var(--space-xs);
}

.consent-group label {
    font-size: var(--text-small);
    color: var(--muted);
    line-height: var(--line-body);
}

.consent-group a {
    color: var(--primary-ink);
    text-decoration: underline;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    border-top: 1px solid var(--line);
    padding: var(--space-md) 0 var(--space-lg);
    color: var(--muted);
    font-size: var(--text-sm);
}

/* Focus states - Accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: var(--radius-button);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
/* Ensure links are recognizable */
a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-ghost):not(.link){
  color: var(--primary-ink);
  text-decoration:underline;
  text-decoration-color:var(--accent);
  text-underline-offset:3px;
  font-weight: var(--fw-semibold);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-brand {
    color: var(--muted);
}

.footer-brand .brand-logo {
    margin-bottom: 8px;
}

.footer-nav {
    display: flex;
    gap: var(--space-sm);
}

.footer-nav a:hover {
    color: var(--ink);
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--line-strong);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    padding: var(--space-md);
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-banner.show {
    display: flex;
}

.cookie-content {
    max-width: 800px;
    width: 100%;
}

.cookie-banner h2 {
    font-size: var(--h3-size);
    margin: 0 0 var(--space-sm);
    color: var(--text-dark);
    font-weight: var(--fw-semibold);
}

.cookie-banner p {
    font-size: var(--text-base);
    color: var(--muted);
    margin-bottom: var(--space-md);
}

.cookie-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    text-align: left;
}

.cookie-category {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.cookie-category input[type="checkbox"] {
    margin-right: 8px;
}

.cookie-category label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: var(--text-base);
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.cookie-category p.cookie-desc {
    font-size: var(--text-small);
    color: var(--muted);
    margin: 0;
    padding-left: var(--space-lg);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.cookie-links a {
    color: var(--primary-ink);
    text-decoration: underline;
    font-size: var(--text-small);
}

/* ========================================
   COMPARISON PAGE STYLES
   ======================================== */
.comparison-header {
    text-align: center;
    padding: var(--space-xxl) 0;
    background: var(--hero-gradient);
    border-bottom: 1px solid var(--line);
}

.comparison-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: var(--space-sm);
}

.comparison-container {
    display: flex;
    justify-content: center;
    padding: var(--space-md) 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.comparison-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
}

.comparison-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    padding: var(--space-sm);
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.comparison-table tbody th:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
    background: var(--bg);
    text-align: left;
}

.comparison-table td {
    padding: var(--space-sm);
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    height: 100%;
    padding: var(--space-sm);
}

.product-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 96px;
    width: 100%;
    margin-bottom: var(--space-xs);
}

.product-image {
    width: 120px;
    height: auto;
    max-height: 80px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: transparent;
    padding: 0;
}

.product-name {
    font-weight: var(--fw-semibold);
    font-size: var(--text-base);
    text-align: center;
    margin: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.product-price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: var(--space-xl);
    width: 100%;
}

.product-price {
    font-weight: var(--fw-bold);
    font-size: var(--h3-size);
    color: var(--primary-ink);
    text-align: center;
    margin: 0;
}

.product-old-price {
    text-decoration: line-through;
    color: var(--muted);
    font-size: var(--text-small);
    margin-left: var(--space-xs);
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--space-xs) / 2);
    margin: var(--space-xs) 0;
    min-height: 24px;
    width: 100%;
}

.rating-value {
    font-weight: 700;
}

.bestseller-badge {
    background: var(--primary);
    color: var(--text-dark);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-button);
    font-size: var(--text-small);
    font-weight: var(--fw-semibold);
    display: inline-block;
    margin: var(--space-xs) 0;
}

.bestseller-empty {
    height: 24px;
    margin: var(--space-xs) 0;
}

.product-cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: var(--space-xl);
    width: 100%;
    margin-top: var(--space-xs);
}

.product-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.feature-check {
    font-size: var(--h4-size);
    font-weight: var(--fw-semibold);
}

.feature-check.yes {
    color: var(--success);
}

.feature-check.no {
    color: var(--error);
}

.affiliate-disclosure {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    font-size: var(--text-small);
    color: var(--muted);
    text-align: center;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.comparison-faq {
    margin-top: var(--space-xl);
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.faq-question {
    padding: var(--space-sm);
    background: var(--surface);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text-dark);
    font-size: var(--h4-size);
}

.faq-question:hover {
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
    color: var(--primary-ink);
}

.faq-icon {
    font-size: var(--h4-size);
    font-weight: var(--fw-bold);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: var(--space-sm);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--space-sm);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
    padding: var(--space-sm);
    max-height: 500px;
}

.faq-answer p {
    color: var(--muted);
    margin: 0;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */
.reviews-section {
    margin: var(--space-xl) 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.review-text {
    font-style: italic;
    margin-bottom: var(--space-sm);
    color: var(--muted);
}

.review-author {
    font-weight: 700;
}

.last-updated {
    text-align: center;
    color: var(--muted);
    font-size: var(--text-small);
    margin-top: var(--space-md);
}

/* ========================================
   KEY DIFFERENCES SECTION
   ======================================== */
.key-differences {
    margin: var(--space-xl) 0;
    padding: var(--space-lg) 0;
    background: var(--bg-light);
}

.key-differences h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.key-differences-grid {
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   TARGET AUDIENCE & TCO
   ======================================== */
.target-audience {
    margin: var(--space-xl) 0;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.audience-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.audience-card h3 {
    margin: 0 0 var(--space-xs) 0;
    color: var(--primary-ink);
}

.tco-calculator {
    margin: var(--space-xl) 0;
}

.tco-comparison {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin: var(--space-md) 0;
}

.tco-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    min-width: 208px;
    text-align: center;
}

.tco-item h3 {
    color: var(--primary-ink);
    margin: 0 0 var(--space-xs) 0;
}

.tco-price {
    font-size: var(--h3-size);
    font-weight: var(--fw-bold);
    margin: var(--space-sm) 0;
}

.tco-note {
    font-size: var(--text-small);
    color: var(--text-subtle);
}

/* ========================================
   BLOG STYLES
   ======================================== */
.post-date {
    color: var(--muted);
    font-size: var(--text-small);
    display: block;
    margin-top: 8px;
}

.post-excerpt {
    color: var(--muted);
    margin: 8px 0;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}


.blog-post {
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) 0;
}

.blog-post:last-child {
    border-bottom: none;
}

.post-title {
    font-size: var(--h3-size);
    margin: 0 0 var(--space-xs) 0;
}

.post-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--primary-ink);
}

/* ========================================
   TRAINING PAGE STYLES
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(var(--space-md));
    transition: opacity 0.6s var(--easing), transform 0.6s var(--easing);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.problem-visual img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.problem-text .stat-hook {
    font-style: italic;
    padding-left: var(--space-sm);
    border-left: 3px solid var(--accent);
    margin-bottom: var(--space-md);
}

.instructor-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-xl);
    align-items: center;
    max-width: 960px;
    margin: var(--space-xl) auto 0;
}

.instructor-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 3px solid var(--line-strong);
    object-fit: cover;
}

.instructor-bio h3 {
    font-size: var(--h3-size);
    margin: 0 0 var(--space-sm);
}

.instructor-bio p {
    color: var(--muted);
    margin-bottom: var(--space-md);
    font-size: var(--text-base);
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 1080px;
    margin: 0 auto;
    counter-reset: step-counter;
}

.framework-step {
    text-align: left;
    position: relative;
    padding-top: var(--space-xl);
}

.framework-step::before {
    counter-increment: step-counter;
    content: "Krok " counter(step-counter);
    position: absolute;
    top: 0;
    left: 0;
    font-weight: var(--fw-bold);
    font-size: var(--text-small);
    color: var(--primary-ink);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 1080px;
    margin: 0 auto;
}

.benefit-card {
    text-align: left;
}

.benefit-card svg {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-sm);
    color: var(--accent);
}

.benefit-card img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    align-items: flex-start;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--space-lg);
    text-align: left;
}

.pricing-card.recommended {
    border-color: var(--accent);
    transform: scale(1.05);
    position: relative;
}

.pricing-card.recommended:before {
    content: 'NAJPOPULARNIEJSZY';
    position: absolute;
    top: var(--space-sm);
    right: -48px;
    background: var(--primary);
    color: var(--text-light);
    padding: var(--space-xs) var(--space-lg);
    font-size: var(--text-small);
    letter-spacing: 0.1em;
    font-weight: var(--fw-semibold);
    transform: rotate(45deg);
    overflow: hidden;
}

.pricing-card .package-name {
    font-size: var(--h4-size);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-xs);
}

.pricing-card .package-description {
    color: var(--muted);
    font-size: var(--text-base);
    min-height: 4.8em;
}

.pricing-card .price {
    font-size: clamp(var(--h3-size), 4vw, var(--h1-size));
    font-weight: var(--fw-bold);
    margin: var(--space-sm) 0 var(--space-xs) 0;
}

.pricing-card .price-note {
    color: var(--muted);
    margin-bottom: var(--space-md);
}

.pricing-card .feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg) 0;
    display: grid;
    gap: var(--space-sm);
    text-align: left;
}

.pricing-card .feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.pricing-card .feature-list svg {
    color: var(--primary);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: calc(var(--space-xs) / 2);
}

.pricing-card .btn {
    margin-top: auto;
    display: block;
    width: 100%;
    text-align: center;
}

.guarantee-box {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--space-lg);
    background: var(--surface);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.guarantee-icon svg {
    width: 64px;
    height: 64px;
    color: var(--primary);
}

.guarantee-box h3 {
    font-size: var(--h3-size);
    margin: 0 0 var(--space-xs);
}

.guarantee-box p {
    color: var(--muted);
    margin: 0;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    background: var(--surface);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    margin-top: var(--space-lg);
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: var(--fw-semibold);
    color: var(--text-dark);
}

.form-group input[type="number"],
.form-group input[type="range"] {
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dark);
    font-size: var(--text-base);
}

.form-group input[type="range"] {
    padding: 0;
}

.form-group span {
    margin-top: 8px;
    color: var(--primary-ink);
    font-weight: var(--fw-semibold);
}

.calculator-results {
    background: color-mix(in srgb, var(--primary) 12%, var(--bg-light));
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--primary);
}

.calculator-results h3 {
    margin-top: 0;
    color: var(--primary-ink);
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.highlight {
    font-size: var(--h4-size);
    font-weight: var(--fw-bold);
    color: var(--primary-ink);
}

.result-item span:last-child {
    font-weight: 700;
}

.investment-info {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
    font-size: var(--text-small);
}

.investment-info p {
    margin: 8px 0;
}

.final-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.lead-magnet {
    margin-top: var(--space-md);
    font-size: var(--text-base);
}

.lead-magnet a {
    color: var(--primary-ink);
    text-decoration: underline;
}

.lead-magnet a:hover {
    color: var(--primary-ink);
}

.ps-section {
    font-style: italic;
    max-width: 60ch;
    margin: 0 auto;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-button);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .comparison-container {
        flex-direction: column;
    }
}

@media (max-width: 980px) {
    .nav-links .link {
        display: none;
    }

    .feature-list-item {
        grid-template-columns: 1fr;
    }

    .feature-list-item:nth-child(even) .feature-visual {
        order: 0;
    }

    .feature-visual {
        margin-bottom: var(--space-md);
    }

    .feature-text {
        text-align: center;
    }

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

    .process-separator {
        display: none;
    }

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

    .contact-text-wrapper {
        margin-bottom: var(--space-md);
    }

    .contact-text-wrapper h3 {
        text-align: center;
        font-size: 1.25rem;
    }

    .instructor-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .instructor-photo {
        margin: 0 auto;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .pricing-card.recommended {
        transform: scale(1);
    }

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

    .calculator-container {
        grid-template-columns: 1fr;
    }

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

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

    .problem-visual {
        max-width: 80%;
        margin: 0 auto var(--space-lg);
    }

    .problem-text {
        text-align: center;
    }

    .problem-text .section-title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-photo {
        max-width: 280px;
        margin: 0 auto var(--space-md);
    }

    .hero {
        min-height: auto;
        padding: var(--space-xl) 0;
    }

    .hero-video-bg {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .guarantee-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .guarantee-icon {
        max-width: 60px;
        margin: 0 auto;
    }

    section {
        padding: var(--space-xl) 0;
    }
}

@media (max-width: 640px) {
    .wrap {
        padding: var(--space-sm) var(--space-sm) 0;
    }

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

    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

    .cookie-categories {
        grid-template-columns: 1fr;
    }

    .cookie-actions {
        flex-direction: column;
    }
}

/* ========================================
   MOTION PREFERENCES
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .card,
    .btn,
    .loader {
        transition: none;
    }

    .btn.pulse,
    .marquee-row {
        animation: none;
    }
}
