* {
    box-sizing: border-box;
}
body {
    font-family: "Oswald", serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
}
main {
    min-height: 100vh;
    height: auto;
}
.homepage {
    padding-top: 80px;
    width: 100%;
    min-height: 200px;
    height: auto;
    margin: 0 auto;
    color: white;
    background-image: linear-gradient( 90.2deg,  rgba(1,47,95,1) -0.4%, rgba(56,141,217,1) 106.1% );
}
.homepage h1 {
    margin-top: 0;
    font-size: 45px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
}
.homepage-grid {
    font-family: "Roboto", sans-serif;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* trzy równe kolumny */
    gap: 40px; /* odstęp między kolumnami */
    padding-left: 15%;
    padding-right: 15%;
    padding-top: 10px;
}
.homepage-grid div {
    min-height: 500px;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    overflow: hidden;
    background: rgb(15, 24, 49) ;
    position: relative;
}
.header-grid {
    display: flex;
    align-items: center;
    justify-content: center;   
    height: 90px;
    background-image: linear-gradient( 90.2deg,  rgba(1,47,95,1) -0.4%, rgba(56,141,217,1) 106.1% );
}
.homepage-grid h2 {
    font-size: 32px;
    padding: 5px;
    color: white;
    margin: 0;
}
.homepage-grid p {
    text-align: left;
    font-size: 15px;
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-family: "Oswald", serif;
    background: rgb(15, 24, 49) ;
    border-bottom: 2px #ffffff solid;
    color: #ffffff;
    overflow: hidden;
}
.homepage-grid p img {
    height: 80px;
    display: flex;
    margin: 0 auto;
}
.homepage-grid button {
    background-color: #318aff;
    min-height: 35px;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    width: 60%;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-family: "Roboto", sans-serif;
    margin-bottom: 20px;
}
.homepage-grid button a {
    color: white;
}
.homepage-grid .material-icons {
    vertical-align: middle;
}
.center-p {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 20px;
}
ul {
    list-style: none;
    padding: 0;
    padding-bottom: 10px;
}
ul button {
    background-color: #fbc02d;
    color: black;
    height: 60px;
    width: 300px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-family: "Roboto", sans-serif;
    margin-bottom: 20px;
}
ul button:hover {
    background-color: #ff9c1a;
}
li {
    margin: 10px 0;
}
a {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    font-size: 18px;
}
/* RESPONSYWNOŚĆ */
@media (max-width: 1200px) {
    .homepage-grid {
        grid-template-columns: 1fr 1fr; /* Dwie kolumny na średnich ekranach */
        padding-left: 10%;
        padding-right: 10%;
    }
}

@media (max-width: 768px) {
    .homepage h1 {
        font-size: 36px;
    }

    .homepage-grid {
        grid-template-columns: 1fr; /* Jedna kolumna na telefonach */
        padding-left: 5%;
        padding-right: 5%;
    }

    .homepage-grid div {
        min-height: 450px;
    }

    .homepage-grid h2 {
        font-size: 24px;
    }

    .homepage-grid p {
        font-size: 14px;
    }

    .homepage-grid button {
        width: 80%;
        font-size: 14px;
    }

    ul button {
        width: 90%;
        font-size: 16px;
    }

    a {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header-grid {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .homepage h1 {
        font-size: 28px;
    }

    .homepage-grid p img {
        height: 60px;
    }

    ul button {
        height: 50px;
    }
}
