/* ==========================================================================
   CAREER EXPERTS PAGE
   ========================================================================== */

.career-experts-page {
    background: #f8fafc;
    color: #0f172a;
}

.experts-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.experts-hero {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid #eef2f7;
}

.experts-hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
            radial-gradient(circle at 15% 25%, rgba(37, 99, 235, 0.09), transparent 28%),
            radial-gradient(circle at 85% 60%, rgba(139, 92, 246, 0.08), transparent 30%);
}

.experts-hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(rgba(37, 99, 235, 0.025) 1px, transparent 1px),
            linear-gradient(90deg, rgba(37, 99, 235, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
}

.experts-hero .experts-container {
    position: relative;
    z-index: 2;
}

.experts-hero-title {
    margin: 0 0 16px;
    padding-top: 60px;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
    font-weight: 800;
    color: #0f172a;
    text-align: left;
}

.experts-hero-title span {
    color: var(--primary);
}

.experts-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 20px 0 95px;
}

.experts-hero-text {
    max-width: 650px;
}

.experts-hero-text p {
    max-width: 650px;
    margin: 0 0 34px;
    color: #64748b;
    font-size: 1.2rem;
    line-height: 1.65;
}

.experts-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.experts-hero-image img {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
}

.experts-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 650;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.experts-hero-button span {
    font-size: 19px;
    transition: transform 0.2s ease;
}

.experts-hero-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.experts-hero-button:hover span {
    transform: translateX(3px);
}


/* ==========================================================================
   SECTION HEADING
   ========================================================================== */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.section-heading.centered {
    display: block;
    text-align: center;
}

.section-overline {
    display: block;
    margin-bottom: 9px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
    font-weight: 550;
    color: var(--primary);
}

.section-heading p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
}

.experts-count {
    flex-shrink: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 550;
}


/* ==========================================================================
   PROBLEMS SECTION
   ========================================================================== */

.expert-problems {
    padding: 82px 0 78px;
    background: #ffffff;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 42px;
}

.problem-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.problem-card-inner:hover {
    border-color: rgba(37, 99, 235, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.problem-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.problem-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.problem-content {
    flex: 1;
    min-width: 0;
}

.problem-content strong {
    display: block;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.problem-content p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}


/* ==========================================================================
   EXPERTS SECTION
   ========================================================================== */

.experts-section {
    padding: 85px 0 100px;
    background: #f8fafc;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}


/* ==========================================================================
   EXPERT CARD
   ========================================================================== */

.expert-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.025);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.expert-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.expert-card-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.expert-avatar {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
    border: 1px solid rgba(37, 99, 235, 0.08);
    overflow: hidden;
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.expert-main-info {
    min-width: 0;
}

.expert-main-info h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.expert-position {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
}

.expert-description {
    margin: 0;
    min-height: 92px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.expert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.expert-tags span {
    padding: 6px 12px;
    background: #f1f5f9;
    color: var(--primary);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
}

.expert-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding-top: 19px;
    border-top: 1px solid #eef2f6;
}

.expert-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.expert-price small {
    color: #94a3b8;
    font-size: 11px;
}

.expert-price strong {
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
}

.expert-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.expert-more span {
    transition: transform 0.2s ease;
}

.expert-more:hover span {
    transform: translateX(3px);
}


/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.how-it-works {
    padding: 90px 0;
    background: #ffffff;
    border-top: 1px solid #eef2f7;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    display: flex;
    gap: 18px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 18px;
    border: 1px solid #eef2f6;
}

.step-number {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.step h3 {
    margin: 0 0 9px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
}

.step p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

/* ==========================================================================
   JOIN EXPERTS
   ========================================================================== */

.join-experts {
    padding: 75px 0;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.join-experts-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 38px 42px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.025);
}

.join-experts-text {
    max-width: 700px;
}

.join-experts-text .section-overline {
    margin-bottom: 10px;
}

.join-experts-text h2 {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
    font-weight: 550;
}

.join-experts-text p {
    margin: 0;
    max-width: 650px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.join-experts-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            background 0.2s ease;
}

.join-experts-button span {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.join-experts-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.join-experts-button:hover span {
    transform: translateX(3px);
}


/* ==========================================================================
   EXPERT APPLICATION
   ========================================================================== */

.expert-application {
    padding: 90px 0 100px;
    background: #ffffff;
    scroll-margin-top: 20px;
}

.expert-application-inner {
    max-width: 620px;
    margin: 0 auto;
}

.expert-application-heading {
    margin-bottom: 35px;
    text-align: center;
}

.expert-application-heading .section-overline {
    margin-bottom: 10px;
}

.expert-application-heading h2 {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
    font-weight: 550;
}

.expert-application-heading p {
    max-width: 520px;
    margin: 0 auto;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.expert-application-form {
    padding: 32px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.expert-application-submit {
    width: 100%;
    height: 48px;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition:
            background 0.2s ease,
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.expert-application-submit span {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.expert-application-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
}

.expert-application-submit:hover span {
    transform: translateX(3px);
}


/* ==========================================================================
   АДАПТИВНОСТЬ
   ========================================================================== */

@media (max-width: 700px) {

    .join-experts {
        padding: 50px 0;
    }

    .join-experts-content {
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
        padding: 28px 22px;
    }

    .join-experts-text h2 {
        font-size: 1.6rem;
    }

    .join-experts-text p {
        font-size: 14px;
    }

    .join-experts-button {
        width: 100%;
        box-sizing: border-box;
    }

    .expert-application {
        padding: 60px 0 70px;
    }

    .expert-application-heading h2 {
        font-size: 1.7rem;
    }

    .expert-application-form {
        padding: 22px 18px;
        border-radius: 16px;
    }
}


/* ==========================================================================
   АДАПТИВНОСТЬ
   ========================================================================== */

/* ---------- Планшеты ---------- */
@media (max-width: 950px) {
    .experts-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 0 70px;
    }

    .experts-hero-text {
        max-width: 100%;
    }

    .experts-hero-image {
        justify-content: flex-start;
    }

    .experts-hero-image img {
        max-width: 280px;
    }

    .problems-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .experts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .step {
        padding: 20px;
    }
}

/* ---------- Мобильные ---------- */
@media (max-width: 700px) {
    .experts-container {
        padding: 0 16px;
    }

    .experts-hero-title {
        padding-top: 40px;
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .experts-hero-content {
        padding: 20px 0 50px;
        gap: 30px;
    }

    .experts-hero-text p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .experts-hero-button {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        padding: 16px 22px;
    }

    .experts-hero-image {
        justify-content: center;
    }

    .experts-hero-image img {
        max-width: 200px;
    }

    .expert-problems {
        padding: 50px 0 45px;
    }

    .problems-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 28px;
    }

    .problem-card-inner {
        padding: 16px 18px;
    }

    .problem-icon {
        width: 48px;
        height: 48px;
    }

    .problem-content strong {
        font-size: 14px;
    }

    .problem-content p {
        font-size: 13px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 25px;
    }

    .section-heading h2 {
        font-size: 1.6rem;
    }

    .experts-section {
        padding: 50px 0 60px;
    }

    .experts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .expert-card {
        padding: 20px;
    }

    .expert-description {
        min-height: auto;
    }

    .expert-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .expert-more {
        width: 100%;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid #eef2f6;
    }

    .how-it-works {
        padding: 50px 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 30px;
    }

    .step {
        padding: 18px 20px;
    }
}

/* ---------- Маленькие телефоны ---------- */
@media (max-width: 450px) {
    .experts-hero-title {
        font-size: 1.8rem;
        padding-top: 30px;
    }

    .experts-hero-content {
        padding: 10px 0 40px;
    }

    .experts-hero-text p {
        font-size: 0.95rem;
    }

    .experts-hero-image {
        justify-content: center;
    }

    .experts-hero-image img {
        max-width: 160px;
    }

    .expert-card-top {
        gap: 12px;
    }

    .expert-avatar {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 14px;
    }

    .expert-avatar img {
        border-radius: 12px;
    }

    .expert-main-info h3 {
        font-size: 15px;
    }

    .expert-tags span {
        font-size: 10px;
        padding: 4px 10px;
    }
}