/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Навигация */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #2563eb;
}

/* Навигация с кнопкой теста */
.test-link {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 25px;
    margin-left: 10px;
    transition: all 0.3s !important;
}

.test-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
    color: white !important;
}

.test-link i {
    margin-right: 5px;
}

/* Герой-секция */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}

.filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.filters select,
.filters input {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
    font-family: inherit;
}

.filters select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.btn-primary {
    background: white;
    color: #2563eb;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Герой-секция с кнопками */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 13px 33px;
    text-decoration: none;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-2px);
}

/* Статистика в герое */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    min-width: 150px;
    backdrop-filter: blur(10px);
}

.stat i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #93c5fd;
}

.stat span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
}

.stat p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Быстрый тест */
.quick-test {
    background: #f8fafc;
    padding: 80px 0;
    margin: 40px 0;
    width: 100%;
}

.quick-test-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.quick-test-text h2 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 20px;
}

.quick-test-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}

.test-features {
    list-style: none;
    margin-bottom: 30px;
}

.test-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
}

.test-features i {
    color: #10b981;
    min-width: 20px;
}

.test-preview {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.3s;
}

.test-preview:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.test-question-preview {
    text-align: center;
}

.preview-question {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 25px;
    font-weight: 500;
}

.preview-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-option {
    padding: 15px;
    background: #f1f5f9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.preview-option:hover {
    background: #e2e8f0;
    border-color: #2563eb;
}

/* Основной контент */
main {
    flex: 1;
    padding: 20px 0;
    width: 100%;
}

.content-section {
    display: none;
    padding: 40px 0;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    margin-bottom: 30px;
    color: #1e293b;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Заголовки разделов с кнопками */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border: 2px solid #2563eb;
    color: #2563eb;
    background: transparent;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-family: inherit;
    cursor: pointer;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Сетка профессий */
.profession-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.profession-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.profession-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.profession-header {
    padding: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    flex-shrink: 0;
}

.profession-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
}

.category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.profession-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.profession-body .description {
    margin-bottom: 15px;
    color: #64748b;
    flex-grow: 1;
}

.salary {
    color: #059669;
    font-weight: 600;
    margin: 10px 0;
    font-size: 1.1rem;
}

.demand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: auto;
}

.demand.high {
    background: #dcfce7;
    color: #166534;
}

.demand.medium {
    background: #fef3c7;
    color: #92400e;
}

.demand.low {
    background: #fee2e2;
    color: #991b1b;
}

.skills {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #64748b;
}

.skills span {
    display: inline-block;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 15px;
    margin: 3px;
}

/* Контейнер вакансий */
.jobs-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.job-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.job-title {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.company {
    color: #64748b;
    font-weight: 500;
}

.job-salary {
    color: #059669;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
}

.job-details {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #64748b;
    flex-wrap: wrap;
}

.job-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-details i {
    margin-right: 5px;
}

/* Сетка университетов */
.university-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.university-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.university-header {
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.university-header h3 {
    margin: 0 0 10px 0;
    color: #1e293b;
}

.location {
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.university-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f59e0b;
    margin-bottom: 15px;
}

.rating-value {
    font-weight: 600;
    color: #1e293b;
}

.programs {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #64748b;
    flex-grow: 1;
}

.website-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #2563eb;
    border-radius: 6px;
    transition: all 0.3s;
    align-self: flex-start;
}

.website-link:hover {
    background: #2563eb;
    color: white;
    text-decoration: none;
}

/* Футер */
footer {
    background: #1e293b;
    color: white;
    padding: 40px 0;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
    text-decoration: none;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* Футер с тестом */
.footer-test {
    text-align: center;
    margin: 30px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.footer-test h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.footer-test p {
    color: #cbd5e1;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.copyright {
    margin-top: 20px;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    margin: 50px auto;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    animation: modalFadeIn 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #64748b;
    z-index: 2001;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #1e293b;
}

.modal-body {
    padding: 40px;
}

.modal-profession h2 {
    color: #1e293b;
    margin-bottom: 20px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    color: #475569;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Прогресс бар */
.progress-container {
    width: 100%;
    background: #e2e8f0;
    border-radius: 10px;
    height: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Сообщения об ошибках и отсутствии результатов */
.error-message,
.no-results {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 1.1rem;
}

.no-results {
    grid-column: 1 / -1;
}

/* Спиннер загрузки */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 20px;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .search-box {
        width: 100%;
    }
    
    .filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filters select,
    .filters input {
        width: 100%;
        max-width: 300px;
    }
    
    .quick-test-content {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat {
        min-width: 120px;
        padding: 15px;
    }
    
    .stat span {
        font-size: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .test-link {
        margin-left: 0;
        margin-top: 10px;
        order: 1;
    }
    
    .profession-grid,
    .university-grid {
        grid-template-columns: 1fr;
    }
    
    .job-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .modal-content {
        margin: 20px auto;
        width: 95%;
    }
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .quick-test-text h2 {
        font-size: 1.8rem;
    }
    
    .stat {
        min-width: 100px;
        padding: 10px;
    }
}

/* Дополнительные стили для теста */

.option-label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.option-label:hover {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.option-label.selected {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.option-label input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.option-text {
    font-size: 1.1rem;
    color: #475569;
    flex-grow: 1;
}

.question-container {
    margin-bottom: 30px;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.test-navigation button {
    min-width: 120px;
}

.progress-info {
    color: #64748b;
    font-weight: 500;
}

.result-profession {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s;
}

.result-profession:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.result-profession h4 {
    margin: 0 0 5px 0;
    color: #1e293b;
}

.result-profession p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.profession-match {
    background: #10b981;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.profession-type {
    background: #e0e7ff;
    color: #3730a3;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    display: inline-block;
    margin: 5px;
}

.test-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.test-buttons button,
.test-buttons a {
    min-width: 150px;
}

/* Адаптивность для теста */
@media (max-width: 768px) {
    .option-label {
        padding: 12px 15px;
    }
    
    .option-text {
        font-size: 1rem;
    }
    
    .test-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .test-navigation button {
        width: 100%;
    }
    
    .result-profession {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .profession-match {
        align-self: flex-start;
    }
    
    .test-buttons {
        flex-direction: column;
    }
    
    .test-buttons button,
    .test-buttons a {
        width: 100%;
    }
}

/* Стили для модального окна с ВУЗами */
.university-list,
.job-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.university-item,
.job-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #2563eb;
}

.university-item h4,
.job-item h4 {
    margin: 0 0 10px 0;
    color: #1e293b;
}

.university-item p,
.job-item p {
    margin: 5px 0;
    color: #64748b;
}

/* Стили для результатов теста */
.result-profession {
    cursor: pointer;
    transition: all 0.3s;
}

.result-profession:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* Загрузочный спиннер */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Сообщения об ошибках */
.error-message {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Контейнер поиска в блоке профессий */
.profession-search-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.search-box-inline {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.search-box-inline input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.search-box-inline input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box-inline i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-controls select {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-controls select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-controls .btn-primary,
.filter-controls .btn-outline {
    padding: 12px 25px;
    white-space: nowrap;
}

.filter-controls .btn-outline {
    border: 2px solid #e2e8f0;
    color: #64748b;
    background: transparent;
}

.filter-controls .btn-outline:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #475569;
}

/* Счетчик результатов */
.results-counter {
    margin: 15px 0;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

.results-counter span {
    color: #2563eb;
    font-weight: 600;
}

/* Сортировка */
.sort-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sort-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sort-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.sort-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Адаптивность для поиска */
@media (max-width: 768px) {
    .profession-search-container {
        padding: 20px;
    }
    
    .filter-controls {
        flex-direction: column;
    }
    
    .filter-controls select {
        width: 100%;
        min-width: auto;
    }
    
    .filter-controls .btn-primary,
    .filter-controls .btn-outline {
        width: 100%;
    }
    
    .search-box-inline input {
        padding: 12px 15px 12px 45px;
    }
}

@media (max-width: 480px) {
    .profession-search-container {
        padding: 15px;
    }
    
    .sort-controls {
        justify-content: center;
    }
    
    .sort-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Заголовок модального окна с результатами */
.modal-profession-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.match-badge {
    padding: 8px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Сетка университетов в модальном окне */
.universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.university-card-modal {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.university-card-modal:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.university-card-modal h4 {
    margin: 0 0 10px 0;
    color: #1e293b;
}

.university-card-modal .location,
.university-card-modal .rating,
.university-card-modal .programs {
    margin: 8px 0;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.university-card-modal .website-link {
    margin-top: 15px;
    display: inline-flex;
}

/* Контейнер навыков */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.skill-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Информация о карьере */
.career-info {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
}

.career-info p {
    margin: 10px 0;
    color: #0c4a6e;
    font-size: 1.05rem;
}

.career-info strong {
    color: #0369a1;
}

/* Подходящие черты */
.suitable-traits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.trait {
    background: #dcfce7;
    color: #166534;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Теги профессий в результатах */
.profession-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.profession-tags .tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Счетчик университетов */
.university-count {
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .modal-profession-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .match-badge {
        align-self: flex-start;
    }
    
    .universities-grid {
        grid-template-columns: 1fr;
    }
    
    .suitable-traits {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

/* Стили для длинного теста */
.question-number {
    font-size: 0.9rem;
    color: #8b5cf6;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.question-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #1e293b;
}

/* Индикатор времени прохождения */
.time-estimate {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin: 10px 0 20px;
}

.time-estimate i {
    margin-right: 5px;
}

/* Кнопки навигации улучшенные */
.test-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.test-navigation button {
    min-width: 140px;
    padding: 12px 25px;
    font-weight: 600;
}

/* Индикатор сложности теста */
.difficulty-indicator {
    text-align: center;
    margin: 15px 0;
    color: #64748b;
    font-size: 0.9rem;
}

.difficulty-stars {
    color: #f59e0b;
    margin: 5px 0;
}

/* Блок результатов с детализацией */
.result-details {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
}

.result-details h3 {
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.result-category {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.result-category .percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 5px;
}

.result-category .label {
    font-size: 0.9rem;
    color: #64748b;
}

/* Стили для вариантов ответов в тесте */
.option-label {
    display: block;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
    background: white;
}

.option-label:hover {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.option-label.selected {
    border-color: #8b5cf6;
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.option-label input[type="radio"] {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s;
}

.option-label.selected .option-circle {
    border-color: #8b5cf6;
    background: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.option-text {
    font-size: 1.1rem;
    color: #475569;
    flex-grow: 1;
}

/* Новые стили для обновленного index.html */

/* Контейнер для кнопок под заголовками */
.section-button-container {
    text-align: center;
    margin-bottom: 30px;
}

/* Панель категорий внизу */
.content-categories {
    background: #f8fafc;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}

.categories-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #64748b;
    padding: 15px 25px;
    border-radius: 10px;
    transition: all 0.3s;
    min-width: 120px;
}

.category-link i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #94a3b8;
}

.category-link span {
    font-size: 1rem;
    font-weight: 500;
}

.category-link:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-link:hover i {
    color: #2563eb;
}

.category-link.active {
    background: #2563eb;
    color: white;
}

.category-link.active i {
    color: white;
}

/* Обновление стилей для заголовков секций */
.section-header {
    margin-bottom: 10px;
}

.section-header h2 {
    margin-bottom: 5px;
}

/* Адаптивность для панели категорий */
@media (max-width: 768px) {
    .categories-nav {
        gap: 15px;
    }
    
    .category-link {
        min-width: 100px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .categories-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .category-link {
        width: 100%;
        max-width: 200px;
    }
}

/* Новые стили для обновленного index.html */

/* Контейнер для кнопок под заголовками */
.section-button-container {
    text-align: center;
    margin-bottom: 30px;
}

/* Панель категорий над контентом */
.content-categories-top {
    background: #f8fafc;
    padding: 20px 0;
    border-radius: 12px;
    margin: 20px 0 40px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.categories-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #64748b;
    padding: 20px 30px;
    border-radius: 12px;
    transition: all 0.3s;
    min-width: 140px;
    background: white;
    border: 2px solid #e2e8f0;
}

.category-link i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #94a3b8;
}

.category-link span {
    font-size: 1.1rem;
    font-weight: 600;
}

.category-link:hover {
    background: #f1f5f9;
    color: #2563eb;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
}

.category-link:hover i {
    color: #2563eb;
}

.category-link.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.category-link.active i {
    color: white;
}

/* Обновление стилей для заголовков секций */
.section-header {
    margin-bottom: 10px;
}

.section-header h2 {
    margin-bottom: 5px;
}

/* Адаптивность для панели категорий */
@media (max-width: 768px) {
    .categories-nav {
        gap: 20px;
    }
    
    .category-link {
        min-width: 120px;
        padding: 15px 20px;
    }
    
    .category-link i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .categories-nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .category-link {
        width: 100%;
        max-width: 250px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .category-link i {
        margin-bottom: 0;
        font-size: 1.8rem;
    }
    
    .category-link span {
        font-size: 1rem;
    }
}

/* Стили для страницы теста */

.test-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 60px 0 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

.test-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.test-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 25px;
}

.test-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.test-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

/* Стили для интро */
.test-intro-content {
    text-align: center;
}

.test-icon {
    font-size: 4rem;
    color: #8b5cf6;
    margin-bottom: 25px;
}

.test-intro h2 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.intro-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 35px;
    font-size: 1.1rem;
}

.test-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 35px 0;
}

.info-card {
    background: #f8fafc;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-icon {
    font-size: 2.2rem;
    color: #8b5cf6;
    margin-bottom: 15px;
}

.info-card h3 {
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.info-card p {
    color: #64748b;
    font-weight: 600;
    margin: 0;
}

.test-instructions {
    background: #f0f9ff;
    border-radius: 12px;
    padding: 25px;
    margin: 35px 0;
    text-align: left;
    border-left: 4px solid #0ea5e9;
}

.test-instructions h3 {
    color: #0369a1;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instruction-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-list li {
    color: #0c4a6e;
    margin-bottom: 10px;
    padding-left: 10px;
    position: relative;
    line-height: 1.5;
}

.instruction-list li:before {
    content: "•";
    color: #0ea5e9;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.start-test-btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Стили для вопросов */
.test-questions {
    display: none;
}

.test-question-wrapper {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.question-number {
    color: #8b5cf6;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.question-text {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 500;
}

.options-container {
    flex-grow: 1;
    margin-bottom: 30px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
    background: white;
}

.option-label:hover {
    border-color: #8b5cf6;
    background: #f5f3ff;
    transform: translateX(5px);
}

.option-label.selected {
    border-color: #8b5cf6;
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.option-label input {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.option-circle {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s;
}

.option-label.selected .option-circle {
    border-color: #8b5cf6;
    background: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.option-text {
    font-size: 1.1rem;
    color: #475569;
    flex-grow: 1;
    line-height: 1.5;
}

.test-progress {
    text-align: center;
    margin: 20px 0;
}

.progress-info {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
    background: #f1f5f9;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.nav-btn {
    min-width: 140px;
    padding: 14px 30px;
    font-weight: 600;
}

/* Стили для результатов */
.test-results {
    display: none;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

.results-header h2 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 2rem;
}

.results-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.holland-code-section {
    margin-bottom: 40px;
}

.holland-code-section h3 {
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profession-types {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.profession-type {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.results-details {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

.results-details h3 {
    color: #1e293b;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.result-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.result-category {
    background: white;
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.result-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.result-category .percentage {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 8px;
}

.result-category .label {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

.recommended-section {
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h3 {
    color: #1e293b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.section-subtitle {
    color: #64748b;
    font-size: 1rem;
}

.recommended-professions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-profession {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid #e2e8f0;
}

.result-profession:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #8b5cf6;
}

.profession-match {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
    font-size: 1.1rem;
}

.results-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.action-btn {
    min-width: 220px;
    padding: 16px 35px;
    font-size: 1.1rem;
}

.btn-text {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    margin-top: 10px;
}

.btn-text:hover {
    color: #2563eb;
}

/* Адаптивность для теста */
@media (max-width: 768px) {
    .test-header {
        padding: 40px 0 30px 0;
    }
    
    .test-header h1 {
        font-size: 1.8rem;
    }
    
    .test-card {
        padding: 25px;
    }
    
    .test-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-btn {
        min-width: 120px;
        padding: 12px 20px;
    }
    
    .result-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profession-type {
        min-width: 140px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .test-header h1 {
        font-size: 1.6rem;
    }
    
    .test-header p {
        font-size: 1rem;
    }
    
    .test-card {
        padding: 20px;
    }
    
    .test-info-grid {
        grid-template-columns: 1fr;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .option-label {
        padding: 16px;
    }
    
    .option-text {
        font-size: 1rem;
    }
    
    .test-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .result-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .profession-type {
        width: 100%;
    }
    
    .result-profession {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .profession-match {
        align-self: flex-start;
    }
    
    .action-btn {
        width: 100%;
        min-width: auto;
    }
}