:root {
    --wg-benefits-primary: #048ce2;
    --wg-benefits-primary-dark: #0274bd;
    --wg-benefits-title: #17283a;
    --wg-benefits-text: #52677a;
    --wg-benefits-muted: #75879a;
    --wg-benefits-border: #dce6ee;
    --wg-benefits-soft: #f5f9fc;
    --wg-benefits-blue-soft: #eaf6fd;
    --wg-benefits-white: #ffffff;
}

.wg-benefits-page-body {
    background: var(--wg-benefits-white);
}

.wg-benefits-page {
    width: 100%;
    overflow: hidden;
    color: var(--wg-benefits-text);
    background: var(--wg-benefits-white);
}

.wg-benefits-page *,
.wg-benefits-page *::before,
.wg-benefits-page *::after {
    box-sizing: border-box;
}

.wg-benefits-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 470px;
    padding: 82px 0;
    overflow: hidden;
    background-color: #087fd1;
    background-image: url('../img/cover-place.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.wg-benefits-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        112deg,
        rgba(6, 31, 55, 0.63) 0%,
        rgba(4, 111, 186, 0.45) 50%,
        rgba(6, 31, 55, 0.58) 100%
    );
}

.wg-benefits-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wg-benefits-eyebrow {
    display: block;
    margin-bottom: 13px;
    color: var(--wg-benefits-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.11em;
}

.wg-benefits-hero .wg-benefits-eyebrow {
    color: #d9f2ff;
}

.wg-benefits-hero h1 {
    max-width: 950px;
    margin: 0;
    color: var(--wg-benefits-white);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.04em;
    text-align: center;
    text-wrap: balance;
    text-shadow: 0 2px 14px rgba(4, 29, 53, 0.25);
}

.wg-benefits-hero p {
    max-width: 780px;
    margin: 22px auto 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
}

.wg-benefits-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 30px;
    padding: 12px 25px;
    border: 1px solid var(--wg-benefits-white);
    border-radius: 5px;
    color: var(--wg-benefits-primary);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    background: var(--wg-benefits-white);
    box-shadow: 0 8px 24px rgba(3, 37, 65, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wg-benefits-hero__button:hover,
.wg-benefits-hero__button:focus {
    color: var(--wg-benefits-primary-dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(3, 37, 65, 0.23);
}

.wg-benefits-paths,
.wg-benefits-professional,
.wg-benefits-clients,
.wg-benefits-balance,
.wg-benefits-notice,
.wg-benefits-cta {
    padding: 78px 0;
}

.wg-benefits-professional,
.wg-benefits-balance,
.wg-benefits-cta {
    background: var(--wg-benefits-soft);
}

.wg-benefits-heading {
    width: 100%;
    max-width: 840px;
    margin: 0 auto 42px;
    text-align: center;
}

.wg-benefits-heading h2,
.wg-benefits-cta h2 {
    margin: 0;
    color: var(--wg-benefits-title);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.035em;
    text-align: center;
    text-wrap: balance;
}

.wg-benefits-heading p,
.wg-benefits-cta > .container > p {
    max-width: 740px;
    margin: 16px auto 0;
    color: var(--wg-benefits-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
}

.wg-benefits-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.wg-benefits-path-grid article {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 380px;
    padding: 34px 28px 29px;
    border: 1px solid var(--wg-benefits-border);
    border-radius: 6px;
    text-align: center;
    background: var(--wg-benefits-white);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wg-benefits-path-grid article:hover {
    border-color: #bcdbea;
    transform: translateY(-3px);
    box-shadow: 0 13px 30px rgba(31, 66, 94, 0.08);
}

.wg-benefits-icon,
.wg-benefits-client-icon,
.wg-benefits-balance__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    border-radius: 50%;
    color: var(--wg-benefits-primary);
    background: var(--wg-benefits-blue-soft);
}

.wg-benefits-icon svg,
.wg-benefits-client-icon svg,
.wg-benefits-balance__icon svg {
    width: 39px;
    height: 39px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wg-benefits-card-label {
    display: block;
    margin-bottom: 8px;
    color: var(--wg-benefits-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.07em;
}

.wg-benefits-path-grid h3,
.wg-benefits-feature-grid h3,
.wg-benefits-client-grid h3 {
    margin: 0 0 12px;
    color: var(--wg-benefits-title);
    font-size: 20px;
    font-weight: 650;
    line-height: 1.3;
    text-align: center;
}

.wg-benefits-path-grid p,
.wg-benefits-feature-grid p,
.wg-benefits-client-grid p {
    margin: 0 0 20px;
    color: var(--wg-benefits-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.68;
    text-align: center;
}

.wg-benefits-path-grid a {
    margin-top: auto;
    color: var(--wg-benefits-primary);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
}

.wg-benefits-path-grid a:hover,
.wg-benefits-path-grid a:focus {
    color: var(--wg-benefits-primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wg-benefits-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.wg-benefits-feature-grid article {
    padding: 29px 24px 25px;
    border: 1px solid var(--wg-benefits-border);
    border-radius: 6px;
    text-align: center;
    background: var(--wg-benefits-white);
}

.wg-benefits-feature-number {
    display: block;
    margin-bottom: 14px;
    color: var(--wg-benefits-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
}

.wg-benefits-feature-grid p,
.wg-benefits-client-grid p {
    margin-bottom: 0;
}

.wg-benefits-client-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

.wg-benefits-client-grid article {
    padding: 27px 20px;
    border-top: 2px solid var(--wg-benefits-primary);
    text-align: center;
    background: var(--wg-benefits-white);
}

.wg-benefits-client-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    color: var(--wg-benefits-primary);
    background: var(--wg-benefits-blue-soft);
}

.wg-benefits-client-icon svg {
    width: 34px;
    height: 34px;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wg-benefits-client-actions,
.wg-benefits-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.wg-benefits-client-actions a,
.wg-benefits-cta__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 22px;
    border: 1px solid var(--wg-benefits-primary);
    border-radius: 5px;
    color: var(--wg-benefits-primary);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    background: var(--wg-benefits-white);
    transition: color 0.2s ease, background 0.2s ease;
}

.wg-benefits-client-actions a:first-child,
.wg-benefits-client-actions a:hover,
.wg-benefits-client-actions a:focus,
.wg-benefits-cta__actions .wg-benefits-cta__primary,
.wg-benefits-cta__actions a:hover,
.wg-benefits-cta__actions a:focus {
    color: var(--wg-benefits-white);
    text-decoration: none;
    background: var(--wg-benefits-primary);
}

.wg-benefits-client-actions a:first-child:hover,
.wg-benefits-client-actions a:first-child:focus,
.wg-benefits-cta__actions .wg-benefits-cta__primary:hover,
.wg-benefits-cta__actions .wg-benefits-cta__primary:focus {
    background: var(--wg-benefits-primary-dark);
}

.wg-benefits-balance__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 42px;
    border: 1px solid #cce4f3;
    border-radius: 6px;
    text-align: center;
    background: var(--wg-benefits-blue-soft);
}

.wg-benefits-balance__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    color: var(--wg-benefits-white);
    background: var(--wg-benefits-primary);
}

.wg-benefits-balance__box > div {
    width: 100%;
    max-width: 780px;
    text-align: center;
}

.wg-benefits-balance h2 {
    max-width: 760px;
    margin: 0;
    color: var(--wg-benefits-title);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.03em;
    text-align: center;
}

.wg-benefits-balance p,
.wg-benefits-balance li {
    color: var(--wg-benefits-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
}

.wg-benefits-balance p {
    max-width: 760px;
    margin: 15px auto;
    text-align: center;
}

.wg-benefits-balance ul {
    display: inline-block;
    margin: 0 auto;
    padding-left: 20px;
    text-align: left;
}

.wg-benefits-balance li {
    margin-bottom: 6px;
}

.wg-benefits-balance li:last-child {
    margin-bottom: 0;
}

.wg-benefits-balance li::marker {
    color: var(--wg-benefits-primary);
}

.wg-benefits-notice {
    padding-top: 64px;
    padding-bottom: 64px;
    border-top: 1px solid var(--wg-benefits-border);
    border-bottom: 1px solid var(--wg-benefits-border);
}

.wg-benefits-notice .wg-benefits-heading {
    margin-bottom: 0;
}

.wg-benefits-cta {
    text-align: center;
}

.wg-benefits-cta h2 {
    max-width: 820px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .wg-benefits-hero {
        min-height: 420px;
        padding: 68px 0;
    }

    .wg-benefits-hero h1 {
        font-size: 2.65rem;
    }

    .wg-benefits-paths,
    .wg-benefits-professional,
    .wg-benefits-clients,
    .wg-benefits-balance,
    .wg-benefits-notice,
    .wg-benefits-cta {
        padding: 66px 0;
    }

    .wg-benefits-feature-grid,
    .wg-benefits-client-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .wg-benefits-hero {
        min-height: 370px;
        padding: 58px 0;
    }

    .wg-benefits-hero h1 {
        font-size: 2.15rem;
        line-height: 1.16;
    }

    .wg-benefits-hero p {
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.65;
    }

    .wg-benefits-paths,
    .wg-benefits-professional,
    .wg-benefits-clients,
    .wg-benefits-balance,
    .wg-benefits-notice,
    .wg-benefits-cta {
        padding: 52px 0;
    }

    .wg-benefits-heading {
        margin-bottom: 32px;
    }

    .wg-benefits-heading h2,
    .wg-benefits-cta h2 {
        font-size: 27px;
        line-height: 1.28;
    }

    .wg-benefits-heading p,
    .wg-benefits-cta > .container > p {
        margin-top: 13px;
        font-size: 15px;
        line-height: 1.65;
    }

    .wg-benefits-path-grid,
    .wg-benefits-feature-grid,
    .wg-benefits-client-grid {
        grid-template-columns: 1fr;
    }

    .wg-benefits-path-grid article {
        min-height: 0;
        padding: 29px 23px;
    }

    .wg-benefits-feature-grid article {
        padding: 26px 22px;
    }

    .wg-benefits-client-grid article {
        padding: 25px 21px;
    }

    .wg-benefits-balance__box {
        gap: 20px;
        padding: 29px 23px;
        text-align: center;
    }

    .wg-benefits-balance__icon {
        margin: 0 auto;
    }

    .wg-benefits-balance h2 {
        font-size: 25px;
        text-align: center;
    }

    .wg-benefits-balance p {
        text-align: center;
    }

    .wg-benefits-balance ul {
        display: inline-block;
        max-width: 540px;
        margin: 0 auto;
        text-align: left;
    }

    .wg-benefits-client-actions,
    .wg-benefits-cta__actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 330px;
        margin-right: auto;
        margin-left: auto;
    }

    .wg-benefits-client-actions a,
    .wg-benefits-cta__actions a {
        width: 100%;
    }
}

@media (max-width: 419.98px) {
    .wg-benefits-hero h1 {
        font-size: 1.95rem;
    }

    .wg-benefits-heading h2,
    .wg-benefits-cta h2 {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wg-benefits-page *,
    .wg-benefits-page *::before,
    .wg-benefits-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
