body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #34e5f9, #3b54de);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 20px 20px 10px;
    color: white;
}

header h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

header .author {
    margin: 0 0 10px;
    font-size: 1.2rem;
    opacity: 0.9;
}

.photo-box {
    margin: 25px auto 15px;
}

.profile-photo {
    width: 90%;
    width: 280px;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

header .subtitle {
    margin: 15px 0 10px;
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.85;
}

.projects-title {
    text-align: center;
    margin: 15px 0 25px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
}

main {
    display: flex;
    justify-content: center;
    padding: 10px 20px 40px;
    flex: 1;
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    width: 100%;
}

.project-btn {
    display: block;
    text-align: center;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    color: #000000;
    transition: background-color 0.2s ease;
    line-height: 1.5;
}

.project-btn span {
    font-weight: normal;
    font-size: 1.1rem;
}

.project-btn:hover {
    background-color: #f8f9fa;
    transform: none;
}

footer {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #eee;
}


@media (max-width: 768px) {
    .projects {
       
        grid-template-columns: 1fr;
        /* одна колонка */
        gap: 15px;
    }

    .project-btn {
        font-size: 1.1rem;
        padding: 14px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .projects-title {
        font-size: 1.5rem;
    }

}
