/* =========================
   Base
========================= */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    color: #111;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* =========================
   Layout
========================= */

.container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    line-height: 1.7;
}

/* =========================
   Navigation
========================= */

.nav {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    font-size: 15px;
}

.nav a,
.nav a:visited,
.nav a:hover,
.nav a:active {
    text-decoration: none; /* полностью убираем стандартное подчёркивание */
}

.nav a {
    color: #666;
    font-weight: 500;

    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;

    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
    color: #111;
    border-bottom-color: #ddd; /* лёгкая линия при наведении */
}

.nav a.active {
    color: #111;
    font-weight: 600;
    border-bottom-color: #111; /* активная страница */
}

/* =========================
   Typography
========================= */

h1 {
    font-size: 34px;
    margin-bottom: 6px;
    font-weight: 600;
}

.subtitle {
    font-size: 18px;
    margin-bottom: 4px;
    font-weight: 500;
}

.meta {
    color: #777;
    margin-bottom: 40px;
    font-size: 14px;
}

h2 {
    margin-top: 40px;
    font-size: 20px;
    font-weight: 600;
}

ul {
    padding-left: 20px;
}

/* =========================
   Content Links (НЕ nav)
========================= */

main a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    transition: border-color 0.2s ease;
}

main a:hover {
    border-bottom-color: #000;
}

/* =========================
   Footer
========================= */

footer {
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #777;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    margin-right: 16px;
    text-decoration: none;
    color: #666;
    border-bottom: none;
}

.footer-links a:hover {
    color: #000;
}
