/* ==========================================================================
   1. ZMIENNE KOLORÓW
   ========================================================================== */
:root {
    --dark-color: #0d0e0e; 
    --light-color: #f9fbfc; 
}

@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #f9fbfc;
        --light-color: #0d0e0e;
    }
}

/* ==========================================================================
   2. RESET STYLÓW & BAZA STRONY
   ========================================================================== */
*, 
*::before, 
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Archivo', sans-serif;
    font-weight: 500;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

/* ---------------- ELEGANCKIE ZAZNACZANIE TEKSTU ---------------- */
::selection {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

::-moz-selection {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

@media (prefers-color-scheme: light) {
    ::selection {
        background-color: rgba(0, 0, 0, 0.1);
        color: #000000;
    }
    ::-moz-selection {
        background-color: rgba(0, 0, 0, 0.1);
        color: #000000;
    }
}

/* ==========================================================================
   3. TYPOGRAFIA GLOBALNA
   ========================================================================== */
h1 {
    font-size: 2.566rem; 
    line-height: 3.2475rem; 
    letter-spacing: 0.05131rem;
}

h2 {
    font-size: 1.424rem; 
    line-height: 1.602rem; 
    letter-spacing: 0.05131rem;
}

header, 
footer, 
.contact { 
    font-size: 1.424rem; 
}

/* ==========================================================================
   4. HARDWARE ACCELERATION & MEDIA
   ========================================================================== */
img, 
video {
    display: block;
    width: 100%;
    height: 100%; 
    max-width: 100%;
    object-fit: cover;
}

/* ---------------- MODERN VIDEO FIX ---------------- */
.video-wrapper {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
    flex-shrink: 0;
    transform: translateZ(0);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   5. HEADER & NAWIGACJA
   ========================================================================== */
header {
    max-width: 1920px; 
    width: 100%;
    padding: 30px; 
    margin: 0 auto;
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    line-height: 1.602rem;
}

header a {
    position: relative; 
    text-decoration: none;
    color: var(--dark-color);
    transition: color 600ms, z-index 600ms;
}

.navbar { 
    margin: 0; 
    padding: 0; 
}

.navbar ul { 
    display: flex; 
    gap: 2.5rem; 
    list-style: none; 
}

.navbar li a { 
    position: relative; 
    text-decoration: none; 
    color: var(--dark-color); 
}

.navbar li a::before {
    content: ""; 
    position: absolute; 
    bottom: -2px;
    height: 0.1rem; 
    width: 0; 
    background-color: var(--dark-color);
    border-radius: 50%; 
    transition: width 0.3s cubic-bezier(0.75, 0, 0.25, 1);
}

.navbar li a:hover::before { 
    width: 100%; 
}

/* ---------------- HAMBURGER MENU ---------------- */
.hamburger { 
    display: none; 
    height: 32px; 
    width: 32px; 
}

.ham { 
    cursor: pointer; 
    -webkit-tap-highlight-color: transparent; 
    transition: transform 400ms; 
    user-select: none; 
}

.hamRotate.active { 
    transform: rotate(45deg); 
}

.hamRotate180.active { 
    transform: rotate(180deg); 
}

.line { 
    fill: none; 
    transition: stroke-dasharray 400ms, stroke-dashoffset 400ms; 
    stroke: var(--dark-color); 
    stroke-width: 4.5; 
    stroke-linecap: round; 
}

.ham1 .top { 
    stroke-dasharray: 40 139; 
}

.ham1 .bottom { 
    stroke-dasharray: 40 180; 
}

.ham1.active .top { 
    stroke-dashoffset: -98px; 
}

.ham1.active .bottom { 
    stroke-dashoffset: -138px; 
}

/* ==========================================================================
   6. INTRO ANIMACJA
   ========================================================================== */
.intro {
    position: relative;
    z-index: 50; 
    width: 100%; 
    height: 100dvh;
    background-color: #0d0e0e; 
    overflow: hidden;
    transition: margin-top 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.intro.slide-up { 
    margin-top: -100dvh; 
}

.intro-media-container {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    height: 30dvh; 
    width: 22.5dvh;
    aspect-ratio: 3 / 4; 
    overflow: hidden; 
    z-index: 2;
    transition: opacity 0.5s ease-in-out;
}

.intro-media {
    position: absolute; 
    top: -2%; 
    left: -2%; 
    width: 104%; 
    height: 104%; 
    aspect-ratio: 3 / 4;
    object-fit: cover; 
    transform: translateY(100%) translateZ(0) scale(1);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1),
                opacity 0.6s ease-in-out,
                filter 0.6s ease-in-out;
}

.intro-media.active { 
    transform: translateY(0) translateZ(0) scale(1); 
}

.intro-media.fade-up { 
    transform: translateY(-100%) translateZ(0) scale(1); 
}

.intro-media.fade-blur {
    opacity: 0;
    filter: blur(20px); 
    transform: translateY(0) translateZ(0) scale(1.3); 
}

.intro-header {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    color: #f9fbfc; 
    display: flex; 
    gap: 1rem; 
    margin: 0; 
    z-index: 2;
}

.intro-text {
    opacity: 0; 
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.intro-text.active { 
    opacity: 1; 
    transform: translateY(0); 
}

.intro-text.fade { 
    opacity: 0; 
    transform: translateY(-150px); 
}

.intro-counter {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    font-size: min(95dvh, 70vw); 
    line-height: 1; 
    font-weight: bold;
    color: #f9fbfc; 
    opacity: 0.05; 
    z-index: 1; 
    pointer-events: none; 
    user-select: none;
    max-width: 95vw; 
    text-align: center; 
    white-space: nowrap;
}

/* ==========================================================================
   7. GŁÓWNA SIATKA PROJEKTÓW (STRONA GŁÓWNA)
   ========================================================================== */
.wrapper_index {
    display: flex; 
    max-width: 1920px; 
    padding: 30px;
    flex-direction: column; 
    align-items: flex-start; 
    gap: 60px; 
    margin: 0 auto;
}

.wrapper_index a { 
    display: inline-block; 
    line-height: 0; 
    width: 100%; 
}

.wrapper_index a, 
.wrapper_section a { 
    overflow: hidden; 
    display: block; 
}

.wrapper_project { 
    display: flex; 
    flex-direction: row; 
    align-items: flex-start; 
    gap: 30px; 
    flex-wrap: wrap; 
    max-width: 100%; 
}

.wrapper_varsonalia { 
    display: flex; 
    width: 70%; 
    margin-left: auto; 
    flex-direction: column; 
    justify-content: center; 
    gap: 15px; 
}

.wrapper_calendar { 
    display: flex; 
    width: 60%; 
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-start; 
    gap: 15px; 
}

.wrapper_hoodies { 
    display: flex; 
    flex: 3; 
    flex-direction: column; 
    align-items: flex-start; 
    margin-right: 30px; 
    gap: 15px; 
}

.wrapper_sspw-website { 
    display: flex; 
    flex: 6; 
    padding-top: 120px; 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 15px; 
}

.wrapper_planner { 
    display: flex; 
    width: 60%; 
    margin: auto; 
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-start; 
    gap: 15px; 
}

/* ==========================================================================
   KINOWE PASKI ROZMYCIA NA KRAWĘDZIACH EKRANU
   ========================================================================== */
.edge-blur-top, 
.edge-blur-bottom {
    position: fixed;
    left: 0;
    width: 100vw;
    height: 8vh;
    z-index: 10;
    pointer-events: none;
    
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0.5; 
}

.edge-blur-top {
    top: 0;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 100%);
}

.edge-blur-bottom {
    bottom: 0;
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 100%);
}

header, 
footer {
    position: relative; 
    z-index: 50 !important;
}

.edge-blur-top, 
.edge-blur-bottom {
    z-index: 10 !important; 
}

/* ---------------- SKELETON LOADING ---------------- */
@keyframes pulseSkeleton {
    0% { background-color: #0d0e0e; }
    50% { background-color: #1a1c1c; }
    100% { background-color: #0d0e0e; }
}

.wrapper_varsonalia a, 
.wrapper_calendar a, 
.wrapper_planner a { 
    aspect-ratio: 1147 / 564; 
    display: block; 
    width: 100%; 
}

.wrapper_hoodies a { 
    aspect-ratio: 1 / 1; 
    display: block; 
    width: 100%; 
}

.wrapper_sspw-website a { 
    aspect-ratio: 135 / 176; 
    display: block; 
    width: 100%; 
}

.wrapper_index img {
    animation: pulseSkeleton 1.5s infinite ease-in-out;
}

/* ==========================================================================
   8. WIDOK POJEDYNCZEGO PROJEKTU (PODSTRONY)
   ========================================================================== */
.wrapper_section { 
    display: flex; 
    max-width: 1920px; 
    padding: 30px; 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 60px; 
    margin: 0 auto; 
}

.wrapper_projects { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
    width: 100%; 
    box-sizing: border-box; 
    align-items: start; 
}

.wrapper_projects > * { 
    width: 100%; 
    display: block; 
}

.wrapper_projects-uneven { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 30px; 
    width: 100%; 
    box-sizing: border-box; 
    align-items: start;
}

.wrapper_projects-uneven .wide, 
.wrapper_projects-uneven .narrow { 
    width: 100%; 
}

.wrapper_text { 
    display: flex; 
    flex-direction: column; 
    margin-left: 50%; 
    gap: 15px; 
}

.wrapper_text-left { 
    display: flex; 
    flex-direction: column; 
    margin-right: 50%; 
    gap: 15px; 
}

.text-middle { 
    text-align: center; 
    width: 50%; 
    display: flex; 
    margin: 0 auto; 
    padding: 30px 0; 
}

.d_column { 
    display: flex; 
    flex-direction: column; 
}

.wrapper_credits { 
    display: flex; 
    flex-direction: row; 
    gap: 1.4rem; 
    align-items: center; 
}

.responsive-half { 
    width: 100%; 
    max-width: 100%; 
    display: block; 
    margin: 0 auto; 
}

@media (min-width: 768px) { 
    .responsive-half { 
        width: 50%; 
    } 
}

/* --- NAWIGACJA PREV/NEXT --- */
.project-navigation { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    padding: 40px 0; 
}

.project-navigation a { 
    font-size: 2.566rem; 
    font-weight: 500; 
    text-decoration: none; 
    color: var(--dark-color); 
    position: relative; 
    overflow: visible !important; 
}

.project-navigation a::before {
    content: ""; 
    position: absolute; 
    bottom: -4px; 
    left: 0; 
    height: 0.1rem; 
    width: 0;
    background-color: var(--dark-color); 
    transition: width 0.3s cubic-bezier(0.75, 0, 0.25, 1);
}

.project-navigation a:hover::before { 
    width: 100%; 
}

/* ---------------- INDYWIDUALNE SIATKI (LINEUP, NAUKOWCY) ---------------- */
.wrapper_lineup { 
    margin: 0 auto; 
}

.lineup-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
    justify-content: center; 
}

.wrapper_naukowcy { 
    margin: 0 auto; 
    width: 100%; 
}

.naukowcy-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
    justify-content: center; 
}

/* ==========================================================================
   9. STRONA ABOUT ME
   ========================================================================== */
.wrapper_about { 
    display: flex; 
    gap: 30px; 
    align-items: stretch; 
    flex-wrap: wrap; 
}

.photo_about { 
    flex: 0 0 30%; 
    display: flex; 
}

.wrapper_text-about { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
    justify-content: space-between; 
}

/* ==========================================================================
   10. STRONA CONTACT
   ========================================================================== */
.wrapper_contact { 
    font-size: 1.424rem; 
    width: 50%; 
    display: flex; 
    flex-wrap: wrap; 
    flex-direction: column; 
    align-items: top; 
    gap: 60px; 
    margin: 0 auto; 
}

.wrapper_links { 
    display: flex; 
    flex-wrap: wrap; 
    flex-direction: row; 
    align-items: top; 
    justify-content: space-between; 
    gap: 60px; 
}

.wrapper_contact-right { 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
    justify-content: space-between; 
}

.wrapper_link { 
    display: inline-block; 
    position: relative; 
}

.wrapper_link a { 
    text-decoration: none; 
    color: var(--dark-color); 
    position: relative; 
    padding-bottom: 2px; 
    transition: color 0.3s ease; 
    line-height: 1; 
    overflow: visible !important; 
}

.wrapper_link a::after { 
    content: ""; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    height: 1px; 
    width: 100%; 
    background-color: var(--dark-color); 
    transform: scaleX(0); 
    transform-origin: left; 
    transition: transform 0.2s ease; 
}

.wrapper_link a:hover::after { 
    transform: scaleX(1); 
}

.photo_contact { 
    flex: 0 0 30%; 
    margin: 0 auto; 
    display: flex; 
}

/* ==========================================================================
   11. STRONY PRAWNE (POLITYKA PRYWATNOŚCI)
   ========================================================================== */
.wrapper_legal { 
    display: flex; 
    max-width: 1920px; 
    padding: 30px; 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 6px; 
    margin: 0 auto; 
}

.wrapper_legal h1 { 
    margin-bottom: 1rem; 
    font-size: 2.566rem; 
}

.wrapper_legal h2 { 
    margin-top: 1rem; 
    margin-bottom: 1rem; 
    font-size: 1.424rem; 
}

.wrapper_legal p, 
.wrapper_legal li { 
    font-size: 1.1rem; 
    line-height: 1.6; 
    color: var(--dark-color); 
    opacity: 0.8; 
    margin-bottom: 1rem; 
}

.wrapper_legal ul { 
    margin-left: 1rem; 
    margin-bottom: 1rem; 
}

.wrapper_legal li { 
    margin-bottom: 0.5rem; 
}

.wrapper_legal a.legal-link { 
    color: var(--dark-color); 
    text-decoration: underline; 
    text-underline-offset: 4px; 
    opacity: 1; 
    font-weight: bold; 
    transition: opacity 0,8s ease; 
}

.wrapper_legal a.legal-link:hover { 
    opacity: 0.8; 
}

/* ---------------- AKORDEON FAQ ---------------- */
.faq-item { 
    width: 100%; 
    border-bottom: 1px solid color-mix(in srgb, var(--dark-color) 15%, transparent); 
}

.faq-header { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    cursor: pointer; 
    margin: 0; 
    padding: 1.5rem 0; 
    transition: color 0.3s ease; 
    user-select: none; 
}

h2.faq-header { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    cursor: pointer; 
    margin: 0; 
    padding: 1.5rem 0 1rem 0; 
    transition: color 0.3s ease; 
    user-select: none; 
}

.faq-header:hover { 
    color: color-mix(in srgb, var(--dark-color) 70%, transparent); 
}

.faq-arrow { 
    width: 24px; 
    height: 24px; 
    flex-shrink: 0; 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.faq-content { 
    display: grid; 
    grid-template-rows: 0fr; 
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.faq-inner { 
    overflow: hidden; 
    padding-left: 39px; 
}

.faq-inner p:first-child { 
    margin-top: 0; 
}

.faq-inner p:last-child, 
.faq-inner ul:last-child { 
    margin-bottom: 1.5rem; 
}

.faq-item.active .faq-content { 
    grid-template-rows: 1fr; 
}

.faq-item.active .faq-arrow { 
    transform: rotate(90deg); 
}

/* ---------------- COOKIE POP-UP ---------------- */
.cookie-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-color: color-mix(in srgb, var(--dark-color) 85%, transparent); 
    backdrop-filter: blur(4px); 
    z-index: 9998; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.cookie-overlay.show { 
    opacity: 1; 
    visibility: visible; 
}

.cookie-popup { 
    background-color: var(--light-color); 
    color: var(--dark-color); 
    padding: 40px; 
    width: 90%; 
    max-width: 420px; 
    text-align: center; 
    border: 1px solid color-mix(in srgb, var(--dark-color) 10%, transparent); 
}

.cookie-popup h2 { 
    margin-bottom: 1rem; 
}

.cookie-popup p { 
    font-size: 1rem; 
    line-height: 1.5; 
    margin-bottom: 2rem; 
    color: var(--dark-color); 
    opacity: 0.8; 
}

.cookie-read-more { 
    color: var(--dark-color); 
    opacity: 0.6; 
    text-decoration: underline; 
    transition: opacity 0.3s ease; 
}

.cookie-read-more:hover { 
    opacity: 1; 
}

.cookie-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 1rem; 
}

.cookie-buttons button { 
    font-family: 'Archivo', sans-serif; 
    font-size: 1rem; 
    padding: 12px 30px; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
}

.btn-accept { 
    background-color: var(--dark-color); 
    color: var(--light-color); 
    border: 1px solid var(--dark-color); 
}

.btn-accept:hover { 
    transform: translateY(-2px); 
}

.btn-reject { 
    background-color: transparent; 
    color: var(--dark-color); 
    border: 1px solid var(--dark-color); 
}

.btn-reject:hover { 
    background-color: var(--dark-color); 
    color: var(--light-color); 
    transform: translateY(-2px); 
}

/* ==========================================================================
   12. ELEMENTY POMOCNICZE / WIDŻETY
   ========================================================================== */
#exit-curtain {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-color: #0d0e0e; 
    z-index: 9999; 
    pointer-events: none;
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

#exit-curtain.active { 
    opacity: 1; 
    visibility: visible; 
    pointer-events: all; 
}

/* ---------------- STRZAŁKA & WSKAŹNIK SCROLLA ---------------- */
.arrow {
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    width: 46px; 
    height: 46px;
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(50px); 
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
    z-index: 1000;
    color: var(--dark-color) !important;
}

.arrow.showArrow { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.arrow:hover {
    opacity: 0.6;
    transform: scale(1.1);
}

/* Ustawienia okręgu progressu */
.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Obracamy kółko, żeby zaczynało rysować się od "godziny 12" a nie od boku */
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.1s linear;
}

/* Środek strzałki */
.arrow-icon {
    width: 14px;
    height: auto;
    fill: currentColor;
    z-index: 2;
}

footer {
    max-width: 1920px; 
    width: 100%; 
    padding: 30px; 
    margin: 0 auto;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    gap: 1.4rem;
}

footer p { 
    margin: 0; 
    line-height: 1.424rem; 
}

footer a { 
    font-size: 2.027rem; 
    line-height: 2.281rem; 
    font-weight: 500; 
    text-decoration: none; 
    color: var(--dark-color); 
}


/* ==========================================================================
   13. ANIMACJE SCROLLA I PRZEJŚCIA
   ========================================================================== */
.wrapper_index a, 
.wrapper_index p, 
.wrapper_section a, 
.wrapper_section p {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); 
    display: block; 
}

.js-hidden-element { 
    opacity: 0 !important; 
    transform: translateY(40px) !important; 
}

.js-revealed-element { 
    opacity: 1 !important; 
    transform: translateY(0) !important; 
}

.wrapper_varsonalia, 
.wrapper_calendar, 
.wrapper_hoodies, 
.wrapper_sspw-website, 
.wrapper_planner { 
    transition: opacity 0.9s ease-in-out; 
}

/* ==========================================================================
   14. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
    html { 
        font-size: 14px; 
    }
    
    .footer a { 
        font-size: 1.602rem; 
        line-height: 1.602rem; 
    }
    
    .hamburger { 
        z-index: 2; 
        display: block; 
        cursor: pointer; 
    }
    
    .line { 
        stroke: var(--dark-color); 
    }
    
    .navbar {
        height: 0; 
        position: absolute; 
        top: 0; 
        right: 0; 
        width: 100vw;
        z-index: 1; 
        transition: 400ms; 
        overflow: hidden; 
        background: var(--dark-color);
    }
    
    .navbar ul { 
        display: block; 
        width: fit-content; 
        margin: 6rem auto 0; 
        transition: 500ms ease; 
    }
    
    .navbar ul li { 
        text-align: center; 
        padding: 1rem; 
    }
    
    .navbar ul li a { 
        margin-bottom: 1rem; 
    }
    
    header.active .line { 
        stroke: var(--light-color); 
    }
    
    .navbar.active { 
        box-shadow: 0 0.25rem 1rem rgba(56, 56, 56, 0.24); 
        background: var(--dark-color); 
        height: 15rem; 
    }
    
    header.active a { 
        color: var(--light-color); 
        z-index: 2; 
    }
    
    header.active span { 
        pointer-events: none; 
        visibility: hidden; 
        transition: none; 
    }

    .intro-media-container { 
        height: 20dvh; 
        width: 15dvh; 
    }

    .wrapper_varsonalia, 
    .wrapper_calendar, 
    .wrapper_planner, 
    .wrapper_hoodies, 
    .wrapper_sspw-website { 
        width: 100%; 
    }
    
    .wrapper_sspw-website { 
        padding-top: 30px; 
    }
    
    .wrapper_project { 
        flex-direction: column; 
    }

    .project-navigation { 
        margin: 60px auto 40px; 
    }
    
    .project-navigation a { 
        font-size: 1.8rem; 
    }
    
    .lineup-grid, 
    .naukowcy-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }

    .wrapper_projects { 
        grid-template-columns: 1fr; 
        gap: 60px; 
    }
    
    .wrapper_projects-uneven { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }

    .text-middle, 
    .wrapper_text-left, 
    .wrapper_text { 
        width: 100%; 
        margin-left: 0; 
        margin-right: 0; 
    }
    
    .wrapper_about { 
        flex-direction: column; 
    }
    
    .photo_about { 
        width: 100%; 
    }
    
    .wrapper_text-about h2 { 
        max-width: 100%; 
        align-self: flex-start; 
        text-align: left; 
        margin: 0; 
    }
    
    .wrapper_contact { 
        width: 100%; 
    }
}

@media (max-width: 400px) {
    html { 
        font-size: 12px; 
    }
    
    footer a { 
        font-size: 1.5rem; 
    }
}