.home-rest-space {
    padding: 3.25rem 0 1.25rem;
    background: transparent;
    font-family: 'Roboto', system-ui, sans-serif;
}

.home-rest-space__row {
    display: grid;
    grid-template-columns: 13.5rem minmax(0, 36rem) max-content;
    align-items: center;
    justify-content: space-between;
    column-gap: clamp(1.75rem, 4vw, 3.75rem);
}

.home-rest-space__title {
    margin: 0;
    font-family: inherit;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.35;
    color: #1a1a1a;
    text-align: center;
}

.home-rest-space__text {
    margin: 0;
    max-width: 36rem;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.5;
    color: #333;
    white-space: pre-line;
}

.home-rest-space__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    padding: 0.72rem 1.35rem 0.72rem 1.15rem;
    background-color: #e7fc86;
    color: #1a1a1a;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.975rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.home-rest-space__btn:hover,
.home-rest-space__btn:focus {
    background-color: #d8f072;
    color: #1a1a1a;
    text-decoration: none;
}

.home-rest-space__btn:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 3px;
}

.home-rest-space__arrow {
    display: block;
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .home-rest-space {
        padding: 2.25rem 0 0.5rem;
    }

    .home-rest-space__row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.15rem;
    }

    .home-rest-space__title {
        
        font-size: 1.7rem;
    }

    .home-rest-space__text {
        max-width: 36rem;
    }
}

@media (max-width: 575.98px) {
    .home-rest-space__btn {
        white-space: normal;
    }
}
