
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: #30343b;
    background: #ffffff;
    line-height: 1.7;
}

.container {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Шапка сайта */

.header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.navigation {
    min-height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 23px;
    font-weight: bold;
    color: #536b80;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: #555d66;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

nav a:hover {
    color: #8b9fb1;
}

/* Главный экран */

.hero {
    background: #f3f6f8;
    padding: 100px 0;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-text {
    max-width: 620px;
}

.label {
    color: #8a9eaf;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

h1 {
    font-size: 43px;
    line-height: 1.25;
    margin: 20px 0;
}

h1 span {
    color: #718da3;
}

.hero-text p {
    color: #68727d;
    margin-bottom: 30px;
    max-width: 550px;
}

.button {
    display: inline-block;
    background: #718da3;
    color: white;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.button:hover {
    background: #526d83;
}

.hero-decoration {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: #dce6ed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #718da3;
    flex-shrink: 0;
}

.code-icon {
    font-size: 75px;
    font-weight: bold;
}

.hero-decoration span {
    font-size: 12px;
}

/* Общие секции */

.section {
    padding: 85px 0;
}

h2 {
    font-size: 32px;
    margin: 10px 0 25px;
    color: #303d49;
}

.section-text {
    max-width: 800px;
    color: #68727d;
    font-size: 16px;
}

/* Навыки */

.skills-section {
    background: #f8fafb;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.card {
    background: white;
    padding: 25px 20px;
    border: 1px solid #e9edf0;
    border-radius: 10px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    color: #8da5b8;
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.card p {
    color: #75808a;
    font-size: 14px;
}

/* Проекты */

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.project-card {
    padding: 28px;
    border: 1px solid #e5eaee;
    border-radius: 10px;
    background: #ffffff;
}

.project-number {
    color: #8da5b8;
    font-size: 11px;
    letter-spacing: 1px;
}

.project-card h3 {
    margin: 18px 0 12px;
    font-size: 19px;
}

.project-card p {
    font-size: 14px;
    color: #75808a;
}

/* Контакты */

.contacts {
    background: #eef3f6;
    padding: 75px 0;
    text-align: center;
}

.contacts p {
    max-width: 600px;
    margin: 0 auto;
    color: #68727d;
}

/* Подвал */

footer {
    background: #303d49;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 13px;
}

/* Адаптация для телефонов */

@media (max-width: 850px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .hero-decoration {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 600px) {
    .container {
        width: 90%;
    }

    .navigation {
        flex-direction: column;
        padding: 15px 0;
        gap: 12px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    h1 {
        font-size: 32px;
    }

    .hero-decoration {
        width: 180px;
        height: 180px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 27px;
    }
}
