* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover {
    opacity: 0.8;
}

main {
    flex: 1;
    padding: 30px 0;
}

/* Стили для главной страницы */
.hero {
    background: linear-gradient(rgba(106, 17, 203, 0.9), rgba(37, 117, 252, 0.9)), url('/images/hero-bg.jpg');
    background-size: cover;
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-radius: 15px;
    margin-bottom: 40px;
	margin-top: 40px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: white;
    color: #2575fc;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: #ff8c00;
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.vacancy-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    border: 1px solid #e8e8e8;
}

.vacancy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.vacancy-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 20px;
}

.vacancy-header h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.salary {
    font-size: 20px;
    font-weight: 700;
    margin: 10px 0;
    color: #ffeb3b;
}

.vacancy-body {
    padding: 20px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.badge {
    background: #f0f7ff;
    color: #2575fc;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.features {
    list-style: none;
    margin-bottom: 20px;
}

.features li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
}

.features li:before {
    content: "✓";
    color: #4caf50;
    position: absolute;
    left: 0;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
    flex: 1;
    text-align: center;
}

/* Стили для детальной страницы вакансии */
.vacancy-detail {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.vacancy-title {
    color: #2575fc;
    margin-bottom: 10px;
}

.meta-info {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.section {
    margin-bottom: 30px;
}

.section-title {
    color: #2575fc;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4f8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.grade-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #2575fc;
}

.grade-item ul {
    padding-left: 18px;
    
}

.grade-item h4 {
    color: #2575fc;
    margin-bottom: 10px;
}

.print-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
}

.qr-code {
    width: 150px;
    height: 150px;
    margin: 15px auto;
    background: #f0f0f0;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
    text-align: center;
    padding: 10px;
}

/* Стили для формы анкеты */
.application-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #2575fc;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: #2575fc;
}

.file-input {
    display: none;
}

/* Футер */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .vacancies-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons, .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

.requirements-list, .responsibilities-list {
    list-style-type: none;
    font-size: 14px;
    columns: 2;
    column-gap: 30px;
}

.requirements-list li, .responsibilities-list li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    break-inside: avoid;
}

.requirements-list li:before, .responsibilities-list li:before {
    content: "•";
    color: #2575fc;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: 5px;
}

/* Усиленная подсветка ошибок для ActiveForm */
.form-group.has-error .form-control,
.form-group.has-error .form-control:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
    background-color: #fff5f5;
}

.form-group.has-error .help-block {
    color: #c0392b;
    font-weight: bold;
    padding: 6px 10px;
    background: #fce4e4;
    border-left: 4px solid #e74c3c;
    margin-top: 6px;
}

.form-group.has-error .control-label {
    color: #e74c3c;
}

.alert-danger {
    background-color: #f8d7da;
    border-left: 5px solid #e74c3c;
    border-radius: 6px;
    color: #721c24;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.alert-danger i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.alert-danger strong {
    font-weight: 600;
}