/* chatgpt.css - ФИНАЛЬНАЯ ВЕРСИЯ */
/* ===== Global Fix для модального окна ===== */
html {
    overflow-y: scroll; /* Всегда показываем скролл */
}

body.modal-open {
    overflow: hidden;
    padding-right: 0 !important; /* Убираем лишний padding */
}
/* ===== Hero Premium ===== */
.hero-premium {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    text-align: center;
}

.hero-badge {
    margin-bottom: 20px;
}

.badge-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

.hero-premium .hero-title {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-premium .hero-subtitle {
    font-size: 16px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-actions {
    margin-bottom: 40px;
}

.hero-actions .btn {
    padding: 14px 32px;
    font-size: 16px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.hero-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;
}

.hero-stats .stat-label {
    font-size: 13px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Subjects Premium ===== */
.subjects-premium {
    padding: 80px 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.subject-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    transition: all 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: #2563eb;
}

.subject-icon {
    font-size: 48px;
    width: 70px;
    height: 70px;
    background: #f3f4f6;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subject-content {
    flex: 1;
}

.subject-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.subject-content p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.5;
}

.subject-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.subject-link i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.subject-link:hover i {
    transform: translateX(4px);
}

/* ===== Tools Premium ===== */
.tools-premium {
    padding: 80px 0;
    background: #f9fafb;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.tool-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    transition: all 0.3s ease;
}

.tool-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: #2563eb;
}

.tool-icon {
    font-size: 48px;
    width: 70px;
    height: 70px;
    background: #f3f4f6;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-content {
    flex: 1;
}

.tool-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.tool-content p {
    font-size: 14px;
    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 {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.tool-link:hover i {
    transform: translateX(4px);
}

/* ===== Grades Premium ===== */
.grades-premium {
    padding: 80px 0;
    background: #ffffff;
}

.grades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 40px auto 0;
}

.grade-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #1f2937;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.grade-card:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

/* ===== Testimonials Premium ===== */
.testimonials-premium {
    padding: 80px 0;
    background: #f9fafb;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 16px;
}

.testimonial-rating i {
    margin-right: 2px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.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;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* ===== FAQ Premium ===== */
.faq-premium {
    padding: 80px 0;
    background: #ffffff;
}

.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    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;
}

.faq-question i {
    color: #2563eb;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 24px;
}

/* ===== CTA Premium ===== */
.cta-premium {
    padding: 80px 0;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    text-align: center;
}

.cta-premium .cta-title {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-premium .cta-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-premium .btn {
    background: #ffffff;
    color: #2563eb;
    padding: 16px 40px;
    font-size: 18px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.cta-premium .btn:hover {
    transform: translateY(-2px);
    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: 24px 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 20px;
    margin: 0;
}

.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: #e5e7eb;
    color: #2563eb;
}

.modal-body {
    padding: 0 24px 24px;
}

.modal-description {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 24px;
    text-align: center;
}

.upload-area {
    border: 2px dashed #e5e7eb;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.upload-area:hover {
    border-color: #2563eb;
    background: #f9fafb;
}

.upload-icon {
    font-size: 48px;
    color: #2563eb;
    margin-bottom: 16px;
}

.upload-text {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2937;
}

.upload-hint {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 20px;
}

.upload-formats {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.format-badge {
    padding: 6px 16px;
    background: #f3f4f6;
    border-radius: 100px;
    font-size: 12px;
    color: #4b5563;
}

.modal-examples {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
}

.examples-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.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: 768px) {
    .hero-premium .hero-title {
        font-size: 32px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .subjects-grid,
    .tools-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .grades-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .grades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ===== Solvers Premium ===== */
.solvers-premium {
    padding: 80px 0;
    background: #ffffff;
}

.solvers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.solver-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.solver-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.solver-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.solver-content {
    flex: 1;
}

.solver-content h3 {
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 600;
}

.solver-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.solver-link i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.solver-link:hover i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .solvers-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== About Gdz Section ===== */
.about-gdz {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-gdz::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.about-gdz-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-gdz-text {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 40px;
    margin: 30px 0 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.about-gdz-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 20px;
}

.about-gdz-text p:last-child {
    margin-bottom: 0;
}

.about-gdz-text strong {
    color: #2563eb;
    font-weight: 600;
}

.about-gdz-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.about-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
    border-color: #2563eb;
}

.about-feature i {
    font-size: 24px;
    color: #2563eb;
    width: 32px;
    text-align: center;
}

.about-feature span {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
}

/* ===== Responsive для About Gdz ===== */
@media (max-width: 992px) {
    .about-gdz-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-gdz-text {
        padding: 30px 20px;
    }

    .about-gdz-text p {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .about-gdz-features {
        grid-template-columns: 1fr;
    }

    .about-feature {
        padding: 14px 16px;
    }
}