/* 
 * Laboratorium Muzyki - Style Sheet
 * Nowoczesny arkusz stylów dla strony laboratoriummuzyki.pl - Dark Theme
 */

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff9800;
    --primary-dark: #f57c00;
    --primary-light: #ffb74d;
    --dark-bg: #121212;
    --dark-secondary: #1a1a1a;
    --dark-tertiary: #252525;
    --text-color: #f5f5f5;
    --text-secondary: #bdbdbd;
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sticky footer layout */
html, body { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
.container { flex: 1; display: flex; flex-direction: column; }
.content { flex: 1; }

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--primary-light);
}

a.underline-effect:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    visibility: hidden;
    transition: var(--transition);
}

a.underline-effect:hover:after {
    visibility: visible;
    width: 100%;
}

/* Kontenery i layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.top-bar {
    height: 30px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 24px;
}

.user-nav {
    margin-left: auto;
}

.login-link {
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.login-link:hover {
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-btn {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.user-dropdown-btn:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.user-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--dark-tertiary);
    min-width: 200px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    z-index: 10;
    display: none;
    margin-top: 8px;
    overflow: hidden;
}

.user-dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.user-dropdown-content a:hover {
    background-color: var(--dark-secondary);
    color: var(--primary);
}

.user-dropdown:hover .user-dropdown-content {
    display: block;
}

/* Header i nawigacja */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: var(--header-bg, #121212);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid var(--primary-color, #ff7f00);
}

nav {
    position: relative;
    width: 100%;
    height: var(--header-height, 80px);
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

nav.hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    height: 50px;
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.logo-container a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo-img {
    height: 100%;
    width: auto;
    transition: transform 0.3s ease;
}

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

.nav-links-container {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    height: 100%;
    gap: 10px;
}

.nav-links li {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-links a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 100%;
    white-space: nowrap;
    position: relative;
}

.nav-links a i {
    margin-right: 8px;
    font-size: 16px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color, #ff7f00);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color, #ff7f00);
}

/* User menu */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 10;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-icon {
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.user-icon:hover {
    color: var(--primary-color, #ff7f00);
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--menu-bg, #1a1a1a);
    min-width: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    margin-top: 8px;
    overflow: hidden;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.user-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.user-dropdown a {
    color: #fff;
    padding: 12px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-dropdown a:hover {
    background-color: rgba(255, 127, 0, 0.1);
    color: var(--primary-color, #ff7f00);
}

.user-info {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
}

.user-info span {
    display: block;
    font-weight: 500;
    color: #fff;
    margin-bottom: 5px;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    width: 30px;
    height: 30px;
    position: relative;
}

.mobile-toggle .bar {
    display: block;
    width: 30px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s;
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998;
}

.menu-overlay.active {
    display: block;
}

body.menu-open {
    overflow: hidden;
}

/* Scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 127, 0, 0.9);
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 990;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
}

.scroll-to-top:hover {
    background-color: var(--primary-color, #ff7f00);
    transform: translateY(-3px);
}

/* Media queries dla responsywności */
@media (max-width: 1280px) {
    .nav-links a {
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .nav-links a {
        padding: 0 8px;
        font-size: 12px;
    }
    
    .nav-links a i {
        margin-right: 6px;
    }
}

@media (max-width: 992px) {
    .nav-links-container {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%; height: 100vh;
        background: rgba(18,18,18,0.97);
        z-index: 999;
        transform: translateY(-100%);
        transition: transform 0.35s ease;
        padding-top: 70px;
        overflow-y: auto;
    }

    .nav-links-container.active { transform: translateY(0); }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    .nav-dropdown {
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        cursor: pointer;
    }

    .dropdown-toggle i:first-child {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

    .dropdown-icon {
        transition: transform 0.3s ease;
    }

    .nav-dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static !important;
        left: auto !important;
        top: auto !important;
        min-width: 100% !important;
        width: 100% !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: rgba(18,18,18,0.95) !important;
        display: none !important;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block !important;
    }

    .nav-dropdown .dropdown-toggle {
        width: 100%;
        background: none;
        border: none;
        color: #fff;
        font-size: 1rem;
        text-align: left;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }

    .nav-dropdown.active > .dropdown-toggle {
        background: var(--primary, #ff9800);
        color: #fff;
    }

    .nav-dropdown .dropdown-toggle:focus {
        outline: 2px solid var(--primary, #ff9800);
    }

    .nav-dropdown .dropdown-toggle:hover {
        background: rgba(255,127,0,0.08);
        color: var(--primary);
    }

    .dropdown-menu a {
        padding: 12px 16px 12px 42px;
        display: flex;
        align-items: center;
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: none;
        width: 100%;
    }

    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    .dropdown-menu a:hover,
    .dropdown-toggle:hover {
        background: rgba(255, 127, 0, 0.1);
        color: var(--primary-color);
    }

    .nav-links > li > a {
        padding: 12px 16px;
        display: flex;
        align-items: center;
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links > li > a i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

    .nav-links > li > a:hover {
        background: rgba(255, 127, 0, 0.1);
        color: var(--primary-color);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: var(--header-mobile-height, 60px);
    }
    
    nav {
        height: var(--header-mobile-height, 60px);
    }
    
    .logo-img {
        height: 40px;
    }
    
    .user-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    .nav-links-container {
        width: 100% !important;
        max-width: none !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .user-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .mobile-toggle {
        transform: scale(0.9);
    }
}

/* Content */
.content {
    min-height: 500px;
    padding: 40px;
    background-color: var(--dark-secondary);
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Sekcje */
.section {
    margin-bottom: 60px;
    padding: 0 20px;
}

.section-title {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40%;
    height: 2px;
    background-color: var(--primary-light);
}

/* Karty */
.card {
    background-color: var(--dark-tertiary);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 152, 0, 0.2);
}

.card-title {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.card-content {
    position: relative;
    z-index: 2;
}

/* Text styling */
.text {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.text strong {
    color: var(--primary);
    font-weight: 500;
}

/* Lists */
.instrument-list {
    margin: 0 0 1.5rem 1rem;
    list-style-type: none;
}

.instrument-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.instrument-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
}

/* Gallery */
.gallery-section {
    padding: 20px 0;
    margin-top: 20px;
    margin-bottom: 60px;
}

.gallery-image {
    height: 300px;
    margin-bottom: 0;
    background-position: center;
    background-size: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.gallery-image:hover {
    transform: scale(1.05);
}

.gallery-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
    pointer-events: none;
}

.gallery-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 2;
}

.gallery-image:hover img {
    transform: scale(1.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Hero section */
.hero {
    position: relative;
    overflow: hidden;
    height: 550px;
    margin-bottom: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    will-change: opacity;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0.1) 0%, 
        rgba(0,0,0,0.1) 40%, 
        rgba(0,0,0,0.5) 70%, 
        rgba(0,0,0,0.8) 100%
    ), 
    linear-gradient(
        to right, 
        rgba(0,0,0,0.5) 0%, 
        rgba(0,0,0,0.1) 20%, 
        rgba(0,0,0,0.1) 80%, 
        rgba(0,0,0,0.5) 100%
    );
    z-index: 5;
}

.hero-slide.active {
    opacity: 1;
    z-index: 10;
}

.hero-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    padding: 40px;
    color: #fff;
    z-index: 5;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    max-width: 800px;
    position: relative;
    z-index: 6;
}

.hero-text {
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    opacity: 0.9;
    position: relative;
    z-index: 6;
}

.hero-content .btn {
    position: relative;
    z-index: 10;
    font-size: 1rem;
    padding: 16px 32px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

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

.btn:hover {
    background-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

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

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
    margin-bottom: 30px;
}

.col-1-2 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.col-1-3 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.col-2-3 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
    margin-bottom: 30px;
}

/* Footer */
footer {
    background-color: var(--dark-tertiary);
    color: var(--text-color);
    padding: 60px 0 40px;
    margin-top: 80px;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.3);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

.footer-info {
    flex: 1;
}

.footer-social {
    text-align: right;
}

.social-icon {
    display: inline-block;
    margin-left: 20px;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--primary);
    transform: translateY(-4px);
}

.social-icon.facebook,
.social-icon.phone,
.social-icon.email {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    margin-left: 15px;
}

.social-icon.facebook:hover,
.social-icon.phone:hover,
.social-icon.email:hover {
    color: var(--primary);
    border-color: var(--primary);
    background-color: rgba(255, 152, 0, 0.1);
    transform: translateY(-4px);
}

.footer-address {
    color: var(--text-secondary);
    margin-top: 10px;
    font-size: 0.95rem;
}

/* Cookie Info */
#cookie-info {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background-color: var(--dark-tertiary);
    color: var(--text-color);
    padding: 24px;
    z-index: 9999;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#cookie-info p {
    margin-bottom: 20px;
    line-height: 1.6;
}

#cookie-info button {
    padding: 12px 24px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#cookie-info button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Efekty */
.fade-in {
    will-change: opacity, transform;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in.visible,
.page-loaded .fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent flashing of elements before page is loaded */
body:not(.page-loaded) .fade-in {
    opacity: 0;
    transform: translateY(20px);
}

/* Main Hero Loading */
body:not(.page-loaded) .hero-slider {
    opacity: 0.8;
}

/* Menu mobilne */
.menu-toggle {
    display: none;
}

/* Responsywność */
@media (max-width: 992px) {
    .hero {
        height: 450px;
    }
    
    .col-1-2, .col-1-3, .col-2-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        margin-top: 24px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 0;
    }
    
    .logo-container {
        padding: 0 20px 20px;
    }
    
    .logo-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .logo-text {
        text-align: center;
    }
    
    .slogan, .subtitle {
        text-align: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-menu ul {
        flex-direction: column;
        display: none;
    }
    
    .main-menu ul.show {
        display: flex;
    }
    
    .main-menu a {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .hero {
        height: 380px;
    }
    
    .hero-content {
        bottom: 40px;
        padding: 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
        margin-bottom: 24px;
    }

    .btn {
        padding: 12px 24px;
    }
    
    .content {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        max-width: 220px;
    }
    
    .slogan {
        font-size: 1rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .hero {
        height: 320px;
    }
    
    .hero-content {
        bottom: 20px;
        padding: 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-content .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .content {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .footer-social .social-icon {
        margin: 5px;
    }
    
    .social-icon.facebook,
    .social-icon.phone,
    .social-icon.email {
        padding: 8px 12px;
        margin: 5px;
    }
}

/* Contact Page */
.page-header {
    background-color: var(--dark-tertiary);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%, transparent 100%);
    z-index: 1;
}

.page-header h1 {
    color: var(--primary);
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
}

/* Responsive page header titles */
@media (max-width: 992px) {
    .page-header h1 {
        font-size: 2.1rem;
    }
}
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
}
@media (max-width: 576px) {
    .page-header h1 {
        font-size: 1.6rem;
    }
}

/* Contact Form */
.contact-form {
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
    background-color: rgba(255, 152, 0, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
    margin-right: 10px;
    accent-color: var(--primary);
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.form-actions {
    margin-top: 30px;
}

/* Contact Info */
.contact-info {
    margin-bottom: 30px;
    position: relative;
    z-index: 3;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
    position: relative;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 152, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.contact-text {
    flex: 1;
    position: relative;
    z-index: 3;
}

.contact-text h3 {
    margin: 0 0 5px;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-text p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
}

.contact-text a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    z-index: 5;
}

.contact-text a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Social Links */
.social-links {
    margin-top: 30px;
}

.social-links h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.social-link {
    display: inline-block;
    margin-right: 12px;
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.social-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    background-color: rgba(255, 152, 0, 0.1);
    transform: translateY(-3px);
}

.social-link.facebook {
    border-color: rgba(66, 103, 178, 0.3);
}

.social-link.facebook:hover {
    border-color: rgba(66, 103, 178, 0.7);
    background-color: rgba(66, 103, 178, 0.1);
}

.social-link.youtube {
    border-color: rgba(255, 0, 0, 0.3);
}

.social-link.youtube:hover {
    border-color: rgba(255, 0, 0, 0.7);
    background-color: rgba(255, 0, 0, 0.1);
}

.social-link.instagram {
    border-color: rgba(193, 53, 132, 0.3);
}

.social-link.instagram:hover {
    border-color: rgba(193, 53, 132, 0.7);
    background-color: rgba(193, 53, 132, 0.1);
}

/* Map Section */
.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Direction Cards */
.direction-card {
    height: 100%;
}

.direction-card h3 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.2rem;
}

.direction-card h3 i {
    margin-right: 10px;
    font-size: 1.4rem;
}

/* FAQ Accordions */
.accordion {
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-header {
    padding: 20px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
}

.accordion-item.active .accordion-header::after {
    content: '-';
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 0 20px 20px;
    max-height: 1000px;
}

/* Icons */
.icon-location::before { content: '\f3c5'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.icon-phone::before { content: '\f095'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.icon-email::before { content: '\f0e0'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.icon-time::before { content: '\f017'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.icon-car::before { content: '\f1b9'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.icon-bus::before { content: '\f207'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.icon-bike::before { content: '\f84a'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }

/* Footer Social Icons */
.social-icon.facebook::before { content: '\f39e'; font-family: 'Font Awesome 5 Brands'; margin-right: 8px; }
.social-icon.phone::before { content: '\f095'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-right: 8px; }
.social-icon.email::before { content: '\f0e0'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-right: 8px; }

/* Fix for Card before element blocking clicks */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.card-content, 
.form-group, 
.form-actions, 
.accordion,
.social-links,
.contact-form {
    position: relative;
    z-index: 3;
}

/* Form elements focus */
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
    background-color: rgba(255, 152, 0, 0.05);
    position: relative;
    z-index: 5;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    position: relative;
    z-index: 5;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
    margin-right: 10px;
    accent-color: var(--primary);
    position: relative;
    z-index: 5;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* Make links in form clickable */
.form-group a,
.checkbox-group a {
    position: relative;
    z-index: 6;
}

/* Button */
.btn {
    position: relative;
    z-index: 5;
    cursor: pointer;
}

/* Fix Card links */
.card a.btn {
    display: inline-block;
    position: relative;
    z-index: 10;
}

/* Instrument section */
.instrument-section {
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 40px;
}

.instrument-section:last-child {
    border-bottom: none;
}

.instrument-image {
    height: 200px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.instrument-image:hover {
    transform: scale(1.03);
}

/* Teacher styles */
.teacher {
    display: flex;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
}

.teacher:hover {
    background-color: rgba(255, 152, 0, 0.05);
    transform: translateY(-5px);
}

.teacher-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.teacher-info {
    flex: 1;
}

.teacher-info h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.teacher-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.contact-options {
    list-style-type: none;
    margin: 20px 0;
}

.contact-options li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-options .btn {
    margin-right: 10px;
}

/* Media queries for instrument and teacher sections */
@media (max-width: 768px) {
    .teacher {
        flex-direction: column;
    }
    
    .teacher-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* YouTube Video Container Styles */
.youtube-videos {
    margin-top: 30px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    background-color: #000;
    transition: var(--transition);
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

@media (max-width: 768px) {
    .youtube-videos .col-1-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .video-container {
        margin-bottom: 20px;
    }
}

/* Pricing Section Styles */
.pricing-section {
    margin-bottom: 60px;
}

.pricing-card {
    text-align: center;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--dark-tertiary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.03);
    position: relative;
    z-index: 2;
    background-color: rgba(255, 152, 0, 0.05);
}

.pricing-card.featured .card-title {
    color: var(--primary);
    font-weight: 700;
}

.pricing-card.featured .btn {
    background-color: var(--primary);
    font-weight: 700;
    animation: pulse 2s infinite;
}

.pricing-card .card-title {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
    display: block;
}

.pricing-features {
    list-style-type: none;
    margin: 25px 0;
    padding: 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding-left: 28px;
    line-height: 1.5;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li:before {
    content: "✓";
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 10px;
    font-weight: bold;
}

.pricing-card .btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card:hover .price {
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.03);
}

@media (max-width: 768px) {
    .pricing-card.featured {
        transform: scale(1);
        margin: 30px 0;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

/* Class Cards */
.class-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.class-card ul {
    list-style-type: none;
    margin: 20px 0;
    padding: 0;
    flex-grow: 1;
}

.class-card ul li {
    padding: 8px 0 8px 28px;
    position: relative;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.class-card ul li:last-child {
    border-bottom: none;
}

.class-card ul li:before {
    content: "✓";
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 8px;
    font-weight: bold;
}

.class-card.featured {
    border: 2px solid var(--primary);
    background-color: rgba(255, 152, 0, 0.05);
    transform: translateY(-5px);
}

.class-card .price {
    margin-top: auto;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Kids section specific styles */
.kids-image {
    height: 300px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.kids-image:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
}

.kids-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, transparent 50%, transparent 100%);
    z-index: 1;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
    margin: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(255, 152, 0, 0.3));
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.timeline-content {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 152, 0, 0.05);
}

/* Benefit Cards */
.benefit-card {
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-8px);
}

.benefit-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.benefit-card .card-title {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Text Center */
.text-center {
    text-align: center;
}

/* CTA Section */
.cta-section .card {
    border: 2px solid rgba(255, 152, 0, 0.2);
    background-color: rgba(255, 152, 0, 0.05);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.cta-buttons .btn {
    min-width: 220px;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Gallery Section - Homepage */
.gallery-section {
    padding: 20px 0;
    margin-top: 20px;
    margin-bottom: 60px;
}

.gallery-section .gallery-image {
    height: 300px;
    margin-bottom: 0;
    background-position: center;
    background-size: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow);
    position: relative;
    border: 0;
    border-radius: 0;
}

.gallery-section .card {
    padding: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 16px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    background-color: var(--dark-tertiary);
    border: 4px solid var(--dark-tertiary);
}

.gallery-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.gallery-section .card:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-section .card:hover {
    border-color: var(--primary-light);
}

/* Ujednolicenie ramek w galerii */
.gallery-section .gallery-image {
    box-shadow: none;
    border-radius: 12px; /* dopasowane do karty (16px - 4px border) */
}

.gallery-section .gallery-image::before {
    display: none; /* bez przyciemnienia, które optycznie pogrubia dół */
}

/* Karty w galerii nie potrzebują flexa – usuń dodatkową przestrzeń na dole */
.gallery-section .card.equal-height {
    display: block;
    height: auto;
}

.gallery-section .equal-height .gallery-image {
    height: 350px;
}

/* Responsive gallery */
@media (max-width: 992px) {
    .gallery-section .equal-height .gallery-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .gallery-section .equal-height .gallery-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .gallery-section .equal-height .gallery-image {
        height: 200px;
    }
}

/* Class card update */
.class-card .btn {
    margin-top: 20px;
}

.class-card.featured .btn {
    background-color: var(--primary);
}

/* Feature list with orange bullet points */
.feature-list {
    list-style-type: none;
    margin: 20px 0;
}

.feature-list li {
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: 1.5;
    margin-bottom: 8px;
}

.feature-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
}

/* Special offer styles */
.promo-item {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.promo-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.promo-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.promo-item p {
    margin-bottom: 10px;
}

/* Usprawnione animacje przycisków */
.btn-hover-ready {
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.btn-hover-ready:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Promo image */
.promo-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.promo-image:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
}

.promo-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, transparent 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Promo item compacted */
.promo-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.promo-item h4 {
    margin-bottom: 8px;
}

.promo-item p {
    margin-bottom: 8px;
}

.promo-item .feature-list li {
    padding: 4px 0 4px 24px;
}

/* Oferty specjalne na stronie o-laboratorium */
.special-offer-card {
    border-left: 4px solid var(--primary);
    background-color: rgba(255, 152, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.special-offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
    background-color: rgba(255, 152, 0, 0.1);
}

.special-offer-card .card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.special-offer-card .promo-item {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.special-offer-card .btn {
    margin-top: 20px;
    display: inline-block;
}

/* Equal height cards */
.equal-height {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.equal-height .card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.equal-cards-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    align-items: stretch;
}

.features-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    align-items: stretch;
}

.btn-container {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
}

@media (min-width: 993px) {
    .nav-links-container {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
    }
    .nav-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 32px;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .nav-links > li {
        position: relative;
        margin: 0 8px;
        height: 80px;
        display: flex;
        align-items: center;
    }
    .nav-links > li > a,
    .nav-dropdown > .dropdown-toggle {
        display: flex;
        align-items: center;
        padding: 0 20px;
        height: 48px;
        font-size: 16px;
        font-weight: 500;
        color: #fff;
        background: none;
        border: none;
        border-radius: 8px;
        transition: background 0.2s, color 0.2s;
        cursor: pointer;
        margin: 0 0 0 0;
        gap: 10px;
    }
    .nav-links > li > a:hover,
    .nav-dropdown > .dropdown-toggle:hover,
    .nav-links > li > a.active,
    .nav-dropdown > .dropdown-toggle.active {
        background: rgba(255,127,0,0.08);
        color: var(--primary);
    }
    .nav-dropdown .dropdown-icon {
        margin-left: 8px;
        font-size: 14px;
        transition: transform 0.3s;
    }
    .nav-dropdown:hover .dropdown-icon {
        transform: rotate(180deg);
    }
    .nav-dropdown .dropdown-menu {
        display: none;
        position: absolute;
        left: 0;
        top: 60px;
        min-width: 220px;
        background: rgba(26,26,26,0.98);
        box-shadow: 0 8px 32px rgba(0,0,0,0.25);
        border-radius: 0 0 12px 12px;
        z-index: 1002;
        padding: 8px 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s, transform 0.25s;
        transform: translateY(10px);
    }
    .nav-dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .dropdown-menu a {
        width: 100%;
        padding: 14px 24px 14px 48px;
        color: #fff;
        background: none;
        border: none;
        text-align: left;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 15px;
        gap: 12px;
        transition: background 0.2s, color 0.2s;
    }
    .dropdown-menu a:last-child {
        border-bottom: none;
    }
    .dropdown-menu a:hover {
        background: rgba(255,127,0,0.12);
        color: var(--primary);
    }
}

@media (max-width: 992px) {
    .nav-links-container {
        width: 80%;
        max-width: 350px;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding-top: 60px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    .nav-links > li {
        width: 100%;
        margin: 0;
    }
    .nav-dropdown .dropdown-toggle {
        width: 100%;
        background: none;
        border: none;
        color: #fff;
        font-size: 1rem;
        text-align: left;
        padding: 16px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        border-radius: 0;
        gap: 10px;
    }
    .nav-dropdown.active > .dropdown-toggle {
        background: var(--primary, #ff9800);
        color: #fff;
    }
    .nav-dropdown .dropdown-toggle:focus {
        outline: 2px solid var(--primary, #ff9800);
    }
    .nav-dropdown .dropdown-toggle:hover {
        background: rgba(255,127,0,0.08);
        color: var(--primary);
    }
    .nav-dropdown .dropdown-menu {
        position: static;
        width: 100%;
        background: rgba(18, 18, 18, 0.95);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        list-style: none;
        max-height: none; /* unified with inline styles in header */
        overflow: visible;
        opacity: 1;
        transition: none;
    }
    .nav-dropdown.active .dropdown-menu { max-height: none; }
    .dropdown-menu a {
        padding: 14px 24px 14px 48px;
        display: flex;
        align-items: center;
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: none;
        width: 100%;
        font-size: 1rem;
        gap: 12px;
    }
    .dropdown-menu a:last-child {
        border-bottom: none;
    }
    .dropdown-menu a:hover,
    .dropdown-toggle:hover {
        background: rgba(255, 127, 0, 0.1);
        color: var(--primary-color);
    }
}

@media (min-width: 993px) {
    .nav-dropdown {
        position: relative;
    }
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown:focus-within .dropdown-menu,
    .nav-dropdown .dropdown-menu:hover {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
    .nav-dropdown .dropdown-menu {
        display: none;
        position: absolute;
        left: 0;
        top: 60px;
        min-width: 260px;
        background: rgba(26,26,26,0.98);
        box-shadow: 0 8px 32px rgba(0,0,0,0.25);
        border-radius: 0 0 14px 14px;
        z-index: 1002;
        padding: 0;
        margin: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s, transform 0.25s;
        transform: translateY(12px);
    }
    .dropdown-menu a {
        width: 100%;
        padding: 22px 36px 22px 68px;
        color: #fff;
        background: none;
        border: none;
        text-align: left;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 18px;
        gap: 22px;
        transition: background 0.2s, color 0.2s;
    }
    .dropdown-menu a:last-child {
        border-bottom: none;
    }
    .dropdown-menu a:hover {
        background: rgba(255,127,0,0.14);
        color: var(--primary);
    }
} 

@media (min-width: 993px) {
    .nav-dropdown.active .dropdown-menu {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translateY(12px) !important;
    }
    /* ...reszta stylów jak poprzednio... */
} 