* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: radial-gradient(ellipse at top, #1a1f2e 0%, #0d1117 60%);
    color: #e6edf3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.site-header {
    text-align: center;
    padding: 64px 24px 32px;
}

.site-header h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #8ab4f8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: #8b949e;
    font-size: 16px;
}

.projects {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: #58a6ff;
    box-shadow: 0 12px 32px rgba(88, 166, 255, 0.15);
}

.preview {
    aspect-ratio: 16 / 10;
    background: #0d1117;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 18px 20px 22px;
}

.project-info h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #f0f6fc;
}

.project-info p {
    color: #8b949e;
    font-size: 14px;
}

.site-footer {
    border-top: 1px solid #21262d;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.social-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c9d1d9;
    background: #161b22;
    border: 1px solid #30363d;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link.telegram:hover { color: #fff; background: #229ED9; border-color: #229ED9; }
.social-link.youtube:hover  { color: #fff; background: #FF0000; border-color: #FF0000; }
.social-link.medium:hover   { color: #fff; background: #00ab6c; border-color: #00ab6c; }
.social-link.habr:hover     { color: #fff; background: #65A3BE; border-color: #65A3BE; }
.social-link.x:hover        { color: #fff; background: #000;    border-color: #fff;    }

.copy {
    color: #6e7681;
    font-size: 13px;
}

@media (max-width: 540px) {
    .site-header { padding: 40px 20px 24px; }
    .projects { padding: 20px 16px 40px; gap: 18px; }
}
