.profi-anketa-wrapper {
    max-width: 700px;
    margin: 20px auto;
    background: #f9fafc;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.profi-anketa-wrapper h2 {
    text-align: center;
    color: #1e466e;
}
.form-group {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}
.form-group label:not(:first-of-type) {
    font-weight: normal;
    display: inline-block;
    margin-right: 15px;
}
select, input[type="text"], input[type="tel"], input[type="email"], textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}
button.btn {
    background: #2c6e9e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    margin-right: 10px;
}
button.btn:hover {
    background: #1e4a6e;
}
.next-step, .prev-step {
    background: #4a6a8a;
}
.required {
    color: #c2410c;
}
.form-step {
    transition: all 0.3s ease;
}
.matrix-substep {
    margin-top: 20px;
}
.result-profession, .result-description, .result-colleges {
    margin-bottom: 20px;
    padding: 10px;
    background: #f0f4f8;
    border-radius: 12px;
}
#profi-result {
    margin-top: 20px;
    text-align: center;
}
.error {
    color: #c2410c;
}
.vacancy-iframe-container, .katalog-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}
.katalog-wrapper h2 {
    color: #1e466e;
    border-bottom: 2px solid #2c6e9e;
    padding-bottom: 10px;
}
.katalog-wrapper ul {
    list-style: none;
    padding: 0;
}
.katalog-wrapper li {
    background: white;
    margin: 10px 0;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .profi-anketa-wrapper, .vacancy-iframe-container, .katalog-wrapper {
        padding: 15px;
    }
    iframe {
        height: 800px;
    }
}
/* Каталог программ – компактная таблица */
.katalog-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table-responsive {
    overflow-x: auto;
}
#programs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
#programs-table th,
#programs-table td {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
#programs-table th {
    background: #f1f5f9;
    cursor: pointer;
    user-select: none;
}
#programs-table th:hover {
    background: #e2e8f0;
}
#programs-table th.sort-asc::after {
    content: " ▲";
    font-size: 11px;
}
#programs-table th.sort-desc::after {
    content: " ▼";
    font-size: 11px;
}
#programs-table a {
    color: #2c6e9e;
    text-decoration: none;
}
#programs-table a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    #programs-table th, #programs-table td {
        padding: 8px;
        font-size: 12px;
    }
}
/* Контейнер для поиска и кнопки */
.katalog-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}
#katalog-search {
    flex: 1;
    min-width: 250px;
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 40px;
    font-size: 14px;
}
.reset-btn {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.reset-btn.active-filter {
    background: #fee2e2;
    border-color: #ef4444;
    color: #b91c1c;
    font-weight: 500;
}
.reset-btn:hover {
    background: #cbd5e1;
}
.reset-btn.active-filter:hover {
    background: #fecaca;
}

#test-result {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
}
#result-spheres-list ul {
    list-style: none;
    padding: 0;
}
#result-spheres-list li {
    background: white;
    margin: 12px 0;
    padding: 12px;
    border-radius: 12px;
    border-left: 5px solid #2c6e9e;
}
.result-actions {
    margin-top: 20px;
    text-align: center;
}
.num {
    text-align: right;
}
#spo-table th.sort-asc::after {
    content: " ▲";
    font-size: 11px;
}
#spo-table th.sort-desc::after {
    content: " ▼";
    font-size: 11px;
}