* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
    border-radius: 0 0 20px 20px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 55px;
    height: 55px;
    border-radius: 10px;
}

.school-name {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.auth-link {
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border: 2px solid white;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.auth-link:hover {
    background: white;
    color: #667eea;
}

.nav-menu {
    background: white;
    padding: 15px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
    border-radius: 15px;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 0 20px;
}

.nav-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #667eea;
    color: white;
}

.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    margin: 20px auto;
    max-width: 1200px;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.5));
    z-index: 1;
    border-radius: 20px;
}

.banner-text {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 48px;
    font-weight: bold;
    text-align: right;
    line-height: 1.2;
    z-index: 2;
    max-width: 300px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.teachers {
    padding: 60px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.teachers-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.teacher-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid #667eea;
}

.teacher-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.teacher-description {
    color: #666;
    font-size: 14px;
}

.networks {
    padding: 60px 0;
    background: #f8f9fa;
}

.networks-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.networks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.network-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.network-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.network-description {
    color: #666;
    font-size: 14px;
}

.cta-section {
    padding: 60px 0;
    background: white;
    text-align: center;
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0 20px;
    border-radius: 20px 20px 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.contact-info {
    margin-bottom: 15px;
}

.email-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: transform 0.3s ease;
}

.email-button:hover {
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
}

@media (max-width: 768px) {
    .banner-text {
        font-size: 36px;
        right: 5%;
        max-width: 250px;
    }
    
    .school-name {
        font-size: 20px;
    }
    
    .nav-content {
        gap: 30px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .banner {
        margin: 10px;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .banner-text {
        font-size: 28px;
        right: 5%;
        max-width: 200px;
    }
    
    .school-name {
        font-size: 18px;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .teachers-grid {
        grid-template-columns: 1fr;
    }
    
    .banner {
        border-radius: 10px;
    }
}


/* Дополнительные стили для форм */
.auth-section {
    display: flex;
    gap: 10px;
}

.form-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.form-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.form-link {
    text-align: center;
    margin-top: 20px;
}

.form-link a {
    color: #667eea;
    text-decoration: none;
}

.form-link a:hover {
    text-decoration: underline;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #ffeaea;
    border-radius: 5px;
}

.success-message {
    color: #27ae60;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #eaffea;
    border-radius: 5px;
}


/* Стили для карточек занятий */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.lesson-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.lesson-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.lesson-course {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.lesson-content {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .form-container {
        margin: 20px;
        padding: 20px;
    }
    
    .lessons-grid {
        grid-template-columns: 1fr;
    }
}
.about-section {
    padding: 60px 0;
    background: white;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content {
    margin-top: 40px;
}

.about-text h2 {
    color: #333;
    margin: 30px 0 15px 0;
    font-size: 24px;
}

.about-text h2:first-child {
    margin-top: 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.advantage-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.advantage-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
    text-align: center;
}

.stat-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
}

/* Стили для страницы тестирования */
.test-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.test-header {
    text-align: center;
    margin-bottom: 40px;
}

.test-header h1 {
    color: #333;
    margin-bottom: 15px;
}

.test-question {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
}

.test-question h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-label:hover {
    border-color: #667eea;
    background: #f0f7ff;
}

.option-label input[type="radio"] {
    margin-right: 12px;
}

.test-submit {
    text-align: center;
    margin-top: 30px;
}

/* Стили для страницы материалов */
.materials-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
}

.result-section {
    text-align: center;
    margin-bottom: 50px;
}

.result-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.result-card.отлично {
    border-top: 5px solid #27ae60;
}

.result-card.хорошо {
    border-top: 5px solid #f39c12;
}

.result-card.нужно_поработать {
    border-top: 5px solid #e74c3c;
}

.result-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.result-card h2 {
    color: #333;
    margin-bottom: 15px;
}

.score {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    margin-top: 15px;
}

.materials-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.material-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #667eea;
}

.download-section {
    text-align: center;
    margin: 40px 0;
}

.download-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.file-info {
    color: #666;
    margin-top: 10px;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .test-container,
    .materials-container {
        margin: 15px;
        padding: 20px;
    }
    
    .options-grid {
        gap: 8px;
    }
    
    .option-label {
        padding: 12px;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для страницы каталога */
.catalog-section {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 80vh;
}

.catalog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.course-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.course-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    color: white;
}

.course-title {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.3;
}

.course-details {
    padding: 25px;
}

.course-info {
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
    font-weight: bold;
}

.course-description {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.course-description p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

.catalog-cta {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.no-courses {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.no-courses h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.no-courses p {
    color: #666;
    font-size: 16px;
}

/* Адаптивность для каталога */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .course-card {
        margin: 0 10px;
    }
    
    .course-header {
        padding: 20px;
    }
    
    .course-details {
        padding: 20px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .catalog-section {
        padding: 30px 0;
    }
    
    .courses-grid {
        margin: 20px 0;
    }
    
    .course-title {
        font-size: 20px;
    }
}

/* Стили для страницы домашних заданий */
.homeworks-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.homework-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.homework-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Адаптивность для страницы домашних заданий */
@media (max-width: 768px) {
    .homework-card {
        padding: 20px !important;
    }
    
    .homework-card .grid-columns {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

/* Стили для форм оценки */
.score-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.comment-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
/* Адаптивность для кнопки CTA */
@media (max-width: 768px) {
    .cta-button {
        padding: 12px 25px;
        font-size: 16px;
        display: inline-block;
        width: auto;
        max-width: 100%;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
        margin: 0 10px;
        width: calc(100% - 20px);
    }
}

/* Улучшение для кнопки в каталоге */
.catalog-cta .cta-button {
    margin: 20px auto;
    display: inline-block;
}

/* Стили для выпадающего списка курсов */
select[multiple] {
    height: auto;
    min-height: 100px;
    padding: 10px;
}

select[multiple] option {
    padding: 8px;
    margin: 2px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

select[multiple] option:hover {
    background-color: #667eea;
    color: white;
}

select[multiple] option:checked {
    background-color: #667eea;
    color: white;
}

/* Подсказка для выбора нескольких курсов */
.form-group small {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* Адаптивность для формы регистрации */
@media (max-width: 768px) {
    .form-container {
        margin: 20px;
        padding: 20px;
    }
    
    select[multiple] {
        min-height: 80px;
    }
}