/* Careers Page Styles */

/* Job Application Modal Overrides */
#jobApplicationModal .callback-modal {
    max-width: 30rem; /* Увеличиваем ширину еще больше до 30rem */
    max-height: 98vh; /* Увеличиваем высоту до 98vh для лучшей видимости */
    min-height: auto; /* Убираем минимальную высоту */
}

#jobApplicationModal .callback-modal-body {
    max-height: calc(98vh - 6rem);
    padding: 0.75rem 1.5rem 6rem 1.5rem;
}

#jobApplicationModal .callback-form-group {
    margin-bottom: 1rem; /* Уменьшаем отступы между полями */
}

#jobApplicationModal .job-info {
    margin-bottom: 1rem !important; /* Уменьшаем отступ для блока с вакансией */
}

/* Уменьшаем размер textarea для сопроводительного письма */
#jobApplicationModal #applicant-message {
    min-height: 80px !important; /* Уменьшаем с 100px до 80px */
    rows: 3; /* Уменьшаем количество строк */
}

/* Делаем форму более компактной */
#jobApplicationModal .callback-form-fields {
    gap: 0.875rem; /* Уменьшаем расстояние между элементами формы */
}

/* Уменьшаем отступы в подсказках */
#jobApplicationModal small {
    margin-top: 0.25rem;
    display: block;
}

/* Мобильная версия */
@media (max-width: 768px) {
    #jobApplicationModal .callback-modal {
        max-width: calc(100% - 1rem);
        margin: 0.5rem;
        max-height: 98vh;
    }
    
    #jobApplicationModal .callback-modal-body {
        max-height: calc(98vh - 5rem);
        padding: 0.75rem;
    }
    
    #jobApplicationModal .callback-form-group {
        margin-bottom: 0.875rem;
    }
}
.careers-content {
    max-width: 68rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.careers-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.125rem;
    color: var(--main-text-color);
    line-height: 1.6;
}

/* Company Values Section */
.company-values {
    margin-bottom: 4rem;
}

.company-values h2 {
    text-align: center;
    color: var(--border-heading-color);
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.values-grid {
    margin-top: 2rem;
}

.value-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 2px solid rgba(255, 207, 157, 0.25);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: var(--border-heading-color);
    background: rgba(255, 207, 157, 0.05);
    box-shadow: 0 8px 25px rgba(255, 207, 157, 0.4);
}

.value-item h4 {
    color: var(--border-heading-color);
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.value-item p {
    color: var(--main-text-color);
    line-height: 1.6;
}

/* Open Positions Section */
.open-positions {
    margin-bottom: 4rem;
}

.open-positions .col-12.mb-4 {
    margin-bottom: 2.5rem !important;
}

.open-positions h2 {
    color: var(--border-heading-color);
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Vacancy Items */
.vacancy-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 207, 157, 0.25);
    transition: all 0.3s ease;
    position: relative;
}

.vacancy-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 207, 157, 0.4);
    border-color: var(--border-heading-color);
    background: rgba(255, 207, 157, 0.05);
}

.vacancy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.vacancy-header h3 {
    color: var(--border-heading-color);
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.vacancy-location,
.vacancy-type {
    background: rgba(255, 207, 157, 0.25);
    color: var(--main-text-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.vacancy-location {
    border-left: 3px solid var(--border-heading-color);
}

.vacancy-type {
    border-left: 3px solid var(--border-heading-color);
}

.vacancy-salary {
    background: linear-gradient(135deg, var(--border-heading-color), #fff);
    color: var(--bg-color);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin: 1.5rem 0;
    display: inline-block;
    min-width: 250px;
}

.vacancy-description {
    margin-top: 1.5rem;
}

.vacancy-description p {
    color: var(--border-heading-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.vacancy-description ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.vacancy-description li {
    color: var(--main-text-color);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.vacancy-description li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--border-heading-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Benefits Section */
.benefits {
    margin-bottom: 4rem;
}

.benefits h2 {
    color: var(--border-heading-color);
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    text-align: center;
}

.benefits-list {

}

.benefit-item {
    background: rgba(255, 207, 157, 0.03);
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid rgba(255, 207, 157, 0.25);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 207, 157, 0.4);
    border-color: var(--border-heading-color);
    background: rgba(255, 207, 157, 0.08);
}

.benefit-item h4 {
    color: var(--border-heading-color);
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.benefit-item p {
    color: var(--main-text-color);
    line-height: 1.6;
}

/* Application Section */
.application-section {
    background: linear-gradient(135deg, #3f2e34bd, #ffffff);
    color: var(--bg-color);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    margin-top: 3rem;
}
.application-section p{color:#fff}

.application-section h2 {
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.application-section p {
    font-size: 1.125rem;
    margin-bottom: .5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-info {
    background: rgba(10, 38, 71, 0.2);
    padding: 2rem;
    border-radius: 1rem;
    margin: 2rem 0;
    border: 1px solid rgba(10, 38, 71, 0.3);
}

.contact-info p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.contact-info strong {
    font-weight: 600;
}

.application-note {
    background: rgba(10, 38, 71, 0.2);
    padding: 1.5rem 3rem;
    border-radius: 1rem;
    margin-top: 2rem;
    border: 1px solid rgba(10, 38, 71, 0.3);
}

.application-note em {
    font-style: italic;
    opacity: 0.9;
    line-height: 1.6;
    /* Фикс для проблемы с межсимвольными отступами на iOS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: normal;
    word-spacing: normal;
}

/* Дополнительный фикс специально для iOS/Safari */
@supports (-webkit-touch-callout: none) {
    .application-note em {
        /* Принудительно используем системный шрифт для курсива на iOS */
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
        transform: none; /* Отключаем возможные CSS трансформации */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .careers-content {
        padding: 1rem 0.5rem;
    }
    
    
    .vacancy-item {
        padding: 2rem 1.5rem;
    }
    
    .vacancy-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vacancy-salary {
        font-size: 1.125rem;
        min-width: 200px;
    }

    
    .application-section {
        padding: 2rem 1rem;
    }
    
    .application-section h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .vacancy-item {
        padding: 1.5rem 1rem;
    }
    
    .vacancy-header h3 {
        font-size: 1.25rem;
    }
    
    .vacancy-salary {
        font-size: 1rem;
        min-width: 180px;
    }
    
    .value-item,
    .benefit-item {
        padding: 1.5rem;
    }
}

/* Job Apply Button */
.job-apply-btn {
    border-radius: 0.75rem !important;
}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vacancy-item,
.value-item,
.benefit-item {
    animation: slideInUp 0.6s ease-out;
    height: 100%;
}

.vacancy-item:nth-child(1) { animation-delay: 0.1s; }
.vacancy-item:nth-child(2) { animation-delay: 0.2s; }
.vacancy-item:nth-child(3) { animation-delay: 0.3s; }