/* ---------- Общие стили ---------- */
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    margin: 0;
    background: #f5f5f5;
    color: #333;
}
header, footer {
    background: #0073e6;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}
header h1 {
    margin: 0.3rem 0;
}

/* ---------- Меню ---------- */
nav {
    margin-top: 0.5rem;
}
.menu {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.2rem 0;
    position: relative;
}
.menu li a::after {
    content: "";
    display: block;
    height: 2px;
    background: #fff;
    width: 0;
    transition: width .3s;
    position: absolute;
    left: 0;
    bottom: -4px;
}
.menu li a:hover::after,
.menu li a.active::after {
    width: 100%;
}

/* ---------- Основное содержимое ---------- */
main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}
section {
    background: #fff;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
a {
    color: #0073e6;
}

/* ---------- Подвал ---------- */
footer {
    font-size: 0.9rem;
}
