/* Hero Video Background */
.section_home_header.hero {
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    z-index: 2;
}

.section_home_header.hero .padding-global {
    height: 100vh;
    position: relative;
    z-index: 3;
}

/* Karuzela 3D Styles - tylko dodatkowe style */
.carousel-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg,
        #000000 0%,
        rgba(0, 0, 0, 0.75) 33%,
        rgba(0, 0, 0, 0.5) 66%,
        rgba(0, 0, 0, 0.78) 100%);
}

/* Neonowe figury w tle: warstwa nad gradientem, pod treścią (zdjęcia, przyciski) */
.carousel-section__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.carousel-section__bg-shape {
    position: absolute;
    border: 2px solid var(--color-accent);
    opacity: 1;
    box-shadow:
        0 0 10px rgba(188, 242, 65, 0.28),
        0 0 26px rgba(188, 242, 65, 0.16);
    filter: drop-shadow(0 0 8px rgba(188, 242, 65, 0.18));
}

/* Lewy górny – gruby łuk (obramowanie 50px) */
.carousel-section__bg-shape--tl {
    width: 60vh;
    height: 60vh;
    border: 50px solid var(--color-accent);
    border-radius: 50%;
    background: transparent;
    top: -22%;
    left: -18%;
    box-sizing: border-box;
}

/* Prawy górny – półkole (dolna połowa obcięta) */
.carousel-section__bg-shape--tr {
    width: min(320px, 30vw);
    height: min(160px, 15vw);
    border-radius: 0 0 50% 50%;
    border-top: none;
    top: 0;
    right: -5%;
}

/* Lewy dolny – półkole (górna połowa obcięta) */
.carousel-section__bg-shape--bl {
    width: min(280px, 26vw);
    height: min(140px, 13vw);
    border-radius: 50% 50% 0 0;
    border-bottom: none;
    bottom: 0;
    left: -4%;
}

/* Prawy dolny – pełny okrąg, wchodzi z rogu */
.carousel-section__bg-shape--br {
    width: min(340px, 32vw);
    height: min(340px, 32vw);
    border-radius: 50%;
    background: var(--color-accent);
    bottom: -10%;
    right: -6%;
    box-shadow: 0 0 35px rgba(188, 242, 65, 0.3);
    opacity: 1;
}

@media (max-width: 768px) {
    .carousel-section__bg-shape--tl {
        width: 52vh;
        height: 52vh;
        border-width: 36px;
    }
}

/* Treść sekcji (nagłówek, karuzele, kontrolki) zawsze nad neonem */
.carousel-section > div:not(.carousel-section__bg) {
    position: relative;
    z-index: 2;
}

.carousel-section .container {
    margin-bottom: 3rem;
}

.carousel-section .section-header {
    text-align: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    margin-bottom: 0;
}

/* Płynne przełączanie desktop / tablet / phone */
.carousel-container,
.carousel-container-tablet,
.carousel-container-phone,
.carousel-controls-bottom,
.carousel-controls-bottom-tablet,
.carousel-controls-bottom-phone {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.carousel-device-visible {
    opacity: 1;
    transform: translateY(0);
}

.carousel {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    transform-origin: center center;
    transition: transform 0.5s ease;
    z-index: 2;
}

.carousel-item {
    position: absolute;
    width: 230px;
    height: 196px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    top: 46%;
    left: 50%;
    transform-origin: center center;
    margin: 0;
    padding: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-item--active img {
    image-rendering: auto;
}

/* Klikalny tylko główny (aktywny) slajd */
.carousel-item--active img,
.carousel-item-tablet--active img,
.carousel-item-phone--active img {
    cursor: zoom-in;
}

/* Tablet Carousel Styles */
.carousel-container-tablet {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    margin-bottom: 0;
}

.carousel-tablet {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    transform-origin: center center;
    transition: transform 0.5s ease;
    z-index: 2;
}

.carousel-item-tablet {
    position: absolute;
    width: 199px;
    /* height: 256px; */
    border-radius: 10px 10px 0px 0px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    top: 46%;
    left: 49.5%;
    transform-origin: center center;
    margin: 0;
    padding: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.carousel-item-tablet img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-item-tablet--active img {
    image-rendering: auto;
}

.tablet-overlay-tablet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 455px;
    height: 455px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.tablet-overlay-tablet img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Phone Carousel Styles */
.carousel-container-phone {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    margin-bottom: 0;
}

.carousel-phone {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    transform-origin: center center;
    transition: transform 0.5s ease;
    z-index: 2;
}

.carousel-item-phone {
    position: absolute;
    width: 145px;
    /* height: 196px; */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    top: 50%;
    left: 50%;
    transform-origin: center center;
    margin: 0;
    padding: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.carousel-item-phone img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-item-phone--active img {
    image-rendering: auto;
}

.tablet-overlay-phone {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 455px;
    height: 455px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.tablet-overlay-phone img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tablet-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 455px;
    height: 455px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.tablet-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1001;
}

.carousel-btn {
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: #E5E7EB;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.carousel-title {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #F9FAFB;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.carousel-subtitle {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: #9CA3AF;
    font-size: 1.2rem;
    z-index: 1001;
}

/* Kontener dla strzałek i dots pod karuzele */
.carousel-controls-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
    width: 100%;
}

.arrow-btn {
    background: transparent;
    border: 1px solid var(--color-border-dark);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--color-text-on-dark);
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.arrow-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: scale(1.1);
}

.arrow-btn i {
    font-size: 16px;
}

/* Dots pagination */
.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.9);
    width: 12px;
    height: 12px;
}

@media (max-width: 768px) {
    .carousel-controls-bottom {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .arrow-btn {
        width: 45px;
        height: 45px;
    }
    
    .arrow-btn i {
        font-size: 14px;
    }
    
    .carousel-dots {
        gap: 0.5rem;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .carousel-dot.active {
        width: 10px;
        height: 10px;
    }
}

.accordion {
    max-width: 800px;
    margin: 2rem auto 0;
}

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

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    color: #E5E7EB;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: #3B82F6;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

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

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 1rem;
}

.accordion-content p {
    color: #9CA3AF;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

/* Dodatkowe kolory na stronie */
.hero-highlight {
    color: var(--color-accent);
    font-weight: 600;
}

.section-label {
    color: var(--color-muted-on-dark);
    font-weight: 500;
}

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

.icon-accent {
    color: var(--color-text-on-dark);
}

.button:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-accent-glow);
}

.link:hover {
    color: var(--color-accent);
}


/* Live Browser Section */
.live-browser-section {
    padding: 6rem 0;
    background: transparent;
    position: relative;
}

/* Device Switcher Buttons */
.device-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.carousel-section .device-switcher {
    margin: 2rem 0 0;
}

/* Jak na index: styl btn-phone / btn-cta */
.device-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid var(--color-border-dark);
    border-radius: 8px;
    color: var(--color-text-on-dark);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.device-btn i {
    font-size: 16px;
}

.device-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-1px);
}

.device-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text-on-accent);
}

.laptop-browser-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.device-mockup {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 500px;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.device-overlay {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    position: relative;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
    object-fit: contain;
}

.device-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.live-website-iframe {
    position: absolute;
    border: none;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    z-index: 3;
}

/* Desktop View (default) */
.device-mockup[data-device="desktop"] .live-website-iframe {
    width: 80%;
    max-height: 425px;
    height: 85%;
    top: 6%;
    left: 10%;
}

/* Tablet View */
.device-mockup[data-device="tablet"] .live-website-iframe {
    width: 85%;
    max-height: 450px;
    height: 90%;
    top: 5%;
    left: 7.5%;
    border-radius: 12px;
}

/* Phone View */
.device-mockup[data-device="phone"] .live-website-iframe {
    width: 82%;
    max-height: 450px;
    height: 90%;
    top: 5%;
    left: 9%;
    border-radius: 24px;
}

@media (max-width: 1024px) {
    .laptop-browser-wrapper {
        max-height: 450px;
    }
    
    .device-mockup {
        max-height: 450px;
    }
    
    .device-overlay {
        max-height: 450px;
    }
    
    .device-mockup[data-device="desktop"] .live-website-iframe {
        width: 80%;
        max-height: 382px;
        height: 85%;
        top: 6%;
        left: 10%;
    }
    
    .device-mockup[data-device="tablet"] .live-website-iframe {
        width: 85%;
        max-height: 405px;
        height: 90%;
        top: 5%;
        left: 7.5%;
    }
    
    .device-mockup[data-device="phone"] .live-website-iframe {
        width: 82%;
        max-height: 405px;
        height: 90%;
        top: 5%;
        left: 9%;
    }
}

@media (max-width: 768px) {
    .live-browser-section {
        padding: 4rem 0;
    }
    
    .device-switcher {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .device-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .device-btn i {
        font-size: 14px;
    }
    
    .laptop-browser-wrapper {
        padding: 1rem;
        max-height: 400px;
    }
    
    .device-mockup {
        max-height: 400px;
    }
    
    .device-overlay {
        max-height: 400px;
    }
    
    .device-mockup[data-device="desktop"] .live-website-iframe {
        width: 80%;
        max-height: 340px;
        height: 85%;
        top: 6%;
        left: 10%;
        border-radius: 4px;
    }
    
    .device-mockup[data-device="tablet"] .live-website-iframe {
        width: 85%;
        max-height: 360px;
        height: 90%;
        top: 5%;
        left: 7.5%;
        border-radius: 10px;
    }
    
    .device-mockup[data-device="phone"] .live-website-iframe {
        width: 82%;
        max-height: 360px;
        height: 90%;
        top: 5%;
        left: 9%;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .device-switcher {
        gap: 0.5rem;
    }
    
    .device-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .device-btn span {
        display: none;
    }
    
    .device-btn i {
        font-size: 16px;
    }
    
    .laptop-browser-wrapper {
        max-height: 350px;
    }
    
    .device-mockup {
        max-height: 350px;
    }
    
    .device-overlay {
        max-height: 350px;
    }
    
    .device-mockup[data-device="desktop"] .live-website-iframe {
        width: 80%;
        max-height: 297px;
        height: 85%;
        top: 6%;
        left: 10%;
    }
    
    .device-mockup[data-device="tablet"] .live-website-iframe {
        width: 85%;
        max-height: 315px;
        height: 90%;
        top: 5%;
        left: 7.5%;
    }
    
    .device-mockup[data-device="phone"] .live-website-iframe {
        width: 82%;
        max-height: 315px;
        height: 90%;
        top: 5%;
        left: 9%;
    }
}

/* Features Section – jak coming-soon na index: beż, 4 w rzędzie, full width, border 1px */
.features-section {
    background: var(--color-bg-light);
    text-align: center;
}

.features-section--fullbleed.section {
    padding: 2rem 0 0;
    margin: 0;
}

.features-section--fullbleed .features-section__container--fullbleed {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.features-content {
    text-align: center;
    padding-top: 0;
    padding-bottom: 0.5rem;
    margin-bottom: 0;
}

/* Nagłówek „Kluczowe funkcje portalu” – wielkość i czcionka jak „Zobacz realizację w akcji” (h2), kolor czarny */
.features-section .features-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-on-light);
    margin: 0.75rem 0 0;
}

.features-section .features-lead {
    max-width: 52ch;
    margin: 1rem auto 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text-on-light);
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: 100%;
    border-top: 1px solid #1A1A1A;
    border-bottom: 1px solid #1A1A1A;
    margin-top: 2.5rem;
    padding-bottom: 0;
}

.features-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2.5rem 2rem;
    text-align: left;
    border-right: 1px solid #1A1A1A;
}

.features-cell:last-child {
    border-right: none;
}

.features-cell-icon {
    width: 100%;
    max-width: 220px;
    height: auto;
    color: var(--color-accent);
}

.features-cell-icon svg {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.features-cell-body {
    width: 100%;
}

.features-cell-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-on-light);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.features-cell-text {
    font-size: 1rem;
    color: var(--color-muted-on-light);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-cell {
        border-right: none;
        border-bottom: 1px solid #1A1A1A;
    }
    .features-cell:nth-child(odd) {
        border-right: 1px solid #1A1A1A;
    }
    .features-cell:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .features-cell {
        border-right: none;
        border-bottom: 1px solid #1A1A1A;
    }
    .features-cell:nth-child(odd) {
        border-right: none;
    }
    .features-cell:last-child {
        border-bottom: none;
    }
    .features-cell-icon svg {
        width: 72px;
        height: 72px;
    }
}

/* Proporcje sekcji Dribbble 45/55 */
.dribbble-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .dribbble-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Tablet Carousel Controls */
.carousel-controls-bottom-tablet {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
    width: 100%;
}

.arrow-btn-tablet {
    background: transparent;
    border: 1px solid var(--color-border-dark);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--color-text-on-dark);
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.arrow-btn-tablet:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: scale(1.1);
}

.arrow-btn-tablet i {
    font-size: 16px;
}

.carousel-dots-tablet {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.carousel-dot-tablet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.carousel-dot-tablet:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.carousel-dot-tablet.active {
    background: rgba(255, 255, 255, 0.9);
    width: 12px;
    height: 12px;
}

/* Phone Carousel Controls */
.carousel-controls-bottom-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
    width: 100%;
}

.arrow-btn-phone {
    background: transparent;
    border: 1px solid var(--color-border-dark);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--color-text-on-dark);
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.arrow-btn-phone:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: scale(1.1);
}

.arrow-btn-phone i {
    font-size: 16px;
}

.carousel-dots-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.carousel-dot-phone {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.carousel-dot-phone:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.carousel-dot-phone.active {
    background: rgba(255, 255, 255, 0.9);
    width: 12px;
    height: 12px;
}

/* Sekcja „Nasze projekty” – białe tło, czarny nagłówek tylko na tej podstronie */
#projects.section.projects {
    background-color: var(--color-bg-light);
}

#projects.section.projects .section-header h2 {
    color: #000000;
}

#projects.section.projects .project-card {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

/* ============================================
   LIGHTBOX – podgląd zdjęć karuzeli
   ============================================ */
body.is-lightbox-open {
    overflow: hidden;
}

.carousel-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.carousel-lightbox.is-open {
    display: block;
}

.carousel-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.carousel-lightbox__dialog {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.carousel-lightbox__content {
    width: min(1100px, 92vw);
    max-height: 86vh;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(188, 242, 65, 0.22);
    box-shadow: 0 0 30px rgba(188, 242, 65, 0.12);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.carousel-lightbox__img {
    width: 100%;
    height: auto;
    max-height: 86vh;
    display: block;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-lightbox__meta {
    position: absolute;
    left: 1rem;
    bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.carousel-lightbox__close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(188, 242, 65, 0.35);
    background: rgba(0, 0, 0, 0.55);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.carousel-lightbox__close:hover {
    transform: scale(1.06);
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(188, 242, 65, 0.6);
}

.carousel-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 1px solid rgba(188, 242, 65, 0.28);
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.carousel-lightbox__nav:hover {
    transform: translateY(-50%) scale(1.06);
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(188, 242, 65, 0.6);
}

.carousel-lightbox__nav--prev { left: 1rem; }
.carousel-lightbox__nav--next { right: 1rem; }

@media (max-width: 768px) {
    .carousel-lightbox__content {
        width: 94vw;
        border-radius: 14px;
    }
    .carousel-lightbox__close {
        width: 46px;
        height: 46px;
        top: 0.85rem;
        right: 0.85rem;
    }
    .carousel-lightbox__nav {
        width: 48px;
        height: 48px;
    }
    .carousel-lightbox__nav--prev { left: 0.6rem; }
    .carousel-lightbox__nav--next { right: 0.6rem; }
}
