/* /nuzhna-pomosch/ + /help/ — «Если нужна помощь» (Figma Draft 2079:3644) */

.need-help-page {
    background: #f4f4f4;
    color: #343333;
    overflow-x: hidden;
}

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

/* Hero */
.need-help-hero {
    padding: 40px 0 48px;
    background: linear-gradient(180deg, #e2ffe7 0%, #ffffff 70%, #f4f4f4 100%);
}

.need-help-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 48px;
    color: rgba(77, 77, 77, 0.5);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.24px;
    text-transform: uppercase;
}

.need-help-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.need-help-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0 auto 28px;
    color: #3ea74f;
    font-size: 118px;
    font-weight: 400;
    line-height: 0.72;
    letter-spacing: 8.8px;
    text-align: center;
    text-transform: none;
}

.need-help-title span {
    display: block;
}

.need-help-lead {
    max-width: 860px;
    margin: 0 auto;
    color: #4d4d4d;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.56px;
    text-align: center;
}

/* Main green card */
.need-help-main {
    padding: 0 0 40px;
}

.need-help-card {
    background: #3ea74f;
    border-radius: 20px;
    padding: 56px 80px 64px;
    box-sizing: border-box;
}

.need-help-tabs {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 48px;
    border-radius: 40px;
    background: #ffffff;
    overflow: hidden;
}

.need-help-tabs__button {
    min-width: 240px;
    min-height: 53px;
    padding: 12px 36px;
    border: 0;
    background: transparent;
    color: #4d4d4d;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.1;
    cursor: pointer;
    appearance: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.need-help-tabs__button.is-active {
    background: #59ca6b;
    color: #ffffff;
    border-radius: 40px;
}

.need-help-tabs__button:not(.is-active):hover {
    color: #185e30;
}

.need-help-panels {
    width: 100%;
}

.need-help-panel {
    display: none;
}

.need-help-panel.is-active {
    display: block;
}

.need-help-panel__notice {
    max-width: 960px;
    margin: 0 auto 40px;
    padding: 28px 40px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #343333;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    box-sizing: border-box;
}

.need-help-panel__notice b {
    font-weight: 700;
}

/* Stepper */
.need-help-steps {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 88px;
    margin: 0 auto 40px;
}

.need-help-steps::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 560px;
    height: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.55);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.need-help-steps--expert {
    gap: 72px;
}

.need-help-steps--expert::before {
    width: 680px;
}

.need-help-steps__item {
    position: relative;
    z-index: 1;
    width: 83px;
    height: 83px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    color: #3ea74f;
    cursor: pointer;
    appearance: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.need-help-steps__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
}

.need-help-steps__item.is-active,
.need-help-steps__item.is-done {
    background: #ffffff;
    color: #3ea74f;
}

.need-help-steps__item:hover {
    transform: scale(1.04);
}

/* Form fields */
.need-help-form {
    display: none;
    width: 100%;
    max-width: 665px;
    margin: 0 auto;
}

.need-help-form.is-active,
.need-help-step-panel.is-active {
    display: block;
}

.need-help-form__title {
    margin: 0 0 28px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.56px;
    text-align: left;
}

.need-help-field {
    position: relative;
    display: block;
    margin: 0 0 24px;
}

.need-help-field.has-error {
    margin-bottom: 56px;
}

.need-help-field input,
.need-help-field textarea,
.need-help-field select {
    display: block;
    width: 100%;
    height: 53px;
    padding: 0 20px;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #ffffff;
    color: #343333;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.1;
    outline: none;
    box-sizing: border-box;
    appearance: none;
    transition: border-color 0.2s ease;
}

.need-help-field textarea {
    height: auto;
    min-height: 115px;
    padding: 14px 20px;
    resize: vertical;
}

.need-help-field select {
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath fill='%23bbcabe' d='M7 10 0 0h14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.need-help-field input::placeholder,
.need-help-field textarea::placeholder {
    color: #bbcabe;
    opacity: 1;
}

.need-help-field select:invalid {
    color: #bbcabe;
}

.need-help-field select option {
    color: #343333;
}

.need-help-field input:focus,
.need-help-field textarea:focus,
.need-help-field select:focus {
    border-color: #f38b3b;
}

.need-help-field.has-error input,
.need-help-field.has-error textarea,
.need-help-field.has-error select {
    border-color: #e22d54;
}

.need-help-field > .error {
    position: absolute;
    left: 0;
    top: calc(53px + 8px);
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 8px;
    background: #e22d54;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.1;
    white-space: nowrap;
    z-index: 1;
}

.need-help-field--textarea.has-error > .error {
    top: calc(115px + 8px);
}

.need-help-field--file .need-help-field__file-label {
    display: block;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    line-height: 1.2;
}

.need-help-field--file input[type="file"] {
    height: auto;
    min-height: 53px;
    padding: 12px 20px;
    font-size: 16px;
    color: #4d4d4d;
}

/* Checkbox — галка как на форме доната на главной */
.need-help-page .need-help-check.checkbox {
    display: flex;
    align-items: flex-start;
    column-gap: 12px;
    margin: 8px 0 28px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.1;
    cursor: pointer;
}

.need-help-page .need-help-check.checkbox input[type="checkbox"] {
    display: none;
}

.need-help-page .need-help-check.checkbox > i {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    margin: 0;
    border: 2px solid #ffffff;
    border-radius: 6px;
    background: none;
    display: inline-flex;
    position: relative;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.need-help-page .need-help-check.checkbox input[type="checkbox"]:checked ~ i {
    background: none;
}

.need-help-page .need-help-check.checkbox input[type="checkbox"]:checked ~ i::before {
    content: "";
    width: 16px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14' viewBox='0 0 16 14' fill='none'%3E%3Cpath d='M1.50024 4.24736C2.94469 7.12504 6.3063 12.8019 8.19721 12.488C10.0881 12.1741 13.1871 5.03218 14.5002 1.50049' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 16px 14px;
    z-index: 1;
}

.need-help-page .need-help-check.checkbox > span a {
    color: inherit;
    text-decoration: underline;
}

.need-help-page .need-help-check.checkbox.has-error > i {
    border-color: #e22d54;
}

.need-help-page .need-help-check.checkbox.has-error {
    position: relative;
    padding-bottom: 36px;
}

.need-help-page .need-help-check.checkbox.has-error > .error {
    position: absolute;
    left: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 8px;
    background: #e22d54;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.1;
    white-space: nowrap;
}

/* Buttons */
.need-help-form__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.need-help-form__actions--split {
    justify-content: space-between;
}

.need-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 208px;
    height: 53px;
    padding: 0 28px;
    border-radius: 60px;
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.36px;
    text-transform: uppercase;
    cursor: pointer;
    appearance: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.need-help-btn--primary {
    border: 3px solid #ffffff;
    background: #f38b3b;
    color: #ffffff;
}

.need-help-btn--primary:hover {
    background: #ffffff;
    color: #f38b3b;
}

.need-help-btn--ghost {
    border: 3px solid #ffffff;
    background: transparent;
    color: #ffffff;
}

.need-help-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Expert intro / who */
.need-help-expert-intro {
    max-width: 1100px;
    margin: 0 auto 48px;
    padding: 40px 48px 36px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-sizing: border-box;
}

.need-help-expert-intro__title {
    margin: 0 0 36px;
    color: #343333;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.4px;
    text-align: center;
}

.need-help-expert-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.need-help-expert-step {
    min-height: 140px;
    padding: 8px 16px 20px;
    border-radius: 12px;
    background: #f3f3f3;
    text-align: center;
    box-sizing: border-box;
}

.need-help-expert-step__num {
    margin: -28px 0 8px;
    color: #3ea74f;
    font-size: 56px;
    font-weight: 400;
    line-height: 1;
}

.need-help-expert-step p {
    margin: 0;
    color: #555555;
    font-size: 14px;
    line-height: 1.2;
}

.need-help-section-title {
    margin: 0 0 28px;
    color: #ffffff;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-align: center;
}

.need-help-section-title--form {
    margin: 56px 0 36px;
}

.need-help-who-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
}

.need-help-who-card {
    min-height: 280px;
    padding: 24px 18px 20px;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
    box-sizing: border-box;
}

.need-help-who-card__title {
    min-height: 52px;
    margin: 0 0 18px;
    color: #343333;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.05;
}

.need-help-who-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 76px;
    margin: 0 auto 20px;
}

.need-help-who-card__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.need-help-who-card p {
    margin: 0;
    color: #666666;
    font-size: 13px;
    line-height: 1.25;
}

/* Contact block */
.need-help-contact {
    padding: 0 0 60px;
}

.need-help-contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 512px;
    gap: 80px;
    align-items: stretch;
    min-height: 480px;
    padding: 60px;
    border-radius: 10px;
    background: #185e30;
    box-sizing: border-box;
}

.need-help-contact__text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 360px;
    max-width: 593px;
}

.need-help-contact__text h2 {
    margin: 0;
    color: #ffffff;
    font-size: 56px;
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-align: left;
}

.need-help-contact__title-indent {
    display: inline-block;
    padding-left: 1.2em;
}

.need-help-contact__text p {
    margin: 0;
    max-width: 306px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
}

.need-help-contact-form {
    width: 100%;
    max-width: 512px;
}

.need-help-contact-form .need-help-field {
    margin-bottom: 24px;
}

.need-help-contact-form .need-help-field--textarea textarea {
    min-height: 146px;
}

.need-help-contact-form .need-help-field--textarea.has-error > .error {
    top: calc(146px + 8px);
}

.need-help-contact-form .need-help-check {
    margin: 4px 0 24px;
}

.need-help-contact-form .need-help-btn {
    margin-left: auto;
    display: flex;
}

/* Desktop: mint через body.page-home-chrome (header-2026), как на остальных страницах.
   Раньше градиент body глушился → серый фон под прозрачной шапкой. */
@media (min-width: 992px) {
    .need-help-page {
        background: transparent;
    }

    .need-help-hero {
        background: transparent;
    }

    /* выше .font-life { letter-spacing: -1px } из fontslife3 (грузится после этой таблицы) */
    .need-help-title.font-life {
        letter-spacing: 8.8px;
    }
}

/* ========================================================================
   Tablet / mobile — та же структура, что на desktop, компактнее
   ======================================================================== */

@media (max-width: 991px) {
    .need-help-container {
        padding: 0 24px;
    }

    .need-help-hero {
        padding: 28px 0 36px;
    }

    .need-help-breadcrumbs {
        margin: 0 0 28px;
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .need-help-title {
        gap: 6px;
        margin-bottom: 20px;
        font-size: clamp(64px, 11vw, 96px);
        letter-spacing: 0.04em;
        line-height: 0.85;
    }

    .need-help-lead {
        max-width: 560px;
        font-size: 20px;
        letter-spacing: -0.02em;
    }

    .need-help-card {
        padding: 36px 28px 40px;
        border-radius: 18px;
    }

    .need-help-tabs {
        width: 100%;
        max-width: 640px;
        margin-bottom: 32px;
    }

    .need-help-tabs__button {
        flex: 1 1 0;
        min-width: 0;
        min-height: 48px;
        padding: 10px 16px;
        font-size: 16px;
        line-height: 1.15;
        text-align: center;
    }

    .need-help-panel__notice {
        margin-bottom: 28px;
        padding: 22px 24px;
        font-size: 16px;
    }

    .need-help-steps {
        width: 100%;
        max-width: 520px;
        gap: 0;
        justify-content: space-between;
        margin-bottom: 28px;
    }

    .need-help-steps::before {
        width: calc(100% - 40px);
    }

    .need-help-steps--expert {
        max-width: 600px;
        gap: 0;
    }

    .need-help-steps--expert::before {
        width: calc(100% - 32px);
    }

    .need-help-steps__item {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
    }

    .need-help-steps__num {
        font-size: 36px;
    }

    .need-help-form {
        max-width: 100%;
    }

    .need-help-form__title {
        margin-bottom: 20px;
        font-size: 24px;
    }

    .need-help-btn {
        min-width: 0;
        flex: 1 1 0;
        padding: 0 20px;
        font-size: 16px;
    }

    .need-help-expert-intro {
        margin-bottom: 36px;
        padding: 28px 24px 24px;
    }

    .need-help-expert-intro__title {
        margin-bottom: 28px;
        font-size: 22px;
    }

    .need-help-expert-intro__title br {
        display: none;
    }

    .need-help-expert-grid,
    .need-help-who-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .need-help-expert-step {
        min-height: 120px;
        padding: 8px 14px 18px;
    }

    .need-help-expert-step__num {
        margin-top: -20px;
        font-size: 48px;
    }

    .need-help-section-title {
        margin-bottom: 22px;
        font-size: 28px;
    }

    .need-help-section-title br {
        display: none;
    }

    .need-help-section-title--form {
        margin: 40px 0 28px;
    }

    .need-help-who-card {
        min-height: 0;
        padding: 20px 16px 18px;
    }

    .need-help-who-card__title {
        min-height: 0;
        margin-bottom: 14px;
        font-size: 18px;
    }

    .need-help-contact {
        padding: 0 0 40px;
    }

    .need-help-contact__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: 0;
        padding: 40px 32px;
    }

    .need-help-contact__text {
        min-height: 0;
        max-width: none;
        gap: 20px;
    }

    .need-help-contact__text h2 {
        font-size: 40px;
        line-height: 1;
    }

    .need-help-contact__text h2 br {
        display: none;
    }

    .need-help-contact__title-indent {
        padding-left: 0;
    }

    .need-help-contact__text p {
        max-width: none;
        font-size: 16px;
    }

    .need-help-contact-form {
        max-width: none;
    }

    .need-help-contact-form .need-help-btn {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .need-help-container {
        padding: 0 16px;
    }

    .need-help-hero {
        padding: 20px 0 28px;
    }

    .need-help-breadcrumbs {
        margin: 0 0 20px;
        font-size: 11px;
        letter-spacing: -0.02em;
    }

    .need-help-title {
        gap: 4px;
        margin-bottom: 14px;
        font-size: clamp(42px, 12.5vw, 56px);
        letter-spacing: 0.02em;
        line-height: 0.9;
    }

    .need-help-lead {
        max-width: none;
        font-size: 16px;
        line-height: 1.25;
        letter-spacing: -0.02em;
    }

    .need-help-main {
        padding-bottom: 28px;
    }

    .need-help-card {
        padding: 24px 16px 28px;
        border-radius: 16px;
    }

    .need-help-tabs {
        max-width: none;
        margin-bottom: 20px;
        border-radius: 28px;
    }

    .need-help-tabs__button {
        min-height: 44px;
        padding: 8px 10px;
        font-size: 13px;
        line-height: 1.2;
        border-radius: 28px;
    }

    .need-help-tabs__button.is-active {
        border-radius: 28px;
    }

    .need-help-panel__notice {
        margin-bottom: 20px;
        padding: 16px 14px;
        border-radius: 12px;
        font-size: 14px;
        line-height: 1.35;
        text-align: left;
    }

    .need-help-steps {
        max-width: none;
        margin-bottom: 22px;
    }

    .need-help-steps::before {
        width: calc(100% - 28px);
    }

    .need-help-steps__item {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
    }

    .need-help-steps__num {
        font-size: 28px;
    }

    .need-help-steps--expert .need-help-steps__item {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .need-help-steps--expert .need-help-steps__num {
        font-size: 24px;
    }

    .need-help-form__title {
        margin-bottom: 16px;
        font-size: 20px;
        letter-spacing: -0.02em;
    }

    .need-help-field {
        margin-bottom: 16px;
    }

    .need-help-field.has-error {
        margin-bottom: 48px;
    }

    .need-help-field input,
    .need-help-field textarea,
    .need-help-field select {
        height: 48px;
        padding: 0 14px;
        font-size: 15px;
    }

    .need-help-field textarea {
        min-height: 110px;
        padding: 12px 14px;
    }

    .need-help-field > .error,
    .need-help-page .need-help-check.checkbox.has-error > .error {
        white-space: normal;
        max-width: 100%;
    }

    .need-help-page .need-help-check.checkbox {
        column-gap: 10px;
        margin: 4px 0 20px;
        font-size: 13px;
        line-height: 1.25;
    }

    .need-help-form__actions {
        gap: 10px;
    }

    .need-help-btn {
        height: 48px;
        padding: 0 14px;
        font-size: 14px;
        letter-spacing: -0.02em;
    }

    .need-help-expert-intro {
        margin-bottom: 28px;
        padding: 20px 16px 18px;
        border-radius: 12px;
    }

    .need-help-expert-intro__title {
        margin-bottom: 20px;
        font-size: 18px;
        line-height: 1.25;
        text-align: left;
    }

    .need-help-expert-grid,
    .need-help-who-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: none;
    }

    .need-help-expert-step {
        min-height: 0;
        padding: 4px 16px 16px;
    }

    .need-help-expert-step__num {
        margin: -16px 0 4px;
        font-size: 40px;
    }

    .need-help-expert-step p {
        font-size: 14px;
    }

    .need-help-section-title {
        margin-bottom: 16px;
        font-size: 24px;
        line-height: 1.15;
        text-align: left;
    }

    .need-help-section-title--form {
        margin: 32px 0 20px;
    }

    .need-help-who-card {
        padding: 18px 16px 16px;
        text-align: left;
    }

    .need-help-who-card__title {
        margin-bottom: 12px;
        font-size: 18px;
        line-height: 1.15;
    }

    .need-help-who-card__title br {
        display: none;
    }

    .need-help-who-card__icon {
        justify-content: flex-start;
        margin: 0 0 14px;
    }

    .need-help-who-card p {
        font-size: 13px;
        line-height: 1.3;
    }

    .need-help-contact {
        padding-bottom: 28px;
    }

    .need-help-contact__inner {
        gap: 24px;
        padding: 28px 16px;
        border-radius: 12px;
    }

    .need-help-contact__text h2 {
        font-size: 28px;
        line-height: 1.05;
        letter-spacing: -0.02em;
    }

    .need-help-contact__text p {
        font-size: 15px;
        line-height: 1.3;
    }

    .need-help-contact-form .need-help-field {
        margin-bottom: 16px;
    }

    .need-help-contact-form .need-help-check {
        margin: 4px 0 18px;
    }
}
