/* Resetowanie stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Zmienne CSS - Odświeżona paleta kolorów */
:root {
    --primary-color: #0160a3;    /* Jasny turkusowy - bardziej świeży */
    --secondary-color: rgb(36, 150, 243);  /* Jaśniejszy czerwony - bardziej energetyczny */
    --accent-color: #ffde21;     /* Jaśniejszy żółty - bardziej słoneczny */
    --dark-color: #0160a3;        /* Ciemniejszy niebieski - bardziej elegancki */
    --light-color: #f9ffff;      /* Jaśniejszy biały z odcieniem niebieskiego - bardziej świeży */
    --gray-color: #eceff1;       /* Jaśniejszy szary z odcieniem niebieskiego - bardziej czysty */
    
    /* Dodatkowe kolory dla większej różnorodności */
    --success-color: #4caf50;    /* Zielony - dla komunikatów sukcesu */
    --info-color: #03a9f4;       /* Jasny niebieski - dla informacji */
    --warning-color: #ffc107;    /* Żółty - dla ostrzeżeń */
    --error-color: #f44336;      /* Czerwony - dla błędów */
    --purple-accent: #9c27b0;    /* Fioletowy - dla wyróżnień */
    --teal-light: #80deea;       /* Jasny turkus - dla tła */
    
    --transition: transform 0.3s ease, box-shadow 0.3s ease;
    --shadow: 0 2px 2px rgba(0, 0, 0, 0.08);  /* Delikatniejszy cień */
    --shadow-hover: 0 2px 2px rgba(0, 0, 0, 0.15);  /* Mocniejszy cień dla hover */
    --border-radius: 5px;
}

/* Podstawowe style */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}



/* Pasek postępu przewijania */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: transparent;
}

.progress-bar {
    height: 4px;
    background: var(--primary-color);
    width: 0;
}

/* Przycisk do przewijania w górę */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--secondary-color);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 50px; /* Bardziej zaokrąglone przyciski */
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.3); /* Cień w kolorze przycisku */
}


.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

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

.btn-primary {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(255, 82, 82, 0.3); /* Cień w kolorze przycisku */
}

.btn-primary:hover {
    background-color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(0, 188, 212, 0.4); /* Cień w kolorze hover */
}



.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width 0.5s ease;
}

.section-header:hover h2:after {
    width: 100%;
}

.separator {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.separator:before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
}
section {
    padding: 100px 0 20px 0px;
}
section.gallery{
    padding: 0px 0px 20px 0px;
}
section.financing-section{
    padding: 100px 0px 20px 0px;
}
/* Pasek nawigacyjny */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: all 1.4s ease;
    padding: 25px 0;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo h1{
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.header.scrolled .logo h1{
    color: var(--dark-color);
    text-shadow: none;
    font-size: 1.8rem;
}
.logo span{
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: #ffffff;
    margin-top: -10px;
}
.header.scrolled .logo span{
     color: var(--dark-color);  
}
.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu a {
    color: white;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    letter-spacing: 0.3px;
}

.header.scrolled .nav-menu a {
    color: var(--dark-color);
    text-shadow: none;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-color);
}

.header.scrolled .nav-menu a:hover, 
.header.scrolled .nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 3px;
    transform: translateX(-50%);
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: white;
}

.header.scrolled .bar {
    background-color: var(--dark-color);
}

/* Sekcja główna - zoptymalizowana */
.hero {
    height: 100vh;
    position: relative;
    text-align: center;
    color: white;
    padding: 0 20px;
    overflow: hidden;
    will-change: transform; /* Optymalizacja dla przeglądarek */
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: translateZ(0); /* Włącza akcelerację sprzętową */
    animation: heroZoom 20s infinite alternate ease-in-out;
}

.hero-product{
    height: 100vh;
    position: relative;
    text-align: center;
    color: white;
    padding: 0 20px;
    overflow: hidden;
    will-change: transform; /* Optymalizacja dla przeglądarek */ 
}
.hero-product-container{
    padding-top:120px;
    display: flex;
}
.hero-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/hero2.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: translateZ(0); /* Włącza akcelerację sprzętową */
    animation: heroZoom 20s infinite alternate ease-in-out;
}
.hero-product-content1 {
    z-index: 1;
    width: 400px;
    text-align: right;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.hero-product-content2 {
    z-index: 1;
    width: 380px;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
@keyframes heroZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    z-index: 0;
}

.hero-content1 {
    z-index: 1;
    width: 400px;
    position: absolute;
    top: 120px;
    left: 10px;
    text-align: right;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content1 h1 {
    font-size: 1.4rem;
    margin-bottom: 0px;
}
.hero-content1 h2 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.hero-content1 p{
    font-size: 1rem;
}

.hero-content2 {
    z-index: 1;
    width: 380px;
    position: absolute;
    bottom: 40px;
    right: 0px;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.hero-content2 h2{
    color: var(--secondary-color);
}
.hero-content2 .btn {
    animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0); /* Włącza akcelerację sprzętową */
    padding: 15px 35px;
    font-size: 1.1rem;
    margin-top: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Style dla elementów hero */
.hero-element {
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    transform: translateX(0) translateZ(0); /* Akceleracja sprzętowa */
    opacity: 0; /* Domyślnie ukryte */
    will-change: transform, opacity; /* Optymalizacja dla animacji */
}

/* Elementy widoczne po załadowaniu */
.hero-element.visible {
    opacity: 1;
}

/* Stany początkowe dla animacji wjeżdzających przy załadowaniu */
.hero-content1 .hero-element {
    transform: translateX(-50px) translateZ(0);
}

.hero-content2 .hero-element {
    transform: translateX(50px) translateZ(0);
}

/* Elementy widoczne i na swoich miejscach */
.hero-content1 .hero-element.visible {
    transform: translateX(0) translateZ(0);
}

.hero-content2 .hero-element.visible {
    transform: translateX(0) translateZ(0);
}

/* Animacje przewijania dla poszczególnych elementów hero */
.hero-content1 .hero-element.scroll-fade-left {
    transform: translateX(-50px) translateZ(0);
    opacity: 0;
}

.hero-content2 .hero-element.scroll-fade-right {
    transform: translateX(50px) translateZ(0);
    opacity: 0;
}

.od_1993{
    position: absolute;
    right: 20px;
    bottom: 40px;
    display: none;
    margin: 0px;
    padding: 0px;
    z-index: 101;
    width: 200px;
    height: 200px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0); /* Używamy translate3d dla akceleracji sprzętowej */
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0); /* Używamy translate3d dla akceleracji sprzętowej */
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Animacje przy przewijaniu */
.anim-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.anim-element.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Specjalne animacje dla sekcji finansowania */
.financing-content h2.anim-element {
    transform: translateX(-30px);
}

.financing-content h2.anim-element.animate {
    transform: translateX(0);
    animation: fadeInLeft 0.8s ease-out;
}

.financing-content p.anim-element.animate {
    animation: fadeInUp 0.8s ease-out;
}

/* Specjalne animacje dla strony produktu */
.price-container.anim-element {
    transform: translateY(-20px);
}

.price-container.anim-element.animate {
    transform: translateY(0);
    animation: fadeInDown 0.8s ease-out;
}

.standard-equipment-header h2.anim-element {
    transform: translateY(-30px);
}

.standard-equipment-header h2.anim-element.animate {
    transform: translateY(0);
    animation: fadeInDown 0.8s ease-out;
}

/* Animacje dla elementów standard-equipment */
.standard-equipment div.anim-element.animate {
    animation: fadeInUp 0.8s ease-out;
}

.standard-equipment div span.anim-element.animate {
    animation: fadeInUp 1s ease-out;
}

.product-details-section .section-header h2.anim-element.animate {
    animation: fadeInDown 0.8s ease-out;
}

.configurator-nav .category-nav-box.anim-element.animate {
    animation: fadeInUp 0.6s ease-out;
}

/* Pokoje z poziomym przewijaniem */
.unity-stomatologiczne {
    background-color: #f9f9f9;
    padding: 40px 0 0; /* Zmniejszamy padding gĂłrny */
    margin-bottom: 0; /* Usuwamy margines dolny */
    position: relative; /* Zmieniamy na relative */
    height: 500vh; /* Ustawiamy wysokoĹÄ na 400vh */
    z-index: 50; /* Dodajemy z-index, aby sekcja byĹa nad innymi elementami */
}



/* Warstwa sticky z kartami pokoi */
.unity-stomatologiczne-fixed-overlay {
    position: -webkit-sticky; /* for Safari */
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 100;
    background-color: #f9f9f9;
}

.unity-stomatologiczne-fixed-overlay.active {
    opacity: 1;
    visibility: visible;
}



.unity-stomatologiczne-content-wrapper {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* UsuniÄto style dla unity-stomatologiczne-scroll-height */

/* Kontener ze slajderem pokoi */
.unity-stomatologiczne-slider-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0 20px;
    margin: 0 auto;
}



.scroll-progress {
    width: 100%;
    height: 4px;
    background-color: #eee;
    border-radius: 2px;
    margin-top: 15px;
    overflow: hidden;
}

.unity-stomatologiczne-progress {
    margin-top: 8px;
    width: 100%;
    max-width: 1200px;
}

.scroll-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.unity-stomatologiczne-container {
    display: flex;
    gap: 30px;
    padding: 30px 0; /* Zmniejszamy padding */
    width: max-content;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* PĹynniejsza animacja */
    will-change: transform; /* Optymalizacja wydajnoĹci */
    margin: 20px 0; /* Zmniejszamy marginesy */
}

.unit-stomatologiczny-card {
    background-color: white;
    overflow: hidden;
    width: 400px;
    flex-shrink: 0;
    transition: all 0.4s ease;
    transform: translateY(0);
    position: relative;
    cursor: pointer;
    border: 1px solid #bbbbbb;
}

.unit-stomatologiczny-card:hover {
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.15);
}

.unit-stomatologiczny-card:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}


.unit-stomatologiczny-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    margin-top: 10px;
}

.unit-stomatologiczny-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.unit-stomatologiczny-card:hover .unit-stomatologiczny-image:before {
    opacity: 1;
}

.unit-stomatologiczny-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.unit-stomatologiczny-card:hover .unit-stomatologiczny-image img {
    transform: scale(1.1);
}

.price {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 400;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.unit-stomatologiczny-card:hover .price {
    background: linear-gradient(135deg, var(--secondary-color), var(--purple-accent));
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.scroll-progress-container {
    width: 100%;
    height: 5px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin-top: 30px;
    position: relative;
}

.scroll-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    width: 0;
    transition: width 0.1s ease;
}

.unit-stomatologiczny-info {
    padding: 10px 20px;
    position: relative;
}

.unit-stomatologiczny-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.unit-stomatologiczny-info h3:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--info-color));
    transition: width 0.3s ease;
}

.unit-stomatologiczny-card:hover .unit-stomatologiczny-info h3:after {
    width: 100%;
}

.unit-stomatologiczny-info p {
    color: #666;
    margin-bottom: 5px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.unit-stomatologiczny-features {
    margin-bottom: 25px;
    padding-left: 5px;
}

.unit-stomatologiczny-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.unit-stomatologiczny-features li:hover {
    transform: translateX(5px);
}

.unit-stomatologiczny-features i {
    color: var(--primary-color);
    font-size: 1.1rem;
    background-color: rgba(0, 188, 212, 0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.unit-stomatologiczny-features li:hover i {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Galeria */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: 400;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Opinie */
.testimonials {
    background-color: #f9f9f9;
}

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

.testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.testimonial-text {
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.rating {
    color: var(--accent-color);
}

/* Pasek przewijania */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
}

.progress-container {
    width: 100%;
    height: 5px;
    background: transparent;
}

.progress-bar {
    height: 5px;
    background: var(--primary-color);
    width: 0%;
}

/* Kontakt */
.contact-section, .financing-section {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--gray-color) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-section::before, .financing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e0e0e0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.contact-container, .financing-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.financing-content{
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.contact-slogan {
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-slogan h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-slogan p {
    font-size: 1.1rem;
    color: var(--dark-color);
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.8;
}

.contact-slogan p:last-child {
    font-weight: 400;
    color: var(--primary-color);
    opacity: 1;
}

.contact-info {
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.company-info {
    margin-bottom: 40px;
}

.company-info h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.company-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.address {
    padding: 25px;
}

.address p {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-weight: 400;
}

.address p:last-child {
    margin-bottom: 0;
    font-weight: 400;
    color: var(--primary-color);
}

.contact-actions {
    text-align: center;
}

.contact-actions .btn {
    font-size: 1.2rem;
    padding: 18px 40px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(36, 150, 243, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-actions .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: left 0.5s ease;
}

.contact-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(36, 150, 243, 0.4);
}

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

.contact-actions .btn span {
    font-weight: 400;
    letter-spacing: 0.5px;
}



/* Stopka */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* Przycisk do przewijania w górę */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsywność */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-slogan h2 {
        font-size: 2rem;
    }
}

@media (max-width: 910px) {
    .hamburger {
        display: block;
    }

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

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

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-menu a {
        color: var(--dark-color);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }


}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }
    

    
    .contact-slogan, .contact-info {
        padding: 25px;
    }
    
    .contact-slogan h2 {
        font-size: 1.8rem;
    }
    
    .contact-actions .btn {
        font-size: 1.1rem;
        padding: 15px 30px;
    }
}

/* Sekcja partnerów */
.partners {
    padding: 80px 0;
    background-color: var(--light-color);
}

.partners-slider-container {
    width: 100%;
    max-width: 1140px; /* Zwiększona szerokość kontenera */
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    padding: 0 20px; /* Dodajemy padding, aby zapobiec obcinaniu */
}

.partners-slider {
    display: flex;
    align-items: center;
    transition: transform 0.5s ease;
    width: max-content;
    padding: 10px 0; /* Dodajemy padding dla lepszego wyglądu */
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin: 0 20px; /* Zwiększamy odstęp między logotypami */
    width: 170px; /* Stała szerokość dla każdego logo */
    height: 100px; /* Stała wysokość dla każdego logo */
}

.partner-logo img {
    max-width: 140px;
    max-height: 80px; /* Ograniczamy wysokość obrazu */
    width: auto; /* Pozwalamy na automatyczne skalowanie szerokości */
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    display: block; /* Zapewnia poprawne wyświetlanie */
    object-fit: contain; /* Zapewnia, że cały obraz jest widoczny */
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Media queries dla sekcji partnerów */
@media (min-width: 1200px) {
    .partners-slider-container {
        max-width: 1140px; /* 5 logotypów + marginesy */
    }
    .od_1993{
        display: block;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .partners-slider-container {
        max-width: 920px; /* 4 logotypy + marginesy */
    }
    .od_1993{
        display: block;
    }
}

@media (min-width: 911px) and (max-width: 991px) {
    .partners-slider-container {
        max-width: 690px; /* 3 logotypy + marginesy */
    }
    .od_1993{
        display: block;
    }
}

@media (max-width: 910px) {
    .partners-slider-container {
        width: 100%;
        max-width: 380px; /* 2 logotypy + marginesy */
    }
    
    .partner-logo {
        padding: 5px;
        margin: 0 10px;
        width: 150px;
        height: 90px;
    }
    
    .partner-logo img {
        max-width: 120px;
        max-height: 70px;
    }
}

/* Modal Gallery Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ccc;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10001;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.modal-nav.prev {
    left: 30px;
}

.modal-nav.next {
    right: 30px;
}

.modal-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 10001;
}

.modal-caption {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 18px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    z-index: 10001;
}

/* Ukryj navbar gdy modal jest otwarty */
body.modal-open .navbar {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* Responsive styles for unity-stomatologiczne section */
@media (max-width: 1024px) {
    /* Wyłączamy poziome przewijanie dla tabletów i mobile */
    .unity-stomatologiczne {
        height: auto !important; /* Przywracamy normalną wysokość */
    }
    
    .unity-stomatologiczne-fixed-overlay {
        position: static !important; /* Wyłączamy sticky positioning */
        height: auto !important;
    }
    
    .unity-stomatologiczne-slider-container {
        overflow: visible !important; /* Pozwalamy na normalne wyświetlanie */
    }
    
    .unity-stomatologiczne-container {
        display: grid !important; /* Zmieniamy na grid layout */
        grid-template-columns: repeat(2, 1fr) !important; /* 2 kolumny dla tabletu */
        gap: 20px !important;
        width: 100% !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 30px 20px !important;
        transform: none !important; /* Wyłączamy transformacje */
        transition: none !important;
    }
    
    .unit-stomatologiczny-card {
        width: 100% !important; /* Karty zajmują pełną szerokość kolumny */
    }
    
    /* Ukryj nagłówek fixed jeśli istnieje */
    .unity-stomatologiczne-fixed-header {
        display: none !important;
    }
    
    /* Ukryj progress bar dla poziomego przewijania */
    .unity-stomatologiczne-progress {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .unity-stomatologiczne-container {
        grid-template-columns: 1fr !important; /* 1 kolumna dla mobile */
        gap: 15px !important;
        padding: 20px 15px !important;
    }
}

/* Responsive modal styles */
@media (max-width: 910px) {
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .modal-nav {
        font-size: 24px;
        padding: 10px 15px;
    }
    
    .modal-nav.prev {
        left: 15px;
    }
    
    .modal-nav.next {
        right: 15px;
    }
    
    .modal-counter {
        bottom: 20px;
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .modal-caption {
        bottom: 60px;
        font-size: 16px;
        padding: 8px 16px;
        max-width: 90%;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }
}