* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #111;
    color: #eee;
}

/* Шапка */
.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 24px;
    background-color: #1a1a1a;
}

/* Логотип */
.logo {
    justify-self: start;
}

.logo a {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}

/* Страницы */
.nav-links {
    justify-self: center;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #ccc;
}

.nav-links a:hover {
    text-decoration: underline;
    color: #fff;
}

/* Соцсети */
.fa-brands::before {
  content: var(--fa)/"";
  display: inline-block;
  font-style: normal;
  font-family: var(--fa-family-brands);
}

.social-links {
    justify-self: end;
    display: flex;
    gap: 16px;
}

.social-links a {
    color: #ccc;
    font-size: 1.2rem;
}

.social-links a:hover {
    color: #fff;
}

/* Контент */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    text-align: center;
}

/* Подвал */
.footer {
    text-align: center;
    padding: 12px;
    background-color: #1a1a1a;
    font-size: 0.9rem;
    color: #aaa;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .header {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-content {
        font-size: 1.6rem;
        padding: 20px;
    }
}
