/* Modern CSS Reset */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-ultralight: #dbeafe;
    --secondary: #06b6d4;
    --accent: #10b981;
    --text: #1f2937;
    --text-light: #6b7280;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --background-blue: #f0f9ff;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #016091 !important;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.logo:hover {
    background: var(--background-alt);
    transform: scale(1.05);
}

.logo:active {
    transform: scale(0.95);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-ultralight);
}

/* Modern Flat Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    justify-content: center;
    font-size: 1.125rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-hero {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.btn-icon {
    font-size: 1.375rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.background-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.bg-image-1 {
    background-image: url('https://avatars.mds.yandex.net/i?id=e58b419df0cfaeeab5abc3b025f84c39824dcb2e-5656606-images-thumbs&n=13');
}

.bg-image-2 {
    background-image: url('https://avatars.mds.yandex.net/i?id=ce33c912af85921be82332ec06f9725c_l-5218303-images-thumbs&n=13');
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.9), rgba(37, 99, 235, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.375rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: -50px;
    right: 100px;
    animation-delay: 0s;
}

.card-2 {
    top: 80px;
    right: 0;
    animation-delay: 2s;
}

.card-3 {
    top: 200px;
    right: 80px;
    animation-delay: 4s;
}

.card-icon {
    font-size: 2.5rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Stats Section */
.stats {
    background: var(--background);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Categories Section */
.categories {
    padding: 8rem 0;
    background: var(--background-blue);
    position: relative;
    overflow: hidden;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://avatars.mds.yandex.net/i?id=ce33c912af85921be82332ec06f9725c_l-5218303-images-thumbs&n=13');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 700;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.category-card {
    background: var(--background);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 600;
}

.category-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.category-badge {
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    border: 1px solid #bfdbfe;
}

/* Professions Section */
.professions {
    padding: 8rem 0;
    background-color: #ffffff !important;
}

/* Updated Search Styles */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    padding: 1.25rem 3rem 1.25rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 1.25rem 0 0 1.25rem;
    font-size: 1.125rem;
    transition: all 0.3s;
    border-right: none;
    background: var(--background-alt);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--background);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.25rem;
}

.search-button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: 2px solid #2563eb;
    border-left: none;
    border-radius: 0 1.25rem 1.25rem 0;
    padding: 1.25rem 2.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 1.125rem;
    position: relative;
    overflow: hidden;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.search-button:hover::before {
    left: 100%;
}

.search-button:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    border-color: #1d4ed8;
}

.search-button:active {
    transform: scale(0.98);
}

/* Active search state */
.search-box.active {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box.active input {
    border-color: var(--primary);
}

#categoryFilter {
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 1.25rem;
    background: var(--background-alt);
    color: var(--text);
    font-size: 1.125rem;
    min-width: 220px;
    transition: all 0.3s;
}

#categoryFilter:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--background);
}

/* Search results info */
.search-info {
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 1rem;
    padding: 1rem 1.5rem;
    background: var(--background-blue);
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    background: var(--background-alt);
    border-radius: 2rem;
    margin: 2rem 0;
}

.no-results h3 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.5rem;
}

/* Professions Grid */
.professions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2.5rem;
}

.profession-card {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 2rem;
    padding: 2.5rem;
    transition: all 0.4s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.profession-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.profession-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.profession-card:hover::before {
    transform: scaleX(1);
}

.profession-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.profession-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.profession-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.125rem;
}

.profession-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.salary {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.25rem;
}

.difficulty {
    font-size: 0.875rem;
    color: var(--text-light);
    background: var(--background-alt);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
}

.skills-preview {
    margin-bottom: 2.5rem;
}

.skills-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #bfdbfe;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.profession-actions {
    display: flex;
    gap: 1rem;
}

.profession-actions .btn {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 1rem;
}

/* CTA Section */
.cta-main {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.375rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 6rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h3 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #9ca3af;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid #374151;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    color: white;
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.125rem;
}

.footer-section ul li a:hover {
    color: white;
}

.partner-info {
    color: #9ca3af;
}

.partner-info strong {
    display: block;
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.partner-info p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.partner-contacts {
    margin-top: 1.5rem;
}

.partner-contacts a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
    font-size: 1rem;
}

.partner-contacts a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.125rem;
    }

    .filters {
        flex-direction: column;
    }

    .search-box {
        min-width: auto;
    }

    .professions-grid {
        grid-template-columns: 1fr;
    }

    .profession-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .search-button {
        padding: 1.25rem 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .btn-hero {
        padding: 1.25rem 2.5rem;
        font-size: 1.125rem;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

    .categories h2 {
        font-size: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profession-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .profession-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 4rem;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .professions-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .search-button {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
}

/* Test Hero Section */
.test-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.test-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.background-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 100px;
    left: -50px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    right: 20%;
}

.test-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.test-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.test-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    line-height: 1.2;
}

.test-hero-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    line-height: 1.6;
}

.test-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Test Main Section */
.test-main {
    background: var(--background);
    padding: 3rem 0 6rem;
    min-height: 60vh;
}

.test-progress-container {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.block-text {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Welcome Card */
.welcome-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.welcome-card h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.instruction {
    text-align: left;
    margin-bottom: 3rem;
}

.instruction p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.scale-info {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.scale-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-alt);
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
}

.scale-number {
    background: var(--primary);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.scale-label {
    font-weight: 500;
}

.instruction-note {
    background: var(--background-blue);
    padding: 1.5rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
    font-style: italic;
    margin-top: 2rem;
}

/* Question Card */
.question-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.block-indicator {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.question-number {
    color: var(--text-light);
    font-weight: 500;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    line-height: 1.4;
    color: var(--text);
}

.rating-scale {
    margin-bottom: 2.5rem;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.rating-options {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.rating-option {
    flex: 1;
    text-align: center;
}

.rating-option input {
    display: none;
}

.rating-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    background: var(--background-alt);
    border: 2px solid var(--border);
    border-radius: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-option input:checked + .rating-circle,
.rating-option.selected .rating-circle {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.rating-circle:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Results Container */
.results-container {
    max-width: 900px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.results-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.results-header p {
    font-size: 1.25rem;
    color: var(--text-light);
}

.profile-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.profile-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.profile-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.profile-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

.profile-description {
    margin-bottom: 2.5rem;
}

.profile-description p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.characteristics {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
}

.characteristics strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.roadmap-section {
    margin-bottom: 2rem;
}

.roadmap-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.roadmap-step {
    background: var(--background-alt);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-stage {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-header h4 {
    font-size: 1.125rem;
    color: var(--text);
}

.step-courses {
    display: grid;
    gap: 0.75rem;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--background);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.course-icon {
    color: var(--primary);
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .test-hero-content h1 {
        font-size: 2rem;
    }
    
    .test-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .question-card {
        padding: 1.5rem;
    }
    
    .question-text {
        font-size: 1.25rem;
    }
    
    .rating-options {
        flex-wrap: wrap;
    }
    
    .rating-option {
        flex: 0 0 calc(33.333% - 0.5rem);
    }
    
    .progress-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Main Profile Card */
.main-profile {
    border: 2px solid var(--primary);
    position: relative;
}

.main-profile::before {
    content: '★ Лучшее совпадение';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.main-badge {
    background: var(--primary);
    color: white;
}

.profile-score {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Alternative Profiles */
.alternative-profiles {
    margin: 3rem 0;
}

.alternative-profiles h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    text-align: center;
}

.alternative-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.alternative-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.alternative-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.alt-profile-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.alt-badge {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.alt-profile-header h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.alt-profile-header h5 {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.alt-score {
    background: var(--background-alt);
    color: var(--text);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.alt-description {
    margin-bottom: 1rem;
}

.alt-description p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-light);
}

.alt-roadmap {
    margin-top: 1rem;
}

.alt-roadmap strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text);
}

.alt-courses {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alt-course {
    font-size: 0.75rem;
    padding: 0.5rem;
    background: var(--background-alt);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary);
}

/* Blocks Statistics */
.blocks-stats {
    background: var(--background-alt);
    border-radius: 1.5rem;
    padding: 2rem;
    margin: 2rem 0;
}

.blocks-stats h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-block {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-block.dominant {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--background), var(--primary-light));
}

.stat-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.block-name {
    font-weight: 600;
    color: var(--text);
}

.block-score {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-progress {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.stat-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.block-profile {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Responsive Design for Results */
@media (max-width: 768px) {
    .alternative-cards {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .main-profile::before {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
    
    .profile-score {
        font-size: 0.75rem;
    }
}

/* Alternative Roles in Main Profile */
.alternative-roles {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.alternative-roles h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.roles-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-tag {
    background: #ffffff !important;
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #016091;
}

/* Additional IT Fields */
.additional-fields {
    background: var(--background-alt);
    border-radius: 1.5rem;
    padding: 2rem;
    margin: 2rem 0;
}

.additional-fields h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    text-align: center;
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.field-category {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.field-category h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.field-roles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field-role {
    background: var(--background-alt);
    border-radius: 0.75rem;
    padding: 1rem;
    border-left: 3px solid var(--primary);
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.role-header strong {
    color: var(--text);
    font-size: 1rem;
}

.role-level {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.role-description {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.role-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.skill-tag {
    background: var(--background);
    color: var(--text);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    border: 1px solid var(--border);
}

/* Enhanced Alternative Profiles with Skills */
.alt-skills {
    margin-top: 0.75rem;
}

.alt-skills strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    color: var(--text);
}

.alt-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.alt-skill-tag {
    background: var(--background);
    color: var(--text);
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    border: 1px solid var(--border);
}

/* Career Path Visualization */
.career-path {
    margin: 2rem 0;
}

.career-path h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    text-align: center;
}

.path-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 2rem 0;
}

.path-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--primary);
    z-index: 1;
}

.path-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
}

.step-label {
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 500;
}

.step-duration {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* IT Fields Icons */
.field-category[data-field="dataScience"] h4::before {
    content: '📊 ';
}

.field-category[data-field="cybersecurity"] h4::before {
    content: '🛡️ ';
}

.field-category[data-field="mobile"] h4::before {
    content: '📱 ';
}

.field-category[data-field="frontend"] h4::before {
    content: '🎨 ';
}

.field-category[data-field="gameDev"] h4::before {
    content: '🎮 ';
}

.field-category[data-field="blockchain"] h4::before {
    content: '⛓️ ';
}

.field-category[data-field="embedded"] h4::before {
    content: '🔌 ';
}

/* Responsive Design for Additional Fields */
@media (max-width: 768px) {
    .fields-grid {
        grid-template-columns: 1fr;
    }
    
    .path-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .path-steps::before {
        display: none;
    }
    
    .roles-tags {
        justify-content: center;
    }
    
    .role-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* Main Directions */
.main-directions {
    margin-bottom: 4rem;
}

.main-directions h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text);
    text-align: center;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.direction-card {
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.direction-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.direction-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.direction-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.direction-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.direction-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* All Directions Grid */
.all-directions {
    margin-bottom: 4rem;
}

.all-directions h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text);
    text-align: center;
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.field-category {
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.field-category:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.field-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.field-icon {
    font-size: 2rem;
}

.field-header h4 {
    font-size: 1.25rem;
    color: var(--text);
    margin: 0;
}

.field-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.field-roles-preview {
    margin-bottom: 1.5rem;
}

.role-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--background-alt);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.role-preview strong {
    font-size: 0.875rem;
    color: var(--text);
}

.role-level-badge {
    background: #ffffff !important;
    color: var(--primary-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.more-roles {
    text-align: center;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Field Details */
.field-detail {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-lg);
}

.detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.detail-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.detail-title {
    flex: 1;
}

.detail-title h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.detail-title p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.close-detail {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-detail:hover {
    background: var(--background-alt);
    color: var(--text);
}

/* Roles Detail */
.roles-detail h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.role-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.role-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.role-card-header h5 {
    font-size: 1.25rem;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.role-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.role-level {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.role-level.начальный {
    background: #dbeafe;
    color: #1e40af;
}

.role-level.средний {
    background: #fef3c7;
    color: #92400e;
}

.role-level.старший {
    background: #fce7f3;
    color: #be185d;
}

.role-level.эксперт {
    background: #ecfdf5;
    color: #047857;
}

.role-salary {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.875rem;
}

.role-card-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.role-demand {
    margin-bottom: 1rem;
}

.role-demand strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.demand-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.demand-badge.высокая {
    background: #ecfdf5;
    color: #047857;
}

.demand-badge.очень\ высокая {
    background: #dcfce7;
    color: #166534;
}

.demand-badge.средняя {
    background: #fef3c7;
    color: #92400e;
}

.demand-badge.растущая {
    background: #dbeafe;
    color: #1e40af;
}

.demand-badge.стабильная {
    background: #e0e7ff;
    color: #3730a3;
}

.role-skills {
    margin-bottom: 1rem;
}

.role-skills strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-roadmap {
    margin-bottom: 1.5rem;
}

.role-roadmap strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.roadmap-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.roadmap-step {
    padding: 0.5rem;
    background: var(--background);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border-left: 3px solid var(--primary);
}

.role-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Comparison Table */
.field-comparison h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

.comparison-table tr:hover {
    background: var(--background-alt);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Стили для профессий в направлениях */
.direction-professions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    animation: slideDown 0.3s ease-out;
}

.direction-professions-list h5 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 600;
}

.professions-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.profession-mini-card {
    background: var(--background-alt);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.profession-mini-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mini-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.mini-card-header h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.mini-level {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.mini-level.начальный {
    background: #dbeafe;
    color: #1e40af;
}

.mini-level.средний {
    background: #fef3c7;
    color: #92400e;
}

.mini-level.старший {
    background: #fce7f3;
    color: #be185d;
}

.mini-description {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.mini-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
}

.mini-salary {
    font-weight: 600;
    color: var(--accent);
}

.mini-demand {
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
}

.mini-demand.высокая {
    background: #ecfdf5;
    color: #047857;
}

.mini-demand.очень\ высокая {
    background: #dcfce7;
    color: #166534;
}

.mini-demand.средняя {
    background: #fef3c7;
    color: #92400e;
}

.mini-demand.растущая {
    background: #dbeafe;
    color: #1e40af;
}

.mini-demand.стабильная {
    background: #e0e7ff;
    color: #3730a3;
}

.mini-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.mini-skill-tag {
    background: var(--background);
    color: var(--text);
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    border: 1px solid var(--border);
}

.mini-more {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
}

/* Анимация появления */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .professions-mini-grid {
        grid-template-columns: 1fr;
    }
    
    .mini-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mini-level {
        align-self: flex-start;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .directions-grid {
        grid-template-columns: 1fr;
    }
    
    .fields-grid {
        grid-template-columns: 1fr;
    }
    
    .roles-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .role-card-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .role-meta {
        align-items: flex-start;
    }
    
    .role-actions {
        flex-direction: column;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
}

/* Стили для профессий в направлениях */
.direction-professions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    animation: slideDown 0.3s ease-out;
}

.direction-professions-list h5 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 600;
}

.professions-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.profession-mini-card {
    background: var(--background-alt);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.profession-mini-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mini-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.mini-card-header h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.mini-level {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.mini-level.начальный {
    background: #dbeafe;
    color: #1e40af;
}

.mini-level.средний {
    background: #fef3c7;
    color: #92400e;
}

.mini-level.старший {
    background: #fce7f3;
    color: #be185d;
}

.mini-description {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.mini-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
}

.mini-salary {
    font-weight: 600;
    color: var(--accent);
}

.mini-demand {
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
}

.mini-demand.высокая {
    background: #ecfdf5;
    color: #047857;
}

.mini-demand.очень\ высокая {
    background: #dcfce7;
    color: #166534;
}

.mini-demand.средняя {
    background: #fef3c7;
    color: #92400e;
}

.mini-demand.растущая {
    background: #dbeafe;
    color: #1e40af;
}

.mini-demand.стабильная {
    background: #e0e7ff;
    color: #3730a3;
}

.mini-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.mini-skill-tag {
    background: var(--background);
    color: var(--text);
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    border: 1px solid var(--border);
}

.mini-more {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
}

/* Анимация появления */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .professions-mini-grid {
        grid-template-columns: 1fr;
    }
    
    .mini-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mini-level {
        align-self: flex-start;
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}