/**
 * SZKOLENIA.KAMILRZEZNIK.PL - STYLISTYKA I OPTYMALIZACJA CORE WEB VITALS
 * Architektura: Modern Dark Slate & Electric Blue / Cyan Tech
 */

:root {
    --bg-main: #0b0f19;
    --bg-card: #111827;
    --bg-card-hover: #1f2937;
    --bg-card-glass: rgba(17, 24, 39, 0.85);
    --border-color: #1f2937;
    --border-highlight: #374151;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.25);
    --accent-cyan: #06b6d4;
    --accent-indigo: #6366f1;
    --accent-emerald: #10b981;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: var(--transition);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: #ffffff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(31, 41, 55, 0.8);
    color: #e5e7eb;
    border: 1px solid var(--border-highlight);
}

.btn-secondary:hover {
    background: rgba(55, 65, 81, 0.8);
    color: #ffffff;
    border-color: #4b5563;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 70px 0 90px 0;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(6, 182, 212, 0.08) 50%, rgba(11, 15, 25, 0) 75%);
    pointer-events: none;
    z-index: 0;
}

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

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: #ffffff;
}

.hero-title-highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: #cbd5e1;
    margin-bottom: 36px;
    line-height: 1.65;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding-top: 36px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 12px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Section styling */
.section {
    padding: 90px 0;
    position: relative;
}

.section-alt {
    background-color: #0d1322;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px auto;
}

.section-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #38bdf8;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* About / Trener Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: center;
}

.about-image-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-highlight);
    background: var(--bg-card);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.about-image-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/5;
}

.about-image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 20px;
    border-radius: var(--radius-md);
}

.about-image-badge .name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.about-image-badge .role {
    font-size: 0.85rem;
    color: #38bdf8;
}

.about-content h3 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content p {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 18px;
    line-height: 1.7;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.highlight-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.highlight-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.highlight-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Training Cards (3 Szkolenia) */
.trainings-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.training-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.training-card:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.training-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.training-number {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #60a5fa;
    margin-bottom: 8px;
    display: inline-block;
}

.training-title {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 12px;
}

.training-desc {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.65;
    max-width: 860px;
}

.training-badge {
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-basic {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.badge-advanced {
    background: rgba(147, 51, 234, 0.15);
    color: #c084fc;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.badge-nocode {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Chronology / Flow steps */
.chronology-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    background: rgba(15, 23, 42, 0.6);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin: 28px 0;
}

.chrono-step {
    text-align: center;
    position: relative;
    padding: 10px;
}

.chrono-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.chrono-step-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 4px;
}

.chrono-step-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Accordion Lessons */
.accordion-wrapper {
    margin-top: 24px;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #e5e7eb;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-trigger:hover {
    background: rgba(31, 41, 55, 0.8);
    border-color: var(--border-highlight);
    color: #ffffff;
}

.accordion-content {
    display: none;
    padding-top: 16px;
}

.accordion-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.lesson-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
}

.lesson-card:hover {
    border-color: #374151;
    background: rgba(15, 23, 42, 0.95);
}

.lesson-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.lesson-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lesson-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.35;
}

.lesson-body {
    font-size: 0.88rem;
    color: #9ca3af;
    line-height: 1.55;
    margin-bottom: 12px;
}

.lesson-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    font-size: 0.78rem;
    color: #cbd5e1;
}

.lesson-tag {
    background: rgba(55, 65, 81, 0.6);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Certificate Section */
.certificate-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cert-badge-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #facc15;
    margin-bottom: 16px;
}

.cert-visual {
    background: rgba(11, 15, 25, 0.9);
    border: 2px solid #334155;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
}

.cert-visual::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px dashed rgba(59, 130, 246, 0.4);
    border-radius: calc(var(--radius-lg) - 4px);
    pointer-events: none;
}

.cert-visual h4 {
    font-size: 1.25rem;
    color: #f8fafc;
    font-weight: 800;
    margin-bottom: 4px;
}

.cert-visual p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.cert-stamp {
    display: inline-block;
    margin: 12px auto 0 auto;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid #2563eb;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #60a5fa;
    text-transform: uppercase;
}

/* Steps / Workflow */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.step-number-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 0.92rem;
    color: #9ca3af;
    line-height: 1.6;
}

/* Form Section */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-xl);
    padding: 44px;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.form-label .req {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #374151;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background: rgba(15, 23, 42, 1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.antispam-box {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #374151;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.antispam-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.antispam-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-refresh-captcha {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
    padding: 0;
}

.btn-refresh-captcha:hover {
    color: #ffffff;
}

.antispam-question {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #2563eb;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-label a {
    color: #60a5fa;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #93c5fd;
}

/* Alert / Feedback Messages */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

/* Footer */
.site-footer {
    background: #080c15;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 0.88rem;
    color: #9ca3af;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    color: #9ca3af;
}

.footer-links a:hover {
    color: #60a5fa;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 16px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Menu & Responsiveness */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 992px) {
    .about-grid, .certificate-box {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .site-nav.menu-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f172a;
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
        gap: 18px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }
    
    .training-card {
        padding: 24px 20px;
    }
    
    .form-card {
        padding: 28px 20px;
    }
    
    .certificate-box {
        padding: 28px 20px;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
}
