﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}

.homepage {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px;
}

/* NAGŁÓWEK */
.top-section {
    text-align: center;
    margin-bottom: 60px;
}

.top-section h1 {
    font-size: 52px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 15px;
}

.top-section p {
    font-size: 18px;
    color: #6b7280;
}

.company-logo {
    width: 250px;
    height: auto;
    margin: 30px auto 35px;
    display: block;
    object-fit: contain;
}

/* KAFELKI */
.main-grid {
    display: grid;
    /* Zmiana na auto-fit: siatka sama rozłoży 3 kafelki, a max-width kafelka to teraz 400px, by ładnie mieściły się obok siebie */
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    justify-content: center;
    gap: 35px;
    
    /* Reset stylów listy dla nowej struktury HTML */
    list-style: none;
    padding: 0;
}

.main-tile {
    height: 280px;
    background: white;
    border-radius: 32px;
    text-decoration: none;
    color: #111827;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Zapewnia, że kafelek rozciąga się na całą szerokość elementu li */
    width: 100%; 
}

.main-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.tile-content {
    padding: 40px;
}

.tile-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.tile-content p {
    max-width: 350px;
    font-size: 17px;
    line-height: 1.6;
    color: #6b7280;
}

/* TELEFON I TABLETY */
@media (max-width: 1024px) {
    /* Dodatkowy próg, aby na średnich ekranach kafelki też wyglądały zgrabnie */
    .tile-content h2 {
        font-size: 36px;
    }
}

@media (max-width: 800px) {
    .container {
        padding: 25px;
    }

    .top-section h1 {
        font-size: 38px;
    }

    .main-grid {
        /* Na telefonach kafelki układają się jeden pod drugim */
        grid-template-columns: 1fr; 
        max-width: 450px;
        margin: 0 auto;
    }

    .main-tile {
        height: 220px;
    }

    .tile-content h2 {
        font-size: 34px;
    }
}