* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f8f9fa;
    color: #202122;
}

header {
    text-align: center;
    padding: 50px 20px 35px;
    background: white;
    border-bottom: 1px solid #a2a9b1;
}

header h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 600;
}

header p {
    margin: 8px 0 0;
    color: #54595d;
    font-size: 17px;
}

main {
    width: min(1000px, 92%);
    margin: 40px auto;
}

section {
    background: white;
    border: 1px solid #c8ccd1;
    padding: 30px;
    margin-bottom: 30px;
}

section h2 {
    margin: 0 0 22px;
    font-size: 25px;
    font-weight: 500;
}

form {
    display: flex;
    width: 100%;
}

input[type="search"] {
    flex: 1;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #a2a9b1;
    outline: none;
}

input[type="search"]:focus {
    border-color: #36c;
}

button {
    padding: 0 25px;
    border: 1px solid #2a4b8d;
    background: #36c;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #2a4b8d;
}

#search-suggestions {
    width: 100%;
    background: white;
    border: 1px solid #a2a9b1;
    margin-top: 5px;
    display: none;
}

.search-suggestion {
    display: block;
    padding: 12px 15px;
    color: #202122;
    text-decoration: none;
    border-bottom: 1px solid #eaecf0;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion:hover {
    background: #f8f9fa;
    color: #36c;
}

article {
    padding: 18px 0;
    border-top: 1px solid #eaecf0;
}

article:first-of-type {
    border-top: none;
}

article h3 {
    margin: 0 0 8px;
    color: #36c;
    font-size: 19px;
}

article p {
    margin: 0;
    line-height: 1.6;
    color: #54595d;
}

footer {
    margin-top: 60px;
    padding: 25px;
    text-align: center;
    background: white;
    border-top: 1px solid #a2a9b1;
}

footer nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

footer a {
    color: #36c;
    text-decoration: none;
}

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

footer span {
    color: #72777d;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 38px;
    }
    section {
        padding: 22px;
    }
    form {
        flex-direction: column;
    }
    input[type="search"] {
        width: 100%;
    }
    button {
        padding: 13px;
        margin-top: 8px;
    }
}