/* Общие стили для сайта 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;
}

/* Кнопка "Войти" */
.login-btn {
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.login-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

/* Основной контент */
main {
    min-height: calc(100vh - 140px);
}

.section { 
    padding: 32px 0; 
}

/* Сетки */
.ol-grid { 
    display: grid; 
    gap: 16px; 
}

.ol-grid--2 { 
    grid-template-columns: repeat(2, 1fr); 
}

.ol-grid--3 { 
    grid-template-columns: repeat(3, 1fr); 
}

.ol-grid--4 { 
    grid-template-columns: repeat(4, 1fr); 
}

/* Карточки */
.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;
}

.service-card img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
    border-radius: 6px; 
    margin-bottom: 8px; 
}

/* Кнопки */
.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-large {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* Формы, инпуты */
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);
}

/* Подвал */
.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 { 
    margin-right: 8px; 
    text-decoration: none;
    color: #2563eb;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    text-align: center;
    color: #6b7280;
}

/* Уроки */
.ol-lesson .ol-layout { grid-template-columns: 1fr; }
.ol-lesson__media img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 6px;
}

.section-title { 
    margin: 0 0 16px; 
    font-size: 24px; 
}

@media (max-width: 520px) { 
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 16px; }
}


