/* klass.css - Стили для страницы класса */

/* ===== Global Fix для модального окна ===== */
html {
    overflow-y: scroll;
}

body.modal-open {
    overflow: hidden;
}

/* ===== Breadcrumbs - НОВЫЙ ДИЗАЙН ===== */
.breadcrumbs {
    padding: 100px 0 20px;
    background: #ffffff;
    border-bottom: 1px solid #f0f2f5;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.breadcrumbs-list a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.breadcrumbs-list a:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.breadcrumbs-list a i {
    margin-right: 6px;
    font-size: 12px;
}

.breadcrumbs-list .separator {
    color: #d1d5db;
    font-size: 12px;
    margin: 0 4px;
}

.breadcrumbs-list .current {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 30px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 10px -2px rgba(37, 99, 235, 0.3);
}

.breadcrumbs-list .current i {
    margin-right: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 90px 0 15px;
    }

    .breadcrumbs-list a,
    .breadcrumbs-list .current {
        padding: 4px 10px;
        font-size: 13px;
    }

    .breadcrumbs-list a i {
        margin-right: 4px;
    }
}

/* ===== Class Hero ===== */
.class-hero {
    padding: 40px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.class-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.class-title {
    font-size: 42px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.class-subtitle {
    font-size: 16px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
}

.class-actions {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.class-actions .btn {
    padding: 14px 32px;
    font-size: 16px;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

.class-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.class-stats .stat-item {
    text-align: center;
}

.class-stats .stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.class-stats .stat-label {
    font-size: 13px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Class Subjects ===== */
.class-subjects {
    padding: 60px 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 15px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.subject-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transition: height 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: transparent;
}

.subject-card:hover::before {
    height: 100%;
}

.subject-icon {
    font-size: 42px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.subject-card:hover .subject-icon {
    transform: scale(1.05);
}

.subject-content {
    flex: 1;
}

.subject-content h3 {
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 700;
}

.subject-content p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.5;
}

.subject-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.subject-link i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.subject-link:hover {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}

.subject-link:hover i {
    transform: translateX(5px);
}

/* ===== Class Tasks ===== */
.class-tasks {
    padding: 60px 0;
    background: #f9fafb;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.task-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.task-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
    transform: translateY(-3px);
}

.task-icon {
    font-size: 32px;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.task-card:hover .task-icon {
    transform: scale(1.1) rotate(5deg);
}

.task-content {
    flex: 1;
}

.task-content h3 {
    font-size: 15px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1f2937;
}

.task-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.task-link i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.task-link:hover i {
    transform: translateX(5px);
}

/* ===== Recommended Tools ===== */
.recommended-tools {
    padding: 60px 0;
    background: #ffffff;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tool-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.tool-card:hover::after {
    transform: translateX(0);
}

.tool-icon {
    font-size: 44px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-content {
    flex: 1;
}

.tool-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
}

.tool-content p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.5;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.tool-link i {
    transition: transform 0.2s ease;
}

.tool-link:hover i {
    transform: translateX(5px);
}

/* ===== Other Grades ===== */
.other-grades {
    padding: 60px 0;
    background: #f9fafb;
}

.grades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 30px auto 0;
}

.grade-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #1f2937;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.grade-card:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

.grade-card.active {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border-color: transparent;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* ===== About Text Section ===== */
.about-text-section {
    padding: 60px 0;
    background: #ffffff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text-block {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    margin: 30px 0;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.about-text-block p {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 20px;
}

.about-text-block p:last-child {
    margin-bottom: 0;
}

.about-text-block strong {
    color: #2563eb;
    font-weight: 600;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f3f4f6;
    border-radius: 40px;
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.feature-item:hover i {
    color: #ffffff;
}

.feature-item i {
    color: #10b981;
    font-size: 14px;
    transition: color 0.2s ease;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 60px 0;
    background: #f9fafb;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 16px;
    font-size: 14px;
}

.testimonial-rating i {
    margin-right: 2px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 30px;
    color: #2563eb;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f0f2f5;
    padding-top: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 10px -2px rgba(37, 99, 235, 0.3);
}

.author-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 700;
}

.author-info p {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 60px 0;
    background: #ffffff;
}

.faq-list {
    max-width: 700px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 10px -2px rgba(37, 99, 235, 0.1);
}

.faq-question {
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: #2563eb;
}

.faq-question i {
    color: #2563eb;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 22px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 22px 22px;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-title {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.cta-section .btn {
    background: #ffffff;
    color: #2563eb;
    padding: 16px 40px;
    font-size: 18px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    border: none;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.3);
}

/* ===== Upload Modal ===== */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.upload-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 2001;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.upload-modal.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 22px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 20px;
    margin: 0;
    font-weight: 700;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #2563eb;
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-description {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.upload-area {
    border: 2px dashed #e5e7eb;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: #2563eb;
    background: #f8fafc;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    color: #2563eb;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-text {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: #1f2937;
}

.upload-hint {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 20px;
}

.upload-formats {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.format-badge {
    padding: 6px 16px;
    background: #f3f4f6;
    border-radius: 30px;
    font-size: 12px;
    color: #4b5563;
    font-weight: 500;
}

.modal-examples {
    background: #f9fafb;
    border-radius: 16px;
    padding: 20px;
}

.examples-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.example-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

.example-item i {
    color: #10b981;
    font-size: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .class-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .class-hero {
        padding: 30px 0 40px;
    }

    .class-title {
        font-size: 28px;
    }

    .class-subtitle {
        font-size: 15px;
    }

    .class-stats {
        flex-direction: column;
        gap: 20px;
    }

    .subjects-grid,
    .tasks-grid,
    .tools-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .grades-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    .about-text-block {
        padding: 25px;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .grades-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-features {
        flex-direction: column;
        align-items: stretch;
    }

    .feature-item {
        justify-content: center;
    }

    .testimonial-card {
        padding: 20px;
    }

    .cta-section .btn {
        padding: 14px 30px;
        font-size: 16px;
    }
}