* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.header {
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav__brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__menu a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.nav__menu a:hover {
    color: #007bff;
}

.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__content {
    max-width: 800px;
}

.hero__photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 4px solid #007bff;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.hero__description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__cta {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.hero__cta:hover {
    background: #0056b3;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section__title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.about__content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill__item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s;
}

.skill__item:hover {
    transform: translateY(-5px);
}

.timeline {
    max-width: 600px;
    margin: 0 auto;
}

.timeline__item {
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 2px solid #007bff;
}

.timeline__date {
    color: #666;
    font-size: 0.9rem;
}

.timeline__title {
    margin: 0.5rem 0 0.25rem;
}

.timeline__company {
    color: #666;
}

.contact__form {
    max-width: 600px;
    margin: 0 auto;
}

.form__group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.submit-btn {
    background: #007bff;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background: #0056b3;
}

.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Адаптивность */
@media (min-width: 1440px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .hero {
        padding: 7rem 2rem 3rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    section {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 767px) {
    .header {
        padding: 1rem;
    }

    .nav__menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero {
        padding: 6rem 1rem 2rem;
        min-height: auto;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.2rem;
    }

    .hero__photo {
        width: 150px;
        height: 150px;
    }

    section {
        padding: 2rem 1rem;
    }

    .skills__grid {
        grid-template-columns: 1fr;
    }
}