/* --- 1. PODSTAWOWE USTAWIENIA --- */
* {
    box-sizing: border-box;
}

html {
    font-size: calc(0.5vw + 10px);
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: #11120D;
    font-family: 'Montserrat', sans-serif;
    color: white;
}

/* --- 2. NAGŁÓWEK --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    pointer-events: none;
}

.header-container {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: clamp(20px, 3vw, 50px);
    pointer-events: auto;
}

.logo-wrap {
    display: flex;
    align-items: flex-start;
    gap: 1vw;
}

.logo-images {
    position: relative;
    width: clamp(60px, 7vw, 100px);
    height: clamp(60px, 7vw, 100px);
}

.logo-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transition: opacity 0.8s ease;
}

.logo-black { opacity: 0; }

/* Kontener dla tekstowej części logo */
.brand-info {
    display: flex;
    flex-direction: column; /* Ustawia napisy jeden pod drugim */
    justify-content: center;
    gap: 1px; /* Odstęp między imieniem a STUDIO */
    margin-top: clamp(15px, 1.8vw, 25px); /* Przeniesione wyrównanie do logo */
}

.brand-name {
    font-weight: 700;
    font-size: clamp(0.85rem, 0.95vw, 1.05rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.6s ease;
    margin-top: 0 !important; /* Usuwamy stary margines */
}

/* Styl dla dopisku STUDIO */
.studio-tag {
    font-weight: 600;
    font-size: clamp(0.55rem, 0.65vw, 0.75rem); /* Nieco mniejszy niż nazwisko */
    letter-spacing: 0.5em; /* Bardziej rozstrzelone litery dla elegancji */
    text-transform: uppercase;
    opacity: 1.0; /* Subtelniejszy niż główna nazwa */
    transition: color 0.6s ease;
}

/* Obsługa zmiany koloru w sekcjach jasnych */
header.header-black .brand-info span {
    color: #11120D;
}

nav {
    margin-top: clamp(15px, 1.8vw, 25px);
}

nav ul {
    list-style: none;
    display: flex;
    gap: clamp(20px, 3vw, 50px);
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: clamp(0.75rem, 0.85vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    transition: color 0.8s ease;
    cursor: pointer;
}

/* --- STYLE DLA AKTYWNEGO MENU --- */
nav ul li a {
    opacity: 0.4;
    transition: all 0.4s ease;
}

nav ul li a:hover {
    opacity: 1;
}

header.home-active nav ul li:nth-child(1) a { opacity: 1; font-weight: 700; }
header.about-active nav ul li:nth-child(2) a { opacity: 1; font-weight: 700; }
header.gallery-active nav ul li:nth-child(3) a { opacity: 1; font-weight: 700; }
header.offer-active nav ul li:nth-child(4) a { opacity: 1; font-weight: 700; }
header.contact-active nav ul li:nth-child(5) a { opacity: 1; font-weight: 700; }

/* --- 3. LOGIKA CZARNEGO NAGŁÓWKA (Neutralna) --- */
header.header-black .logo-white { opacity: 0; }
header.header-black .logo-black { opacity: 1; }
header.header-black .brand-name { opacity: 1; visibility: visible; color: #11120D; }        
header.header-black nav ul li a { color: #11120D; }

/* --- 4. KONTENER PRZEWIJANIA --- */
.container {
    height: 100vh;
    width: 100%;
    transition: transform 0.9s cubic-bezier(0.645, 0.045, 0.355, 1);
}

section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- 5. PLANSZA 1 --- */
.content-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: clamp(70px, 12vh, 170px);
    height: 100vh;
    box-sizing: border-box;
}

.side-text {
    font-weight: 600;
    font-size: clamp(0.8rem, 1.1vw, 1.3rem);
    line-height: 2.2;
    letter-spacing: 0.55em;
    text-transform: uppercase;
    flex: 1;
    
    /* STAN POCZĄTKOWY: ukryte i lekko przesunięte */
    opacity: 0;
    transition: all 1s ease-out;
    margin-bottom: 15px;
}

.left-text { 
    text-align: left; 
    transform: translateX(-30px); /* Wjazd z lewej */
}

.right-text { 
    text-align: right; 
    transform: translateX(30px); /* Wjazd z prawej */
}

/* --- ANIMACJA PO WEJŚCIU (Klasa .active) --- */

/* Lewy tekst pojawia się pierwszy */
.p1.active .left-text {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.4s;
}

/* Prawy tekst pojawia się z lekkim opóźnieniem względem lewego */
.p1.active .right-text {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.9s;
}

.main-photo {
    width: 30%;
    max-width: 450px;
    min-width: 150px;
    height: auto;
    margin: 0 5%;
    filter: drop-shadow(0 0 4vw rgba(0,0,0,0.6));
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    display: block;
    margin-bottom: -15px;    
}

.brush-bg {
    position: absolute;
    top: 56%; left: 48%;
    transform: translate(-50%, -50%);
    width: 84vw;
    opacity: 0.5;
}

/* --- PLANSZA 2: O MNIE --- */
.p2 {
    /* Nakładamy biały filtr (0.9 opacitiy) na obrazek papieru */
    background: linear-gradient(rgba(232, 232, 232, 0.7), rgba(232, 232, 232, 0.7)), 
                url('paper-texture.webp');
    background-size: cover;
    background-position: center;
    
    /* WYMUSZAMY CZARNY TEKST */
    color: #11120D !important; 
}

/* Dodatkowo upewnij się, że nagłówek i paragrafy są czarne */
.p2 h2, .p2 p, .p2 strong {
    color: #11120D !important;
}

.omne-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.omne-text {
    z-index: 2;
    flex: 0 0 60%;
    text-align: left;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

.omne-text h2 {
    font-size: clamp(0.95rem, 1.45vw, 1.85rem);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.02em;
    margin-bottom: clamp(15px, 2vw, 25px);
    text-transform: uppercase;
    text-align: left;
}

.omne-text p {
    font-size: clamp(0.9rem, 1.2vw, 1.4rem);
    line-height: 2.0;
    letter-spacing: 0.05em;
    font-weight: 500;
    text-align: left;
    margin-bottom: clamp(10px, 1.0vw, 25px);
}

.omne-photo {
    flex: 0 0 40%;
    display: flex;
    justify-content: flex-end;
}

.solo-photo {
    width: 100%;
    max-width: clamp(250px, 40vw, 650px);
    height: auto;
    display: block;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.signature-overlay {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    height: auto;
    width: clamp(200px, 35vw, 750px);
    bottom: -3vh;
    right: 49vh;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transition: opacity 0.4s ease, clip-path 0.9s ease-in-out;
}

header.about-active ~ .container .p2 .solo-photo { opacity: 1; transform: translateY(40px); transition-delay: 0.3s; }
header.about-active ~ .container .p2 .omne-text { opacity: 1; transform: translateX(0); transition-delay: 0.8s; }
header.about-active ~ .container .p2 .signature-overlay { opacity: 1; clip-path: inset(0 0 0 0); transition-delay: 1.2s; }

/* --- 7. PLANSZA 3: GALERIA --- */
.p3 {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center !important;
    height: 100vh;
    padding-bottom: clamp(60px, 15vh, 150px);
    overflow: hidden;
}

.gallery-wrap {
    width: 92%;
    max-width: 1600px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(15px, 4vw, 60px);
    margin: 0 auto;
}

.gallery-item {
    flex: 0 1 clamp(200px, 23vw, 380px);
    opacity: 0;
    transform: translateY(-40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: left;
}

.gallery-frame {
    width: 100%;
    max-height: clamp(200px, 50vh, 500px);
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: clamp(8px, 1.2vw, 20px);
    margin-bottom: clamp(15px, 2.5vh, 30px);
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.7);
    transition: all 0.6s ease;
}

.gallery-wrap:hover .gallery-item { opacity: 0.3; }
.gallery-item:hover { opacity: 1 !important; }
.gallery-item:hover .gallery-frame { border-color: white; }
.gallery-item:hover .gallery-frame img { transform: scale(1.05); filter: grayscale(0%) brightness(1.1); }

.sub-desc {
    display: block;
    font-size: clamp(0.65rem, 0.75vw, 0.85rem);
    line-height: 1.5;
    opacity: 0;                /* Całkowicie przezroczysty */
    max-width: 100%;
    transform: translateY(10px); /* Delikatne przesunięcie w dół */
    transition: all 0.5s ease; /* Płynne przejście */
}

.gallery-desc h3 {
    font-size: clamp(1.1rem, 1.2vw, 1.3rem);
    letter-spacing: 0.3em;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: white;
    transition: color 0.4s ease;
}

/* 3. EFEKT HOVER: Gdy najeżdżasz na cały element (gallery-item) */
.gallery-item:hover .sub-desc {
    opacity: 0.6;              /* Pojawia się (półprzezroczysty dla elegancji) */
    transform: translateY(0);  /* Wraca na swoje miejsce */
}

/* Opcjonalnie: Możesz sprawić, że tytuł stanie się 
   jeszcze wyraźniejszy przy najechaniu */
.gallery-item:hover .gallery-desc h3 {
    color: #fff;
    opacity: 1;
}

/* 4. Poprawka zachowania pozostałych kafelków */
/* Gdy najeżdżasz na jeden, inne lekko przygasają - to już masz, 
   ale upewnijmy się, że opisy w nich pozostają ukryte */
.gallery-wrap:hover .gallery-item { 
    opacity: 0.4; 
}

.gallery-item:hover { 
    opacity: 1 !important; 
}

header.gallery-active ~ .container .p3 .gallery-item:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
header.gallery-active ~ .container .p3 .gallery-item:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
header.gallery-active ~ .container .p3 .gallery-item:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }

/* Reset kolorów dla linków w galerii */
.gallery-item, 
.gallery-item:visited, 
.gallery-item:hover, 
.gallery-item:active {
    text-decoration: none; /* Usuwa domyślne podkreślenie */
    color: inherit;       /* Link przejmuje kolor tekstu z rodzica (biały) */
}

/* Jeśli chcesz, aby tylko tytuły wewnątrz linku były białe */
.gallery-desc h3 {
    color: white;
}

/* Jeśli tło galerii byłoby jasne, możesz wymusić kolor: */
/* .gallery-item { color: #11120D !important; } */

.gallery-frame img {
    filter: grayscale(100%) brightness(0.9) contrast(1.1);
    mix-blend-mode: luminosity; /* To pomoże zdjęciom "stopić się" z czarnym tłem strony */
    transition: all 0.6s ease;
}

.gallery-item:hover .gallery-frame img {
    filter: grayscale(0%) brightness(1) contrast(1);
    mix-blend-mode: normal;
}

/* --- 8. PLANSZA 4: OFERTA (Dialog z nauką) --- */
.p4 {
    background: linear-gradient(rgba(232, 232, 232, 0.7), rgba(232, 232, 232, 0.7)), 
                url('paper-texture.webp');
    color: #11120D;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.dialog-wrap {
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.dialog-intro {
    font-size: clamp(1.1rem, 1.2vw, 1.3rem);
    letter-spacing: 0.3em;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.etos-img {
    width: auto;
    height: auto;
    max-height: clamp(120px, 22vh, 220px);
    max-width: 90%;
    margin: 1px 0;
    display: block;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.6s ease-in-out;
}

.dialog-desc {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.dialog-desc p {
    font-size: clamp(1.0em, 1.0vw, 1.2rem);
    line-height: 2.0;
    margin: 5px 0;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.dialog-link {
    position: absolute;
    bottom: 8vh;
    right: 8vw;
    text-decoration: none;
    color: #11120D;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.p4.active .dialog-intro { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.p4.active .etos-img { clip-path: inset(0 0 0 0); transition-delay: 0.8s; }
.p4.active .dialog-desc { opacity: 1; transform: translateY(0); transition-delay: 1.4s; }
.p4.active .dialog-link { opacity: 1; transition-delay: 2.0s; }







/* --- 9. PLANSZA 5: OFERTA (Naprawiona Karuzela) --- */

.p5 {
    height: 100vh;
    width: 100%;
    /* USTAWIANIE TŁA OBRAZKOWEGO */
    background-image: url('oferta background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Zmiana koloru tekstu na biały, bo tło jest ciemne */
    color: white; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Dodatkowo upewnij się, że strzałki są dobrze widoczne */
.nav-arrow {
    color: white !important;
    opacity: 0.8;
}

.offer-container {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Zmieniamy na flex-start, aby kontrolować odstęp od góry paddingiem */
    justify-content: flex-start; 
    align-items: center;
    position: relative;
    
    /* KLUCZOWA ZMIANA: 
       Na dużych ekranach 15vh, na małych/niskich laptopach min. 100px */
    padding-top: clamp(125px, 20vh, 250px); 
}

/* Tekst nad kołami */
.offer-text-box {
    /* Zmniejszamy margines pod tekstem, żeby koła były bliżej */
    margin-bottom: clamp(10px, 3vh, 30px); 
    height: auto;
    min-height: 60px; 
    text-align: center;
    z-index: 10;
}

.offer-text-box h2 {
    font-size: clamp(1.2rem, 1.8vw, 2rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.offer-text-box p {
    font-size: clamp(0.8rem, 1.1vw, 1.2rem);
    opacity: 0.9;
    letter-spacing: 0.05em;
}

/* Karuzela */
.carousel-viewport {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circles-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-item {
    position: absolute;
    width: clamp(140px, 18vw, 280px);
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%);
    border: 1px solid rgba(255,255,255,0.1);
    
    /* DODATEK: rączka przy najechaniu na boczne koła */
    cursor: pointer;
}

/* Możesz też dodać delikatny efekt po najechaniu na boczne koła, aby zachęcić do kliknięcia */
.circle-item.prev:hover,
.circle-item.next:hover {
    filter: grayscale(50%);
    opacity: 0.7;
}

/* Pozycje kół */
.circle-item.active { transform: translateX(0) scale(1.2); opacity: 1; z-index: 5; filter: grayscale(0%); border-color: white; }
.circle-item.prev { transform: translateX(-110%) scale(0.8); opacity: 0.4; z-index: 3; }
.circle-item.next { transform: translateX(110%) scale(0.8); opacity: 0.4; z-index: 3; }
.circle-item.hidden-l { transform: translateX(-200%) scale(0.5); opacity: 0; z-index: 1; }
.circle-item.hidden-r { transform: translateX(200%) scale(0.5); opacity: 0; z-index: 1; }

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

/* Strzałki */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0.6;
    transition: 0.3s;
}
.nav-arrow:hover { opacity: 1; }
.nav-arrow.left-arr { left: 9vw; }
.nav-arrow.right-arr { right: 9vw; }

/* Kropki - zawsze widoczne u dołu */
.dots-nav { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
    
    /* Pozycjonowanie absolutne względem .p5 */
    position: absolute;
    bottom: clamp(20px, 5vh, 40px); /* Stały odstęp od dolnej krawędzi */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}
.dots-nav span { width: 6px; height: 6px; background: white; border-radius: 50%; opacity: 0.2; transition: 0.4s; }
.dots-nav span.active { opacity: 1; transform: scale(2.2); }
.dots-nav span.side { opacity: 0.5; transform: scale(1.5); }


/* --- 10. PLANSZA 6: PRZERYWNIK (Projekt zaczyna się od...) --- */

.p6 {
    background-color: #000; /* Głęboka czerń */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.talk-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    /* Dodajemy perspektywę, żeby efekt 3D był głębszy */
    perspective: 1000px;
    margin-top: 10vh;
}

.talk-intro {
    font-size: clamp(1.0rem, 1.5vw, 1.4rem);
    letter-spacing: 0.45em;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    margin-bottom: -5px; 
}

/* NOWY EFEKT DLA OBRAZKA */
.talk-img {
    width: auto;
    height: auto;
    max-height: clamp(80px, 18vh, 180px);
    max-width: 90%;
    
    opacity: 0;
    transform: translateY(40px) scale(0.95); /* Nieco mniejszy dystans do pokonania */
    filter: blur(15px);
    
    /* ZMIANA: Skrócenie czasu z 2s na 1.2s */
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- ANIMACJE DLA P6 --- */

/* Tekst wjeżdża pierwszy */
.p6.active .talk-intro {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* --- ANIMACJE DLA P6 --- */

.p6.active .talk-img {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    /* ZMIANA: Skrócenie opóźnienia z 1s na 0.7s */
    transition-delay: 0.7s;
}








/* --- PLANSZA OSTATNIA - KONTAKT (NAPRAWIONE SKALOWANIE) --- */
.p2 {
    /* Nakładamy biały filtr (0.9 opacitiy) na obrazek papieru */
    background: linear-gradient(rgba(232, 232, 232, 0.7), rgba(232, 232, 232, 0.7)), 
                url('paper-texture.webp');
    background-size: cover;
    background-position: center;
    
    /* WYMUSZAMY CZARNY TEKST */
    color: #11120D !important; 
}

.contact-view {
    background: linear-gradient(rgba(232, 232, 232, 0.7), rgba(232, 232, 232, 0.7)), 
                url('paper-texture.webp');
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; 
    overflow: hidden; /* Zapobiega scrollowaniu wewnątrz sekcji */
}

.contact-container {
    width: 92%; 
    max-width: 1600px;
    height: 85vh; /* Zostawiamy miejsce na header */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Wszystko "stoi" na jednej dolnej linii */
    padding-top: 12vh; 
    position: relative;
    color: #11120D;
}

.contact-details a {
    color: #11120D;
    text-decoration: none;
}

/* LEWA STRONA */
.contact-left {
    flex: 0 1 50%; /* Pozwala się kurczyć, ale nie rośnie nadmiernie */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 5;
}

.contact-title {
    width: 100%;
    /* Ujemny margines podciąga formularz, ale tylko na dużych ekranach */
    margin-bottom: clamp(-25px, -1vh, -5px); 
}

.contact-title img {
    /* KLUCZ: Szerokość dopasowana tak, by nie rozwalała układu */
    width: 100%;
    max-width: 800px; 
    height: auto;
    display: block;
    /* Przesunięcie w lewo, żeby optycznie "K" było w linii z logo, 
       jeśli PNG ma margines własny */
    margin-left: -5%; 
}

.contact-form {
    width: 100%;
    max-width: clamp(350px, 35vw, 700px); 
}

.contact-form .form-group {
    margin-bottom: clamp(15px, 3vh, 35px);
    border-bottom: 1px solid rgba(17, 18, 13, 0.8);
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 0.95vw, 1.1rem);
    color: #11120D;
    outline: none;
}

.submit-btn {
    width: 100%;
    background: #11120D;
    color: #fff;
    border: none;
    padding: 15px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

/* PRAWA STRONA */
.contact-right {
    flex: 0 1 40%;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Trzyma dół */
    padding-bottom: 5px; /* Delikatna korekta do linii przycisku */
}

.contact-invite {
    font-size: clamp(0.9rem, 1.1vw, 1.3rem);
    line-height: 1.5;
    margin-bottom: clamp(15px, 5vh, 40px);
    font-weight: 500;
}

.contact-details {
    font-weight: 600;
    margin-bottom: clamp(20px, 5vh, 45px);
    line-height: 1.2;
    font-size: clamp(0.85rem, 1vw, 1.1rem);
}

.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 15px;
}

.social-icons img {
    width: 64px;
    height: auto;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* --- FIX DLA MAŁYCH EKRANÓW (MOBILNE) --- */
@media (max-width: 850px) {
    .contact-container {
        flex-direction: column;
        align-items: flex-start; /* Trzymamy lewą linię */
        justify-content: flex-start;
        height: auto;
        padding-top: 100px;
    }

    .contact-left {
        width: 100%;
        margin-bottom: 40px;
    }

    .contact-title img {
        max-width: 300px; /* Znaczne zmniejszenie PNG na telefonie */
    }

    .contact-right {
        width: 100%;
        text-align: left; /* Na telefonie lepiej czyta się od lewej */
        align-items: flex-start;
    }

    .social-icons {
        justify-content: flex-start;
    }
}


/* --- ZSYNCHRONIZOWANE ANIMACJE DLA WSZYSTKICH SEKJI --- */

/* Sekcja 2: O MNIE */
.p2 .solo-photo, .p2 .omne-text {
    opacity: 0;
    transition: all 1s ease-out;
}
.p2 .solo-photo { transform: translateY(40px); }
.p2 .omne-text { transform: translateX(-50px); }

/* Aktywacja Sekcji 2 */
.p2.active .solo-photo { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.p2.active .omne-text { opacity: 1; transform: translateX(0); transition-delay: 0.8s; }
.p2.active .signature-overlay { opacity: 1; clip-path: inset(0 0 0 0); transition-delay: 1.2s; }

/* Sekcja 3: GALERIA */
.p3 .gallery-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Aktywacja Sekcji 3 */
.p3.active .gallery-item:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.p3.active .gallery-item:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.p3.active .gallery-item:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }

/* --- POPRAWKA DLA MOBILI (DODAJ NA KOŃCU) --- */
@media (max-width: 850px) {
    body, html {
        /* Zapobiega standardowemu scrollowi, by JS mógł przejąć kontrolę */
        touch-action: none; 
    }
    
    .container {
        /* Skrócenie czasu przejścia na mobile dla lepszego wrażenia responsywności */
        transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    }

    .omne-wrap {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 30px;
    }

    .omne-text, .omne-photo {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .signature-overlay {
        right: 5vw; /* Przesunięcie podpisu na środkową/prawą część na mobile */
        width: 60vw;
    }
}

 /* --- PEWNE ROZWIĄZANIE: ŁAPKA I WYGLĄD --- */

.reveal-text, 
#phone-wrap span, 
#email-wrap span, 
#phone-wrap a, 
#email-wrap a {
    cursor: pointer !important; /* Wymuszenie łapki na wszystkim */
    display: inline-block !important;
    color: #000000 !important;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease !important;
}

.reveal-text:hover, 
#phone-wrap a:hover, 
#email-wrap a:hover {
    opacity: 0.7 !important;
}

/* Ustawienie marginesów, żeby tekst nie był przyklejony do siebie */
#phone-wrap, #email-wrap {
    margin: 10px 0 !important;
    display: block !important;
}


/* Stylizacja strzałki scrollowania */
.scroll-indicator {
    position: absolute;
    bottom: 30px; /* Odległość od dolnej krawędzi */
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.5s ease;
}

/* Kontener strzałki */
.scroll-indicator {
    position: absolute;
    bottom: clamp(20px, 4vh, 60px); /* Elastyczny odstęp od dołu */
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
    padding: 1vw; /* Padding skalujący się z oknem */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

/* Skalowalny kształt strzałki */
.arrow-shape {
    /* Rozmiar bazuje na szerokości okna, z ograniczeniem min/max */
    width: clamp(15px, 2vw, 30px); 
    height: clamp(15px, 2vw, 30px);
    
    /* Grubość linii również może być subtelnie zmienna */
    border-right: clamp(2px, 0.2vw, 4px) solid rgba(255, 255, 255, 0.5);
    border-bottom: clamp(2px, 0.2vw, 4px) solid rgba(255, 255, 255, 0.5);
    
    transform: rotate(45deg);
    animation: scrollBlink 2s infinite ease-in-out;
}

/* Animacja uwzględniająca rotację 45 stopni i ruch w dół */
@keyframes scrollBlink {
    0% {
        opacity: 0.1;
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        opacity: 0.8;
        transform: rotate(45deg) translate(0, 0);
    }
    100% {
        opacity: 0.1;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* Ukrywanie na innych sekcjach */
header.about-active ~ .container .scroll-indicator,
header.header-black ~ .container .scroll-indicator {
    opacity: 0;
    pointer-events: none;
}