/* Reset i typografia bazowa */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-top: 130px;
    /* kompensacja fixed header */
}

/* Nagłówek */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 130px;
    padding: 0 8%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transition: height 0.8s ease;
}

.header img {
    max-height: 80px;
    transition: max-height 0.8s ease;
}

.shrink {
    height: 60px;
}

.shrink img {
    max-height: 40px;
}

.shrink nav {
    transform: scale(0.6);
}


/* Menu desktopowe */
.nav {
    position: static;
    transform: none;
    box-shadow: none;
    transition: transform 0.8s ease;
}

.nav ul,
.nav_list {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    align-items: center;
    flex-direction: row;
    margin: 0;
}

.nav .nav-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav .btn {
    color: #fff;
    background: #60AEEA;
    font-weight: bold;
    border-radius: 30px;
    transition: background 0.3s;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 12px 30px;

}

.nav .btn:hover {
    background: #1D2E45;
}

.nav .nav-link:hover {
    opacity: 0.6;
}

/* Burger (desktop domyślnie ukryty) */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform .25s, opacity .25s;
}

.burger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
    opacity: 0;
}

.burger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
#hero {
    padding: 48px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 420px;
    gap: 30px;
    margin: 0 auto;
}

#hero_text {
    flex: 1 1 clamp(300px, 45%, 700px);
}

#hero_text h1 {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin: 0 0 12px;
    font-weight: 800;
}

#hero_text h3 {
    margin: 0 0 24px;
    color: #666;
    font-size: clamp(1rem, 2vw, 1.5rem);
}

#hero_art {
    flex: 1 1 clamp(200px, 45%, 550px);
    display: flex;
    justify-content: flex-end;
}

#hero_art img {
    width: 100%;
    height: auto;
    max-width: none;
}



#hero-btn {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    padding: clamp(8px, 1.5vw, 16px) clamp(16px, 3vw, 32px);
    display: inline-block;
    background: #60AEEA;
    color: #fff;
    font-weight: bold;
    border-radius: 15px;
    text-decoration: none;
    transition: background 0.3s;
}

#hero-btn:hover {
    background: #1D2E45;
}

#about {
    background-color: #DCE5ED;
    padding: 48px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 420px;
    gap: 110px;
    margin: 0 auto;
    scroll-margin-top: 100px;
}

#about h1 {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 20px;
}

#about p {
    font-size: 1.2rem;
    text-align: justify;
}

#about img {
    min-height: 75px;
}

/* Main content */
.main {
    padding: 3rem 8%;
}

#main-text {
    margin-bottom: 35px;
    scroll-margin-top: 150px;
}

#main-text h2 {
    margin-bottom: 1.5rem;
    color: #000;
    text-align: center;
}

#main-text p {
    text-align: center;
}

.grid-container {
    max-width: 1280px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
    transition: border 300ms linear 0ms, box-shadow 300ms ease 0ms;
    border: solid 1px rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    /* elementy układają się pionowo */
    align-items: center;
    /* wyśrodkowanie w poziomie */
    justify-content: center;
    /* wyśrodkowanie w pionie */
    text-align: center;
}

.card h4 {
    font-weight: 700;
    font-size: 2rem;
    line-height: 100%;
    margin: 10px 0 5px;
    padding-bottom: 20px;
}

.card img {
    display: block;
    margin: 0 auto;
    height: 150px;
}

.card:hover {
    border: solid 1px #60AEEA;
    box-shadow: none;
}

/* Footer */
.footer {
    background: #212529;
    color: #adb5bd;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

#about-2 {
    background-color: #DCE5ED;
    padding: 48px 8%;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    gap: 30px;
    margin: 0 auto;
}

#about-2 h1 {
    font-size: 3rem;
    font-weight: 700;
}

#about-2 p {
    margin: 10px 0;
}

#company {
    padding: 16px 8%;
    display: grid;
    align-items: center;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    min-height: 300px;
    gap: 30px;
    margin: 0 auto;
}

#company div:first-child {
    text-align: center;
}

#company li {
    list-style: none;
}

.footer {
    margin: 0;
}

.footer p {
    font-size: 0.9rem;
}

/* MOBILE: burger aktywny, menu off-canvas */
@media (max-width: 1100px) {

    html,
    body {
        overflow-x: hidden;
    }

    body {
        padding-top: 64px;
    }

    .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 64px;
        padding: 0 8%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    }

    .header img {
        vertical-align: middle;
    }

    .burger {
        display: inline-flex;
    }

    .nav {
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        left: 0%;
        background: #fff;
        transform: translateX(100%);
        transition: transform .3s ease;
    }

    .nav--open {
        transform: translateX(0);
    }

    .nav_list {
        flex-direction: column;
        gap: 12px;
        margin: 16px;
    }

    .nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    #hero {
        flex-direction: column;
        text-align: left;
    }

    #hero_art {
        justify-content: center;
    }

    #about {
        flex-direction: column;
        text-align: left;
        gap: 0;
    }

    #about div:nth-child(2) {
        opacity: 0;
        width: 0;
        height: 0;
    }

    #about-2 {
        grid-template-columns: 1fr;
    }

    #company {
        grid-template-columns: 0fr 1fr 1fr;
    }

    #company div:first-child {
        width: 0;
        height: 0;
        opacity: 0;
    }


}

@media (max-width: 500px) {
    .card {
        aspect-ratio: 1 / 1;
    }

    #company {
        grid-template-columns: 1fr;
    }
}