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

:root {
    --magenta: #f43f8f; /* primary accent */
    --purple: #6b4df6;  /* brand primary */
    --dark-purple: #5636ea;
    --black: #111827;
    --white: #ffffff;
    --gray: #f7f8fc;
    --text-secondary: #4b5563;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--black);
    min-height: 100vh;
    background: linear-gradient(90deg, #e0eaff 0%, #ffe0fa 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-purple) 100%);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    white-space: nowrap;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-buttons--user {
    display: flex;
    gap: 0.5rem;
    flex-direction: row;
}

@media (max-width: 400px) {
    .nav-buttons--user {
        flex-direction: column;
        gap: 0.3rem;
        align-items: stretch;
    }
}

/* Poprawki kontrastu i czytelności przycisków CTA */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700; /* Zwiększam wagę czcionki */
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Dodaję cień tekstu */
    letter-spacing: 0.02em; /* Lepsze rozstawienie liter */
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 3px solid var(--white); /* Zwiększam grubość obramowania */
    box-shadow: 0 2px 8px rgba(255,255,255,0.2); /* Dodaję cień */
}

.btn-outline:hover {
    background: var(--white);
    color: var(--magenta);
    transform: translateY(-3px); /* Zwiększam efekt unoszenia */
    box-shadow: 0 8px 25px rgba(255,255,255,0.3); /* Większy cień przy hover */
}

.btn-outline2 {
    background: var(--white);
    color: var(--magenta);
    border: 3px solid var(--white); /* Zwiększam grubość obramowania */
    box-shadow: 0 4px 15px rgba(255,255,255,0.3); /* Dodaję cień */
}

.btn-outline2:hover {
    background: var(--magenta);
    color: var(--white);
    transform: translateY(-3px); /* Zwiększam efekt unoszenia */
    box-shadow: 0 8px 25px rgba(255,0,128,0.4); /* Większy cień przy hover */
}

.btn-primary {
    background: var(--white);
    color: var(--magenta);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3); /* Dodaję cień */
}

.btn-primary:hover {
    background: var(--gray);
    transform: translateY(-3px); /* Zwiększam efekt unoszenia */
    box-shadow: 0 8px 25px rgba(255,255,255,0.4); /* Większy cień przy hover */
}

.btn-gradient {
    background: linear-gradient(135deg, var(--magenta), var(--purple));
    color: var(--white);
    border: none;
    box-shadow: 0 6px 20px rgba(255, 0, 128, 0.4); /* Zwiększam cień */
    font-weight: 700; /* Zwiększam wagę czcionki */
    text-shadow: 0 1px 3px rgba(0,0,0,0.2); /* Dodaję cień tekstu */
}

.btn-gradient:hover {
    transform: translateY(-4px); /* Zwiększam efekt unoszenia */
    box-shadow: 0 15px 40px rgba(255, 0, 128, 0.5); /* Większy cień przy hover */
    background: linear-gradient(135deg, #e60073, #7c3aed); /* Ciemniejszy gradient przy hover */
}

/* Landing Page */
.hero {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-purple) 100%);
    color: var(--white);
    padding: 8rem 0; /* Zwiększam padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 4rem auto 0 auto; /* Zwiększam margines */
    border-radius: 40px;
    box-shadow: 0 8px 40px 0 rgba(100, 50, 207, 0.18), 0 2px 12px 0 rgba(255,0,128,0.10);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1.5px solid rgba(255,255,255,0.25);
    transition: box-shadow 0.3s, background 0.3s;
}
.hero:hover {
    box-shadow: 0 16px 64px 0 rgba(100, 50, 207, 0.28), 0 4px 24px 0 rgba(255,0,128,0.18);
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-purple) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ff0080" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ff0080" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="300" cy="700" r="120" fill="url(%23a)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

.hero-logo {
    width: 280px;
    height: auto;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
}

/* Hero ship animation - more dramatic for landing page */
.hero .ship-animation {
    animation: heroShipOnSea 10s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes heroShipOnSea {
    0%, 100% {
        transform: translateY(0px) rotate(-3deg) scale(1);
    }
    20% {
        transform: translateY(-15px) rotate(2deg) scale(1.02);
    }
    40% {
        transform: translateY(-5px) rotate(4deg) scale(1);
    }
    60% {
        transform: translateY(-12px) rotate(-1deg) scale(1.01);
    }
    80% {
        transform: translateY(-8px) rotate(3deg) scale(1);
    }
}

.hero h1 {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 4.2rem;
    font-weight: 900;
    margin-top: -2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--magenta), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 32px rgba(255,0,128,0.25), 0 2px 8px rgba(101,35,207,0.18);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--white);
    opacity: 0.92;
    letter-spacing: 0.01em;
}

.hero-svg-decor {
    width: 100%;
    margin-bottom: -1.5rem;
    margin-top: -1.5rem;
    z-index: 1;
    position: relative;
}

.hero-opinion {
    margin-top: 2.5rem;
    background: rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 1.1rem 1.5rem 1rem 1.5rem;
    box-shadow: 0 2px 16px rgba(255,0,128,0.08);
    display: inline-block;
    max-width: 420px;
}

.hero-opinion-quote {
    font-size: 1.08rem;
    font-style: italic;
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
}

.hero-opinion-author {
    font-size: 0.98rem;
    color: #ffe0fa;
    opacity: 0.85;
    display: block;
    text-align: right;
}

/* Features */
.features {
    padding: 8rem 0; /* Zwiększam padding */
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f4ff 100%); /* Zmieniam tło */
    max-width: 900px;
    margin: 5rem auto; /* Zwiększam margines */
    border-radius: 32px; /* Zwiększam zaokrąglenie */
    box-shadow: 0 8px 40px 0 rgba(100, 50, 207, 0.12); /* Zwiększam cień */
    border: 2px solid rgba(255,255,255,0.4); /* Dodaję subtelne obramowanie */
}

/* Sekcja "Dlaczego Fizyka Statkiem?" - inne tło */
.landing-dashboard {
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%); /* Dodaję tło */
    padding: 6rem 0; /* Dodaję padding */
    margin: 5rem auto; /* Dodaję margines */
    border-radius: 32px; /* Dodaję zaokrąglenie */
    box-shadow: 0 8px 40px 0 rgba(100, 50, 207, 0.08); /* Dodaję cień */
}

.features-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}
.feature-card details {
    text-align: left;
    margin: 0.6rem 0;
    background: #f9fafb;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
}
.feature-card details > summary {
    cursor: pointer;
    font-weight: 700;
    color: #374151;
    outline: none;
    position: relative;
    padding-right: 1.1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}
.feature-card details > summary::-webkit-details-marker { display: none; }
.feature-card details > summary::marker { content: ''; }
.feature-card details > summary::after {
    content: '▾';
    position: absolute;
    right: 0.25rem;
    top: 0.1rem;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}
.feature-card details[open] > summary {
    color: var(--magenta);
}
.feature-card details[open] > summary::after { transform: rotate(180deg); }
.feature-card details ul {
    margin: 0.4rem 0 0.2rem 1rem;
}
.feature-card .btn.btn-outline2 {
    margin-top: 0.8rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.feature-card .btn.btn-outline2:active { transform: translateY(0) scale(0.98); }
.btn:active { transform: translateY(0) scale(0.98); }

/* Ujednolicone wymiary przycisków w kafelkach: "Zobacz kurs" i "Kup teraz" */
.card-actions {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
}
.card-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem !important;
    height: 44px;
    font-size: 0.95rem;
    border-radius: 16px !important;
    margin: 0 !important;
    line-height: 1 !important;
    flex: 1 1 0;
    width: auto;
}
.card-actions .btn-gradient {
    box-shadow: 0 3px 12px rgba(255, 0, 128, 0.25);
    transform: translateY(0);
}
.card-actions .btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 0, 128, 0.28);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 0, 128, 0.2);
    border-color: var(--magenta);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--magenta), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-card h3 {
    color: var(--black);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Pricing */
.pricing {
    padding: 6rem 0;
    background: var(--white);
    max-width: 900px;
    margin: 3rem auto;
    border-radius: 24px;
    box-shadow: 0 4px 32px 0 rgba(100, 50, 207, 0.08);
}

.pricing-logo {
    width: 100px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(255, 0, 128, 0.2));
}

.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.pricing-card {
    background: var(--white);
    border: 3px solid var(--gray);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    margin: 2rem auto;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--magenta);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 0, 128, 0.2);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--magenta);
    margin: 1rem 0;
}

.price-features {
    list-style: none;
    margin: 2rem 0;
}

.price-features li {
    padding: 0.5rem 0;
    color: var(--black);
}

.price-features li::before {
    content: '✓';
    color: var(--purple);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Fancy Dashboard Background */
.dashboard-fancy-bg {
    display: none;
}

.dashboard-container {
    max-width: 900px;
    margin: 3rem auto;
    border-radius: 32px;
    box-shadow: 0 8px 40px 0 rgba(100, 50, 207, 0.18), 0 2px 12px 0 rgba(255,0,128,0.10);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1.5px solid rgba(255,255,255,0.35);
    padding: 2.5rem 2rem 2rem 2rem;
    transition: box-shadow 0.3s, background 0.3s;
}
.dashboard-container:hover {
    box-shadow: 0 16px 64px 0 rgba(100, 50, 207, 0.28), 0 4px 24px 0 rgba(255,0,128,0.18);
    background: rgba(255,255,255,0.28);
}

.fancy-subjects-grid {
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.fancy-card {
    background: linear-gradient(135deg, #fff 60%, #f3e8ff 100%);
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(100, 50, 207, 0.10), 0 1.5px 8px 0 rgba(255,0,128,0.08);
    border: 2px solid #ececff;
    padding: 2.5rem 2rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s;
}
.fancy-card:hover {
    transform: translateY(-10px) scale(1.03) rotate(-1deg);
    box-shadow: 0 16px 48px 0 rgba(100, 50, 207, 0.18), 0 3px 16px 0 rgba(255,0,128,0.12);
    border-color: var(--magenta);
}
.subject-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px #ff008033);
}
.subject-progress {
    width: 100%;
    height: 10px;
    background: #ececff;
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 4px #6523cf11;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--magenta), var(--purple));
    border-radius: 6px;
    transition: width 0.5s cubic-bezier(.4,2,.6,1);
}

.dashboard-header {
    background: linear-gradient(135deg, var(--magenta), var(--purple));
    color: var(--white);
    padding: 3rem 0 2.5rem 0;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 4px 32px 0 rgba(100, 50, 207, 0.10);
    position: relative;
    overflow: visible;
}
.dashboard-header h1 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px #6523cf33;
}
.dashboard-header p {
    font-size: 1.1rem;
    opacity: 0.92;
    margin-bottom: 0;
}

.dashboard-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

/* Ship Animation - Simulating ship movement on sea */
.ship-animation {
    animation: shipOnSea 8s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes shipOnSea {
    0%, 100% {
        transform: translateY(0px) rotate(-2deg);
    }
    25% {
        transform: translateY(-8px) rotate(1deg);
    }
    50% {
        transform: translateY(-3px) rotate(3deg);
    }
    75% {
        transform: translateY(-6px) rotate(-1deg);
    }
}

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

.subject-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.subject-card:hover {
    transform: translateY(-5px);
    border-color: var(--magenta);
}

.subject-content {
    margin-top: 2rem;
}

.video-section, .pdf-section, .quiz-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray);
    border-radius: 10px;
}

.video-frame {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    border: none;
}

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

.pdf-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    margin: 0.5rem 0;
    border-radius: 8px;
}

.quiz-question {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.quiz-options {
    margin-top: 1rem;
}

.quiz-option {
    display: block;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: var(--gray);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.quiz-option:hover {
    background: var(--purple);
    color: var(--white);
}

/* Auth Forms */
.auth-container {
    max-width: 450px; /* Zwiększam szerokość */
    margin: 6rem auto; /* Zwiększam margines */
    padding: 3.5rem; /* Zwiększam padding */
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%); /* Dodaję gradient */
    border-radius: 24px; /* Zwiększam zaokrąglenie */
    box-shadow: 0 20px 60px rgba(0,0,0,0.15); /* Zwiększam cień */
    border: 2px solid rgba(255,255,255,0.3); /* Dodaję subtelne obramowanie */
}

.form-group {
    margin-bottom: 2rem; /* Zwiększam margines */
    position: relative; /* Dodaję pozycjonowanie względne */
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem; /* Zwiększam margines */
    color: var(--black);
    font-weight: 700; /* Zwiększam wagę */
    font-size: 1.05rem; /* Zwiększam rozmiar */
    letter-spacing: 0.01em; /* Dodaję rozstawienie liter */
}

.form-group input {
    width: 100%;
    padding: 1.2rem; /* Zwiększam padding */
    border: 3px solid #e1e5e9; /* Zwiększam grubość obramowania */
    border-radius: 12px; /* Zwiększam zaokrąglenie */
    font-size: 1.05rem; /* Zwiększam rozmiar */
    transition: all 0.3s ease;
    background: #f8f9fa; /* Dodaję tło */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); /* Dodaję wewnętrzny cień */
}

.form-group input:focus {
    outline: none;
    border-color: var(--magenta);
    background: #fff; /* Zmieniam tło przy focus */
    box-shadow: 0 0 0 4px rgba(255,0,128,0.1), inset 0 2px 4px rgba(0,0,0,0.05); /* Dodaję focus ring */
    transform: translateY(-1px); /* Subtelny efekt unoszenia */
}

/* Walidacja pól w czasie rzeczywistym */
.form-group input.valid {
    border-color: #10b981; /* Zielone obramowanie dla poprawnych pól */
    background: #f0fdf4; /* Zielone tło */
}

.form-group input.invalid {
    border-color: #ef4444; /* Czerwone obramowanie dla błędnych pól */
    background: #fef2f2; /* Czerwone tło */
}

/* Komunikaty walidacji */
.form-group .validation-message {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-group .validation-message.error {
    color: #ef4444;
}

.form-group .validation-message.success {
    color: #10b981;
}

/* Przyciski formularzy */
.auth-container .btn-gradient {
    width: 100%;
    padding: 1.2rem; /* Zwiększam padding */
    font-size: 1.1rem; /* Zwiększam rozmiar */
    font-weight: 700; /* Zwiększam wagę */
    border-radius: 16px; /* Zwiększam zaokrąglenie */
    margin-top: 1rem; /* Dodaję margines */
    box-shadow: 0 6px 20px rgba(255,0,128,0.3); /* Dodaję cień */
}

.auth-container .btn-gradient:hover {
    transform: translateY(-3px); /* Zwiększam efekt unoszenia */
    box-shadow: 0 12px 30px rgba(255,0,128,0.4); /* Większy cień przy hover */
}

/* Linki w formularzach */
.auth-container a {
    color: var(--magenta);
    font-weight: 600; /* Zwiększam wagę */
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-container a:hover {
    color: var(--purple);
    text-decoration: underline;
    text-underline-offset: 2px; /* Dodaję odstęp podkreślenia */
}

/* Responsive */
@media (max-width: 768px) {
    /* .logo-text {
        font-size: 1.2rem;
    } */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-logo {
        width: 220px;
    }

    .dashboard-logo {
        width: 120px;
    }

    .features-logo {
        width: 100px;
    }

    .pricing-logo {
        width: 80px;
    }

    /* Reduce animation intensity on mobile */
    .ship-animation {
        animation-duration: 12s;
    }

    .hero .ship-animation {
        animation-duration: 15s;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-opinion {
        padding: 0.7rem 0.7rem 0.6rem 0.7rem;
        font-size: 0.98rem;
    }
    
    /* Responsywność dla lepszych odstępów na mobile */
    .hero {
        padding: 6rem 0; /* Zmniejszam padding na mobile */
        margin: 2rem auto 0 auto; /* Zmniejszam margines na mobile */
    }
    
    .buy-all-materials {
        margin: 3rem auto 2rem auto; /* Zmniejszam marginesy na mobile */
    }
    
    .opinions {
        padding: 4rem 0 5rem 0; /* Zmniejszam padding na mobile */
        margin-top: 3rem; /* Zmniejszam margines na mobile */
    }
    
    .features {
        padding: 6rem 0; /* Zmniejszam padding na mobile */
        margin: 3rem auto; /* Zmniejszam margines na mobile */
    }
    
    .landing-dashboard {
        padding: 4rem 0; /* Zmniejszam padding na mobile */
        margin: 3rem auto; /* Zmniejszam margines na mobile */
    }
    
    .auth-container {
        margin: 4rem auto; /* Zmniejszam margines na mobile */
        padding: 2.5rem; /* Zmniejszam padding na mobile */
    }
    
    .form-group {
        margin-bottom: 1.5rem; /* Zmniejszam margines na mobile */
    }
    
    .form-group input {
        padding: 1rem; /* Zmniejszam padding na mobile */
        font-size: 1rem; /* Zmniejszam rozmiar na mobile */
    }
    
    /* Responsywność dla sekcji korepetycji */
    #korepetycje {
        padding: 2rem 0; /* Zmniejszam padding na mobile */
        margin: 2rem auto; /* Zmniejszam margines na mobile */
    }
}

@media (max-width: 900px) {
    .fancy-card {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    /* Responsywność dla sekcji hero na tabletach */
    .hero {
        padding: 6rem 0; /* Zmniejszam padding na tabletach */
        margin: 3rem auto 0 auto; /* Zmniejszam margines na tabletach */
    }
    
    .hero h1 {
        font-size: 3.5rem; /* Zmniejszam rozmiar na tabletach */
    }
    
    /* Responsywność dla sekcji buy-all-materials na tabletach */
    .buy-all-materials {
        margin: 4rem auto 3rem auto; /* Zmniejszam marginesy na tabletach */
    }
    
    .buy-all-materials h2 {
        font-size: 2.1rem; /* Zmniejszam rozmiar na tabletach */
    }
    
    /* Responsywność dla sekcji opinii na tabletach */
    .opinions {
        padding: 5rem 0 6rem 0; /* Zmniejszam padding na tabletach */
        margin-top: 4rem; /* Zmniejszam margines na tabletach */
    }
    
    /* Responsywność dla sekcji features na tabletach */
    .features {
        padding: 6rem 0; /* Zmniejszam padding na tabletach */
        margin: 4rem auto; /* Zmniejszam margines na tabletach */
    }
    
    /* Responsywność dla sekcji landing-dashboard na tabletach */
    .landing-dashboard {
        padding: 5rem 0; /* Zmniejszam padding na tabletach */
        margin: 4rem auto; /* Zmniejszam margines na tabletach */
    }
    
    /* Responsywność dla sekcji korepetycji na tabletach */
    #korepetycje {
        padding: 3rem 0; /* Zmniejszam padding na tabletach */
        margin: 2.5rem auto; /* Zmniejszam margines na tabletach */
    }
    
    /* Responsywność dla sekcji auth-container na tabletach */
    .auth-container {
        margin: 5rem auto; /* Zmniejszam margines na tabletach */
        padding: 3rem; /* Zmniejszam padding na tabletach */
    }
}

@media (max-width: 600px) {
    header {
        padding: 0.6rem 0; /* mniejsza wysokość headera na telefonach */
    }
    .dashboard-fancy-bg {
        background: linear-gradient(120deg, #f8fafc 0%, #e0e7ff 100%);
    }
    .fancy-card {
        padding: 1rem 0.5rem 0.5rem 0.5rem;
    }
    .dashboard-header {
        padding: 2rem 0 1.5rem 0;
    }
    
    /* Responsywność dla sekcji hero na małych ekranach */
    .hero {
        padding: 4rem 0; /* Zmniejszam padding na małych ekranach */
        margin: 1.5rem auto 0 auto; /* Zmniejszam margines na małych ekranach */
        border-radius: 24px; /* Zmniejszam zaokrąglenie na małych ekranach */
    }
    
    .hero h1 {
        font-size: 2rem; /* Zmniejszam rozmiar na małych ekranach */
    }
    
    .hero-subtitle {
        font-size: 1rem; /* Zmniejszam rozmiar na małych ekranach */
    }
    
    /* Responsywność dla sekcji opinii na małych ekranach */
    .opinions {
        padding: 2.5rem 0 3rem 0; /* Zmniejszam padding na małych ekranach */
        margin-top: 2rem; /* Zmniejszam margines na małych ekranach */
        border-radius: 20px; /* Zmniejszam zaokrąglenie na małych ekranach */
    }
    
    /* Responsywność dla sekcji features na małych ekranach */
    .features {
        padding: 4rem 0; /* Zmniejszam padding na małych ekranach */
        margin: 2rem auto; /* Zmniejszam margines na małych ekranach */
        border-radius: 20px; /* Zmniejszam zaokrąglenie na małych ekranach */
    }
    
    /* Responsywność dla sekcji buy-all-materials na małych ekranach */
    .buy-all-materials {
        margin: 2rem auto 1.5rem auto; /* Zmniejszam marginesy na małych ekranach */
    }
    
    .buy-all-materials h2 {
        font-size: 1.8rem; /* Zmniejszam rozmiar na małych ekranach */
    }
    
    .buy-all-materials .btn-gradient {
        font-size: 1.1rem; /* Zmniejszam rozmiar na małych ekranach */
        padding: 1rem 2rem; /* Zmniejszam padding na małych ekranach */
    }
    
    /* Responsywność dla sekcji landing-dashboard na małych ekranach */
    .landing-dashboard {
        padding: 3rem 0; /* Zmniejszam padding na małych ekranach */
        margin: 2rem auto; /* Zmniejszam margines na małych ekranach */
        border-radius: 20px; /* Zmniejszam zaokrąglenie na małych ekranach */
    }
    
    /* Responsywność dla sekcji auth-container na małych ekranach */
    .auth-container {
        margin: 3rem auto; /* Zmniejszam margines na małych ekranach */
        padding: 2rem; /* Zmniejszam padding na małych ekranach */
    }
    
    /* Responsywność dla sekcji korepetycji na małych ekranach */
    #korepetycje {
        padding: 1.5rem 0; /* Zmniejszam padding na małych ekranach */
        margin: 1.5rem auto; /* Zmniejszam margines na małych ekranach */
        border-radius: 20px; /* Zmniejszam zaokrąglenie na małych ekranach */
    }
    
    .korepetycje-block {
        margin: 1rem 0.2rem;
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .korepetycje-image, .korepetycje-text {
        padding: 0.8rem 0.4rem;
    }
    .korepetycje-text {
        font-size: 0.98rem;
    }
    .korepetycje-image img {
        max-width: 100%;
        min-width: 120px;
        border-radius: 10px;
    }
}

/* Dropdown menu styles */
.dropdown-menu-container {
  position: relative;
  display: inline-block;
  margin-left: 1rem;
}
.dropdown-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--magenta, #a020f0);
  padding: 0.2em 0.5em;
  border-radius: 8px;
  transition: background 0.2s;
}
.dropdown-toggle:hover, .dropdown-toggle:focus {
  background: rgba(160,32,240,0.08);
}
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  min-width: 180px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  border-radius: 12px;
  z-index: 1000;
  padding: 0.5em 0;
  animation: dropdown-fade-in 0.2s;
}
.dropdown-menu.show {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 0.7em 1.2em;
  color: #222;
  text-decoration: none;
  font-size: 1.05rem;
  border: none;
  background: none;
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover {
  background: var(--magenta, #a020f0);
  color: #fff;
}
@keyframes dropdown-fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
  .dropdown-menu {
    min-width: 120px;
    right: 0;
    left: auto;
  }
}

/* Mobile polish: stronger contrast, softer corners, lighter shadows */
@media (max-width: 600px) {
  .hero,
  .features,
  .opinions,
  .landing-dashboard,
  .auth-container,
  .feature-card,
  .pricing-card,
  .pdf-stage-card {
    border-radius: 22px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08) !important;
  }
  .feature-card {
    padding: 2rem;
  }
  .feature-card details {
    background: #f3f6fb;
    border-color: #e5eaf2;
  }
  body {
    background: linear-gradient(90deg, #dde7ff 0%, #ffd6f2 100%);
  }
}

/* Stylowanie podglądu hasła */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    width: 100%;
    padding-right: 2.5em;
}
.toggle-password {
    position: absolute;
    right: 0.7em;
    background: none;
    border: none;
    font-size: 1.2em;
    color: #888;
    cursor: pointer;
    padding: 0 0.3em;
    z-index: 2;
    transition: color 0.2s;
}
.toggle-password:hover, .toggle-password:focus {
    color: var(--magenta);
}

/* Korepetycje page styles */
#korepetycje {
    background: linear-gradient(135deg, #fff5ff 0%, #f0f4ff 100%); /* Dodaję tło */
    padding: 4rem 0; /* Dodaję padding */
    margin: 3rem auto; /* Dodaję margines */
    border-radius: 32px; /* Dodaję zaokrąglenie */
}

#korepetycje .container {
  max-width: 1400px;
}
.korepetycje-block {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 3000px;
  margin: 3rem auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: visible;
  height: auto;
  gap: 0;
}
.korepetycje-image {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6e6f9;
  position: relative;
  overflow: visible;
}
.korepetycje-text {
  flex: 1.618;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1.2rem;
}
.korepetycje-text .preserve {
  white-space: pre-line;
  line-height: 1.75;
}
.korepetycje-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.korepetycje-cta .btn {
  border-radius: 14px;
  padding: 0.9rem 1.6rem;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.social-links .social {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3e8ff;
  color: #6523cf;
  text-decoration: none;
  border: 2px solid #ececff;
  box-shadow: 0 4px 16px rgba(100, 50, 207, 0.10);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.social-links .social svg {
  width: 22px;
  height: 22px;
}
.social-links .social:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  color: white;
  box-shadow: 0 10px 24px rgba(255, 0, 128, 0.25);
}
.social-links .email-text {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}
.social-links .email-text:hover {
  color: var(--magenta);
  text-decoration: underline;
}
@media (max-width: 900px) {
  .korepetycje-block {
    flex-direction: column;
    aspect-ratio: unset;
    height: auto;
  }
  .korepetycje-image, .korepetycje-text {
    flex: unset;
    width: 100%;
    padding: 1.2rem 1rem;
  }
  .korepetycje-image {
    min-height: 0;
  }
  .korepetycje-image img {
    width: 220px;
    height: 220px;
    max-width: none;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }
  .korepetycje-text {
    font-size: 1.05rem;
    padding-top: 0.5rem;
  }
}
.korepetycje-image img {
  width: 100%;
  height: auto;
  max-width: 640px;
  max-height: none;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  position: static;
  transform: none;
  margin: 0 auto;
}

.opinions {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #f3e8ff 100%); /* Bardziej zróżnicowany gradient */
    padding: 6rem 0 7rem 0; /* Zwiększam padding */
    margin-top: 5rem; /* Zwiększam margines */
    border-radius: 40px; /* Zwiększam zaokrąglenie */
    box-shadow: 0 8px 40px 0 rgba(100, 50, 207, 0.12); /* Zwiększam cień */
    border: 2px solid rgba(255,255,255,0.3); /* Dodaję subtelne obramowanie */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.opinions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}
.opinion-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(160,32,240,0.08);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 140px;
    border: 2px solid #f3e8ff;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.opinion-card:hover {
    box-shadow: 0 8px 32px rgba(255,0,128,0.13);
    border-color: var(--magenta);
}
.opinion-quote {
    font-size: 1.08rem;
    font-style: italic;
    color: var(--purple);
    margin-bottom: 0.7rem;
    display: block;
}
.opinion-author {
    font-size: 0.98rem;
    color: #a020f0;
    opacity: 0.85;
    display: block;
    text-align: right;
    width: 100%;
}
@media (max-width: 768px) {
    .opinions {
        padding: 4rem 0 5rem 0; /* Zmniejszam padding na mobile */
        margin-top: 3rem; /* Zmniejszam margines na mobile */
        border-radius: 24px; /* Zmniejszam zaokrąglenie na mobile */
    }
    .opinion-card {
        padding: 1.1rem 0.7rem 0.8rem 0.7rem;
        min-height: 100px;
    }
}

.change-password-form {
    margin-top: 2.2rem;
    margin-bottom: 1.5rem;
    background: #f8f8ff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(160,32,240,0.06);
    padding: 2rem 1.2rem 1.2rem 1.2rem;
}
@media (max-width: 600px) {
    .change-password-form {
        padding: 1.1rem 0.5rem 0.7rem 0.5rem;
    }
}

.subject-card .btn-primary,
.subject-card .btn-outline {
    font-size: 1.13rem;
    padding: 0.85em 2.1em;
    border-radius: 12px;
    margin: 0.2em 0.1em;
    box-shadow: 0 2px 12px rgba(160,32,240,0.10);
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.subject-card .btn-primary {
    background: linear-gradient(135deg, var(--magenta), var(--purple));
    color: #fff;
    border: none;
}
.subject-card .btn-primary:hover {
    background: linear-gradient(135deg, var(--purple), var(--magenta));
    color: #fff;
    box-shadow: 0 6px 24px rgba(160,32,240,0.18);
}
.subject-card .btn-outline {
    background: #fff;
    color: var(--magenta);
    border: 2px solid var(--magenta);
}
.subject-card .btn-outline:hover {
    background: var(--magenta);
    color: #fff;
    box-shadow: 0 6px 24px rgba(255,0,128,0.13);
}

/* Always show hamburger menu, hide desktop nav on all sizes */
.nav-main-buttons {
  display: none !important;
}
.dropdown-menu-container {
  display: inline-block !important;
}

/* Mobile course dropdown (pokazywany w widoku kursu na telefonach) */
@media (max-width: 848px) {
  .mobile-course-dropdown {
    display: block;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    margin: 0.5rem 0 1rem 0;
  }
  .mobile-course-dropdown label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 0.4rem;
  }
  .mobile-course-select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
  }
}

/* Dashboard panel layout */
.dashboard-panel-layout {
  display: flex;
  height: calc(100vh - 80px); /* Pełna wysokość minus header */
  min-height: 600px;
  background: #fff;
  border-radius: 0; /* Usuń zaokrąglenie */
  box-shadow: none; /* Usuń cień */
  overflow: hidden;
  width: 100vw;
  margin: 0;
  position: fixed;
  top: 80px; /* Pozycja pod headerem */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
}
.dashboard-sidebar {
  width: 380px;
  min-width: 260px;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  border-right: 2px solid #f3e8ff;
  padding: 2rem 0.5rem 2rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  height: 100%;
}
.dashboard-sidebar .course-list-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.1rem; /* minimalnie mniejszy przycisk */
  border-radius: 12px;
  font-size: 1.13rem;
  font-weight: 500;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dashboard-sidebar .course-list-item.active {
  background: var(--magenta, #ff0080);
  color: #fff;
}
.dashboard-sidebar .course-list-item .lock {
  font-size: 1.1em;
  color: #a0a0a0;
  margin-left: auto;
  flex-shrink: 0;
}
.dashboard-sidebar .course-list-item.active .lock {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}
.dashboard-main {
  flex: 1;
  padding: 2.5rem 2rem;
  overflow-y: auto;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  height: 100%;
}
.dashboard-preview-placeholder {
  color: #888;
  font-size: 1.2rem;
  text-align: center;
  margin-top: 5rem;
}
@media (max-width: 900px) {
  .dashboard-panel-layout {
    flex-direction: column;
    height: calc(100vh - 80px);
    min-height: 600px;
    width: 100vw;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .dashboard-sidebar {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 2px solid #f3e8ff;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.9rem 0.4rem; /* minimalnie mniejsza wysokość paska */
    overflow-x: auto;
    overflow-y: visible;
    height: auto;
    min-height: 90px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  }
  .dashboard-sidebar .course-list-item {
    min-width: 140px;
    max-width: 180px;
    justify-content: center;
    font-size: 0.88rem; /* lekko mniejsza czcionka */
    padding: 0.72rem 0.55rem; /* minimalnie mniejszy przycisk */
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    flex-shrink: 0;
    line-height: 1.2;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
    position: relative;
  }
  .dashboard-sidebar .course-list-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  .dashboard-sidebar .course-list-item.active {
    background: var(--magenta, #ff0080);
    color: #fff;
    border-color: var(--magenta, #ff0080);
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
  }
  .dashboard-sidebar .course-list-item .lock {
    font-size: 1em;
    color: #ff6b6b;
    margin-left: 0.3rem;
    flex-shrink: 0;
    opacity: 0.8;
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
  }
  .dashboard-sidebar .course-list-item.active .lock {
    color: rgba(255, 255, 255, 0.8);
  }
  .dashboard-main {
    padding: 1.2rem 0.5rem;
    height: calc(100% - 90px);
  }
}

/* Dodatkowe style dla bardzo małych ekranów */
@media (max-width: 480px) {
  .dashboard-sidebar {
    gap: 0.3rem;
    padding: 0.7rem 0.25rem; /* minimalnie mniejsza wysokość paska */
    min-height: 80px; /* lekko niższe */
  }
  .dashboard-sidebar .course-list-item {
    min-width: 120px;
    max-width: 160px;
    font-size: 0.83rem; /* lekko mniejsza czcionka */
    padding: 0.64rem 0.55rem; /* minimalnie mniejszy przycisk */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
    position: relative;
  }
  .dashboard-sidebar .course-list-item .lock {
    font-size: 0.85em;
    margin-left: 0.3rem;
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
  }
  .dashboard-main {
    padding: 0.9rem 0.3rem;
    height: calc(100% - 80px);
  }
}

/* Task Styles */
.task-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.task-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.task-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--black);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 12px;
    border-left: 4px solid var(--magenta);
}

.task-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: none;
    display: block;
    transition: transform 0.3s ease;
}

.task-image:hover {
    transform: scale(1.02);
}

.task-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
    align-items: flex-start;
}

.task-images .task-image {
    margin: 0;
    display: block;
    height: auto;
    max-height: 320px;
    width: auto;
    max-width: 100%;
}

.task-answer {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    color: #0c4a6e;
    font-weight: 500;
    position: relative;
    white-space: pre-line;
}

.task-answer::before {
    content: '✓ Odpowiedź:';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #0ea5e9;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.task-buttons-container {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.task-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.task-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.task-btn:hover::before {
    left: 100%;
}

.task-btn-good {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.task-btn-good:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.task-btn-good:active,
.task-btn-good.clicked {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

.task-btn-bad {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.task-btn-bad:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.task-btn-bad:active,
.task-btn-bad.clicked {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    filter: brightness(1.1);
}

.task-btn-skip {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.task-btn-skip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

.task-btn-skip:active,
.task-btn-skip.clicked {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.5);
    filter: brightness(1.1);
}

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

/* Style dla zablokowanych przycisków w podglądzie */
.task-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.task-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.show-answer-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: #ccc !important;
    color: #666 !important;
}

.show-answer-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Style dla przycisku "Kup teraz" w overlay'u podglądu */
.task-container .btn-gradient {
    background: linear-gradient(135deg, var(--magenta), var(--purple)) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.task-container .btn-gradient:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 0, 128, 0.4) !important;
    background: linear-gradient(135deg, #e60073, #7c3aed) !important;
}

.task-container .btn-gradient:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3) !important;
}

/* Dodatkowe style dla przycisków po kliknięciu */
.task-btn.clicked {
    animation: buttonPulse 0.3s ease-in-out;
    position: relative;
}

.task-btn.clicked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    animation: ripple 0.6s ease-out;
}

@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Style dla przycisków podczas zapisywania */
.task-btn.saving {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
    animation: savingPulse 1.5s ease-in-out infinite;
}

@keyframes savingPulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Style dla przycisków po udanym zapisie */
.task-btn.success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5) !important;
    animation: successGlow 0.5s ease-in-out;
}

@keyframes successGlow {
    0% { 
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }
    50% { 
        box-shadow: 0 8px 30px rgba(16, 185, 129, 0.7);
    }
    100% { 
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
    }
}

.task-btn-icon {
    font-size: 1.1rem;
}

.show-answer-btn {
    background: linear-gradient(135deg, var(--magenta), var(--purple));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
    display: block;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
}

.show-answer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 128, 0.4);
}

.task-progress-indicator {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    border: 2px solid rgba(255, 0, 128, 0.2);
}

.task-progress-text {
    font-weight: 600;
    color: var(--magenta);
    margin-bottom: 0.5rem;
}

.task-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 0, 128, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--magenta), var(--purple));
    border-radius: 4px;
    transition: width 0.5s ease;
}

@media (max-width: 768px) {
    .task-buttons-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .task-btn {
        min-width: auto;
        width: 100%;
    }
    
    .task-container {
        padding: 1.5rem;
        margin: 0.5rem 0;
    }
    
    .task-content {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

/* PDF Stage Cards - styled like feature-card */
.pdf-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.pdf-stage-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.pdf-stage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 0, 128, 0.2);
    border-color: var(--magenta);
}

.pdf-stage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--magenta), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.pdf-stage-card h4 {
    color: var(--black);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.pdf-stage-card p {
    color: var(--black);
    opacity: 0.8;
    line-height: 1.6;
}

/* Responsive adjustments for PDF cards */
@media (max-width: 768px) {
    .pdf-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pdf-stage-card {
        padding: 2rem;
    }
    
    .pdf-stage-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Video section styles */
.video-section {
    margin-bottom: 2rem;
}

.video-list-container {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-height: 600px;
    overflow-y: auto;
}

.video-list-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-list-item:hover {
    background: #f1f5f9;
    border-color: var(--magenta);
}

.video-list-item.active {
    background: rgba(255, 0, 128, 0.1);
    border-color: var(--magenta);
}

/* Video frame styles - responsywne z zachowaniem proporcji 16:9 */
.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 12px;
}

/* Video placeholder styles - responsywne z zachowaniem proporcji 16:9 */
.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e2e8f0;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: #f1f5f9;
    border-color: var(--magenta);
}

/* Responsive adjustments for video section */
@media (max-width: 768px) {
    .video-container {
        grid-template-columns: 1fr !important;
    }
    
    .video-list-container {
        max-height: 300px;
    }
    
    .video-frame {
        width: 100% !important;
        aspect-ratio: 16 / 9;
    }
    
    .video-placeholder {
        width: 100% !important;
        aspect-ratio: 16 / 9;
    }
}

/* Lepsze odstępy i podziały między sekcjami */
.buy-all-materials {
    margin: 5rem auto 4rem auto; /* Zwiększam marginesy */
}

.buy-all-materials .container {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%); /* Dodaję gradient */
    border: 3px solid var(--magenta); /* Dodaję obramowanie */
    box-shadow: 0 8px 32px rgba(255,0,128,0.15); /* Zwiększam cień */
}

.buy-all-materials h2 {
    color: var(--magenta);
    font-size: 2.3rem; /* Zwiększam rozmiar */
    font-weight: 800; /* Zwiększam wagę */
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(255,0,128,0.1); /* Dodaję cień */
}

.buy-all-materials .btn-gradient {
    font-size: 1.3rem; /* Zwiększam rozmiar */
    padding: 1.2rem 3rem; /* Zwiększam padding */
    border-radius: 20px; /* Zwiększam zaokrąglenie */
    box-shadow: 0 8px 25px rgba(255,0,128,0.3); /* Zwiększam cień */
}

/* Sekcja opinii - lepsze tło */
.opinions {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #f3e8ff 100%); /* Bardziej zróżnicowany gradient */
    padding: 6rem 0 7rem 0; /* Zwiększam padding */
    margin-top: 5rem; /* Zwiększam margines */
    border-radius: 40px; /* Zwiększam zaokrąglenie */
    box-shadow: 0 8px 40px 0 rgba(100, 50, 207, 0.12); /* Zwiększam cień */
    border: 2px solid rgba(255,255,255,0.3); /* Dodaję subtelne obramowanie */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Sekcja "Dlaczego Fizyka Statkiem?" - inne tło */
.landing-dashboard {
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%); /* Dodaję tło */
    padding: 6rem 0; /* Dodaję padding */
    margin: 5rem auto; /* Dodaję margines */
    border-radius: 32px; /* Dodaję zaokrąglenie */
    box-shadow: 0 8px 40px 0 rgba(100, 50, 207, 0.08); /* Dodaję cień */
}

/* Animacje dla lepszego UX */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.opinion-card,
.pdf-stage-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Hover effects dla lepszej interaktywności */
.feature-card:hover,
.opinion-card:hover,
.pdf-stage-card:hover {
    transform: translateY(-12px) scale(1.02); /* Zwiększam efekt hover */
    box-shadow: 0 25px 70px rgba(255, 0, 128, 0.25); /* Większy cień przy hover */
}

/* Dodatkowe style dla lepszej dostępności */
.btn:focus,
.form-group input:focus {
    outline: 2px solid var(--magenta);
    outline-offset: 2px;
}

/* Style dla tytułów sekcji */
.section-title {
    margin-top: 2.6rem;
    text-align: center;
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 2.6rem;
    color: var(--black);
    margin-bottom: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em; /* Dodaję ujemne rozstawienie liter */
    text-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Dodaję subtelny cień */
}

.section-subtitle {
    text-align: center;
    color: var(--purple);
    margin-bottom: 2rem;
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: 0.01em; /* Dodaję rozstawienie liter */
}

/* Style dla stanów loading i disabled */
.btn:disabled,
.btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 2rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.breadcrumb-item {
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.breadcrumb-item:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.breadcrumb-item.active {
    color: var(--magenta);
    background: rgba(255,0,128,0.2);
    font-weight: 600;
}

.breadcrumb-separator {
    color: rgba(255,255,255,0.5);
    font-weight: 300;
}

/* Dashboard breadcrumbs */
.dashboard-breadcrumbs {
    display: none; /* Domyślnie ukryte */
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 2rem 0;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 0.95rem;
}

.dashboard-breadcrumbs .breadcrumb-item {
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.dashboard-breadcrumbs .breadcrumb-item:hover {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}

.dashboard-breadcrumbs .breadcrumb-item.active {
    color: var(--magenta);
    background: rgba(255,0,128,0.25);
    font-weight: 600;
}

.dashboard-breadcrumbs .breadcrumb-separator {
    color: rgba(255,255,255,0.6);
    font-weight: 300;
}

/* Nawigacja z ikonami */
.nav-icon-btn {
    font-size: 1.2rem !important;
    padding: 0.6rem 0.8rem !important;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    transition: all 0.3s ease;
}

.nav-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

/* Szczegółowe tematy kursów */
.subject-topics {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    border-radius: 16px;
    border: 2px solid rgba(255,0,128,0.1);
}

.subject-topics h4 {
    color: var(--magenta);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.subject-topics ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subject-topics li {
    padding: 0.5rem 0;
    color: var(--black);
    font-size: 0.95rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255,0,128,0.1);
    transition: all 0.3s ease;
}

.subject-topics li:last-child {
    border-bottom: none;
}

.subject-topics li:hover {
    color: var(--magenta);
    padding-left: 0.5rem;
    background: rgba(255,0,128,0.05);
    border-radius: 8px;
}

.subject-topics li::before {
    content: '▶';
    color: var(--magenta);
    font-size: 0.8rem;
    margin-right: 0.5rem;
    opacity: 0.7;
}

/* Responsywność dla breadcrumbs */
@media (max-width: 768px) {
    .breadcrumbs {
        display: none; /* Ukrywamy breadcrumbs na mobile */
    }
    
    .dashboard-breadcrumbs {
        margin: 0.5rem 0 1.5rem 0;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-icon-btn {
        font-size: 1rem !important;
        padding: 0.5rem 0.6rem !important;
        min-width: 40px;
        height: 40px;
    }
}

@media (max-width: 600px) {
    .dashboard-breadcrumbs {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
    
    .subject-topics {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .subject-topics h4 {
        font-size: 1rem;
    }
    
    .subject-topics li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
}
