/* ==============================================
   Карьера — Clean Professional Styles
   ============================================== */

main {
    width: 100%;
    overflow: hidden;
    background: #f0f4f8;
}

.img-block img {
    width: 100%;
    right: 0%;
    height: 100%;
    object-fit: cover;
}

.text-content {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 250px;
}

.text-content span {
    width: 100%;
    margin: 0 0 20px;
    color: #ffffff;
}

.text-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    max-width: 100%;
}

/* ========== JOB OFFERS ========== */
.job-offers {
    width: 100%;
    padding: 40px 8% 0;
}

.job-offers-title {
    font-weight: 800;
    font-size: 30px;
    line-height: 1.3;
    color: #041832;
    margin-bottom: 40px;
    position: relative;
    letter-spacing: -0.3px;
}

.job-offers-title::after {
    content: '';
    position: absolute;
    bottom: -15px; left: 0;
    width: 60px; height: 3px;
    background: linear-gradient(90deg, #041832, white);
    border-radius: 2px;
}

/* ========== JOB CARD ========== */
.job-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(4,24,50,0.06);
    border: 1px solid rgba(4,24,50,0.05);
    margin-bottom: 60px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.job-card:hover {
    box-shadow: 0 12px 32px rgba(4,24,50,0.1);
}

/* Job header */
.job-header {
    display: flex;
    background: linear-gradient(160deg, #041832 0%, #0a2d4a 50%, #1a4b6e 100%);
    color: white;
    padding: 0;
    min-height: 160px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    margin: 0;
    overflow: hidden;
}

/* Decorative glow on job header */
.job-header::before {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(74,158,255,0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.job-header:hover {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.job-image {
    width: 20%;
    overflow: hidden;
}

.job-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.job-title-wrapper {
    width: 80%;
    padding: 28px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 80px;
}

.job-title-wrapper {
    position: relative;
}

.job-title-wrapper::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.job-header.active .job-title-wrapper::after {
    transform: translateY(-50%) rotate(180deg);
}

.job-title {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.job-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

.job-meta-item::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(74,158,255,0.5);
    flex-shrink: 0;
}

/* ========== JOB CONTENT (Accordion) ========== */
.job-content {
    padding: 0 36px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    margin: 0;
    display: none;
}

.job-content.active {
    padding: 36px 36px 20px;
    max-height: 2000px;
    opacity: 1;
    display: block;
}

.job-footer {
    padding: 0 36px 28px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: right;
    margin: 0;
    display: none;
}

.job-footer.active {
    padding: 0 36px 36px;
    max-height: 100px;
    opacity: 1;
    display: block;
}

/* Apply button */
.apply-button {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: linear-gradient(160deg, #041832 0%, #0a2d4a 100%);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(4,24,50,0.15);
}

.apply-button:hover {
    transform: translateX(3px);
    box-shadow: 0 12px 32px rgba(4,24,50,0.2);
}

.apply-button::after {
    content: "→";
    margin-left: 10px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.apply-button:hover::after { transform: translateX(5px); }

/* ========== JOB SECTIONS ========== */
.job-section {
    margin-bottom: 24px;
}

.job-section:last-child { margin-bottom: 0; }

.job-section-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    color: #041832;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(4,24,50,0.06);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-section-title::before {
    content: '';
    width: 12px;
    height: 2px;
    background: #3369b0;
    border-radius: 2px;
}

.job-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-list li {
    font-size: 15px;
    line-height: 1.7;
    color: #3d4f63;
    margin-bottom: 8px;
    padding-left: 22px;
    position: relative;
}

.job-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3369b0;
    opacity: 0.6;
}

/* ========== SKILLS TAGS ========== */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.skill-tag {
    background: rgba(51,105,176,0.06);
    border: 1px solid rgba(51,105,176,0.12);
    border-radius: 30px;
    padding: 6px 16px;
    font-weight: 500;
    font-size: 13px;
    color: #041832;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: #041832;
    color: white;
    border-color: #041832;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4,24,50,0.15);
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 992px) {
    .job-header {
        flex-direction: column;
        min-height: auto;
    }

    .job-header::after { right: 20px; }
    .job-image { width: 100%; height: 150px; }

    .job-title-wrapper {
        width: 100%;
        padding: 24px;
        padding-right: 50px;
    }

    .job-title { font-size: 22px; }
    .job-content.active { padding: 28px 28px 16px; }
    .job-footer.active { padding: 0 28px 28px; }
}

@media screen and (max-width: 780px) {
    .chapter-info { height: auto; min-height: 500px; }
    .job-card { margin-bottom: 40px; }

    .text-content {
        min-height: 200px;
        align-items: flex-start;
    }

    .text-content p { max-width: 100%; font-size: 15px; }
    .img-block img { width: 100%; object-fit: cover; }
    .mobile-img { display: block; top: 0; }

    .job-offers { padding: 30px 4% 0; }
    .job-offers-title { font-size: 24px; margin-bottom: 30px; }
    .job-meta { gap: 12px; }
    .job-meta-item { font-size: 13px; width: 100%; }
    .job-title { font-size: 20px; }
    .job-section-title { font-size: 15px; }
    .job-list li { font-size: 14px; padding-left: 20px; }
    .skills-tags { gap: 6px; }
    .skill-tag { padding: 5px 12px; font-size: 12px; }
    .apply-button { width: 100%; justify-content: center; }
}

@media screen and (max-width: 500px) {
    .chapter-info { min-height: 450px; }
    .text-content span { font-size: 20px; }
    .text-content p { font-size: 14px; }
    .job-offers-title { font-size: 22px; }
    .job-title { font-size: 18px; }
    .job-title-wrapper { padding: 18px; padding-right: 40px; }
    .job-content.active { padding: 22px 22px 12px; }
    .job-footer.active { padding: 0 22px 22px; }
    .job-section { margin-bottom: 18px; }
    .job-section-title { font-size: 14px; }
    .job-list li { font-size: 13px; line-height: 1.6; margin-bottom: 6px; }
}

@media screen and (min-width: 2000px) {
    .chapter-info { height: 800px; }
    .img-block img { left: auto; right: 0; }
    .job-offers { padding: 50px 12.5% 0; }
    .job-title { font-size: 28px; }
}

@media screen and (min-width: 2500px) {
    .text-content { margin-left: 27%; width: 49%; min-height: 300px; }
    .text-content span { font-size: 42px; }
    .text-content p { font-size: 18px; }
    .job-offers { padding: 60px 17.5% 0; }
    .job-title { font-size: 32px; }
    .job-list li { font-size: 16px; }
}

@media screen and (min-width: 2950px) {
    .chapter-info { height: 950px; }
}

/* Remove desc block margins from header-footer.css */
.desc, .desc.right {
    margin-left: 0;
    margin-right: 0;
}

/* Footer adjustment */
footer {
    margin-top: 0;
    border-top: none;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    background: #DAEAFF;
    border-radius: 16px;
    padding: 40px;
    margin-top: 50px;
    text-align: center;
    margin-bottom: 60px;
}

.contact-title {
    font-family: 'Gotham Pro';
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
    color: #041832;
    margin-bottom: 15px;
}

.contact-text {
    font-family: 'Gotham Pro';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #041832;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Gotham Pro';
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    color: #041832;
}

.contact-item::before {
    font-size: 24px;
}

.contact-item.email::before {
    content: "✉️";
}

.contact-item.phone::before {
    content: "📞";
}

/* Responsive */
@media screen and (max-width: 992px) {
    .contact-info {
        gap: 30px;
    }
    
    .contact-item {
        font-size: 16px;
    }
}

@media screen and (max-width: 780px) {
    .contact-section {
        padding: 30px 20px;
    }
    
    .contact-title {
        font-size: 20px;
    }
    
    .contact-text {
        font-size: 14px;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

@media screen and (max-width: 500px) {
    .contact-section {
        padding: 25px 15px;
    }
    
    .contact-title {
        font-size: 18px;
    }
    
    .contact-item {
        font-size: 14px;
    }
}

@media screen and (min-width: 2000px) {
    .contact-section {
        margin-top: 70px;
    }
}

@media screen and (min-width: 2500px) {
    .contact-title {
        font-size: 28px;
    }
}