/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* Topbar */
.topbar {
    width: 100%;
    padding: 20px 0;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

/* Menu */
.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

.menu a:hover {
    color: #2db569;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
}

/* Hero */
.hero {
    padding: 120px 0;
    text-align: center;
    background: #f7f7f7;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #2db569;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

.btn:hover {
    background: #249a57;
}

/* Sections */
section {
    padding: 80px 0;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

/* Services */
.grid {
    display: grid;
    gap: 30px;
}

.services .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    padding: 30px;
    background: #fafafa;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
}

/* Portfolio */
.portfolio .grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.portfolio .item {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}


/* Contact */
.contact {
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #f7f7f7;
    margin-top: 40px;
}


.small-hero {
    padding: 80px 0;
}

/* Lista projektów na podstronie */
.projects .project-list {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-box {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-box h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-box p {
    color: #555;
}

/* Ikony projektów (portfolio + podstrona) */
.project-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.project-icon svg {
    width: 48px;
    height: 48px;
    color: #2db569;
    stroke-linecap: round;
    stroke-linejoin: round;
}



/* Karta w portfolio na stronie głównej */
.project-card {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}



/* Mobile */
@media (max-width: 768px) {
    .menu {
        position: absolute;
        top: 70px;
        right: 0;
        background: #fff;
        width: 100%;
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
        border-bottom: 1px solid #eee;
        display: none;
    }

    .menu.active {
        display: flex;
    }

    .burger {
        display: flex;
    }
}
