/* =========================================
   1. ZMIENNE GLOBALNE (DESIGN SYSTEM)
   ========================================= */
:root {
    /* --- Kolory --- */
    --primary: #ff6600;
    --primary-hover: #e65c00;
    --primary-text: #ff6600;
    --dark: #111827;
    --text-main: #374151;
    --text-light: #4b5563; /* Poprawiony kontrast dla a11y (wcześniej #6b7280) */
    --white: #ffffff;
    --gray-bg-icon: #f3f4f6;

    /* --- Statusy / Tagi --- */
    --tag-error-bg: #fee2e2;
    --tag-error-text: #991b1b;
    --tag-gray-bg: #f3f4f6;
    --tag-gray-text: #374151; /* Poprawiony kontrast */
    --tag-info-bg: #eff6ff;
    --tag-info-text: #1e40af;
    
    /* Tag Zielony (Jakość) */
    --tag-green-bg: #fff7ed;
    --tag-green-text: #c2410c;
    --tag-green-border: #fed7aa;

    /* --- Typografia (Z bezpiecznymi fallbackami) --- */
    --font-heading: 'Barlow', system-ui, -apple-system, sans-serif;
    --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

    /* --- Layout & UI --- */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-btn: 6px;
    --radius-card: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul { list-style: none; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* WCAG Focus State */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 2px;
}

/* =========================================
   3. HEADER (NAGŁÓWEK)
   ========================================= */
#layout-header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.brand-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.brand-logo span { color: var(--primary); }

.nav-primary {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after { width: 100%; }

.header-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
}

.mobile-controls {
    display: none;
    gap: 12px;
    align-items: center;
}

/* =========================================
   4. UI COMPONENTS (PRZYCISKI & IKONY)
   ========================================= */
.icon-circle-btn {
    width: 40px;
    height: 40px;
    background-color: var(--gray-bg-icon);
    color: var(--dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-phone-trigger { color: var(--primary); }

.icon-phone-trigger:hover,
.header-contact:hover .icon-phone-trigger {
    background-color: var(--primary);
    color: var(--white);
    transform: rotate(15deg) scale(1.05);
}

.icon-hamburger:hover { background-color: #e5e7eb; }

.svg-close { display: none; }
.svg-hamburger { display: block; }
.icon-hamburger.active .svg-hamburger { display: none; }
.icon-hamburger.active .svg-close { display: block; }

/* Globalne Przyciski */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-btn);
    transition: var(--transition);
    height: 56px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 0 32px;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

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

.btn-outline {
    padding: 16px 32px;
    border: 1px solid var(--dark);
    color: var(--dark);
    background-color: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.15);
}

.btn-sm {
    height: 42px;
    padding: 0 20px;
    font-size: 0.85rem;
}

.btn-sm-outline {
    padding: 10px 24px;
    font-size: 0.85rem;
    height: auto;
    border-color: #4b5563;
    color: #d1d5db;
}

.btn-sm-outline:hover {
    border-color: var(--white);
    color: var(--white);
}

.btn.btn-square {
    width: 56px;
    height: 56px;
    min-width: 56px;
    padding: 0;
    flex-shrink: 0;
}

.btn-full {
    width: 100%;
    margin-top: 16px;
    font-size: 1rem;
    padding: 18px;
}

/* =========================================
   5. MOBILE MENU (DROPDOWN)
   ========================================= */
.mobile-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

.mobile-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-link {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
}

.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { background-color: #f9fafb; color: var(--primary-text); }

/* =========================================
   6. HERO SECTION
   ========================================= */
#section-hero-primary {
    position: relative;
    padding: 80px 0 120px 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.hero-bg-anim-wrapper {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -2;
}

.hero-bg-grid {
    width: 100%;
    height: 100%;
    background-size: 35px 35px;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    animation: gridDiagonalMove 3.5s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes gridDiagonalMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-35px, -35px); }
}

.hero-bg-light {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    filter: blur(60px);
}

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

.error-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tag {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tag-error { background: var(--tag-error-bg); color: var(--tag-error-text); border: 1px solid rgba(254, 202, 202, 0.5); }
.tag-gray { background: var(--tag-gray-bg); color: var(--tag-gray-text); border: 1px solid #e5e7eb; }
.tag-green { background-color: var(--tag-green-bg); color: var(--tag-green-text); border: 1px solid var(--tag-green-border); }

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--text-main);
    max-width: 650px;
    margin: 0 auto 40px auto;
}

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

/* =========================================
   7. MODAL & FORMULARZ
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-overlay.open .modal-wrapper { transform: translateY(0); }

.modal-wrapper {
    background: var(--white);
    width: 100%;
    max-width: 550px;
    border-radius: var(--radius-card);
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none; /* Ukrywanie natywnego scrollbara (standard) */
    -ms-overflow-style: none;
}
.modal-wrapper::-webkit-scrollbar { display: none; }

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-light);
    transition: color 0.3s;
}
.modal-close:hover { color: var(--dark); }

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* Formularze */
.form-section { margin-bottom: 24px; }
.form-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

label { font-size: 0.9rem; font-weight: 600; color: var(--dark); }

input[type="text"], input[type="tel"], input[type="email"], textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark);
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* Radio Cards (Zoptymalizowane pod WCAG) */
.radio-cards-container { display: flex; gap: 16px; }
.radio-card { flex: 1; position: relative; cursor: pointer; }
.radio-card input { 
    position: absolute; 
    width: 1px; height: 1px; 
    padding: 0; margin: -1px; 
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; 
}

.card-content {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; border: 1px solid #d1d5db; border-radius: 8px;
    padding: 16px; background: #f9fafb; transition: all 0.3s ease; height: 100%;
}

.radio-card input:focus-visible + .card-content {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.card-title { font-weight: 700; font-size: 0.9rem; color: var(--dark); margin-bottom: 4px; display: block; }
.card-desc { font-size: 0.8rem; color: var(--text-light); }

.radio-card input:checked + .card-content {
    border-color: var(--primary);
    background-color: #fff7ed;
    box-shadow: 0 4px 6px -1px rgba(255, 102, 0, 0.1);
}
.radio-card input:checked + .card-content .card-title { color: var(--primary-text); }

.hidden-field { display: none; margin-top: 16px; animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.form-legal { margin-top: 16px; font-size: 0.75rem; color: var(--text-light); text-align: center; }
.modal-legal-link { text-decoration: underline; color: var(--text-main); }

/* =========================================
   8. SEKCJA DIAGNOZA (DARK MODE)
   ========================================= */
.section-dark {
    background-color: #111827;
    color: var(--white);
    padding: 80px 0;
    overflow: hidden;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-gray { color: #9ca3af; }

.tag-primary-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 32px;
    line-height: 1.2;
}

.section-lead {
    max-width: 700px;
    margin: 0 auto 60px auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.diagnosis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.diag-card {
    background-color: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.card-icon {
    width: 56px; height: 56px;
    background: rgba(255, 102, 0, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.card-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.card-text { font-size: 0.95rem; color: #d1d5db; margin-bottom: 16px; line-height: 1.5; }
.card-text strong { color: var(--white); }
.small-margin { margin-bottom: 8px; }

.card-list { list-style: none; padding: 0; }
.card-list li { margin-bottom: 10px; font-size: 0.9rem; color: #d1d5db; padding-left: 12px; border-left: 2px solid var(--primary); }
.card-list li strong { color: #fca5a5; }

.gears-box {
    display: flex; align-items: center; gap: 12px;
    background: rgba(0, 0, 0, 0.2); padding: 12px; border-radius: 8px; width: 100%;
}
.gear-group { display: flex; flex-direction: column; font-size: 0.8rem; }
.gear-group span { color: #9ca3af; font-size: 0.7rem; text-transform: uppercase; }
.gear-group strong { color: var(--primary); font-size: 1rem; }
.gear-divider { font-size: 0.7rem; font-weight: 700; color: #6b7280; }

.brands-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.brands-tags span {
    background: rgba(255, 255, 255, 0.05); color: #d1d5db;
    padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}

@media (min-width: 769px) {
    .diag-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3); }
    .diag-card:hover .card-icon { transform: scale(1.1) rotate(5deg); background: var(--primary); color: var(--white); }
}

/* =========================================
   9. SEKCJA REALIZACJA (PROCES)
   ========================================= */
.section-gray {
    background-color: #f9fafb;
    padding: 80px 0;
    border-bottom: 1px solid #e5e7eb;
}

.process-content { display: none; animation: fadeIn 0.4s ease-out; }
.process-content.active-content { display: block; }

.text-dark { color: var(--dark); }

.process-switcher-wrapper { display: flex; justify-content: center; margin-bottom: 48px; }
.switcher-bg {
    background: #e5e7eb; padding: 4px; border-radius: 6px; display: inline-flex;
    position: relative; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.switcher-btn {
    padding: 12px 32px; border-radius: 4px; font-size: 0.9rem; font-weight: 700;
    color: var(--text-light); border: none; background: transparent; cursor: pointer;
    transition: all 0.3s ease; white-space: nowrap;
}
.switcher-btn.active { background-color: var(--white); color: var(--primary); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
.switcher-btn:hover:not(.active) { color: var(--dark); }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }

.process-card {
    background: var(--white); padding: 32px 24px; border-radius: 16px; border: 1px solid #e5e7eb;
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    align-items: flex-start; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.process-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1); border-color: var(--primary); }

.highlight-card { border: 1px solid var(--primary); background: #fff7ed; }

.step-number {
    position: absolute; top: -10px; right: 10px; font-family: var(--font-heading);
    font-size: 5rem; font-weight: 800; color: #f3f4f6; z-index: 0; pointer-events: none; opacity: 0.8;
}
.highlight-card .step-number { color: #ffedd5; }

.step-icon {
    width: 48px; height: 48px; background-color: #ffffff; border: 1px solid #f3f4f6;
    color: var(--primary-text); border-radius: 12px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; position: relative; z-index: 1; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.highlight-card .step-icon { background-color: var(--primary); color: var(--white); border: none; }

.process-card:hover .step-icon, .process-card.scroll-active .step-icon { transform: scale(1.1) rotate(5deg); box-shadow: 0 8px 20px rgba(255, 102, 0, 0.3); }
.process-card:not(.highlight-card):hover .step-icon, .process-card:not(.highlight-card).scroll-active .step-icon { background-color: var(--primary); color: var(--white); border-color: transparent; }

.step-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; position: relative; z-index: 1; }
.step-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.5; margin-bottom: 16px; position: relative; z-index: 1; flex-grow: 1; }
.step-desc strong { color: var(--dark); }

.step-meta {
    font-size: 0.8rem; font-weight: 600; color: var(--text-light); background: #f9fafb;
    padding: 6px 10px; border-radius: 6px; width: 100%; position: relative; z-index: 1;
}
.highlight-card .step-meta { background: rgba(255, 255, 255, 0.6); }

.process-disclaimer {
    max-width: 900px; margin: 0 auto 40px auto; background-color: #ffffff;
    border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 32px;
    display: flex; align-items: center; justify-content: center; gap: 16px;
    font-size: 0.85rem; font-weight: 500; color: var(--text-light); line-height: 1.4;
    text-align: left; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.process-disclaimer svg { flex-shrink: 0; color: var(--primary); width: 20px; height: 20px; }

/* Accordion */
.process-footer { width: 100%; max-width: 800px; margin: 40px auto 0 auto; position: relative; z-index: 10; clear: both; }

details.adaptation-accordion {
    background-color: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px;
    overflow: hidden; transition: all 0.3s ease; margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); display: block;
}
details.adaptation-accordion:hover { border-color: var(--primary); }
details.adaptation-accordion[open] { box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); border-color: var(--primary); }

.accordion-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px; cursor: pointer; background: transparent; list-style: none;
}
.accordion-header::-webkit-details-marker { display: none; }

.accordion-title { display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 700; color: var(--dark); text-align: left; }
.accordion-toggle { font-size: 2rem; font-weight: 400; color: var(--primary-text); transition: transform 0.3s ease; line-height: 1; margin-left: 16px; flex-shrink: 0; }
.adaptation-accordion[open] .accordion-toggle { transform: rotate(45deg); }

.accordion-body { padding: 0 24px 16px 24px; color: var(--text-main); font-size: 0.95rem; line-height: 1.6; border-top: 1px solid transparent; }
.accordion-text { margin-bottom: 20px; color: var(--text-main); font-size: 0.95rem; line-height: 1.6; }

.instruction-box {
    background-color: #fff7ed; border: 1px solid #ffedd5; color: #9a3412;
    padding: 16px 20px; border-radius: 8px; font-size: 0.95rem; line-height: 1.5;
}
.instruction-box strong { color: #7c2d12; display: block; margin-bottom: 4px; }
.adaptation-accordion[open] .accordion-body { animation: fadeIn 0.4s ease; }

/* =========================================
   10. SEKCJA OFERTA
   ========================================= */
.section-white { background-color: #ffffff; padding: 100px 0; position: relative; border-top: 1px solid #f3f4f6; }
.offer-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center; max-width: 1000px; margin: 0 auto; }
.offer-card { border-radius: 20px; padding: 40px; position: relative; transition: transform 0.3s ease; }

.card-aso { background-color: #f9fafb; border: 2px dashed #d1d5db; color: #6b7280; transform: scale(0.95); }
.card-aso .offer-name { font-size: 1.25rem; font-weight: 700; color: #4b5563; margin-bottom: 4px; }
.card-aso .offer-desc { font-size: 0.9rem; color: #9ca3af; margin-bottom: 24px; }
.old-price { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: #9ca3af; text-decoration: line-through; display: block; }

.card-hero {
    background-color: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    z-index: 2; position: relative; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card-hero:hover { border-color: var(--primary); transform: translateY(-12px) scale(1.02); box-shadow: 0 30px 60px -15px rgba(255, 102, 0, 0.25); }
.offer-badge {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; font-size: 0.85rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; padding: 8px 24px; border-radius: 50px;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}
.card-hero .offer-name { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.card-hero .offer-desc { font-size: 1rem; color: var(--text-main); margin-bottom: 32px; }

.offer-price-box { margin-bottom: 32px; }
.price-label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--text-light); margin-bottom: 4px; }
.highlight .price-label { color: var(--primary-text); }
.main-price { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; color: var(--dark); line-height: 1; display: block; margin-bottom: 8px; }
.price-sub { font-size: 0.85rem; color: var(--text-light); }

.offer-list { margin-bottom: 32px; }
.offer-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 1rem; line-height: 1.5; }

.icon-x { color: #ef4444; flex-shrink: 0; }
.icon-check { color: var(--primary-text); flex-shrink: 0; }
.icon-shield { color: #10b981; flex-shrink: 0; }
.list-negative li { color: #6b7280; }
.list-positive li { color: var(--dark); }
.list-positive li strong { font-weight: 700; }

.trust-item { background: #f0fdf4; padding: 12px; border-radius: 8px; border: 1px solid #bbf7d0; margin-top: 24px; }
.trust-item small { color: #6b7280; display: block; margin-top: 2px; }

/* =========================================
   11. SEKCJA BAZA WIEDZY
   ========================================= */
#baza-wiedzy { border-top: 1px solid #e5e7eb; }
.knowledge-wrapper { position: relative; padding: 0 60px; }

.article-section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 32px 0 16px 0;
    color: var(--dark);
}

.knowledge-track {
    display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; padding: 10px 4px 40px 4px;
}
.knowledge-track::-webkit-scrollbar { display: none; }

.knowledge-card {
    background: var(--white); border: 1px solid #e5e7eb; border-radius: 24px;
    min-width: calc((100% - 48px) / 3); display: flex; flex-direction: column;
    overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); scroll-snap-align: center;
}
.knowledge-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08); border-color: var(--primary); }

.k-card-top { background-color: transparent; padding: 24px; height: 150px; position: relative; display: flex; align-items: center; justify-content: center; }
.k-top-blue { background-color: #ebf5ff; }
.k-top-green { background-color: #f0fdf4; }
.k-top-red { background-color: #fef2f2; }
.k-top-beige { background-color: #fff7ed; }

.k-tag {
    position: absolute; top: 20px; left: 20px; font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; padding: 6px 12px; border-radius: 50px; letter-spacing: 1px;
    background-color: #ffffff; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.k-top-blue .k-tag { color: #1d4ed8; }
.k-top-green .k-tag { color: #15803d; }
.k-top-red .k-tag { color: #b91c1c; }
.k-top-beige .k-tag { color: #c2410c; }

.k-icon-box { background: transparent; border: none; box-shadow: none; width: auto; height: auto; margin: 0; transform: translateY(10px); }
.k-icon-box svg { width: 48px; height: 48px; }
.k-top-blue svg { color: #3b82f6; }
.k-top-green svg { color: #22c55e; }
.k-top-red svg { color: #ef4444; }
.k-top-beige svg { color: #f55c1f; }

.k-card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.k-title { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; line-height: 1.4; }
.k-desc { font-size: 0.95rem; color: var(--text-light); margin-bottom: 24px; line-height: 1.6; }
.k-link { font-size: 0.9rem; font-weight: 700; color: var(--primary-text); display: flex; align-items: center; gap: 8px; width: fit-content; }
.arrow-move { display: inline-block; transition: transform 0.3s ease; }
.k-link:hover .arrow-move { transform: translateX(5px); }

.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
    border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex; align-items: center; justify-content: center; color: var(--dark); z-index: 10; cursor: pointer; transition: all 0.3s;
}
.carousel-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.arrow-prev { left: 0; }
.arrow-next { right: 0; }

/* =========================================
   12. SEKCJA FAQ
   ========================================= */
.faq-wrapper { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.faq-item { margin-bottom: 0; background-color: #ffffff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); border: 1px solid #e5e7eb; }
.faq-item .accordion-header { padding: 12px 24px; min-height: auto; }
.faq-item .accordion-body { padding: 0 24px 16px 24px; }
.faq-list { list-style: none; padding: 0; margin-bottom: 16px; }
.faq-list li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: 0.95rem; color: var(--text-main); line-height: 1.5; }
.faq-list li::before { content: "•"; position: absolute; left: 6px; color: var(--primary-text); font-weight: bold; }
.faq-list li strong { color: var(--dark); font-weight: 700; }

/* =========================================
   13. STOPKA
   ========================================= */
.footer-dark {
    background-color: #111827; color: #9ca3af; padding: 64px 0 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }

.footer-logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: #ffffff; letter-spacing: -0.5px; display: inline-block; margin-bottom: 16px; }
.footer-logo span { color: var(--primary); }
.footer-desc { line-height: 1.6; max-width: 350px; }

.footer-heading { color: #ffffff; font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.footer-contact-list, .footer-simple-list { display: flex; flex-direction: column; gap: 12px; }

.footer-link-icon { display: flex; align-items: center; gap: 12px; color: #d1d5db; transition: color 0.3s; }
.footer-link-icon svg { color: var(--primary); flex-shrink: 0; }
.footer-link-icon:hover { color: var(--primary); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 32px; }
.footer-bottom-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 16px; }
.footer-legal-links { display: flex; gap: 24px; }
.footer-legal-links a { color: #9ca3af; font-size: 0.9rem; transition: color 0.3s; }
.footer-legal-links a:hover { color: #ffffff; }

.footer-legal-note { font-size: 0.8rem; color: #4b5563; }
.footer-legal-note strong { color: #6b7280; }
.footer-area-link { color: #d1d5db; transition: color 0.3s ease; cursor: pointer; }
.footer-area-link:hover { color: var(--primary); }

/* =========================================
   14. COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%; background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px); border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 24px 0;
    z-index: 9999; transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-content { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cookie-text p { color: #e5e7eb; font-size: 0.9rem; line-height: 1.5; margin-bottom: 4px; }
.cookie-link { color: #9ca3af; font-size: 0.85rem; text-decoration: underline; transition: color 0.3s; }
.cookie-link:hover { color: var(--primary); }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* =========================================
   15. PODSTRONY PRAWNE
   ========================================= */
.legal-content { max-width: 800px; padding-top: 60px; padding-bottom: 80px; }
.legal-title { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.legal-date { font-size: 0.9rem; color: var(--text-light); margin-bottom: 48px; border-bottom: 1px solid #e5e7eb; padding-bottom: 24px; }
.legal-section { margin-bottom: 40px; }
.legal-section h2 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.legal-section p { font-size: 1rem; color: var(--text-main); line-height: 1.7; margin-bottom: 16px; }
.legal-section ul { list-style: disc; padding-left: 20px; margin-bottom: 16px; color: var(--text-main); }
.legal-section strong { color: var(--dark); font-weight: 700; }

/* =========================================
   15b. ARTYKUŁY (BAZA WIEDZY)
   ========================================= */
.article-container { max-width: 900px; padding-top: 60px; padding-bottom: 80px; }
.article-header { margin-bottom: 40px; text-align: left; }
.article-title { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--dark); margin: 16px 0; line-height: 1.2; }
.article-lead { font-size: 1.15rem; color: var(--text-main); line-height: 1.7; font-weight: 500; }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 0.9rem; color: var(--text-light); margin-top: 16px; font-weight: 600; flex-wrap: wrap; }

.article-image-figure { margin: 40px 0; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1); }
.article-image { width: 100%; height: auto; display: block; object-fit: cover; border-radius: 16px; }
.article-caption { text-align: center; font-size: 0.85rem; color: var(--text-light); margin-top: 12px; font-style: italic; }

.article-body { max-width: 800px; margin: 0 auto; }
.article-h2 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--dark); margin: 40px 0 20px 0; line-height: 1.3; }
.article-text { font-size: 1.05rem; color: var(--text-main); line-height: 1.8; margin-bottom: 20px; }
.article-text strong { color: var(--dark); font-weight: 700; }

.info-box-clean { background: #f9fafb; border-left: 4px solid var(--primary); padding: 24px; margin: 32px 0; border-radius: 0 12px 12px 0; }
.info-box-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }

.simple-list { list-style: disc; padding-left: 24px; margin-bottom: 24px; }
.simple-list li { margin-bottom: 8px; font-size: 1.05rem; color: var(--text-main); line-height: 1.6; }

.process-list { padding-left: 24px; margin-bottom: 32px; font-size: 1.05rem; color: var(--text-main); line-height: 1.8; }
.process-list li { margin-bottom: 12px; padding-left: 8px; }
.process-list li::marker { font-weight: 700; color: var(--primary-text); }

.article-divider { border: 0; height: 1px; background: #e5e7eb; margin: 48px 0; }

.cta-box { background: #fff7ed; border: 1px solid #fed7aa; padding: 40px 32px; border-radius: 16px; text-align: center; margin-top: 48px; box-shadow: 0 10px 25px -5px rgba(255,102,0,0.1); }
.cta-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.cta-text { font-size: 1.05rem; color: var(--text-main); margin-bottom: 24px; }

/* =========================================
   16. UTILITIES (Pancerna blokada scrolla)
   ========================================= */
html.no-scroll, body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

[data-hidden-default] { display: none; }

/* =========================================
   17. MEDIA QUERIES (Zintegrowane i Uporządkowane)
   ========================================= */

/* --- TABLETY & DUŻY MOBILE (max 900px) --- */
@media (max-width: 900px) {
    .offer-grid { grid-template-columns: 1fr; gap: 48px; padding: 0 10px; }
    .card-aso { transform: scale(1); order: 1; text-align: left; padding: 32px 24px; }
    .card-aso .offer-list li { justify-content: flex-start; }
    .card-hero {
        order: 2; border: 2px solid var(--primary); padding: 40px 24px;
        margin-top: -20px; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1); text-align: left; transform: none;
    }
    .main-price { font-size: 3rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-legal-links { flex-direction: column; gap: 8px; align-items: flex-start; }
    
    .carousel-arrow { display: none; }
    .knowledge-wrapper { padding: 0; margin-left: -20px; margin-right: -20px;}
    .knowledge-track { gap: 16px; padding-bottom: 60px; padding-top: 20px; padding-left: 13vw; padding-right: 13vw; }
    .knowledge-card { min-width: 74vw; border-color: #e5e7eb; margin: 0; }
    .knowledge-card.active-card { transform: scale(1.05); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15); z-index: 2; border-color: var(--primary); }
    
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- STANDARDOWY MOBILE (max 768px) --- */
@media (max-width: 768px) {
    .nav-primary, .header-contact { display: none; }
    .mobile-controls { display: flex; } 

    /* Tagi Hero */
    .error-tags { gap: 6px; margin-bottom: 20px; }
    .tag { font-size: 0.7rem; padding: 4px 8px; }

    /* Typografia Hero */
    .hero-title { font-size: 2.1rem; letter-spacing: -1px; padding: 0 5px; line-height: 1.15; }
    .hero-subtitle { font-size: 1.6rem; line-height: 1.2; margin-bottom: 20px; }
    .hero-lead { font-size: 1rem; padding: 0 10px; }

    .hero-actions { flex-direction: row; width: 100%; max-width: 400px; margin: 0 auto; padding: 0 10px; gap: 8px; }
    .hero-actions .btn-primary { width: auto; min-width: 180px; font-size: 0.9rem; padding: 0 20px; }

    /* Diagnoza Slider */
    .section-title { font-size: 1.6rem; margin-bottom: 24px; padding: 0 10px; }
    .diagnosis-wrapper { padding: 0; margin-left: -20px; margin-right: -20px; }
    .diagnosis-grid {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
        padding-top: 30px; padding-bottom: 50px; padding-left: 13vw; padding-right: 13vw;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .diagnosis-grid::-webkit-scrollbar { display: none; }
    
    .diag-card {
        min-width: 74vw; scroll-snap-align: center; transform: scale(1) translateY(0);
        opacity: 0.5; margin: 0; position: relative; z-index: 1; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .diag-card.active-card {
        opacity: 1; border-color: var(--primary); background-color: #1f2937;
        transform: scale(1.05) translateY(-10px); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7); z-index: 10;
    }
    .diag-card.active-card .card-icon {
        background-color: var(--primary); color: var(--white); transform: scale(1.1) rotate(5deg);
        box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    }
    
    .process-disclaimer { flex-direction: column; text-align: center; padding: 20px; gap: 8px; margin-top: 24px; }
    
    /* Formularz w pionie */
    .form-row { flex-direction: column; gap: 16px; }
    .radio-cards-container { flex-direction: column; gap: 16px; }

    /* Cookie Banner w pionie */
    .cookie-content { flex-direction: column; align-items: flex-start; gap: 20px; }
    .cookie-actions { width: 100%; justify-content: flex-start; }
}

/* --- MAŁE EKRANY / STARSZE SMARTFONY (max 600px / 400px) --- */
@media (max-width: 600px) {
    .switcher-bg { width: 100%; display: flex; }
    .switcher-btn { flex: 1; padding: 12px 10px; font-size: 0.75rem; }
    .process-grid { grid-template-columns: 1fr; gap: 16px; }
    .process-card { flex-direction: column; align-items: flex-start; text-align: left; }
    .process-card.scroll-active { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1); z-index: 2; }
    .toast-success {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 400px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1.4rem; }
}

/* =========================================
   18. TOAST NOTIFICATIONS (KOMUNIKAT SUKCESU)
   ========================================= */
.toast-success {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #10b981; /* Spójny zielony z sekcji zaufania */
    color: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    z-index: 9999;
    
    /* Animacja wyjściowa (stan początkowy) */
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}

.toast-success.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-close {
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.7;
    margin-left: auto;
    transition: opacity 0.3s;
    padding: 0 0 0 10px;
}

.toast-close:hover {
    opacity: 1;
}