/*
Theme Name: Jas Talapker
Description: Профориентационная платформа для учащихся Казахстана
Version: 1.0
Text Domain: jas-talapker
*/

/* CSS переменные с вашими цветами */
:root {
    --primary: #203ec1;
    --secondary: #c3cdfc;
    --light-bg: #dee8ff;
    --dark-blue: #0124c5;
    --dark-text: #001577;
    --button: #4041f0;
    --heading: #000170;
    --test-button: #2f00ff;
    --small-heading: #0001ea;
    --phone: #393dfb;
    --link-heading: #0029e7;
    --news: #2038a5;
    --white: #ffffff;
    --light-gray: #f8f9fa;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--button);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(64, 65, 240, 0.2);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 65, 240, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--button);
    color: var(--button);
}

.btn-outline:hover {
    background-color: var(--button);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 65, 240, 0.2);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--dark-text);
    opacity: 0.8;
}

/* Шапка */
header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    color: var(--dark-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu a:hover {
    color: var(--primary);
    background-color: var(--light-bg);
    transform: translateY(-1px);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--button));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::before {
    width: 80%;
}

.nav-menu .btn-primary {
    margin-left: 10px;
    padding: 10px 20px;
    font-size: 0.95rem;
}

.nav-menu .btn-primary:hover {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(64, 65, 240, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(64, 65, 240, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(64, 65, 240, 0);
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: var(--light-gray);
}

/* Герой секция */
.hero {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0f4ff 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--heading) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--dark-text);
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.hero-buttons .btn {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--button) 100%);
    border-radius: 20px;
    opacity: 0.1;
    z-index: -1;
}

.hero-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* Секция новостей */
.news {
    background-color: var(--light-gray);
    position: relative;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--button));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card-content {
    padding: 30px;
}

.news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
    gap: 15px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.news-card:hover h3 {
    color: var(--primary);
}

.news-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-text);
    opacity: 0.8;
    margin-bottom: 15px;
}

.news-category {
    background: linear-gradient(135deg, var(--light-bg), var(--secondary));
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-block;
}

.news-view-all {
    text-align: center;
    margin-top: 50px;
}

/* Секция FAQ */
.faq-section {
    background: linear-gradient(135deg, #f8faff 0%, var(--white) 100%);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--secondary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(32, 62, 193, 0.15);
}

.faq-question {
    padding: 24px;
    background-color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background-color: var(--light-gray);
    padding-left: 28px;
}

.faq-item.active .faq-question {
    background-color: var(--light-bg);
    color: var(--primary);
}

.faq-question span:last-child {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: var(--primary);
}

.faq-item.active .faq-question span:last-child {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--white);
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.7;
    color: var(--dark-text);
    opacity: 0.9;
}

/* Футер */
footer {
    background: linear-gradient(135deg, var(--heading) 0%, #000255 100%);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--white), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-about p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 0;
}

.footer-links h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    display: flex;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '›';
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(8px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(32, 62, 193, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom a:hover {
    color: var(--secondary);
}

.footer-bottom a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.footer-bottom a:hover::after {
    width: 100%;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 16px 16px;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        width: 100%;
        justify-content: space-between;
        border-radius: 8px;
        margin-bottom: 5px;
    }
    
    .nav-menu .btn-primary {
        margin: 10px 0 0 0;
        width: 100%;
        justify-content: center;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }
    
    .news-card-content {
        padding: 20px;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Улучшение доступности */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Фокус для доступности */
a:focus-visible,
.btn:focus-visible,
.mobile-menu-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}



/* Стили для страниц аутентификации */
.auth-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f8faff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.auth-form {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--dark-text);
    opacity: 0.8;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--heading);
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(32, 62, 193, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox input {
    width: auto;
}

.forgot-password {
    color: var(--primary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--dark-blue);
}

.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e8ecf1;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--dark-text);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

/* Стили для страницы профиля */
.profile-section {
    background: linear-gradient(135deg, #f8faff 0%, var(--white) 100%);
    min-height: 100vh;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    padding: 40px 0;
}

.profile-avatar {
    position: relative;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--button));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.btn-edit-avatar {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit-avatar:hover {
    background: var(--light-gray);
}

.profile-info h1 {
    margin-bottom: 5px;
    font-size: 2.2rem;
}

.profile-email {
    color: var(--dark-text);
    opacity: 0.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.profile-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-text);
    opacity: 0.8;
}

.profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.profile-nav {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    color: var(--dark-text);
}

.nav-item:hover,
.nav-item.active {
    background: var(--light-bg);
    color: var(--primary);
}

.nav-item.logout {
    color: #e74c3c;
    margin-top: 20px;
    border-top: 1px solid #e8ecf1;
    padding-top: 20px;
}

.tab-content {
    display: none;
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.profile-form .form-group input[readonly] {
    background: var(--light-gray);
    cursor: not-allowed;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.test-card {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.test-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.test-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.test-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.test-card p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.test-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.test-status.completed {
    background: #d4edda;
    color: #155724;
}

.test-status.in-progress {
    background: #fff3cd;
    color: #856404;
}

.test-status.available {
    background: #d1ecf1;
    color: #0c5460;
}

/* Стили для страницы результатов */
.results-section {
    background: linear-gradient(135deg, #f8faff 0%, var(--white) 100%);
    min-height: 100vh;
}

.results-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0 20px;
}

.results-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.results-header p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.results-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--light-gray);
    background: var(--white);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.result-item {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.result-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.result-content {
    flex: 1;
}

.result-content h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.result-description {
    margin-bottom: 15px;
    opacity: 0.8;
    line-height: 1.5;
}

.result-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--dark-text);
    opacity: 0.7;
}

.result-score {
    text-align: center;
}

.score-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.score-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--button));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Стили для страницы "в разработке" */
.coming-soon-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0f4ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.coming-soon-content {
    max-width: 600px;
    padding: 60px 0;
}

.construction-icon {
    font-size: 5rem;
    margin-bottom: 30px;
}

.coming-soon-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.coming-soon-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
    line-height: 1.6;
}

.progress-info {
    margin-bottom: 40px;
}

.progress-text {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary);
}

.coming-soon-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 2rem;
}

.feature-text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Адаптивность для новых страниц */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
/* Стили для вкладок профиля */
.profile-nav .nav-item {
    cursor: pointer;
}

/* Стили для результатов в профиле */
.empty-results {
    text-align: center;
    padding: 60px 40px;
    background: var(--light-gray);
    border-radius: 16px;
    margin: 30px 0;
}

.empty-results .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-results h3 {
    color: var(--heading);
    margin-bottom: 10px;
}

.empty-results p {
    color: var(--dark-text);
    opacity: 0.8;
    margin-bottom: 25px;
}

.results-overview {
    margin-bottom: 30px;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 15px;
}

.overview-icon {
    font-size: 2.5rem;
}

.overview-content h4 {
    margin-bottom: 5px;
    color: var(--heading);
}

.overview-content p {
    margin: 0;
    color: var(--dark-text);
    opacity: 0.8;
}

.recent-results h3 {
    margin-bottom: 20px;
    color: var(--heading);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.result-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.result-icon {
    font-size: 2rem;
}

.result-info h4 {
    margin: 0 0 5px 0;
    color: var(--heading);
}

.result-date {
    color: var(--dark-text);
    opacity: 0.7;
    font-size: 0.9rem;
}

.result-score {
    text-align: center;
}

.result-score .score {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.score-bar {
    width: 100%;
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--button));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.view-all-results {
    text-align: center;
}

/* Стили для доступных тестов */
.available-tests {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.test-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.test-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.test-card.coming-soon {
    opacity: 0.7;
}

.test-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.test-content {
    flex: 1;
}

.test-content h3 {
    margin-bottom: 8px;
    color: var(--heading);
}

.test-content p {
    margin-bottom: 10px;
    color: var(--dark-text);
    opacity: 0.8;
}

.test-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--dark-text);
    opacity: 0.7;
}

/* Стили для CTA секции */
.cta-profile {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-blue) 100%);
    color: var(--white);
    text-align: center;
}

.cta-profile-content h2 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.cta-profile-content > p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-stats .stat {
    text-align: center;
}

.cta-stats .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.cta-stats .label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Настройки переключателей */
.setting-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 12px;
    margin-bottom: 15px;
}

.setting-info {
    flex: 1;
}

.setting-info h4 {
    margin-bottom: 5px;
    color: var(--heading);
}

.setting-info p {
    margin: 0;
    color: var(--dark-text);
    opacity: 0.8;
    font-size: 0.95rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .test-card {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .setting-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
	
.language-switcher {
    display: inline-block;
    margin-left: 20px;
}
.lang-link {
    color: #203ec1;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid #203ec1;
    border-radius: 4px;
    font-size: 12px;
}
.lang-link:hover {
    background: #203ec1;
    color: white;
}
	
	
/* =============== Стили регистрации =============== */
.auth-section .email-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.auth-section .btn-code {
    background: #203ec1;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.auth-section .btn-code:hover:not(.btn-code-disabled) {
    background: #1a30a0;
}

.auth-section .btn-code.btn-code-disabled {
    background: #6c757d !important;
    cursor: not-allowed;
}

.auth-section .btn-code.btn-code-sent {
    background: #28a745 !important;
}

.auth-section .status-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.auth-section .status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-section .status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-section .status-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.auth-section .verification-code-group.verified {
    border-left: 4px solid #28a745;
    padding-left: 10px;
}

.auth-section .verification-code-group.error {
    border-left: 4px solid #dc3545;
    padding-left: 10px;
}

.auth-section .btn.btn-primary.btn-full.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc !important;
    color: #666 !important;
}
	
	
/* ============
   Профориентационные тесты
============= */

.unified-test-container .test-header,
.unified-test-container .test-progress,
.unified-test-container .test-question,
.unified-test-container .completion-screen,
.unified-test-container .test-results-container {
    /* Общие стили */
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
}

/* Стили для кнопок */
.unified-test-container .test-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.unified-test-container .btn-prev {
    background: #757575;
    color: white;
}
.unified-test-container .btn-next,
.unified-test-container .btn-finish {
    background: #2f00ff;
    color: white;
}
.unified-test-container .btn-next:hover,
.unified-test-container .btn-finish:hover {
    background: #1a00cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 0, 255, 0.3);
}

/* Варианты ответов */
.unified-test-container .test-option {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.unified-test-container .test-option:hover {
    border-color: #2f00ff;
    background: #f8f9ff;
}
.unified-test-container .test-option.selected {
    background: #e8f4ff;
    border-color: #2f00ff;
}

/* Прогресс */
.unified-test-container .progress-bar-fill {
    height: 8px;
    background: #2f00ff;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Экраны результатов */
.unified-test-container .scale-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #2f00ff;
    margin-bottom: 10px;
}
.unified-test-container .orientation-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* === Стили для прохождения теста === */
.test-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.test-header h1 {
    color: #000170;
    font-size: 1.8em;
    margin-bottom: 10px;
    text-align: center;
}
.test-header p {
    color: #555;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
}

.test-progress {
    margin-bottom: 30px;
}
.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95em;
    color: #555;
    margin-bottom: 8px;
}
.progress-bar-container {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: #2f00ff;
    transition: width 0.4s ease;
}

.test-question h3 {
    font-size: 1.3em;
    color: #000170;
    margin-bottom: 20px;
    line-height: 1.4;
}
.test-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}
.test-option {
    padding: 16px 20px;
    background: #f8f9ff;
    border: 2px solid #e0e8ff;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.05em;
    color: #333;
}
.test-option:hover {
    background: #edf0ff;
    border-color: #2f00ff;
}
.test-option.selected {
    background: #2f00ff;
    color: white;
    border-color: #2f00ff;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.test-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}
.btn-prev {
    background: #e9ecef;
    color: #495057;
}
.btn-prev:hover:not(:disabled) {
    background: #dee2e6;
}
.btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-next, .btn-finish {
    background: #2f00ff;
    color: white;
}
.btn-next:hover:not(:disabled), .btn-finish:hover {
    background: #1a00cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 0, 255, 0.25);
}

/* Экран завершения */
.completion-screen {
    text-align: center;
    padding: 40px 20px;
}
.completion-icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: #2f00ff;
}
.completion-btn {
    background: #2f00ff;
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}
.completion-btn:hover {
    background: #1a00cc;
    transform: scale(1.03);
}