* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background: #fff;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ====== Общий центрированный контейнер ====== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ====== Чёрная полоса со ссылками ====== */
.topbar {
    height: 40px;
    background: #000;
}

.topbar .container {
    height: 100%;
    display: flex;
    justify-content: flex-end;
    /* ссылки справа внутри контейнера */
    align-items: center;
    gap: 30px;
}

.topbar a {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

.topbar a:hover {
    text-decoration: underline;
}

/* ====== Серая шапка с логотипом ====== */
.header {
    background: #f0f0f0;
    padding: 27px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 40px;
    letter-spacing: 10px;
}

.logo-m {
    background: #e3232b;
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0;
    margin-right: 12px;
    font-weight: 300;
    font-size: 36px;
}

.logo-text {
    text-decoration: none;
}

/* ====== Форма входа ====== */
.main {
    flex: 1;
    padding: 89px 0;
}

.login-form {
    width: 405px;
    margin-left: 270px;
    /* ← сдвиг формы от левого края контейнера */
    display: flex;
    flex-direction: column;
}

.login-form label {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 3px;
}

.login-form input {
    height: 20px;
    border: 1px solid #888;
    border-radius: 3px;
    margin-bottom: 3px;
}

.login-form button {
    align-self: flex-end;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid #888;
    border-radius: 3px;
    background: #f0f0f0;
    cursor: pointer;
}

/* ====== Подвал ====== */
.footer {
    height: 150px;
    background: #f0f0f0;
}