/* Page-specific styles for `oferty-pracy.html`
   Extracted from inline <style> (moved out of <body>) to avoid late style recalculation jank. */

/* Скрываем псевдоэлементы, которые могут создавать дополнительные градиенты */
.about::before,
.about::after,
.page-header::before,
.page-header::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
    opacity: 0 !important;
}

.page-header {
    padding: 80px 20px 40px;
    background: linear-gradient(to bottom, rgba(42, 42, 42, 0.95), rgba(47, 47, 47, 0.9));
    text-align: center;
    margin-bottom: 0;
}

.page-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 15px rgba(212, 175, 55, 0.15);
    animation: titleGlow 4s ease-in-out infinite;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3), 0 0 15px rgba(212, 175, 55, 0.15);
    animation: underlineGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 2px 15px rgba(212, 175, 55, 0.15);
    }
    50% {
        text-shadow: 0 2px 20px rgba(212, 175, 55, 0.25), 0 0 25px rgba(212, 175, 55, 0.1);
    }
}

@keyframes underlineGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.3), 0 0 15px rgba(212, 175, 55, 0.15);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 12px rgba(212, 175, 55, 0.4), 0 0 20px rgba(212, 175, 55, 0.25);
        opacity: 0.95;
    }
}

.job-offers {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 0;
}

.job-card {
    background: rgba(47, 47, 47, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.job-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
    background: rgba(47, 47, 47, 0.9);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.job-title {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    color: var(--secondary-color);
}

.job-badge {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: clamp(12px, 1.5vw, 14px);
    white-space: nowrap;
}

.job-location {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.job-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.job-requirements {
    margin: 25px 0;
}

.job-requirements h4 {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.job-requirements ul {
    list-style: none;
    padding-left: 0;
}

.job-requirements li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.job-requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.job-apply-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--cta-primary) 0%, #1d4ed8 100%);
    color: var(--secondary-color);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.job-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.job-cta {
    margin-top: 40px;
    padding: 30px;
    background: rgba(47, 47, 47, 0.6);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* Cross-browser + mobile GPU optimization: disable backdrop-filter where it's unsupported or expensive */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .job-card,
    .job-cta {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    .job-card,
    .job-cta {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.job-cta-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.job-cta-subtext {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.about-content {
    max-width: 1000px;
}

@media (max-width: 768px) {
    .page-header {
        padding: 70px 15px 30px;
    }

    .page-title {
        font-size: clamp(32px, 8vw, 48px);
        margin-bottom: 20px;
    }

    .page-title::after {
        height: 2px;
        bottom: -10px;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-card {
        padding: 18px;
    }

    .job-offers {
        gap: 18px;
    }

    .job-cta {
        padding: 25px 18px;
        margin-top: 25px;
    }

    .job-cta-text {
        font-size: 18px;
    }

    .job-title {
        font-size: 18px;
    }

    .job-badge {
        font-size: 11px;
        padding: 5px 12px;
    }
}

