[x-cloak] { display: none !important; }
.lesson-item {
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #e5e7eb;
}
.lesson-item:hover {
    /* border-color: #4287f5; */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.lesson-number {
    color: #4287f5;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 2rem;
    text-align: center;
}
.start-button {
    background: #4287f5;
    transition: all 0.3s ease;
}
.start-button:hover {
    background: #2563eb;
}
.search-input {
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}
.search-input:focus {
    border-color: #4287f5;
    box-shadow: 0 0 0 3px rgba(66, 135, 245, 0.1);
}
[x-cloak] { display: none !important; }
body {
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
}
.answer-option {
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: visible;
}
.answer-option:hover {
    border-color: #4287f5;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.answer-option.correct {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    border-color: #059669;
    color: white;
    animation: correctAnswer 0.5s ease-out;
}
.answer-option.incorrect {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    border-color: #DC2626;
    color: white;
    animation: incorrectAnswer 0.5s ease-out;
}
.timer {
    font-family: 'Inter', monospace;
    color: #4287f5;
}
@keyframes correctAnswer {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
@keyframes incorrectAnswer {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}
.progress-dot {
    transition: all 0.3s ease;
}
.progress-dot:hover {
    transform: scale(1.1);
}
.question-card {
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
}
.stats-card {
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.stats-card:hover {
    border-color: #4287f5;
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.1);
}
.final-result-modal {
    background: rgba(0, 0, 0, 0.75);
}
.final-result-card {
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 16px -1px rgba(0, 0, 0, 0.1);
}
.gradient-text {
    color: #4287f5;
    font-weight: 600;
}
.explanation-tooltip {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    width: 100%;
    text-align: left;
    animation: tooltipFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.explanation-tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #1a1a1a;
}
@keyframes tooltipFadeIn {
    from { 
        opacity: 0; 
        transform: translateX(-50%) translateY(-80%);
    }
    to { 
        opacity: 1; 
        transform: translateX(-50%) translateY(-100%);
    }
}

/* Стили для страницы профиля */
.profile-container {
    max-width: 1000px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
}

.tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    height: fit-content;
}

.tab {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tab svg {
    width: 1.25rem;
    height: 1.25rem;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.tab:hover {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.5);
}

.tab:hover svg {
    opacity: 1;
}

.tab.active {
    color: white;
    background: linear-gradient(135deg, #4287f5, #2563eb);
    box-shadow: 0 2px 4px rgba(66, 135, 245, 0.15);
}

.tab.active svg {
    opacity: 1;
}

.tab-content {
    display: none;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Стили для разделов */
.section-title {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #4287f5;
}

.settings-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #475569;
    font-size: 0.9rem;
}

.form-group input[type="number"] {
    width: 100px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.form-group input[type="number"]:focus {
    border-color: #4287f5;
    box-shadow: 0 0 0 2px rgba(66, 135, 245, 0.1);
    outline: none;
    background: white;
}

.form-group input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.25rem;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-group input[type="checkbox"]:checked {
    background: #4287f5;
    border-color: #4287f5;
}

.btn-save {
    background: linear-gradient(135deg, #4287f5, #2563eb);
    color: white;
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    width: fit-content;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-save svg {
    width: 1.1rem;
    height: 1.1rem;
}

.btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 135, 245, 0.2);
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #4287f5;
    opacity: 0.7;
}

.info-item:hover {
    border-color: #4287f5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-item:hover svg {
    opacity: 1;
}

.info-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.info-value {
    color: #1e293b;
    font-size: 1rem;
}

/* Стили для формы смены пароля */
.settings-form h3 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-form h3 svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #4287f5;
}

.settings-form input[type="password"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.settings-form input[type="password"]:focus {
    border-color: #4287f5;
    box-shadow: 0 0 0 2px rgba(66, 135, 245, 0.1);
    outline: none;
    background: white;
}

/* Стили для пустой статистики */
.empty-stats {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-stats svg {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

/* Стили для страниц авторизации и регистрации */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.auth-title {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form {
    display: grid;
    gap: 1.25rem;
}

.auth-form .form-group {
    display: grid;
    gap: 0.5rem;
}

.auth-form label {
    font-weight: 500;
    color: #475569;
    font-size: 0.95rem;
}

.auth-form input {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.auth-form input:focus {
    border-color: #4287f5;
    box-shadow: 0 0 0 2px rgba(66, 135, 245, 0.1);
    outline: none;
    background: white;
}

.auth-form button {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #4287f5, #2563eb);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.auth-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 135, 245, 0.2);
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.auth-links a {
    color: #4287f5;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.auth-links a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.auth-divider {
    color: #cbd5e1;
}

.social-login {
    margin-top: 2rem;
    text-align: center;
}

.social-login-title {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.social-button {
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-button.vk {
    background: #4C75A3;
}

.social-button.google {
    background: #DB4437;
}

.social-button.telegram {
    background: #0088cc;
}

.social-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

.message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.5;
}

.message.error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.message.success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* Стили для страницы сброса пароля */
.reset-password-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.reset-password-title {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.reset-password-form {
    display: grid;
    gap: 1.25rem;
}

.reset-password-form .form-group {
    display: grid;
    gap: 0.5rem;
}

.reset-password-form label {
    font-weight: 500;
    color: #475569;
    font-size: 0.95rem;
}

.reset-password-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.reset-password-form input[type="password"]:focus {
    border-color: #4287f5;
    box-shadow: 0 0 0 2px rgba(66, 135, 245, 0.1);
    outline: none;
    background: white;
}

.reset-password-form button {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #4287f5, #2563eb);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.reset-password-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 135, 245, 0.2);
}

.reset-password-links {
    margin-top: 1.5rem;
    text-align: center;
}

.reset-password-links a {
    color: #4287f5;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.reset-password-links a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Стили для главной страницы */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, #f0f9ff, #ffffff, #f0f9ff);
    animation: gradient 15s ease infinite;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0wIDBoNjB2NjBIMHoiLz48cGF0aCBkPSJNMzYuMzQ2IDM2LjM0NmE2IDYgMCAxIDEtOC40ODUtOC40ODUgNiA2IDAgMCAxIDguNDg1IDguNDg1eiIgZmlsbD0iI0U2RUFFOSIvPjwvZz48L3N2Zz4=');
    opacity: 0.2;
}

.hero-content {
    position: relative;
    padding: 5rem 1rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out;
}

.hero-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #2563eb;
    color: white;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.5s ease-out;
}

.hero-button:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

/* Секция преимуществ */
.features-section {
    padding: 5rem 1rem;
    background: white;
}

.features-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 1.5rem;
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: #dbeafe;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #2563eb;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #4b5563;
}

/* Секция технологий */
.tech-section {
    padding: 5rem 1rem;
    background: linear-gradient(to bottom right, #f0f9ff, #ffffff);
}

.tech-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 3rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tech-card {
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tech-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.tech-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tech-icon {
    width: 3rem;
    height: 3rem;
    background: #dbeafe;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.tech-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #2563eb;
}

.tech-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.tech-description {
    color: #4b5563;
    line-height: 1.6;
}

/* Секция призыва к действию */
.cta-section {
    padding: 5rem 1rem;
    background: linear-gradient(to right, #2563eb, #60a5fa);
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.25rem;
    color: #dbeafe;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: #2563eb;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: #f8fafc;
    transform: scale(1.05);
}

/* Футер */
.footer {
    background: #111827;
    color: #d1d5db;
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-description {
    color: #9ca3af;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    margin-bottom: 0.5rem;
}

.footer-link a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Анимации */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для прижатия футера к низу */
html {
    height: 100%;
}

.question-type-indicator {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.question-type-indicator:hover {
    transform: scale(1.2);
    opacity: 1;
}

.question-type-indicator:hover::after {
    content: attr(data-type);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(calc(100% + 10px));
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.question-type-new .question-type-indicator {
    background-color: #4CAF50; /* Зеленый для новых вопросов */
}

.question-type-errors .question-type-indicator {
    background-color: #f44336; /* Красный для вопросов с ошибками */
}

.question-type-rare .question-type-indicator {
    background-color: #2196F3; /* Синий для редко решаемых */
}

.question-type-random .question-type-indicator {
    background-color: #9E9E9E; /* Серый для случайных */
}