/* ======================================================
   СБРОС СТИЛЕЙ
====================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

/* ======================================================
   ОБЩИЕ СТИЛИ
====================================================== */
body {
    font-family: Arial, sans-serif;
    background: #222222;
    color: #333333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

/* ======================================================
   АВТОРИЗАЦИЯ И РЕГИСТРАЦИЯ
====================================================== */
body.auth-page {
    justify-content: center;
    align-items: center;
}

.auth-header {
}

.auth-box {
    width: 400px;
    max-width: 90%;
    background: #222222;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-box h2 {
    margin-bottom: 20px;
    color: #ffffff;
}

.auth-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccd1d9;
    border-radius: 6px;
    font-size: 14px;
}

.auth-box input:focus {
    outline: none;
    border-color: #4a90e2;
}

.auth-box button {
    width: 100%;
    padding: 12px;
    background: #4a90e2;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-box button:hover {
    background: #357abd;
}

.auth-box p {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.auth-box a {
    color: #4a90e2;
    text-decoration: none;
}

.auth-box a:hover {
    text-decoration: underline;
}

.text {
    color: #ffffff;
}

.error {
    background: #ffe5e5;
    color: #c0392b;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

.success {
    background: #e8f8e8;
    color: #27ae60;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

/* ======================================================
   ОСНОВНАЯ СТРАНИЦА
====================================================== */
body.main-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ======================================================
   ШАПКА
====================================================== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    background: #222222;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* position: relative; */
    /* position: fixed; */
	width: 100%;
	

	position: sticky;
    top: 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

/* ======================================================
   МЕНЮ
====================================================== */
.menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
}

.menu a:hover {
    color: #4a90e2;
}

/* ======================================================
   КНОПКА МЕНЮ
====================================================== */
.burger {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
}

/* ======================================================
   ОСНОВНОЙ КОНТЕНТ
====================================================== */
.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    background: #ffffff;
    padding: 40px;
}

.content h1,
.content h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.content p {
    margin-bottom: 12px;
}

/* ======================================================
   ТАБЛИЦЫ
====================================================== */
.table {
    width: 100%;max-width: 1200px; /* по желанию, чтобы не растягивалась слишком сильно */
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    border: 1px solid #dddddd;
    padding: 12px;
    text-align: left;
}

.table th {
    background: #f5f5f5;
}

/* ======================================================
   FOOTER
====================================================== */
.footer {
    text-align: center;
    padding: 15px;
    background: #222222;
    color: #ffffff;
    font-size: 14px;
}

/* ======================================================
   КНОПКА "НАВЕРХ"
====================================================== */
#toTopBtn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #222222;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#toTopBtn:hover {
    background: #357abd;
}

/* ======================================================
   МОБИЛЬНАЯ ВЕРСИЯ
====================================================== */
@media (max-width: 768px) {

    .header {
        padding: 15px 20px;
    }

    .logo {
        font-size: 26px;
    }

    .burger {
        display: block;
        font-size: 34px;
    }

    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        width: 260px;
        background: #ffffff;
        border: 1px solid #dddddd;
        border-radius: 10px;
        padding: 15px;
        gap: 10px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        color: #333333;
        font-size: 20px;
        padding: 12px 14px;
        border-radius: 8px;
    }

    .menu a:hover {
        background: #f5f5f5;
        color: #4a90e2;
    }

    .content {
        padding: 20px 16px;
        font-size: 18px;
    }

    .content h1,
    .content h2 {
        font-size: 30px;
    }

    .table {
        width: 100%;
        overflow-x: visible;
        display: table;
        white-space: normal;
        font-size: 18px;
    }

    .table th,
    .table td {
        padding: 12px 14px;
        font-size: 18px;
    }

    .footer {
        font-size: 16px;
        padding: 16px;
    }

    #toTopBtn {
        width: 56px;
        height: 56px;
        font-size: 28px;
        right: 16px;
        bottom: 16px;
    }
}