/* Главная: блок новостей + колонка вакансий */
.home-news {
    padding: 2.5rem 0 1rem;
}
.home-news a {
    color: inherit;
    text-decoration: none;
}
.home-news h2,
.home-news h3,
.home-news h4,
.home-news h5 {
    text-align: left;
}
.home-news-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.home-news-header h2 {
    margin: 0;
    font-weight: 700;
    color: #2d4a46;
}
.home-news-all {
    color: #6c757d !important;
    white-space: nowrap;
}
.home-news-all:hover {
    color: #2d4a46 !important;
}
.home-news-date {
    color: #8a9492;
    font-size: .9rem;
    margin: .75rem 0 .4rem;
}

/* Главная новость */
.home-news-main-image,
.home-news-item-image {
    overflow: hidden;
    border-radius: 6px;
    background: #e9eceb;
}
.home-news-main {
    display: block;
}
.home-news-main-image {
    aspect-ratio: 16 / 9;
}
.home-news-main-image img {
    object-position: center 30%;
}
.home-news-item-image {
    aspect-ratio: 4 / 3;
}
.home-news-main-image img,
.home-news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.home-news-main:hover img,
.home-news-item:hover img {
    transform: scale(1.04);
}
.home-news-main-title {
    padding: 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1f2d2b;
    margin-bottom: 1rem;
}
.home-news-main-text {
    color: #555;
    line-height: 1.6;
}
.home-news-main:hover .home-news-main-title,
.home-news-item:hover .home-news-item-title {
    color: #2d4a46;
}

/* Три предыдущие */
.home-news-item {
    display: block;
}
.home-news-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1f2d2b;
}

/* Колонка вакансий */
.home-vac {
    position: sticky;
    top: 20px;
    padding: 1.5rem;
    border-radius: 6px;
    background: #f1f4f3;
}
.home-vac-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.home-vac-header h4 {
    margin: 0;
    font-weight: 700;
    color: #2d4a46;
}
.home-vac-count {
    min-width: 26px;
    padding: 2px 8px;
    border-radius: 13px;
    background: #2d4a46;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
}
.home-vac-item {
    display: block;
    padding: .85rem 0;
    border-top: 1px solid #dde3e1;
}
.home-vac-title {
    font-weight: 600;
    color: #1f2d2b;
    line-height: 1.35;
}
.home-vac-item:hover .home-vac-title {
    color: #2d4a46;
    text-decoration: underline;
}
.home-vac-salary {
    margin-top: .25rem;
    font-size: .9rem;
    font-weight: 600;
    color: #2d4a46;
}
.home-vac-meta {
    margin-top: .2rem;
    font-size: .85rem;
    color: #6c757d;
}
.home-vac-all {
    margin-top: .75rem;
    background: #2d4a46;
    color: #fff !important;
    font-weight: 600;
}
.home-vac-all:hover {
    background: #3a6c65;
}

@media (max-width: 767.98px) {
    .home-news-main-title {
        font-size: 1.3rem;
    }
}
