@import url('https://fonts.googleapis.com/css2?family=Syne:wght@300;400;700;800&display=swap');

html {
    
    box-sizing: border-box;
    scroll-behavior: smooth;
} 
*, *::before, *::after {
    box-sizing: inherit;
}
body{
    background-color: rgb(255, 255, 255);
    color: rgb(21, 21, 21);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Syne', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.layout {
    display: grid;
    grid-template-columns: 12% 1fr;
}
a {
    text-decoration: none;
    color: rgb(21, 21, 21);
    font-size: 20px;
}




/* LISTA */
/* Usunięcie punktorów i marginesów */
ul {
    margin: 0;
    padding: 0;
}
li {
    list-style: none;
    margin: 10px 0;
    
}



/* Kolor linków */

.nav a {
    font-size: 35px;
    color: #ffffff;
    text-decoration: none;
}
.nav a:hover {
    color: rgb(196, 248, 99);
}





.nav {
    grid-row: span 6 / span 6;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: rgb(21, 21, 21);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

/* Responsive nav adjustments */
@media (max-width: 900px) {
    .layout { grid-template-columns: 18% 1fr; }
    .nav { padding: 10px 8px; }
    .nav a { font-size: 18px; }
    #logo { max-width: 120px; }
    .nav .icon { width: 28px; height: 28px; }
}

@media (max-width: 600px) {
    .nav a { font-size: 16px; }
    .nav { padding: 6px 8px; }
    .nav ul { gap: 8px; padding: 6px; }
    #logo { max-width: 100px; }
}




/* Icony Navi */

.nav li:last-child {
    display: flex;
    gap: 25px;
    padding-top: 6px;
    overflow: hidden;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.nav .icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: inline-block;
    margin: 0;
    vertical-align: middle;
    max-width: 100%;
    box-sizing: border-box;
    filter: invert(100%) sepia(0%) saturate(0%);
    transition: filter .15s ease, transform .12s ease;
} 
.nav .icon:hover {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(0) saturate(100%) invert(94%) sepia(14%) saturate(1674%) hue-rotate(23deg) brightness(101%) contrast(95%);
}

/* Logo Mendelskiego */
#logo {
    width: 80%;
    height: auto;
    max-width: 150px;
    margin-bottom: 12px;
}

@media (max-width: 600px) {
.nav .icon {
        width: 24px;
        height: 24px;
        align-items: center;
        flex: 0 1 auto;
        max-width: 100%;
    }
#logo {
        width: 30%;
        max-width: 120px;

    }
}


/* Styl sekcji */

.content {
	padding: 30px;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    width: 100%;
    position: relative;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}


/* Vertical spacing between consecutive content sections */
.content + .content {
    margin-top: clamp(6px, 3vh, 48px);
}




/* Obrazek Mendelskiego */

.portrait {
    position: relative;
    order: 2;
    transform: none;
    width: clamp(320px, 28vw, 520px);
    max-width: 45%;
    box-sizing: border-box;
} 
.portrait img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 70px;
    border-color: rgb(196,248,99);
    border-width: 3px;
    border-style: outset;
}




/* Edytcja poszczególnych sekcji */
#main::before { opacity: 0.22; filter: blur(10px); }
#main {
    background-color: rgb(255, 255, 255);
    color: rgb(21, 21, 21);
    min-height: 100vh;
    box-sizing: border-box;
    padding-bottom: 20px; 
    padding-top: calc(clamp(16px, 4vw, 48px) * 1.5);
    padding-left: clamp(32px, 6vw, 160px);
    padding-right: clamp(32px, 6vw, 160px);
    gap: clamp(48px, 6vw, 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    
    
}


#main h1 {
    font-size: clamp(56px, 3.8vw, 160px);
    margin-top: 0;
    margin-bottom: 0px;
    line-height: 1;
   
}
#main h2 {
    font-size: clamp(22px, 2.6vw, 36px);
  
    margin-top: 5px;
}

/* Duplicate of #main styles for #main-offer so it can be edited independently */
#main-offer::before { opacity: 0.22; filter: blur(10px); }
#main-offer {
    background-color: rgb(255, 255, 255);
    color: rgb(21, 21, 21);
    min-height: 100vh;
    position: relative;
    box-sizing: border-box;
    padding-bottom: 20px; 
    padding-top: calc(clamp(16px, 4vw, 48px) * 1.5);
    padding-left: clamp(32px, 6vw, 160px);
    padding-right: clamp(32px, 6vw, 160px);
    gap: clamp(12px, 2vw, 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#main-offer h1 {
    font-size: clamp(56px, 3.8vw, 160px);
    margin-top: 0;
    margin-bottom: 0px;
    line-height: 1;
}
#main-offer h2 {
    font-size: clamp(22px, 2.6vw, 36px);
    margin-top: 5px;
}

/* Bottom block inside #main-offer: keep h3 + button centered and pinned to bottom */
.main-offer-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-bottom: clamp(12px, 2.5vh, 36px);
    width: 100%;
    box-sizing: border-box;
}

#main-offer h3 {
    margin: 0;
    color: rgb(21,21,21);
    text-align: center;
    max-width: 900px;
    line-height: 1.4;
    font-size: clamp(16px, 1.8vw, 20px);
}

/* Button under #main-offer */
.main-offer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(21,21,21);
    color: #fff;
    padding: clamp(18px, 3.2vw, 40px) clamp(24px, 4vw, 60px);
    border-radius: 44px 12px 44px 12px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    width: clamp(260px, 50%, 720px);
    max-width: 90%;
    text-align: center;
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1;
}
.main-offer-btn:hover { transform: translateY(-2px); transition: transform .12s ease; }


.title {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid rgb(21, 21, 21);
    padding-left: clamp(24px, 4vw, 64px);
    max-width: 60%;
}

#bricks {
    background-color: rgb(255, 255, 255);
    padding: 20px;
    box-sizing: border-box;
}

#bricks-2 {
    background-color: rgb(21, 21, 21);
    padding: 20px;
    box-sizing: border-box;
}   

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    align-items: stretch;
}
.container > div {
    margin: 0;
    padding: 18px;
    font-size: clamp(14px, 1.6vw, 18px);
    box-sizing: border-box;
    border-radius: 40px;
}

/* Oferta cards grid + card styles */
.ofercik {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: clamp(20px, 3vw, 48px);
    justify-content: center;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.ofercik > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    padding: clamp(18px, 2.2vw, 28px);
    min-height: 220px;
    box-sizing: border-box;
    border-radius: 44px 12px 44px 12px;
}
.ofercik > div { color: rgb(21,21,21); box-shadow: 0 10px 24px rgba(0,0,0,0.45); background: none; border-radius: 44px 12px 44px 12px; }

/* Specific card colors to match screenshot */
.ofercik > .div1 { background-color: rgb(156, 247, 82) !important; }
.ofercik > .div2 { background-color: rgb(196, 248, 99) !important; }
.ofercik > .div3 { background-color: rgb(223, 252, 58) !important; }
.ofercik > .div4 { background-color: rgb(156, 247, 82) !important; }
.ofercik > .div5 { background-color: rgb(196, 248, 99) !important; }
.ofercik > .div6 { background-color: rgb(223, 252, 58) !important; }
.ofercik > .div7 { background-color: rgb(156, 247, 82) !important; }
.ofercik > .div8 { background-color: rgb(196, 248, 99) !important; }
.ofercik > .div9 { background-color: rgb(223, 252, 58) !important; }
.ofercik > .div10 { background-color: rgb(156, 247, 82) !important; }
.ofercik > .div11 { background-color: rgb(196, 248, 99) !important; }
.ofercik > .div12 { background-color: rgb(223, 252, 58) !important; }
.ofercik > .div13 { background-color: rgb(156, 247, 82) !important; }
.ofercik > .div14 { background-color: rgb(196, 248, 99) !important; }
.ofercik > .div15 { background-color: rgb(223, 252, 58) !important; }

.ofercik > div h3 { margin: 0 0 10px 0; font-size: clamp(18px, 2.2vw, 22px); }
.ofercik > div a:not(.price) { display: block; color: inherit; font-size: clamp(14px, 1.6vw, 16px); line-height: 1.4; }
.ofercik > div .price { margin-top: 12px; align-self: center; background-color: rgb(21,21,21); color: #fff; padding: 8px 14px; border-radius: 12px; }

/* Responsive adjustments */
@media (max-width: 1000px) {
    .ofercik { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 600px) {
    .ofercik { grid-template-columns: 1fr; padding: 12px; }
    .ofercik > div { min-height: 160px; border-radius: 28px 8px 28px 8px; }
    .main-offer-btn { border-radius: 28px 8px 28px 8px; }
    #box1, #box2, #box3, #box4 { border-radius: 28px 8px 28px 8px; }
}

/* Prevent long words from expanding cards */
.ofercik > div { overflow: hidden; }
.ofercik > div h3, .ofercik > div a { word-break: break-word; overflow-wrap: anywhere; hyphens: auto; }





#box1 {
    background-color: rgb(21, 21, 21);
    transform: translateY(-50px);
    a, h2 {
        color: rgb(255, 255, 255);
    }
}
#box2 {
    background-color: rgb(75, 152, 240);
    a, h2 {
        color: rgb(21, 21, 21);
    }
}
#box3 {
    background-color: rgb(21, 21, 21);
    transform: translateY(-50px);
    a, h2 {
        color: rgb(255, 255, 255);
    }
}
#box4 {
    background-color: rgb(196, 248, 99);
    a, h2 {
        color: rgb(21, 21, 21);
    }
}

/* Match card shape for feature boxes */
#box1, #box2, #box3, #box4 {
    border-radius: 44px 12px 44px 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.45);
    overflow: hidden;
    padding: clamp(12px, 2vw, 18px);
}


    a, h2 {
        font-size: clamp(14px, 3vw, 24px);
        color: rgb(21, 21, 21);
    }





#me {
    background-color: rgb(255, 255, 255);
    scroll-margin-top: 72px;
    justify-items: center;
    position: relative;
}








#text-pattern {
    width: 50%;
    text-align: left;
    border-left: 2px solid rgb(21, 21, 21);
    padding-left: 10px;
}







#work {
    background-color: rgb(255, 255, 255);
    /* border-left: 6px solid rgb(196,248,99); */
    justify-items: center;
    position: relative;
    
}
#bottom {
    background-color: rgb(255, 255, 255);
    padding: 20px 24px;
   /* border-left: 6px solid rgb(196,248,99); */
}





/* Kontakt - podświetlenie po kliknięciu */
#info.contact-highlight {

    /*box-shadow: 0 0 0 6px rgb(196, 248, 99) inset, 0 8px 30px rgb(196,248,99);*/
    transition: box-shadow .25s ease, transform .15s ease;
    transform: translateY(-2px);
}

#info {
  transition: background-color 1.5s ease, box-shadow 1.5s ease, opacity 1.5s ease;
}

.contact-highlight {
 /* background-color: rgba(255, 230, 150, 0.8);
  box-shadow: 0 0 20px rgba(255, 200, 80, 0.8);*/

  box-shadow: 0 0 20px rgb(155, 197, 77);
  opacity: 1;
}







#bottom ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 28px);
    align-items: center;
    justify-content: center;
}
#bottom li {
    display: flex;
    gap: 8px;
    align-items: center;
}
#bottom li h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}
#bottom li a {
    margin: 0;
    font-size: 14px;
    color: rgb(21, 21, 21);
    text-decoration: none;
}





@media (max-width: 420px) {
    /* stack each contact pair on very small screens */
    #bottom ul {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    #bottom li {
        justify-content: space-between;
        width: 100%;
    }
    #bottom li h5, #bottom li a { font-size: 14px; }
}


/* Część MOBILNA*/

@media (max-width: 600px) {
   
   
   
   
    /* Change layout to single column on mobile */
    .layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto repeat(6, auto);
    }
     /* Stack all content sections in single column on mobile */
    #main, #bricks, #me, #work, #bottom, #bricks-2 {
        grid-column: 1;
        max-width: 100%;
    }
    
    
    
    /* Make nav span full width on mobile */
    .nav {
        grid-row: 1;
        grid-column: 1 / -1;
        --nav-height: 56px;
        height: auto !important;
        flex-direction: row;
        justify-content: center;
        padding: 8px 10px;
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
        align-items: center;
    }
    
    /* Adjust nav ul for horizontal layout on mobile */
    .nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        justify-content: left;
        width: 100%;
        overflow-x: visible;
        padding: 0 6px;
    }
    

   
    
    /* Ensure #main accounts for sticky nav height */
    #main { min-height: calc(100vh - var(--nav-height)); }
    
    /* Remove right padding on #main for better stacking */
    #main { padding-right: 0; }

    /* Reduce gap in #main on mobile */
    #main {
        gap: clamp(12px, 4vw, 24px);
    }

    /* Adjust heading styles on mobile */
    #main h1 {
        font-size: 40px;
        margin: 0 0 12px 0;
        text-align: center;
    }
    #main h2 {
        font-size: 20px;
        margin: 0 0 12px 0;
        text-align: center;
    }


    /* Adjust .content styles on mobile */
    .content {
        height: auto;
        padding: 10px;
        box-sizing: border-box;
        min-height: 0;
        margin: 0;
    }
    
    
    
    
    /* Adjust list item margins in nav on mobile */
    li {
        margin: 0 8px;
    }
  
    


    /* Adjust scroll margin for #me on mobile */
    #me { scroll-margin-top: calc(var(--nav-height, 56px) + 8px); }

    /* Adjust #text-pattern styles on mobile */
    #text-pattern {
    width: 100%;
    text-align: center;
    border-left: none;
}


    /* Adjust boxes in bricks on mobile */
    #box1, #box3 {
    transform: translateY(0);
}


.portrait {
        position: static;
        transform: none;
        margin: 0 auto 12px;
        width: 60%;
        max-width: 220px;
        order: 2;
    }

}
.offers-intro {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 18px;
}
.offers-intro h1 {
    color: rgb(255,255,255);
    text-align: center;
    font-size: clamp(24px, 4.6vw, 48px);
    line-height: 1.08;
    font-weight: 600;
    margin: 12px 0;
    letter-spacing: 0.2px;
    text-rendering: optimizeLegibility;
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 700px) {
    .offers-intro h1 { font-size: clamp(20px, 5.6vw, 36px); line-height: 1.12; }
}

/* Full-page background canvas */
.page-bg-canvas{
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    display: block;
}