/* Общие стили для сайта UrokOnline */
body { 
    font-family: Arial, sans-serif; 
    line-height: 1.6; 
    color: #222; 
    margin: 0; 
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 16px; 
}

/* Заголовки */
h1 {
    font-size: 28px;
    margin: 0 0 16px;
    color: #111;
}

h2 {
    font-size: 22px;
    margin: 24px 0 12px;
    color: #333;
}

h3 {
    font-size: 18px;
    margin: 20px 0 8px;
    color: #444;
}

/* Параграфы */
p {
    margin: 8px 0;
    color: #333;
}

/* Шапка */
.header { 
    background: #f3f4f6; 
    border-bottom: 1px solid #e5e7eb; 
    position: sticky; 
    top: 0; 
    z-index: 100;
}

.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 0; 
    flex-wrap: wrap;
    gap: 16px;
}

.ol-logo { 
    text-decoration: none; 
    color: #111; 
    font-weight: 700; 
    font-size: 20px;
}

.nav { 
    display: flex; 
    gap: 16px; 
    flex-wrap: wrap;
}

.nav a { 
    text-decoration: none; 
    color: #333; 
    padding: 6px 10px; 
    border: 1px solid transparent; 
    border-radius: 6px; 
    transition: all 0.2s;
}

.nav a:hover { 
    border-color: #d1d5db; 
    background: #fff; 
}

.nav a.is-active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* Правая часть шапки */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Основной контент */
main {
    min-height: calc(100vh - 140px);
}

.section { 
    padding: 32px 0; 
}

/* Карточки и формы */
.card { 
    border: 1px solid #e5e7eb; 
    border-radius: 8px; 
    padding: 16px; 
    background: #fff; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.auth-form {
    max-width: 500px;
    margin: 0 auto;
}

.auth-form .card {
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #374151;
}

input[type="text"], 
input[type="email"], 
input[type="password"], 
select, 
textarea { 
    padding: 8px 10px; 
    border: 1px solid #d1d5db; 
    border-radius: 6px; 
    width: 100%; 
    box-sizing: border-box;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Кнопки */
.btn { 
    display: inline-block; 
    padding: 8px 12px; 
    border: 1px solid #d1d5db; 
    background: #f9fafb; 
    border-radius: 6px; 
    text-decoration: none; 
    color: #111; 
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.btn:hover { 
    opacity: 0.9; 
    background: #f3f4f6;
}

.btn-primary { 
    background: #2563eb; 
    border-color: #2563eb; 
    color: #fff; 
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-full { width: 100%; }

/* Подвал */
.footer { 
    background: #f3f4f6; 
    border-top: 1px solid #e5e7eb; 
    padding: 20px 0; 
    margin-top: 32px; 
}

.footer-content {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer-section { min-width: 200px; }
.footer-section a { color: #2563eb; text-decoration: none; margin-right: 8px; }
.footer-section a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid #e5e7eb; padding-top: 16px; text-align: center; color: #6b7280; }

@media (max-width: 520px) { 
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 16px; }
}


