/* === ГЛОБАЛЬНЫЕ НАСТРОЙКИ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #004481;           /* Тёмно-голубой основной */
    --primary-hover: #0056b3;     /* Светлее для ховера */
    --primary-light: #e6f0fa;     /* Очень светлый фон */
    --primary-border: #b3cde0;    /* Границы */
    --text-dark: #333333;         /* Основной текст */
    --text-muted: #666666;        /* Второстепенный текст */
    --text-light: #ffffff;        /* Текст на тёмном */
    --bg-light: #f8f9fa;          /* Светлый фон блоков */
    --shadow: 0 4px 12px rgba(0, 68, 129, 0.1);
    --shadow-hover: 0 6px 20px rgba(0, 68, 129, 0.2);
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* === HEADER / NAVBAR === */
.navbar,
.page-header {
    background: var(--primary);
    color: var(--text-light);
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.page-header {
    text-align: center;
    padding: 20px;
}

.page-header h1 {
    font-size: 1.8rem;
    margin: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-light);
    background-color: rgba(255,255,255,0.15);
    text-decoration: none;
}

/* === КОНТЕЙНЕРЫ === */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

main {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/* === КНОПКИ === */
.btn,
.btn-login,
.submit-btn,
.lesson-link {
    display: inline-block;
    background: var(--primary);
    color: var(--text-light);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.btn:hover,
.btn-login:hover,
.submit-btn:hover,
.lesson-link:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--text-light);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

/* === ФОРМЫ === */
.registration-form,
.login-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 450px;
    margin: 0 auto;
}

.login-card h2,
.registration-form h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--primary-border);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 68, 129, 0.15);
}

.link-register {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
}

.link-register a {
    font-weight: 500;
}

/* === ПРОФИЛЬ === */
.profile-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
}

.profile-card h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.profile-info {
    background: var(--primary-light);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--primary);
    text-align: left;
}

.profile-info p {
    margin: 8px 0;
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* === УРОКИ / КАРТОЧКИ === */
.main-content-text {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.main-content-text h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.centered-list {
    list-style-position: inside;
    padding-left: 0;
    text-align: center;
    margin: 15px 0;
}

.centered-list li {
    margin-bottom: 8px;
}

/* Прогресс */
.progress-section {
    text-align: center;
    margin: 30px auto;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 700px;
}

.progress-section h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background-color: var(--primary-light);
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0;
    border: 2px solid var(--primary-border);
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 10px;
}

.video-status {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.video-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary-border);
    border: 2px solid var(--primary);
}

.video-dot.watched {
    background-color: var(--primary);
}

/* Уведомление о завершении */
.completion-notification {
    background: var(--primary-light);
    color: var(--primary);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    margin: 25px auto;
    max-width: 600px;
    border: 2px solid var(--primary-border);
    font-weight: 500;
}

.completion-notification h3 {
    margin-bottom: 10px;
}

/* Карточки уроков */
.lessons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.lesson-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.lesson-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.lesson-card h2 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.lesson-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.video-status-label {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 10px 0;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}

.video-status-label.watched {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary-hover);
}

.lessons-actions {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

/* Финальное сообщение */
.final-message {
    text-align: center;
    margin: 40px auto;
    max-width: 750px;
    padding: 25px;
    background: var(--primary-light);
    border-radius: 10px;
    border-left: 5px solid var(--primary);
}

.final-message p {
    margin: 12px 0;
    font-size: 1.05rem;
}

.final-message strong {
    color: var(--primary);
}

/* === БЛОКИ КОНТЕНТА (about.html) === */
.content-block,
.main-content {
    background: white;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.content-block h2,
.main-content h2 {
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-light);
    font-size: 1.5rem;
}

.content-block ul,
.content-block ol {
    margin-left: 25px;
    margin-top: 12px;
}

.content-block li,
.main-content li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.content-block p,
.main-content p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.content-block strong,
.main-content strong {
    color: var(--primary);
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 25px 20px;
    background: var(--primary);
    color: var(--text-light);
    margin-top: 40px;
    font-size: 0.95rem;
}

footer a {
    color: var(--text-light);
    text-decoration: underline;
}

footer a:hover {
    color: var(--primary-light);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
        flex-wrap: wrap;
    }
    
    .nav-links a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    main,
    .registration-form,
    .login-card,
    .profile-card {
        padding: 20px;
    }
    
    .lessons-container {
        grid-template-columns: 1fr;
    }
}
/* === СТРАНИЦА КОМАНДЫ (TEAM.HTML) === */.

.lessons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.lesson-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.lesson-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.lesson-card h2 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.lesson-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Адаптивность для страницы команды */
@media (max-width: 768px) {
    .lessons-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lesson-card {
        padding: 20px;
    }
}
