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

.career-experts-page {
    --experts-accent: var(--primary);
    --experts-accent-hover: #1d4ed8;
    --experts-accent-rgb: 37, 99, 235;

    background: #f8fafc;
    color: #0f172a;
}

.career-experts-page--purple {
    --experts-accent: #7c3aed;
    --experts-accent-hover: #6d28d9;
    --experts-accent-rgb: 124, 58, 237;
}

.career-experts-page--teal {
    --experts-accent: #0f766e;
    --experts-accent-hover: #115e59;;
    --experts-accent-rgb: 15, 118, 110;
}

.public-section--purple {
    --experts-accent: #7c3aed;
    --experts-accent-hover: #6d28d9;
    --experts-accent-rgb: 124, 58, 237;
}

.public-section--teal {
    --experts-accent: #0f766e;
    --experts-accent-hover: #115e59;;
    --experts-accent-rgb: 15, 118, 110;
}

.public-section--primary {
    --experts-accent: var(--primary);
    --experts-accent-hover: #1d4ed8;
    --experts-accent-rgb: 37, 99, 235;
}

.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(var(--experts-accent-rgb), 0.09), transparent 28%),
    radial-gradient(circle at 85% 60%, rgba(var(--experts-accent-rgb), 0.08), transparent 30%);
}

.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(--experts-accent);
}

.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(--experts-accent);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 650;
    box-shadow: 0 8px 20px rgba(var(--experts-accent-rgb), 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: var(--experts-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(var(--experts-accent-rgb), 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: 20px;
}

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

.section-overline {
    display: block;
    margin-bottom: 9px;
    color: var(--experts-accent);
    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(--experts-accent);
}

.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(var(--experts-accent-rgb), 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;
    padding: 20px 0;
}


/* ==========================================================================
   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(--experts-accent);
    font-size: 16px;
    font-weight: 800;
    border: 1px solid rgba(var(--experts-accent-rgb), 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-main-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.expert-main-info h3 a:hover {
    color: var(--experts-accent);
}

.expert-position {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expert-description {
    margin: 0;
    min-height: 92px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.expert-tags span {
    padding: 6px 10px;
    background: #f1f5f9;
    color: var(--experts-accent);
    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(--experts-accent);
    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 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;
}

/* ==========================================================================
   CONSULTATION PROCESS
   ========================================================================== */

.consultation-process-section {
    padding: 90px 0;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
}

.consultation-process-section .section-heading {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.consultation-process-section .section-heading p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Consultation steps ---------- */

.consultation-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 50px;
    padding: 28px 0;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    overflow: hidden;
}

.consultation-step {
    position: relative;
    padding: 20px 28px;
}

.consultation-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 34px;
    right: 0;
    width: 1px;
    height: 70px;
    background: #dfe6ee;
}

.consultation-step-number {
    display: block;
    margin-bottom: 18px;
    color: var(--experts-accent);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.05em;
}

.consultation-step-content h3 {
    margin: 0 0 10px;
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

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


/* ---------- Consultation notes ---------- */

.consultation-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.consultation-note {
    padding: 24px 26px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
}

.consultation-note strong {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
}

.consultation-note p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}


/* ==========================================================================
   CONSULTATION PROCESS — TABLET
   ========================================================================== */

@media (max-width: 950px) {

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

    .consultation-step {
        padding: 22px;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .consultation-step:nth-child(odd) {
        border-right: 1px solid #dfe6ee;
    }

    .consultation-step:nth-child(-n + 2) {
        border-bottom: 1px solid #dfe6ee;
    }

    .consultation-step:not(:last-child)::after {
        display: none;
    }

    .consultation-notes {
        gap: 16px;
    }
}


/* ==========================================================================
   CONSULTATION PROCESS — MOBILE
   ========================================================================== */

@media (max-width: 700px) {

    .consultation-process-section {
        padding: 50px 0;
    }

    .consultation-process-section .section-heading p {
        font-size: 14px;
        line-height: 1.6;
    }

    .consultation-steps {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 30px;
        padding: 10px 0;
        border-radius: 18px;
    }

    .consultation-step {
        padding: 20px;
        background: transparent;
        border: none !important;
        border-radius: 0;
    }

    .consultation-step-number {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .consultation-step-content h3 {
        font-size: 15px;
    }

    .consultation-step-content p {
        font-size: 13px;
        line-height: 1.6;
    }

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

    .consultation-note {
        padding: 20px;
    }

    .consultation-note strong {
        font-size: 14px;
    }

    .consultation-note p {
        font-size: 13px;
    }
}

/* ==========================================================================
   CONSULTATION RESULT
   ========================================================================== */

.consultation-result-section {
    padding: 95px 0 105px;
    background: #ffffff;
    border-top: 1px solid #eef2f7;
}

.consultation-result-section .section-heading {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.consultation-result-section .section-heading p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================================
   CONSULTATION RESULT / CAREER MAP
   ========================================================================== */

.consultation-result-section {
    padding: 95px 0 105px;
    background: #ffffff;
    border-top: 1px solid #eef2f7;
}

.consultation-result-section .section-heading {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.consultation-result-section .section-heading p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================================
   CAREER MAP
   ========================================================================== */

.career-map {
    position: relative;
    width: 720px;
    height: 620px;
    margin: 55px auto 0;
}


/* ORBIT */

.career-map-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 430px;
    height: 430px;
    transform: translate(-50%, -50%);
    border: 1px solid #dbe5f0;
    border-radius: 50%;
}


/* CENTER */

.career-map-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 170px;
    height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border: 1px solid #dbe5f0;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.career-map-center-overline {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.career-map-center strong {
    color: var(--experts-accent);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}


/* POINTS */

.career-map-point {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
}

.career-map-dot {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: var(--experts-accent);
    box-shadow: 0 0 0 1px rgba(var(--experts-accent-rgb), 0.25),
    0 4px 10px rgba(var(--experts-accent-rgb), 0.12);
}

.career-map-label {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}


/* ==========================================================================
   POINT POSITIONS
   ========================================================================== */

/* top */

.career-map-point-1 {
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column-reverse;
}

.career-map-point-1 .career-map-dot {
    margin-top: 3px;
}


/* upper right */

.career-map-point-2 {
    top: 160px;
    right: 40px;
}


/* lower right */

.career-map-point-3 {
    bottom: 145px;
    right: 58px;
}


/* bottom */

.career-map-point-4 {
    bottom: 57px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
}

.career-map-point-4 .career-map-dot {
    margin-bottom: 3px;
}


/* lower left */

.career-map-point-5 {
    bottom: 145px;
    left: 90px;
    flex-direction: row-reverse;
}


/* upper left */

.career-map-point-6 {
    top: 160px;
    left: 90px;
    flex-direction: row-reverse;
}


/* ==========================================================================
   HOVER
   ========================================================================== */

.career-map-point {
    transition: transform 0.25s ease;
}

.career-map-point:hover .career-map-dot {
    box-shadow: 0 0 0 5px rgba(var(--experts-accent-rgb), 0.08),
    0 0 0 1px rgba(var(--experts-accent-rgb), 0.3);
}

.career-map-point:hover .career-map-label {
    color: #1e293b;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 950px) {

    .career-map {
        width: 620px;
        height: 570px;
    }

    .career-map-orbit {
        width: 390px;
        height: 390px;
    }

    .career-map-point-2 {
        right: 10px;
    }

    .career-map-point-3 {
        right: 5px;
    }

    .career-map-point-5 {
        left: 5px;
    }

    .career-map-point-6 {
        left: 10px;
    }

}


@media (max-width: 700px) {

    .consultation-result-section {
        padding: 55px 0 65px;
    }

    .consultation-result-section .section-heading p {
        font-size: 14px;
        line-height: 1.6;
    }

    .career-map {
        width: 100%;
        max-width: 440px;
        height: 500px;
        margin-top: 40px;
    }

    .career-map-orbit {
        width: 290px;
        height: 290px;
    }

    .career-map-center {
        width: 125px;
        height: 125px;
    }

    .career-map-center-overline {
        font-size: 10px;
    }

    .career-map-center strong {
        font-size: 15px;
    }

    .career-map-label {
        font-size: 11px;
    }

    .career-map-dot {
        width: 11px;
        height: 11px;
    }


    .career-map-point-1 {
        top: 48px;
    }

    .career-map-point-2 {
        top: 130px;
        right: 5px;
    }

    .career-map-point-3 {
        bottom: 115px;
        right: 0;
    }

    .career-map-point-4 {
        bottom: 40px;
    }

    .career-map-point-5 {
        bottom: 115px;
        left: 0;
    }

    .career-map-point-6 {
        top: 130px;
        left: 5px;
    }

}


@media (max-width: 450px) {

    .career-map {
        height: 450px;
    }

    .career-map-orbit {
        width: 250px;
        height: 250px;
    }

    .career-map-center {
        width: 110px;
        height: 110px;
    }

    .career-map-center-overline {
        max-width: 75px;
    }

    .career-map-center strong {
        font-size: 14px;
    }

    .career-map-label {
        max-width: 85px;
        font-size: 10px;
    }

    .career-map-point-1 {
        top: 32px;
    }

    .career-map-point-2 {
        top: 105px;
        right: 0;
    }

    .career-map-point-3 {
        bottom: 100px;
        right: 0;
    }

    .career-map-point-4 {
        bottom: 25px;
    }

    .career-map-point-5 {
        bottom: 100px;
        left: 0;
    }

    .career-map-point-6 {
        top: 105px;
        left: 0;
    }

}

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

/* ---------- Планшеты ---------- */
@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;
    }
}