/* --- Блок от лица эксперта: УТП vs найм с рынка --- */
.expert-usp-section {
    background: #050505;
    padding: clamp(56px, 10vh, 88px) 0;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 215, 0, 0.08);
    overflow: hidden;
}

.expert-usp-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 215, 0, 0.25) 20%, rgba(255, 215, 0, 0.4) 50%, rgba(255, 215, 0, 0.25) 80%, transparent 100%);
    pointer-events: none;
}

.expert-usp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 48px);
}

.expert-usp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(40px, 6vw, 64px);
    align-items: stretch;
}

.expert-usp-content {
    max-width: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    align-self: stretch;
}

.expert-usp-content-scroll {
    width: 100%;
    max-width: min(38rem, 100%);
}

/* Метка «// от эксперта» — как журнальный тег на hero: линия + капсула */
.expert-usp-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 16px 8px 12px;
    margin: 0 0 clamp(0.65rem, 1.4vw, 1rem);
    font-family: var(--font-label), ui-monospace, monospace;
    font-size: clamp(0.58rem, 0.72vw, 0.68rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.96);
    background:
        linear-gradient(155deg, rgba(255, 215, 0, 0.1) 0%, transparent 55%),
        rgba(8, 9, 11, 0.72);
    border: 1px solid rgba(255, 215, 0, 0.38);
    border-radius: 999px;
    box-shadow:
        0 0 24px -10px rgba(255, 215, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.expert-usp-tag::before {
    content: '';
    flex-shrink: 0;
    width: clamp(22px, 3.5vw, 34px);
    height: 1px;
    border-radius: 1px;
    background: linear-gradient(90deg, var(--accent), rgba(255, 215, 0, 0.28));
    opacity: 0.95;
}

/* Плакатный заголовок — та же логика, что у #problems (журнальный контраст белое / золото) */
.expert-usp-title {
    margin: 0 0 clamp(1rem, 2vw, 1.35rem);
    max-width: min(52rem, 100%);
    text-align: left;
}

/* Две белые строки заголовка — явный перенос, без «ломаного» края из-за авто-wrap */
.expert-usp-title__line1 + .expert-usp-title__line1 {
    margin-top: 0.06em;
}

.expert-usp-title__line1 {
    display: block;
    font-family: var(--font-hero-display), var(--font-display), system-ui, sans-serif;
    font-weight: 900;
    font-size: clamp(1.35rem, 3.45vw, 2.85rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--text, #f7f7f5);
}

.expert-usp-title__line2 {
    display: block;
    margin-top: clamp(0.15rem, 0.6vw, 0.35rem);
    font-family: var(--font-hero-display), var(--font-display), system-ui, sans-serif;
    font-weight: 900;
    font-size: clamp(1.45rem, 3.65vw, 3.05rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--accent);
    text-shadow: 0 0 48px rgba(255, 215, 0, 0.14);
}

.expert-usp-intro {
    font-family: var(--font-b), system-ui, sans-serif;
    font-size: clamp(0.82rem, 1.15vw, 0.95rem);
    color: var(--text-muted, rgba(245, 245, 242, 0.68));
    line-height: 1.5;
    margin-bottom: 26px;
    max-width: min(38rem, 100%);
    font-weight: 400;
}

.expert-usp-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.expert-usp-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    box-sizing: border-box;
}

.expert-usp-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.expert-usp-arrow {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

/* .expert-usp-cta — unified style in main.css */

/* Фото + оверлей */
.expert-usp-photo-block {
    position: relative;
}

.expert-usp-photo-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 24px 56px -16px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.14);
}

.expert-usp-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 80px -20px rgba(255, 215, 0, 0.06);
}

.expert-usp-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    vertical-align: middle;
}

.expert-usp-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.5vw, 28px);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.expert-usp-name {
    font-family: var(--font-hero-display), var(--font-display), system-ui, sans-serif;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.expert-usp-role {
    font-family: var(--font-b), system-ui, sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.78);
}

.expert-usp-company {
    font-family: var(--font-label), ui-monospace, monospace;
    font-size: 0.68rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Десктоп: колонки одной высоты, кнопка по нижнему краю карточки; фото тянется по высоте ячейки */
@media (min-width: 993px) {
    .expert-usp-cta {
        margin-top: auto;
        align-self: flex-start;
    }

    .expert-usp-list {
        margin-bottom: 0;
    }

    .expert-usp-photo-block {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
    }

    .expert-usp-photo-wrap {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .expert-usp-photo {
        flex: 1 1 auto;
        width: 100%;
        height: 100%;
        min-height: min(480px, 58vh);
        object-fit: cover;
        aspect-ratio: auto;
    }
}

@media (max-width: 992px) {
    .expert-usp-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .expert-usp-content {
        max-width: 100%;
        order: 0;
    }

    .expert-usp-photo-block {
        max-width: 360px;
        margin: 0 auto;
        order: 1;
        height: auto;
        display: block;
    }

    .expert-usp-photo-wrap {
        flex: unset;
        display: block;
        min-height: 0;
    }

    .expert-usp-photo {
        flex: unset;
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 3 / 4;
        object-fit: cover;
    }

}

/* Мобильные: фото сверху (~35% высоты), текст + кнопка сразу под ним, без пустого зазора */
@media (max-width: 768px) {
    .expert-usp-section {
        padding: 0;
    }

    .expert-usp-container {
        padding: 0;
    }

    .expert-usp-layout {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 35vh auto;
        gap: 0;
        align-items: stretch;
    }

    .expert-usp-photo-block {
        grid-row: 1;
        margin: 0;
        max-width: none;
        min-height: 0;
    }

    .expert-usp-photo-wrap {
        width: 100%;
        height: 100%;
        min-height: 0;
        border-radius: 0;
        aspect-ratio: unset;
    }

    .expert-usp-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* На мобильных немного «отдаляем» кадр и смещаем вверх,
           чтобы голова не обрезалась и в кадре было больше воздуха сверху */
        object-position: 50% 18%;
        display: block;
    }

    .expert-usp-content {
        grid-row: 2;
        min-width: 0;
        padding: 20px clamp(16px, 4vw, 24px) 24px;
        display: block;
    }

    /* Текст и кнопка — обычный поток: кнопка сразу под списком, без пустого места */
    .expert-usp-content-scroll {
        padding-bottom: 0;
    }

    .expert-usp-overlay {
        padding: 12px 16px;
    }

    .expert-usp-name {
        font-size: 1rem;
    }

    .expert-usp-role,
    .expert-usp-company {
        font-size: 0.7rem;
    }

    .expert-usp-tag {
        font-size: clamp(0.56rem, 2.8vw, 0.62rem);
        letter-spacing: 0.14em;
        margin-bottom: 0.65rem;
        padding: 7px 13px 7px 10px;
        gap: 8px;
    }

    .expert-usp-tag::before {
        width: clamp(18px, 8vw, 28px);
    }

    .expert-usp-title {
        margin-bottom: 0.9rem;
        max-width: 100%;
    }

    .expert-usp-title__line1 {
        font-size: clamp(1.1rem, 4.6vw, 1.5rem);
        line-height: 0.95;
    }

    .expert-usp-title__line2 {
        font-size: clamp(1.2rem, 5vw, 1.65rem);
        line-height: 0.95;
        margin-top: 0.2rem;
    }

    .expert-usp-intro {
        font-size: 0.82rem;
        line-height: 1.58;
        margin-bottom: 16px;
        color: rgba(255, 255, 255, 0.85);
        -webkit-line-clamp: unset;
        display: block;
        overflow: visible;
    }

    .expert-usp-list {
        margin-bottom: 18px;
    }

    .expert-usp-list li {
        font-size: 0.81rem;
        line-height: 1.55;
        padding: 9px 0;
        gap: 10px;
        color: rgba(255, 255, 255, 0.92);
    }

    .expert-usp-arrow {
        width: 7px;
        height: 7px;
        margin-top: 6px;
        border-right-width: 2px;
        border-bottom-width: 2px;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
    }

    .expert-usp-cta {
        width: auto;
        padding: 13px 30px;
        font-size: 0.78rem;
        min-height: 44px;
        margin: 16px auto 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .expert-usp-content {
        padding: 16px clamp(14px, 4vw, 18px) 18px;
    }

    .expert-usp-title__line1 {
        font-size: clamp(1.05rem, 4.4vw, 1.3rem);
    }

    .expert-usp-title__line2 {
        font-size: clamp(1.12rem, 4.8vw, 1.38rem);
    }

    .expert-usp-intro {
        font-size: 0.78rem;
    }

    .expert-usp-list li {
        font-size: 0.76rem;
    }

    .expert-usp-cta {
        font-size: 0.76rem;
        padding: 12px 26px;
    }
}
