/* possibilities page (mod_possibilities active branch) */

/* shared button */
.btn-demo {
    font-size: 16px;
    background: #ded09f;
    color: white;
    text-transform: none;
    padding: 10px 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    transition: background 0.3s ease;
    justify-content: center;
}

.btn-demo:hover {
    background: #c9b58a;
    color: #2e3238;
}

.btn-demo:hover .demo-arrow {
    transform: translateX(2px);
}

.btn-demo:hover .demo-arrow path {
    stroke: #2e3238;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-fit {
    width: fit-content;
}

/* shared card base */
.card {
    background-color: #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    max-width: 100%;
}

.card-pad-lg {
    padding: 30px;
}

.card-pad-md {
    padding: 25px 15px;
}

/* overflow guards: no horizontal scroll on narrow screens */
.wrapper,
.newdiz_possibilities-section,
.newdiz_add_candidate-wrapper,
.newdiz_created_career-wrapper,
.newdiz_interviews-wrapper,
.newdiz_candidate_test-wrapper,
.newdiz_funnel-wrapper,
.newdiz_request-wrapper,
.newdiz_add_candidate-inner,
.newdiz_interviews-inner,
.newdiz_candidate_test-description,
.newdiz_funnel-desc,
.newdiz_funnel-item,
.newdiz_funnel-items,
.newdiz_funnel-parts,
.newdiz__possibilities-items,
.newdiz_created_career-descriptions,
.newdiz_candidate_test-descriptions,
.description-part,
.description-part-row,
.descriptions-wrapper,
.descriptions-part,
.item-img,
.item-head,
.part-head {
    box-sizing: border-box;
    max-width: 100%;
}

.newdiz_add_candidate-inner > *,
.newdiz_interviews-inner > *,
.newdiz_candidate_test-description > *,
.newdiz_funnel-desc > *,
.newdiz_funnel-item > *,
.newdiz_funnel-items > *,
.newdiz_created_career-descriptions > *,
.newdiz_candidate_test-descriptions > * {
    min-width: 0;
}

.section img {
    max-width: 100%;
    height: auto;
}

.section img.img-right {
    width: auto;
    max-width: min(400px, 100%);
}

.item-head .problem,
.item-head .solution,
.part-head .problem,
.part-head .solution {
    flex-shrink: 0;
    max-width: 100%;
}

.item-head p,
.part-head p {
    min-width: 0;
}

/* section */
.section {
    min-height: 100vh;
    padding: clamp(20px, 5vw, 40px) 0;
    display: flex;
    align-items: center;
    font-family: 'Nunito', sans-serif;
}

.newdiz_possibilities {
    position: relative;
    background-image: url(../images/fp_images/bgimg_pos.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    justify-content: center;
    padding: 0;

}

.newdiz_add_candidate,
.newdiz_interviews {
    background: linear-gradient(to right,
            rgba(211, 211, 211, 0.7),
            rgba(255, 248, 220, 0.7));
    color: #2e3238;
}

.newdiz_created_career,
.newdiz_candidate_test {
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.newdiz_possibilities-section {
    max-width: 1700px;
    width: 100%;
    margin: 0 auto;
    height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    margin: 150px 0 0 0;
}

/* wrapper */
.wrapper {
    padding: 0 clamp(20px, 5vw, 70px);
    width: 100%;
}

/* unique_text */
.unique_text {
    font-size: 18px;
    text-align: center;
}

.newdiz_possibilities-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 40px;
    width: 100%;
    text-align: center;
    height: 100%;
}

.line_first {
    height: 1.5px;
    background-color: white;
    margin: 75px auto 0;
    width: 90%;
}

.line_second {
    height: 1.5px;
    background-color: white;
    margin: 40px auto 0;
    width: 90%;
}

.newdiz_possibilities .header-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 0 0 20px;
    text-align: center;
}

.newdiz_possibilities .header-line h1 {
    color: white;
    font-size: 3.5vmin;
    font-weight: 300;
    margin: 0;
    white-space: nowrap;
}

.newdiz_possibilities .header-line p {
    color: white;
    font-size: 3.5vmin;
    font-weight: 300;
    margin: 0;
    white-space: nowrap;
}

.first {
    text-align: center;
    color: white;
    font-size: 9vmin;
    font-weight: 300;
    text-transform: uppercase;
    line-height: 1.35;
    margin: 0 0 10px;
}

.second {
    text-align: center;
    color: white;
    font-size: 3.5vmin;
    font-weight: 300;
    margin: 0 0 30px;
}

.newdiz_possibilities-inner>div:last-of-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto 40px;
    padding: 0 70px;
}

.newdiz_possibilities-btn {
    text-align: right;
}

.newdiz_possibilities-btn p {
    color: white;
    margin: 0 0 10px;
    font-size: 12px;
}

.newdiz_possibilities-btn a {
}

.demo-arrow {
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.newdiz-header-fixed {
    position: fixed !important;
    background: white;
    color: #2e3238;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newdiz_add_candidate-title {
    text-align: center;
    margin-bottom: clamp(10px, 4vw, 20px);
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.newdiz_add_candidate-title p {
    margin: 0;
}

.newdiz_add_candidate-description {
    font-size: 18px;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: clamp(10px, 4vw, 20px);
}

.newdiz_add_candidate-description p {
    margin: 0 0 15px 0;
}

.newdiz_add_candidate-description p:last-child {
    margin-bottom: 0;
}

.newdiz_add_candidate-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

.newdiz__possibilities-item {
    padding: 30px;
}

.newdiz__possibilities-item p {
    font-size: 22px;
    line-height: 1.5;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.item-description p {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.newdiz__possibilities-item p:last-child {
    margin-bottom: 0;
}

.newdiz_add_candidate-inner>.newdiz__possibilities-item {
    height: 100%;
}

.item-img {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.img-right {
    max-width: min(400px, 100%);
    width: auto;
    height: auto;
}

.newdiz__possibilities-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.newdiz__possibilities-items .newdiz__possibilities-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding: 25px;
    flex: 1;
}

.item-head {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.newdiz__possibilities-items .newdiz__possibilities-item:nth-child(2) .item-head::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
}

.item-description {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
}

.item-description p {
    margin: 0 0 10px 0;
}

.item-description p:last-child {
    margin-bottom: 0;
}

.problem,
.solution {
    width: 100px;
}

.problem-dark {
    fill: none;
    stroke: #2e3238;
    stroke-miterlimit: 10;
    stroke-width: 5.6px;
}

.solution-dark {
    fill: #2e3238;
    stroke-width: 0px;
}

.newdiz_add_candidate-title p,
.newdiz_add_candidate-description p,
.newdiz__possibilities-item {
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate-in {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.newdiz_created_career {
    min-height: 100vh;
    padding: clamp(20px, 5vw, 40px) 0;
    background-color: transparent;
    display: flex;
    align-items: center;
    font-family: 'Nunito', sans-serif;
    position: relative;
    overflow: hidden;
}

.newdiz_created_career-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.newdiz_created_career-inner {
    padding: 10px 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: opacity;
}

.newdiz_created_career-description {
    display: flex;
    flex-direction: column;
    color: #fff;
    padding: 20px 50px;
    background-color: #2e3238;
    border-radius: 12px;
    gap: 30px;
}

.description-part {
    font-size: 22px;
    line-height: 1.6;
}

.description-part img {
    max-width: 100%;
    height: auto;
}

.newdiz_created_career-descriptions {
    display: flex;
    gap: 20px;
    color: #ffffff;
    margin-top: 25px;
}

.problem-white {
    fill: none;
    stroke: #ffffff;
    stroke-miterlimit: 10;
    stroke-width: 5.6px;
}

.solution-white {
    fill: #ffffff;
    stroke-width: 0px;
}

.descriptions-part {
    padding: 20px;
    border-radius: 12px;
    background: #2e3238;
}

.descriptions-part .part-head p {
    font-size: 22px;
}

.descriptions-part p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 15px 0;
    color: #ffffff;
}

.part-head {
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.newdiz_created_career-btn {
    text-align: left;
}

.newdiz_created_career-btn p {
    color: white;
    margin: 0 0 10px;
    font-size: 12px;
}

.descriptions-wrapper {
    width: 49%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #212327;
    z-index: -1;
    transition: width 1s ease;
}

.newdiz_created_career.animate .bg-animation {
    width: 100%;
}

.newdiz_created_career.animate .newdiz_created_career-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}

.newdiz_created_career.animate .newdiz_created_career-inner {
    opacity: 1;
    transition-delay: 1s;
}

/* Убедитесь, что у элементов есть начальные состояния */
.newdiz_created_career-title,
.newdiz_created_career-inner {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.8s ease;
}

.bg-animation {
    transition: width 1s ease;
}

.newdiz_interviews-title {
    text-align: center;
    margin-bottom: clamp(10px, 4vw, 20px);
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.newdiz_interviews-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

.newdiz_interviews-inner>.inner-item {
    height: 100%;
}

.inner-item p {
    font-size: 22px;
    line-height: 1.5;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.inner-item {
    padding: 30px;
}

.inner-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.items-item .item-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
}

.items-item {
    padding: 25px 15px;
}

.items-item .item-head p {
    font-size: 22px;
}

.inner-item p:last-child {
    margin-bottom: 0;
}

.newdiz_interviews-inner .img-right {
    max-width: min(250px, 100%);
    width: auto;
    height: auto;
}

.inner-item:nth-child(2) .item-head::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
}

.newdiz_interviews-title p,
.newdiz_interviews-inner .inner-item,
.inner-items .items-item {
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate-in {
    transform: translateY(0) !important;
    opacity: 1 !important;
    /* Изменено с 0 на 1 */
}

.newdiz_candidate_test-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.newdiz_candidate_test-inner {
    padding: 10px 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: opacity;
}

.newdiz_candidate_test-descriptions {
    display: flex;
    gap: 20px;
    color: #ffffff;
    margin-top: 25px;
}

.descriptions-wrapper {
    width: 49%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.newdiz_candidate_test-btn {
    text-align: left;
}

.newdiz_candidate_test-description {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    color: #fff;
    padding: 20px 50px;
    background-color: #2e3238;
    border-radius: 12px;
    gap: 30px;
    margin-top: 25px;
}

.newdiz_candidate_test-img {
    width: 80%;
}

.newdiz_candidate_test.animate .bg-animation {
    width: 100%;
}

.newdiz_candidate_test.animate .newdiz_candidate_test-title {
    opacity: 1;
    transform: translateY(0);
}

.newdiz_candidate_test.animate .newdiz_candidate_test-inner {
    opacity: 1;
}

.newdiz_candidate_test.animate .newdiz_candidate_test-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}

.newdiz_candidate_test.animate .newdiz_candidate_test-inner {
    opacity: 1;
    transition-delay: 1s;
}

/* Убедитесь, что у элементов есть начальные состояния */
.newdiz_candidate_test-title,
.newdiz_candidate_test-inner {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.8s ease;
}

.newdiz_funnel-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #2e3238;
    margin-bottom: 30px;
}

.newdiz_funnel-inner {
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background-color: #e6e6e6;
    margin-bottom: 25px;
}

.newdiz_funnel-description {
    display: flex;
    flex-direction: column;
    font-size: 22px;
    line-height: 1.5;
    margin: 0 0 15px 0;
    color: #2c3e50;
    gap: 25px;
    width: 50%;
    max-width: 100%;
}

.newdiz_funnel-item {
    display: flex;
}

.newdiz_funnel-descriptions {
    display: flex;
    gap: 20px;
    color: #2e3238;
    margin-top: 25px;
}

.descriptions-part {
    padding: 20px;
    border-radius: 12px;
    /* background: #2e3238; */
}

.newdiz_funnel-btn {
    text-align: left;
}

.newdiz_funnel-img {
    width: 42%;
    max-width: 100%;
}

.newdiz_funnel-desc {
    display: grid;
    gap: 25px;
    grid-template-columns: 0.8fr 1.2fr;
}

.newdiz_funnel-part {
    padding: 25px 15px;
}

.newdiz_funnel-part .part-head p {
    font-size: 22px;
}

.newdiz_funnel-part .part-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
}

.newdiz_funnel-parts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.parts-part {
    padding: 25px 15px;
    margin-bottom: 25px;
}

.part-head p {
    font-size: 22px;
}

.newdiz_funnel-parts .part-description p {

    font-size: 16px;
    color: #2c3e50;
}

.newdiz_funnel-part .part-description p {
    font-size: 16px;
    color: #2c3e50;
}

.newdiz_funnel-btn p {
    margin-bottom: 25px;
}

.newdiz_funnel-footer {
    margin-top: 25px;
    color: #2c3e50;
    text-align: center;
    font-size: 20px;
}

.newdiz_funnel-title p,
.newdiz_funnel-inner .newdiz_funnel-item,
.newdiz_funnel-desc .parts-part,
.newdiz_funnel-desc .newdiz_funnel-btn,
.newdiz_funnel-part,
.newdiz_funnel-footer p {
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.newdiz_request {
    background-image: url(../images/fp_images/title_1.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    padding: clamp(20px, 5vw, 40px) 0;
    background-color: transparent;
    display: flex;
    align-items: center;
    font-family: 'Nunito', sans-serif;
    position: relative;
    overflow: hidden;
}

.newdiz_request-wrapper {
    padding: 0 clamp(20px, 5vw, 70px);
    padding-top: 0px;
    padding-bottom: 0px;
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: clamp(50px, 10vh, 100px);
    padding-bottom: clamp(50px, 10vh, 100px);
}

.newdiz_request-title {
    text-align: center;
    margin-bottom: clamp(50px, 10vw, 100px);
}

.newdiz_request-description {
    text-align: center;
    margin-bottom: clamp(20px, 4vw, 40px);
    display: flex;
    justify-content: space-around;
    color: #ffffff;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0s, 0s;
}

.newdiz_request-description p {
    font-size: clamp(18px, 2vw, 20px);
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
    font-style: italic;
}

.newdiz_request-title p {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: bold;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.description-btn a {
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

/* inline -> class */
.description-part-row {
    display: flex;
    align-items: center;
}

.description-part-row>p {
    width: 60%;
}

.description-part-row>img {
    width: 36%;
    max-width: min(36%, 100%);
}

.description-part-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.descriptions-part-wide {
    width: 51%;
}

.newdiz_candidate_test-img img,
.newdiz_funnel-img img {
    width: 100%;
}

.newdiz_funnel-description-full {
    width: 100%;
}

.newdiz-nowrap-text {
    white-space: nowrap;
}
/* ===== responsive: large -> small ===== */

@media (max-width: 1200px) {
    .newdiz_possibilities-inner>div:last-of-type {
        padding: 0 30px;
    }

    .newdiz_created_career-description,
    .newdiz_candidate_test-description {
        padding: 20px 30px;
    }
}

@media (max-width: 900px) {
    .newdiz_created_career-descriptions,
    .newdiz_candidate_test-descriptions {
        flex-direction: column;
    }

    .descriptions-wrapper,
    .descriptions-part-wide {
        width: 100%;
    }

    .newdiz_funnel-desc {
        grid-template-columns: 1fr;
    }

    .newdiz_funnel-item {
        flex-direction: column;
    }

    .newdiz_funnel-description,
    .newdiz_funnel-description-full {
        width: 100%;
    }

    .newdiz_funnel-img {
        width: 100%;
        max-width: min(320px, 100%);
    }

    .newdiz_funnel-img img {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .section {
        min-height: auto;
    }

    .newdiz_possibilities {
        background-attachment: scroll;
    }

    .newdiz_possibilities-section {
        height: auto;
        margin: 0;
        padding: 70px 20px 30px;
    }

    .newdiz_possibilities-inner>div:last-of-type {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 20px;
    }

    .newdiz_possibilities-btn {
        text-align: center;
        width: 100%;
    }

    .newdiz_add_candidate {
        padding: 40px 0;
    }

    .newdiz_add_candidate-title {
        font-size: 24px;
    }

    .newdiz_add_candidate-description {
        font-size: 16px;
        padding: 0 10px;
    }

    .newdiz_add_candidate-inner,
    .newdiz_interviews-inner,
    .newdiz_candidate_test-description {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .newdiz__possibilities-item {
        padding: 20px;
    }

    .img-right,
    .section img.img-right {
        max-width: min(250px, 100%);
    }

    .newdiz_created_career {
        min-height: auto;
    }

    .newdiz_created_career-description {
        padding: 20px;
        gap: 20px;
    }

    .description-part {
        font-size: 18px;
    }

    .description-part-row {
        flex-direction: column;
    }

    .description-part-row>p,
    .description-part-row>img {
        width: 100%;
    }

    .description-part-row>img {
        max-width: min(320px, 100%);
        margin: 15px auto 0;
    }

    .description-part-col {
        gap: 15px;
    }

    .newdiz_created_career-descriptions,
    .newdiz_candidate_test-descriptions {
        gap: 15px;
        margin-top: 15px;
    }

    .descriptions-wrapper {
        gap: 20px;
    }

    .descriptions-part {
        padding: 15px;
    }

    .newdiz_created_career-btn,
    .newdiz_candidate_test-btn,
    .newdiz_funnel-btn {
        text-align: center;
    }

    .newdiz_created_career-btn a,
    .newdiz_candidate_test-btn a,
    .newdiz_funnel-btn a {
        width: 100%;
    }

    .newdiz_candidate_test-description {
        padding: 20px;
    }

    .newdiz_candidate_test-img {
        width: 100%;
    }

    .newdiz_funnel-inner {
        padding: 20px;
    }

    .newdiz_funnel-parts {
        gap: 20px;
    }

    .newdiz_funnel-btn p {
        margin-bottom: 15px;
    }

    .newdiz_request {
        background-attachment: scroll;
        min-height: auto;
    }

    .newdiz_request-wrapper {
        padding: 50px 20px;
    }

    .newdiz_request-title {
        margin-bottom: 30px;
    }

    .newdiz_request-description {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .description-btn {
        width: 100%;
        max-width: 360px;
    }
}

@media (max-width: 500px) {
    .newdiz_possibilities .header-line {
        flex-direction: column;
        gap: 2px;
    }

    .first {
        font-size: max(28px, 8vw);
    }

    .second {
        font-size: max(16px, 4vw);
    }

    .newdiz-benefits__startpack {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-block,
    .btn-fit {
        width: 100%;
    }

    .newdiz_created_career-title,
    .newdiz_candidate_test-title,
    .newdiz_add_candidate-title,
    .newdiz_interviews-title,
    .newdiz_funnel-title {
        font-size: 22px;
    }

    .item-head,
    .part-head {
        gap: 8px;
    }

    .problem,
    .solution {
        width: 72px;
    }
}

@media (max-width: 480px) {
    .newdiz_possibilities h1 {
        font-size: 18px;
    }

    .first {
        font-size: 40px;
        line-height: 1.2;
    }

    .second {
        font-size: 16px;
    }

    .card-pad-lg {
        padding: 20px;
    }

    .card-pad-md {
        padding: 15px;
    }

    .newdiz_request-title p {
        font-size: 22px;
    }

    .newdiz_request-description p {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .wrapper {
        padding: 0 12px;
    }

    .card-pad-lg {
        padding: 15px;
    }

    .card-pad-md {
        padding: 12px;
    }

    .item-head,
    .part-head {
        gap: 8px;
    }

    .problem,
    .solution {
        width: 56px;
    }

    .newdiz_possibilities-inner>div:last-of-type {
        padding: 0 8px;
    }

    .newdiz_created_career-description,
    .newdiz_candidate_test-description {
        padding: 15px;
    }

    .btn-demo {
        padding: 10px 12px;
        font-size: 15px;
    }
}

/* ===== Доработка под планшет и телефон (03.11.2026) ===== */

@media (min-width: 501px) and (max-width: 900px) {
    /* планшет: заголовок первого экрана был 9vmin (на 768x1024 - 69px, 5 строк на весь экран); телефон - как у team (40px) */
    .first {
        font-size: clamp(32px, 6vw, 48px);
        line-height: 1.25;
    }

    .second,
    .newdiz_possibilities .header-line h1,
    .newdiz_possibilities .header-line p {
        font-size: clamp(16px, 2.6vw, 22px);
    }
}

@media (max-width: 768px) {
    /* основной текст карточек был 22px, как на компьютере, рядом с абзацами 14-16px - один размер */
    .newdiz__possibilities-item p,
    .description-part,
    .inner-item p,
    .newdiz_funnel-description {
        font-size: 17px;
    }

    /* заголовки карточек «Проблема / Решение» */
    .part-head p,
    .items-item .item-head p,
    .descriptions-part .part-head p,
    .newdiz_funnel-part .part-head p {
        font-size: 19px;
    }
}
