* {
    box-sizing: border-box;
}

html {
    font-family: Arial, sans-serif;
    color: #242424;
    background: #f5f5f3;
}

body {
    margin: 0;
    line-height: 1.55;
}

.container {
    width: min(860px, calc(100% - 40px));
    margin: 0 auto;
}

.header {
    background: #fff;
    border-bottom: 1px solid #deded9;
}

.header .container {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    color: #222;
    font-weight: 700;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 18px;
}

nav a {
    color: #555;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

main {
    min-height: calc(100vh - 140px);
    padding-top: 52px;
    padding-bottom: 64px;
}

.intro {
    margin-bottom: 48px;
}

h1 {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.2;
}

h2 {
    margin-top: 40px;
    font-size: 22px;
}

.lead,
.intro p {
    max-width: 670px;
    color: #555;
}

.item {
    padding: 20px 0;
    border-bottom: 1px solid #d9d9d4;
}

.item a,
.item strong {
    color: #222;
    font-size: 18px;
}

.item p {
    margin: 7px 0 0;
    color: #666;
}

.date {
    margin-bottom: 5px;
    color: #888;
    font-size: 13px;
}

footer {
    padding: 20px 0;
    color: #777;
    background: #fff;
    border-top: 1px solid #deded9;
    font-size: 13px;
}

@media (max-width: 640px) {
    .header .container {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    nav {
        flex-wrap: wrap;
    }

    h1 {
        font-size: 28px;
    }
}
