/* CLASH GROTESK - LIGHT (300) */
@font-face {
    font-family: 'ClashGrotesk';
    src: url('../fonts/ClashGrotesk-Light.woff2') format('woff2'),
         url('../fonts/ClashGrotesk-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ClashGrotesk';
    src: url('../fonts/ClashGrotesk-Regular.woff2') format('woff2'),
         url('../fonts/ClashGrotesk-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* CLASH GROTESK - MEDIUM (500) */
@font-face {
    font-family: 'ClashGrotesk';
    src: url('../fonts/ClashGrotesk-Medium.woff2') format('woff2'),
         url('../fonts/ClashGrotesk-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* CLASH GROTESK - SEMIBOLD (600) */
@font-face {
    font-family: 'ClashGrotesk';
    src: url('../fonts/ClashGrotesk-Semibold.woff2') format('woff2'),
         url('../fonts/ClashGrotesk-Semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
}

/* Kursor ukrywany dynamicznie przez JavaScript - tylko gdy custom cursor jest gotowy */

html {
    font-size: 10px;
    scroll-behavior: smooth;
    overflow-x: hidden;
	max-width: 100%;
	touch-action: manipulation;
} 

body {
    font-family: 'ClashGrotesk', Arial, sans-serif;
    font-size: 1.8rem;
    margin: 0;
    overflow-x: hidden;
    max-width: 100%;
	touch-action: manipulation;
}

::selection {
	background: #E5E5E5;
	color: #BE3144;
}

/*kursor*/
.custom-cursor {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: difference;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #BE3144;
  transition: transform 350ms ease;
  transform: translate(-50%, -50%) scale(.3);
  z-index: 100000000000;
}
.custom-cursor--link {
  transform: translate(-50%, -50%) scale(1);
}

#root a, a, #root p, #root h1, #root h2, #root h3, #root h4, #root h5, #root h6, #root span {
	color: #BE3144;
    font-family: 'ClashGrotesk';
}

#root li {
	color: #F5E7E9;
}

h1, h2, h3, h4, h5, h6, a {
    text-transform: uppercase;
}

#root .kontener {
    max-width: 1800px;
    padding-right: 8rem;
    padding-left: 8rem;
}

#root #navi a .e-n-menu-title-text {
    color: #BE3144;
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.1em;
    font-family: 'ClashGrotesk' !important;
    transition: letter-spacing 0.3s ease;
}

#root #navi a .e-n-menu-title-text:hover {
    letter-spacing: 0.2em;
}

#root .uppercase {
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.white, #root .white, #root .white h1, #root .white h2, #root .white h3, #root .white h4, #root .white p, #root .white span {
    color: #F5E7E9;
}

#root .size-s p {
    font-size: 1.7rem;
    text-align: justify;
    letter-spacing: 0.1em;
    font-family: 'ClashGrotesk';
    font-weight: 400;
}

#root .size-m {
    font-size: 2.8rem
}

#root .size-xl {
    font-size: 2.2vw;
}

#root .light, #root .light h1, #root .light h2, #root .light h3, #root .light h4 {
    font-weight: 300;
}

#root .medium, #root .medium h1, #root .medium h2, #root .medium h3, #root .medium h4, #root .medium a, #root .medium p, #root .medium span {
    font-weight: 500;
}

#root .semi, #root .semi h1, #root .semi h2, #root .semi h3, #root .semi h4 {
    font-weight: 600;
}

#root .line120 {
    line-height: 120%;
}

#root .line100 {
    line-height: 100%;
}

#root h6 {
    font-size: 3.2rem;
    font-family: 'ClashGrotesk';
    font-weight: 600;
    letter-spacing: -0.04em;
}

#root span.elementor-button-text {
    font-weight: 600;
    border-bottom: 2px #BE3144 solid;
    padding-bottom: 1px;
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    transition: letter-spacing 0.3s ease;
}

#root span.elementor-button-text:hover {
    letter-spacing: 0.2em;
}

#root .greyscale {
    filter: grayscale(1);
    mix-blend-mode: plus-lighter;
	transform: translate3d(0,0,0);
}

#root .rounded {
    border-radius: 4px;
}

#root .grad-rad {
    mix-blend-mode: plus-lighter;
	transform: translate3d(0,0,0);
	opacity: 0.7;
}

.sc-link {
    border: 1px solid #2D2D2E;
    border-radius: 4px;
    padding: 4px;
    transition: all 0.3s ease;
}

.sc-link:hover {
    border: 1px solid #BE3144
}

#root .sc-link a {
    color: #BCB6B6;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    font-weight: 500;
    line-height: 100%;
}

div#img-siatka {
    margin-right: -50px;
    mix-blend-mode: exclusion;
    z-index: 100;
}

#root .img-bio {
    filter: grayscale(1);
    transition: all 0.5s ease;
}

#root .img-bio:hover {
    filter: none;
}

#root span.elementor-headline.elementor-headline-animation-type-typing.elementor-headline-letters {
    display: flex;
    flex-direction: column;
}

#root span.elementor-headline-plain-text.elementor-headline-text-wrapper {
    font-size: 2rem;
    padding-bottom: 10px;
}

span.elementor-headline-dynamic-wrapper.elementor-headline-text-wrapper {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

#root p.elementor-image-box-title {
    line-height: 1;
}

#root .elementor-8 .elementor-element.elementor-element-7ddaea3 .elementor-main-swiper {
	height: 40px;
}

#logosy {
    mix-blend-mode: difference;
}

/* YouTube Modal Styles */
.youtube-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.youtube-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.youtube-modal-content {
    position: relative;
    width: 100%;
    background: transparent;
    border-radius: 8px;
    padding: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.youtube-modal-close {
    position: absolute;
    top: -5rem;
    right: 5rem;
    background: transparent;
    border: none;
    color: #BE3144;
    font-size: 6rem;
    line-height: 1;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: transform 0.3s ease, color 0.3s ease;
    font-family: 'ClashGrotesk', Arial, sans-serif;
    font-weight: 300;
}

.youtube-modal-close:hover {
    transform: rotate(90deg);
    color: #F5E7E9;
}

.youtube-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.youtube-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.youtube-carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
}

/* Desktop - "coverflow": 3 filmy w kadrze (środek aktywny, boki z blur) */
@media (min-width: 1025px) {
    .youtube-carousel {
        --yt-slide-basis: 40%;
        --yt-side-blur: 3px;
        --yt-side-blur-light: 3px;
        --yt-side-scale: 1;
        --yt-side-scale-light: 1;
        --yt-active-scale: 1;
    }

    .youtube-carousel-slide {
        flex: 0 0 var(--yt-slide-basis);
        max-width: var(--yt-slide-basis);
        min-width: 0;
        padding: 0 1.2rem;
        box-sizing: border-box;
        margin-bottom: 0;
        filter: blur(var(--yt-side-blur));
        opacity: 0.55;
        transform: scale(var(--yt-side-scale));
        transition: transform 0.45s ease, filter 0.45s ease, opacity 0.45s ease;
        cursor: pointer;
    }

    .youtube-carousel-slide.prev,
    .youtube-carousel-slide.next {
        filter: blur(var(--yt-side-blur-light));
        opacity: 0.4;
        transform: scale(var(--yt-side-scale-light));
    }

    /* Boczne slajdy służą do nawigacji (klik) – wyłącz interakcję z iframe, żeby klik działał */
    .youtube-carousel-slide.prev .youtube-video-wrapper iframe,
    .youtube-carousel-slide.next .youtube-video-wrapper iframe {
        pointer-events: none;
    }

    .youtube-carousel-slide.active {
        filter: none;
        opacity: 1;
        transform: scale(var(--yt-active-scale));
        cursor: default;
    }

    /* Bez strzałek na desktop - nawigacja klik w boczny film */
    .youtube-carousel-prev,
    .youtube-carousel-next {
        display: none !important;
    }
}


/* Mobile i Tablet - feed w dół zamiast karuzeli */
@media (max-width: 1024px) {

    .youtube-carousel-slide {
        filter: none!important;
        opacity: 1!important;
    }
    .youtube-modal {
        align-items: flex-start;
        padding: 1rem 0;
    }
    
    .youtube-carousel {
        overflow: visible; /* Pozwól na scrollowanie wszystkich filmów */
        height: auto;
    }
    
    .youtube-carousel-track {
        display: flex;
        flex-direction: column;
        overflow: visible;
        height: auto;
        gap: 5rem;
    }

    button.youtube-modal-close:focus-visible {
        outline: none;
        border: none;
    }
    
    .youtube-carousel-slide {
        min-width: 100%;
        width: 100%;
        display: flex !important;
        margin-bottom: 0;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .youtube-carousel-slide:last-child {
        margin-bottom: 0;
    }
    
    .youtube-carousel-prev,
    .youtube-carousel-next {
        display: none !important;
    }
    
    .youtube-modal-content {
        max-height: none !important;
        height: auto !important;
        min-height: 100%;
        overflow-y: visible;
        padding: 1rem;
        padding-top: 5rem; /* Miejsce na przycisk X */
        margin: 0;
    }
    
    /* Pierwszy film z dodatkowym marginesem od góry */
    .youtube-carousel-slide:first-child {
        margin-top: 0;
    }

    #root p.youtube-video-title.size-m.white.uppercase.medium.line120 {
        font-size: 2rem;
        font-weight: 600;
    }
}

.youtube-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 4px;
}

.youtube-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-video-title {
    margin-top: 1.5rem;
    text-align: center;
}

.youtube-carousel-prev,
.youtube-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #BE3144;
    border: none;
    color: white;
    font-size: 3rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10002;
    font-family: 'ClashGrotesk', Arial, sans-serif;
    font-weight: 300;
    line-height: 1;
}

.youtube-carousel-prev {
    left: 1rem;
}

.youtube-carousel-next {
    right: 1rem;
}

.youtube-carousel-prev:hover,
.youtube-carousel-next:hover {
    background: #BE3144;
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 1600px) {
    #root .kontener {
    max-width: 1400px;
    padding-right: 4rem;
    padding-left: 4rem;
}

    #root .size-s p {
    font-size: 1.5rem;
}

    #root .size-m {
    font-size: 2.3rem
}

#root .sc-link a {
    color: #BCB6B6;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    font-weight: 500;
    line-height: 100%;
}
	
	div#img-siatka {
    margin-right: -40px;
}

}

@media (max-width: 1024px) {
    #root .kontener {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}
	
	#root .size-xl {
    font-size: 5vw;
}
	
		#root #img-siatka {
    display: none;
}
	
	#root #scloud .elementor-widget-image-box .elementor-image-box-wrapper {
    text-align: center;
    display: flex;
    align-items: center;
    text-align: left;
	padding-right: 50px;
}
	
	#root .sc-link a {
		font-size: 1.7rem;
	}

	#root #oferta-txt .elementor-headline {
		font-size: 30px
	}
	
	#root ul.e-n-menu-heading {
    height: 170px;
    width: 50%;
	margin-left: 15px;
	background-color: #BE3144;
}

	
	#root .elementor-widget-n-menu .e-n-menu[data-layout=dropdown] .e-n-menu-title {
		background-color: #BE3144;
	}
	
	#root #navi a .e-n-menu-title-text {
		color: #1D1D1E;
	}
	
}


/* Responsive */
@media (max-width: 1024px) {
    .youtube-modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .youtube-carousel-prev,
    .youtube-carousel-next {
        width: 40px;
        height: 40px;
        font-size: 2.5rem;
    }
    
    .youtube-carousel-prev {
        left: 0.5rem;
    }
    
    .youtube-carousel-next {
        right: 0.5rem;
    }
    
}

@media (max-width: 768px) {
    .youtube-modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 1rem;
        padding-top: 4.5rem; /* Miejsce na przycisk X na mobile */
    }
    
    .youtube-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 4.5rem;
        width: 35px;
        height: 35px;
    }
    
    .youtube-carousel-prev,
    .youtube-carousel-next {
        width: 35px;
        height: 35px;
        font-size: 2rem;
    }
    
    .youtube-video-title {
        margin-top: 1rem;
    }
}
