* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    background: #ffffff;
    color: #000;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top {
    height: min(32vh, 260px);
    background: linear-gradient(135deg, #1e90ff, #0057b8);
    position: relative;
    display: flex;
    justify-content: center;
}

.logo-container {
    position: absolute;
    bottom: -120px;
    width: min(60vw, 280px);
    aspect-ratio: 1 / 1;
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.content {
    flex: 1;
    padding: 180px 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

h1 {
    margin-top: 20px;
    font-size: clamp(1.5rem, 4vw, 2.3rem);
    text-align: center;
}

.links {
    list-style: none;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.icon-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: black;
    font-size: 1.2rem;
}

/* JAVÍTVA: csak ::after maradt, ::before törölve (duplikált volt) */
.links a {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 18px;
    border: 2px solid rgba(0,0,0,0.25);
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    z-index: 1;
    transition: color 0.4s ease, border-color 0.4s ease;
}

.links a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #1e90ff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

.links a:hover::after {
    transform: scaleX(1);
}

.links a:hover {
    color: white;
    border: 2px solid #1e90ff;
}

p {
    font-size: 200%;
}

@media (max-width: 480px) {
    .logo-container {
        bottom: -100px;
        width: 200px;
    }

    .content {
        padding-top: 160px;
    }

    p {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .links {
        /* JAVÍTVA: grid helyett egy egyszerűbb, centrált megközelítés */
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 900px;
        justify-items: stretch;
    }

    /* JAVÍTVA: eltávolítva a törött margin hack, a 7. gomb középre kerül */
    .links li:last-child:nth-child(3n + 1) {
        grid-column: 2 / 3;
    }

    p {
        text-align: center;
    }
}