/* Импорт шрифта Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1e2c;
    color: #e2e8f0;
    line-height: 1.5;
    font-size: 15px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    background: #1a1e2c;
}

/* Шапка */
.hero {
    text-align: center;
    padding: 50px 0 40px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    color: #f0f3fa;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero .role {
    font-size: 1.25rem;
    color: #f39c12;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero .tagline {
    font-size: 1rem;
    color: #7c8ba0;
    margin-bottom: 2rem;
}

/* Кнопки */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #f39c12;
    color: #1a1e2c;
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #f39c12;
    border: 1px solid #f39c12;
}

.btn-secondary:hover {
    background: #f39c12;
    color: #1a1e2c;
    transform: translateY(-2px);
}

/* Секции */
section {
    padding: 40px 0;
    border-bottom: 1px solid #2d3348;
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #f0f3fa;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

/* Блок "О себе" */
.about p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #cbd5e6;
}

.about strong {
    color: #f39c12;
    font-weight: 600;
}

/* Навыки */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill {
    background: #232836;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #e2e8f0;
    border: 1px solid #2d3348;
    transition: all 0.2s ease;
}

.skill:hover {
    border-color: #f39c12;
    color: #f39c12;
}

/* Проекты */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project {
    background: #232836;
    padding: 1.25rem;
    border-radius: 20px;
    border: 1px solid #2d3348;
    transition: all 0.3s ease;
}

.project:hover {
    transform: translateY(-4px);
    border-color: #f39c12;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f0f3fa;
    margin-bottom: 0.5rem;
}

.project p {
    color: #a0a8c0;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.project-stack {
    font-size: 0.8rem;
    color: #7c8ba0;
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: #cbd5e6;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.project-links a:hover {
    color: #f39c12;
}

/* Футер с контактами */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #2d3348;
    margin-top: 2rem;
}

.footer .contacts {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #7c8ba0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer .contact-link:hover {
    color: #f39c12;
}

.footer p {
    font-size: 0.8rem;
    color: #5a657c;
}

/* Адаптив */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .role {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }

    section {
        padding: 30px 0;
    }

    h2 {
        font-size: 1.5rem;
    }

    .footer .contacts {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .project {
        padding: 1rem;
    }
}

.project-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.project-gallery {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-gallery-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s;
}

.project-gallery-image:hover {
    transform: scale(1.05);
}