

/* Start:/local/templates/farmprosvet/components/bitrix/news.list/main_projects/style.css?17876855355068*/
.home-projects {
    width: 100%;
}

.home-projects__header {
    max-width: 760px;
    margin-bottom: 32px;
}

.home-projects__title {
    margin: 0 0 10px;
    color: var(--ui-black-grey, #3b3c52);
    font-family: var(--ui-font-jost, Jost, sans-serif);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.2;
}

.home-projects__description {
    max-width: 620px;
    margin: 0;
    color: var(--ui-purple-grey, #6a7287);
    font-family: var(--ui-font-manrope, Manrope, sans-serif);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
}

.home-projects__grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-project-card {
    min-width: 0;
    height: 100%;
}

.home-project-card__link {
    display: flex;
    height: 100%;
    min-height: 480px;
    overflow: hidden;
    flex-direction: column;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(124, 127, 198, 0.2);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(59, 60, 82, 0.08);
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-project-card__link:hover,
.home-project-card__link:focus-visible {
    color: inherit;
    border-color: rgba(124, 127, 198, 0.5);
    box-shadow: 0 20px 44px rgba(59, 60, 82, 0.14);
    outline: none;
    transform: translateY(-5px);
}

.home-project-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(145deg, #9799dc, #777ac1);
}

.home-project-card__media::after {
    content: '';
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(to bottom, transparent, rgba(31, 34, 55, 0.3));
    pointer-events: none;
}

.home-project-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-project-card__link:hover .home-project-card__image,
.home-project-card__link:focus-visible .home-project-card__image {
    transform: scale(1.04);
}

.home-project-card__label {
    position: absolute;
    z-index: 1;
    left: 18px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    color: #fff;
    background: rgba(92, 95, 157, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(25, 28, 53, 0.18);
    backdrop-filter: blur(7px);
    font-family: var(--ui-font-manrope, Manrope, sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.home-project-card__label svg {
    width: 15px;
    height: 15px;
}

.home-project-card__body {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
}

.home-project-card__title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.8em;
    margin: 0 0 12px;
    color: #555c71;
    font-family: var(--ui-font-jost, Jost, sans-serif);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-project-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 24px;
    color: #747c91;
    font-family: var(--ui-font-manrope, Manrope, sans-serif);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.home-project-card__action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: var(--ui-purple, #7c7fc6);
    font-family: var(--ui-font-jost, Jost, sans-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
}

.home-project-card__action svg {
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
}

.home-project-card__link:hover .home-project-card__action svg,
.home-project-card__link:focus-visible .home-project-card__action svg {
    transform: translateX(4px);
}

@media (max-width: 1100px) {
    .home-projects__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 800px) {
    .home-projects {
        padding: 40px 8vw;
    }

    .home-projects__header {
        margin-bottom: 24px;
    }

    .home-projects__description {
        font-size: 1.05rem;
    }
}

@media (max-width: 700px) {
    .home-projects__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-project-card__link {
        min-height: 0;
    }

    .home-project-card__body {
        padding: 19px;
    }

    .home-project-card__title {
        min-height: 0;
        font-size: 1.125rem;
    }

    .home-project-card__description {
        -webkit-line-clamp: 5;
    }
}

@media (max-width: 420px) {
    .home-projects {
        padding-right: 20px;
        padding-left: 20px;
    }

    .home-project-card__label {
        left: 14px;
        bottom: 13px;
    }
}

/* End */
/* /local/templates/farmprosvet/components/bitrix/news.list/main_projects/style.css?17876855355068 */
