.home-page {
    background: #f7faf8;
}

.home-main {
    max-width: var(--site-wide-width);
    padding: 28px 32px 64px;
}

.home-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    font-family: var(--font-sans);
}

.home-card {
    position: relative;
    min-width: 0;
    padding: 42px;
    border: 1px solid rgba(18, 50, 38, 0.09);
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
}

.home-card-content {
    position: relative;
    z-index: 1;
}

.home-card h1,
.home-card h2,
.home-card p {
    margin: 0;
}

.home-card h1,
.home-card h2 {
    font-family: var(--font-display);
    color: #0b1511;
    font-weight: 700;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.home-card p {
    color: #435149;
    font-size: 17px;
    line-height: 1.5;
    text-wrap: pretty;
}

.home-rule {
    width: 44px;
    height: 2px;
    margin-bottom: 26px;
    display: block;
    background: var(--accent);
}

.home-rule--light {
    background: rgba(255, 255, 255, 0.82);
}

.home-kicker {
    margin-bottom: 14px !important;
    color: inherit !important;
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.home-button {
    min-height: 52px;
    width: fit-content;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    transition:
        color var(--motion-standard),
        border-color var(--motion-standard),
        background var(--motion-standard),
        box-shadow var(--motion-standard),
        transform var(--motion-standard);
}

.home-button span {
    font-size: 22px;
    font-weight: 400;
    line-height: 0;
    transition: transform var(--motion-standard);
}

.home-button:hover {
    transform: translateY(-2px);
}

.home-button:hover span {
    transform: translateX(4px);
}

.home-button:active {
    transform: translateY(0) scale(0.99);
}

.home-button:focus-visible {
    outline: 3px solid rgba(31, 95, 74, 0.32);
    outline-offset: 4px;
}

.home-button--primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 13px 28px rgba(15, 83, 58, 0.2);
}

.home-button--primary:hover {
    background: var(--accent-hover);
}

.home-button--light {
    background: rgba(255, 255, 255, 0.94);
    color: #123326;
    box-shadow: 0 13px 28px rgba(3, 27, 18, 0.18);
}

.home-button--light:hover {
    background: #ffffff;
}

.home-button--outline {
    border-color: rgba(11, 21, 17, 0.78);
    background: rgba(255, 255, 255, 0.74);
    color: #0b1511;
    backdrop-filter: blur(7px);
}

.home-button--outline:hover {
    border-color: var(--accent);
    background: #ffffff;
    color: var(--accent-hover);
}

.home-card--hero {
    min-height: 540px;
    grid-column: 1 / 9;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(250, 249, 245, 0.99) 0%,
            rgba(250, 249, 245, 0.96) 40%,
            rgba(250, 249, 245, 0.64) 61%,
            rgba(250, 249, 245, 0.05) 100%
        ),
        url("../images/home/workspace.0003bd91abc7.webp") 68% center / cover no-repeat;
}

.home-hero-content {
    width: 76%;
    max-width: 650px;
}

.home-card--hero h1 {
    max-width: none;
    font-size: clamp(58px, 5vw, 76px);
    line-height: 0.94;
    text-wrap: wrap;
}

.home-card--hero p {
    max-width: 520px;
    margin-top: 30px;
    font-size: clamp(18px, 1.55vw, 21px);
    line-height: 1.55;
}

.home-card--hero .home-button {
    margin-top: 34px;
}

.home-card--cv {
    min-height: 540px;
    grid-column: 9 / 13;
    padding: 42px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    color: #ffffff;
    background:
        linear-gradient(
            90deg,
            rgba(2, 72, 49, 0.98) 0%,
            rgba(2, 72, 49, 0.92) 54%,
            rgba(2, 72, 49, 0.46) 78%,
            rgba(2, 72, 49, 0.1) 100%
        ),
        url("../images/home/cv.d35ad5a5ca51.webp") 67% center / cover no-repeat;
}

.home-card--cv h2 {
    max-width: 9ch;
    color: #ffffff;
    font-size: clamp(41px, 3.4vw, 57px);
    line-height: 0.98;
}

.home-card--cv .home-kicker {
    color: #ffffff !important;
}

.home-benefits {
    margin: 30px 0 0;
    padding: 0;
    display: grid;
    gap: 11px;
    list-style: none;
    font-size: 15px;
}

.home-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-benefits li::before {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--accent);
    content: "✓";
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
}

.home-card--cv .home-button {
    position: relative;
    z-index: 1;
}

.home-card--tools,
.home-card--articles,
.home-card--trust {
    min-height: 310px;
}

.home-card--tools {
    grid-column: 1 / 5;
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.85), transparent 34%),
        linear-gradient(135deg, #edf7f2 0%, #dcece4 100%);
}

.home-card--tools .home-card-content {
    max-width: 67%;
}

.home-card--tools h2,
.home-card--articles h2 {
    margin-bottom: 14px;
    font-size: clamp(42px, 4vw, 55px);
    line-height: 1;
}

.home-card--tools .home-button,
.home-card--articles .home-button {
    margin-top: 25px;
}

.home-chart {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 0;
    width: 116px;
    height: 116px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 16px 35px rgba(35, 80, 61, 0.08);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 7px;
    backdrop-filter: blur(8px);
}

.home-chart span {
    width: 10px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #1d6b50, #0a4935);
}

.home-chart span:nth-child(1) {
    height: 25%;
}

.home-chart span:nth-child(2) {
    height: 48%;
}

.home-chart span:nth-child(3) {
    height: 72%;
}

.home-chart span:nth-child(4) {
    height: 100%;
}

.home-card--articles {
    grid-column: 5 / 10;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(250, 249, 245, 0.98) 0%,
            rgba(250, 249, 245, 0.92) 48%,
            rgba(250, 249, 245, 0.38) 72%,
            rgba(250, 249, 245, 0.05) 100%
        ),
        url("../images/home/workspace.0003bd91abc7.webp") 84% 70% / cover no-repeat;
}

.home-card--articles .home-card-content {
    max-width: 62%;
}

.home-card--trust {
    grid-column: 10 / 13;
    padding: 32px;
    background:
        radial-gradient(circle at top left, rgba(218, 238, 228, 0.72), transparent 42%),
        rgba(252, 253, 252, 0.9);
}

.home-trust-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: #e1eee8;
    display: grid;
    place-items: center;
}

.home-trust-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: #0f513b;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.home-card--trust h2 {
    margin-bottom: 20px;
    font-size: clamp(31px, 2.7vw, 40px);
    line-height: 0.98;
}

.home-card--trust .home-rule {
    margin-bottom: 18px;
}

@media (max-width: 1240px) {
    .home-card {
        padding: 34px;
    }

    .home-card--cv {
        padding-inline: 30px;
    }

    .home-card--hero h1 {
        font-size: clamp(54px, 5vw, 68px);
    }

    .home-card--tools .home-card-content {
        max-width: 72%;
    }

    .home-chart {
        right: 22px;
        bottom: 22px;
        width: 96px;
        height: 96px;
        padding: 19px;
        gap: 5px;
    }
}

@media (max-width: 1000px) {
    .home-card--hero {
        min-height: 520px;
        grid-column: 1 / 13;
    }

    .home-card--cv {
        min-height: 480px;
        grid-column: 1 / 7;
    }

    .home-card--tools {
        min-height: 480px;
        grid-column: 7 / 13;
    }

    .home-card--articles {
        grid-column: 1 / 8;
    }

    .home-card--trust {
        grid-column: 8 / 13;
    }

    .home-card--tools .home-card-content {
        max-width: 78%;
    }
}

@media (max-width: 700px) {
    .home-main {
        padding: 14px 14px 44px;
    }

    .home-bento {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .home-card {
        grid-column: 1;
        padding: 30px 24px;
        border-radius: 14px;
    }

    .home-card--hero {
        min-height: 610px;
        align-items: flex-start;
        background:
            linear-gradient(
                180deg,
                rgba(250, 249, 245, 0.99) 0%,
                rgba(250, 249, 245, 0.95) 45%,
                rgba(250, 249, 245, 0.58) 67%,
                rgba(250, 249, 245, 0.06) 100%
            ),
            url("../images/home/workspace.0003bd91abc7.webp") 76% bottom / auto 100% no-repeat;
    }

    .home-hero-content {
        width: 100%;
        max-width: none;
    }

    .home-card--hero h1 {
        max-width: 8.7ch;
        font-size: clamp(48px, 15vw, 66px);
    }

    .home-card--hero p {
        max-width: 28ch;
        margin-top: 24px;
        font-size: 17px;
    }

    .home-card--hero .home-button {
        margin-top: 28px;
    }

    .home-card--cv {
        min-height: 540px;
        background:
            linear-gradient(
                90deg,
                rgba(2, 72, 49, 0.98) 0%,
                rgba(2, 72, 49, 0.92) 64%,
                rgba(2, 72, 49, 0.36) 100%
            ),
            url("../images/home/cv.d35ad5a5ca51.webp") 64% center / cover no-repeat;
    }

    .home-card--cv h2 {
        font-size: clamp(42px, 13vw, 54px);
    }

    .home-card--tools,
    .home-card--articles,
    .home-card--trust {
        min-height: 390px;
    }

    .home-card--tools .home-card-content,
    .home-card--articles .home-card-content {
        max-width: 100%;
    }

    .home-card--tools .home-card-content {
        padding-right: 44px;
    }

    .home-chart {
        opacity: 0.75;
    }

    .home-card--articles {
        align-items: flex-start;
        background:
            linear-gradient(
                180deg,
                rgba(250, 249, 245, 0.99) 0%,
                rgba(250, 249, 245, 0.93) 55%,
                rgba(250, 249, 245, 0.28) 100%
            ),
            url("../images/home/workspace.0003bd91abc7.webp") 68% bottom / auto 100% no-repeat;
    }

    .home-card--trust {
        min-height: 0;
    }
}

@media (max-width: 380px) {
    .home-card {
        padding-inline: 21px;
    }

    .home-card--hero h1 {
        font-size: 45px;
    }

    .home-card--tools h2,
    .home-card--articles h2 {
        font-size: 40px;
    }

    .home-button {
        width: 100%;
        padding-inline: 18px;
    }

    .home-card--tools .home-card-content {
        padding-right: 0;
    }

    .home-chart {
        opacity: 0.2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-button,
    .home-button span {
        transition-duration: 0.01ms;
    }
}
