:root {
    --border-radius: 0.375rem;

    --bg-primary: #0d165b;
    --bg-gradient: linear-gradient(60deg, rgba(13, 22, 91,0.98), rgba(13, 22, 91, 0.99));

    --text-primary: rgba(255, 255, 255, 0.9);
    --text-secondary: #0d165b;

    --opacity-1: rgba(29, 109, 205, 0.05);
    --opacity-2: rgba(29, 109, 205, 0.2);
    --opacity-3: rgba(29, 109, 205, 0.35);
    --opacity-4: rgba(29, 109, 205, 0.5);
    --opacity-5: rgba(29, 109, 205, 0.65);

    --opacity-6: rgba(13, 22, 91, 0.9);
    --opacity-10: rgba(255, 255, 255, 0.9);

    --active: rgba(255, 255, 255, 1);

}

[data-theme="light"] {
    

    --bg-primary: #FFFFFF;
    --bg-gradient: linear-gradient(60deg, rgba(255,255,255,0.95), rgba(255,255,255,0.96));

    --text-primary: #0D165B;
    --text-secondary: #FFFFFF;

    --opacity-1: rgba(13, 22, 91, 0.02);
    --opacity-2: rgba(13, 22, 91, 0.07);
    --opacity-3: rgba(13, 22, 91, 0.12);
    --opacity-4: rgba(13, 22, 91, 0.17);
    --opacity-5: rgba(13, 22, 91, 0.22);
    
    --opacity-6: rgba(255, 255, 255, 0.9);
    --opacity-10: rgba(13, 22, 91, 0.02);
    
    --active: #0D165B;
}

/* :root {
    --bg-primary: #E2E8F0;

    --text-primary: #0B0F19;
    --text-secondary: #E2E8F0;

    --opacity-1: rgba(11, 15, 25, 0.01);
    --opacity-2: rgba(11, 15, 25, 0.03);
    --opacity-3: rgba(11, 15, 25, 0.05);
    --opacity-4: rgba(11, 15, 25, 0.07);
    --opacity-5: rgba(11, 15, 25, 0.09);

    --active: rgb(11, 15, 25);

}

[data-theme="dark"] {
    --bg-primary: #0B0F19;

    --text-primary: #E2E8F0;
    --text-secondary: #0B0F19;

    --opacity-1: rgba(226, 232, 240, 0.01);
    --opacity-2: rgba(226, 232, 240, 0.05);
    --opacity-3: rgba(226, 232, 240, 0.09);
    --opacity-4: rgba(226, 232, 240, 0.13);
    --opacity-5: rgba(226, 232, 240, 0.17);

    --active: rgb(226, 232, 240);
} */

















* {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    * {
        font-size: 17px;
    }
}

@media (min-width: 1921px) {
    * {
        font-size: 18px;
    }
}

/* Usuń niebieskie tło po kliknięciu na mobile */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /* Przywróć selekcję tekstu tam gdzie potrzebna */
    p, span, h1, h2, h3, h4, h5, h6, li {
        -webkit-user-select: text;
        -khtml-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    display: grid;
    grid-template-rows: auto 1fr auto;
    line-height: 1.5;
    transition: all 200ms ease-in-out;
    min-height: 100lvh;
}

.container {
    inset: 0;
    margin-right: auto;
    margin-left: auto;
    padding: 0 2.25rem;
    position: relative;
    width: 100%;
}
@media (min-width:576px){.container{max-width:540px;}}
@media (min-width:768px){.container{max-width:720px;}}
@media (min-width:992px){.container{max-width:960px;}}
@media (min-width:1200px){.container{max-width:1140px;}}
@media (min-width:1400px){.container{max-width:1320px;}}

button, a {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

button {
    border: none;
    cursor: pointer;
}

a {
    text-decoration: none;
}

ul {
    list-style-type: none;
}

/* header home */
header.home {
    background-color: var(--opacity-1);
    padding: 1rem 0;
}
header.home .container {
    display: grid;
    grid-template-rows: auto;
    justify-content: end;
    row-gap: 1.5rem;
}

/* header default */
header.default {
    background-color: var(--opacity-1);
    padding: 2.5rem 0;
}

header.default .container {
    display: grid;
    grid-template-rows: auto auto;
    row-gap: 1.5rem;
}

header.default .container > div:first-of-type {
    align-items: end;
    display: flex;
    flex-direction: column;
    row-gap: 2.5rem;
}

@media (min-width: 768px) {
    header.default .container > div:first-of-type {
        align-items: start;
        flex-direction: row;
        justify-content: space-between;
    }
}

header.default .container > div:first-of-type div:has(.logo-default) {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 2;
    row-gap: .5rem;
    width: 100%;
}

header.default .theme {
    order: 1;
    transform: scale(.9);
}

@media (min-width: 768px) {
    header.default .container > div:first-of-type div:has(.logo-default) {
        order: 1;
        width: auto;
    }

    header.default .theme {
        order: 2;
        transform: scale(1);
    }
}

.logo-default {
    width: 17rem;
}

@media (min-width: 768px) {
    .logo-default {
        width: 18rem;
    }
}

.label-default {
    font-size: .9rem;
    letter-spacing: 1px;
    text-align: center;
}

/* theme */
.theme {
    align-items: center;
    background-color: var(--opacity-2);
    border-radius: 5rem;
    display: flex;
    height: 1.75rem;
    justify-content: center;
    inset: 0;
    position: relative;
    transition: all 200ms ease-in-out;
    width: 3.5rem;
}

.theme:hover {
    background-color: var(--opacity-3);
    cursor: pointer;
}

.theme:after {
    background-color: var(--active);
    border-radius: 1rem;
    content: '';
    height: 1.25rem;
    inset: 0;
    left: .25rem;
    position: absolute;
    transition: all 200ms ease-in-out;
    top: .25rem;
    width: 1.25rem;
}

.theme.dark:after {
    left: 2rem;
}

.theme svg {
    fill: var(--text-primary);
    height: 1.75rem;
    padding: .375rem;
    width: 1.75rem;
}

/* menu */
.menu {
    column-gap: .5rem;
    display: grid;
    grid-template-columns: 5rem 1fr;
}

.menu button, .menu a, .mobile-menu-content button, .mobile-menu-content a {
    background-color: var(--opacity-2);
    border-radius: .375rem;
    display: inline-block;
    padding: .625rem .125rem;
    transition: all 200ms ease-in-out;
    width: 100%;
}

.menu nav ul li:last-child a, .mobile-menu-content nav ul li:last-child a {
    background-color: var(--opacity-3);
}

.menu .lang {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.flag-icon {
    width: 20px;
    height: 13px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    object-fit: cover;
    vertical-align: middle;
}

.menu .desktop {
    display: none;
}

@media (min-width: 768px) {
    .menu .desktop {
        display: inline-block;
    }
}

.menu button:hover, .menu a:hover {
    background-color: var(--opacity-3);
}

.menu nav ul li:last-child a:not(.active):hover, .mobile-menu-content nav ul li:last-child a:not(.active):hover {
    background-color: var(--opacity-4);
}

.menu nav ul {
    column-gap: .5rem;
    display: flex;
    justify-content: space-between;
    list-style: none;
    width: 100%;
}

.menu nav ul li {
    flex: 1;
    text-align: center;
}

.menu nav ul li a.active {
    background-color: var(--active);
    font-weight: 500;
    color: var(--text-secondary);
}






/* Mobile Menu */
#mobile-menu-toggle {
    align-items: center;
    display: flex;
    justify-content: center;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--opacity-6);
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    max-width: 15rem;
    row-gap: .75rem;
    text-align: center;
    width: 100%;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    row-gap: .75rem;
}

/* .mobile-nav li {
    margin: 1.5rem 0;
} */

/* .mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
} */

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--primary-color);
}

/* .mobile-lang {
    margin-top: 2rem;
} */



@media (min-width: 768px) {
    #mobile-menu-toggle {
        display: none;
    }
}

/* Pokaż hamburger tylko na mobile */
@media (max-width: 767px) {
    
    
    .menu .desktop {
        display: none;
    }
}














































/* main */
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

main .content {
    display: flex;
    flex-direction: column;
    padding: 3rem 0;
    row-gap: 4rem;
}

@media (min-width: 768px) {
    main .content {
        padding: 4.5rem 0;
    }
}

@media (min-width: 1200px) {
    main .content {
        /* padding: 6rem 4rem; */
        padding: 6rem 0;
    }
}

main .content section {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}

main .content section .logo-part {
    margin-bottom: 1rem;
    width: 5rem;
}

main .content section:last-of-type:has(.logo-part) .logo-part {
    width: 6rem;
}

main .content section ul {
    display: flex;
    flex-direction: column;
    padding-left: .75rem;
    row-gap: .5rem;
}

main .content section ul li {
    align-items: start;
    column-gap: .75rem;
    display: flex;
    list-style-type: none;
}

main .content section ul li svg {
    fill: currentColor;
    flex-shrink: 0;
    height: 1.5rem;
    width: 1.5rem;
}

.list {
    display: flex;
    flex-direction: column;
    row-gap: .75rem;
}

.list-item {
    cursor: pointer;
    display: grid;
    /* gap: 1rem; */
    grid-template-columns: 3em 1fr;
    grid-template-rows: auto 0fr;
    transition: all 200ms ease-in-out;
}

.list-item.open {
    grid-template-rows: auto 1fr;
    /* transition: all 200ms ease-in-out;  */
}

.list-item svg {
    cursor: pointer;
    fill: currentColor;
    grid-column: 1 / span 1;
    grid-row: 1 / span 1;
    margin-left: .75rem;
    height: 1.5rem;
    width: 1.5rem;
    transition: all 200ms ease-in-out;
}

.list-item.open svg {
    transform: rotate(-90deg);
}

.question {
    font-weight: 600;
    grid-column: 2 / span 1;
    grid-row: 1 / span 1;
}

.answer {
    display: flex;
    flex-direction: column;
    grid-column: 2 / span 1;
    grid-row: 2 / span 1;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    row-gap: .375rem;
    transition: all 100ms ease-in-out;
    /* transition:  */
    /* opacity 150ms ease-in-out 300ms,
    padding 300ms ease-in-out,      */
}

.list-item.open .answer {
    opacity: 1;
    padding-top: .5rem;
    /* transition: all 100ms ease-in-out; */
    /* transition:  */
    /* opacity 150ms ease-in-out 300ms,
    padding 300ms ease-in-out,         */
}












/* about me */
.about-me {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    row-gap: 3rem;
}

@media (min-width: 1200px) {
    .about-me {
        column-gap: 4rem;
        grid-template-columns: 20rem 1fr;
        grid-template-rows: auto;
    }
}

.image-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
    width: 100%;
}

.image-container p {
    text-align: center;
}

.me-image {
    width: 100%;
    height: 22rem;
    max-width: 25rem;
    border-radius: var(--border-radius);
    object-fit: cover;
    object-position: center;
}

.me-label-home {
    height: auto;
    width: 14rem;
}

@media (min-width: 768px) {
    .me-label-home {
        width: 24rem;
    }
}

.me-label {
    height: auto;
    width: 14rem;
}

.text {
    display: flex;
    flex-direction: column;
    row-gap: .5rem;
}

.text.center {
    text-align: center;
}

.text.large-gap {
    row-gap: 1.25rem;
}









/* price list */
.price-list-table {
    display: flex;
    flex-direction: column;
    margin-top: .75rem;
    row-gap: .75rem;
}    

.price-title {
    display: grid;
    grid-template-columns: 1fr 10rem;
    grid-template-rows: auto;
    width: 100%;
}

.price-title p {
    font-weight: 600;
}

.price-position {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto auto;
    width: 100%;
}

@media (min-width: 768px) {
    .price-title, .price-position {
        align-self: center;
        grid-template-columns: 1fr 14rem;
        grid-template-rows: auto;
    }
}

.price-title div {
    padding: 0 1.5rem;
}

.price-position div {
    padding: .75rem 1.5rem;
}

.price-position div:first-child {
    background-color: var(--opacity-1);
    border: 1px solid var(--opacity-2);
}

.price-position div:last-child {
    background-color: var(--opacity-2);
}

@media (max-width: 767px) {
    .price-title div:last-child {
        text-align: right;
    }
    
    .price-position div:first-child {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        border-bottom: none;
    }

    .price-position div:last-child {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        text-align: right;
    }
}

@media (min-width: 768px) {
    .price-title div:last-child {
        text-align: center;
    }

    .price-position div:first-child {
        border-radius: var(--border-radius) 0 0 var(--border-radius);
        border-right: none;
    }

    .price-position div:last-child {
        align-items: center;
        border-radius: 0 var(--border-radius) var(--border-radius) 0;
        display: flex;
        justify-content: center;
    }
}














/* contact */
.contact-container {
    display: flex;
    flex-direction: column;
    row-gap: 2.5rem;
}

.contact-part {
    align-items: center;
    /* display: grid; */
    display: flex;
    flex-direction: column;
    gap: .375rem 1.5rem;
    
    /* grid-template-columns: 2.25rem 1fr;
    grid-template-rows: auto auto; */
    width: 100%;
}

.contact-part svg {
    fill: var(--active);
    width: 3rem;
    /* width: 100%;
    height: auto; */
    flex-shrink: 0;
}

.contact-part h1, .contact-part p {
    text-align: center;
}

/* .contact-part div:last-child {
    grid-column: 2 / span 1;
    grid-row: 2 / span 1;
} */

@media (min-width: 768px) {
    .contact-part {
        gap: .5rem 2rem;
        /* grid-template-columns: 3rem 1fr; */
    }
}













footer {
    background-color: var(--opacity-1);
    padding: 1.5rem 0;
}

footer .content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    row-gap: .5rem;
}

footer .content p {
    text-align: center;
}

@media (min-width: 768px) {
    footer .content {
        grid-template-columns: 1fr 12rem;
        grid-template-rows: auto;
    }

    footer .content p:first-child {
        text-align: left;
    }

    footer .content p:last-child {
        text-align: right;
    }
}

p.large {
    font-size:  1.1rem;
}

p.extra-large {
    font-size: 1.2rem;
}

h1 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p.small {
    font-size: .9rem;
}

p.bold {
    font-weight: 600;
}


p span {
    font-size: inherit;
}

p sup {
    font-size: .6rem;
}

span.bold {
    font-weight: 600;
}




























/* Tło tylko dla strony głównej */
    body.home-page:before {
        content: '';
        position: fixed;
        top: 0vh;
        left: 0vw;
        width: 100vw;
        height: 100vh;
        background-image: url('/assets/img/background-dark.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;  
        z-index: -100;  
    }

    @media (min-width: 768px) {
        body.home-page:before {
            top: 0vh;
            left: 6vw;
            width: 88vw;
            height: 100vh;    
        }
    }

    /* Gradient overlay */
    body.home-page:after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-image: linear-gradient(135deg, rgba(13,22,91,0.88) 0%, rgba(13,22,91,0.9) 100%);
        background-image: radial-gradient(circle at center, rgba(13,22,91,0.86) 0%, rgba(13,22,91,1) 90%);
        z-index: -50;
        /* pointer-events: none; */
    }

    @media (min-width: 768px) {
        body.home-page:after {
            background-image: radial-gradient(circle at center, rgba(13,22,91,0.86) 0%, rgba(13,22,91,1) 76%);
        }
    }

    [data-theme="light"] body.home-page:before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-image: url('/assets/img/background-light.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;  
        z-index: -100;  
    }

    /* Gradient overlay */
    [data-theme="light"] body.home-page:after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-image: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.94) 100%);
        background-image: radial-gradient(circle at center, rgba(255,255,255,0.90) 0%, rgba(255,255,255,1) 94%);
        
        z-index: -50;
        /* pointer-events: none; */
    }

    @media (min-width: 768px) {
        [data-theme="light"] body.home-page:after {
            background-image: radial-gradient(circle at center, rgba(255,255,255,0.9) 0%, rgba(255,255,255,1) 84%);
        }
    }

    /* body.home-page {
        background-image: 
            linear-gradient(135deg, rgba(13,22,91,0.88) 0%, rgba(13,22,91,0.9) 100%);
    } */

    /* Tryb jasny */
    [data-theme="light"] body.home-page {
        /* background-image: 
            radial-gradient(circle at left bottom, rgba(255,255,255,0.92), rgba(255,255,255,0.94)),
            url('/assets/img/background-light.png');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        background-repeat: no-repeat; */
    }


    .home-wrapper {
        display: flex;
        flex-direction: column;
        row-gap: 2rem;
        width: 100%;
    }
    .image-wrapper {
        align-items: center;
        display: flex;
        flex-direction: column;
        row-gap: 1rem;
    }
    .image-wrapper p {
        text-align: center;
    }
    .home-logo {
        width: 18rem;
    }

    @media (min-width: 768px) {
        .home-logo {
            width: 36rem;
        }
    }

    .center-left p {
        text-align: left;
    }

    @media (min-width: 768px) {
        .center-left p {
            text-align: center;
        }
    }
