/* Шапка сайта */

.site-header {
    background: #0f172a;
    color: #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 68px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    font-weight: 800;
}

.main-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    flex: 1 1 auto;
}

.main-nav a {
    color: #cbd5f5;
    font-size: 15px;
}

.main-nav a:hover {
    color: #ffffff;
    text-decoration: none;
}

.auth-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
}

.auth-nav a {
    color: #cbd5f5;
}

.inline-form {
    display: inline;
    margin: 0;
}

.link-button {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
}

/* Подвал */

.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 32px 0;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 6px;
}

.footer-note {
    max-width: 520px;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

/* Адаптивность шапки */

@media (max-width: 640px) {
    .header-inner {
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .main-nav {
        order: 3;
        width: 100%;
    }
}
