/* =================================================================
   ZMIENNE CSS - Centralne zarządzanie kolorami, rozmiarami i wartościami
   ================================================================= */
:root {
    /* Kolory */
    --color-primary: #333;
    --color-secondary: #777;
    --color-background: white;
    --color-border: #eee;
    --color-hover: #777;
    
    /* Rozmiary */
    --spacing-xs: 0.625rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.25rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Breakpointy */
    --breakpoint-sm: 360px;
    --breakpoint-md: 480px;
    --breakpoint-lg: 768px;
    
    /* Z-index - uporządkowana hierarchia */
    --z-index-base: 1;
    --z-index-content: 2;
    --z-index-modal: 4;
    --z-index-preview-modal: 6;
    --z-index-menu: 7;
    --z-index-header-footer: 5;
    
    /* Inne */
    --border-radius: 5px;
    --transition-speed: 0.3s;
    
    /* RESPONSYWNE WYSOKOŚCI - skalowane względem rozdzielczości */
    --header-height: clamp(3rem, 4dvw + 2rem, 5rem);
    --footer-height: clamp(2.5rem, 3.5dvw + 1.5rem, 4.5rem);
    
    /* Dodatkowe zmienne dla lepszego skalowania */
    --min-header-height: 2rem;
    --max-header-height: 8rem;
    --min-footer-height: 1.5rem;
    --max-footer-height: 6rem;
}

/* =================================================================
   GLOBALNE USTAWIENIA - Podstawowe style dla wszystkich elementów
   ================================================================= */
html, body {
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-style: normal;
}

html {
    font-size: 16px;
    height: 100dvh;
    overflow-x: hidden; /* Zapobiega scroll poziomy */
}

body {
    background-color: var(--color-background);
    color: var(--color-primary);
    
    height: 100dvh;
    width: 100dvw;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    isolation: isolate;
}

/* Klasy pomocnicze */
.hidden {
    display: none !important;
}


/* =================================================================
   EKRAN POWITALNY (INTRO)
   ================================================================= */
/* używany: 1 raz, wywołyowany w pliku index.html w linii: 11 */
.intro-container {
    position: fixed;
    inset: 0;
    background-color: var(--color-background);
    z-index: var(--z-index-base);
    overflow: hidden;
}

/* używany: 1 raz, wywołyowany w pliku index.html w linii: 12 */
.intro-videos {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* używany: 2 razy, wywołyowany w pliku index.html w liniach: 14, 16 */
.intro-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: var(--z-index-base);
}

/* używany: 1 raz, wywołyowany w pliku index.html w linii: 18 */
.intro-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20dvh; 
    z-index: calc(var(--z-index-base) + 1);
    text-align: center;
    color: #000;
}

/* używany: 2 razy, wywołyowany w pliku index.html w liniach: 19, 64 oraz skrypt.js w liniach: 2141, 2250, 2282 */
.language-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    width: 100%;
    gap: 0px;
}

/* używany: w JavaScript - dodawana dynamicznie */
.language-selector.show {

    animation: fadeIn 0.4s ease forwards;
}

/* używany: w JavaScript - dodawana dynamicznie */
.language-selector.hide {
    animation: fadeOut 0.4s ease forwards;
    transform: translateY(-2rem);
}

/* używany: 3 razy, wywołyowany w pliku index.html w liniach: 20, 22, 24 */
.lang-btn {
    padding: var(--spacing-xs) var(--spacing-xs);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
    opacity: 0;
    transform: translateY(2rem);
    display: inline-flex;
    align-items: center;
    color: #000;
}

/* używany: automatycznie przez CSS - selektor nth-child - PL */
.lang-btn:nth-child(1) {
    animation: fadeInUp 0.6s forwards;
}

/* używany: automatycznie przez CSS - selektor nth-child - EN */
.lang-btn:nth-child(3) {
    animation: fadeInUp 0.6s forwards;
}

/* używany: automatycznie przez CSS - selektor nth-child - JP */
.lang-btn:nth-child(5) {
    animation: fadeInUp 0.6s forwards;
}

/* używany: automatycznie przez CSS - pseudo-klasa hover */
.lang-btn:hover {
    color: #777;
}

/* używany: automatycznie przez CSS - pseudo-element after */
.lang-btn::after {
    content: none;
}

/* używany: 2 razy, wywołyowany w pliku index.html w liniach: 21, 23 */
.language-separator {
    color: #000;
    opacity: 0;
    font-size: 1.2rem;
    animation: fadeInUp 0.6s forwards;
}

/* Wymuś czarny kolor dla sekcji wyboru języków w intro - niezależnie od trybu ciemnego */
.intro-container .language-selector .lang-btn,
.intro-container .language-selector .language-separator {
    color: #000 !important;
}

.intro-container .language-selector .lang-btn:hover {
    color: #777 !important;
}

/* =================================================================
   ANIMACJE
   ================================================================= */
/* używany: nie jest używany bezpośrednio */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-3rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* używany: przez lang-btn:nth-child i language-separator - automatycznie przez CSS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* używany: przez language-selector.show - automatycznie przez CSS */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* używany: przez language-selector.hide - automatycznie przez CSS, skrypt.js linia: 2293 */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(2rem);
    }
}

/* używany: przez page-slide-in-right i preview-slide-in-right - automatycznie przez CSS */
@keyframes slideInRight {
    from {
        transform: translateX(150%);
    }
    to {
        transform: translateX(0);
    }
}

/* używany: przez page-slide-in-left i preview-slide-in-left - automatycznie przez CSS */
@keyframes slideInLeft {
    from {
        transform: translateX(-150%);
    }
    to {
        transform: translateX(0);
    }
}

/* używany: przez page-slide-out-right i preview-slide-out-right - automatycznie przez CSS */
@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(150%);
    }
}

/* używany: przez page-slide-out-left i preview-slide-out-left - automatycznie przez CSS */
@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-150%);
    }
}

/* używany: przez page-slide-out-up - automatycznie przez CSS */
@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* używany: przez title-nav-arrow.modal-intro - automatycznie przez CSS */
@keyframes arrowIntro {
    0% {
        transform: scale(1);
        font-weight: normal;
    }
    50% {
        transform: scale(3);
        font-weight: bold;
    }
    100% {
        transform: scale(1);
        font-weight: normal;
    }
}

/* używany: przez modal-nav-arrow.modal-intro - automatycznie przez CSS */
@keyframes modalArrowIntro {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    10% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

/* używany: przez modal-nav-arrow.prev.modal-slide-out - automatycznie przez CSS */
@keyframes modalArrowSlideOutLeft {
    0% {
        opacity: 0.7;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-100px);
    }
}

/* używany: przez modal-nav-arrow.next.modal-slide-out - automatycznie przez CSS */
@keyframes modalArrowSlideOutRight {
    0% {
        opacity: 0.7;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Klasy animacji */
/* używany: w JavaScript - dodawana dynamicznie */
.page-slide-in-right {
    animation: slideInRight 0.4s ease-out forwards;
}

/* używany: w JavaScript - dodawana dynamicznie */
.page-slide-in-left {
    animation: slideInLeft 0.4s ease-out forwards;
}

/* używany: w JavaScript - dodawana dynamicznie */
.page-slide-out-right {
    animation: slideOutRight 0.4s ease-in forwards;
}

/* używany: w JavaScript - dodawana dynamicznie */
.page-slide-out-left {
    animation: slideOutLeft 0.4s ease-in forwards;
}

/* używany: w JavaScript - dodawana dynamicznie, skrypt.js linia: 1580 */
.page-slide-out-up {
    animation: slideOutUp 0.3s ease-in forwards;
}

/* używany: w JavaScript - dodawana dynamicznie, skrypt.js linie: 1198, 1589, 1644, 2329 */
.gallery-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* używany: w JavaScript - dodawana dynamicznie, skrypt.js linie: 1752, 1753 */
.title-nav-arrow.modal-intro {
    animation: arrowIntro 1s ease-in-out 2;
}

/* używany: w JavaScript - dodawana dynamicznie, skrypt.js linie: 1756, 1757 */
.modal-nav-arrow.modal-intro {
    animation: modalArrowIntro 2s ease-in-out;
}

/* używany: w JavaScript - dodawana dynamicznie, skrypt.js linia: 1768 */
.modal-nav-arrow.prev.modal-slide-out {
    animation: modalArrowSlideOutLeft 0.5s ease-in-out forwards;
}

/* używany: w JavaScript - dodawana dynamicznie, skrypt.js linia: 1769 */
.modal-nav-arrow.next.modal-slide-out {
    animation: modalArrowSlideOutRight 0.5s ease-in-out forwards;
}

/* używany: w JavaScript - dodawana dynamicznie, skrypt.js linia: 1093 */
.preview-slide-in-right {
    animation: slideInRight 0.4s ease-out forwards;
}

/* używany: w JavaScript - dodawana dynamicznie, skrypt.js linia: 1097 */
.preview-slide-in-left {
    animation: slideInLeft 0.4s ease-out forwards;
}

/* używany: w JavaScript - dodawana dynamicznie, skrypt.js linia: 1092 */
.preview-slide-out-right {
    animation: slideOutRight 0.4s ease-in forwards;
}

/* używany: w JavaScript - dodawana dynamicznie, skrypt.js linia: 1096 */
.preview-slide-out-left {
    animation: slideOutLeft 0.4s ease-in forwards;
}

/* =================================================================
   NAGŁÓWEK (HEADER)
   ================================================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 5%;
    background-color: var(--color-background);
    position: sticky;
    top: 0;
    z-index: var(--z-index-header-footer);
    width: 100%;
    height: var(--header-height);
}

.title-container {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

header h1 {
    font-size: 1rem;
    margin: 0;
    text-align: center;
    width: auto;
}

.title-nav-arrow {
    font-size: 0.875rem;
    margin: 0 var(--spacing-xs);
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.title-nav-arrow:hover {
    opacity: 1;
    transform: scale(1.2);
}

.title-nav-arrow.hidden {
    display: none;
}

.header-logo {
    height: 2.2rem;
    width: auto;
    margin: 0;
    padding: 0;
}

/* =================================================================
   MENU HAMBURGER I NAWIGACJA
   ================================================================= */
.hamburger-menu {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.125rem;
    height: 1.125rem;
    z-index: var(--z-index-header-footer);
    transition: transform 0.3s ease;
    margin: 0;
    padding: 0;
    position: relative;
}

.hamburger-menu.active {
    transform: rotate(-90deg);
}

.bar {
    height: 0.125rem;
    width: 100%;
    background-color: #333;
}

#menu {
    position: fixed;
    top: var(--header-height);
    left: -45dvw;
    width: 45dvw;
    height: calc(100dvh - var(--header-height) - var(--footer-height));
    background-color: var(--color-background);
    z-index: var(--z-index-menu);
    padding: var(--spacing-sm);
    padding-left: 5%; /* Zawsze równy paddingowi headera */
    padding-top: 5%;
    transition: all var(--transition-speed) ease;
    overflow-y: auto;
    box-sizing: border-box;
    pointer-events: none;
}

#menu.active {
    left: 0;
    pointer-events: auto;
}

#menu ul {
    list-style: none;
    padding-left: 0; /* Brak dodatkowego paddingu */
    padding-top: 1.25rem;
}

#menu li {
    margin: 0.75rem 0;
    padding-left: 0; /* Brak dodatkowego paddingu */
}

#menu a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: block;
}

#menu a:hover {
    color: #777;
}

/* Przycisk Farmazone w menu */
.farmazone-button {
    margin-top: 2rem;
    padding: 0; /* Brak paddingu - wyrównanie do lewej */
    display: flex;
    justify-content: flex-start; /* Zawsze do lewej */
    align-items: center;
}

.farmazone-button img {
    max-width: 75px;
    height: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.farmazone-button img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Panel zmiany języka w menu */
.language-panel {
    margin-top: 1rem;
    padding: 1rem 0;
}

.language-selector-menu {
    display: flex;
    justify-content: flex-start; /* Zawsze do lewej */

    width: auto; /* Automatyczna szerokość */
    margin: 0; /* Brak auto-centrowania */
}

.lang-option {
    cursor: pointer;
    font-size: 0.85rem;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 3px;
    flex: none;
    text-align: center;
    white-space: nowrap;
    min-width: 0;
    width: auto;
}

.lang-option:hover {
    color: #888;
    font-weight: bold;
}

.lang-option.active {
    color: #333;
    font-weight: bold;
}

.lang-separator {
    color: #ccc;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* =================================================================
   GŁÓWNA ZAWARTOŚĆ (MAIN)
   ================================================================= */
main {
    flex: 1;
    padding: 0;
    width: 100%;
    margin: 0;
    overflow: hidden;
    overflow-x: hidden; /* Dodatkowe zabezpieczenie przed scroll poziomy */
    position: relative;
    z-index: var(--z-index-content);
    min-height: calc(100dvh - var(--header-height) - var(--footer-height));
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-content {
    height: 100%;
    overflow: hidden;
}

/* =================================================================
   GALERIA MURALI
   ================================================================= */
/* =================================================================
   SYSTEM GALERII Z RESPONSYWNYM LAYOUT OPARTYM NA ORIENTACJI
   ================================================================= */

.gallery-container {
    display: grid;
    column-gap: 1.5dvw;
    row-gap: 1.5dvw;
    width: fit-content;
    max-width: 90%;
    height: auto;
    max-height: calc(100dvh - var(--header-height) - var(--footer-height) - 4dvw);
    overflow-y: auto;
    overflow-x: hidden;
    align-content: center;
    justify-content: center;
    justify-items: center;
    align-items: start;
    position: relative;
    padding: 0;
    
    /* Orientacja pionowa (portrait) - zawsze 3 kolumny o stałej szerokości */
    grid-template-columns: repeat(3, var(--tile-size));
    
    /* Kafel ma rozmiar proporcjonalny do ekranu używając dvw/dvh */
    --tile-size: min(26dvw, 18dvh);
}



.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
    width: var(--tile-size);
    height: var(--tile-size);
    pointer-events: auto;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    filter: drop-shadow(2px 2px 12px rgba(0, 0, 0, 0.5));
}

#murals-page {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex: 1;
}

/* =================================================================
   STRONY TREŚCI
   ================================================================= */
/* Strona "O mnie" */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    height: 100%;
    overflow-y: auto;
    padding: 0  1.25rem 1.25rem 1.25rem;
    box-shadow: none; /* Usuń cienie od scrollbar */
    -webkit-overflow-scrolling: touch; /* Usuń cienie na iOS */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Usuń cienie scrollbar w about page */
.about-container::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.about-container::-webkit-scrollbar-track {
    background: transparent;
    box-shadow: none;
}

.about-container::-webkit-scrollbar-thumb {
    background: transparent;
    box-shadow: none;
}

.about-container::-webkit-scrollbar-thumb:hover {
    background: transparent;
    box-shadow: none;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    font-weight: bold;
    margin-bottom: 2rem;
}

/* About intro - tekst wyśrodkowany */
.about-intro {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-text);
}

.about-intro p {
    line-height: 1.6;
}

/* About steps - karuzela (mobile portrait) */
.about-steps {
    position: relative;
    width: 100%;
    margin-bottom: 3rem; /* Miejsce na strzałki */
    overflow: hidden; /* Ukryj części stepów które wychodzą poza kontener */
    box-shadow: none; /* Usuń ewentualne cienie */
}

.about-steps-container {
    display: flex;
    transition: transform 0.3s ease;
    width: 400%; /* 4 slajdy */
    box-shadow: none; /* Usuń cienie */
    gap: 0.5rem; /* Małe odstępy między stepami */
}

.about-step {
    flex: 0 0 calc(25% - 0.375rem); /* każdy step zajmuje 25% minus proporcjonalny gap */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 15px;
    box-sizing: border-box;
    /* Usuń cienie jeśli istnieją */
    box-shadow: none;
}

.step-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-text);
}

.step-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.step-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.step-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--secondary-text);
    text-align: center;
}

/* Slider navigation */
.steps-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.step-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--primary-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-nav-btn:hover,
.step-nav-btn.active {
    background: rgba(255, 255, 255, 0.4);
}

.step-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: rgba(255, 255, 255, 0.8);
}

/* About steps side arrows - tylko w mobile portrait */
.about-steps-side-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-text);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.about-steps-side-arrows.left {
    left: -20px;
}

.about-steps-side-arrows.right {
    right: -20px;
}

.about-steps-side-arrows.show {
    opacity: 0.7;
}

/* Animacja strzałek about steps */
@keyframes aboutStepsArrowIntro {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(1);
    }
    10% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1);
    }
    100% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1);
    }
}

@keyframes aboutStepsArrowSlideOutLeft {
    0% {
        opacity: 0.7;
        transform: translateY(-50%) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-100px);
    }
}

@keyframes aboutStepsArrowSlideOutRight {
    0% {
        opacity: 0.7;
        transform: translateY(-50%) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(100px);
    }
}

.about-steps-side-arrows.steps-intro {
    animation: aboutStepsArrowIntro 2s ease-in-out;
}

.about-steps-side-arrows.left.steps-slide-out {
    animation: aboutStepsArrowSlideOutLeft 0.5s ease-in-out forwards;
}

.about-steps-side-arrows.right.steps-slide-out {
    animation: aboutStepsArrowSlideOutRight 0.5s ease-in-out forwards;
}

/* Style dla elementów p w about-page i me-page */
#about-page p {
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

#me-page p {
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.faq-container {
    margin-top: 50px;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-question {
    font-weight: bold;
    margin-bottom: 10px;
    cursor: pointer;
}

.faq-answer {
    line-height: 1.6;
}

/* Strona artysty */
.me-container {
    display: flex;
    flex-direction: column;

    width: 90%;
    margin: 0 auto;
    height: 100%;
    overflow-y: auto;
}


.artist-image {
    width: 100%;
}

.sign-image {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: 100px;
    margin-bottom: 30px;
    align-self: flex-start;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sign-image:hover {
    opacity: 0.7;
    transform: scale(1.05);
}




.artist-gif {
    width: 100%;
    height: auto;
}
.sign-logo {
    display: flex;
    justify-content: left;
    width: 100%;
    height: auto;
}

.globe-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
}
.globe-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    
    text-align: left;
}


.artist-bio {
    text-align: left;
    line-height: 1.6;
}

/* Strona kontaktowa */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    max-height: 100%;
    padding: 0  1.25rem 1.25rem 1.25rem;
    align-items: stretch;
    overflow-y: auto;
}

.contact-form-section {
    background: white;
    padding: 0 1.25rem 1.25rem 1.25rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.form-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-title-gif {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.half {
    flex: 1;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    font-style: italic;
}


.contact-message-section {
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
}

.submit-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    min-width: 180px;
}

.submit-btn:hover {
    background: var(--color-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Sekcja informacji kontaktowych */
.contact-info-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0.8;
}



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



/* =================================================================
   STOPKA (FOOTER)
   ================================================================= */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-index-header-footer);
    height: var(--footer-height);
}

.footer-contact {
    margin: 0;
    padding: 0;
}

.footer-contact a img,
.footer-social a img {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s ease;
}

.footer-copyright {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.footer-copyright p {
    font-size: 0.5rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.footer-social a {
    color: #333;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: #888;
}

.footer-social a:hover .social-icon {
    fill: #777;
    transform: scale(1.1);
}

/* =================================================================
   MODAL MURALI
   ================================================================= */
.modal {
    position: fixed;
    top: var(--header-height);
    bottom: var(--footer-height);
    left: 0;
    right: 0;
    background-color: var(--color-background);
    z-index: var(--z-index-modal);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    cursor: pointer;
    pointer-events: none;
}

.modal:not(.hidden) {
    pointer-events: auto;
}

.modal .modal-content,
.modal .close-modal {
    pointer-events: auto;
}

.modal-content {
    background-color: white;
    /* Szerokość = szerokość headera - paddingi - hamburger - logo */
    width: calc(100vw - 2 * 5% - 1.125rem - 2.2rem); /* Desktop baseline */
    position: relative;
    height: calc(100dvh - var(--header-height) - var(--footer-height));
    max-height: calc(100dvh - var(--header-height) - var(--footer-height));
    overflow-y: auto; /* Przywróć scroll na głównym poziomie */
    overflow-x: hidden; /* Blokuj scroll poziomy */
    z-index: calc(var(--z-index-modal) + 1);
    cursor: default;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

.close-modal {
    position: fixed;
    display: flex;
    top: calc(var(--header-height) + 0.5rem);
    right: 5%;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    z-index: calc(var(--z-index-modal) + 2);
    pointer-events: auto;
    padding: 0.5rem;
    line-height: 1;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    justify-content: center;
    align-items: center;
    will-change: transform;
    transform: translateZ(0);
}

/* .modal-combined-container - stary kod, zastąpiony przez .modal-columns-container */

.modal-image-container {
    width: var(--modal-image-width, 100%);
    margin: 0  auto 0.25rem auto;
    display: flex;
    flex-direction: column; /* Na mobile obraz NAD thumbnails */
    justify-content: center;
    align-items: center;
    overflow: visible;
    background-color: white;
}

/* Synchronizacja szerokości - ustawienie domyślnej zmiennej CSS */
.modal-content {
    --modal-image-width: 100%;
}

/* Na większych ekranach ustaw maksymalną szerokość */
@media (min-width: 768px) {
    .modal-content {
        --modal-image-width: 100%;
    }
}

@media (min-width: 1200px) {
    .modal-content {
        --modal-image-width: 800px;
    }
}

#modal-image {
    max-width: 100%;
    max-height: 60dvh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: pointer;
    opacity: 0;
}

#modal-image.loaded {
    opacity: 1;
}

.modal-details-container {
    width: 100%; /* Używamy pełnej szerokości dla kontenera miniaturek */
    max-width: none; /* Usuwamy ograniczenie szerokości */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    overflow-y: visible; /* Bez własnego scroll - korzysta z głównego */
    margin: 0 auto;
    flex-shrink: 0; /* Nie kurczy się */
}

.modal-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    height: 6rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%; /* Pełna szerokość kontenera */
    max-width: none;
    justify-content: center; /* Zawsze wyrównanie do lewej */
    scrollbar-width: thin;
    min-height: 6rem;
    margin: 0.5rem 0 0.5rem 0;
    padding: 0;
    box-sizing: border-box;
}

.modal-thumbnails:not(.loaded) {
    display: none;
}

.modal-thumbnails::-webkit-scrollbar {
    height: 0.375rem;
}

.modal-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0.25rem;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 0.25rem;
}

.modal-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.thumbnail {
    flex: 0 0 auto;
    width: auto; 
    height: 100%;
    scroll-snap-align: start;
    object-fit: contain; /* Zachowujemy proporcje bez obcinania */
    cursor: pointer; /* Dodany kursor wskaźnik */
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
}

.video-thumbnail {
    /* Style specjalne dla video w thumbnails */
    
    max-height: 100%;
    max-width: auto;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.video-thumbnail:hover .play-overlay {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
    transition: all 0.2s ease;
}

.video-thumbnail.loading {
    opacity: 0.7;
    pointer-events: none;
}

.video-thumbnail.loading .play-overlay {
    background-color: rgba(0, 0, 0, 0.8);
    animation: pulse 1s infinite;
}

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



.modal-description {
    line-height: 1.6;
    width: var(--modal-image-width, 100%);
    max-width: var(--modal-image-width, 880px);
    text-align: left;
    padding: 0;
    align-self: center; /* Centrujemy opis w stosunku do kontenera */
}



/* Style dla wszystkich paragrafów - działają na wszystkich urządzeniach */
.modal-description p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.modal-description p:first-child {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.modal-description p:nth-child(2) {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.modal-description p:nth-child {
    font-size: 1em;
    margin-bottom: 0.75rem;
}

/* Styles for mural links in descriptions */
.modal-description .mural-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-description .mural-link:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Sekcja wideo na dole - podstawowe style - stary kod zachowany dla kompatybilności */
.modal-video-section {
    width: 100%;
    margin-top: 1rem;
    background-color: #000;
    transition: background-color 0.8s ease;
}

.modal-video-section.playing {
    background-color: white;
}

.modal-video {
    width: auto; /* Auto szerokość dla zachowania proporcji */
    height: 100%; /* Dziedziczy od modal-video-container */
    max-width: 100%; /* Nie przekracza szerokości kontenera */
    object-fit: contain; /* Zachowuje proporcje bez obcinania */
    background-color: #000;
    transition: background-color 0.8s ease;
    /* Usunięto aspect-ratio - pozwalamy kontenerowi kontrolować wysokość */
}

.modal-video.playing {
    background-color: white;
}

/* Główny kontener dla 2 kolumn */
.modal-main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    /* Usunięto height: 100% i overflow: hidden żeby umożliwić scroll */
}

.modal-columns-container {
    display: flex;
    flex-direction: column; /* Domyślnie mobile - kolumna */
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0; /* Nie kurczy się */
    /* Usunięto overflow: hidden żeby umożliwić scroll */
}

/* Kontener wideo na pełną szerokość - wysokość dopasowana do dostępnej przestrzeni */
.modal-video-container {
    width: 100%;
    margin-top: 1rem;
    background-color: #000;
    transition: background-color 0.8s ease;
    order: 3; /* Zawsze na końcu */
    height: calc(100dvh - var(--header-height) - var(--footer-height)); /* Wysokość dopasowana do dostępnej przestrzeni minus margines */
    min-height: 250px; /* Minimalna wysokość żeby video było widoczne */
    max-height: calc(100dvh - var(--header-height) - var(--footer-height)); /* Maksymalna wysokość dopasowana do dostępnej przestrzeni */
    position: relative; /* Dla przycisku play */
}

.modal-video-container.playing {
    background-color: white;
}

/* Ukryj kontener wideo gdy nie ma przypisanego wideo */
.modal-video-container:empty {
    display: none;
    margin-top: 0;
    height: 0;
    min-height: 0;
    max-height: 0;
}

.modal-video-container .modal-video {
    width: auto; /* Auto szerokość dla zachowania proporcji */
    height: 100%; /* Wypełnia całą wysokość kontenera */
    max-width: 100%; /* Nie przekracza szerokości kontenera */
    object-fit: contain; /* Zachowuje proporcje bez obcinania */
    background-color: #000;
    transition: background-color 0.8s ease;
    margin: auto; /* Wyśrodkowanie w kontenerze */
    display: block;
}

.modal-video-container .modal-video.playing {
    background-color: white;
}

/* Przycisk play dla modal-video-container */
.modal-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.modal-video-play-button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.modal-video-play-button::before {
    content: '▶';
    margin-left: 4px; /* Korekta wizualna wyśrodkowania trójkąta */
}

/* Ukryj przycisk gdy wideo jest odtwarzane */
.modal-video-container.playing .modal-video-play-button {
    opacity: 0;
    pointer-events: none;
}

/* Responsywne rozmiary dla mobile */
@media (max-width: 768px) {
    .modal-video-play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Strzałki nawigacji w modalu murali */
.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
        width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
    z-index: calc(var(--z-index-modal) + 2);
    pointer-events: none;
}

.modal-nav.hidden {
    display: none;
}

.modal-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s ease, opacity 0.3s ease;
    opacity: 0.7;
    user-select: none;
}

.modal-nav-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-arrow.prev {
    left: 20px;
}

.modal-nav-arrow.next {
    right: 20px;
}

.modal-nav-arrow.down {
    top: auto;
    bottom: 10px; /* Umiejscowienie nad miniaturami */
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem; /* Delikatnie mniejsza */
    text-shadow: 0 0 15px black; /* Mocniejszy cień dla lepszej widoczności */
}

.modal-nav-arrow.down:hover {
    transform: translateX(-50%) scale(1.1);
}

@keyframes modalArrowIntro {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    10% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

/* Animacja odjazdu strzałek na boki */
@keyframes modalArrowSlideOutLeft {
    0% {
        opacity: 0.7;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-100px);
    }
}

@keyframes modalArrowSlideOutRight {
    0% {
        opacity: 0.7;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100px);
    }
}

.modal-nav-arrow.modal-intro {
    animation: modalArrowIntro 2s ease-in-out;
}

.modal-nav-arrow.prev.modal-slide-out {
    animation: modalArrowSlideOutLeft 0.5s ease-in-out forwards;
}

.modal-nav-arrow.next.modal-slide-out {
    animation: modalArrowSlideOutRight 0.5s ease-in-out forwards;
}

@keyframes modalArrowSlideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(50px);
    }
}

.modal-nav-arrow.down.modal-slide-out {
    animation: modalArrowSlideOutDown 0.5s forwards;
}

/* Upewniamy się, że modal nie blokuje innych elementów */
#mural-modal.fade-in {
    pointer-events: none;
}

#mural-modal.fade-in .modal-content,
#mural-modal.fade-in .close-modal {
    pointer-events: auto;
}

/* Hamburger menu */
.hamburger-menu, #menu, #menu.active, #menu.active * {
    z-index: var(--z-index-menu) !important;
}



/* =================================================================
   MODAL PREVIEW
   ================================================================= */
.preview-modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: calc(var(--z-index-header-footer) + 1000);
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    pointer-events: none;
}

.preview-modal.active {
    display: flex;
    pointer-events: auto;
}

/* Zapewnienie, że gesty slide działają na całym obszarze preview modal */
.preview-modal.active .preview-container {
    pointer-events: auto;
    cursor: default;
}

.preview-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: default;
    margin: 0;
    padding: 0;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: default;
    transition: transform var(--transition-speed) ease;
    transform-origin: center center;
    touch-action: manipulation;
    margin: 0;
    padding: 0;
    position: absolute;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto; /* Przywracamy auto żeby nasze handlery działały */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    /* KRYTYCZNE: Dodatkowe blokowanie browser events */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
}



.preview-image.zoomed {
    position: absolute;
    transform-origin: center center;
    will-change: transform;
    cursor: default;
}

.preview-close {
    position: fixed;
    top: var(--spacing-md);
    right: var(--spacing-md);
    color: white;
    font-size: 1.875rem;
    cursor: pointer;
    z-index: calc(var(--z-index-preview-modal) + 2);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.preview-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.preview-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
    z-index: calc(var(--z-index-preview-modal) + 1);
    transition: opacity 0.3s ease;
    opacity: 1;
    pointer-events: none;
}

.preview-nav-hiding {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.preview-nav.hidden {
    display: none;
    pointer-events: none;
}

.preview-nav-arrow {
    color: white;
    font-size: 2.5rem;
    cursor: default;
    opacity: 0.7;
    transition: all 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    pointer-events: none;
}

.preview-nav-hiding .preview-nav-arrow.prev {
    animation: slideOutLeft 0.3s ease forwards;
}

.preview-nav-hiding .preview-nav-arrow.next {
    animation: slideOutRight 0.3s ease forwards;
}

/* =================================================================
   ME PAGE POPUP MODAL
   ================================================================= */
.me-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.me-popup-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.me-popup-container {
    position: relative;
    width: auto;
    height: auto;
    max-width: 80vw;
    max-height: 80vh;
    cursor: default;
}

.me-popup-video-background {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}

.me-popup-video {
    display: block;
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    z-index: var(--z-index-base);
    border-radius: 8px;
}

.me-popup-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: calc(var(--z-index-base) + 1);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    border-radius: 8px;
}

.me-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    font-weight: 300;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-index-base) + 3);
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.me-popup-close:hover {
    color: #ccc;
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.9);
}

.me-popup-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: calc(var(--z-index-base) + 2);
    pointer-events: auto;
    position: relative;
}

.me-popup-button {
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    cursor: default;
    transition: all 0.3s ease;
    user-select: none;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.3));
    
    /* Animacja pulsowania */
    animation: mePulse 2s ease-in-out infinite;
}

.me-popup-button:hover {
    transform: scale(1.05);
    filter: drop-shadow(2px 2px 12px rgba(0, 0, 0, 0.5));
}

.me-popup-active-area {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 15%;
    cursor: pointer;
    z-index: calc(var(--z-index-base) + 3);
    /* Dla debugowania - usunąć po testach */
    /* background-color: rgba(255, 0, 0, 0.3); */
}

/* Animacja pulsowania dla guzika */
@keyframes mePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.0125);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsywne style dla ME popup */
@media (max-width: 768px) {
    .me-popup-video {
        max-width: 80vw;
        max-height: 75vh;
    }
    
    .me-popup-button {
        max-width: 80vw;
        max-height: 75vh;
    }
    
    .me-popup-close {
        top: -10px;
        right: -10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .me-popup-video {
        max-width: 75vw;
        max-height: 70vh;
    }
    
    .me-popup-button {
        max-width: 75vw;
        max-height: 70vh;
    }
    
    .me-popup-close {
        top: -8px;
        right: -8px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
}

/* =================================================================
   FARMAZONE VIDEO MODAL
   ================================================================= */
.farmazone-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.farmazone-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.farmazone-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.farmazone-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: var(--z-index-base);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.farmazone-video-hidden {
    opacity: 0;
    z-index: calc(var(--z-index-base) - 1);
}

.farmazone-video-transitioning {
    z-index: calc(var(--z-index-base) + 1);
}

.farmazone-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: calc(var(--z-index-base) + 1);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px 30px;
}

.farmazone-close {
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    font-weight: 300;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.farmazone-close:hover {
    color: #ccc;
    transform: scale(1.1);
}

.farmazone-text {
    position: absolute;
    bottom: 20dvh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: calc(var(--z-index-base) + 2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.farmazone-text img[alt="In progress"] {
    width: 60vw; /* 60% szerokości ekranu */
    height: auto; /* automatyczna wysokość */
    max-width: 90vw; /* maksymalna szerokość żeby nie wyszło poza ekran */
    object-fit: contain;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.3));
}

.farmazone-text img[alt="In progress"]:hover {
    transform: scale(1.05);
    filter: drop-shadow(2px 2px 12px rgba(0, 0, 0, 0.5));
}

.farmazone-text p {
    color: white;
    font-size: clamp(0.8rem, 3.5vw, 1.8rem);
    margin: 0 10dvw 1rem 10dvw;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    opacity: 0;
    transform: translateY(2rem);
}

.farmazone-logo {
    width: auto;
    height: 20dvh;
    max-height: 60px;
    margin: 0.5rem auto 0 auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0;
    transform: translateY(2rem);
}

.farmazone-button-container {
    position: absolute;
    bottom: 50dvh;
    left: 50%;
    transform: translateX(-50%);
    z-index: calc(var(--z-index-base) + 2);
}

.farmazone-enter-btn {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(2.5rem);
}

/* Animacje wejścia dla elementów Farmazone */
.farmazone-text.animate-in p {
    animation: fadeInUp 0.6s forwards;
}

.farmazone-logo.animate-in {
    animation: fadeInUp 0.6s forwards 0.3s;
}

.farmazone-enter-btn.animate-in {
    animation: fadeInUp 0.6s forwards 1.5s;
}

.farmazone-enter-btn:hover {
    transform: scale(1.05);
}



/* =================================================================
   NOWE ANIMACJE - EFEKT WYPYCHANIA
   ================================================================= */

/* Animacje dla preview - wypychanie obrazów */
@keyframes pushOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes pushOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes pushInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pushInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animacje dla murali - wypychanie całych modali */
@keyframes muralPushOutLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes muralPushOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

@keyframes muralPushInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes muralPushInFromLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* =================================================================
   KLASY ANIMACJI WYPYCHANIA
   ================================================================= */

/* Klasy dla preview - wypychanie obrazów */
.preview-push-out-left {
    animation: pushOutLeft 0.3s ease-in-out forwards;
}

.preview-push-out-right {
    animation: pushOutRight 0.3s ease-in-out forwards;
}

.preview-push-in-from-right {
    animation: pushInFromRight 0.3s ease-in-out forwards;
}

.preview-push-in-from-left {
    animation: pushInFromLeft 0.3s ease-in-out forwards;
}

/* Klasy dla murali - wypychanie modali */
.mural-push-out-left {
    animation: muralPushOutLeft 0.3s ease forwards;
}

.mural-push-out-right {
    animation: muralPushOutRight 0.3s ease forwards;
}

.mural-push-in-from-right {
    animation: muralPushInFromRight 0.3s ease forwards;
}

.mural-push-in-from-left {
    animation: muralPushInFromLeft 0.3s ease forwards;
}

/* =================================================================
   STYLE DLA POZOSTAŁYCH STRON
   ================================================================= */

#about-page {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2dvw 2dvw 2dvw;
    margin: 0;
    box-sizing: border-box;
    flex: 1;
    overflow-x: hidden; /* Zapobiegaj scrollowaniu na boki */
}

#me-page {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2dvw 2dvw 2dvw;
    margin: 0;
    box-sizing: border-box;
    flex: 1;
}

#contact-page {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2dvw 2dvw 2dvw;
    margin: 0;
    box-sizing: border-box;
    flex: 1;
}

/* =================================================================
   DODATKOWE ANIMACJE I KLASY
   ================================================================= */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-3rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Farmazone fade out animacje */
.farmazone-text.fade-out p {
    animation: fadeOut 0.3s forwards;
}

.farmazone-logo.fade-out {
    animation: fadeOut 0.3s forwards;
}

.farmazone-enter-btn.fade-out {
    animation: fadeOut 0.3s forwards;
}

/* =================================================================
   MEDIA QUERIES - RESPONSYWNY DESIGN (UPROSZCZONA STRUKTURA)
   ================================================================= */

/* =================================================================
   1. URZĄDZENIE MOBILNE PIONOWO (max 500px)
   ================================================================= */

@media (max-width: 500px) and (orientation: portrait) {
    :root {
        /* Responsywne wysokości dla mobilnych pionowo */
        --header-height: clamp(3rem, 5dvw + 2rem, 5rem);
        --footer-height: clamp(2.5rem, 4dvw + 1.5rem, 4rem);
    }
    
    /* Header & Footer */
    header {
        padding: var(--spacing-xs) 3%;
    }
    
    header h1 {
        font-size: clamp(0.9rem, 3dvw, 1.2rem);
    }
    
    .header-logo {
        height: clamp(2rem, 4dvw, 2.8rem);
    }
    
    .hamburger-menu {
        width: clamp(1rem, 3dvw, 1.4rem);
        height: clamp(1rem, 3dvw, 1.4rem);
    }
    
    footer {
        padding: var(--spacing-xs) 3%;
    }
    
    .footer-contact a img,
    .footer-social a img {
        width: clamp(1.2rem, 3dvw, 1.8rem);
        height: clamp(1.2rem, 3dvw, 1.8rem);
    }
    
    .footer-social {
        gap: 0.3rem;
    }
    
    .footer-copyright p {
        font-size: clamp(0.35rem, 1.5dvw, 0.5rem);
    }
    
    /* Gallery */
    .gallery-container {
        grid-template-columns: repeat(3, var(--tile-size));
        column-gap: 1.5dvw;
        row-gap: 1.5dvw;
        --tile-size: min(28dvw, 18dvh);
        max-height: calc(4 * var(--tile-size) + 4.5dvw + 4dvw);
    }
    
        /* Pages padding */
    #murals-page, #about-page, #me-page, #contact-page {
        padding: 0 2dvw 2dvw 2dvw;
    }
    
    /* Me container - dodatkowy padding dolny w mobile portrait */
    .me-container {
        overflow-y: auto;
        max-height: calc(100dvh - var(--header-height) - var(--footer-height));
    }
    
    /* Credits section - zabezpieczenie przed chowaniem pod stopkę */
    #credits-section {
        margin-bottom: calc(var(--footer-height) + 1rem) !important;
    }
    
    /* Menu mobile portrait - padding równy headerowi */
    #menu {
        padding-left: 3% !important; /* Równy paddingowi headera */
    }
    
    /* Panel językowy - takie same style jak na desktop */
    .language-panel {
        margin-top: 0.5rem !important;
        padding: 0.5rem 0 !important;
    }
    
    .language-selector-menu {
        gap: 0.1rem !important;
    }
    
    .lang-option {
        font-size: 0.75rem !important;
        border-radius: 2px !important;
        flex: none !important;
        width: auto !important;
    }
    
    .lang-separator {
        font-size: 0.75rem !important;
    }
    
       
    
    /* Contact form - mobile portrait */
    .contact-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 1rem;
        padding: 1rem;
        max-height: auto;
    }
    
    .contact-form-section,
    .contact-message-section {
        min-height: auto;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-title-gif {
        width: 100%;
        height: auto;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
    }
    
    .submit-btn {
        align-self: stretch;
        text-align: center;
    }
    
    /* Responsywne style dla sekcji kontaktowej */
    .contact-info-section {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    
    .contact-info-item {
        justify-content: center;
    }
    
    /* Lepsze pozycjonowanie strzałek about-steps w mobile portrait */
    .about-steps-side-arrows.left {
        left: 5px; /* Bliżej środka zamiast -20px */
    }

    .about-steps-side-arrows.right {
        right: 5px; /* Bliżej środka zamiast -20px */
    }
    
    /* Modal adjustments */
    .modal {
        top: var(--header-height);
        bottom: var(--footer-height);
    }
    
    
    /* Modal content - mobile portrait: szerokość = headera - paddingi - hamburger - logo */
    .modal-content {
        width: calc(100vw - 2 * 3% - clamp(1rem, 3dvw, 1.4rem) - clamp(2rem, 4dvw, 2.8rem));
    }

    .modal-image-container {
        width: var(--modal-image-width, 100%);
        margin: 0  auto 0.25rem auto;
        max-height: 50dvh;
    }
    
    #modal-image {
        max-height: 45dvh;
    }
    
    /* Thumbnails w lewej kolumnie - mobile portrait - znacznie zmniejszone */
    .modal-image-container .modal-thumbnails {
        height: 4rem !important; /* Znacznie zmniejszone dla lepszej widoczności */
        min-height: 4rem !important;
        gap: 0.5rem; /* Zwiększone z 0.4rem do 0.5rem jak na desktop */
        width: 100%; /* Pełna szerokość lewej kolumny */
        padding: 0;
        justify-content: flex-start; /* Wyrównanie do lewej */
        overflow-x: auto; /* Scroll poziomy */
    }
    
    /* Thumbnails w lewej kolumnie - mobile portrait - pełna wysokość jak desktop */
    .modal-image-container .modal-thumbnails .thumbnail {
        flex: 0 0 auto; /* Ujednolicone z desktop - zapobiega różnym odstępom */
        height: 100%;
        width: auto;
        box-sizing: border-box;
    }

    /* Specjalna szerokość dla muralu 1b na mobile portrait */
    .modal-image-container .modal-thumbnails .thumbnail[src*="1b.webp"] {
        max-width: 125px !important;
    }
    
    .modal-nav {
        padding: 0 var(--spacing-xs);
    }
    
    .modal-nav-arrow {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.875rem;
    }
    
    .close-modal {
        top: calc(var(--header-height) + 0.5rem);
        right: 3%;
        font-size: 1.25rem;
        width: 1.75rem;
        height: 1.75rem;
    }
    
    /* Farmazone modal */
    .farmazone-content {
        padding: 15px 20px;
    }
    
    .farmazone-close {
        font-size: 30px;
    }
    
    .farmazone-text {
        bottom: 15dvh;
    }
    
    .farmazone-text img[alt="In progress"] {
        width: 75vw; /* na telefonach w pionie nieco większy */
        max-width: 95vw;
    }
    
    .farmazone-text img[alt="In progress"]:hover {
        transform: scale(1.03); /* Mniejszy zoom na mobile */
    }
    
    .farmazone-text p {
        font-size: clamp(0.7rem, 3vw, 1.2rem);
        margin: 0 10dvw 1rem 10dvw;
    }
    
    .farmazone-logo {
        height: 15dvh;
        max-height: 50px;
    }
    
    .farmazone-button-container {
        bottom: 35dvh;
    }
    
    .farmazone-enter-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    /* Modal video container - mobile portrait - na całą szerokość, wysokość automatyczna */
    .modal-video-container {
        width: 100%;
        margin-top: 1rem;
        height: auto; /* Automatyczna wysokość dopasowana do wideo */
        min-height: 180px;
        position: relative; /* Dla przycisku play */
        background-color: #000;
        transition: background-color 0.8s ease;
    }
    
    .modal-video-container.playing {
        background-color: white;
    }
    
    .modal-video-container .modal-video {
        width: 100%; /* Pełna szerokość kontenera */
        height: auto; /* Automatyczna wysokość zachowująca proporcje */
        max-width: 100%;
        object-fit: cover; /* Wypełnij bez czarnych pasków */
        background-color: #000;
        transition: background-color 0.8s ease;
        display: block;
    }
    
    .modal-video-container .modal-video.playing {
        background-color: white;
    }
}

/* =================================================================
   2. URZĄDZENIE MOBILNE POZIOMO (max 500px)
   ================================================================= */

@media (max-width: 500px) and (orientation: landscape) {
    :root {
        /* Mniejsze wysokości dla landscape */
        --header-height: clamp(2rem, 4dvh + 1rem, 3.5rem);
        --footer-height: clamp(1.5rem, 3dvh + 0.5rem, 2.5rem);
    }
    
    /* Header & Footer adjustments */
    header h1 {
        font-size: clamp(0.8rem, 2.5dvh, 1rem);
    }
    
    .header-logo {
        height: clamp(1.5rem, 3dvh, 2rem);
    }
    
    .hamburger-menu {
        width: clamp(0.8rem, 2.5dvh, 1.2rem);
        height: clamp(0.8rem, 2.5dvh, 1.2rem);
    }
    
    .footer-contact a img,
    .footer-social a img {
        width: clamp(1rem, 2.5dvh, 1.5rem);
        height: clamp(1rem, 2.5dvh, 1.5rem);
    }
    
    .footer-copyright p {
        font-size: clamp(0.3rem, 1.2dvh, 0.4rem);
    }
    
    /* Gallery - landscape mobile */
    .gallery-container {
        grid-template-columns: repeat(6, var(--tile-size));
        column-gap: 1dvw;
        row-gap: 1dvw;
        --tile-size: min(14dvw, 25dvh);
        max-height: calc(2 * var(--tile-size) + 1dvw + 4dvw);
    }
    
    /* Intro content adjustment */
    .intro-content {
        padding-bottom: 10dvh;
    }
    
    /* Menu mobile landscape - kompaktowy rozmiar i padding */
    #menu {
        width: 35dvw; /* Mniejsze menu żeby się mieściło */
        left: -35dvw;
        height: calc(100dvh - var(--header-height) - var(--footer-height));
        overflow-y: auto;
        padding: var(--spacing-xs);
        padding-top: 2dvh; /* Mniejszy padding górny */
        padding-left: 3% !important; /* Równy paddingowi headera */
    }
    
    #menu ul {
        padding-top: 0.5rem; /* Mniejszy padding górny */
    }
    
    #menu li {
        margin: 0.4rem 0; /* Mniejsze marginesy */
    }
    
    #menu a {
        font-size: 0.9rem; /* Mniejsza czcionka */
    }
    
    .farmazone-button {
        margin-top: 1rem; /* Mniejszy margines */
    }
    
    .farmazone-button img {
        max-width: 60px; /* Mniejszy przycisk */
    }
    
    .language-panel {
        margin-top: 0.5rem; /* Mniejszy margines */
        padding: 0.5rem 0;
    }
    
    .lang-option {
        font-size: 0.7rem; /* Mniejsza czcionka */
        padding: 0.1rem 0.2rem;
        width: auto;
    }
    
    /* Contact form - mobile landscape - 1 kolumna */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        max-height: auto;
        overflow-y: auto;
    }
    
    .contact-form-section,
    .contact-message-section {
        min-height: auto;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .form-title-gif {
        width: 100%;
        height: auto;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .message-group textarea {
        min-height: 100px; /* Mniejsze textarea */
    }
    
    .submit-btn {
        align-self: stretch;
        text-align: center;
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Sekcja kontaktowa - mobile landscape */
    .contact-info-section {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    /* Zmniejsz czcionkę contact-text w mobile landscape dla jednej linii */
    .contact-text {
        font-size: 0.8rem;
        max-width: 100%; /* Zapewnij, że nie przekroczy kontenera */
    }
 
    
    /* Me page layout - 2 kolumny na mobile landscape */
    .me-container {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        align-items: flex-start;
        justify-content: space-between;
        max-width: none;
        width: 90%;
        margin: 0 auto;
        padding: 0 0.75rem 1rem 0.75rem;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: calc(100dvh - var(--header-height) - var(--footer-height));
        box-sizing: border-box;
    }
    
    .me-container .artist-image {
        flex: 0 0 48%;
        width: 48%;
        margin-bottom: 0;
        min-width: 0;
    }
    
    .me-container .artist-bio {
        flex: 0 0 48%;
        width: 48%;
        display: flex;
        flex-direction: column;
        min-width: 0;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    /* Mniejsze marginesy paragrafów w mobile landscape */
    #me-page p {
        margin-bottom: 0.4rem;
    }
    
    #about-page p {
        margin-bottom: 0.4rem;
    }
    
    /* About steps - układ poziomy 4x1 w mobile landscape */
    .about-steps {
        position: static;
        overflow: visible;
        margin-bottom: 2rem;
    }
    
    .about-steps-container {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        width: 100%;
        transform: none;
        transition: none;
    }
    
    .about-step {
        flex: 1;
        border-radius: 10px;
    }
    
    .step-number {
        font-size: 1rem;
    }
    
    .step-icon {
        width: 100px;
        height: 100px;
    }
    
    .step-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .step-description {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    /* Ukryj slider navigation i side arrows w układzie poziomym */
    .steps-navigation,
    .step-dots,
    .about-steps-side-arrows {
        display: none;
    }
    
  
    /* Modal adjustments - jednokolumnowy layout na mobile landscape */
    .modal-content {
        /* Szerokość = headera - paddingi - hamburger - logo dla mobile landscape */
        width: calc(100vw - 2 * 5% - clamp(0.8rem, 2.5dvh, 1.2rem) - clamp(1.5rem, 3dvh, 2rem));
        height: calc(100dvh - var(--header-height) - var(--footer-height));
        max-height: calc(100dvh - var(--header-height) - var(--footer-height));
        overflow-y: auto; /* Scroll pionowy dla całości */
        overflow-x: hidden; 
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .modal-columns-container {
        display: flex;
        flex-direction: column; /* Jednokolumnowy układ */
        gap: 0.5rem;
        width: 100%;
        box-sizing: border-box;
        flex: none; /* Nie rozciągaj */
    }

    /* Kontener obrazu + thumbnails - 80% wysokości dostępnej przestrzeni */
    .modal-image-container {
        width: auto; /* Automatyczna szerokość na podstawie obrazu */
        height: 80dvh; /* 80% wysokości viewport minus header/footer */
        max-height: 80dvh;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
        min-width: 0;
        overflow: visible;
        position: relative;
    }

    /* Kontener szczegółów - szerokość jak kontener obrazu */
    .modal-details-container {
        width: 100%; /* Szerokość jak modal-image-container */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        box-sizing: border-box;
        min-width: 0;
        overflow: visible; /* Bez scroll - część ogólnego scroll kontenera */
        background: rgba(255, 255, 255, 0.02);
        border-radius: 6px;
        font-size: clamp(0.6rem, 1.8dvh, 0.8rem);
    }

    /* Obraz główny - zajmuje przestrzeń nad thumbnails */
    #modal-image {
        width: auto; /* Automatyczna szerokość */
        height: auto;
        max-height: calc(80dvh - 4rem); /* 80% minus przestrzeń na thumbnails */
        max-width: 95vw; /* Maksymalna szerokość ekranu */
        object-fit: contain;
        box-sizing: border-box;
        margin-bottom: 0.5rem;
        min-height: 0;
    }
    
    /* Thumbnails - 20% wysokości sekcji obrazu, szerokość jak obraz */
    .modal-image-container .modal-thumbnails {
        height: 3.5rem; /* Stała wysokość dla thumbnails */
        min-height: 3.5rem;
        max-height: 3.5rem;
        gap: 0.5rem;
        width: 100%; /* Szerokość jak kontener obrazu */
        padding: 0;
        justify-content: flex-start;
        overflow-x: auto; /* Scroll poziomy gdy potrzebny */
        margin-top: auto; /* Na dole kontenera obrazu */
        flex-shrink: 0;
    }
    
    /* Thumbnails - pełna wysokość sekcji */
    .modal-image-container .modal-thumbnails .thumbnail {
        flex: 0 0 auto;
        height: 100%;
        width: auto;
        box-sizing: border-box;
    }

    /* Specjalna szerokość dla muralu 1b na mobile landscape */
    .modal-image-container .modal-thumbnails .thumbnail[src*="1b.webp"] {
        max-width: 125px !important;
    }

    /* Opis - szerokość jak kontener obrazu */
    .modal-description {
        width: 100%;
        max-width: 100%;
        text-align: left;
        padding: 0 0.5rem;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
        font-size: clamp(0.6rem, 1.8dvh, 0.8rem);
        line-height: 1.3;
    }
    
    /* Zmniejszenie czcionek we wszystkich paragrafach opisu */
    .modal-description p {
        font-size: clamp(0.6rem, 1.8dvh, 0.8rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }

            /* Sekcja wideo - szerokość jak kontener, 100% pozostałej wysokości */
        .modal-video-container {
            width: 100%; /* Szerokość jak kontener obrazu */
            margin-top: 1rem;
            height: calc(100dvh - var(--header-height) - var(--footer-height)); /* Pełna dostępna wysokość */
            min-height: 200px;
            position: relative;
            background-color: #000;
            transition: background-color 0.8s ease;
        }
        
        .modal-video-container.playing {
            background-color: white;
        }
        
        .modal-video-container .modal-video {
            width: 100%;
            height: 100%;
            max-width: 100%;
            object-fit: contain;
            background-color: #000;
            transition: background-color 0.8s ease;
            margin: auto;
            display: block;
        }
        
        .modal-video-container .modal-video.playing {
            background-color: white;
        }
    
    /* Farmazone landscape */
    .farmazone-text {
        bottom: 8dvh;
    }
    
    .farmazone-text img[alt="In progress"] {
        width: 50vw; /* na telefonach w poziomie mniejszy żeby się mieścił */
        max-width: 70vw;
    }
    
    .farmazone-text img[alt="In progress"]:hover {
        transform: scale(1.03); /* Mniejszy zoom na mobile landscape */
    }
    
    .farmazone-text p {
        font-size: clamp(0.4rem, 2vw, 0.9rem);
        margin: 0 8dvw 0.6rem 8dvw;
    }
    
    .farmazone-logo {
        height: 10dvh;
        max-height: 35px;
        margin: 0.2rem auto 0 auto;
    }
    
    .farmazone-button-container {
        bottom: 25dvh;
    }
    
    .farmazone-enter-btn {
        padding: 4px 10px;
        font-size: 0.7rem;
        border-width: 1px;
    }
}

/* =================================================================
   3. TABLET PIONOWO (500px - 1024px)
   ================================================================= */

@media (min-width: 501px) and (max-width: 1024px) and (orientation: portrait) {
    :root {
        /* Wysokości dla tabletu pionowo */
        --header-height: clamp(3.5rem, 4dvw + 2.5rem, 6rem);
        --footer-height: clamp(3rem, 3.5dvw + 2rem, 5rem);
    }
    
    /* Header & Footer */
    header {
        padding: var(--spacing-xs) 4%;
    }
    
    header h1 {
        font-size: clamp(1rem, 2.5dvw, 1.5rem);
    }
    
    .header-logo {
        height: clamp(2.2rem, 3.5dvw, 3rem);
    }
    
    .hamburger-menu {
        width: clamp(1.1rem, 2.5dvw, 1.6rem);
        height: clamp(1.1rem, 2.5dvw, 1.6rem);
    }
    
    footer {
        padding: var(--spacing-xs) 4%;
    }
    
    .footer-contact a img,
    .footer-social a img {
        width: clamp(1.4rem, 2.5dvw, 2rem);
        height: clamp(1.4rem, 2.5dvw, 2rem);
    }
    
    .footer-social {
        gap: 0.4rem;
    }
    
    .footer-copyright p {
        font-size: clamp(0.4rem, 1dvw, 0.6rem);
    }
    
    /* Gallery - tablet portrait */
    .gallery-container {
        grid-template-columns: repeat(3, var(--tile-size));
        --tile-size: max(120px, min(25dvw, 20dvh));
        max-height: calc(4 * var(--tile-size) + 4.5dvw + 4dvw);
    }
    
    /* Pages padding */
    #murals-page, #about-page, #me-page, #contact-page {
        padding: 0 2.5dvw 2.5dvw 2.5dvw;
    }
    
    /* Menu tablet - padding równy headerowi */
    #menu {
        padding-left: 4% !important; /* Równy paddingowi headera */
    }
    
    }
    
    .form-title-gif {
        width: 100%;
        height: auto;
    }
    
    /* Responsywne style dla sekcji kontaktowej na tablet */
    .contact-info-section {
        gap: 2rem;
        width: 100%;
    }
    
    /* Lepsze pozycjonowanie strzałek about-steps w tablet portrait */
    .about-steps-side-arrows.left {
        left: 10px; /* Bliżej środka na tablet */
    }

    .about-steps-side-arrows.right {
        right: 10px; /* Bliżej środka na tablet */
    }
    
    /* Modal tablet adjustments */
    /* Modal content - tablet portrait: szerokość = headera - paddingi - hamburger - logo */
    .modal-content {
        width: calc(100vw - 2 * 4% - clamp(1.1rem, 2.5dvw, 1.6rem) - clamp(2.2rem, 3.5dvw, 3rem));
    }

    .modal-image-container {
        width: var(--modal-image-width, 100%);
        max-height: 65dvh;
        margin: 0  auto 0.25rem auto;
    }
    
    #modal-image {
        max-height: 60dvh;
    }
    
    /* Thumbnails w lewej kolumnie - tablet portrait */
    .modal-image-container .modal-thumbnails {
        height: 6rem; /* Zwiększone z 6.5rem do 8rem jak na desktop */
        min-height: 6rem;
        gap: 0.5rem; /* Dodane gap jak na desktop */
        width: 100%; /* Pełna szerokość lewej kolumny */
        padding: 0;
        justify-content: flex-start; /* Wyrównanie do lewej */
        overflow-x: auto; /* Scroll poziomy */
    }
    
    /* Thumbnails w lewej kolumnie - tablet portrait */
    .modal-image-container .modal-thumbnails .thumbnail {
        flex: 0 0 auto; /* Ujednolicone z desktop - zapobiega różnym odstępom */
        height: 100%;
        width: auto;
        box-sizing: border-box;
    }

    /* Specjalna szerokość dla muralu 1b na tablet portrait */
    .modal-image-container .modal-thumbnails .thumbnail[src*="1b.webp"] {
        max-width: 125px !important;
    }
    
    .close-modal {
        right: 4%;
        font-size: 1.4rem;
        width: 2rem;
        height: 2rem;
    }
    
    /* Farmazone tablet */
    .farmazone-content {
        padding: 20px 25px;
    }
    
    .farmazone-close {
        font-size: 35px;
    }
    
    /* Sekcja wideo na dole - tablet portrait - na całą szerokość, wysokość automatyczna */
    .modal-video-container {
        width: 100%;
        margin-top: 1rem;
        height: auto; /* Automatyczna wysokość dopasowana do wideo */
        min-height: 200px;
        position: relative; /* Dla przycisku play */
        background-color: #000;
        transition: background-color 0.8s ease;
    }
    
    .modal-video-container.playing {
        background-color: white;
    }
    
    .modal-video-container .modal-video {
        width: 100%; /* Pełna szerokość kontenera */
        height: auto; /* Automatyczna wysokość zachowująca proporcje */
        max-width: 100%;
        object-fit: cover; /* Wypełnij bez czarnych pasków */
        background-color: #000;
        transition: background-color 0.8s ease;
        display: block;
    }
    
    .modal-video-container .modal-video.playing {
        background-color: white;
    }


/* =================================================================
   DESKTOP SPECJALNE STYLE (1024px+) - niezależnie od orientacji
   ================================================================= */

@media (min-width: 1024px) {
    /* Panel językowy - bardziej zwarty na desktop */
    .language-panel {
        margin-top: 0.5rem !important;
        padding: 0.5rem 0 !important;
    }
    
    .language-selector-menu {
        gap: 0.1rem !important;
    }
    
    .lang-option {
        font-size: 0.75rem !important;
        border-radius: 2px !important;
        flex: none !important;
        width: auto !important;
    }
    
    .lang-separator {
        font-size: 0.75rem !important;
    }
    
    /* Wyrównanie już ustawione globalnie */
}

/* =================================================================
   4. TABLET POZIOMO & DESKTOP (1024px+)
   ================================================================= */

@media (min-width: 501px) and (orientation: landscape) {
    :root {
        /* Wysokości dla landscape - tablety i desktop */
        --header-height: clamp(3rem, 3dvh + 2rem, 5rem);
        --footer-height: clamp(2.5rem, 2.5dvh + 1.5rem, 4rem);
    }
    
    /* Gallery - landscape (tablety i desktop) */
    .gallery-container {
        grid-template-columns: repeat(6, var(--tile-size));
        column-gap: 1dvw;
        row-gap: 1dvw;
        --tile-size: min(12dvw, 28dvh);
        max-height: calc(2 * var(--tile-size) + 1dvw + 4dvw);

    }

    /* Me page layout - 2 kolumny na tablet landscape (501px-1023px) */
    @media (max-width: 1023px) {
        .me-container {
            display: flex;
            flex-direction: row;
            gap: 1.25rem;
            align-items: flex-start;
            justify-content: space-between;
            width: 88%;
            margin: 0 auto;
            padding: 0 1rem 1rem 1rem;
            overflow-y: auto;
            overflow-x: hidden;
            max-height: calc(100dvh - var(--header-height) - var(--footer-height));
            box-sizing: border-box;
        }
        
        .me-container .artist-image {
            flex: 0 0 48%;
            width: 48%;
            margin-bottom: 0;
            min-width: 0;
        }
        
        .me-container .artist-bio {
            flex: 0 0 48%;
            width: 48%;
            display: flex;
            flex-direction: column;
            min-width: 0;
            overflow-wrap: break-word;
            word-wrap: break-word;
        }
        
        /* Mniejsze marginesy paragrafów w tablet landscape */
        #me-page p {
            margin-bottom: 0.5rem;
        }
        
        #about-page p {
            margin-bottom: 0.5rem;
        }
        
        /* About steps - układ poziomy 4x1 w tablet landscape */
        .about-steps {
            position: static;
            overflow: visible;
            margin-bottom: 3rem;
        }
        
        .about-steps-container {
            display: flex;
            flex-direction: row;
            gap: 1.5rem;
            width: 100%;
            transform: none;
            transition: none;
        }
        
        .about-step {
            flex: 1;
            border-radius: 12px;
        }
        
        .step-number {
            font-size: 1.5rem;
        }
        
        .step-icon {
            width: 120px;
            height: 120px;
        }
        
        .step-title {
            font-size: 1.1rem;
            margin-bottom: 1rem;
        }
        
        .step-description {
            font-size: 0.85rem;
            line-height: 1.4;
        }
        
        /* Ukryj slider navigation i side arrows w układzie poziomym */
        .steps-navigation,
        .step-dots,
        .about-steps-side-arrows {
            display: none;
        }
        .contact-text {
            font-size: 0.8rem;
        }
    }
    
    /* Modal adjustments - 2 kolumny na tablet landscape (501px-1023px) */
    @media (max-width: 1023px) {
        .modal-content {
            /* Szerokość = headera - paddingi - hamburger - logo dla tablet landscape */
            width: calc(100vw - 2 * 5% - 1.125rem - 2.2rem); /* Używamy desktop wartości jako fallback */
            height: calc(100dvh - var(--header-height) - var(--footer-height));
            max-height: calc(100dvh - var(--header-height) - var(--footer-height));
            overflow-y: auto; /* Scroll pionowy dla całości */
            overflow-x: hidden;
            scroll-behavior: smooth;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .modal-columns-container {
            display: flex;
            flex-direction: column; /* Jednokolumnowy układ */
            gap: 0.75rem;
            width: 100%;
            box-sizing: border-box;
            flex: none; /* Nie rozciągaj */
        }

        /* Kontener obrazu + thumbnails - 80% wysokości dostępnej przestrzeni */
        .modal-image-container {
            width: auto; /* Automatyczna szerokość na podstawie obrazu */
            height: 80dvh; /* 80% wysokości viewport minus header/footer */
            max-height: 80dvh;
            margin: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            box-sizing: border-box;
            min-width: 0;
            overflow: visible;
        }

        /* Kontener szczegółów - szerokość jak kontener obrazu */
        .modal-details-container {
            width: 100%; /* Szerokość jak modal-image-container */

            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
            box-sizing: border-box;
            min-width: 0;
            overflow: visible; /* Bez scroll - część ogólnego scroll kontenera */
            background: rgba(255, 255, 255, 0.02);
            border-radius: 8px;
        }

        /* Obraz główny - zajmuje przestrzeń nad thumbnails */
        #modal-image {
            width: auto; /* Automatyczna szerokość */
            height: auto;
            max-height: calc(80dvh - 5rem); /* 80% minus przestrzeń na thumbnails */
            max-width: 95vw; /* Maksymalna szerokość ekranu */
            object-fit: contain;
            box-sizing: border-box;
            margin-bottom: 0.75rem;
        }

        /* Thumbnails - 20% wysokości sekcji obrazu, szerokość jak obraz */
        .modal-image-container .modal-thumbnails {
            height: 4.5rem; /* Stała wysokość dla thumbnails */
            min-height: 4.5rem;
            max-height: 4.5rem;
            gap: 0.75rem;
            width: 100%; /* Szerokość jak kontener obrazu */
            padding: 0;
            justify-content: center;
            overflow-x: auto; /* Scroll poziomy gdy potrzebny */
            margin-top: auto; /* Na dole kontenera obrazu */
        }

        .modal-image-container .modal-thumbnails .thumbnail {
            flex: 0 0 auto;
            height: 100%;
            width: auto;
            box-sizing: border-box;
        }

        /* Specjalna szerokość dla muralu 1b na tablet landscape */
        .modal-image-container .modal-thumbnails .thumbnail[src*="1b.webp"] {
            max-width: 150px !important;
        }

        /* Opis - szerokość jak kontener obrazu */
        .modal-description {
            width: 100%;
            max-width: 100%;
            text-align: left;
            padding: 0 0.75rem;
            box-sizing: border-box;
            overflow-wrap: break-word;
            word-wrap: break-word;
        }

        /* Sekcja wideo - szerokość jak kontener, 100% pozostałej wysokości */
        .modal-video-container {
            width: 100%; /* Szerokość jak kontener obrazu */
            margin-top: 1rem;
            height: calc(100dvh - var(--header-height) - var(--footer-height)); /* Pełna dostępna wysokość */
            min-height: 220px;
            position: relative;
            background-color: #000;
            transition: background-color 0.8s ease;
        }
        
        .modal-video-container.playing {
            background-color: white;
        }
        
        .modal-video-container .modal-video {
            width: 100%;
            height: 100%;
            max-width: 100%;
            object-fit: contain;
            background-color: #000;
            transition: background-color 0.8s ease;
            margin: auto;
            display: block;
        }
        
        .modal-video-container .modal-video.playing {
            background-color: white;
        }
    }
    
    /* Desktop specific adjustments */
    @media (min-width: 1024px) {
        :root {
            --header-height: clamp(4rem, 3dvw + 3rem, 6rem);
            --footer-height: clamp(3.5rem, 2.5dvw + 2.5rem, 5rem);
        }
        
        main {
            max-width: 1600px;
            margin: 0 auto;
        }
        
        /* Gallery desktop size minimum */
        .gallery-container {
            --tile-size: max(100px, min(12dvw, 28dvh, 250px));
            max-width: 98%; /* Zwiększone z 90% na 98% dla desktop */
        }
        
        /* Modal desktop layout - 2 kolumny - wysokość = przestrzeń między header i footer */
        .modal-content {
            /* Szerokość = headera - paddingi - hamburger - logo dla desktop + margines bezpieczeństwa */
            width: calc(100vw - 2 * 5% - 1.125rem - 2.2rem - 1rem);
            height: calc(100dvh - var(--header-height) - var(--footer-height));
            max-height: calc(100dvh - var(--header-height) - var(--footer-height));
            overflow-y: auto; /* Scroll pionowy w głównym kontenerze */
            overflow-x: hidden; /* Blokuj scroll poziomy - naprawiono zbędny scroll */
            scroll-behavior: smooth;
            box-sizing: border-box;
        }
        
        /* Style scrollbar dla modal-content na desktop */
        .modal-content::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        
        .modal-content::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }
        
        .modal-content::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 4px;
        }
        
        .modal-content::-webkit-scrollbar-thumb:hover {
            background: #555;
        }
        
        .modal-content.mural-push-in-from-right,
        .modal-content.mural-push-in-from-left {
            position: absolute;
            top: 0;
            left: 5%;
            /* Szerokość = headera - paddingi - hamburger - logo dla desktop + margines bezpieczeństwa */
            width: calc(100vw - 2 * 5% - 1.125rem - 2.2rem - 1rem);
            height: 100%;
            z-index: 10;
            background-color: white;
            overflow-x: hidden;
        }
        
        .modal-content.mural-push-in-from-right {
            animation: muralPushInFromRight 0.3s ease forwards;
        }
        
        .modal-content.mural-push-in-from-left {
            animation: muralPushInFromLeft 0.3s ease forwards;
        }
        
        /* Główny kontener - 2 kolumny na desktop z ujednoliconym gap */
        .modal-columns-container {
            display: flex;
            flex-direction: row;
            gap: 0.5rem; /* Ujednolicony gap dla lepszego rozdzielenia */
            max-width: none;
            width: 100%;
            align-items: flex-start; /* Wyrównanie do góry zamiast center */
            box-sizing: border-box;
            min-width: 0; /* Zapobiega overflow */
        }
        
        /* Lewa kolumna - obraz + thumbnails z ujednoliconym układem */
        .modal-image-container {
            flex: 0 0 65%; /* Ujednolicona szerokość 65% */
            width: 65%;
            min-width: 0; /* Zapobiega overflow */
            margin: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between; /* Rozdziel obraz i thumbnails */
            box-sizing: border-box;
            height: calc(100dvh - var(--header-height) - var(--footer-height));
            max-height: calc(100dvh - var(--header-height) - var(--footer-height));
            overflow: hidden; /* Bez scrolla w lewej kolumnie */
        }

        /* Prawa kolumna - opis z ujednoliconym układem */
        .modal-details-container {
            flex: 0 0 35%; /* Ujednolicona szerokość 35% */
            width: 35%;
            min-width: 0; /* Zapobiega overflow */
            padding: 0;
            display: flex;
            flex-direction: column;
            justify-content: flex-start; /* Wyrównanie do góry zamiast center */
            align-items: flex-start; /* Wyrównanie do lewej zamiast center */
            box-sizing: border-box;
            /* Usunięto height i overflow - korzysta z głównego scroll modal-content */
        }
        
        /* Obraz główny - ujednolicone skalowanie */
        #modal-image {
            width: 100%;
            height: auto;
            max-width: 100%; /* Zapobiega overflow */
            max-height: calc(100% - 8rem); /* Zapewnia miejsce na thumbnails (6rem + margines) */
            object-fit: contain;
            box-sizing: border-box;
            margin-bottom: 0.5rem;
            flex: 1 1 auto; /* Elastycznie wypełnia dostępną przestrzeń */
        }
        
        /* Opis w prawej kolumnie - ujednolicony */
        .modal-description {
            width: 100%;
            max-width: 100%;
            text-align: left;
            padding: 0 1rem;
            box-sizing: border-box;
            overflow-wrap: break-word;
            word-wrap: break-word;
            min-width: 0; /* Zapobiega overflow */
        }
        
        /* Thumbnails w lewej kolumnie na desktop - szerokość dopasowana do obrazu */
        .modal-image-container .modal-thumbnails {
            width: var(--modal-image-width, auto); /* Szerokość dopasowana do obrazu przez JavaScript */
            max-width: 100%;
            justify-content: flex-start;
            height: 6rem; /* Domyślna wartość, nadpisywana przez JavaScript */
            min-height: 6rem;
            max-height: 8rem; /* Zmniejszone maksimum żeby lepiej pasowało */
            box-sizing: border-box;
            overflow-x: auto;
            gap: 0.5rem;
            margin-top: 0.5rem; /* Stały odstęp zamiast auto */
            flex-shrink: 0; /* Nie kurczy się - zawsze widoczne */
            align-self: center; /* Wyśrodkowanie względem rodzica */
        }
        
        /* Thumbnails pojedyncze na desktop - dopasowane wysokością */
        .modal-image-container .modal-thumbnails .thumbnail {
            flex: 0 0 auto; /* Ujednolicone z mobile - zapobiega różnym odstępom */
            height: 100%;
            width: auto;
            max-width: none;
            box-sizing: border-box;
        }
        
        /* Specjalna szerokość dla muralu 1b na desktop */
        .modal-image-container .modal-thumbnails .thumbnail[src*="1b.webp"] {
            max-width: 200px !important;
        }
        
        /* Sekcja wideo na dole - desktop w pełnej szerokości modalu - dostosowane do modal */
        .modal-video-container {
            width: 100%;
            margin-top: 1rem;
            height: calc(100dvh - var(--header-height) - var(--footer-height)); /* Wysokość dopasowana do dostępnej przestrzeni minus margines */
            min-height: 300px; /* Minimalna wysokość na desktop */
            max-height: calc(100dvh - var(--header-height) - var(--footer-height)); /* Maksymalna wysokość dopasowana do dostępnej przestrzeni */
            clear: both; /* Wymuś umieszczenie poniżej pozostałej zawartości */
            display: block; /* Upewnij się, że jest block elementem */
            position: relative; /* Zapewni że nie jest pozycjonowany jako część flexboxa */
            order: 999; /* Umieść na końcu w układzie flex */
            flex-shrink: 0; /* Zapobiega kurczeniu */
            align-self: stretch; /* Rozciąga na całą szerokość */
            background-color: #000;
            transition: background-color 0.8s ease;
        }
        
        .modal-video-container.playing {
            background-color: white;
        }
        
        .modal-video-container .modal-video {
            width: auto; /* Auto szerokość dla zachowania proporcji */
            height: 100%; /* Dziedziczy od modal-video-container */
            max-width: 100%; /* Nie przekracza szerokości kontenera */
            object-fit: contain; /* Zachowuje proporcje bez obcinania */
            background-color: #000;
            transition: background-color 0.8s ease;
            margin: auto; /* Wyśrodkowanie w kontenerze */
            display: block;
        }
        
        .modal-video-container .modal-video.playing {
            background-color: white;
        }
        
        /* Me page layout - 2 kolumny 50-50 na desktop */
        .me-container {
            display: flex;
            flex-direction: row;
            gap: 1.5rem;
            align-items: flex-start;
            justify-content: space-between;
            margin: 0 auto;
            padding: 0 1rem 1rem 1rem;
            overflow-y: auto;
            overflow-x: hidden;
            max-height: calc(100dvh - var(--header-height) - var(--footer-height));
            box-sizing: border-box;
        }
        
        .me-container .artist-image {
            flex: 0 0 48%;
            width: 48%;
            margin-bottom: 0;
            min-width: 0;
        }
        
        .me-container .artist-bio {
            flex: 0 0 48%;
            width: 48%;
            display: flex;
            flex-direction: column;
            min-width: 0;
            overflow-wrap: break-word;
            word-wrap: break-word;
        }
        
        /* Mniejsze marginesy paragrafów w desktop landscape */
        #me-page p {
            margin-bottom: 0.6rem;
        }
        
        #about-page p {
            margin-bottom: 0.6rem;
        }
        
        /* About steps - układ poziomy 4x1 w desktop */
        .about-steps {
            position: static;
            overflow: visible;
            margin-bottom: 3rem;
            max-width: 1200px;
            margin: 0 auto 3rem auto;
        }
        
        .about-steps-container {
            display: flex;
            flex-direction: row;
            gap: 2rem;
            width: 100%;
            transform: none;
            transition: none;
        }
        
        .about-step {
            flex: 1;
            border-radius: 15px;
        }
        
        .step-number {
            font-size: 2rem;
        }
        
        .step-icon {
            width: 150px;
            height: 150px;
        }
        
        .step-title {
            font-size: 1.3rem;
            margin-bottom: 1rem;
        }
        
        .step-description {
            font-size: 0.95rem;
            line-height: 1.5;
        }
        
        /* Ukryj slider navigation i side arrows w układzie poziomym */
        .steps-navigation,
        .step-dots,
        .about-steps-side-arrows {
            display: none;
        }

 
        
        /* Contact form desktop */
        .contact-container {
            grid-template-columns: 1fr;
            gap: 2rem;
            max-width: 800px;
        }
        
        /* Menu desktop - szerokość dostosowana do przycisku Farmazone */
        #menu {
            left: -15dvw;
            width: 15dvw;
            padding-left: 5% !important; /* Równy paddingowi headera */
        }
        
        /* Panel językowy już ustawiony globalnie */
    }
    
    
}

/* =================================================================
   UNIWERSALNE STYLE DLA WSZYSTKICH URZĄDZEŃ
   ================================================================= */

/* Fallback dla urządzeń nie objętych powyższymi regułami */
@media (max-width: 1023px) {
    .modal-content.mural-push-in-from-right,
    .modal-content.mural-push-in-from-left {
        position: absolute;
        top: 0;
        left: 5%;
        /* Szerokość = headera - paddingi - hamburger - logo dla tablet landscape */
        width: calc(100vw - 2 * 5% - 1.125rem - 2.2rem);
        height: 100%;
        z-index: 10;
        background-color: white;
    }
}

/* Animacje dla strzałek preview */
@keyframes previewArrowIntro {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

.preview-nav-arrow.preview-intro {
    animation: previewArrowIntro 0.3s ease forwards;
}

.preview-nav-arrow.prev.preview-intro {
    animation-delay: 0.1s;
}

.preview-nav-arrow.next.preview-intro {
    animation-delay: 0.2s;
}

/* Usunięte media query dla 1600px+ - wszystkie rozdzielczości wyższe niż 1024px 
   używają teraz tych samych proporcji co 1366x768 */

/* =================================================================
   DZIĘKUJĘ VIDEO MODAL  
   ================================================================= */
.thanks-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.thanks-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.thanks-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.thanks-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: var(--z-index-base);
}



/* =================================================================
   GŁÓWNA ZAWARTOŚĆ (MAIN)
   ================================================================= */


