/* ========================================
   KLASY POMOCNICZE - Utility classes
   ======================================== */

/* Wyrównanie tekstów */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-inline-flex { display: inline-flex; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.align-stretch { align-items: stretch; }

/* Gap */
.gap-xs { gap: 0.5rem; }
.gap-sm { gap: 1rem; }
.gap-md { gap: 1.5rem; }
.gap-lg { gap: 2rem; }
.gap-xl { gap: 3rem; }
.gap-2xl { gap: 4rem; }

/* Marginesy */
.m-0 { margin: 0; }
.m-auto { margin: 0 auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2rem; }
.mt-xl { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 1.5rem; }
.mb-lg { margin-bottom: 2rem; }
.mb-xl { margin-bottom: 3rem; }

/* Paddingi */
.p-0 { padding: 0; }
.p-sm { padding: 1rem; }
.p-md { padding: 1.5rem; }
.p-lg { padding: 2rem; }
.p-xl { padding: 2.5rem; }
.p-2xl { padding: 3rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 2rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 2rem; }

/* Szerokości i wysokości */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-50 { width: 50%; }
.h-full { height: 100%; }
.h-auto { height: auto; }

/* Max-width */
.max-w-xs { max-width: 600px; }
.max-w-sm { max-width: 700px; }
.max-w-md { max-width: 800px; }
.max-w-lg { max-width: 900px; }
.max-w-xl { max-width: 1000px; }
.max-w-2xl { max-width: 1200px; }
.max-w-3xl { max-width: 1400px; }

/* Pozycjonowanie */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

/* Tła */
.bg-white { background-color: var(--white); }
.bg-pearl { background-color: var(--pearl-white); }
.bg-pearl-light { background: var(--pearl-light); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gradient-brand { background: var(--gradient-brand); }
.bg-gradient-soft { background: var(--gradient-brand-soft); }
.bg-gradient-pearl-light {
    background: linear-gradient(180deg, white 0%, var(--pearl-light) 100%);
    overflow: hidden;
}

/* Kolory tekstów */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-white { color: white; }
.text-green { color: var(--brand-green); }
.text-blue { color: var(--brand-blue); }

/* Rozmiary czcionek */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

/* Wagi czcionek */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Line height */
.leading-tight { line-height: 1.1; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.6; }
.leading-loose { line-height: 1.7; }

/* Obramowania */
.border-0 { border: 0; }
.border { border: 1px solid var(--gray-200); }
.border-top { border-top: 1px solid var(--gray-200); }

/* Zaokrąglenia */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Cienie */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* Przezroczystość */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }

/* Z-index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

/* Kursory */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* User select */
.select-none { user-select: none; }
.select-text { user-select: text; }

/* Przejścia */
.transition-all { transition: all var(--transition-base); }
.transition-fast { transition: all var(--transition-fast); }
.transition-slow { transition: all var(--transition-slow); }

/* Sekcje kolorystyczne */
.section-white { background-color: var(--white); }
.section-pearl-white { background-color: var(--pearl-white); }
.section-gray { background-color: var(--gray-50); }

/* Layouty specyficzne */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.875rem;
}

.section-header-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.contact-map-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-info-box {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.map-container {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    height: 500px;
}

/* Karty korzyści z tłem */
.benefit-card-inner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    height: 400px;
    display: flex;
    flex-direction: column;
}

.benefit-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.benefit-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
}

.benefit-card-bg-1 {
    background: linear-gradient(135deg, rgba(0, 184, 124, 0.95) 0%, rgba(0, 153, 204, 0.95) 100%), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=600&h=400&fit=crop&q=80');
}

.benefit-card-bg-2 {
    background: linear-gradient(135deg, rgba(0, 184, 124, 0.95) 0%, rgba(0, 153, 204, 0.95) 100%), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=600&h=400&fit=crop&q=80');
}

.benefit-card-bg-3 {
    background: linear-gradient(135deg, rgba(0, 184, 124, 0.95) 0%, rgba(0, 153, 204, 0.95) 100%), url('https://images.unsplash.com/photo-1556761175-b413da4baf72?w=600&h=400&fit=crop&q=80');
}

.benefit-card-bg-4 {
    background: linear-gradient(135deg, rgba(0, 184, 124, 0.95) 0%, rgba(0, 153, 204, 0.95) 100%), url('https://images.unsplash.com/photo-1551434678-e076c223a692?w=600&h=400&fit=crop&q=80');
}

.benefit-card-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.benefit-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    min-height: 5.5rem;
    display: flex;
    align-items: flex-start;
}

.benefit-card-text {
    color: var(--text-secondary);
    margin: 0 0 2rem 0;
    text-align: left;
    line-height: 1.6;
    flex: 1;
}

/* Sekcje krokowe */
.step-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.step-grid.reverse .image-placeholder-container {
    order: 1;
}

.step-grid.reverse > div:last-child {
    order: 2;
}

.step-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.step-list-item:last-child {
    margin-bottom: 0;
}

.step-list-item .k-svg-icon {
    color: var(--brand-green);
}

.step-list-item span {
    color: var(--text-secondary);
}

/* Hero image */
.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    position: relative;
    z-index: 2;
}

.hero-decorative-orb {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 153, 204, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}

/* Dashboard mockup */
.dashboard-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-browser-frame {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    padding: 0.5rem;
    border: 1px solid var(--gray-200);
}

.dashboard-browser-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 0.5rem;
}

.dashboard-browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dashboard-browser-dot.red { background: #FF5F56; }
.dashboard-browser-dot.yellow { background: #FFBD2E; }
.dashboard-browser-dot.green { background: #27C93F; }

.dashboard-browser-title {
    flex: 1;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.dashboard-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* Module cards */
.module-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.module-card-text {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9375rem;
}

/* FAQ */
.faq-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.faq-card:last-child {
    margin-bottom: 0;
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-green);
    font-size: 1.5rem;
    font-weight: 700;
}

.faq-answer {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
    padding-left: 0;
    text-align: left;
}

.faq-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.faq-list-item {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.faq-list-item:last-child {
    margin-bottom: 0;
}

.faq-list-bullet {
    position: absolute;
    left: 0;
    color: var(--brand-green);
    font-weight: 600;
}

/* Strona błędu 404 */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

/* Responsive visibility */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Responsive - tablets */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-map-grid {
        grid-template-columns: 1fr;
    }
    
    .step-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 4rem;
    }
    
    .step-grid.reverse .image-placeholder-container,
    .step-grid.reverse > div:last-child {
        order: unset;
    }
}

/* Responsive - mobile */
@media (max-width: 768px) {
    .stats-grid {
        gap: 1.5rem;
    }
    
    .benefit-card-inner {
        height: auto;
    }
    
    .benefit-card-title {
        min-height: auto;
        font-size: 1.25rem;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .step-description {
        font-size: 1rem;
    }
    
    .hero-decorative-orb {
        width: 200px;
        height: 200px;
    }
}