/* ========================================================================
   /help/ — хаб «Помощь» (Figma Draft 2103:2520, холст 1920 / колонка 1440)
   Desktop-first. Мобилка — та же структура, без отдельного Figma.
   ======================================================================== */

:root {
    --hh-green: #3ea74f;
    --hh-green-dark: #145f2f;
    --hh-yellow: #ffe74f;
    --hh-text: #4d4d4d;
    --hh-dark: #343333;
    --hh-bg: #ffffff;
    --hh-radius: 20px;
    --hh-shadow: 0 6px 44px rgba(62, 167, 79, 0.14);
    --hh-col: 1440px;
}

.help-hub-page,
.help-hub-page .wrapper {
    background: var(--hh-bg);
}

.help-hub,
.help-hub * {
    box-sizing: border-box;
}

.help-hub {
    width: 100%;
    overflow-x: clip;
    background: var(--hh-bg);
    color: var(--hh-dark);
    font-family: "Google Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.help-hub img,
.help-hub svg {
    display: block;
    max-width: 100%;
    height: auto;
}

.help-hub a {
    font-family: inherit;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* ——— Hero ——— */

.help-hub-hero {
    position: relative;
    width: 100%;
    padding: 72px 20px 38px;
    background: transparent;
    overflow: visible;
    isolation: isolate;
}

.help-hub-hero__inner {
    position: relative;
    z-index: 1;
    width: var(--hh-col);
    max-width: 100%;
    margin: 0 auto;
}

.help-hub-hero__title {
    margin: 0 0 42px;
    text-align: center;
    line-height: 0.85;
}

.help-hub-hero__title-text {
    display: inline-block;
    margin: 0;
    color: var(--hh-green);
    font-family: "life-full", "LifeFull", "life", "Life", "Google Sans", Arial, sans-serif;
    font-weight: 400;
    font-size: clamp(72px, 9.5vw, 160px);
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-transform: none;
    white-space: nowrap;
}

.help-hub-hero__lead {
    max-width: 1143px;
    margin: 0 auto;
    color: var(--hh-text);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: center;
}

/* ——— Cards ——— */

.help-hub-cards {
    width: 100%;
    padding: 0 20px 100px;
    background: var(--hh-bg);
}

.help-hub-cards__inner {
    display: flex;
    flex-direction: column;
    gap: 38px;
    width: var(--hh-col);
    max-width: 100%;
    margin: 0 auto;
}

.help-hub-cards__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 57px;
}

.help-hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 46px 47px 42px;
    overflow: hidden;
    border-radius: var(--hh-radius);
    color: #fff;
    box-shadow: var(--hh-shadow);
}

.help-hub-card--wide {
    min-height: 353px;
}

.help-hub-card--dark {
    min-height: 623px;
}

.help-hub-card--yellow {
    min-height: 480px;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
    color: var(--hh-text);
    background: var(--hh-yellow);
    box-shadow: none;
}

.help-hub-card--adopt {
    min-height: 389px;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    padding: 37px 47px 37px 32px;
}

.help-hub-card--green {
    background: var(--hh-green);
}

.help-hub-card--dark {
    background: var(--hh-green-dark);
    box-shadow: none;
}

.help-hub-card:hover,
.help-hub-card:focus-visible {
    outline: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(62, 167, 79, 0.22);
}

.help-hub-card--yellow:hover,
.help-hub-card--yellow:focus-visible,
.help-hub-card--dark:hover,
.help-hub-card--dark:focus-visible {
    box-shadow: 0 10px 32px rgba(52, 51, 51, 0.14);
}

.help-hub-card:hover,
.help-hub-card:focus-visible,
.help-hub-card:hover .help-hub-card__title,
.help-hub-card:hover .help-hub-card__text,
.help-hub-card:focus-visible .help-hub-card__title,
.help-hub-card:focus-visible .help-hub-card__text {
    color: #fff;
}

.help-hub-card--yellow:hover,
.help-hub-card--yellow:focus-visible,
.help-hub-card--yellow:hover .help-hub-card__title,
.help-hub-card--yellow:hover .help-hub-card__text,
.help-hub-card--yellow:focus-visible .help-hub-card__title,
.help-hub-card--yellow:focus-visible .help-hub-card__text {
    color: var(--hh-text);
}

.help-hub-card__title {
    position: relative;
    z-index: 2;
    margin: 0 0 17px;
    color: inherit;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-align: left;
}

.help-hub-card__title--lg {
    margin-bottom: 23px;
    font-size: 44px;
    letter-spacing: -0.01em;
}

.help-hub-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0 0 28px;
}

.help-hub-card__text {
    position: relative;
    z-index: 2;
    margin: 0;
    color: inherit;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.help-hub-card__text + .help-hub-card__text {
    margin-top: 18px;
}

.help-hub-card__body .help-hub-card__text + .help-hub-card__text {
    margin-top: 0;
}

.help-hub-card__text--wide {
    max-width: 1358px;
}

.help-hub-card__btn {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 159px;
    height: 53px;
    margin-top: auto;
    padding: 0 24px;
    border-radius: 60px;
    background: #fff;
    color: var(--hh-green-dark);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.help-hub-card--yellow .help-hub-card__btn,
.help-hub-card--btn-dark .help-hub-card__btn {
    color: var(--hh-text);
}

.help-hub-card:hover .help-hub-card__btn,
.help-hub-card:focus-visible .help-hub-card__btn {
    color: var(--hh-green-dark);
    background: #fff;
}

.help-hub-card--yellow:hover .help-hub-card__btn,
.help-hub-card--yellow:focus-visible .help-hub-card__btn,
.help-hub-card--btn-dark:hover .help-hub-card__btn,
.help-hub-card--btn-dark:focus-visible .help-hub-card__btn {
    color: var(--hh-text);
}

.help-hub-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.help-hub-card--yellow .help-hub-card__content {
    max-width: 935px;
}

.help-hub-card--yellow .help-hub-card__body {
    margin-bottom: 28px;
}

.help-hub-card__decor {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    align-self: center;
    width: 299px;
    margin-right: 54px;
    pointer-events: none;
}

.help-hub-card__decor img {
    width: auto;
    height: auto;
    max-width: none;
}

.help-hub-card__photo {
    position: relative;
    z-index: 1;
    flex: 0 0 270px;
    width: 270px;
    height: 315px;
    overflow: hidden;
    border-radius: var(--hh-radius);
}

.help-hub-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
}

.help-hub-card--adopt .help-hub-card__content {
    max-width: 1026px;
    padding-top: 8px;
}

.help-hub-card--adopt .help-hub-card__text + .help-hub-card__text {
    margin-top: 18px;
}

.help-hub-card--adopt .help-hub-card__btn {
    margin-top: 32px;
}

/* ========================================================================
   Узкий desktop 992–1439 — см. help-hub-laptop-2026.css (fluid по LAPTOP_992_1439)
   ======================================================================== */

/* ========================================================================
   Планшет / мобилка — те же блоки столбиком, декор и фото в потоке
   ======================================================================== */

@media (max-width: 991px) {
    .help-hub-hero {
        padding: 0 16px 28px;
    }

    .help-hub-hero__title {
        margin: 0 0 20px;
    }

    .help-hub-hero__title-text {
        white-space: normal;
        font-size: clamp(56px, 16vw, 88px);
    }

    .help-hub-hero__lead {
        font-size: 20px;
        text-align: left;
        max-width: none;
    }

    .help-hub-cards {
        padding: 0 16px 56px;
    }

    .help-hub-cards__inner {
        gap: 16px;
    }

    .help-hub-cards__row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .help-hub-card,
    .help-hub-card--wide,
    .help-hub-card--dark,
    .help-hub-card--yellow,
    .help-hub-card--adopt {
        min-height: 0;
        padding: 28px 24px;
    }

    .help-hub-card--yellow,
    .help-hub-card--adopt {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .help-hub-card:hover,
    .help-hub-card:focus-visible {
        transform: none;
    }

    .help-hub-card__title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .help-hub-card__title--lg {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .help-hub-card__body {
        gap: 14px;
        margin: 0 0 20px;
    }

    .help-hub-card__text,
    .help-hub-card__text--wide {
        max-width: none;
        font-size: 18px;
    }

    .help-hub-card__text + .help-hub-card__text {
        margin-top: 14px;
    }

    .help-hub-card__btn {
        min-width: 140px;
        height: 48px;
        font-size: 15px;
    }

    .help-hub-card--yellow .help-hub-card__content,
    .help-hub-card--adopt .help-hub-card__content {
        max-width: none;
        padding-top: 0;
    }

    .help-hub-card--yellow .help-hub-card__body {
        margin-bottom: 20px;
    }

    .help-hub-card__decor {
        align-self: center;
        width: 200px;
        margin: 0;
        order: 2;
    }

    .help-hub-card__decor img {
        width: 200px;
        max-width: 100%;
        height: auto;
    }

    .help-hub-card--yellow .help-hub-card__content {
        order: 1;
    }

    .help-hub-card__photo {
        flex: 0 0 auto;
        width: 100%;
        max-width: 270px;
        height: 280px;
        align-self: center;
        order: 1;
    }

    .help-hub-card--adopt .help-hub-card__content {
        order: 2;
    }

    .help-hub-card--adopt .help-hub-card__btn {
        margin-top: 20px;
    }
}

@media (max-width: 575px) {
    .help-hub-hero {
        padding: 0 16px 24px;
    }

    .help-hub-hero__title-text {
        font-size: 52px;
    }

    .help-hub-hero__lead {
        font-size: 16px;
    }

    .help-hub-cards {
        padding: 0 16px 40px;
    }

    .help-hub-card,
    .help-hub-card--wide,
    .help-hub-card--dark,
    .help-hub-card--yellow,
    .help-hub-card--adopt {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .help-hub-card__title,
    .help-hub-card__title--lg {
        font-size: 22px;
    }

    .help-hub-card__text {
        font-size: 16px;
    }

    .help-hub-card__btn {
        min-width: 132px;
        height: 46px;
        font-size: 14px;
    }

    .help-hub-card__decor {
        width: 160px;
    }

    .help-hub-card__decor img {
        width: 160px;
    }

    .help-hub-card__photo {
        max-width: 220px;
        height: 230px;
        border-radius: 16px;
    }
}
