/* --- DARK INDIGO PREMIUM DESIGN SYSTEM --- */
:root {
    /* Palette: Deep Indigo & Slate */
    --color-bg: #020617;
    /* Deep Midnight Indigo */
    --color-surface: rgba(15, 23, 42, 0.7);
    /* Dark Glassmorphism base (Slate-900) */
    --color-text: #94A3B8;
    /* Slate-400 - readable on dark */
    --color-text-dark: #F8FAFC;
    /* Slate-50 - headers */
    --color-primary: #6366F1;
    /* Indigo-500 - Vibrant Indigo */
    --color-primary-hover: #4F46E5;
    /* Indigo-600 */
    --color-accent: #818CF8;
    /* Indigo-400 */
    --color-border: rgba(99, 102, 241, 0.2);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 120px 0;
    --radius: 20px;

    /* Effects */
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 50px -12px rgba(99, 102, 241, 0.3);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --glow-text: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius);
}

.hidden {
    display: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
.text-glow {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.2;
    font-weight: 700;
}

.text-glow {
    text-shadow: var(--glow-text);
}

h1 {
    font-size: 4rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.75rem;
    margin-bottom: 2rem;
    position: relative;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.section-title {
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-text);
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto 60px;
}

.highlight-text {
    background: linear-gradient(120deg, var(--color-primary) 0%, #A5B4FC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-nav {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.btn-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* --- HEADER --- */
.header {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(to right, var(--color-primary), #A5B4FC);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

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

.nav a:not(.btn) {
    font-weight: 500;
    color: #94A3B8;
    font-size: 0.95rem;
}

.nav a:not(.btn):hover {
    color: #fff;
}

.lang-switch {
    display: flex;
    gap: 12px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switch a {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.5;
}

.lang-switch a.active,
.lang-switch a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.burger-menu {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* --- HERO --- */
.hero-lp {
    position: relative;
    padding: 180px 0 140px;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.9)), url('/public/assets/img/bydgoszcz-1920.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

/* Hero Pattern */
.hero-lp::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

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

.hero-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-accent);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--color-border);
    margin-bottom: 24px;
    display: inline-block;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hero-guarantee {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-num {
    font-size: 2.5rem;
    color: var(--color-primary);
    text-shadow: var(--glow-text);
}

.trust-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SECTION HELPERS --- */
.section-card-block {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 80px 60px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-glass);
}

@media (max-width: 768px) {
    .section-card-block {
        padding: 40px 20px;
        border-radius: 20px;
    }
}

/* --- PAIN/STRESS SECTION --- */
.pain-section {
    padding: var(--section-padding);
    background: #020617;
}

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

.pain-card {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.pain-card:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: translateY(-5px);
}

.pain-icon {
    color: #ef4444;
    margin-bottom: 20px;
    display: block;
}

.pain-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

/* --- EXTRA SERVICES --- */
.extra-services {
    padding: var(--section-padding);
}

.extra-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .extra-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .extra-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.extra-item {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}

.extra-item:hover {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.03);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5);
    border-color: transparent;
}

.extra-grid > a {
    color: inherit;
    text-decoration: none;
}

.extra-grid > a:focus-visible .extra-item {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

/* --- SERVICES --- */
.services {
    padding: var(--section-padding);
    background: #020617;
}

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

.service-card {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-glass);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    background: rgba(30, 41, 59, 0.6);
}

.card-title {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-family: var(--font-heading);
}

.card-desc {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-link {
    font-weight: 600;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- TESTIMONIALS --- */
.testimonials {
    padding: var(--section-padding);
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.quote {
    font-style: italic;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.7;
}

.author strong {
    display: block;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* --- ABOUT & BENEFITS --- */
.about {
    padding: var(--section-padding);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.benefit-card {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    padding: 30px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-5px);
}

.benefit-card strong {
    display: block;
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.benefit-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
}

/* --- FAQ / INFO --- */
.info-screens {
    padding: var(--section-padding);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.info-card {
    background: rgba(30, 41, 59, 0.4);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--color-primary);
    background: rgba(30, 41, 59, 0.6);
}

.info-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-family: var(--font-heading);
}

/* --- TEAM --- */
.team-section {
    padding: var(--section-padding);
    background: #020617;
}

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

.team-member-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.member-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    margin: 0 auto 24px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.member-photo:hover {
    transform: scale(1.05);
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.member-name {
    color: #fff;
}

.member-title {
    color: var(--color-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- CONTACT FORM --- */
.contact-form-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #1e1b4b 0%, #020617 100%);
    position: relative;
    overflow: hidden;
}

.contact-form {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 50px;
    max-width: 650px;
    margin: 0 auto;
}

.contact-form input,
.contact-form select {
    width: 100%;
    height: 50px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 20px;
    color: #fff;
    margin-bottom: 20px;
    outline: none;
}

.contact-form input:focus {
    border-color: var(--color-primary);
}

.contact-form .btn-submit {
    width: 100%;
    height: 54px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
}

/* --- FOOTER --- */
.footer {
    background: #020617;
    padding: 100px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
}

@media (max-width: 768px) {
    .hero-lp {
        background-image: linear-gradient(to bottom, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.9)), url('/public/assets/img/bydgoszcz-960.webp');
    }

    h1 {
        font-size: 2.75rem;
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        padding: 40px;
        z-index: 1500;
        overflow-y: auto;
    }

    .nav.active {
        display: flex;
        animation: fadeInUp 0.4s ease forwards;
    }

    .nav a:not(.btn) {
        font-size: 1.25rem;
        color: #fff;
    }

    .lang-switch {
        margin: 20px 0 0;
        padding: 20px 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        justify-content: center;
    }

    .lang-switch a {
        font-size: 1.1rem;
    }

    .burger-menu {
        display: block;
        position: relative;
        z-index: 1600;
        /* Keep sandwich button above full-screen menu */
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
    }
}

/* --- PROCESS TIMELINE STYLING --- */
.process-section {
    padding: var(--section-padding);
    background: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.15), transparent 50%), #020617;
    position: relative;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

/* Connecting line on desktop */
@media (min-width: 992px) {
    .process-timeline::before {
        content: '';
        position: absolute;
        top: 60px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(to right, var(--color-primary), var(--color-accent), var(--color-primary));
        z-index: 1;
        opacity: 0.4;
    }
}

.process-step {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 24px 30px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-step:hover {
    transform: translateY(-5px);
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.2);
}

.step-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover .step-num {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.step-content h3 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 991px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
